/* ========================================
   GUEST HOUSE — PREMIUM IMMERSIVE WEBSITE
   Three.js + WebGL + GSAP + Lenis
   ======================================== */

:root {
    --color-bg: #1c1915;
    --color-bg-light: #211e1a;
    --color-bg-card: #2a2622;
    --color-text: #e8e1d4;
    --color-text-muted: rgba(232,225,212,0.55);
    --color-accent: #c9a96e;
    --color-accent-dark: #a88b55;
    --color-terracotta: #b85c38;
    --color-border: rgba(201,169,110,0.18);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --header-height: 80px;
    --container-max: 1200px;
    --margin: 60px;
    --ease-out-expo: cubic-bezier(0.19,1,0.22,1);
    --ease-out-cubic: cubic-bezier(0.33,1,0.68,1);
    --ease-in-out: cubic-bezier(0.65,0,0.35,1);
    --vh: 1vh;
}
@media(max-width:768px){:root{--margin:20px;--header-height:60px;}}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{font-size:16px;scroll-behavior:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
body{font-family:var(--font-body);background:var(--color-bg);color:var(--color-text);overflow-x:hidden;line-height:1.6;}
::selection{background:var(--color-accent);color:var(--color-bg);}
::-webkit-scrollbar{display:none;}
body{-ms-overflow-style:none;scrollbar-width:none;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{border:none;background:none;cursor:pointer;color:inherit;font-family:inherit;}
.container{max-width:var(--container-max);margin:0 auto;padding:0 var(--margin);}

/* ---- WebGL Background ---- */
.webgl-bg{position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:0.3;}

/* ---- Cursor ---- */
.cursor{position:fixed;top:0;left:0;pointer-events:none;z-index:9999;;}
.cursor-dot{width:6px;height:6px;background:#fff;border-radius:50%;position:absolute;top:-3px;left:-3px;}
.cursor-ring{width:44px;height:44px;border:1px solid rgba(255,255,255,0.25);border-radius:50%;position:absolute;top:-22px;left:-22px;transition:transform 0.3s var(--ease-out-expo),opacity 0.3s ease;}
.cursor.hovering .cursor-ring{transform:scale(1.6);opacity:0.5;}
.cursor.clicking .cursor-dot{transform:scale(0.5);}
@media(max-width:768px){.cursor{display:none;}}

/* ---- Preloader ---- */
.preloader{position:fixed;inset:0;background:var(--color-bg);z-index:10000;display:flex;align-items:center;justify-content:center;}
.preloader-inner{text-align:center;}
.preloader-logo{position:relative;width:120px;height:120px;margin:0 auto 24px;}
.preloader-circle{width:100%;height:100%;transform:rotate(-90deg);animation:preloaderSpin 8s linear infinite;}
@keyframes preloaderSpin{to{transform:rotate(270deg);}}
.preloader-progress{transition:stroke-dashoffset 0.3s ease;}
.preloader-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-family:var(--font-display);font-size:28px;font-weight:300;color:var(--color-accent);letter-spacing:6px;}
.preloader-counter{font-family:var(--font-mono);font-size:32px;font-weight:400;color:var(--color-text);letter-spacing:4px;}
.preloader-percent{font-size:16px;color:var(--color-text-muted);}
.preloader-status{font-size:11px;font-weight:300;letter-spacing:3px;text-transform:uppercase;color:var(--color-text-muted);margin-top:16px;}

/* ---- Header ---- */
.header{position:fixed;top:0;left:0;width:100%;height:var(--header-height);display:flex;align-items:center;justify-content:space-between;padding:0 var(--margin);z-index:1000;transition:background 0.4s ease,transform 0.4s ease;}
.header.scrolled{background:rgba(28,25,21,0.92);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);}
.header.hidden{transform:translateY(-100%);}
.header-logo{display:flex;align-items:center;gap:12px;}
.logo-mark{font-family:var(--font-display);font-size:20px;font-weight:300;color:var(--color-accent);letter-spacing:4px;border:1px solid var(--color-border);width:44px;height:44px;display:flex;align-items:center;justify-content:center;transition:border-color 0.3s ease;}
.header-logo:hover .logo-mark{border-color:var(--color-accent);}
.logo-text{font-size:10px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:var(--color-text-muted);}
@media(max-width:768px){.logo-text{display:none;}}
.header-nav{display:flex;gap:28px;}
@media(max-width:1024px){.header-nav{display:none;}}
.nav-link{font-size:11px;font-weight:400;letter-spacing:2px;text-transform:uppercase;color:var(--color-text-muted);position:relative;transition:color 0.3s ease;}
.nav-link::before{content:attr(data-index);font-family:var(--font-mono);font-size:9px;position:absolute;top:-10px;left:0;color:var(--color-accent);opacity:0;transform:translateY(4px);transition:all 0.3s ease;}
.nav-link::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;background:var(--color-accent);transition:width 0.4s var(--ease-out-expo);}
.nav-link:hover{color:var(--color-text);}
.nav-link:hover::before{opacity:1;transform:translateY(0);}
.nav-link:hover::after{width:100%;}
.menu-toggle{display:none;width:32px;height:20px;position:relative;z-index:1001;}
@media(max-width:1024px){.menu-toggle{display:flex;flex-direction:column;justify-content:space-between;}}
.menu-line{display:block;width:100%;height:1px;background:var(--color-text);transition:all 0.4s var(--ease-out-expo);transform-origin:center;}
.menu-toggle.active .menu-line:first-child{transform:translateY(9.5px) rotate(45deg);}
.menu-toggle.active .menu-line:last-child{transform:translateY(-9.5px) rotate(-45deg);}
.mobile-menu{position:fixed;inset:0;background:var(--color-bg);z-index:999;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:all 0.6s var(--ease-out-expo);}
.mobile-menu.active{opacity:1;visibility:visible;}
.mobile-nav{display:flex;flex-direction:column;gap:24px;}
.mobile-link{font-family:var(--font-display);font-size:36px;font-weight:300;display:flex;align-items:baseline;gap:16px;opacity:0;transform:translateY(20px);transition:all 0.4s var(--ease-out-expo);}
.mobile-menu.active .mobile-link{opacity:1;transform:translateY(0);}
.mobile-menu.active .mobile-link:nth-child(1){transition-delay:.1s;}
.mobile-menu.active .mobile-link:nth-child(2){transition-delay:.15s;}
.mobile-menu.active .mobile-link:nth-child(3){transition-delay:.2s;}
.mobile-menu.active .mobile-link:nth-child(4){transition-delay:.25s;}
.mobile-menu.active .mobile-link:nth-child(5){transition-delay:.3s;}
.mobile-menu.active .mobile-link:nth-child(6){transition-delay:.35s;}
.mobile-index{font-family:var(--font-mono);font-size:11px;color:var(--color-accent);letter-spacing:2px;}

