:root {
    --color-bg: #0F1115; /* Deep dark tone */
    --color-text-main: #F0EDE7; /* Cream white */
    --color-text-mutated: rgba(240, 237, 231, 0.5);
    --color-gold: #D4A853;
    --color-deep-orange: #C05634;
    --color-soft-blue: #4A6B8C;
    --color-haze: rgba(15, 17, 21, 0.7);
    
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Geist', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* Hide default cursor everywhere */
}

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    font-family: var(--font-sans);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Cinematic Grain / Noise Filter */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.12; /* Adjust for more or less grain */
    background: 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.85\" numOctaves=\"3\" stitchTiles=\"stitch\"/%3E%3C/filter%3E%3Crect width=\"100%25\" height=\"100%25\" filter=\"url(%23noiseFilter)\"/%3E%3C/svg%3E');
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}

/* Typography Classes */
.serif { font-family: var(--font-serif); }



/* UI Overlay */
.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Section 1: Hero Wrapper */
.hero-section-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Hero Image with dark, moody cinematic overlays for pure text legibility */
    background-image: 
        linear-gradient(to right, rgba(10, 12, 15, 0.85) 0%, rgba(10, 12, 15, 0.2) 60%),
        radial-gradient(ellipse at 50% 50%, rgba(10, 12, 15, 0.1) 0%, rgba(10, 12, 15, 0.8) 100%),
        url('hero-bg.png');
    background-size: cover;
    background-position: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
}

.brand {
    font-size: 42px;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: -1px;
}

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

.nav-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-content {
    max-width: 800px;
}

.tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #E2BA75;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
    font-size: 20px;
    letter-spacing: 6px;
}

.tagline-link {
    color: #E2BA75;
    text-decoration: none;
    border-bottom: 1px solid rgba(226, 186, 117, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.tagline-link:hover {
    border-color: #E2BA75;
}

.hero-title {
    font-size: 110px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5); /* Pop against background */
}

.hero-subtitle {
    font-size: 32px;
    line-height: 1.4;
    color: var(--color-text-main);
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Floating Card ( saunai.ai style ) */
.action-card {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 380px;
    background: rgba(15, 17, 21, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 168, 83, 0.25); /* Subtle classical gold rim */
    border-radius: 16px; /* Slightly sharper for classical look */
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.action-card:hover {
    background: rgba(40, 45, 56, 0.5);
    transform: translateY(-4px);
}

.card-icon {
    width: 32px;
    height: 32px;
}

.card-text h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #fff;
}

.card-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.card-link {
    color: #E2BA75;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.card-link:hover {
    opacity: 0.7;
}

.card-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-top: 4px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 40px;
    left: 60px;
    right: 60px;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

.footer-right, .footer-left {
    pointer-events: auto;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--color-text-main);
}

/* Section 2: TRICK → World Tour (scroll-driven) */
.tour-section {
    position: relative;
    width: 100%;
    height: 300vh;
    background-color: var(--color-bg);
}

.tour-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 60px;
    overflow: hidden;
}

.tour-left {
    display: grid;
    max-width: 650px;
    z-index: 5;
}

.trick-container,
.tour-content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.trick-container {
    will-change: opacity, transform;
}

#trick-canvas {
    display: block;
    margin-top: 24px;
}

.tour-content {
    max-width: 500px;
    opacity: 0;
    will-change: opacity, transform;
}

.section-title {
    font-size: 80px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 24px;
    line-height: 1.5;
    color: var(--color-text-mutated);
    font-weight: 300;
}

.ascii-globe-container {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    z-index: 1;
    pointer-events: none;
}

#ascii-globe {
    width: 100%;
    height: 100%;
}

/* ── Section 3: The Experience ──────────────────────────── */

.experience-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(240, 237, 231, 0.06);
}

.experience-inner {
    max-width: 1100px;
    width: 100%;
}

/* Header */
.experience-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.experience-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Three pillars */
.experience-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 80px;
}

.pillar {
    border-top: 1px solid rgba(226, 186, 117, 0.25);
    padding-top: 28px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pillar.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-number {
    font-size: 13px;
    letter-spacing: 3px;
    color: #E2BA75;
    margin-bottom: 20px;
    font-weight: 600;
}

.pillar-title {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.pillar-desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-mutated);
    font-weight: 300;
}

/* Tour cities row */
.tour-cities {
    display: flex;
    justify-content: center;
    gap: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(240, 237, 231, 0.08);
}

