/* =====================================================
   INTELIDATIA - FORMAL LUXURY ENGINEERING
   "Elegance. Precision. Authority."
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
/* Outfit import handled in HTML */

:root {
    /* Luxury Monochrome Theme (Charcoal Edition) */
    --system-background: #141414;
    /* Charcoal Grey */
    --secondary-system-background: #1F1F1F;

    --text-primary: #E0E0E0;
    /* Silver, not White */
    --text-secondary: #9E9E9E;
    /* Mid Grey */
    --text-tertiary: #666666;

    /* REVERT ACCENT: Soft Silver */
    --accent-color: #D1D1D1;

    --grid-line-color: rgba(255, 255, 255, 0.06);
    --border-hard: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --container-width: 1400px;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: var(--system-background);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
    overflow-x: hidden;
    cursor: default;
    /* Restoring default cursor */
}

/* =====================================================
   AWARD-WINNING PRELOADER 5.0 (ULTIMATE + ENCHANTMENT)
   ===================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* For glitch offset */
}

.loader-wrapper {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.loader-top {
    display: flex;
    justify-content: flex-end;
}

.loader-percent {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    /* Prevent jitter */
}

.loader-bar-thick {
    width: 100%;
    height: 24px;
    /* Thicker Bar */
    background: #111;
    position: relative;
    overflow: hidden;
}

.bar-fill-thick {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    width: 0%;
}

.loader-bottom {
    text-align: left;
    height: 20px;
    /* Text stability */
}

.loader-slogan {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- GLITCH EFFECT (UPDATED TO WHITE) --- */
.glitch-active .loader-wrapper {
    animation: glitch-anim 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #fff;
    /* Glitch tints */
}

.glitch-active .bar-fill-thick {
    background: #fff;
    /* WHITE glitch flash */
    box-shadow: 0 0 20px #fff;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* =====================================================
   HUD CORNERS (VISIBLE)
   ===================================================== */
.hud-corner {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    mix-blend-mode: normal;
    /* Ensure visibility */
}

.top-left {
    top: 2rem;
    left: 2rem;
}

.top-right {
    top: 2rem;
    right: 2rem;
}

.bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.bottom-right {
    bottom: 2rem;
    right: 2rem;
}

.hud-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    /* Increased visibility */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =====================================================
   FOUC FIX (START INVISIBLE)
   ===================================================== */
.huge-title .char-wrap,
.nav-floating,
.hud-corner,
.footer-ui,
.tagline {
    opacity: 0;
    /* JS will animate to 1 */
}

/* =====================================================
   ATMOSPHERE & TEXTURE
   ===================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    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");
    mix-blend-mode: overlay;
    animation: noiseAnimation 0.2s steps(10) infinite;
}

@keyframes noiseAnimation {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }

    100% {
        transform: translate(5%, 0);
    }
}

body::-webkit-scrollbar {
    display: none;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.hero-container {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
}

/* Background Grid */
.bg-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 0;
}

.grid-col {
    border-right: 1px solid var(--grid-line-color);
    height: 100%;
}

.grid-col:last-child {
    border-right: none;
}

.grid-row-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--grid-line-color);
    left: 0;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav-floating {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding-top: 2rem;
    padding-bottom: 2rem;

    /* 60% opacity for clean look */
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0));

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-inner {
    pointer-events: auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    width: auto;
    /* Allow expand */
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

/* =====================================================
   HUD ELEMENTS
   ===================================================== */
.hud-corner {
    position: absolute;
    z-index: 100;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    pointer-events: none;
    text-transform: uppercase;
}

.top-left {
    top: 3.5rem;
    left: 3.5rem;
}

.top-right {
    top: 3.5rem;
    right: 3.5rem;
    text-align: right;
}

.bottom-left {
    bottom: 12rem;
    left: 3.5rem;
}

.bottom-right {
    bottom: 12rem;
    right: 3.5rem;
    text-align: right;
}

/* =====================================================
   TITLE TYPOGRAPHY
   ===================================================== */
.title-wrapper {
    position: relative;
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    mix-blend-mode: difference;
}

.huge-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 11vw, 12rem);
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.04em;
    /* Slightly cleaner than -0.08em */
    margin: 0;
    color: #fff;
    display: flex;
    gap: 0px;
    overflow: hidden;
    text-transform: uppercase;
}

