/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 120px;
    opacity: 0;
    animation: preloaderFade 1s ease 0.2s forwards;
}

.preloader-bar {
    width: 120px;
    height: 1px;
    background: var(--gray-dark);
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--white);
    animation: preloaderProgress 2s ease forwards;
}

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

@keyframes preloaderProgress {
    to { width: 100%; }
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s var(--transition), height 0.3s var(--transition),
                border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--transition);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.8);
}

@media (max-width: 1024px) {
    .cursor { display: none; }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.6s var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    padding: 1rem clamp(2rem, 5vw, 4rem);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .logo img {
    height: 36px;
    filter: brightness(0) invert(1);
    transition: opacity 0.4s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li { position: relative; }

.nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 2px;
    position: static;
    background: none;
    width: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 260px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.8rem;
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.15em !important;
}

.dropdown-menu a::after { display: none !important; }

.dropdown-menu a:hover {
    color: var(--white) !important;
    background: rgba(255,255,255,0.04);
}

.dropdown-menu .sub-label {
    font-size: 0.55rem !important;
    color: var(--gray-muted) !important;
    padding: 0.2rem 1.8rem;
    pointer-events: none;
    letter-spacing: 0.1em !important;
}

.nav-cta {
    padding: 0.5rem 1.5rem !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--white) !important;
    color: var(--black) !important;
    border-color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.4s var(--transition);
    transform-origin: center center;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6.5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6.5px);
}

/* Hide desktop nav-links on mobile — we use the new fullscreen menu instead */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none !important; }
}

/* ========== FULLSCREEN MOBILE MENU ========== */
.mobile-menu {
    display: none; /* Only shown on mobile via JS */
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
}

.mobile-menu.open {
    pointer-events: auto;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open .mobile-menu-bg {
    transform: scaleY(1);
}

.mobile-menu-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2.5rem 3rem;
    opacity: 0;
    transition: opacity 0.3s ease 0s;
}

.mobile-menu.open .mobile-menu-content {
    opacity: 1;
    transition: opacity 0.4s ease 0.35s;
}

/* Menu items */
.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    flex-wrap: wrap;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease;
}

.mobile-menu.open .mobile-menu-item {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.open .mobile-menu-item[data-index="0"] { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-item[data-index="1"] { transition-delay: 0.32s; }
.mobile-menu.open .mobile-menu-item[data-index="2"] { transition-delay: 0.39s; }
.mobile-menu.open .mobile-menu-item[data-index="3"] { transition-delay: 0.46s; }

/* Closing animation — all at once */
.mobile-menu:not(.open) .mobile-menu-item {
    transition-delay: 0s !important;
    transition-duration: 0.25s;
}

.mobile-menu-number {
    font-family: var(--sans);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.2);
    min-width: 20px;
    font-weight: 400;
}

.mobile-menu-link {
    font-family: var(--serif);
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.1;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.mobile-menu-link:active {
    color: rgba(255,255,255,0.5);
}

/* Expandable arrow */
.mobile-menu-expandable {
    position: relative;
    padding-right: 2rem;
}

.mobile-menu-expandable::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 200;
    color: rgba(255,255,255,0.3);
    transition: transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-item.expanded .mobile-menu-expandable::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--white);
}

/* Submenu */
.mobile-submenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), padding 0.3s ease;
    padding: 0 0 0 calc(20px + 1.2rem);
}

.mobile-menu-item.expanded .mobile-submenu {
    max-height: 300px;
    padding-top: 0.5rem;
    padding-bottom: 0.3rem;
}

.mobile-submenu a {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 0.65rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.mobile-submenu a:active {
    color: var(--white);
}

/* Menu footer */
.mobile-menu-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.5s, opacity 0.5s ease 0.5s;
}

.mobile-menu.open .mobile-menu-footer {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu:not(.open) .mobile-menu-footer {
    transition-delay: 0s !important;
    transition-duration: 0.2s;
}

.mobile-menu-cta {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    padding: 1rem 3rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-cta:active {
    background: rgba(255,255,255,0.8);
}

.mobile-menu-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
}

.mobile-menu-info a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-info a:active {
    color: var(--white);
}

.mobile-menu-divider {
    color: rgba(255,255,255,0.15);
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.1) 40%,
        rgba(10,10,10,0.6) 80%,
        rgba(10,10,10,0.95) 100%
    );
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 clamp(2rem, 8vw, 10rem);
    max-width: 900px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
    font-weight: 400;
    overflow: hidden;
}

