/* ==========================================================================
   Global Variables & Base — 8px spacing system
   ========================================================================== */
:root {
    --bg-light: #F4F4F4;
    --bg-dark: #0B0F14;
    --accent: #FF4D1F;
    --text-dark: #111111;
    --text-light: #F4F4F4;
    --gray: #6B6B6B;
    --border-color: rgba(17, 17, 17, 0.08);
    --border-color-dark: rgba(244, 244, 244, 0.08);

    --container-max: 1400px;
    --container-pad: 40px;
    --gap: 24px;

    /* Refined easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: initial;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.theme-dark { color: var(--text-light); }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-accent { background-color: var(--accent); color: var(--text-light); }

.bg-light .border-line { border-color: var(--border-color); }
.bg-dark .border-line { border-color: var(--border-color-dark); }
.bg-accent .border-line { border-color: rgba(255, 255, 255, 0.15); }

/* ==========================================================================
   Typography — refined hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(56px, 9vw, 130px);
    margin-bottom: 24px;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.section-title {
    font-size: clamp(36px, 5.5vw, 76px);
    margin-bottom: 56px;
    letter-spacing: -0.045em;
}

h3 {
    font-size: 22px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
    letter-spacing: -0.005em;
}

.large-body {
    font-size: clamp(19px, 2.8vw, 30px);
    line-height: 1.45;
    color: inherit;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.bg-dark p { color: rgba(244, 244, 244, 0.65); }
.bg-accent p { color: rgba(244, 244, 244, 0.85); }

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Container & Grid
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

.section-padding {
    padding: 140px 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* ==========================================================================
   Grid Overlay — aligned to content grid
   ========================================================================== */
.grid-guide-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max);
    height: 100vh;
    padding: 0 var(--container-pad);
    pointer-events: none;
    z-index: 9999;
}

.grid-guide {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    height: 100%;
    gap: var(--gap);
}

.grid-guide div {
    border-left: 1px solid var(--border-color);
    transition: border-color 0.3s var(--ease-smooth);
}

.grid-guide div:last-child {
    border-right: 1px solid var(--border-color);
}

body.is-dark-section .grid-guide div {
    border-color: var(--border-color-dark);
}

body.is-dark-section .grid-guide div:last-child {
    border-color: var(--border-color-dark);
}

/* ==========================================================================
   Image Placeholders
   ========================================================================== */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: #E0E0E0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.06) 100%);
}

.bg-dark .image-placeholder {
    background: #1A222D;
}

.bg-dark .image-placeholder::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
}

/* ==========================================================================
   Buttons — optimized, touch-friendly
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    min-height: 52px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    transition: background-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-out-expo), color 0.3s var(--ease-smooth);
    will-change: transform;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-dark:active {
    transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 28px 0;
    transition: padding 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth);
    color: var(--text-dark);
}

.navbar.scrolled {
    background-color: rgba(244, 244, 244, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.navbar.scrolled.nav-dark {
    background-color: rgba(11, 15, 20, 0.88);
    border-bottom: 1px solid var(--border-color-dark);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
    display: block;
    transition: filter 0.35s var(--ease-smooth);
}

.navbar:not(.nav-dark) .logo-img {
    filter: invert(1) brightness(0.1);
}

.navbar.scrolled:not(.nav-dark) .logo-img {
    filter: invert(1) brightness(0.1);
}

.nav-center {
    display: flex;
    gap: 40px;
}

.nav-center a {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: translateX(-101%);
    transition: transform 0.35s var(--ease-out-expo);
}

.nav-center a:hover::after {
    transform: translateX(0);
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    z-index: 1002;
    transition: gap 0.3s var(--ease-out-expo);
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.25s ease;
    will-change: transform;
}

.hamburger.active span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.hamburger.active span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Nav Overlay
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-out-expo);
    will-change: transform;
}

.mobile-nav-link:hover {
    color: var(--accent);
    transform: translateX(8px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 40px;
    align-items: center;
}

.hero-desc {
    font-size: 19px;
    max-width: 400px;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.55;
}

.hero-right {
    height: 68vh;
    min-height: 480px;
}

.hero-right .image-placeholder {
    height: 100%;
    border-radius: 8px;
    transform-origin: center;
    will-change: transform;
}

/* ==========================================================================
   Text Reveal Section
   ========================================================================== */
.text-reveal {
    position: relative;
    z-index: 0;
}

