/* ============================================================
   WE7 INCORPORADORA — AWWWARDS LEVEL CSS
   Palette: Lusion-style clean white + Tobacco / Rose Gold
   ============================================================ */

/* ==================== VARIABLES ==================== */
:root {
    /* Colors — Lusion-style white deep clean */
    --bg-primary: #f7f5f0;
    --bg-secondary: #efede8;
    --bg-tertiary: #e8e5de;
    --bg-card: #ffffff;
    --border-light: #ddd8cf;
    --border-medium: #c5bfb3;
    
    /* Tobacco / Rose Gold typography palette */
    --text-primary: #2a2118;
    --text-secondary: #5c4a3a;
    --text-tertiary: #8a7665;
    --text-muted: #a69888;
    
    /* Accent — Rose Gold / Tobacco tones */
    --accent: #b08968;
    --accent-light: #c49e7c;
    --accent-dark: #8c6d50;
    --accent-rose: #c4956a;
    --accent-deep: #6b4c35;
    
    /* Legacy compat */
    --black: #2a2118;
    --dark: #3a2f24;
    --dark-2: #4a3d30;
    --dark-3: #c5bfb3;
    --gray-dark: #8a7665;
    --gray: #a69888;
    --gray-light: #8a7665;
    --gray-lighter: #5c4a3a;
    --white: #f5efe6;
    --white-pure: #f5efe6;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-width: 1400px;
    --container-padding: clamp(24px, 5vw, 60px);
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: 0.8s var(--ease-out-expo);
    --transition-fast: 0.4s var(--ease-out-expo);

    /* Depth — shadows & elevation */
    --shadow-sm: 0 1px 3px rgba(42, 33, 24, 0.04), 0 1px 2px rgba(42, 33, 24, 0.06);
    --shadow-md: 0 4px 16px rgba(42, 33, 24, 0.06), 0 2px 6px rgba(42, 33, 24, 0.04);
    --shadow-lg: 0 12px 40px rgba(42, 33, 24, 0.08), 0 4px 12px rgba(42, 33, 24, 0.04);
    --shadow-xl: 0 24px 60px rgba(42, 33, 24, 0.1), 0 8px 20px rgba(42, 33, 24, 0.05);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Lenis Smooth Scroll */
html.lenis, html.lenis body {
    height: auto;
}
html.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
html.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
html.lenis.lenis-stopped {
    overflow: hidden;
}
html.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Safe area for notch/dynamic island */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--accent);
    color: #ffffff;
}

/* Touch UX — eliminate blue/gray tap flash on iOS */
a, button, [role="button"], .magnetic-btn, .nav-link, .mobile-link,
.glass-arrow, .social-link, .team-card, .cases-item, .gallery-item,
.service-item, .back-to-top, .nav-menu-btn, .nav-cta, .btn-primary,
.btn-outline, .btn-outline-light, .btn-submit, .icf-cta {
    -webkit-tap-highlight-color: transparent;
}

/* Grid overflow protection */
.service-content, .team-card-info, .cases-item-info,
.contact-info-item, .footer-nav {
    min-width: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ==================== CUSTOM CURSOR ==================== */
/* All positioning done via JS inline styles for reliability */
/* CSS only handles transitions and state changes */
#cursor {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important; /* max z-index */
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
}

#cursor .cursor-dot {
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    background: #1a1512 !important;
    border-radius: 50% !important;
    top: -6px !important;
    left: -6px !important;
    will-change: transform;
    pointer-events: none !important;
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease, background 0.3s ease;
}

#cursor .cursor-outline {
    position: absolute !important;
    width: 44px !important;
    height: 44px !important;
    border: 2px solid rgba(26, 21, 18, 0.4) !important;
    border-radius: 50% !important;
    top: -22px !important;
    left: -22px !important;
    will-change: transform;
    pointer-events: none !important;
    background: transparent !important;
    transition: width 0.35s ease, height 0.35s ease, top 0.35s ease, left 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

/* Hover state */
#cursor.cursor-hover .cursor-outline {
    width: 64px !important;
    height: 64px !important;
    top: -32px !important;
    left: -32px !important;
    border-color: var(--accent) !important;
}

#cursor.cursor-hover .cursor-dot {
    width: 6px !important;
    height: 6px !important;
    top: -3px !important;
    left: -3px !important;
    background: var(--accent) !important;
}

/* Dark section: invert cursor colors */
#cursor.cursor-light .cursor-dot {
    background: #f5efe6 !important;
}

#cursor.cursor-light .cursor-outline {
    border-color: rgba(245, 239, 230, 0.5) !important;
}

/* Cursor — Text state */
#cursor .cursor-text {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f7f5f0;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.35s ease;
}

#cursor.cursor-text-visible .cursor-text {
    opacity: 1;
}

#cursor.cursor-text-visible .cursor-outline {
    width: 90px !important;
    height: 90px !important;
    top: -45px !important;
    left: -45px !important;
    border-color: rgba(176, 137, 104, 0.6) !important;
    background: rgba(25, 21, 20, 0.85) !important;
}

#cursor.cursor-text-visible .cursor-dot {
    opacity: 0 !important;
}

/* Hide native cursor — ONLY the system arrow, not the element */
@media (pointer: fine) and (min-width: 769px) {
    html, body, div, section, header, footer, main, nav, a, button, span, p, h1, h2, h3, h4, h5, h6, img, svg, canvas, ul, li {
        cursor: none;
    }
    input, textarea, select { cursor: text; }
}

/* Hide custom cursor on touch / mobile screens */
@media (max-width: 768px), (pointer: coarse) {
    #cursor { display: none !important; visibility: hidden !important; opacity: 0 !important; }
    * { cursor: auto !important; }
}

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #191514;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 0 0% 0);
}