/* Scroll progress */
.scroll-progress{position:fixed;top:0;left:0;width:100%;height:2px;z-index:1001;}
.scroll-progress-bar{height:100%;width:0%;background:linear-gradient(90deg,var(--color-accent),var(--color-terracotta),var(--color-accent));transition:width 0.05s linear;}

/* Section Indicator */
.section-indicator{position:fixed;right:var(--margin);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:100;font-family:var(--font-mono);font-size:11px;font-weight:400;letter-spacing:2px;color:var(--color-text-muted);}
.indicator-divider{width:1px;height:30px;background:var(--color-border);}
.indicator-current{color:var(--color-accent);}
@media(max-width:768px){.section-indicator{display:none;}}

/* ---- Animations ---- */
.line-reveal{display:inline-block;overflow:hidden;}
.line-reveal>span{display:inline-block;transform:translateY(115%);transition:transform 1.2s var(--ease-out-expo);}
.line-reveal.visible>span{transform:translateY(0);}
.reveal-text{font-family:var(--font-display);font-size:clamp(30px,5vw,56px);font-weight:300;line-height:1.2;}
.reveal-text em{font-style:italic;color:var(--color-accent);}
.fade-up{opacity:0;transform:translateY(40px);transition:all 0.8s var(--ease-out-expo);}
.fade-up.visible{opacity:1;transform:translateY(0);}

/* ---- Section Common ---- */
.section{position:relative;min-height:100vh;z-index:1;}
.section-header{display:flex;align-items:center;gap:16px;margin-bottom:48px;}
.section-header--centered{justify-content:center;padding:0 var(--margin);}
.section-index{font-family:var(--font-mono);font-size:11px;font-weight:400;letter-spacing:3px;color:var(--color-accent);}
.section-label{font-size:11px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:var(--color-text-muted);position:relative;padding-left:24px;}
.section-label::before{content:'';position:absolute;left:0;top:50%;width:16px;height:1px;background:var(--color-border);}

/* ======== HERO ======== */
.section-hero{height:100vh;height:calc(var(--vh,1vh)*100);display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;}
.hero-media{position:absolute;inset:0;z-index:0;}
.hero-slideshow{position:absolute;inset:0;}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.1);transition:opacity 1.5s ease,transform 8s ease;}
.hero-slide.active{opacity:1;transform:scale(1);}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.05) 40%,rgba(0,0,0,0.3) 100%);}
.hero-grain{position:absolute;inset:0;opacity:0.02;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-repeat:repeat;background-size:200px;pointer-events:none;}
.hero-vignette{position:absolute;inset:0;box-shadow:inset 0 0 100px rgba(0,0,0,0.15);pointer-events:none;}
.hero-particles{position:absolute;inset:0;z-index:1;pointer-events:none;}
.hero-content{text-align:center;z-index:2;position:relative;}
.hero-subtitle{font-size:12px;font-weight:400;letter-spacing:5px;text-transform:uppercase;color:var(--color-text-muted);margin-bottom:24px;}
.hero-title{font-family:var(--font-display);font-weight:300;line-height:1;margin-bottom:24px;}
.title-line{display:block;font-size:clamp(56px,12vw,160px);letter-spacing:-0.02em;}
.title-line--accent{font-style:italic;color:var(--color-accent);}
.hero-tagline{font-size:13px;font-weight:300;letter-spacing:3px;text-transform:uppercase;color:var(--color-text-muted);}
.hero-scroll{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);z-index:2;}
.scroll-indicator{display:flex;flex-direction:column;align-items:center;gap:12px;}
.scroll-text{font-size:10px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:var(--color-text-muted);}
.scroll-line{width:1px;height:60px;background:var(--color-border);position:relative;overflow:hidden;}
.scroll-line-inner{width:100%;height:30px;background:var(--color-accent);animation:scrollLine 2s var(--ease-in-out) infinite;}
@keyframes scrollLine{0%{transform:translateY(-100%);}100%{transform:translateY(200%);}}
.hero-stats{position:absolute;bottom:40px;right:var(--margin);display:flex;gap:40px;z-index:2;}
@media(max-width:768px){.hero-stats{position:relative;bottom:auto;right:auto;justify-content:center;margin-top:48px;gap:24px;}}
.stat{text-align:center;}
.stat-number{font-family:var(--font-display);font-size:36px;font-weight:300;color:var(--color-accent);display:block;font-variant-numeric:tabular-nums;}
.stat-unit{font-size:11px;font-weight:300;color:var(--color-text-muted);margin-left:2px;}
.stat-label{font-size:10px;font-weight:400;letter-spacing:2px;text-transform:uppercase;color:var(--color-text-muted);display:block;margin-top:4px;}

