/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Core Design System (Fonts & Tokens)
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;1,300&display=swap');

@font-face {
    font-family: 'Sansation';
    src: url('../assets/fonts/Sansation_Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NEUE MONTREAL/NeueMontreal-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NEUE MONTREAL/NeueMontreal-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NEUE MONTREAL/NeueMontreal-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NEUE MONTREAL/NeueMontreal-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/MANROPE EXTRALIGHT/Manrope-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/MANROPE EXTRALIGHT/Manrope-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/MANROPE EXTRALIGHT/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/MANROPE EXTRALIGHT/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/MANROPE EXTRALIGHT/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/MANROPE EXTRALIGHT/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/SATOSHI/OTF/Satoshi-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/SATOSHI/OTF/Satoshi-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/SATOSHI/OTF/Satoshi-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --background: #0B0B0B;
    --background-alt: #121212;
    --cyan: #26d2d7;
    --gold: #d1b28a;
    
    --text-primary: #F5F2EC;
    --text-secondary: rgba(245, 242, 236, 0.65);
    --text-muted: rgba(245, 242, 236, 0.35);
    
    --accent: var(--gold); /* Gold is primary architectural/editorial accent */
    --tech-accent: var(--cyan); /* Cyan is technical UI/progress accent */
    --luxury-accent: var(--gold); /* Gold is luxury detail accent */
    --border-color: rgba(197, 168, 128, 0.15);
    
    --switcher-accent-primary: #785C3A;
    --switcher-accent-secondary: #A47D4D;
    --switcher-accent-rgb: 164, 125, 77;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-serif: 'Montserrat', sans-serif;
    --font-sans: 'Manrope', sans-serif;
    --font-accent: 'Satoshi', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Dynamic Interior Mode Theme (Light Travertine Background / White headers on image overlays / Dark text on pages) */
html.mode-interior, body.mode-interior {
    --background: #ECE8DF !important;
    --background-alt: #F4F0E7 !important;
    --text-primary: #F5F2EC !important; /* Keep default headers white for image overlays */
    --text-secondary: rgba(245, 242, 236, 0.7) !important;
    --text-muted: rgba(245, 242, 236, 0.45) !important;
    --accent: #C5A880 !important; /* Elegant bronze/gold accent */
    --border-color: rgba(197, 168, 128, 0.25) !important;
    --switcher-accent-primary: #9d7b56 !important;
    --switcher-accent-secondary: #c5a880 !important;
    --switcher-accent-rgb: 197, 168, 128 !important;
}

/* Dynamic SORA Mode Theme (Volcanic Charcoal Background, Stone White text, Aged Bronze accent) */
html.mode-sora, body.mode-sora {
    --background: #111312 !important;
    --background-alt: #171A19 !important;
    --text-primary: #E8E1D8 !important;
    --text-secondary: rgba(232, 225, 216, 0.65) !important;
    --text-muted: rgba(232, 225, 216, 0.35) !important;
    --accent: #8C7853 !important; /* Aged Bronze */
    --border-color: rgba(140, 120, 83, 0.2) !important;
    --switcher-accent-primary: #5c4e36 !important;
    --switcher-accent-secondary: #8c7853 !important;
    --switcher-accent-rgb: 140, 120, 83 !important;
}

/* Dynamic VISUAL LAB Mode Theme (Obsidian Background, Technical Cyan Accent, Gold brand connection, White lighting) */
html.mode-visual-lab, body.mode-visual-lab {
    --background: #070707 !important;
    --background-alt: #151515 !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.85) !important;
    --text-muted: rgba(255, 255, 255, 0.5) !important;
    --accent: #00f0ff !important;
    --accent-gold: #d1b28a !important;
    --border-color: rgba(255, 255, 255, 0.12) !important;
    --switcher-accent-primary: #00a8b5 !important;
    --switcher-accent-secondary: #00f0ff !important;
    --switcher-accent-rgb: 0, 240, 255 !important;
}


/* Plaster texture overlay on SORA mode (subtle organic grain) */
body.mode-sora::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.018; /* Subtle premium paper grain */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999999;
}


/* Base Transition for a smooth app-like theme transition */
body, section, footer, .left-menu-drawer, #smooth-scroll-content, .drawer-nav-item, .brand-logo-img, .logo-subtext, .fixed-signature, .hamburger-line {
    transition: background-color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Plaster texture overlay on light travertine background */
body.mode-interior::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.015; /* Extremely subtle */
    background-image: radial-gradient(rgba(0,0,0,0.15) 1px, transparent 0), radial-gradient(rgba(0,0,0,0.15) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    pointer-events: none;
    z-index: 999999;
}

/* Signature adaptation (dark charcoal stamp on light travertine) */
body.mode-interior .fixed-signature {
    filter: invert(1) brightness(0.12) sepia(0.2) saturate(2) !important;
}

/* Drawer adaptation */
body.mode-interior .left-menu-drawer {
    background-color: var(--background) !important;
    border-right: 1px solid var(--border-color) !important;
}

/* Targeted page elements transitions to dark text on light travertine background */
body.mode-interior .section p,
body.mode-interior .section h1:not(.subpage-title):not(.intro-slide-title),
body.mode-interior .section h2:not(.subpage-title):not(.intro-slide-title),
body.mode-interior .section h3:not(.subpage-title):not(.intro-slide-title),
body.mode-interior .section h4,
body.mode-interior .section h5,
body.mode-interior .section h6,
body.mode-interior .section li,
body.mode-interior .section span:not(.exhibition-slide-num):not(.active-lang):not(.lang-divider),
body.mode-interior .editorial-content,
body.mode-interior .editorial-sidebar,
body.mode-interior .editorial-sidebar h3,
body.mode-interior .services-editorial-grid,
body.mode-interior .philosophy-quote,
body.mode-interior .service-item-title,
body.mode-interior .service-item-desc,
body.mode-interior .history-event,
body.mode-interior .process-step,
body.mode-interior .contact-section,
body.mode-interior .footer-container p,
body.mode-interior .footer-container span,
body.mode-interior .drawer-content,
body.mode-interior .drawer-nav-item,
body.mode-interior .drawer-footer {
    color: #1C1917 !important;
}

/* Border color adaptations for light mode visibility */
body.mode-interior .section,
body.mode-interior .editorial-grid,
body.mode-interior .service-item,
body.mode-interior .history-event,
body.mode-interior .process-step {
    border-color: rgba(28, 25, 23, 0.12) !important;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--background);
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: var(--font-accent);
    outline: none;
}