.preloader-inner {
    text-align: center;
    width: 300px;
}

.preloader-svg {
    width: 200px;
    height: 60px;
    overflow: visible;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawText 2s var(--ease-out-expo) forwards;
}

@keyframes drawText {
    to {
        stroke-dashoffset: 0;
        fill: var(--accent);
    }
}

.preloader-line {
    width: 100%;
    height: 1px;
    background: rgba(245, 239, 230, 0.15);
    margin: 30px 0 15px;
    border-radius: 1px;
    overflow: hidden;
}

.preloader-line-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.1s linear;
}

.preloader-counter {
    font-family: var(--font-heading);
    font-size: 14px;
    color: rgba(245, 239, 230, 0.4);
    letter-spacing: 0.1em;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 0;
    pointer-events: none;
    transition: padding 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1001;
    pointer-events: all;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #f5efe6;
    letter-spacing: 0.06em;
    line-height: 1;
    transition: opacity 0.4s ease;
}

.nav-logo-sub {
    font-size: 7.5px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-light);
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.nav-logo:hover .nav-logo-text { opacity: 0.7; }
.nav-logo:hover .nav-logo-sub { opacity: 0.6; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    pointer-events: all;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.6);
    transition: color 0.4s var(--ease-out-expo);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-light);
    transition: width 0.5s var(--ease-out-expo);
}

.nav-link:hover {
    color: #f5efe6;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-light);
}

.nav-link.active::after {
    width: 100%;
    background: var(--accent-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    pointer-events: all;
}

.nav-cta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1512;
    background: var(--accent-light);
    padding: 12px 28px;
    border-radius: 100px;
    transition: background 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    box-shadow: 0 2px 20px rgba(176, 137, 104, 0.18);
}

.nav-cta:hover {
    background: var(--accent);
    box-shadow: 0 6px 32px rgba(176, 137, 104, 0.35);
    transform: translateY(-2px);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    pointer-events: all;
}

.menu-line {
    width: 24px;
    height: 2px;
    background: #f5efe6;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-menu-btn.active .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-menu-btn.active .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ---- Nav Scrolled State (glass blur) ---- */
.nav.nav-scrolled {
    padding: 16px 0;
    background: rgba(247, 245, 240, 0.9);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(42, 33, 24, 0.08), 0 4px 24px rgba(42, 33, 24, 0.04);
}

.nav.nav-scrolled .nav-logo-text {
    color: var(--text-primary);
}

.nav.nav-scrolled .nav-logo-sub {
    color: var(--accent);
    opacity: 1;
}

.nav.nav-scrolled .nav-link {
    color: var(--text-muted);
}

.nav.nav-scrolled .nav-link:hover {
    color: var(--text-primary);
}

.nav.nav-scrolled .nav-link.active {
    color: var(--accent);
}

.nav.nav-scrolled .nav-link::after {
    background: var(--accent);
}

.nav.nav-scrolled .menu-line {
    background: var(--text-primary);
}

.nav.nav-scrolled .nav-cta {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 16px rgba(176, 137, 104, 0.25);
}

/* ---- Nav on Dark Sections (while scrolled) ---- */
.nav.nav-scrolled.nav-dark {
    background: rgba(25, 21, 20, 0.88);
    box-shadow: 0 1px 0 rgba(245, 239, 230, 0.06), 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav.nav-scrolled.nav-dark .nav-logo-text {
    color: #f5efe6;
}

.nav.nav-scrolled.nav-dark .nav-logo-sub {
    color: var(--accent-light);
}

.nav.nav-scrolled.nav-dark .nav-link {
    color: rgba(245, 239, 230, 0.6);
}

.nav.nav-scrolled.nav-dark .nav-link:hover {
    color: #f5efe6;
}

.nav.nav-scrolled.nav-dark .nav-link.active {
    color: var(--accent-light);
}

.nav.nav-scrolled.nav-dark .nav-link::after {
    background: var(--accent-light);
}

.nav.nav-scrolled.nav-dark .menu-line {
    background: #f5efe6;
}

.nav.nav-scrolled.nav-dark .nav-cta {
    background: var(--accent-light);
    color: #1a1512;
}

/* ---- Nav Hide on Scroll Down, Show on Up ---- */
.nav.nav-hidden {
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease-out-expo), padding 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
}

.mobile-menu.active {
    pointer-events: all;
}

.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #191514;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-expo);
}

.mobile-menu.active .mobile-menu-bg {
    opacity: 1;
}

.mobile-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px var(--container-padding);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 600;
    color: #f5efe6;
    display: block;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link:hover {
    color: var(--accent);
}

.mobile-link.active {
    color: var(--accent-light);
}

.mobile-link.active span::before {
    content: '—  ';
    color: var(--accent);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-footer {
    margin-top: 60px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo) 0.4s, transform 0.6s var(--ease-out-expo) 0.4s;
}

.mobile-menu.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.mobile-menu-social a {
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-menu-info {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #191514;
    padding: 0;
}

/* Single unified background — no gradient seam */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(196, 160, 130, 0.04) 30%,
        rgba(255, 255, 255, 0) 60%,
        rgba(176, 140, 105, 0.03) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 200%;
    animation: gradientPass 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.hero::after {
    display: none;
}

@keyframes gradientPass {
    0% { background-position: -100% -100%; }
    50% { background-position: 200% 200%; }
    100% { background-position: -100% -100%; }
}

/* ---- RIGHT: Full-bleed image covering 65% ---- */
.hero-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform, opacity;
}

.hero-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.12) translateY(30px);
    opacity: 0;
    will-change: transform, opacity;
}