/* Hero slide nav */
.hero-slide-nav{position:absolute;bottom:40px;left:var(--margin);z-index:2;}
.slide-progress{display:flex;gap:6px;}
.slide-bar{width:40px;height:2px;background:rgba(255,255,255,0.2);position:relative;overflow:hidden;border-radius:1px;}
.slide-bar.active::after{content:'';position:absolute;inset:0;background:var(--color-accent);animation:slideProgress 5s linear forwards;}
@keyframes slideProgress{from{transform:scaleX(0);transform-origin:left;}to{transform:scaleX(1);transform-origin:left;}}

/* ======== CINEMATIC ======== */
.section-cinematic{min-height:auto;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;background:#211e1a;}
.cinematic-strip{display:flex;gap:16px;position:absolute;inset:0;padding:0;}
.cine-frame{flex:1;background-size:cover;background-position:center;filter:brightness(0.95) saturate(0.9);transition:filter 0.6s ease;}
.cinematic-overlay{position:relative;z-index:2;text-align:center;padding:60px var(--margin);}
.cinematic-quote{font-family:var(--font-display);font-size:clamp(24px,4vw,44px);font-weight:300;font-style:italic;line-height:1.3;max-width:800px;margin:0 auto 16px;}
.cinematic-credit{font-size:12px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:var(--color-accent);}

/* ======== PHILOSOPHY ======== */
.section-philosophy{padding:60px 0 0;background:var(--color-bg);}
.philosophy-content{display:block;margin-bottom:0;}
@media(max-width:768px){.philosophy-content{grid-template-columns:1fr;gap:40px;}}
.philosophy-text h2{margin-bottom:32px;}
.philosophy-description p{font-size:15px;font-weight:300;line-height:1.8;color:var(--color-text-muted);margin-bottom:16px;}
.philosophy-visual{position:relative;}
.parallax-image-wrap{aspect-ratio:4/3;overflow:hidden;position:relative;}
.parallax-img{width:100%;height:120%;object-fit:cover;position:absolute;top:-10%;left:0;will-change:transform;}
.philosophy-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
@media(max-width:768px){.philosophy-principles{grid-template-columns:1fr;}}
.principle{padding:40px 28px;border:1px solid var(--color-border);transition:all 0.4s ease;position:relative;overflow:hidden;}
.principle::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(201,169,110,0.05),transparent);opacity:0;transition:opacity 0.4s ease;}
.principle:hover{border-color:var(--color-accent);}
.principle:hover::before{opacity:1;}
.principle-icon{width:48px;height:48px;margin-bottom:20px;color:var(--color-accent);}
.principle h3{font-family:var(--font-display);font-size:22px;font-weight:400;margin-bottom:12px;}
.principle p{font-size:13px;font-weight:300;line-height:1.7;color:var(--color-text-muted);}

/* ======== CULTURES — Full-screen ======== */
.section-cultures{padding:100px 0 0;background:var(--color-bg-light);}
.cultures-main-title{text-align:center;margin-bottom:60px;padding:0 var(--margin);}
.cultures-fullscreen{position:relative;}

.culture-full{position:relative;height:50vh;min-height:360px;overflow:hidden;display:flex;align-items:center;}
.culture-bg{position:absolute;inset:-10%;z-index:0;}
.culture-bg img{width:100%;height:100%;object-fit:cover;will-change:transform;filter:brightness(0.9) saturate(1);}
.culture-full-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,25,21,0.8) 0%,rgba(28,25,21,0.2) 55%,transparent 100%);z-index:1;}
.culture-full-content{position:relative;z-index:2;padding:0 var(--margin);max-width:550px;}
.culture-num{font-family:var(--font-mono);font-size:72px;font-weight:400;color:var(--color-accent);opacity:0.15;display:block;line-height:1;margin-bottom:8px;}
.culture-full-name{font-family:var(--font-display);font-size:clamp(36px,6vw,64px);font-weight:300;margin-bottom:16px;}
.culture-full-desc{font-size:16px;font-weight:300;line-height:1.8;color:var(--color-text-muted);margin-bottom:24px;max-width:400px;}
.culture-full-line{width:50px;height:2px;background:var(--accent,var(--color-accent));transition:width 0.8s var(--ease-out-expo);}
.culture-full.active .culture-full-line{width:100px;}

/* Culture plan (axonometric) */
.culture-plan{position:absolute;right:var(--margin);bottom:var(--margin);width:220px;height:220px;z-index:2;opacity:0.6;transition:opacity 0.4s ease,transform 0.4s ease;border:1px solid var(--color-border);padding:8px;background:rgba(28,25,21,0.75);backdrop-filter:blur(8px);}
.culture-plan img{width:100%;height:100%;object-fit:contain;filter:none;}
.culture-plan:hover{opacity:1;transform:scale(1.05);}
@media(max-width:768px){.culture-plan{width:120px;height:120px;right:16px;bottom:16px;}}