.text-reveal-container {
    height: 200vh;
    width: 100%;
}

.text-reveal-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--container-pad);
    max-width: 1000px;
    margin: 0 auto;
}

.text-reveal .text-reveal-text {
    font-size: clamp(22px, 3.8vw, 46px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: transparent;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.text-reveal-text .word {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 4px;
    will-change: color;
}

/* ==========================================================================
   Projects Section (Homepage)
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 72px 40px;
}

.project-card {
    cursor: pointer;
    position: relative;
}

.project-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.p-category {
    color: var(--gray);
}

.project-image {
    height: 560px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 6px;
    will-change: transform;
}

.project-image .image-placeholder {
    transition: transform 0.5s var(--ease-out-expo);
    will-change: transform;
}

.project-title {
    font-size: 28px;
    margin-bottom: 14px;
    transition: color 0.3s var(--ease-smooth);
}

.project-card .accent-line {
    height: 2px;
    width: 0%;
    background-color: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

.project-card:hover .project-image {
    transform: translateY(-6px);
}

.project-card:hover .image-placeholder {
    transform: scale(1.04);
}

.project-card:hover .accent-line {
    width: 100%;
}

.project-card:hover .project-title {
    color: var(--accent);
}

/* ==========================================================================
   Services & Accordion
   ========================================================================== */
.accordion-list {
    border-top: 1px solid var(--border-color-dark);
}

.bg-light .accordion-list {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color-dark);
}

.bg-light .accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 36px 0;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    font-size: clamp(28px, 3.8vw, 52px);
    transition: color 0.3s var(--ease-smooth);
}

.accordion-icon {
    font-size: 36px;
    font-weight: 400;
    transition: transform 0.35s var(--ease-out-expo);
    will-change: transform;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item:hover .accordion-title {
    color: var(--accent);
}

.accordion-content {
    height: 0;
    overflow: hidden;
}

.accordion-inner {
    padding-bottom: 36px;
    max-width: 600px;
}

.accordion-inner h4 {
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.accordion-inner p {
    font-size: 17px;
    line-height: 1.65;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: center;
}

.process-image {
    height: 560px;
    border-radius: 8px;
}

.blur-animate {
    filter: blur(16px);
    opacity: 0.4;
    transition: filter 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-smooth);
    will-change: filter, opacity;
}

.blur-animate.in-view {
    filter: blur(0);
    opacity: 1;
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.client-logo {
    aspect-ratio: 16/9;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    transition: background-color 0.3s var(--ease-smooth);
    cursor: pointer;
}

.client-logo:hover {
    background-color: #fff;
}

.logo-ph {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    transition: opacity 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.client-logo:hover .logo-ph {
    opacity: 1;
    color: var(--text-dark);
}

.client-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s var(--ease-smooth);
}

.client-logo:hover .client-img {
    opacity: 1;
}

/* ==========================================================================
   Inside The Studio Section
   ========================================================================== */
.studio-header {
    margin-bottom: 56px;
}

.studio-header .section-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-top: 16px;
    max-width: 600px;
    line-height: 1.5;
}

.studio-showcase {
    display: flex;
    gap: 20px;
    min-height: 520px;
    width: 100%;
}

.studio-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color-dark);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.65s var(--ease-out-expo), 
                background-color 0.4s var(--ease-smooth), 
                border-color 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

.studio-card:hover, .studio-card.active {
    background-color: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Desktop Flex Expand */
@media (min-width: 992px) {
    .studio-card:hover, .studio-card.active {
        flex: 2.6;
    }
}

.card-visual {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color-dark);
    background: #060606;
}

.visual-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out-expo), opacity 0.5s ease;
}

.studio-card:hover .visual-svg, .studio-card.active .visual-svg {
    transform: scale(1.05);
}

.card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.card-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    transition: transform 0.4s var(--ease-out-expo);
}

.card-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-light);
}

