/* -------------------------------------------------------------
   DESIGN SYSTEM & VARIABLES (Apple Pacific Luxury Palette)
------------------------------------------------------------- */
:root {
    --bg-primary: #FBFBFB;       /* Sand White */
    --bg-secondary: #E5E9EC;     /* Muted Horizon Blue */
    --text-primary: #1C2B36;     /* Deep Pacific Navy */
    --text-secondary: #5A6B77;   /* Coastal Slate */
    --accent-gold: #C5A880;      /* Muted Gold Accent */
    --glass-bg: rgba(251, 251, 251, 0.7);
    --border-color: rgba(90, 107, 119, 0.15); /* Ultra-fine border color */
    
    /* Scroll animation defaults, updated by JS dynamically */
    --scroll-progress: 0;
    --hero-scale: 0.8;
    --hero-radius: 16px;
    --hero-opacity: 1;
    --hero-y: 0;
}

/* -------------------------------------------------------------
   BASE RESET & TYPOGRAPHY
------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom Serif Utilities */
.font-serif, .italic {
    font-family: 'Cormorant Garamond', Georgia, serif;
}
.italic {
    font-style: italic;
}

/* -------------------------------------------------------------
   CUSTOM CURSOR (Desktop Only)
------------------------------------------------------------- */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    
    a, button, .spec-cell, .logo-link, .nav-link, .audio-toggle {
        cursor: none;
    }
    
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
    }
    
    .custom-cursor-dot {
        position: absolute;
        width: 6px;
        height: 6px;
        background-color: #FFF;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    }
    
    .custom-cursor-ring {
        position: absolute;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.1s ease-out;
    }
    
    .custom-cursor-text {
        position: absolute;
        font-size: 8px;
        font-weight: 600;
        letter-spacing: 0.2em;
        color: #000;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Cursor Hover States */
    .custom-cursor.hovering .custom-cursor-ring {
        width: 65px;
        height: 65px;
        background-color: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(2px);
    }
    
    .custom-cursor.hovering .custom-cursor-dot {
        width: 10px;
        height: 10px;
    }
    
    .custom-cursor.view-more .custom-cursor-ring {
        width: 80px;
        height: 80px;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
    }
    
    .custom-cursor.view-more .custom-cursor-dot {
        opacity: 0;
    }
    
    .custom-cursor.view-more .custom-cursor-text {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

/* -------------------------------------------------------------
   LUXURY NAVIGATION
------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: var(--glass-bg);
    border-bottom: 0.5px solid var(--border-color);
    transition: transform 0.4s ease, background 0.4s ease;
}

.header-logo .logo-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

.nav-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-action .inquire-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 12px 28px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-action .inquire-btn:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   AMBIENT AUDIO LAYER
------------------------------------------------------------- */
.audio-toggle {
    position: fixed;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    border: 0.5px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 1000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: background 0.3s ease, border 0.3s ease;
}

.audio-toggle:hover {
    background: rgba(251, 251, 251, 0.95);
    border-color: rgba(90, 107, 119, 0.3);
}

.audio-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    width: 20px;
}

.audio-waves span {
    width: 2px;
    background-color: var(--text-primary);
    height: 100%;
    transform-origin: bottom;
    transform: scaleY(0.2);
    transition: transform 0.3s ease;
}

.audio-toggle.playing .audio-waves span:nth-child(1) {
    animation: bounceWave 0.9s ease infinite alternate;
}
.audio-toggle.playing .audio-waves span:nth-child(2) {
    animation: bounceWave 1.3s ease infinite alternate 0.2s;
}
.audio-toggle.playing .audio-waves span:nth-child(3) {
    animation: bounceWave 0.7s ease infinite alternate 0.4s;
}
.audio-toggle.playing .audio-waves span:nth-child(4) {
    animation: bounceWave 1.1s ease infinite alternate 0.1s;
}

@keyframes bounceWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

.audio-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-primary);
}

/* -------------------------------------------------------------
   HORIZON VIDEO EXPANSION HERO
------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    width: calc(var(--hero-scale) * 100%);
    height: calc(var(--hero-scale) * 100vh);
    border-radius: var(--hero-radius);
    overflow: hidden;
    transition: width 0.1s ease-out, height 0.1s ease-out, border-radius 0.1s ease-out;
    will-change: width, height, border-radius;
    z-index: 5;
    box-shadow: 0 30px 100px rgba(28, 43, 54, 0.15);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 43, 54, 0.25) 0%, rgba(28, 43, 54, 0.5) 100%);
    mix-blend-mode: multiply;
}

.hero-typography {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
    opacity: var(--hero-opacity);
    transform: translateY(var(--hero-y)) translateZ(0);
    will-change: opacity, transform;
    pointer-events: none;
    color: #FFF;
}

.hero-tagline {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(60px, 9vw, 140px);
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-footer-text {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
}

.hero-footer-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.05em;
    max-width: 400px;
    line-height: 1.4;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.scroll-indicator span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: #FFF;
    animation: scrollSlide 2s infinite ease-in-out;
}

@keyframes scrollSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* -------------------------------------------------------------
   SLIDER INTRO AND LAYOUT
------------------------------------------------------------- */
.slider-section {
    position: relative;
    width: 100%;
    padding: 160px 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.slider-intro {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 5%;
}

.section-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

/* -------------------------------------------------------------
   SPATIAL SLIDES (Fake 3D Depth)
------------------------------------------------------------- */
.spatial-slide {
    position: relative;
    width: 100%;
    height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 120px;
    overflow: hidden; /* Prevent text spilling outside slides */
    border-bottom: 1px solid rgba(90, 107, 119, 0.05);
}

.spatial-slide:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}