/* Wavy SVG divider */
.hero-wave {
    position: absolute;
    top: 0;
    left: -1px;
    width: clamp(80px, 8vw, 130px);
    height: 100%;
    z-index: 3;
}

/* Dark gradient overlay on image for depth */
.hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 2;
    pointer-events: none;
    display: block;
}

/* ---- LEFT: Text content ---- */
.hero-left {
    position: relative;
    z-index: 5;
    width: 38%;
    padding: 100px var(--container-padding) 50px;
    padding-left: clamp(40px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Subtle rose-gold radial glow behind text */
.hero-left::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -10%;
    width: 120%;
    height: 70%;
    background: 
        radial-gradient(ellipse at 55% 35%, rgba(196, 160, 130, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 75%, rgba(180, 140, 105, 0.05) 0%, transparent 45%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 14s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.08); }
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-light);
}

.hero-tag-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: #f5efe6;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-word {
    display: inline-block;
    transform: translateY(110%);
    color: #f5efe6;
}

.hero-word-outline {
    color: var(--accent-light);
    -webkit-text-stroke: none;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
}

.hero-desc {
    font-size: clamp(14px, 1.1vw, 17px);
    color: rgba(245, 239, 230, 0.55);
    line-height: 1.8;
    max-width: 380px;
    margin-bottom: 32px;
    opacity: 0;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
    padding-bottom: 4px;
    border-bottom: 1.5px solid rgba(196, 149, 106, 0.4);
    transition: color var(--transition-fast), gap var(--transition-fast), border-color var(--transition-fast);
    opacity: 0;
}

.hero-link:hover {
    color: #f5efe6;
    gap: 14px;
    border-color: var(--accent-light);
}

.hero-link svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.hero-link:hover svg {
    transform: translate(3px, -3px);
}

/* Badge — now positioned at bottom-left of text area */
/* Bottom row: badge + scroll side by side */
.hero-bottom-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
}

.hero-image-badge {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 22px;
    background: rgba(245, 239, 230, 0.06);
    border: 1px solid rgba(196, 149, 106, 0.15);
    border-radius: 14px;
    width: fit-content;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image-badge span:first-child {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.hero-image-badge span:last-child {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.45);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: background var(--transition-fast), transform 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-deep);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary .btn-text,
.btn-primary .btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.btn-large {
    padding: 20px 40px;
    font-size: 14px;
}

.btn-arrow svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow svg,
.btn-outline:hover .btn-arrow svg {
    transform: translate(4px, -4px);
}

/* Hero Scroll Indicator */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.hero-scroll-line {
    width: 1px;
    height: 36px;
    background: rgba(245, 239, 230, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-light);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.4);
}



.marquee-dot {
    color: var(--accent);
    font-size: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== SECTION LABELS & TITLES ==================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-label-num {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.section-label-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--gray-light);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.text-accent {
    color: var(--accent);
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding-top: clamp(48px, 6vw, 80px);
    position: relative;
    z-index: 10;
    background: var(--bg-primary);
}

/* ── Split Layout: Image Left + Text Right ── */
.about-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(48px, 6vw, 100px);
    align-items: center;
}

.about-col-left {
    perspective: 1000px;
}

.about-col-right {
    padding: clamp(10px, 2vw, 40px) 0;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: clamp(24px, 3vw, 40px);
    color: var(--text-primary);
}

.about-title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.about-desc {
    max-width: 480px;
    margin-bottom: clamp(28px, 3vw, 44px);
}

.about-desc p {
    font-size: clamp(14px, 1.05vw, 16px);
    color: var(--text-tertiary);
    line-height: 1.85;
}

.about-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Link with underline animation */
.about-link a,
.link-underline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.link-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.link-underline svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.link-underline:hover svg {
    transform: translate(3px, -3px);
}

/* ══════════════════════════════════════
   3D GLASS PANEL + CAROUSEL
   ══════════════════════════════════════ */

/* Panel container */
.glass-panel {
    position: relative;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(60px);
}

.glass-panel-inner {
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-panel:hover .glass-panel-inner {
    transform: translateZ(16px) rotateY(-1.5deg) rotateX(1deg);
}

/* ── Glass Frame ── thick glass slab */
.glass-panel-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    padding: 8px;
    background: linear-gradient(
        165deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.06) 25%,
        rgba(255,255,255,0.02) 50%,
        rgba(255,255,255,0.04) 75%,
        rgba(255,255,255,0.14) 100%
    );
    box-shadow:
        0 30px 80px -10px rgba(0, 0, 0, 0.18),
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-panel:hover .glass-panel-frame {
    box-shadow:
        0 50px 100px -10px rgba(0, 0, 0, 0.22),
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

/* ── Carousel inside glass ── */
.glass-carousel {
    overflow: hidden;
    border-radius: 13px;
    position: relative;
    touch-action: pan-y pinch-zoom; /* allow vertical scroll, capture horizontal for swipe */
}

.glass-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-slide {
    min-width: 100%;
    position: relative;
}

.glass-slide img {
    width: 100%;
    height: clamp(400px, 34vw, 560px);
    object-fit: cover;
    display: block;
    border-radius: 13px;
    transition: transform 1.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.glass-panel:hover .glass-slide-active img {
    transform: scale(1.04);
}

/* ── Glass Reflection ── */
.glass-reflection {
    position: absolute;
    inset: 8px;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.16) 0%,
        rgba(255,255,255,0.08) 12%,
        rgba(255,255,255,0.02) 30%,
        transparent 50%,
        transparent 70%,
        rgba(255,255,255,0.02) 85%,
        rgba(255,255,255,0.06) 100%
    );
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.5s ease;
}

.glass-panel:hover .glass-reflection {
    opacity: 0.7;
}