.card-details {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

/* When Expanded via hover/active on Desktop */
@media (min-width: 992px) {
    .studio-card:hover .card-details, .studio-card.active .card-details {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }
    
    /* Make non-expanded cards look semi-transparent or subtle */
    .studio-showcase:hover .studio-card:not(:hover):not(.active) {
        opacity: 0.6;
        border-color: rgba(255, 255, 255, 0.04);
    }
}

.card-philosophy {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.card-work h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-work ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.card-work li {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding-left: 12px;
}

.card-work li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
}

.card-btn {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    transition: color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.card-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.card-btn svg {
    transition: transform 0.3s var(--ease-smooth);
}

.card-btn:hover svg {
    transform: translateX(4px);
}

.card-btns-row {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .studio-showcase {
        flex-direction: column;
        gap: 16px;
        min-height: auto;
    }

    .studio-card {
        flex: none;
        min-height: 80px;
        transition: background-color 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
    }

    /* Collapsed Header click trigger behavior for mobile */
    .studio-card .card-visual {
        height: 180px;
        display: none; /* Only show in expanded state on mobile */
    }

    .studio-card .card-content {
        padding: 24px;
    }

    .studio-card .card-header-info {
        margin-bottom: 0;
        cursor: pointer;
    }
    
    .studio-card.active .card-header-info {
        margin-bottom: 24px;
    }

    .studio-card.active .card-visual {
        display: block;
    }

    .studio-card .card-details {
        display: none;
        opacity: 0;
        transform: none;
        pointer-events: none;
    }

    .studio-card.active .card-details {
        display: flex;
        opacity: 1;
        pointer-events: all;
        animation: slideDownMobile 0.4s var(--ease-out-expo) forwards;
    }
}

@keyframes slideDownMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--ease-out-expo);
    will-change: transform;
}

.blog-card .image-placeholder {
    height: 280px;
    margin-bottom: 24px;
    transition: transform 0.4s var(--ease-out-expo);
    will-change: transform;
}

.blog-title {
    font-size: 24px;
    margin-bottom: 14px;
    line-height: 1.2;
    transition: color 0.3s var(--ease-smooth);
}

.blog-desc {
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-card .accent-line {
    height: 2px;
    width: 0%;
    background-color: var(--accent);
    transition: width 0.35s var(--ease-out-expo);
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card:hover .image-placeholder {
    transform: scale(1.02);
}

.blog-card:hover .accent-line {
    width: 48px;
}

.blog-card:hover .blog-title {
    color: var(--accent);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 72px;
}

.faq-right .accordion-title {
    font-size: 22px;
}

.faq-right .accordion-header {
    padding: 28px 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

/* ==========================================================================
   OS Activation Interface - Native Visual Language
   ========================================================================== */
.os-activation {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.os-bg-grain {
    position: absolute;
    inset: -50%;
    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)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
    animation: noise 0.2s steps(2) infinite;
}

@keyframes noise {
    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, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
    100% { transform: translate(0, 0); }
}

.os-grid {
    position: absolute;
    inset: 0;
    background-size: 80px 80px;
    background-image: 
        linear-gradient(to right, var(--border-color-dark) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color-dark) 1px, transparent 1px);
    z-index: 2;
    opacity: 0.3;
    transition: opacity 0.5s var(--ease-smooth);
}

.os-grid.active {
    opacity: 1;
}

.os-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}

.os-header {
    margin-bottom: auto;
}

.os-header h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.os-meta {
    display: flex;
    gap: 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.os-offline {
    color: var(--gray);
    transition: color 0.3s var(--ease-smooth);
}

.os-warning {
    color: var(--gray);
}

.os-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.os-slider-container {
    width: 100%;
    max-width: 520px;
    position: relative;
}

.os-slider-track {
    width: 100%;
    height: 64px;
    background: transparent;
    border: 1px solid var(--border-color-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.os-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(244, 244, 244, 0.03);
    border-right: 1px solid var(--border-color-dark);
    z-index: 1;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.os-slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text-light);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
    text-transform: uppercase;
}

.os-slider-thumb {
    position: absolute;
    left: 6px;
    height: 52px;
    width: 52px;
    background: transparent;
    border: 1px solid var(--border-color-dark);
    z-index: 3;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.os-slider-thumb:active {
    cursor: grabbing;
    background: rgba(244, 244, 244, 0.05);
    border-color: var(--text-light);
}

.os-coordinates {
    margin-top: 16px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray);
    text-align: right;
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease-smooth);
    text-transform: uppercase;
}

.os-sys-messages {
    position: absolute;
    bottom: var(--container-pad);
    left: var(--container-pad);
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.os-msg {
    opacity: 0;
    animation: fadeInMsg 0.15s var(--ease-out-expo) forwards;
}

@keyframes fadeInMsg {
    to { opacity: 1; }
}

.os-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    z-index: 20;
    opacity: 0;
    transform: translateY(-100vh);
    pointer-events: none;
}

.os-scanline.active {
    animation: scan 2s linear infinite;
    opacity: 0.6;
}

@keyframes scan {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(100vh); }
}

