@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'Dirtyline36Daysoftype2022';
    src: url('./assets/Dirtyline 36daysoftype 2022.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   DESIGN SYSTEM VARIABLES (Arcova Brand Identity - Editorial Look)
   ========================================================================== */
:root {
    /* Corporate Colors */
    --bg-light: #EFEDEA;         /* Alabastro (Official light bg) */
    --bg-dark: #1E1E1E;          /* Charcoal (Official dark bg/text) */
    --accent-color: #374298;     /* Arcova Cobalt Blue (Official accent) */
    --accent-light: #7B8AD4;     /* Lightened cobalt for use on dark backgrounds */
    --accent-glow: rgba(55, 66, 152, 0.15);
    
    /* Layout & Neutrals */
    --card-bg-dark: #141414;     /* Slightly darker than 1E1E1E for contrast */
    --text-light: #EFEDEA;
    --text-dark: #1E1E1E;
    --text-muted-light: rgba(239, 237, 234, 0.75); /* Higher opacity for editorial readability */
    --text-muted-dark: rgba(30, 30, 30, 0.65);
    --border-light: rgba(239, 237, 234, 0.15);
    --border-dark: rgba(30, 30, 30, 0.15);
    
    /* Typography (Poppins as default) */
    --font-sans: 'Poppins', sans-serif;
    --font-display: 'Poppins', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions & Easing */
    --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    --max-width: 1440px;
    --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    overflow-x: clip;
    line-height: 1.5;
    background-color: var(--bg-dark);
}

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(239, 237, 234, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM & HELPER CLASSES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.text-gradient {
    /* Editorial clean gradient, not neon */
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(239, 237, 234, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   TEXTURES & OVERLAYS
   ========================================================================== */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.045;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger bottom dark gradient to ensure hero text contrast */
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.45) 0%, rgba(30, 30, 30, 0.1) 40%, rgba(30, 30, 30, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   HEADER / NAVIGATION (Navbar Píldora Flotante)
   ========================================================================== */
.navbar-pill {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 960px;
    height: 64px;
    background-color: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.nav-pill-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 32px;
}

/* Logo container - SVGs now have tight viewBox, display naturally */
.logo-pill {
    flex-shrink: 0;
}

.logo-crop {
    width: 120px;
    height: 28px;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100%;
    height: auto;
}

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

.nav-pill-links {
    display: flex;
    gap: 36px;
}

.nav-pill-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(239, 237, 234, 0.7);
    padding: 8px 0;
    position: relative;
}

.nav-pill-link:hover {
    color: var(--text-light);
}

.nav-pill-link.active {
    color: var(--text-light);
    font-weight: 500;
}

.nav-pill-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--text-light);
    border-radius: 50%;
}

.nav-toggle-pill {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    cursor: pointer;
}

.nav-toggle-pill span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

/* Light Navbar modifier for Services Section */
.light-navbar {
    background-color: rgba(239, 237, 234, 0.9);
    border-color: var(--border-dark);
}

.light-navbar .nav-pill-link {
    color: rgba(30, 30, 30, 0.7);
}

.light-navbar .nav-pill-link:hover {
    color: var(--text-dark);
}

.light-navbar .nav-pill-link.active {
    color: var(--accent-color);
}

.light-navbar .nav-toggle-pill span {
    background-color: var(--text-dark);
}

/* ==========================================================================
   HERO SECTION (Cinematic Video, Big Text)
   ========================================================================== */
.hero-cinematic {
    width: 100%;
    height: 100vh;
    padding: 16px;
    position: relative;
    background-color: #070709;
    display: flex;
    align-items: center;
}

.hero-frame {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
}

/* ==========================================================================
   3D SCROLLYTELLING HERO SECTION
   ========================================================================== */
.scrolly-container {
    position: relative;
    width: 100%;
    height: 500vh; /* 5 viewports of scroll */
    background-color: #000;
}

.scrolly-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: scale(1.05);
    transform-origin: center;
    pointer-events: none;
    will-change: transform;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #0b0b0d; /* Premium sleek dark background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.preloader-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    letter-spacing: -0.04em;
    opacity: 0;
    text-transform: uppercase;
}


.scrolly-text-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 64px;
    pointer-events: none;
    z-index: 10;
}