.city {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.city.visible {
    opacity: 1;
    transform: translateY(0);
}

.city-name {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.city-date {
    font-size: 13px;
    color: #E2BA75;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.city-venue {
    font-size: 12px;
    color: var(--color-text-mutated);
    letter-spacing: 0.5px;
}

.city-contact {
    color: #E2BA75;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.city-contact:hover {
    opacity: 0.7;
}

.italic { font-style: italic; }

/* ── Esther Bio Section ─────────────────────────────────── */

.bio-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(240, 237, 231, 0.06);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.bio-photo-wrap {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bio-photo-wrap.visible {
    opacity: 1;
    transform: translateX(0);
}

.bio-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    filter: sepia(0.1) brightness(0.85);
}

.bio-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.bio-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio-name {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -1px;
}

.bio-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-mutated);
    font-weight: 300;
    margin-bottom: 16px;
}

.bio-stats-wrap {
    max-width: 1100px;
    margin: 64px auto 0;
    width: 100%;
    border-top: 1px solid rgba(226, 186, 117, 0.2);
    padding-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.bio-stats-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

#stats-canvas {
    display: block;
    width: 100%;
}

/* ── Section 4: Support / Donate ────────────────────────── */

.support-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px;
    background: linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(30, 24, 14, 0.95) 50%,
        var(--color-bg) 100%
    );
}

.support-inner {
    text-align: center;
    max-width: 640px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.support-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.support-headline {
    font-size: 80px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
    font-weight: 400;
}

.support-body {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-mutated);
    font-weight: 300;
    margin-bottom: 48px;
}

.support-body strong {
    color: var(--color-text-main);
    font-weight: 500;
}

.donate-link {
    display: inline-block;
    font-size: 28px;
    color: #E2BA75;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: opacity 0.3s ease;
}

.donate-link:hover {
    opacity: 0.7;
}

/* ── Touch devices — restore native cursor ──────────────── */

@media (hover: none) {
    *, *::before, *::after { cursor: auto !important; }
    .cursor-dot { display: none; }
}

/* ── Tablet & Mobile (≤768px) ───────────────────────────── */

@media (max-width: 768px) {
    /* Padding */
    .navbar { padding: 24px; }
    .hero-section { padding: 0 24px 40px; }
    .tour-sticky { padding: 0 24px; }
    .experience-section { padding: 80px 24px; }
    .bio-section { padding: 80px 24px; }
    .support-section { padding: 80px 24px; }

    /* Typography */
    .brand { font-size: 32px; }
    .hero-title { font-size: 52px; letter-spacing: -1px; margin-bottom: 20px; }
    .hero-subtitle { font-size: 20px; max-width: 100%; }
    .tagline { font-size: 12px; letter-spacing: 3px; margin-bottom: 16px; }
    .hero-tagline { font-size: 15px; letter-spacing: 4px; }
    .section-title { font-size: 44px; letter-spacing: -1px; margin-bottom: 20px; }
    .section-subtitle { font-size: 18px; }

    /* Navbar */
    .nav-links { gap: 20px; }
    .nav-link { font-size: 12px; letter-spacing: 0.5px; }

    /* Hero — let content flow */
    .hero-section-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .action-card {
        position: relative;
        bottom: auto;
        right: auto;
        width: calc(100% - 48px);
        margin: 0 24px 24px;
    }

    .footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 24px;
    }

    /* Tour / TRICK */
    .tour-left { max-width: 100%; }

    .ascii-globe-container {
        width: 350px;
        height: 350px;
        right: -20%;
        opacity: 0.3;
    }

    /* Experience — single column */
    .experience-header { margin-bottom: 48px; }

    .experience-pillars {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 48px;
    }

    .pillar-title { font-size: 26px; }

    .tour-cities {
        flex-wrap: wrap;
        gap: 24px 36px;
    }

    .city-name { font-size: 18px; }

    /* Bio — stack vertically */
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bio-photo { aspect-ratio: 16 / 10; }
    .bio-name { font-size: 36px; }
    .bio-body { font-size: 15px; }
    .bio-stats-wrap { margin-top: 40px; }

    /* Donate */
    .support-headline { font-size: 48px; }
    .support-body { font-size: 17px; }
    .donate-link { font-size: 22px; }
}

/* ── Small phones (≤480px) ──────────────────────────────── */

@media (max-width: 480px) {
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 17px; }
    .section-title { font-size: 34px; }
    .support-headline { font-size: 34px; }
    .bio-name { font-size: 28px; }
    .brand { font-size: 28px; }
    .nav-links { gap: 14px; }
    .nav-link { font-size: 10px; }
    .tour-cities { gap: 20px 28px; }
    .city-name { font-size: 16px; }

    .ascii-globe-container {
        width: 260px;
        height: 260px;
        right: -30%;
    }
}