/* --------------------------------------------------------------------------
   Custom Cursor (Desktop Only)
   -------------------------------------------------------------------------- */
#intro-cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000000;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--accent); /* Gold */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000001;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.cursor-sphere {
    position: fixed;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(197, 168, 128, 0.35);
    background-color: rgba(11, 11, 11, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0); /* Hidden by default */
    pointer-events: none;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), height 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), border-color 0.4s ease, background-color 0.4s ease, transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.4s ease;
}

.follower-text {
    font-family: var(--font-accent);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.follower-line {
    width: 15px;
    height: 1px;
    background-color: var(--accent);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Interactive Hover states */
#intro-cursor-container.hovered .cursor-dot {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

#intro-cursor-container.hovered .cursor-sphere {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-color: var(--tech-accent); /* Cyan outline for active hover state */
    background-color: rgba(38, 210, 215, 0.04); /* Very subtle cyan glow */
}

#intro-cursor-container.hovered .follower-text {
    color: var(--tech-accent); /* Cyan text on hover */
}

#intro-cursor-container.hovered .follower-line {
    background-color: var(--tech-accent); /* Cyan line on hover */
}

/* Body class reset for custom cursor page layout */
body.custom-cursor-active {
    cursor: none;
}
body.custom-cursor-active a, 
body.custom-cursor-active button,
body.custom-cursor-active .portfolio-item,
body.custom-cursor-active .intro-nav-dot,
body.custom-cursor-active .drawer-close-btn,
body.custom-cursor-active .hamburger-btn,
body.custom-cursor-active .collab-item,
body.custom-cursor-active img {
    cursor: none !important;
}

/* Accessibility: Form fields must preserve native text selection and interactions */
body.custom-cursor-active input[type="text"],
body.custom-cursor-active input[type="email"],
body.custom-cursor-active input[type="tel"],
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active option {
    cursor: auto !important;
}

#intro-cursor-container.cursor-hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Image Protection Styles (SEO Friendly)
   -------------------------------------------------------------------------- */