.char-wrap {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* =====================================================
   FOOTER UI
   ===================================================== */
.footer-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 30;
    border-top: 1px solid var(--grid-line-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    background: transparent;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-right: 2rem;
}

/* Main CTA Button (Pill Shape) */
.cta-btn {
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px !important;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    z-index: 10;
    font-family: var(--font-display);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* =====================================================
   WORK & OTHER SECTIONS
   ===================================================== */
#work {
    background: var(--system-background);
    padding-top: 10rem;
    padding-bottom: 4rem;
}

/* =====================================================
   WORK SHOWCASE: SPLIT LAYOUT
   ===================================================== */
.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 3.5rem;
    position: relative;
}

.project-list-column {
    display: flex;
    flex-direction: column;
}

.work-header {
    border-bottom: 1px solid var(--border-hard);
    padding-bottom: 4rem;
    margin: 0 3.5rem;
}

.work-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-hard);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    text-decoration: none;
    opacity: 0.5;
    /* Dim inactive */
}

.project-item.active,
.project-item:hover {
    opacity: 1;
    padding-left: 1rem;
}

.p-name {
    font-size: 2.5rem;
    /* Slightly smaller for split */
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--text-primary);
    letter-spacing: -0.04em;
    transition: color 0.3s ease;
}

.p-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.p-cat {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.p-arrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fff;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: 700;
}

.project-item:hover .p-arrow,
.project-item.active .p-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Right Sticky Preview */
.project-preview-column {
    position: relative;
}

.preview-frame {
    position: sticky;
    top: 150px;
    width: 100%;
    height: 400px;
    background: #111;
    border: 1px solid var(--border-hard);
    border-radius: 8px;
    overflow: hidden;
}

.preview-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    transition: background 0.5s ease;
    /* Absolute position to overlap with video */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    /* Hidden by default until loaded */
}

/* Video Overlay for texture/scanlines */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2r9//38gYGAEESAAEGAAasgJOgzOKCoAAAAASUVORK5CYII=') repeat;
    opacity: 0.1;
    z-index: 3;
    pointer-events: none;
}

