:root {
    --color-gold: #c6a87c;
    --color-gold-light: #e5cfaa;
    --color-espresso: #1a1818;
    --color-charcoal: #2c2a2a;
    --color-sand: #f5f2eb;
    --color-white: #ffffff;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    --color-primary-gold: #ffb052;
    --color-primary-transparent: rgba(255, 176, 82, 0.06);

    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

/* Custom cursor only on desktop (no touch) */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none;
    }
}

body {
    background-color: var(--color-sand);
    color: var(--color-espresso);
    font-family: var(--font-sans);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
* {
    scrollbar-width: none;
}

body {
    -ms-overflow-style: none;
}

/* Custom Cursor - hidden on touch devices */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

@media (hover: none) or (pointer: coarse) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-espresso);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 24, 24, 0.2);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(198, 168, 124, 0.1);
    border-color: var(--color-gold);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
}

.headline-serif {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--color-espresso);
}

.label-gold {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

/* Header */
/* Hamburger - hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header .menu-toggle {
    color: var(--color-white);
}

.site-header.scrolled .menu-toggle {
    color: var(--color-espresso);
}

.site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: padding 0.4s var(--ease-out), background 0.4s ease;
}

.site-header.scrolled {
    padding: 20px 60px;
    background: rgba(245, 242, 235, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-white);
    transition: color 0.4s ease;
    text-transform: uppercase;
}

.site-header.scrolled .logo {
    color: var(--color-espresso);
}

.site-header nav ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

.site-header nav a {
    text-decoration: none;
    color: var(--color-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Increased padding between buttons */
}

.btn-login {
    text-decoration: none;
    color: var(--color-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
}

.btn-login:hover {
    opacity: 0.7;
}

.site-header.scrolled .btn-login {
    color: var(--color-espresso);
}

.btn-primary {
    padding: 14px 34px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s var(--ease-in-out);
    text-decoration: none;
}

.site-header.scrolled .btn-primary {
    border-color: var(--color-espresso);
    color: var(--color-espresso);
}

.btn-primary:hover {
    background: var(--color-espresso);
    color: var(--color-white);
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 1s var(--ease-out);
}

.loading .hero-video {
    filter: brightness(0) blur(20px);
}

.loaded .hero-video {
    filter: brightness(0.8) blur(0);
}

/* Deeper cinematic vignette for video clarity */
.hero-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    margin-top: 60px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 7.5rem;
    font-weight: 300;
    line-height: 0.85;
    margin-bottom: 50px;
    color: var(--color-white);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.accent-gold-italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    text-transform: lowercase;
    font-size: 0.85em;
    margin-right: 15px;
}

.line-reveal {
    display: block;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s ease;
}

.accent-gold {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 400;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-gold);
    margin: 0 auto 40px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-white);
    /* Pure white for visibility */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* More luxurious feel */
    font-weight: 300;
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-espresso);
    opacity: 0.3;
}