.hero-tag-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUp 1s var(--transition) 2.2s forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
    display: inline-block;
}

.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.15em;
}

.hero h1 .word-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUp 1s var(--transition) forwards;
}

.hero h1 .word:nth-child(1) .word-inner { animation-delay: 2.3s; }
.hero h1 .word:nth-child(2) .word-inner { animation-delay: 2.4s; }
.hero h1 .word:nth-child(3) .word-inner { animation-delay: 2.5s; }
.hero h1 .word:nth-child(4) .word-inner { animation-delay: 2.6s; }
.hero h1 .word:nth-child(5) .word-inner { animation-delay: 2.7s; }
.hero h1 .word:nth-child(6) .word-inner { animation-delay: 2.8s; }

@keyframes slideUp {
    to { transform: translateY(0); }
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.45);
    max-width: 480px;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease 3.2s forwards;
}

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

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 3.5s forwards;
}

.hero-scroll span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.8rem;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-scroll .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    animation: scrollPulse 2.5s ease infinite;
}

@keyframes scrollPulse {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Side markers */
.hero-side-text {
    position: absolute;
    z-index: 3;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    writing-mode: vertical-rl;
}

.hero-side-left {
    left: 2rem;
    bottom: 3rem;
}

.hero-side-right {
    right: 2rem;
    bottom: 3rem;
}

/* ========== MARQUEE ========== */
.marquee-section {
    padding: 2.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: var(--black);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    color: rgba(255,255,255,0.08);
    white-space: nowrap;
    padding: 0 2rem;
    letter-spacing: 0.05em;
}

.marquee-track span em {
    font-style: italic;
    color: rgba(255,255,255,0.15);
}

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

/* ========== ABOUT / INTRO ========== */
.about {
    background: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: center;
}

.about-text .section-label { margin-bottom: 2rem; }

.about-text .section-title {
    margin-bottom: 2rem;
    color: var(--white);
}

.about-text p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    filter: grayscale(70%) contrast(1.05);
    transition: filter 0.8s ease, transform 0.8s var(--transition);
}

.about-image:hover img {
    filter: grayscale(30%) contrast(1.05);
    transform: scale(1.03);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(10,10,10,0.5));
    pointer-events: none;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

/* ========== SERVICES ========== */
.services {
    background: var(--off-white);
    color: var(--black);
}

.services .section-label { color: var(--gray-muted); }
.services .section-label::before { background: var(--gray-muted); }
.services .section-title { color: var(--black); }

.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.services-header p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--gray-muted);
    font-weight: 300;
    margin-top: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-card {
    padding: 3.5rem 2.5rem;
    border-right: 1px solid rgba(0,0,0,0.07);
    transition: all 0.6s var(--transition);
    cursor: pointer;
    position: relative;
    display: block;
    color: inherit;
    overflow: hidden;
}

.service-card:last-child { border-right: none; }

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--black);
    transition: height 0.6s var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    color: var(--white);
}

.service-card .card-number {
    font-family: var(--serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    transition: color 0.5s ease;
}

.service-card:hover .card-number { color: rgba(255,255,255,0.1); }

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    transition: color 0.5s ease;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--gray-muted);
    font-weight: 300;
    transition: color 0.5s ease;
}

.service-card:hover p { color: rgba(255,255,255,0.5); }

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s ease;
}

.service-card .card-link::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.service-card:hover .card-link::after {
    transform: translateX(5px);
}

/* ========== EXPERIENCE / TIMELINE ========== */
.experience {
    background: var(--black);
    overflow: hidden;
}

.experience-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 6rem;
}

.timeline {
    display: flex;
    position: relative;
    padding: 0 clamp(2rem, 5vw, 6rem);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: clamp(2rem, 5vw, 6rem);
    right: clamp(2rem, 5vw, 6rem);
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 1.5rem;
}