.scroll-float {
    font-family: var(--font-sans) !important;
    font-size: clamp(2.5rem, 8vw, 8.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.scroll-float .block {
    display: block;
}

.scroll-float .word-wrapper {
    display: inline-block;
    white-space: nowrap;
}

.scroll-float .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Glass Panel at the end of scroll */
.glass-panel-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 48px 24px;
    z-index: 20;
    pointer-events: none;
    overflow: hidden;
}

.glass-panel-wrapper {
    width: 100%;
    max-width: 1250px;
    height: 800px;
    max-height: 85vh;
    pointer-events: auto;
    perspective: 1000px;
}

.glass-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 2rem;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(160px);
    -webkit-backdrop-filter: blur(160px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
}

.glass-panel-tag {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    margin-bottom: 24px;
}

.glass-panel-title {
    font-family: var(--font-sans);
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.03em;
    max-width: 1100px;
    margin: 0 auto;
}

.glass-panel-title .italic {
    font-style: italic;
    font-weight: 500;
}

/* Mobile Responsive Styling for 3D Scrollytelling Section */
@media (max-width: 768px) {
    .scrolly-container {
        height: 400vh; /* slightly shorter scroll on mobile */
    }
    
    .scrolly-text-overlay {
        padding: 32px 24px;
    }
    
    .scroll-float {
        font-size: clamp(2rem, 10vw, 4.5rem);
        letter-spacing: -0.04em;
    }
    
    .glass-panel-container {
        padding: 96px 16px 32px 16px;
    }
    
    .glass-panel-wrapper {
        height: auto;
        max-height: 75vh;
    }
    
    .glass-panel-content {
        padding: 32px 16px;
    }
    
    .glass-panel-title {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
        line-height: 1.35;
        letter-spacing: -0.02em;
    }
}

.glass-marquee-border {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    overflow: hidden;
    width: 100%;
}

.glass-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: glass-marquee-scroll 25s linear infinite;
}

.glass-marquee-item {
    flex-shrink: 0;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-marquee-item img {
    height: 32px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    filter: invert(1) brightness(0);
}

.glass-marquee-item img:hover {
    opacity: 1;
}

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



.hero-content {
    position: relative;
    z-index: 10;
    padding: 48px 64px;
    width: 100%;
    margin-bottom: 16px;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: flex-end;
    gap: 60px;
}

/* Giant Heading & Asterisk */
.hero-massive-title {
    font-size: clamp(4.5rem, 15vw, 11rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.85;
    position: relative;
    display: inline-block;
    color: var(--text-light);
    white-space: nowrap;
    text-transform: uppercase;
}

.superscript-asterisk {
    position: absolute;
    top: 0.12em;
    right: -0.28em;
    font-size: 0.32em;
    color: var(--accent-color);
    line-height: 1;
}

.hero-manifesto-text {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--text-light); /* Changed to full white/cream for readability */
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 440px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Text shadow to read clearly over clouds */
}

/* Reusable Interactive CTA Button */
.btn-cta-pill {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 10px 10px 28px;
    border-radius: 50px;
    gap: 16px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(55, 66, 152, 0.25);
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--bg-dark);
    transition: var(--transition-smooth);
}

.btn-cta-pill:hover {
    gap: 22px;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(55, 66, 152, 0.35);
}

.btn-cta-pill:hover .arrow-circle {
    transform: scale(1.08) rotate(-45deg);
}

/* ==========================================================================
   MARQUEE SECTION (Horizontal Image Strip)
   ========================================================================== */
.marquee-section {
    background-color: var(--bg-dark);
    padding: 80px 0 40px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marquee-row {
    width: 100%;
    display: flex;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 16px;
    will-change: transform;
    transform: translateX(0);
}

.marquee-track img {
    width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    filter: grayscale(20%) contrast(1.05);
    transition: var(--transition-smooth);
}

.marquee-track img:hover {
    filter: grayscale(0%) contrast(1.1);
}

/* ==========================================================================
   ABOUT US SECTION (Original contents, 3D corner assets removed)
   ========================================================================== */
.about-dark-theme {
    background-color: var(--bg-dark);
    position: relative;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    z-index: 5;
}

.about-dark-theme .section-grid {
    display: grid;
    grid-template-columns: 3.5fr 8.5fr;
    position: relative;
    z-index: 5;
}

.about-dark-theme .section-meta {
    padding: 100px 48px;
    border-right: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.about-dark-theme .section-meta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 16px;
    color: var(--text-light);
}

.about-dark-theme .section-meta .section-num {
    font-family: var(--font-mono);
    color: var(--accent-light);
}

.about-dark-theme .section-content {
    padding: 100px 64px;
}

/* Scroll letter reveal classes */
.about-manifesto-intro {
    font-size: clamp(1.4rem, 2.5vw, 2.3rem);
    line-height: 1.3;
    font-weight: 300;
    max-width: 820px;
    margin-bottom: 80px;
    color: var(--text-light);
}

.char-reveal {
    transition: opacity 0.12s linear;
    will-change: opacity;
}

/* Concept Box Split */
.concept-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-light);
    margin-bottom: 80px;
}