/* ======== SPACES ======== */
.section-spaces{padding:80px 0;background:var(--color-bg);}
.spaces-title{margin-bottom:60px;}
.spaces-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media(max-width:1024px){.spaces-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.spaces-grid{grid-template-columns:1fr;}}
.space-item{position:relative;overflow:hidden;}
.space-item--large{grid-column:span 2;}
@media(max-width:600px){.space-item--large{grid-column:span 1;}}
.space-visual{aspect-ratio:4/3;overflow:hidden;position:relative;}
.space-item--large .space-visual{aspect-ratio:16/9;}
.space-visual img{width:100%;height:100%;object-fit:cover;transition:transform 0.8s var(--ease-out-expo);will-change:transform;}
.space-item:hover .space-visual img{transform:scale(1.06);}
.space-overlay{position:absolute;top:12px;left:12px;z-index:1;}
.space-tag{font-size:9px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:var(--color-accent);background:rgba(28,25,21,0.8);backdrop-filter:blur(8px);padding:5px 10px;}
.space-name{font-family:var(--font-display);font-size:20px;font-weight:400;margin:12px 0 6px;}
.space-desc{font-size:13px;font-weight:300;line-height:1.6;color:var(--color-text-muted);}

/* ======== 3D MODEL ======== */
.section-3d{padding:0;min-height:100vh;display:flex;flex-direction:column;background:#f5f1eb;}
.model3d-header{text-align:center;padding:80px var(--margin) 20px;}
.model3d-title{margin-bottom:8px;}
.model3d-hint{font-size:12px;color:var(--color-text-muted);letter-spacing:2px;}
.model3d-container{flex:1;position:relative;min-height:60vh;}
#model3dCanvas{width:100%;height:100%;display:block;cursor:grab;}
#model3dCanvas:active{cursor:grabbing;}
.model3d-controls{position:absolute;bottom:24px;right:24px;display:flex;gap:8px;}
.m3d-btn{width:40px;height:40px;border:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);transition:all 0.3s ease;background:rgba(28,25,21,0.75);backdrop-filter:blur(8px);}
.m3d-btn:hover{border-color:var(--color-accent);color:var(--color-accent);}
.m3d-btn.active{border-color:var(--color-accent);color:var(--color-accent);background:rgba(201,169,110,0.1);}

/* ======== BATHHOUSE ======== */
.section-bathhouse{min-height:100vh;display:flex;align-items:center;overflow:hidden;position:relative;}
.bathhouse-gallery{position:absolute;inset:0;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:4px;}
.bath-img{overflow:hidden;}
.bath-img img{width:100%;height:100%;object-fit:cover;filter:brightness(0.8) saturate(0.9);transition:filter 0.6s ease;will-change:transform;}
.bath-img--main{grid-row:span 2;}
@media(max-width:768px){.bathhouse-gallery{grid-template-columns:1fr;grid-template-rows:1fr;}.bath-img--side1,.bath-img--side2{display:none;}}
.bathhouse-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,25,21,0.75),rgba(28,25,21,0.25));z-index:1;}
.bathhouse-content{position:relative;z-index:2;}
.bathhouse-text{max-width:550px;}
.bathhouse-text h2{margin-bottom:24px;}
.bathhouse-text>p{font-size:15px;font-weight:300;line-height:1.8;color:var(--color-text-muted);margin-bottom:48px;}
.bathhouse-features{display:flex;gap:40px;flex-wrap:wrap;}
.bath-feature{display:flex;flex-direction:column;align-items:center;gap:12px;}
.feature-circle{width:80px;height:80px;position:relative;display:flex;align-items:center;justify-content:center;}
.feature-circle svg{position:absolute;inset:0;}
.feature-ring{transition:stroke-dashoffset 1.5s var(--ease-out-expo);}
.bath-feature.visible .feature-ring{stroke-dashoffset:0!important;}
.feature-icon{font-size:24px;color:var(--color-accent);z-index:1;}
.feature-name{font-size:11px;font-weight:400;letter-spacing:2px;text-transform:uppercase;color:var(--color-text-muted);}