/* ── Glass Flare ── sweeping light streak */
.glass-flare {
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255,255,255,0.03) 30%,
        rgba(255,255,255,0.1) 46%,
        rgba(255,255,255,0.16) 50%,
        rgba(255,255,255,0.1) 54%,
        rgba(255,255,255,0.03) 70%,
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
    transform: skewX(-18deg);
    border-radius: 13px;
    transition: none;
}

.glass-panel:hover .glass-flare {
    left: 180%;
    transition: left 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Glass Depth edges ── */
.glass-depth {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.glass-depth-top {
    top: 0; left: 6px; right: 6px; height: 8px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0.06) 40%, transparent);
    border-radius: 20px 20px 0 0;
}

.glass-depth-bottom {
    bottom: 0; left: 6px; right: 6px; height: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.15), rgba(0,0,0,0.04) 40%, transparent);
    border-radius: 0 0 20px 20px;
}

.glass-depth-left {
    top: 6px; left: 0; bottom: 6px; width: 8px;
    background: linear-gradient(to right, rgba(255,255,255,0.12), rgba(255,255,255,0.03) 40%, transparent);
    border-radius: 20px 0 0 20px;
}

.glass-depth-right {
    top: 6px; right: 0; bottom: 6px; width: 8px;
    background: linear-gradient(to left, rgba(0,0,0,0.08), rgba(0,0,0,0.02) 40%, transparent);
    border-radius: 0 20px 20px 0;
}

/* ── Bottom bar: info + nav ── */
.glass-panel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 0;
    position: relative;
    z-index: 20;
    transform-style: flat;
    pointer-events: auto;
}

.glass-panel-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.glass-info-year {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    transition: opacity 0.3s ease;
}

.glass-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: opacity 0.3s ease;
}

/* Carousel navigation */
.glass-carousel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-carousel-count {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.glass-carousel-current {
    color: var(--text-primary);
}

.glass-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    z-index: 25;
    pointer-events: auto;
}

.glass-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(176, 137, 104, 0.06);
    transform: scale(1.08);
}

.glass-arrow:active {
    transform: scale(0.95);
}

/* ── Stats Bar ── */
.about-stats-bar {
    margin-top: clamp(60px, 8vw, 100px);
    padding: clamp(40px, 5vw, 64px) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 200px;
}

.about-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.about-stat-plus,
.about-stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.about-stat-label {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 8px;
}

.about-stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* ── Marquee ── */
.about-marquee {
    overflow: hidden;
    padding: clamp(20px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--border-light);
}

.about-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}

.about-marquee-track span {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    opacity: 0.12;
    transition: opacity 0.3s ease;
}

.about-marquee-track:hover span {
    opacity: 0.25;
}

.marquee-dot {
    font-size: clamp(8px, 1vw, 12px) !important;
    color: var(--accent) !important;
    opacity: 0.4 !important;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Values section ── */
.about-values-section {
    padding-top: clamp(60px, 8vw, 100px);
    max-width: 720px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}

.about-value {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    align-items: flex-start;
    padding-bottom: clamp(28px, 3vw, 44px);
    border-bottom: 1px solid var(--border-light);
}

.about-value:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-value-num {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    padding-top: 4px;
}

.about-value-content h4 {
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.about-value-content p {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--text-tertiary);
    line-height: 1.75;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: #141210;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.projects .section-header {
    position: relative;
    z-index: 3;
}

.projects .section-label-num,
.projects .section-label-text {
    color: rgba(245, 239, 230, 0.5);
}

.projects .section-title {
    color: #f5efe6;
}

.projects .section-subtitle {
    color: rgba(245, 239, 230, 0.55);
}

/* ---- Cases Mosaic (fame-estate style) ---- */
.cases-mosaic {
    position: relative;
    margin-top: 60px;
    padding: 0 clamp(8px, 1.5vw, 20px);
}

/* Floating center title */
.cases-center-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cases-center-title span {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 90px);
    font-weight: 700;
    color: #f5efe6;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

/* Rows */
.cases-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(6px, 1vw, 14px);
    margin-bottom: clamp(6px, 1vw, 14px);
}

/* Each item */
.cases-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    will-change: transform;
}

.cases-item-img {
    position: relative;
    width: 100%;
    height: clamp(200px, 28vw, 420px);
    overflow: hidden;
}

.cases-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.4s var(--ease-out-expo);
    will-change: transform;
}

.cases-item:hover .cases-item-img img {
    transform: scale(1.08);
}

/* Dark overlay gradient */
.cases-item-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 8, 6, 0.7) 0%,
        rgba(10, 8, 6, 0.15) 40%,
        rgba(10, 8, 6, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.cases-item:hover .cases-item-img::after {
    opacity: 0.5;
}

/* Info line */
.cases-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(10px, 1.4vw, 20px) clamp(12px, 1.6vw, 24px);
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: clamp(8px, 1vw, 16px);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}