/* Sections */
section {
    padding: 180px 0;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.philosophy {
    background-color: var(--color-primary-transparent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Cinematic Layers */
.cinematic-layers {
    padding-top: 0;
    background-color: var(--color-primary-transparent);
    padding-bottom: 180px;
}

.cinematic-layers .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    align-items: start;
}

.layer-item {
    position: relative;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.layer-item:nth-child(2) {
    margin-top: 80px;
    /* Refined offset */
}

.layer-item:nth-child(3) {
    margin-top: 40px;
    /* Refined offset */
}

.layer-image {
    height: 580px;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
    transition: all 1s var(--ease-out);
    filter: brightness(0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Glass reflection effect */
.layer-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(30deg) translateY(-100%);
    transition: transform 1.2s var(--ease-out);
    pointer-events: none;
}

.layer-item:hover .layer-image::before {
    transform: rotate(30deg) translateY(0);
}

/* Premium Smartphone Aesthetic for the App interface */
.featured-card .layer-image {
    height: 600px;
    background-color: #ffb052;
    background-size: cover;
    background-position: center top;
    border: 12px solid #1a1818;
    /* Dark device frame */
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    filter: brightness(1);
    box-shadow: 0 50px 120px -30px rgba(255, 176, 82, 0.4);
}

/* Speaker detail for the smartphone */
.featured-card .layer-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1a1818;
    border-radius: 10px;
    z-index: 2;
    opacity: 0.8;
}

.layer-item:hover .layer-image {
    transform: translateY(-15px) scale(1.02);
    filter: brightness(1);
    border-color: var(--color-gold);
}

.layer-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    color: rgba(198, 168, 124, 0.15);
    margin-bottom: -10px;
    letter-spacing: -0.05em;
    font-weight: 300;
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(198, 168, 124, 0.4);
    color: transparent;
}

.layer-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
}

.layer-info p {
    color: var(--color-charcoal);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.arrow-link {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--color-espresso);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 4px;
}

/* Visual Split */
.visual-split {
    display: flex;
    align-items: stretch;
    height: 90vh;
    padding: 0;
}

.split-image {
    width: 50%;
    background-size: cover;
    background-position: center;
}

.split-content {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    background-color: #fffbf6;
}

.content-wrapper {
    max-width: 450px;
}

.gold-bar {
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 30px 0;
}

/* CTA */
.cta-luxury {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.cta-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 80px 120px;
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: var(--color-espresso);
}

/* Footer */
.footer-flex {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE: Tablet ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .headline-serif {
        font-size: 3.5rem;
    }

    .container {
        flex-direction: column;
        gap: 60px;
    }

    .cinematic-layers .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .layer-item {
        width: 100%;
        margin-top: 0 !important;
    }

    .layer-image {
        height: 420px;
    }

    .featured-card .layer-image {
        height: 450px;
    }

    .visual-split {
        flex-direction: column;
        height: auto;
    }

    .split-image,
    .split-content {
        width: 100%;
        height: 50vh;
    }

    .split-content {
        padding: 60px 40px;
    }

    .cta-content {
        padding: 60px 80px;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* ========== RESPONSIVE: Mobile ========== */
@media (max-width: 768px) {
    .site-header {
        padding: 18px 24px;
    }

    .site-header.scrolled {
        padding: 18px 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .site-header .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 242, 235, 0.98);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 101;
    }

    .site-header.nav-open .nav-menu {
        opacity: 1;
        visibility: visible;
    }

    .site-header .nav-menu ul {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .site-header .nav-menu a {
        color: var(--color-espresso) !important;
        font-size: 1rem;
    }

    .site-header .header-actions {
        gap: 16px;
    }

    .site-header .header-actions .btn-primary {
        padding: 12px 20px;
        font-size: 0.65rem;
    }

    .site-header .header-actions .btn-login {
        font-size: 0.7rem;
    }

    .logo {
        font-size: 1.4rem;
        letter-spacing: 0.08em;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 28px;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-divider {
        margin-bottom: 28px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        padding: 0 20px;
    }

    .scroll-prompt {
        bottom: 28px;
    }

    .scroll-line {
        height: 40px;
    }

    /* Sections */
    section {
        padding: 80px 0;
    }

    .container,
    .container-narrow {
        padding: 0 24px;
    }

    .headline-serif {
        font-size: 2.5rem;
    }

    .label-gold {
        margin-bottom: 16px;
        font-size: 0.7rem;
    }

    .philosophy .body-text,
    .container-narrow .body-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .cinematic-layers {
        padding-bottom: 80px;
    }

    .cinematic-layers .container {
        gap: 48px;
    }

    .layer-image {
        height: 280px;
        margin-bottom: 24px;
    }

    .featured-card .layer-image {
        height: 320px;
        border-width: 8px;
        border-radius: 28px;
    }

    .featured-card .layer-image::after {
        width: 40px;
        top: 14px;
    }

    .layer-num {
        font-size: 2.5rem;
    }

    .layer-info h3 {
        font-size: 1.5rem;
    }

    .layer-info p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .arrow-link {
        font-size: 0.75rem;
    }

    .visual-split {
        min-height: auto;
    }

    .split-image,
    .split-content {
        height: 40vh;
        min-height: 260px;
    }

    .split-content {
        padding: 48px 24px;
    }

    .content-wrapper .headline-serif {
        font-size: 2rem;
    }

    .gold-bar {
        margin: 20px 0;
    }

    .cta-luxury {
        height: 70vh;
        min-height: 400px;
    }

    .cta-content {
        padding: 48px 24px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 28px;
    }

    .footer-flex {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 32px 24px;
    }
}

/* ========== RESPONSIVE: Small phones ========== */
@media (max-width: 480px) {
    .site-header {
        padding: 14px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .headline-serif {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .container,
    .container-narrow {
        padding: 0 20px;
    }

    .layer-image {
        height: 240px;
    }

    .featured-card .layer-image {
        height: 280px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.65rem;
    }
}

/* ========== Module pages (Operations, Finance, Experience) - Mobile ========== */
@media (max-width: 768px) {
    .module-hero {
        height: auto;
        min-height: 70vh;
        padding: 100px 24px 60px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .module-hero-content h1,
    .module-hero-content .headline-serif {
        font-size: 2.5rem !important;
        margin-bottom: 20px;
    }

    .module-hero-content .hero-subtitle {
        font-size: 0.9rem !important;
    }

    /* Experience page: hero is grid 2 cols - stack on mobile */
    .module-hero:has(.app-showcase),
    .module-hero[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 100px 24px 60px !important;
    }

    .app-showcase {
        max-width: 280px !important;
        border-width: 10px !important;
        border-radius: 32px !important;
        transform: none !important;
    }

    .app-showcase:hover {
        transform: none !important;
    }

    .module-hero-content {
        text-align: center !important;
        padding-right: 0 !important;
    }

    .module-hero-content h1 {
        font-size: 2.25rem !important;
    }

    .intro-section {
        padding: 60px 0 60px !important;
    }

    .intro-text p {
        font-size: 1rem !important;
        padding: 0 16px;
    }

    .features-section {
        padding: 60px 0 !important;
    }

    .feature-showcase {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
        margin-bottom: 60px !important;
    }

    .feature-showcase:nth-child(even) {
        direction: ltr !important;
    }

    .feature-showcase:nth-child(even) > * {
        direction: ltr !important;
    }

    .feature-image {
        height: 280px !important;
    }

    .feature-content {
        padding: 40px 24px !important;
    }

    .feature-content h2 {
        font-size: 2rem !important;
    }

    .feature-content p {
        font-size: 1rem !important;
    }

    .stats-section,
    .dashboard-preview,
    .metrics-section,
    .app-features,
    .testimonial-section {
        padding: 60px 0 !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-top: 40px !important;
    }

    .stat-item h3 {
        font-size: 2.5rem !important;
    }

    .dashboard-preview h2 {
        margin-bottom: 32px !important;
    }

    .dashboard-image {
        height: 220px !important;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
    }

    .metric-card {
        padding: 28px 20px !important;
    }

    .metric-card h3 {
        font-size: 2rem !important;
    }

    .app-features h2 {
        margin-bottom: 40px !important;
        font-size: 2rem !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .app-feature-card {
        padding: 32px 24px !important;
    }

    .app-feature-card h3 {
        font-size: 1.4rem !important;
    }

    .testimonial blockquote {
        font-size: 1.35rem !important;
        margin-bottom: 24px !important;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    .module-hero-content h1 {
        font-size: 1.9rem !important;
    }
}