.concept-box {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.concept-box:first-child {
    border-right: 1px solid var(--border-light);
}

.concept-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.concept-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.concept-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.concept-body p {
    font-size: 1.05rem;
    color: var(--text-muted-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.concept-visual {
    margin-top: auto;
}

.concept-visual svg {
    opacity: 0.9;
}

/* About Philosophies */
.about-philosophies {
    display: grid;
    grid-template-columns: 3fr 9fr;
    border-top: 1px solid var(--border-light);
    padding-top: 48px;
    gap: 24px;
}

.about-philosophies-left span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #ffffff;
}

.about-philosophies-right h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-light);
}

/* ==========================================================================
   SERVICES SECTION (Jack Style, White/Alabaster Background)
   ========================================================================== */
.services-jack-style {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 120px 48px;
    border-radius: 50px 50px 0 0;
    position: relative;
    z-index: 8;
}

.services-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.services-massive-heading {
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 80px;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.services-list-vertical {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(30, 30, 30, 0.15);
}

.service-item-row {
    display: grid;
    grid-template-columns: 2fr 10fr;
    padding: 48px 0;
    border-bottom: 1px solid rgba(30, 30, 30, 0.15);
    align-items: flex-start;
}

.service-row-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    opacity: 0.85;
}

.service-row-content {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 32px;
}

.service-row-title {
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-dark);
}

.service-row-description {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    color: var(--text-muted-dark);
    line-height: 1.5;
    font-weight: 300;
}

/* Scroll entrance animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PROJECTS SECTION (Jack Style - Sticky Stacking Cards, FIXED viewport height)
   ========================================================================== */
.projects-stack-section {
    background-color: transparent;
    border-radius: 50px 50px 0 0;
    padding: 120px 48px;
    margin-top: -60px; /* pull up effect to overlap light section */
    position: relative;
    z-index: 12;
}

.projects-stack-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.projects-massive-heading {
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 80px;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #ffffff;
}


.project-stack-card {
    position: sticky;
    top: 96px; /* Positioned slightly higher to fit entire card height in smaller screens */
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 32px 40px;
    height: 520px; /* Fixed height for editorial feel & guarantee card fits the screen */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-origin: top center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    will-change: transform, opacity;
}

/* Ensure proper overlapping stack without background leakages */
.project-stack-card:nth-child(1) {
    z-index: 10;
}
.project-stack-card:nth-child(2) {
    z-index: 20;
}
.project-stack-card:nth-child(3) {
    z-index: 30;
}

.projects-stack-list {
    display: flex;
    flex-direction: column;
    gap: 80vh; /* Large gap for sticky stacking scroll duration */
    padding-bottom: 60px;
}
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.project-card-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.project-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin-left: 28px;
    align-items: flex-start;
}

.project-card-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted-light);
    letter-spacing: 0.12em;
    line-height: 1;
}

.project-card-title {
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    line-height: 1.1;
}

/* Ghost outline live project button */
.btn-ghost-live {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-light);
    color: var(--text-light);
    border-radius: 50px;
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: var(--transition-fast);
    text-align: center;
    width: fit-content;
    flex-shrink: 0;
}

.btn-ghost-live:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

/* Card lower media grid - Fixed height to avoid cutting images */
.project-card-media-grid {
    display: grid;
    grid-template-columns: 4.2fr 5.8fr;
    gap: 20px;
    height: 350px; /* Exact height for layouts inside the 520px card */
    overflow: hidden;
}

.project-media-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.project-media-col-left .project-img-inner {
    height: 165px;
    width: 100%;
    object-fit: cover;
}

.project-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.project-img-inner:hover {
    transform: scale(1.015);
}

.project-img-inner.tall {
    height: 100%;
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */
.contact-dark-theme {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 5;
}

.contact-dark-theme .section-grid {
    display: grid;
    grid-template-columns: 3.5fr 8.5fr;
}

.contact-dark-theme .section-meta {
    padding: 100px 48px;
    border-right: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-dark-theme .section-meta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 16px;
    color: var(--text-light);
}

.contact-dark-theme .section-meta .section-num {
    font-family: var(--font-mono);
    color: var(--accent-light);
}

.contact-dark-theme .section-content {
    padding: 100px 64px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 5.5fr 6.5fr;
    gap: 48px;
}

.contact-heading-big {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 300;
    margin-bottom: 48px;
    color: var(--text-light);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-detail-group h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.contact-detail-group p,
.contact-detail-group a {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted-light);
}

.contact-detail-group a:hover {
    color: var(--text-light);
}

.social-links-grid {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.social-links-grid a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.social-links-grid a:hover {
    color: var(--accent-light);
}

/* Contact Form details */
.contact-form-panel {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    justify-content: space-between;
}

/* Progress bar and text */
.form-progress-container {
    margin-bottom: 40px;
}

.form-progress-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.form-progress-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.form-progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step container transitions */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    transition: var(--transition-fast);
    background: transparent;
}

.form-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted-light);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -16px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
}