.timeline-step .step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    background: var(--black);
    position: relative;
    z-index: 1;
    transition: all 0.5s var(--transition);
}

.timeline-step:hover .step-number {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.timeline-step h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.timeline-step p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--gray-muted);
    font-weight: 300;
}

/* ========== VIDEO SECTION ========== */
.video-section {
    background: var(--black-soft);
    text-align: center;
}

.video-section .section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.video-section p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--gray);
    font-weight: 300;
    margin-top: 1rem;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.video-wrapper video {
    width: 100%;
    display: block;
    filter: contrast(1.05);
}

/* ========== LARGE IMAGE PARALLAX ========== */
.parallax-image-section {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.parallax-image-section img {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.5);
}

.parallax-image-section .overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.parallax-image-section .overlay-text h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--white);
    text-align: center;
    letter-spacing: -0.02em;
}

.parallax-image-section .overlay-text h2 em {
    font-style: italic;
    display: block;
}

/* ========== TEAM ========== */
.team {
    background: var(--black);
}

.team-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 clamp(2rem, 5vw, 6rem);
}

.team-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(80%) contrast(1.05);
    transition: all 0.8s var(--transition);
}

.team-card:hover img {
    filter: grayscale(30%) contrast(1.05);
    transform: scale(1.05);
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(10,10,10,0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s var(--transition);
}

.team-card:hover .team-card-info {
    transform: translateY(0);
    opacity: 1;
}

.team-card-info h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.team-card-info span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--gray);
    text-transform: uppercase;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--white);
    color: var(--black);
    text-align: center;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.cta-section .section-label { color: var(--gray-muted); }
.cta-section .section-label::before { background: var(--gray-muted); }
.cta-section .section-title { color: var(--black); }

.cta-section p {
    max-width: 450px;
    margin: 1.5rem auto 2.5rem;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--gray-muted);
    font-weight: 300;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.4);
    padding: 5rem clamp(2rem, 5vw, 6rem) 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.footer-col h4 {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
}

.footer-social { display: flex; gap: 1.5rem; }

.footer-social a {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.footer-social a:hover { color: var(--white); }

/* ========== COMING SOON MODAL ========== */
.coming-soon-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.coming-soon-overlay.active { display: flex; }

.coming-soon-box {
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4rem;
    max-width: 480px;
    text-align: center;
    position: relative;
}

.coming-soon-box .close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-muted);
    transition: color 0.3s;
}

.coming-soon-box .close-btn:hover { color: var(--white); }

.coming-soon-box .cs-tag {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.coming-soon-box h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--white);
}

.coming-soon-box p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--gray);
    font-weight: 300;
}

/* ========== SERVICE INTRO (carillas) ========== */
.service-intro-section {
    background: var(--black);
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: center;
}

.service-intro-text {
    max-width: 520px;
}

.service-intro-img {
    overflow: hidden;
}

.service-intro-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(60%) contrast(1.05);
    transition: filter 0.6s ease, transform 0.8s var(--transition);
}

.service-intro-img:hover img {
    filter: grayscale(20%) contrast(1.05);
    transform: scale(1.03);
}

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.35) contrast(1.2);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem clamp(2rem, 5vw, 6rem);
    width: 100%;
}

.page-hero .hero-tag {
    color: var(--gray);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    font-weight: 400;
}

.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* ========== SERVICE DETAIL ========== */
.service-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: center;
    background: var(--black);
}

.service-intro p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.service-intro img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(60%) contrast(1.05);
    transition: filter 0.6s ease;
}

.service-intro img:hover {
    filter: grayscale(20%);
}

.service-types { background: var(--black-soft); }

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 4rem;
}

.type-card {
    padding: 3rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s var(--transition);
}

.type-card:last-child { border-right: none; }

.type-card:hover {
    background: rgba(255,255,255,0.02);
}

.type-card .type-number {
    font-family: var(--serif);
    font-size: 3rem;
    color: rgba(255,255,255,0.08);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.type-card h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--white);
}

.type-card p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--gray);
    font-weight: 300;
}

.service-video {
    background: var(--black);
    text-align: center;
}

