:root {
    /* Refined Luxury Palette */
    --navy: #0A192F;
    --navy-light: #112240;
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --accent: #B0A483;
    /* Muted Champagne/Gold */
    --accent-dark: #8E836A;
    --text: #1F2937;
    --text-muted: #6B7280;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
    --radius: 2px;
    /* Minimalist sharp/soft blend */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
}

em {
    font-style: italic;
    color: var(--accent);
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Editorial Header */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
    border-radius: 50%;
    filter: grayscale(0.2);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s;
}

#main-header.scrolled .logo-text {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#main-header.scrolled .nav-links a {
    color: var(--text);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--accent) !important;
}

.nav-cta {
    padding: 0.7rem 1.4rem;
    /* Slightly smaller */
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    font-size: 0.75rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.7));
}

.hero-content {
    color: var(--white);
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.pre-title {
    display: block;
    font-size: 0.8rem;
    /* Scaled down */
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

#hero h1 {
    font-size: 5rem;
    /* Scaled down */
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.1rem;
    /* Scaled down */
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.8);
}

.hero-btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s var(--transition);
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-dark);
    z-index: -1;
    transition: left 0.5s var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(176, 164, 131, 0.3);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: left 0.5s var(--transition);
}

.btn-secondary:hover {
    border-color: var(--white);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover::before {
    left: 0;
}

/* General Section Styling */
.section-padding {
    position: relative;
    padding: 8rem 0;
    /* Reduced from 12rem */
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: -15%;
    /* Buffer to prevent detaching */
    left: 0;
    width: 100%;
    height: 130%;
    /* Full coverage for parallax */
    z-index: -1;
    will-change: transform;
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tag {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.tag.light {
    color: var(--accent);
}

h2 {
    font-size: 3.5rem;
    /* Scaled down from 4.8rem */
    line-height: 1.15;
    margin-bottom: 2rem;
}

h2.light {
    color: var(--white);
}

.bg-dark {
    background: var(--navy);
}

.bg-light {
    background: var(--off-white);
}

/* Philosophy */
#philosophy {
    color: var(--white);
}

#philosophy .bg-overlay {
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.6));
}

#philosophy h2 {
    color: var(--white);
    letter-spacing: -1px;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10rem;
    align-items: center;
}

.phil-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5rem;
    max-width: 550px;
    font-weight: 300;
}

.phil-stats {
    display: flex;
    gap: 4rem;
}

.stat {
    position: relative;
    padding-right: 4rem;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(176, 164, 131, 0.3);
}

.stat-n {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-l {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.img-frame {
    position: relative;
    width: 100%;
    padding: 2rem;
    border: 1px solid rgba(176, 164, 131, 0.2);
    animation: float 8s ease-in-out infinite;
}

.img-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.img-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.img-caption {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Portfolio Horizontal Hybrid */
.center-header {
    text-align: center;
    margin-bottom: 6rem;
}

.portfolio-scroll-container {
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
    cursor: grab;
}

.portfolio-track {
    display: flex;
    gap: 4.5rem;
    padding: 0 10vw;
    width: max-content;
}

.p-item {
    width: 280px;
    /* Further reduction */
    flex-shrink: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-item:hover {
    transform: scale(1.05);
}

.p-img-wrap {
    width: 100%;
    height: 380px;
    /* Further reduction */
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.p-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--transition);
}

.p-item:hover img {
    transform: scale(1.05);
}

.p-info h3 {
    font-size: 1.2rem;
    /* Scaled down */
    color: var(--white);
    margin-bottom: 0.3rem;
}

.p-info p {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.p-scroll-ui {
    text-align: center;
    margin-top: 5rem;
}

.p-scroll-bar {
    width: 250px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 2rem auto;
    position: relative;
}

.p-scroll-bar span {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: var(--accent);
}

.p-scroll-ui p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Services */
#services {
    color: var(--white);
    background: transparent;
    /* Force transparency to see background */
}

#services .bg-overlay {
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6));
}

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

.services-header h2 {
    color: var(--white);
}

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

.service-card {
    padding: 3rem 2.5rem;
    background: rgba(10, 25, 47, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--accent);
    background: rgba(10, 25, 47, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(176, 164, 131, 0.2);
}

/* Modern Glow Sweep */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.service-card:hover::before {
    left: 140%;
}

.s-img-wrap {
    width: 140px;
    height: 95px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.s-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.service-card:hover .s-img-wrap img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    /* Scaled down */
    margin-bottom: 1.3rem;
    color: var(--white);
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
#contact {
    color: var(--white);
}

#contact .bg-overlay {
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.7));
}