html.os-locked,
body.os-locked {
    overflow: hidden !important;
}

.contact-title {
    font-size: clamp(44px, 7vw, 96px);
    margin-bottom: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding: 14px 0;
    color: var(--text-light);
    font-family: inherit;
    font-size: 17px;
    transition: border-color 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 72px var(--container-pad);
    border-bottom: 1px solid var(--border-color-dark);
}

.footer-email {
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s var(--ease-smooth);
}

.footer-email:hover {
    color: var(--accent);
}

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

.footer-nav a,
.social-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    position: relative;
}

.footer-nav a::after,
.social-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out-expo);
}

.footer-nav a:hover::after,
.social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links {
    display: flex;
    gap: 24px;
}

.footer-bottom {
    position: relative;
    padding: 36px 0;
}

.huge-text-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 36px 0;
    pointer-events: none;
}

.footer-logo-bg {
    width: 75%;
    height: auto;
    opacity: 0.04;
    display: block;
    margin: 0 auto;
    filter: brightness(2);
}

.huge-footer-text {
    font-size: 18vw;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    text-align: center;
    margin: 0;
}

.copy {
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Responsive — 1024px
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --container-pad: 32px;
    }

    .section-padding {
        padding: 100px 0;
    }

    .hero-grid,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        height: 50vh;
        order: -1;
        margin-bottom: 32px;
    }


    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-image {
        height: 400px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ==========================================================================
   Responsive — 768px (Tablet / Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --container-pad: 24px;
    }

    .nav-center {
        display: none;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 40px;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: clamp(44px, 12vw, 72px);
    }

    .hero-desc {
        font-size: 17px;
        max-width: 100%;
    }

    .hero-right {
        height: 45vh;
        min-height: 300px;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .project-image {
        height: 300px;
    }

    .project-title {
        font-size: 22px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        padding: 24px;
    }

    .contact-title {
        font-size: clamp(36px, 10vw, 56px);
    }

    .contact-grid {
        gap: 48px;
    }

    .accordion-title {
        font-size: clamp(22px, 6vw, 36px);
    }

    .accordion-header {
        padding: 28px 0;
    }

    .blog-card .image-placeholder {
        height: 220px;
    }

    .blog-title {
        font-size: 20px;
    }

    .process-grid {
        gap: 40px;
    }

    .process-image {
        height: 350px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding: 56px var(--container-pad);
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }

    .social-links {
        justify-content: center;
    }

    /* Grid guide: 6 columns on tablet */
    .grid-guide {
        grid-template-columns: repeat(6, 1fr);
    }

    .grid-guide div:nth-child(n+7) {
        display: none;
    }

    /* Mobile buttons: larger touch targets */
    .btn {
        padding: 16px 36px;
        min-height: 52px;
        font-size: 14px;
    }

    .text-reveal .text-reveal-text {
        font-size: clamp(20px, 5vw, 32px);
    }

    .text-reveal-sticky {
        padding: 0 var(--container-pad);
    }

    .text-reveal-text .word {
        margin-right: 8px;
    }
}

/* ==========================================================================
   Responsive — 480px (Small Mobile)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --container-pad: 20px;
    }

    .section-padding {
        padding: 64px 0;
    }

    .section-title {
        font-size: clamp(28px, 9vw, 40px);
        margin-bottom: 32px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(38px, 13vw, 56px);
    }

    .hero-right {
        height: 40vh;
        min-height: 260px;
    }

    .project-image {
        height: 240px;
    }

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

    .blog-card .image-placeholder {
        height: 200px;
    }

    .accordion-title {
        font-size: clamp(20px, 6vw, 28px);
    }

    .accordion-icon {
        font-size: 28px;
    }

    .contact-title {
        font-size: clamp(32px, 11vw, 44px);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Grid guide: 4 columns on mobile */
    .grid-guide {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-guide div:nth-child(n+5) {
        display: none;
    }

    .footer-logo-bg {
        width: 95%;
    }

    .text-reveal .text-reveal-text {
        font-size: clamp(18px, 5.5vw, 26px);
    }

    .large-body {
        font-size: 18px;
    }
}