.cases-item-num {
    font-family: var(--font-body);
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 400;
    color: rgba(245, 239, 230, 0.5);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.cases-item-name {
    font-family: var(--font-heading);
    font-size: clamp(12px, 1.1vw, 18px);
    font-weight: 600;
    color: #f5efe6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Clip-path reveal animation (scroll-driven) ---- */
.cases-item .cases-item-img {
    clip-path: inset(100% 0 0 0);
}

/* Info starts hidden, GSAP controls it */
.cases-item .cases-item-info {
    transform: translateY(12px);
    opacity: 0;
}

/* ---- Responsive: collapse to 2-col on tablet, 1-col on mobile ---- */
@media (max-width: 900px) {
    .cases-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-center-title span {
        font-size: clamp(28px, 8vw, 52px);
    }
    .cases-item-img {
        height: clamp(180px, 35vw, 300px);
    }
}

@media (max-width: 540px) {
    .cases-row {
        grid-template-columns: 1fr;
    }
    .cases-center-title span {
        font-size: 28px;
    }
    .cases-item-img {
        height: 220px;
    }
}

/* ==================== HORIZONTAL GALLERY ==================== */
.gallery-section {
    padding: var(--section-padding) 0;
    overflow: hidden;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.gallery-wrapper {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 24px;
    padding: 0 var(--container-padding);
    will-change: transform;
}

.gallery-item {
    flex-shrink: 0;
    width: clamp(300px, 40vw, 600px);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: clamp(300px, 35vw, 450px);
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(42, 33, 24, 0.8), transparent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-item-caption span {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
}

.gallery-item-caption p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 48px 0;
    position: relative;
    transition: padding var(--transition-fast), background 0.6s var(--ease-out-expo);
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    opacity: 0;
    transform: scaleX(0.95);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.service-item:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.service-item:hover {
    padding: 48px 32px;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-light);
}

.service-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.8s var(--ease-out-expo);
}

.service-item:hover .service-line::after {
    width: 100%;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    transition: transform 0.5s var(--ease-out-expo);
}

.service-item:hover .service-num {
    transform: translateX(8px);
}

.service-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    transition: color var(--transition-fast), transform 0.5s var(--ease-out-expo);
}

.service-item:hover .service-title {
    color: var(--accent);
    transform: translateX(12px);
}

.service-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 500px;
    margin-top: 8px;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s ease;
    opacity: 0.85;
}

.service-item:hover .service-desc {
    transform: translateX(12px);
    opacity: 1;
}

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.5s var(--ease-out-expo);
    flex-shrink: 0;
}

.service-item:hover .service-arrow {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(-45deg) scale(1.1);
    background: rgba(176, 137, 104, 0.08);
}

/* ==================== TECHNOLOGY SECTION — IMMERSIVE 3D ==================== */
.technology-immersive {
    position: relative;
    height: 500vh;
    background: transparent;
}

#icfWalkthrough {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* iOS Safari: avoids address bar gap */
    z-index: 5;
    pointer-events: none;
    visibility: hidden;
}

/* Progress bar */
.icf-progress {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 3px;
    height: 120px;
    background: rgba(245, 239, 230, 0.12);
    border-radius: 3px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.icf-progress.visible {
    opacity: 1;
}

.icf-progress-fill {
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 3px;
    transition: height 0.1s linear;
}

/* Overlays */
.icf-overlay {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s linear;
}

.icf-overlay-intro {
    top: 50%;
    left: clamp(40px, 6vw, 100px);
    transform: translateY(-50%);
}

.icf-overlay-title {
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 90px);
    font-weight: 700;
    color: #f5efe6;
    line-height: 1.05;
    margin-top: 16px;
}

.icf-overlay-title em {
    font-family: var(--font-accent);
    color: var(--accent);
    font-weight: 400;
}

.icf-overlay-sub {
    font-family: var(--font-accent);
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--accent-light);
    font-style: italic;
    margin-top: 12px;
}

/* Cards that appear at different stages */
.icf-overlay-exterior {
    top: 50%;
    left: clamp(40px, 6vw, 100px);
    transform: translateY(-50%);
}

.icf-overlay-enter {
    top: 50%;
    right: clamp(40px, 6vw, 100px);
    transform: translateY(-50%);
}

.icf-overlay-inside {
    top: 50%;
    left: clamp(40px, 6vw, 100px);
    transform: translateY(-50%);
}

.icf-overlay-end {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icf-overlay-card {
    background: rgba(10, 9, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(176, 137, 104, 0.2);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    max-width: 380px;
}

.icf-overlay-card .icf-overlay-num {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

.icf-overlay-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
    color: #f5efe6;
    margin-bottom: 8px;
}

.icf-overlay-card p {
    font-size: clamp(13px, 1.1vw, 16px);
    color: rgba(245, 239, 230, 0.6);
    line-height: 1.7;
}

.icf-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--accent);
    color: #0a0908;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    pointer-events: all;
    transition: background 0.4s ease, transform 0.4s ease;
}

.icf-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Scroll hint */
.icf-scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.icf-scroll-hint.visible {
    opacity: 1;
}

.icf-scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

.icf-scroll-hint span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.4);
}

/* ICF overlays on mobile — bottom-anchored, no clipping */
@media (max-width: 768px) {
    .icf-overlay-card {
        max-width: calc(100vw - 32px);
        padding: 18px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 9, 8, 0.88);
        border-radius: 14px;
    }

    .icf-overlay-intro,
    .icf-overlay-exterior,
    .icf-overlay-enter,
    .icf-overlay-inside {
        top: auto;
        bottom: 80px;
        left: 16px;
        right: 16px;
        transform: none;
    }

    .icf-overlay-end {
        top: auto;
        bottom: 80px;
        left: 16px;
        right: 16px;
        transform: none;
        align-items: flex-start;
        text-align: left;
    }

    .icf-progress {
        right: 12px;
    }
}



/* ==================== TEAM SECTION ==================== */
.team {
    position: relative;
    z-index: 10;
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    box-shadow: var(--shadow-md);
}

.team-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.team-card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
    filter: grayscale(30%);
}