#contact h2 {
    color: var(--white);
}

#contact .contact-header p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-wrap {
    text-align: center;
}

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

.contact-form-card {
    max-width: 650px;
    /* Scaled down */
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem 3rem;
    /* Scaled down */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--text);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.f-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
}

.f-group input,
.f-group textarea,
.f-group select {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.3s;
    appearance: none;
    /* Modern select look */
}

.f-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.f-group input:focus,
.f-group textarea:focus,
.f-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 2rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--accent);
}

/* Footer */
#main-footer {
    padding: 8rem 0 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Global center */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6rem;
}

.f-brand {
    margin-bottom: 4rem;
}

.f-logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    /* Slightly larger */
    font-weight: 600;
    letter-spacing: 6px;
    /* More prestige */
    margin-bottom: 1.5rem;
}

.f-brand p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.f-links {
    display: flex;
    gap: 6rem;
    justify-content: center;
}

.f-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.f-col a {
    display: block;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.f-col a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.f-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 4rem;
    text-align: center;
}

/* Brand Carousel */
.footer-brands {
    width: 100%;
    padding: 3rem 0;
    overflow: hidden;
    background: var(--navy);
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brands-track {
    display: flex;
    width: max-content;
    gap: 8rem;
    animation: scrollBrands 30s linear infinite;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 1;
    white-space: nowrap;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.f-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Reveal Helpers (Visibility managed by JS in V12.6) */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-mask,
.reveal-blur {
    /* No initial hidden states in CSS for radical reliability */
    transition: filter 1.2s ease, transform 1.2s ease;
}

.photography-reveal {
    overflow: hidden;
}

.photography-reveal img {
    transform: scale(1.4);
    filter: brightness(0.5);
    transition: filter 1.2s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    #custom-cursor {
        display: none !important;
    }

    #hero h1 {
        font-size: 4.5rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .container {
        padding: 0 2rem;
    }

    #hero {
        height: 100dvh;
        display: flex;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s var(--transition);
        z-index: 1500;
        display: flex !important;
        /* Force display when active or transitioning */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a,
    #main-header.scrolled .nav-links a {
        font-size: 1.5rem;
        color: var(--white) !important;
    }

    .menu-toggle {
        display: block;
        z-index: 1600;
        position: relative;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.8rem;
        /* Increased from 2.2rem */
        margin-bottom: 1.5rem;
    }

    #hero p {
        font-size: 1.1rem;
        /* Increased from 0.95rem */
        margin-bottom: 2.5rem;
    }

    .hero-btn-group {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1.2rem 2rem;
        font-size: 0.85rem;
        /* Slightly larger */
        width: 100%;
        text-align: center;
    }

    h2 {
        font-size: 2.2rem !important;
        /* Increased from 1.8rem */
        margin-bottom: 2rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .phil-text p {
        font-size: 1.15rem;
        /* Increased from 1.1rem */
        margin-bottom: 3rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.7;
    }

    .phil-stats {
        flex-direction: column;
        gap: 2.5rem;
        /* Increased gap */
        align-items: center;
    }

    .stat {
        padding-right: 0;
        border-bottom: 1px solid rgba(176, 164, 131, 0.2);
        padding-bottom: 2.5rem;
        text-align: center;
        width: 100%;
    }

    .stat-n {
        font-size: 3.5rem;
        /* Significant increase from 1.8rem */
        font-weight: 600;
    }

    .stat-l {
        font-size: 0.9rem;
        /* Increased from 0.7rem */
        letter-spacing: 2px;
    }

    /* Global fix for word clipping */
    body {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: normal;
    }

    h1,
    h2,
    h3,
    p {
        overflow-wrap: break-word;
        word-wrap: break-word;
        line-height: 1.3 !important;
    }

    .img-frame {
        padding: 0.5rem;
    }

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

    .f-links {
        flex-direction: column;
        gap: 4rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 8rem;
    }

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

/* Back-to-Top */
#back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background: #0a1f44;
    color: #B0A483;
    border: 1px solid rgba(176, 164, 131, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    background: #B0A483;
    color: #ffffff;
    transform: translateY(-5px);
}

#back-to-top svg {
    width: 20px;
    height: 20px;
}