/* ======== PHOTO REEL — Horizontal Scroll ======== */
.section-reel{padding:40px 0;overflow:hidden;background:var(--color-bg-light);}
.reel-title-wrap{padding:0 var(--margin);margin-bottom:32px;}
.reel-title{font-family:var(--font-display);font-size:28px;font-weight:300;}
.reel-track{display:flex;gap:16px;padding:0 var(--margin);will-change:transform;overflow-x:auto;cursor:grab;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.reel-item{min-width:320px;flex-shrink:0;position:relative;overflow:hidden;}
@media(max-width:768px){.reel-item{min-width:260px;}}
.reel-item img{width:100%;height:280px;object-fit:cover;transition:transform 0.6s var(--ease-out-expo);filter:brightness(0.95);}
.reel-item:hover img{transform:scale(1.05);filter:brightness(1);}
.reel-caption{position:absolute;bottom:0;left:0;right:0;padding:12px 16px;background:linear-gradient(transparent,rgba(0,0,0,0.7));font-size:12px;font-weight:300;letter-spacing:2px;text-transform:uppercase;color:var(--color-text-muted);}

/* ======== CONTACT ======== */
.section-contact{min-height:80vh;display:flex;align-items:center;position:relative;overflow:hidden;}
.contact-bg{position:absolute;inset:0;}
.contact-bg img{width:100%;height:100%;object-fit:cover;filter:brightness(0.8) saturate(0.9);}
.contact-overlay{position:absolute;inset:0;background:radial-gradient(ellipse at center,rgba(0,0,0,0.3),rgba(0,0,0,0.6));}
.contact-inner{position:relative;z-index:1;width:100%;}
.contact-content{max-width:700px;margin:0 auto;text-align:center;}
.contact-title{margin-bottom:24px;}
.contact-subtitle{font-size:15px;font-weight:300;line-height:1.8;color:var(--color-text-muted);margin-bottom:48px;}
.cta-button{display:inline-flex;align-items:center;gap:16px;padding:20px 48px;border:1px solid var(--color-accent);font-size:13px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:var(--color-accent);transition:all 0.4s var(--ease-out-expo);position:relative;overflow:hidden;}
.cta-button::before{content:'';position:absolute;inset:0;background:var(--color-accent);transform:scaleX(0);transform-origin:left;transition:transform 0.6s var(--ease-out-expo);z-index:-1;}
.cta-button:hover{color:var(--color-bg);}
.cta-button:hover::before{transform:scaleX(1);}
.cta-arrow svg{width:18px;height:18px;transition:transform 0.3s ease;}
.cta-button:hover .cta-arrow svg{transform:translateX(4px);}
.contact-links{display:flex;justify-content:center;gap:24px;margin-top:48px;flex-wrap:wrap;}
.contact-link{display:flex;flex-direction:column;gap:4px;padding:14px 20px;border:1px solid var(--color-border);transition:all 0.3s ease;min-width:140px;background:rgba(28,25,21,0.6);backdrop-filter:blur(8px);}
.contact-link:hover{border-color:var(--color-accent);background:rgba(201,169,110,0.05);}
.link-label{font-size:9px;font-weight:400;letter-spacing:2px;text-transform:uppercase;color:var(--color-text-muted);}
.link-name{font-family:var(--font-display);font-size:18px;font-weight:400;}

/* Footer */
.footer{border-top:1px solid var(--color-border);padding:24px 0;position:relative;z-index:1;background:var(--color-bg);}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
.footer-left{display:flex;align-items:center;gap:16px;}
.footer-logo{font-family:var(--font-display);font-size:16px;color:var(--color-accent);letter-spacing:3px;}
.footer-copy,.footer-credits{font-size:12px;font-weight:300;color:var(--color-text-muted);}

/* ======== GALLERY ======== */
.section-gallery{padding:100px 0;background:var(--color-bg);}
.gallery-grid{display:flex;flex-direction:column;gap:60px;}
.gallery-cat-title{font-family:var(--font-display);font-size:28px;font-weight:400;margin-bottom:20px;color:var(--color-accent);padding-bottom:12px;border-bottom:1px solid var(--color-border);}
.gallery-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
@media(max-width:1024px){.gallery-photos{grid-template-columns:repeat(3,1fr);}}
@media(max-width:600px){.gallery-photos{grid-template-columns:repeat(2,1fr);}}
.gallery-item{aspect-ratio:4/3;overflow:hidden;border-radius:4px;}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s var(--ease-out-expo);cursor:pointer;}
.gallery-item:hover img{transform:scale(1.05);}


/* Spaces hero photo */
.spaces-hero{margin-top:40px;width:100%;overflow:hidden;position:relative;aspect-ratio:21/9;}
.spaces-hero img{width:100%;height:100%;object-fit:cover;}
.spaces-hero-caption{position:absolute;bottom:16px;right:20px;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,0.7);background:rgba(0,0,0,0.4);padding:6px 14px;backdrop-filter:blur(8px);}

/* Gallery full-width */
.gallery-wrapper{width:100%;padding:0;}
.section-gallery{padding:60px 0 40px;}
.section-gallery .section-header{padding:0 var(--margin);}
.section-gallery .spaces-title{padding:0 var(--margin);}
.gallery-grid{padding:0;}
.gallery-category{padding:0 var(--margin);}
.gallery-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
@media(max-width:1024px){.gallery-photos{grid-template-columns:repeat(3,1fr);}}
@media(max-width:600px){.gallery-photos{grid-template-columns:repeat(2,1fr);}}
.gallery-item{aspect-ratio:4/3;overflow:hidden;cursor:pointer;position:relative;}
.gallery-item::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,0);transition:background 0.3s ease;}
.gallery-item:hover::after{background:rgba(0,0,0,0.15);}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s var(--ease-out-expo);}
.gallery-item:hover img{transform:scale(1.05);}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,0.95);z-index:10001;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:all 0.3s ease;}
.lightbox.active{opacity:1;visibility:visible;}
.lightbox-img{max-width:92vw;max-height:90vh;object-fit:contain;border-radius:2px;}
.lightbox-close{position:absolute;top:20px;right:24px;font-size:40px;color:#fff;z-index:10;background:none;border:none;cursor:pointer;line-height:1;opacity:0.7;transition:opacity 0.2s;}
.lightbox-close:hover{opacity:1;}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);font-size:36px;color:#fff;background:rgba(255,255,255,0.1);border:none;cursor:pointer;width:50px;height:60px;display:flex;align-items:center;justify-content:center;opacity:0.6;transition:opacity 0.2s;border-radius:4px;}
.lightbox-prev{left:16px;}
.lightbox-next{right:16px;}
.lightbox-prev:hover,.lightbox-next:hover{opacity:1;background:rgba(255,255,255,0.2);}

/* Reduce excess spacing */
.philosophy-principles{margin-bottom:0;}
.philosophy-content{margin-bottom:40px;}
.section-contact{min-height:60vh;}
.reel-track::-webkit-scrollbar{display:none;}

/* Philosophy full-width photo */
.philosophy-fullwidth{width:100vw;margin-left:calc(-1 * var(--margin));margin-right:calc(-1 * var(--margin));overflow:hidden;aspect-ratio:21/9;margin-top:40px;}
.philosophy-fullwidth img{width:100%;height:100%;object-fit:cover;}

/* Fix reel - remove all extra min-height */
.section-reel{min-height:auto!important;padding:40px 0 20px!important;}
.reel-item img{height:240px;}

/* Fix spaces section height */
.section-spaces{min-height:auto!important;}

/* Reduce culture section padding */
.section-cultures{padding:40px 0 0;}

/* Remove excess section min-height */
.section{min-height:auto;}
.section-hero{min-height:100vh;height:100vh;height:calc(var(--vh,1vh)*100);}
.section-bathhouse{min-height:80vh;}
.section-contact{min-height:50vh;}