/* ========== CONTACT PAGE — REDESIGNED ========== */
.contact-hero-section {
    background: var(--black);
    text-align: center;
    padding: 10rem 0 3rem;
}

.contact-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero-desc {
    max-width: 450px;
    margin: 1rem auto 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--gray);
    font-weight: 300;
}

.contact-body {
    background: var(--black);
    padding: 2rem 0 clamp(5rem, 10vw, 8rem);
}

.contact-layout {
    max-width: 900px;
    margin: 0 auto;
}

/* Form panel */
.contact-form-panel {
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.06);
    padding: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
}

.contact-panel-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--white);
    text-align: center;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
}

.form-group { position: relative; }

.form-group label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-muted);
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-muted);
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.contact-form > .btn {
    align-self: center;
    margin-top: 0.5rem;
}

/* Info cards row */
.contact-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 3rem;
}

.contact-info-card {
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background 0.4s ease;
}

.contact-info-card:last-child { border-right: none; }
.contact-info-card:hover { background: rgba(255,255,255,0.02); }

.contact-info-icon {
    color: var(--gray);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.contact-info-label {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-info-value {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.6;
    transition: color 0.3s ease;
    display: block;
}

a.contact-info-value:hover { color: var(--gray-light); }

/* Map */
.contact-map {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.1) invert(0.95);
    transition: filter 0.4s;
}

.contact-map:hover iframe { filter: grayscale(0.5) contrast(1) invert(0); }

/* ========== BEFORE / AFTER SLIDER ========== */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ba-slider-wrap {
    text-align: center;
}

.ba-case-title {
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-muted);
    margin-top: 1.2rem;
    letter-spacing: 0.02em;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid rgba(0,0,0,0.08);
}

.ba-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    z-index: 2;
    width: 50%;
    overflow: hidden;
}