img {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* --------------------------------------------------------------------------
   SORA HAVENS — Independent Brand Theme & Editorial Styling
   -------------------------------------------------------------------------- */
body.mode-sora {
    /* Slow motion overrides */
    --transition-smooth: all 1.2s cubic-bezier(0.25, 1, 0.3, 1) !important;
}

body.mode-sora .scroll-reveal-item,
body.mode-sora .scroll-reveal,
body.mode-sora .scroll-reveal-step {
    transition-duration: 1.2s !important;
    transition-timing-function: cubic-bezier(0.25, 1, 0.3, 1) !important;
}

/* SORA breathing room and typography overrides */
body.mode-sora p {
    letter-spacing: 0.02em !important;
    line-height: 1.85 !important;
    font-weight: 300 !important;
}

body.mode-sora h1,
body.mode-sora h2,
body.mode-sora h3,
body.mode-sora h4 {
    font-family: var(--font-serif) !important;
    font-weight: 300 !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
}

body.mode-sora .section-label {
    letter-spacing: 0.28em !important;
    font-family: var(--font-accent) !important;
    font-size: 0.58rem !important;
    font-weight: 500 !important;
    color: var(--accent) !important;
}

body.mode-sora .editorial-grid {
    gap: 4rem !important; /* Generous breathing room */
}

/* Custom cursor in SORA mode adapts to Aged Bronze theme accent */
body.mode-sora #intro-cursor-container.hovered .cursor-sphere {
    border-color: var(--accent) !important;
    background-color: rgba(140, 120, 83, 0.04) !important;
}
body.mode-sora #intro-cursor-container.hovered .follower-text {
    color: var(--accent) !important;
}
body.mode-sora #intro-cursor-container.hovered .follower-line {
    background-color: var(--accent) !important;
}

/* SORA Logo Signature Override */
body.mode-sora .logo-subtext {
    font-family: var(--font-serif) !important;
    font-size: 0.76rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.14em !important;
    color: #E8E1D8 !important;
    line-height: 1.25 !important;
    opacity: 0.95 !important;
}

/* SORA HERO Photographic integrity (100% edge-to-edge horizontally, auto height) */
body.mode-sora img.subpage-hero-bg {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: fill !important;
}
body.mode-sora div.subpage-hero-bg {
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #111312 !important;
}

/* SORA Chapter Editorial Classes */
.sora-narrative-section {
    padding: 16rem 2rem 12rem 2rem;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}
.sora-narrative-text {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2.05rem);
    font-weight: 300;
    line-height: 1.85;
    color: #E8E1D8;
    font-style: italic;
    letter-spacing: 0.02em;
}
.sora-chapter-section {
    padding: 12rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(232, 225, 216, 0.06);
}
.sora-chapter-label {
    font-family: var(--font-accent);
    font-size: 0.58rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 4rem;
}
.sora-concept-elements {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 2.2;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 3.5rem;
}
.sora-concept-footer {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: #E8E1D8;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}
.sora-lang-intro {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: #E8E1D8;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 4rem;
    letter-spacing: 0.03em;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.sora-lang-list-container {
    text-align: left;
    display: inline-block;
    max-width: 580px;
    width: 100%;
}
.sora-lang-list-title {
    font-family: var(--font-accent);
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2rem;
    font-weight: 500;
}
.sora-lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sora-lang-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.sora-lang-item-marker {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1;
}
.sora-lang-item-text {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
.sora-mats-footer {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    border-top: 1px solid rgba(232, 225, 216, 0.08);
    padding-top: 2rem;
    margin-top: 3.5rem;
}
.sora-palette-container {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}
.sora-palette-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 95px;
}
.sora-palette-color {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(232, 225, 216, 0.15);
    transition: transform 0.4s ease;
}
.sora-palette-color:hover {
    transform: scale(1.1);
}
.sora-palette-name {
    font-family: var(--font-accent);
    font-size: 0.48rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}
.sora-sensations-content {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    letter-spacing: 0.38em;
    color: #E8E1D8;
    text-transform: uppercase;
    line-height: 2.5;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}
.sora-philosophy-text {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    color: #E8E1D8;
    font-weight: 300;
    line-height: 1.85;
    max-width: 680px;
    margin: 0 auto;
    font-style: italic;
    letter-spacing: 0.02em;
}
.sora-editorial-gallery {
    padding: 16rem 0 10rem 0;
    width: 100%;
    border-top: 1px solid rgba(232, 225, 216, 0.05);
    background-color: #0d0f0e;
}
.sora-editorial-spread {
    margin-bottom: 22rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.sora-spread-img-container {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
}
.sora-spread-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background-color: #111312;
}
.sora-spread-caption-container {
    width: 100%;
    max-width: 1000px;
    text-align: right;
    padding-right: 2rem;
    margin-top: 0.5rem;
}
.sora-spread-caption {
    font-family: var(--font-accent);
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0;
}
.sora-final-quote-section {
    padding: 16rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(232, 225, 216, 0.05);
}
.sora-final-quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.4;
    color: #E8E1D8;
    letter-spacing: 0.05em;
    font-style: italic;
    margin-bottom: 3.5rem;
}
.sora-final-quote-brand {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.35em;
    text-transform: uppercase;
}