/* Quote block */
.section-quote{min-height:auto;padding:50px var(--margin);text-align:center;background:var(--color-bg);}
.quote-block{max-width:800px;margin:0 auto;}
.quote-block .cinematic-quote{font-family:var(--font-display);font-size:clamp(22px,3.5vw,38px);font-weight:300;font-style:italic;line-height:1.35;color:var(--color-text);margin-bottom:12px;}
.quote-block .cinematic-credit{font-size:12px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:var(--color-accent);}

/* Photo strip */
.section-photostrip{min-height:auto;padding:0;overflow:hidden;}
.photostrip{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;}
.photostrip-item{aspect-ratio:4/3;overflow:hidden;}
.photostrip-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s var(--ease-out-expo);}
.photostrip-item:hover img{transform:scale(1.05);}
@media(max-width:768px){.photostrip{grid-template-columns:repeat(3,1fr);}}

/* Contact info */
.contact-info{display:flex;gap:40px;justify-content:center;margin-bottom:36px;flex-wrap:wrap;}
.contact-detail{text-align:center;}
.contact-detail-label{display:block;font-size:10px;font-weight:400;letter-spacing:2px;text-transform:uppercase;color:var(--color-accent);margin-bottom:6px;}
.contact-detail-value{font-family:var(--font-display);font-size:18px;font-weight:400;line-height:1.5;color:var(--color-text);}
a.contact-detail-value{transition:color 0.3s ease;}
a.contact-detail-value:hover{color:var(--color-accent);}
.contact-cta{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}
.cta-button--secondary{border-color:var(--color-border)!important;color:var(--color-text)!important;}
.cta-button--secondary:hover{color:var(--color-bg)!important;}

/* Philosophy fullwidth fix */
.philosophy-fullwidth{width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;overflow:hidden;aspect-ratio:21/9;margin-top:40px;}
.philosophy-fullwidth img{width:100%;height:100%;object-fit:cover;}

/* Spaces hero fix - outside container */
.spaces-hero{width:100%;overflow:hidden;position:relative;aspect-ratio:21/9;margin-top:40px;}
.spaces-hero img{width:100%;height:100%;object-fit:cover;}


/* Reel grid layout */
.reel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
@media(max-width:1024px){.reel-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:600px){.reel-grid{grid-template-columns:repeat(2,1fr);}}
.section-reel .reel-item{min-width:auto;position:relative;overflow:hidden;aspect-ratio:4/3;}
.section-reel .reel-item img{width:100%;height:100%;object-fit:cover;filter:none;transition:transform 0.4s ease;}
.section-reel .reel-item:hover img{transform:scale(1.04);}
.section-reel .reel-title{margin-bottom:24px;}

/* Performance: disable will-change and heavy transforms on gallery */
.gallery-item img{will-change:auto!important;transition:none!important;}
.gallery-item:hover img{transform:none!important;}

/* Remove WebGL styles */
.webgl-bg{display:none!important;}

/* Reduce philosophy bottom gap */
.philosophy-principles{margin-top:40px;margin-bottom:0;padding-bottom:0;}
.philosophy-fullwidth{margin-top:30px;margin-bottom:0;}


/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* -- Culture sections: mobile overlay fix -- */
@media(max-width:768px){
  .culture-full{height:auto;min-height:320px;padding:40px 0;}
  .culture-full-overlay{background:linear-gradient(180deg,rgba(28,25,21,0.3) 0%,rgba(28,25,21,0.85) 40%,rgba(28,25,21,0.95) 100%)!important;}
  .culture-full-content{max-width:100%;padding:0 20px;}
  .culture-num{font-size:48px;}
  .culture-full-name{font-size:clamp(28px,8vw,40px);}
  .culture-full-desc{font-size:14px;line-height:1.7;max-width:100%;}
  .culture-plan{width:80px;height:80px;right:12px;bottom:12px;opacity:0.5;padding:4px;}
}

@media(max-width:480px){
  .culture-full{min-height:280px;padding:32px 0;}
  .culture-plan{width:64px;height:64px;}
  .culture-num{font-size:36px;}
}

/* -- Bathhouse: mobile readability -- */
@media(max-width:768px){
  .section-bathhouse{min-height:auto;padding:60px 0;}
  .bathhouse-overlay{background:linear-gradient(180deg,rgba(28,25,21,0.5) 0%,rgba(28,25,21,0.9) 50%,rgba(28,25,21,0.95) 100%)!important;}
  .bathhouse-text h2{font-size:clamp(24px,7vw,36px);}
  .bathhouse-text>p{font-size:14px;margin-bottom:32px;}
  .bathhouse-features{gap:24px;justify-content:center;}
  .feature-circle{width:64px;height:64px;}
  .feature-name{font-size:10px;}
}

/* -- Contact: mobile readability -- */
@media(max-width:768px){
  .section-contact{min-height:auto;padding:60px 0;}
  .contact-overlay{background:radial-gradient(ellipse at center,rgba(0,0,0,0.6),rgba(0,0,0,0.8))!important;}
  .contact-title{font-size:clamp(24px,7vw,36px)!important;}
  .contact-subtitle{font-size:14px;margin-bottom:32px;}
  .contact-info{flex-direction:column;gap:20px;align-items:center;}
  .contact-detail-value{font-size:16px;}
  .contact-cta{flex-direction:column;align-items:center;gap:12px;}
  .cta-button{width:100%;max-width:300px;justify-content:center;padding:16px 32px;}
  .contact-links{flex-direction:column;align-items:center;gap:12px;}
  .contact-link{width:100%;max-width:300px;text-align:center;}
}

