:root {
    --bg-base: #1a1c22;
    /* Dark Slate Base */
    --bg-room-1: #21242c;
    /* Deep Fog Gray */
    --bg-room-2: #282c35;
    /* Early Dawn Blue-Gray */
    --bg-rest: #363b45;
    /* Morning Fog (Lighter Section) */

    --text-heading: #f8f8f6;
    /* Brighter Off-White */
    --text-body: #c5c5bf;
    /* Legible Warm Gray */
    --text-muted: rgba(255, 255, 255, 0.45);

    --accent: #bc7c52;
    /* Refined Copper */
    --border: rgba(255, 255, 255, 0.06);
    --art-font: 'Outfit', 'Inter', -apple-system, sans-serif;
}

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

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

body {
    font-family: var(--art-font);
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Enhancement */
h1,
h2,
h3,
h4 {
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

p {
    font-weight: 300;
    font-size: 1.1rem;
}

/* Pre-Dawn Atmosphere */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-base);
    overflow: hidden;
}

.ambient-light {
    position: absolute;
    width: 150vw;
    height: 150vh;
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.03;
    /* Very faint, diffused sky light */
    pointer-events: none;
    animation: ambientPulse 30s infinite alternate ease-in-out;
}

.light-top {
    background: radial-gradient(circle, #708090 0%, transparent 80%);
    top: -50%;
    left: -25%;
}

.light-bottom {
    background: radial-gradient(circle, #4a5d6a 0%, transparent 80%);
    bottom: -50%;
    right: -25%;
}

@keyframes ambientPulse {
    from {
        opacity: 0.02;
        transform: translate(0, 0) scale(1);
    }

    to {
        opacity: 0.04;
        transform: translate(5%, 5%) scale(1.05);
    }
}

/* Room Luminance Shifts */
section {
    position: relative;
    padding: 160px 0;
    width: 100%;
    transition: background 1.5s ease;
}

section:nth-of-type(4n+1) {
    background: var(--bg-base);
}

section:nth-of-type(4n+2) {
    background: var(--bg-room-1);
}

section:nth-of-type(4n+3) {
    background: var(--bg-room-2);
}

/* Specific "Visual Rest" Section */
.room-rest {
    background: var(--bg-rest) !important;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.5s ease;
}

.nav-links a:hover {
    color: var(--text-heading);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    padding: 120px 40px 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.hero-content {
    opacity: 0;
    text-align: left;
    animation: revealIn 2s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-visual {
    opacity: 0;
    display: flex;
    justify-content: flex-end;
    animation: revealIn 2s forwards 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-visual img {
    width: 100%;
    max-width: 340px;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtext {
    max-width: 440px;
    margin-bottom: 48px;
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Principles */
.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 160px;
}

.principle-item {
    max-width: 600px;
}

.principle-item h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.9;
}

.principle-item p {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-heading);
}

/* Visuals */
.visual-showcase {
    text-align: center;
}

.visual-showcase img {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.2);
    transition: transform 1.2s ease;
}

/* Quotes */
.quote {
    font-style: italic;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-heading);
    max-width: 760px;
    margin: 0 auto;
}

/* Closing */
.closing {
    text-align: center;
    padding: 240px 40px;
}

.closing h2 {
    font-size: 42px;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 48px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-heading);
}

.btn:hover {
    background: var(--text-heading);
    color: var(--bg-base);
    transform: translateY(-2px);
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

@media (max-width: 768px) {
    .gallery-container {
        padding: 0 24px;
    }

    nav {
        padding: 24px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-subtext {
        margin: 0 auto 32px;
    }

    .hero-visual img {
        max-width: 280px;
    }

    .principles {
        gap: 100px;
    }

    section {
        padding: 100px 24px;
    }
}