/* Background Large Typography (z-index: 1) */
.slide-bg-text {
    position: absolute;
    font-size: clamp(100px, 18vw, 320px);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--bg-secondary);
    user-select: none;
    z-index: 1;
    line-height: 0.8;
    white-space: nowrap;
    opacity: 0.6;
    transform: translateY(0);
    will-change: transform;
    pointer-events: none;
    text-align: center;
}

/* Foreground Architectural Cutout (z-index: 2) */
.slide-image-container {
    position: relative;
    width: 45%;
    max-width: 650px;
    aspect-ratio: 4/5;
    z-index: 2;
    transform: translateY(0);
    will-change: transform;
    display: flex;
    flex-direction: column;
}

/* Complex mask to shape image like a clean brutalist architectural layout */
.image-mask-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(28, 43, 54, 0.12);
    position: relative;
    background-color: var(--bg-secondary);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 85% 100%, 0 100%);
    transition: clip-path 0.5s ease-out;
}

#slide2 .image-mask-wrapper {
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 20%);
}

#slide3 .image-mask-wrapper {
    clip-path: polygon(0 15%, 85% 0, 100% 15%, 100% 100%, 0 100%);
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05);
}

.spatial-slide:hover .slide-img {
    transform: scale(1.1);
}

.slide-image-caption {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--text-secondary);
    margin-top: 25px;
    text-transform: uppercase;
}

/* Overlay Details (z-index: 3) */
.slide-details {
    position: absolute;
    width: 320px;
    bottom: 12%;
    left: 10%;
    z-index: 3;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 8px;
    border: 0.5px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(28, 43, 54, 0.05);
    transform: translateY(0);
    will-change: transform;
}

/* Offset positioning for asymmetric slide design */
#slide2 .slide-details {
    left: auto;
    right: 10%;
}

#slide2 .slide-image-container {
    margin-left: 20%;
}

#slide3 .slide-image-container {
    margin-right: 25%;
}

.slide-num {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.slide-specs {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    border-top: 0.5px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    gap: 12px;
}

/* -------------------------------------------------------------
   MINIMALIST DETAIL SPECIFICATION PANEL
------------------------------------------------------------- */
.specifications-section {
    padding: 160px 0;
    background-color: var(--bg-primary);
    border-top: 0.5px solid var(--border-color);
}

.spec-intro {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 5%;
}

/* Fine-line grid structure */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    border-top: 0.5px solid var(--border-color);
    border-left: 0.5px solid var(--border-color);
}

.spec-cell {
    padding: 40px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 0.5px solid var(--border-color);
    border-bottom: 0.5px solid var(--border-color);
    background-color: transparent;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
}

.spec-cell:hover {
    background-color: var(--bg-secondary);
}

.cell-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cell-value {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 40px;
}

.spec-cell .font-serif {
    font-size: 26px;
    font-weight: 300;
}

/* -------------------------------------------------------------
   STUDIO PHILOSOPHY SECTION
------------------------------------------------------------- */
.studio-section {
    padding: 160px 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.studio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    padding: 0 5%;
    align-items: center;
}

.studio-heading {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1.1;
}

.studio-p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.studio-p:last-of-type {
    margin-bottom: 0;
}

.studio-visual-col {
    position: relative;
    width: 100%;
}

.visual-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(28, 43, 54, 0.08);
}

.glass-overlay-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 260px;
    z-index: 10;
    background: rgba(251, 251, 251, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 30px;
    border-radius: 6px;
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(28, 43, 54, 0.1);
}

.overlay-card-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.overlay-card-data {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.overlay-card-detail {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
   LUXURY FOOTER
------------------------------------------------------------- */
.footer {
    background-color: var(--bg-primary);
    padding: 120px 5% 60px 5%;
    border-top: 0.5px solid var(--border-color);
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.footer-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.links-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.footer-link, .footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid var(--border-color);
    padding-top: 40px;
    font-size: 11px;
    color: var(--text-secondary);
}

.back-to-top {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2em;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    opacity: 0.7;
}

/* -------------------------------------------------------------
   RESPONSIVE ARCHITECTURE
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spatial-slide {
        height: auto;
        padding: 100px 0;
        flex-direction: column;
        gap: 60px;
    }
    
    .slide-image-container {
        width: 70%;
        max-width: none;
    }
    
    .slide-details {
        position: relative;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 70%;
        margin: 0 auto;
    }
    
    #slide2 .slide-image-container {
        margin-left: 0;
    }

    #slide3 .slide-image-container {
        margin-right: 0;
    }
    
    .studio-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .visual-stack {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .header {
        height: 75px;
    }
    
    .header-nav {
        display: none; /* Simplifies header for mobile */
    }
    
    .hero-footer-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .hero-footer-text p {
        font-size: 18px;
    }
    
    .slider-section, .specifications-section, .studio-section {
        padding: 80px 0;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
    }
    
    .spec-cell {
        min-height: 160px;
        padding: 30px;
    }
    
    .slide-image-container {
        width: 90%;
    }
    
    .slide-details {
        width: 90%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links-grid {
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