.team-card:hover .team-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(42, 33, 24, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.team-card:hover .team-card-overlay {
    transform: translateY(0);
}

.team-card-overlay p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.team-card-info {
    padding: 20px 24px;
}

.team-card-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card-info p {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.team-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 100px;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: clamp(120px, 16vw, 240px) 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background: #191514;
    text-align: center;
}

.cta-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(200px, 30vw, 500px);
    font-weight: 700;
    color: rgba(176, 137, 104, 0.04);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.cta-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.cta-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.cta-eyebrow span:last-child {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #f5efe6;
}

.cta-title .text-accent {
    color: var(--accent-light);
}

.cta-text {
    font-size: clamp(14px, 1.2vw, 18px);
    color: rgba(245, 239, 230, 0.5);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    color: rgba(245, 239, 230, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(245, 239, 230, 0.2);
    border-radius: 100px;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-outline-light:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #191514;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-item {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.contact-info-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    display: block;
    margin-bottom: 8px;
}

.contact-info-value {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

a.contact-info-value:hover {
    color: var(--accent);
}

.contact-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.social-link:hover {
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
    resize: none;
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 14px;
    color: var(--gray);
    pointer-events: none;
    transition: top var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    border: none;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand {
    position: relative;
}

.footer-logo-big {
    font-family: var(--font-heading);
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 0.9;
    display: block;
    letter-spacing: -0.04em;
    transition: color 0.5s ease;
}

.footer-brand:hover .footer-logo-big {
    color: var(--accent);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 20px;
    max-width: 280px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-nav span {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-credit {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

/* Character split reveal */
.char-reveal .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    transform-origin: center top;
}

/* Line mask reveal */
.line-reveal .line {
    overflow: hidden;
}
.line-reveal .word {
    display: inline-block;
    transform: translateY(105%);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    /* Show hamburger, hide nav links on tablets */
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .nav {
        padding: 20px 0;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .glass-panel:hover .glass-panel-inner {
        transform: none;
    }

    .glass-slide img {
        height: clamp(280px, 50vw, 400px);
    }

    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .about-stat-divider {
        display: none;
    }

    .about-stat {
        text-align: center;
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-title {
        margin-bottom: 40px;
    }
    
    .service-item {
        grid-template-columns: 48px 1fr 40px;
        gap: 16px;
        padding: 32px 0;
    }

    .service-item:hover {
        padding: 32px 16px;
    }
    
    .service-arrow {
        width: 40px;
        height: 40px;
    }

    /* Hero mobile: fullscreen immersive — image as background, text overlaid */
    .hero {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        position: relative;
        background: transparent;
    }

    /* Kill the rose-gold gradient shimmer on mobile */
    .hero::before {
        display: none;
    }

    .hero-right {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        min-height: 0;
        order: -1;
        z-index: 1;
    }

    /* Ensure image is visible on mobile without JS animation */
    .hero-image-inner img {
        opacity: 1;
        transform: scale(1);
    }

    /* Subtle bottom gradient — just enough for text, NO solid color */
    .hero-right::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
        z-index: 3;
        pointer-events: none;
    }

    /* Hide dark overlay on right side */
    .hero-right::after {
        display: none;
    }

    .hero-wave {
        display: none;
    }

    .hero-left {
        width: 100%;
        min-height: auto;
        padding: 0 var(--container-padding) 60px;
        margin-top: auto;
        position: relative;
        z-index: 5;
    }

    .hero-left::before {
        display: none;
    }

    .hero-title {
        font-size: clamp(38px, 9vw, 56px);
        color: #f5efe6;
        text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 6px rgba(0,0,0,0.4);
    }

    .hero-desc {
        max-width: 100%;
        color: rgba(245, 239, 230, 0.9);
        text-shadow: 0 1px 12px rgba(0,0,0,0.5);
    }

    .hero-tag-text,
    .hero-tag-dot {
        color: rgba(245, 239, 230, 0.8);
    }

    .hero-tag {
        text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    }

    .hero-tag-dot {
        background: var(--accent);
    }

    .hero-scroll {
        display: none;
    }

    .hero-link {
        color: #f5efe6;
        border-color: rgba(245, 239, 230, 0.3);
    }

    .hero-image-badge {
        background: rgba(25, 21, 20, 0.45);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(245, 239, 230, 0.2);
        color: rgba(245, 239, 230, 0.85);
    }

    /* Mosaic: single column on mobile */
    .cases-row {
        grid-template-columns: 1fr !important;
    }

    /* Gallery items smaller */
    .gallery-item {
        min-width: 70vw;
    }

    /* Section label tracking */
    .section-label-text {
        letter-spacing: 0.12em;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .team-card-image {
        height: 200px;
    }

    .team-card-info {
        padding: 16px;
    }

    .team-card-info h3 {
        font-size: 15px;
    }

    .team-card-info p {
        font-size: 12px;
    }

    .team-card-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .team-card-overlay {
        display: none;
    }
    
    .about-col-left {
        perspective: none;
    }

    .glass-slide img {
        height: clamp(240px, 60vw, 360px);
    }

    .glass-panel-frame {
        padding: 4px;
        border-radius: 14px;
    }

    .glass-carousel {
        border-radius: 10px;
    }

    .glass-slide img {
        border-radius: 10px;
    }

    /* Keep subtle glass reflection on mobile, only remove heavy effects */
    .glass-flare,
    .glass-depth {
        display: none;
    }

    .glass-reflection {
        opacity: 0.4;
    }

    /* Maintain glass panel premium shadow on mobile */
    .glass-panel-frame {
        box-shadow:
            0 16px 48px -8px rgba(0, 0, 0, 0.15),
            0 4px 16px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat-num {
        font-size: 40px;
    }

    .about-marquee-track span {
        font-size: clamp(20px, 5vw, 28px);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    
    .service-item {
        grid-template-columns: 36px 1fr 40px;
        gap: 14px;
        padding: 24px 0;
    }

    /* Active/touch state for services on mobile */
    .service-item:active {
        padding: 24px 12px;
    }

    .service-item:active::before {
        opacity: 1;
        transform: scaleX(1);
    }

    .service-item:active .service-title {
        color: var(--accent);
    }

    .service-item:active .service-arrow {
        border-color: var(--accent);
        color: var(--accent);
        transform: rotate(-45deg);
    }

    .service-item:active .service-line::after {
        width: 100%;
    }
    
    .service-num {
        font-size: 12px;
    }

    .service-title {
        font-size: clamp(18px, 4.5vw, 24px);
    }

    .service-desc {
        font-size: 13px;
        margin-top: 6px;
        line-height: 1.65;
    }
    
    .service-arrow {
        width: 40px;
        height: 40px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-arrow svg {
        width: 16px;
        height: 16px;
    }

    /* Performance: remove will-change on mobile to free GPU memory */
    .hero-image-inner,
    .hero-image-inner img,
    .cases-item-img,
    .cases-item,
    .gallery-item {
        will-change: auto !important;
    }

    /* Reduce nav blur on mobile for better scroll perf */
    .nav.nav-scrolled {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .cta-title {
        font-size: clamp(28px, 7vw, 48px);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Footer brand emphasis on mobile */
    .footer-logo-big {
        font-size: clamp(56px, 16vw, 80px);
    }

    .footer-tagline {
        font-size: 13px;
        margin-top: 12px;
    }

    .footer-col-title {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .footer-nav a,
    .footer-nav span {
        font-size: 13px;
        padding: 2px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-buttons .btn-primary {
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 18px 32px;
    }

    .cta-buttons .btn-outline-light {
        justify-content: center;
        width: auto;
        align-self: center;
        text-align: center;
        border: none;
        padding: 8px 0;
        font-size: 14px;
        color: rgba(245, 239, 230, 0.5);
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .cta-buttons .btn-outline-light:hover {
        background: transparent;
        color: var(--accent);
        border: none;
    }

    /* Hero: inherit fullscreen from 968px, no overrides needed */

    /* Mosaic: single column on mobile */
    .cases-row {
        grid-template-columns: 1fr !important;
    }

    .cases-item {
        height: auto !important;
    }

    .cases-item-img {
        height: clamp(160px, 28vw, 220px) !important;
    }

    .cases-center-title span {
        font-size: clamp(24px, 8vw, 40px);
    }

    /* Technology immersive */
    .icf-overlay-title {
        font-size: clamp(28px, 7vw, 44px);
    }

    .icf-overlay-card {
        padding: 20px;
        max-width: 85vw;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 9, 8, 0.88);
    }

    /* Gallery items: almost full width */
    .gallery-item {
        min-width: 80vw;
    }

    .gallery-item img {
        height: clamp(220px, 45vw, 320px);
    }

    /* Contact section */
    .contact-title {
        font-size: clamp(28px, 7vw, 40px);
        margin-bottom: 36px;
    }

    .contact-social {
        justify-content: flex-start;
    }

    .social-link {
        padding: 12px 20px;
        min-height: 44px;
    }

    /* Nav mobile */
    .nav {
        padding: 16px 0;
    }

    .nav-cta {
        padding: 12px 20px;
        font-size: 11px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Scroll progress hidden on mobile */
    .scroll-progress {
        display: none;
    }

    /* Section padding reduction */
    .section {
        padding: clamp(60px, 10vw, 120px) 0;
    }

    /* About values padding */
    .about-values-section {
        padding-top: clamp(40px, 6vw, 60px);
    }

    /* Back to top — Apple HIG 44px min */
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }

    /* Submit button full width on mobile */
    .btn-submit {
        align-self: stretch;
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    /* Technology section reduced scroll on mobile */
    .technology-immersive {
        height: 340vh;
    }

    /* Form inputs — prevent iOS zoom */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    /* Footer safe area bottom */
    .footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    /* Gallery caption readability */
    .gallery-item-caption {
        padding: 16px;
    }

    /* Gallery: native scroll on mobile, no pin */
    .gallery-section {
        padding: clamp(48px, 8vw, 80px) 0;
        position: relative;
    }

    .gallery-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 16px;
    }

    .gallery-wrapper::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        scroll-snap-align: start;
    }

    /* Gallery scroll indicator dots */
    .gallery-section::after {
        content: '← arraste →';
        display: block;
        text-align: center;
        font-size: 11px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-top: 20px;
        opacity: 0.6;
    }

    /* Hero image: show building, not sky */
    .hero-image-inner img {
        object-position: center 40%;
    }

    /* Form inputs: subtle background for clarity */
    .form-group input,
    .form-group textarea {
        background: rgba(42, 33, 24, 0.03);
        border-radius: 8px 8px 0 0;
        padding: 16px 12px 12px;
    }

    /* Service descriptions: better contrast */
    .service-desc {
        opacity: 1;
    }

    /* Hero desc: slightly larger for readability */
    .hero-desc {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Active states for touch devices — premium tap feedback */
    .team-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-lg);
    }

    .cases-item:active .cases-item-img img {
        transform: scale(1.04);
    }

    .gallery-item:active {
        transform: scale(0.98);
    }

    /* Social links touch state */
    .social-link:active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        transform: scale(0.96);
    }

    /* Navigation buttons touch targets */
    .nav-menu-btn {
        padding: 12px;
    }

    /* Contact form: more breathing room */
    .contact-form {
        gap: 28px;
    }

    .form-group input,
    .form-group textarea {
        padding: 18px 12px 14px;
    }
}

@media (max-width: 540px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Hide CTA button on small phones — accessible via menu */
    .nav-cta {
        display: none !important;
    }

    .hero-title {
        font-size: clamp(34px, 9vw, 46px);
    }

    .hero-left {
        padding: 0 var(--container-padding) 48px;
    }
    
    .hero-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 32px;
    }

    .hero-image-badge {
        padding: 12px 16px;
    }

    /* Team: 2 columns compact cards on small mobile for visual rhythm */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-card {
        border-radius: 14px;
    }

    .team-card-image {
        height: 160px;
        border-radius: 14px 14px 0 0;
    }

    .team-card-info {
        padding: 14px;
    }

    .team-card-info h3 {
        font-size: 14px;
    }

    .team-card-info p {
        font-size: 11px;
    }

    .team-card-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    /* Cases: single column on small mobile */
    .cases-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .cases-item-img {
        height: clamp(180px, 45vw, 260px) !important;
    }

    .cases-center-title {
        display: none;
    }

    .cases-item-info {
        padding: 8px 10px !important;
    }

    .cases-item-num {
        font-size: 10px;
    }

    .cases-item-name {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    /* Glass panel simplified */
    .glass-panel-bottom {
        padding: 12px 4px 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .glass-info-year {
        font-size: 22px;
    }

    .glass-arrow {
        width: 44px;
        height: 44px;
    }

    /* ICF — significantly reduced scroll on small mobile */
    .technology-immersive {
        height: 300vh;
    }

    .icf-overlay-card {
        max-width: calc(100vw - 32px);
        padding: 16px;
        box-sizing: border-box;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 9, 8, 0.9);
    }

    /* Gallery */
    .gallery-item {
        min-width: 85vw;
    }

    /* About stats 2x2 grid */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-stat-num {
        font-size: 36px;
    }

    .about-stat-label {
        font-size: 10px;
        margin-top: 4px;
    }

    .about-stat-plus,
    .about-stat-suffix {
        font-size: 16px;
    }

    /* Mobile menu refinement */
    .mobile-link {
        font-size: clamp(28px, 8vw, 48px);
    }

    /* CTA section tighter */
    .cta-section {
        padding: clamp(80px, 14vw, 160px) 0;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 13px;
    }

    /* ICF overlays — ensure text fits on small screens */
    .icf-overlay-intro {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 80px;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
        transform: none;
    }

    .icf-overlay-title {
        font-size: clamp(22px, 6.5vw, 32px);
    }

    .icf-overlay-sub {
        font-size: 12px;
    }

    .icf-overlay-end {
        top: auto;
        bottom: 80px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
        transform: none;
        align-items: flex-start;
        text-align: left;
    }

    .icf-overlay-exterior,
    .icf-overlay-enter,
    .icf-overlay-inside {
        top: auto;
        bottom: 80px;
        left: 16px;
        right: 16px;
        transform: none;
    }

    .icf-overlay-card {
        max-width: 100%;
        width: 100%;
        padding: 14px;
        box-sizing: border-box;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 9, 8, 0.9);
        border-radius: 14px;
    }

    .icf-overlay-card h3 {
        font-size: 15px;
    }

    .icf-overlay-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .icf-overlay-card .icf-overlay-num {
        font-size: 28px;
    }

    /* Scroll hint closer in */
    .icf-scroll-hint {
        bottom: calc(28px + env(safe-area-inset-bottom));
    }

    /* About desc full width */
    .about-desc p {
        font-size: 14px;
    }

    /* Contact info on small screens */
    .contact-info-value {
        font-size: 18px;
        word-break: break-word;
    }

    /* Contact social links — better tap feedback */
    .social-link {
        padding: 14px 22px;
        min-height: 48px;
        font-size: 12px;
    }

    .social-link:active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        transform: scale(0.97);
    }

    /* Form label spacing fix */
    .form-group label {
        top: 18px;
        font-size: 13px;
    }

    .form-group input:focus ~ label,
    .form-group input:not(:placeholder-shown) ~ label,
    .form-group textarea:focus ~ label,
    .form-group textarea:not(:placeholder-shown) ~ label {
        top: -10px;
        font-size: 10px;
    }

    /* About values mobile spacing */
    .about-value {
        gap: 14px;
        padding-bottom: 24px;
    }

    .about-value-num {
        font-size: 12px;
        min-width: 24px;
    }

    .about-value-content h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .about-value-content p {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* ==================== DEPTH — SECTION TRANSITIONS ==================== */
/* Alternating section backgrounds create visual rhythm / depth */
.projects,
.technology,
.team,
.contact {
    position: relative;
}

.projects::before,
.technology::before,
.team::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Image progressive reveal */
.img-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.4s var(--ease-out-expo);
}
.img-reveal.is-revealed {
    clip-path: inset(0 0 0% 0);
}

/* Scroll velocity skew on images */
.velocity-skew {
    will-change: transform;
}

/* Soft inner-shadow on alternating sections for depth illusion */
.services,
.gallery-section {
    box-shadow: inset 0 1px 0 var(--border-light), inset 0 -1px 0 var(--border-light);
}

/* ==================== NOISE GRAIN EFFECT ==================== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.045;
    pointer-events: none !important;
    z-index: 99998;
}

/* Hide grain on mobile for performance */
@media (max-width: 768px) {
    body::after {
        display: none;
    }
}

/* ==================== PAGE TRANSITION ==================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: 99999;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* ==================== SKIP TO CONTENT ==================== */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 10000;
    transition: none;
    pointer-events: none;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(176, 137, 104, 0.3);
    border: none;
}

.back-to-top::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg) translateY(3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(176, 137, 104, 0.4);
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    .hero-word {
        transform: none;
    }

    .hero-image-inner {
        clip-path: none;
    }

    .cases-item .cases-item-img {
        clip-path: none;
    }

    .cases-item .cases-item-info {
        opacity: 1;
        transform: none;
    }
}