.ba-before img {
    width: auto;
    min-width: 100%;
    /* Make the before image fill the full slider width, clipped by the container */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.ba-after {
    z-index: 1;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle-line {
    width: 2px;
    flex: 1;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-handle-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    flex-shrink: 0;
    transition: transform 0.3s var(--transition);
}

.ba-slider:hover .ba-handle-circle {
    transform: scale(1.15);
}

.ba-label {
    position: absolute;
    bottom: 1rem;
    z-index: 4;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    pointer-events: none;
}

.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card { border-bottom: 1px solid rgba(0,0,0,0.07); }
    .service-card:nth-child(2) { border-right: none; }
    .types-grid { grid-template-columns: 1fr; }
    .type-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image img { height: 400px; }
    .ba-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 0 clamp(2rem, 5vw, 6rem); }
    .team-card { aspect-ratio: 3/4; }
    .service-intro-grid { grid-template-columns: 1fr; }
    .service-intro-img img { height: 400px; }
    .contact-info-row { grid-template-columns: 1fr 1fr; }
    .contact-info-card:nth-child(2) { border-right: none; }
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 768px) {
    /* Hero */
    .hero { min-height: 100svh; }
    .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-desc { font-size: 0.88rem; max-width: 100%; }
    .hero-buttons { flex-direction: column; gap: 0.8rem; }
    .hero-buttons .btn { text-align: center; justify-content: center; width: 100%; }
    .hero-side-text { display: none; }
    .hero-content { padding: 0 1.5rem; }
    .hero-scroll { bottom: 2rem; }

    /* Marquee */
    .marquee-section { padding: 1.5rem 0; }
    .marquee-track span { font-size: 1.2rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr !important; gap: 2.5rem; }
    .about-image img { height: 350px; }
    .stats-row { flex-direction: row; gap: 1.5rem; flex-wrap: wrap; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.55rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr !important; }
    .service-card { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.07); padding: 2.5rem 1.5rem; }
    .service-card:last-child { border-bottom: none; }
    .service-card .card-number { font-size: 2.5rem; margin-bottom: 1rem; }
    .services-header { margin-bottom: 3rem; }

    /* Parallax */
    .parallax-image-section { height: 45vh; }
    .parallax-image-section .overlay-text h2 { font-size: clamp(1.8rem, 6vw, 3rem); padding: 0 1.5rem; }

    /* Timeline */
    .timeline { flex-direction: column; gap: 0; padding: 0 1.5rem !important; }
    .timeline::before { display: none; }
    .timeline-step {
        text-align: left;
        display: grid;
        grid-template-columns: 52px 1fr;
        grid-template-rows: auto auto;
        gap: 0 1.2rem;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .timeline-step:last-child { border-bottom: none; }
    .timeline-step .step-number {
        width: 52px;
        height: 52px;
        font-size: 1rem;
        margin: 0;
        grid-row: 1 / 3;
        align-self: center;
    }
    .timeline-step h4 { margin-bottom: 0.15rem; font-size: 1rem; align-self: end; }
    .timeline-step p { font-size: 0.75rem; align-self: start; }

    /* Video */
    .video-wrapper { border: none; }

    /* Team */
    .team-grid { grid-template-columns: 1fr !important; gap: 1rem; padding: 0 1.5rem !important; }
    .team-card { aspect-ratio: 4/5; }
    .team-card-info { opacity: 1; transform: translateY(0); padding: 2rem; }

    /* Before/After */
    .ba-grid { grid-template-columns: 1fr !important; gap: 2rem; }
    .ba-slider { aspect-ratio: 4/3; }
    .ba-handle-circle { width: 38px; height: 38px; }

    /* Service detail (carillas) */
    .service-intro-grid { grid-template-columns: 1fr !important; gap: 2rem; }
    .service-intro-img img { height: 300px; }
    .types-grid { grid-template-columns: 1fr !important; }
    .type-card { padding: 2rem 1.5rem; }

    /* Page hero */
    .page-hero { height: 40vh; min-height: 300px; }
    .page-hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
    .page-hero-content { padding: 2.5rem 1.5rem; }

    /* Contact */
    .contact-hero-section { padding: 7rem 0 2rem; }
    .contact-hero-section .section-title { font-size: clamp(2rem, 7vw, 3.5rem); }
    .contact-form-panel { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-form > .btn { width: 100%; justify-content: center; }
    .contact-info-row { grid-template-columns: 1fr 1fr; }
    .contact-info-card { padding: 1.5rem 0.8rem; }
    .contact-info-card:nth-child(2) { border-right: none; }
    .contact-map { height: 220px; }

    /* CTA */
    .cta-section { padding: clamp(3rem, 8vw, 5rem) 0; }
    .cta-section .section-title { font-size: clamp(2rem, 7vw, 3rem); }
    .cta-section p { font-size: 0.88rem; }

    /* Footer */
    .footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-top { flex-direction: column; gap: 2.5rem; padding-bottom: 2.5rem; }
    .footer-links { flex-direction: column; gap: 1.5rem; }
    .footer-col h4 { margin-bottom: 0.8rem; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; font-size: 0.6rem; }

    /* Buttons */
    .btn { padding: 1rem 2.2rem; font-size: 0.6rem; }

    /* Section titles */
    .section-title { font-size: clamp(1.8rem, 6vw, 3rem); }
    .section-label { font-size: 0.55rem; letter-spacing: 0.3em; }

    /* Coming soon */
    .coming-soon-box { padding: 2.5rem 2rem; margin: 0 1rem; }
}

/* ========== RESPONSIVE — SMALL MOBILE ========== */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-tag { font-size: 0.5rem; }
    .stats-row { gap: 1rem; }
    .stat-number { font-size: 1.6rem; }
    .container { padding: 0 1.2rem; }
    .navbar { padding: 1.2rem 1.2rem; }
    .navbar.scrolled { padding: 0.8rem 1.2rem; }
    .navbar .logo img { height: 28px; }
    .footer-logo img { height: 24px; }
    .contact-info-row { grid-template-columns: 1fr; }
    .contact-info-card { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .contact-info-card:last-child { border-bottom: none; }
    .contact-form-panel { padding: 1.5rem 1.2rem; }
    .contact-panel-title { font-size: 1.3rem; }
    .timeline-step .step-number { width: 44px; height: 44px; font-size: 0.85rem; }
    .timeline-step { grid-template-columns: 44px 1fr; }
}