/* -- Hero: mobile text sizing -- */
@media(max-width:480px){
  .title-line{font-size:clamp(42px,14vw,80px)!important;}
  .hero-subtitle{font-size:11px;letter-spacing:3px;margin-bottom:16px;}
  .hero-tagline{font-size:11px;letter-spacing:2px;}
  .hero-scroll{bottom:24px;}
  .scroll-line{height:40px;}
  .hero-slide-nav{left:20px;bottom:24px;}
  .hero-stats{gap:16px;margin-top:32px;}
  .stat-number{font-size:28px;}
  .stat-label{font-size:9px;}
}

/* -- Philosophy: mobile fixes -- */
@media(max-width:768px){
  .section-philosophy{padding:40px 0 0;}
  .philosophy-fullwidth{aspect-ratio:16/9;margin-top:24px;}
  .philosophy-principles{gap:16px;}
  .principle{padding:24px 20px;}
  .principle h3{font-size:18px;}
  .principle p{font-size:12px;}
  .principle-icon{width:36px;height:36px;margin-bottom:12px;}
}

/* -- Quote block: mobile -- */
@media(max-width:768px){
  .section-quote{padding:32px 20px;}
  .quote-block .cinematic-quote{font-size:clamp(18px,5vw,28px);}
}

/* -- Photostrip: 2 cols on small phones -- */
@media(max-width:480px){
  .photostrip{grid-template-columns:repeat(2,1fr);gap:2px;}
}

/* -- Reel grid: mobile -- */
@media(max-width:480px){
  .section-reel{padding:24px 0 16px!important;}
  .reel-title{font-size:22px!important;}
}

/* -- Gallery: mobile spacing -- */
@media(max-width:768px){
  .section-gallery{padding:40px 0 24px;}
  .gallery-cat-title{font-size:22px;margin-bottom:12px;}
  .gallery-grid{gap:32px;}
  .gallery-category{padding:0 12px;}
  .gallery-photos{gap:6px;}
}

@media(max-width:480px){
  .gallery-photos{grid-template-columns:repeat(2,1fr);gap:4px;}
  .gallery-cat-title{font-size:18px;}
}

/* -- Lightbox: mobile improvements -- */
@media(max-width:768px){
  .lightbox-close{top:12px;right:16px;font-size:32px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);border-radius:50%;}
  .lightbox-prev,.lightbox-next{width:44px;height:44px;font-size:24px;border-radius:50%;background:rgba(255,255,255,0.15);}
  .lightbox-prev{left:8px;}
  .lightbox-next{right:8px;}
  .lightbox-img{max-width:96vw;max-height:80vh;}
}

/* -- Footer: mobile -- */
@media(max-width:768px){
  .footer{padding:16px 0;}
  .footer-inner{flex-direction:column;align-items:center;text-align:center;gap:8px;}
  .footer-left{flex-direction:column;gap:4px;}
  .footer-copy,.footer-credits{font-size:11px;}
}

/* -- Cultures section title: mobile -- */
@media(max-width:768px){
  .cultures-main-title{font-size:clamp(24px,6vw,36px);margin-bottom:32px;}
  .section-cultures{padding:40px 0 0;}
}

/* -- Section header: mobile -- */
@media(max-width:768px){
  .section-header{margin-bottom:24px;}
}

/* -- General mobile overflow prevention -- */
html,body{overflow-x:hidden;}

/* -- Mobile menu links: larger touch targets -- */
@media(max-width:768px){
  .mobile-link{font-size:28px;padding:8px 0;}
  .mobile-nav{gap:16px;}
}

/* -- Prevent horizontal scroll from philosophy-fullwidth -- */
@media(max-width:768px){
  .philosophy-fullwidth{width:100%;left:0;right:0;margin-left:0;margin-right:0;position:relative;}
}

/* -- Improve tap targets for contact links -- */
@media(max-width:768px){
  .contact-link{padding:16px 20px;min-width:auto;width:100%;max-width:300px;}
}

/* -- Scroll progress bar thicker on mobile for visibility -- */
@media(max-width:768px){
  .scroll-progress{height:3px;}
}


/* ============================================
   MOBILE TEXT READABILITY FIX
   ============================================ */

/* -- Hero: stronger overlay on mobile -- */
@media(max-width:768px){
  .hero-overlay{background:linear-gradient(180deg,rgba(0,0,0,0.4) 0%,rgba(0,0,0,0.25) 30%,rgba(0,0,0,0.5) 70%,rgba(0,0,0,0.6) 100%)!important;}
}