.form-input:focus {
    border-color: var(--accent-light);
}

/* Dropdown custom styling */
.form-select-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    display: block;
    margin-bottom: 12px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "↓";
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-muted-light);
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.form-select:focus {
    border-color: var(--accent-light);
}

.form-select option {
    background-color: #1a1a1a;
    color: var(--text-light);
    padding: 10px;
}

.form-label-optional {
    opacity: 0.5;
    font-size: 0.85em;
}

.conditional-group {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
}

/* Nav Buttons inside Form */
.form-nav-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.form-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-nav-btn svg {
    transition: transform 0.2s ease;
}

.form-nav-btn:hover:not(:disabled) {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-next:hover svg {
    transform: translateX(3px);
}

.btn-prev:hover svg {
    transform: translateX(-3px);
}

.form-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Shake animation for invalid fields */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

.form-textarea {
    min-height: 110px;
    resize: none;
}

/* Premium corporate blue button for Arcova (not neon) */
.contact-glow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 16px 40px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(55, 66, 152, 0.2);
    transition: var(--transition-smooth);
}

.contact-glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(55, 66, 152, 0.35);
}

/* ==========================================================================
   FOOTER (Clean and editorial with logo)
   ========================================================================== */
.footer-dark {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-light);
    padding: 60px 48px;
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-left {
    display: flex;
    align-items: center;
    opacity: 0.75;
}

/* Footer Logo - SVG viewBox is already cropped to text */
.footer-logo-crop {
    width: 110px;
    height: auto;
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

.footer-right {
    display: flex;
    gap: 48px;
}

#localClock span {
    color: var(--accent-light);
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive break points)
   ========================================================================== */
@media (max-width: 1200px) {
    .about-dark-theme .section-grid,
    .contact-dark-theme .section-grid {
        grid-template-columns: 1fr;
    }
    
    .about-dark-theme .section-meta,
    .contact-dark-theme .section-meta {
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 60px 24px 20px 24px;
    }
    
    .about-dark-theme .section-content,
    .contact-dark-theme .section-content {
        padding: 60px 24px;
    }
}

@media (max-width: 992px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-content {
        padding: 32px;
    }
    
    .concept-split {
        grid-template-columns: 1fr;
    }
    
    .concept-box:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .service-row-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-card-header {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 16px;
        align-items: center;
    }
    
    .project-card-info {
        margin-left: 0;
    }
    
    .project-card-header .btn-ghost-live {
        grid-column: span 2;
        width: 100%;
        margin-top: 16px;
        justify-self: stretch;
    }
    
    .project-card-media-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .project-stack-card {
        position: relative !important;
        top: auto !important;
        height: auto;
        min-height: auto;
        gap: 32px;
    }
    
    .project-media-col-left {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: auto;
    }
    
    .project-media-col-left .project-img-inner {
        height: 240px;
    }
    
    .project-img-inner.tall {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .navbar-pill {
        width: calc(100% - 24px);
        top: 12px;
    }
    
    .nav-toggle-pill {
        display: flex;
        position: relative;
        z-index: 101;
    }
    
    .nav-pill-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.98);
        border-left: 1px solid var(--border-light);
        flex-direction: column;
        justify-content: center;
        padding: 60px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 90;
    }
    
    .light-navbar .nav-pill-menu {
        background-color: rgba(239, 237, 234, 0.98);
        border-left: 1px solid var(--border-dark);
    }
    
    .nav-pill-menu.open {
        transform: translateX(0);
    }
    
    .nav-pill-links {
        flex-direction: column;
        gap: 36px;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-pill-link {
        font-size: 1.2rem;
    }
    
    /* Toggle active state (hamburger animation) */
    .nav-toggle-pill.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .nav-toggle-pill.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle-pill.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .hero-massive-title {
        font-size: clamp(3.2rem, 16vw, 6rem);
    }
    
    .services-jack-style,
    .projects-stack-section {
        padding: 80px 24px;
    }
    
    .project-stack-card {
        padding: 24px;
        height: auto;
        min-height: auto;
    }
    
    .about-philosophies {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-dark {
        padding: 40px 24px;
    }
}