/* Placeholder for JS interaction */
/* Just a visual change for demonstration since no images */
.preview-visual.active-1 {
    background: radial-gradient(circle at center, #333, #000);
}

.preview-visual.active-2 {
    background: radial-gradient(circle at center, #444, #111);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .showcase-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .project-preview-column {
        display: none;
    }

    .project-item {
        opacity: 1;
        padding: 2rem 0;
    }

    .work-header {
        margin: 0 1.5rem 3rem 1.5rem;
    }
}

/* =====================================================
   TICKER
   ===================================================== */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.ticker {
    display: inline-block;
    animation: marquee 40s linear infinite;
    min-width: 100%;
}

.ticker__item {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    color: #333;
    padding-right: 6rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.4s ease;
}

.ticker:hover .ticker__item {
    color: #FFF;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.ticker__item:hover {
    color: #FFF !important;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* =====================================================
   BENTO GRID & FOOTER
   ===================================================== */
.solutions-section {
    background: var(--system-background);
    padding: 10rem 3.5rem;
    position: relative;
    /* Context for 3D elements if needed */
}

/* =====================================================
   METHODOLOGY: THE NEURAL STREAM
   ===================================================== */
.process-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 4rem;
    max-width: 800px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    /* Start at 0 for GSAP */
    background: #fff;
    /* Solid white core */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    /* Glow */
    z-index: 1;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    opacity: 0.5;
    /* Animated via scroll in future if refined, static for now as "beam" */
}

.process-step {
    position: relative;
    padding-bottom: 4rem;
    padding-left: 3rem;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -2rem;
    /* Adjust based on padding above */
    top: 0;
    width: 4rem;
    height: 4rem;
    background: var(--system-background);
    border: 1px solid var(--border-hard);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.process-step:hover .step-marker {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.step-body h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.step-body p {
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Mobile Timeline Override */
@media (max-width: 900px) {
    .process-timeline {
        padding-left: 1rem;
    }

    .step-marker {
        left: -1rem;
        width: 3rem;
        height: 3rem;
        font-size: 0.8rem;
    }

    .process-step {
        padding-left: 2.5rem;
    }
}

/* =====================================================
   STANDARD FOOTER (RESTORED)
   ===================================================== */

/* Reset Mechanics - No fixed stacking */
.hero,
.ticker-section,
.manifesto-section,
.services-section,
#work,
.solutions-section,
.contact-section {
    position: relative;
    z-index: 1;
    background: transparent;
    /* Default flow */
}

/* Footer Back to Normal Flow */
.main-footer {
    position: relative;
    width: 100%;
    background: var(--system-background);
    color: var(--text-primary);
    padding: 8rem 3.5rem 4rem 3.5rem;
    border-top: 1px solid var(--border-hard);
    overflow: hidden;
    /* For bg text */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    /* Uneven elegant grid */
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.footer-time {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4rem;
}

.footer-legal p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-hover {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.link-hover:hover {
    color: #fff;
}

/* Micro-interaction: Underline Reveal */
.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link-hover:hover::after {
    width: 100%;
}

.big-footer-email {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.big-footer-email:hover {
    opacity: 0.7;
}

.email-copy-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.copy-feedback {
    position: absolute;
    top: -1.5rem;
    right: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: #fff;
    color: #000;
    padding: 2px 6px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-feedback.active {
    opacity: 1;
    transform: translateY(0);
}

.hq-label {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-bg-text {
    position: absolute;
    bottom: -2vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25vw;
    font-family: var(--font-display);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Mobile Footer */
@media (max-width: 900px) {
    .main-footer {
        padding: 4rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bg-text {
        font-size: 30vw;
    }
}

/* Bottom Legal Row */
.footer-bottom-row {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: left;
    padding-left: 3.5rem;
    z-index: 5;
    pointer-events: none;
}

.footer-bottom-row p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    /* Pure White as requested */
    opacity: 0.5;
    /* Slight opacity for elegance, but white base */
    letter-spacing: 0.05em;
}

.big-email {
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
}

/* =====================================================
   MANIFESTO (PHILOSOPHY)
   ===================================================== */
.manifesto-section {
    padding: 10rem 3.5rem;
    border-bottom: 1px solid var(--border-hard);
    display: flex;
    justify-content: center;
}

.manifesto-inner {
    max-width: 900px;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    display: block;
}

.manifesto-text {
    font-size: 3.5rem;
    line-height: 1.2;
    font-family: var(--font-display);
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-tertiary);
    /* Dimmed by default */
}

.manifesto-text .highlight {
    color: #fff;
    font-weight: 600;
}

.manifesto-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* =====================================================
   SERVICES (CAPABILITIES)
   ===================================================== */
.services-section {
    padding: 10rem 3.5rem;
    border-bottom: 1px solid var(--border-hard);
}

.services-header {
    margin-bottom: 6rem;
}

.services-title {
    font-size: 4rem;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
}

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

.service-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-hard);
    transition: all 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.svc-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    font-family: var(--font-mono);
}

.service-card h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.svc-list li {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.svc-list li::before {
    content: "/";
    position: absolute;
    left: 0;
    color: #fff;
}

/* =====================================================
   CONTACT SECTION (NEW)
   ===================================================== */
.contact-section {
    padding: 6rem 3.5rem;
    background: var(--system-background);
    border-top: 1px solid var(--border-hard);
}

.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Titles */
.contact-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.contact-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 450px;
}

/* Input Fields */
.demo-form-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Clear Label & Input Structure */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-left: 2px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Clear container */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Definite border */
    border-radius: 4px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #fff;
    /* High contrast on focus */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    /* Focus ring */
}

/* Remove old float styles */
.input-group::after {
    display: none;
}

.input-group input::placeholder {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.input-group input:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    /* Subtle shift */
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Info Side */
.info-label {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
    text-transform: uppercase;
}

.info-label:first-child {
    margin-top: 0;
}

.phone-display {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    transition: color 0.3s ease;
}

.phone-display:hover {
    color: #ccc;
}

.email-display {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

/* Social Grid */
.social-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-hard);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.icon-svg {
    width: 20px;
    height: 20px;
}

/* Big Footer Email */
.big-footer-section {
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-hard);
    margin-bottom: 2rem;
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.big-email {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 8rem);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: color 0.3s ease;
    display: block;
}

.big-email:hover {
    color: var(--text-secondary);
}

/* =====================================================
   PROJECT HOVER REVEAL (THE "WOW" FACTOR)
   ===================================================== */
.hover-reveal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.reveal-img {
    position: absolute;
    width: 300px;
    height: 480px;
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
    opacity: 0;
    border-radius: 4px;
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.1s ease-out;
    /* Smooth follow handled by JS */
    filter: grayscale(100%) contrast(1.1);
    /* Luxury B&W look */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    will-change: transform, opacity;
}

/* =====================================================
   KINETIC TYPOGRAPHY CLASSES
   ===================================================== */
.skew-on-scroll {
    display: inline-block;
    will-change: transform;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    transition: transform 0.1s ease-out;
}

/* =====================================================
   MOBILE OPTIMIZATION (WORLD CLASS RESPONSIVENESS)
   ===================================================== */
@media (max-width: 900px) {

    /* 1. Global Reset for Mobile */
    :root {
        --container-padding: 1.5rem;
    }

    /* 2. Hero Adjustments */
    .huge-title {
        font-size: 11vw;
        /* Reduced from 13vw to fit better */
        flex-direction: row !important;
        /* Force horizontal */
        flex-wrap: wrap;
        justify-content: center;
        line-height: 0.9;
        gap: 0.2rem;
        /* Tiny gap to prevent touching */
        margin-top: 12vh;
        width: 100%;
    }

    .char-wrap {
        display: inline-block;
        width: auto !important;
        /* Prevent full width takeover */
        max-width: none;
    }

    .hud-corner {
        /* display: none; - Removing to ensure visibility as requested */
        font-size: 0.6rem;
        /* Smaller on mobile */
        top: 1rem;
    }

    .hud-corner.top-right {
        right: 1rem;
        top: 1rem;
    }

    .hud-corner.top-left {
        left: 1rem;
        top: 1rem;
    }

    .hud-corner.bottom-left,
    .hud-corner.bottom-right {
        display: none;
    }

    /* Only keep top ones if user asked for "2 phrases above" */

    .footer-ui {
        flex-direction: column;
        height: auto;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .tagline {
        font-size: 0.7rem;
        /* Smaller tagline */
        margin-right: 0;
        line-height: 1.4;
    }

    /* 3. Navigation */
    .nav-inner {
        padding: 0.5rem 1.5rem;
        gap: 1rem;
    }

    .nav-link span {
        display: none;
        /* Hide text, maybe show icons? Or just keep simple */
    }

    .nav-link::before {
        content: attr(data-text);
        /* Fallback if we want text, but let's just minimalize */
        display: block;
        font-size: 0.7rem;
    }

    /* Better Mobile Nav: Just Brand + Contact */
    .nav-link {
        display: none;
        /* Hide all by default */
    }

    .nav-link[href="#contact"] {
        display: block;
        /* Show only contact */
    }

    .nav-inner {
        justify-content: space-between;
        width: 90%;
        max-width: 400px;
        /* Visual cap */
        border-radius: 100px;
        padding: 0.75rem 1.5rem;
        background: rgba(20, 20, 20, 0.6);
        /* Darker tint restored */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    /* 4. Section Padding */
    .manifesto-section,
    .services-section,
    .solutions-section,
    #work,
    .contact-section {
        padding: 5rem 1.5rem;
    }

    /* 5. Grids Stacking */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* More breathing room */
    }

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

    .bento-card.large,
    .bento-card.tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* 6. Typography */
    .manifesto-text {
        font-size: 2rem;
    }

    .services-title,
    .section-title,
    .work-title {
        font-size: 2.5rem;
    }

    .ticker__item {
        font-size: 1.5rem;
        /* Much smaller than 3rem */
        padding-right: 1rem;
    }

    .project-item {
        padding: 2rem 1rem;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project-item::before {
        display: none;
    }

    .p-name {
        font-size: 2rem;
    }

    .p-cat {
        text-align: left;
    }

    .big-email {
        font-size: 2.5rem;
    }
}

/* =====================================================
   NEW PREMIUM FOOTER (REDESIGNED)
   ===================================================== */
.main-footer {
    background: #0a0a0a;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 0;
}

.footer-top-section {
    padding: 6rem 3.5rem;
}

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


.footer-brand-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-sub {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.links-block a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.links-block a:hover {
    color: #fff;
}

.footer-link-large {
    display: block;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    width: fit-content;
    transition: border-color 0.3s ease;
}

.footer-link-large:hover {
    border-color: #fff;
}

.location-block p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.social-row {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-row a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-row a:hover {
    opacity: 1;
}

/* Bottom Copyright Bar */
.footer-bottom-section {
    padding: 2rem 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-start;
    /* Left Aligned as requested */
}

.copyright-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* MOBILE FOOTER & HUD OVERRIDES */
@media (max-width: 900px) {
    .footer-inner-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-top-section {
        padding: 4rem 1.5rem;
    }

    .footer-bottom-section {
        padding: 2rem 1.5rem;
    }

    /* HUD Fixes for visibility */
    .hud-corner {
        z-index: 2000;
        /* Above nav if needed, or make sure nav doesn't cover */
        top: 6rem;
        /* Push down below navbar */
    }

    .hud-corner.top-right {
        right: 1.5rem;
        text-align: right;
    }

    .hud-corner.top-left {
        left: 1.5rem;
    }

    .hud-corner.bottom-left,
    .hud-corner.bottom-right {
        display: none;
        /* Keep bottom hidden on mobile to avoid clutter over content */
    }
}