/* -- Hero: all text white and readable on mobile -- */
@media(max-width:768px){
  .hero-subtitle,.hero-subtitle span,.hero-subtitle .line-reveal>span{color:#fff!important;opacity:1!important;text-shadow:0 1px 8px rgba(0,0,0,0.6);}
  .hero-title,.title-line,.title-line .line-reveal>span{color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,0.5);}
  .title-line--accent,.title-line--accent .line-reveal>span{color:#fff!important;}
  .hero-tagline,.hero-tagline span,.hero-tagline .line-reveal>span{color:#fff!important;opacity:1!important;text-shadow:0 1px 8px rgba(0,0,0,0.6);}
  .stat-number{color:#fff!important;text-shadow:0 1px 6px rgba(0,0,0,0.5);}
  .stat-unit{color:rgba(255,255,255,0.9)!important;}
  .stat-label{color:rgba(255,255,255,0.8)!important;text-shadow:0 1px 4px rgba(0,0,0,0.5);}
  .scroll-text{color:rgba(255,255,255,0.7)!important;}
}

/* -- Hero stats: fix position on mobile -- */
@media(max-width:768px){
  .hero-stats{position:relative!important;bottom:auto!important;right:auto!important;justify-content:center!important;margin-top:32px;gap:20px;width:100%;flex-wrap:nowrap;}
  .hero-content{padding:0 20px;}
}

/* -- Header: white on mobile for readability -- */
@media(max-width:768px){
  .logo-mark{color:#fff!important;border-color:rgba(255,255,255,0.4)!important;}
  .menu-line{background:#fff!important;}
}

/* -- Culture sections: text white and readable -- */
@media(max-width:768px){
  .culture-full-name{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,0.5);}
  .culture-full-desc{color:rgba(255,255,255,0.9)!important;text-shadow:0 1px 4px rgba(0,0,0,0.4);}
  .culture-num{color:rgba(255,255,255,0.2)!important;}
}

/* -- Bathhouse: text white on mobile -- */
@media(max-width:768px){
  .bathhouse-text h2,.bathhouse-text h2 span,.bathhouse-text .reveal-text{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,0.5);}
  .bathhouse-text>p{color:rgba(255,255,255,0.9)!important;text-shadow:0 1px 4px rgba(0,0,0,0.4);}
  .feature-name{color:rgba(255,255,255,0.85)!important;}
}

/* -- Contact: text white on mobile -- */
@media(max-width:768px){
  .contact-title,.contact-title span,.contact-title .line-reveal>span{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,0.5);}
  .contact-subtitle{color:rgba(255,255,255,0.9)!important;text-shadow:0 1px 4px rgba(0,0,0,0.4);}
  .contact-detail-label{color:var(--color-accent)!important;}
  .contact-detail-value{color:#fff!important;}
  .cta-button{border-color:rgba(255,255,255,0.6)!important;color:#fff!important;}
  .cta-button:hover{color:var(--color-bg)!important;}
}

/* -- Philosophy/Gallery section titles readable -- */
@media(max-width:768px){
  .reveal-text{font-size:clamp(24px,6vw,40px)!important;}
  .reveal-text em{color:var(--color-accent);}
}


/* ============================================
   HERO MOBILE LAYOUT FIX — stack vertically
   ============================================ */
@media(max-width:768px){
  /* Hero: stack content and stats vertically */
  .section-hero{
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    padding:0 20px!important;
  }

  /* Hero content: centered, with padding so nothing gets cut */
  .hero-content{
    text-align:center!important;
    padding:0!important;
    width:100%;
    max-width:100%;
  }

  /* Title: smaller so it fits on screen */
  .hero-title{margin-bottom:16px!important;}
  .title-line,.title-line .line-reveal>span{
    font-size:clamp(40px,11vw,72px)!important;
    letter-spacing:-0.01em!important;
  }

  /* Subtitle */
  .hero-subtitle{
    font-size:10px!important;
    letter-spacing:2px!important;
    margin-bottom:16px!important;
    word-spacing:2px;
  }

  /* Tagline: wrap nicely */
  .hero-tagline{
    font-size:10px!important;
    letter-spacing:1.5px!important;
    line-height:1.6!important;
  }

  /* Stats: BELOW the content, stacked in a row */
  .hero-stats{
    position:relative!important;
    bottom:auto!important;
    right:auto!important;
    left:auto!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:24px!important;
    margin-top:24px!important;
    width:100%!important;
    flex-wrap:nowrap!important;
    z-index:2!important;
  }

  .stat{text-align:center;}
  .stat-number{font-size:28px!important;}
  .stat-label{font-size:9px!important;letter-spacing:1px!important;}
  .stat-unit{font-size:10px!important;}

  /* Scroll indicator: lower and smaller */
  .hero-scroll{bottom:16px!important;z-index:2;}
  .scroll-line{height:32px!important;}

  /* Slide nav: lower */
  .hero-slide-nav{bottom:16px!important;left:16px!important;}
  .slide-bar{width:28px!important;}
}

/* Extra small phones */
@media(max-width:380px){
  .title-line,.title-line .line-reveal>span{
    font-size:clamp(36px,10vw,56px)!important;
  }
  .hero-stats{gap:16px!important;}
  .stat-number{font-size:24px!important;}
}


/* ============================================
   LIGHTBOX & GALLERY CLICK FIX
   ============================================ */

/* Remove ::after overlay that blocks clicks on mobile */
.gallery-item::after{pointer-events:none!important;}

/* Gallery items: visual feedback on tap */
.gallery-item{-webkit-tap-highlight-color:rgba(201,169,110,0.2);cursor:pointer!important;}
.gallery-item img{pointer-events:none;}

/* Lightbox counter */
.lightbox-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;z-index:10;}
.lightbox-counter{font-family:var(--font-mono);font-size:14px;color:rgba(255,255,255,0.7);letter-spacing:2px;}
.lightbox-close{position:static!important;font-size:36px;color:#fff;background:none;border:none;cursor:pointer;width:44px;height:44px;display:flex;align-items:center;justify-content:center;opacity:0.7;transition:opacity 0.2s;}
.lightbox-close:hover{opacity:1;}

/* Lightbox: better mobile layout */
@media(max-width:768px){
  .lightbox-top{padding:12px 16px;}
  .lightbox-counter{font-size:12px;}
  .lightbox-close{font-size:28px;width:40px;height:40px;}
  .lightbox-prev,.lightbox-next{
    width:40px;height:40px;font-size:20px;
    background:rgba(255,255,255,0.15)!important;
    border-radius:50%!important;
    opacity:0.8!important;
  }
  .lightbox-prev{left:8px!important;}
  .lightbox-next{right:8px!important;}
  .lightbox-img{max-width:98vw!important;max-height:75vh!important;}
}
