:root {
    --bg-main: #ffffff;
    --bg-warm: #f3f2ec;
    --bg-stone: #e9e8e0;
    --text-primary: #141414;
    --text-secondary: #52514e;
    --text-muted: #7a7974;
    --border-color: #cccbc6;
    --accent-burgundy: #8d2729;
    --font-heading: 'Chivo', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

/* Full-Width Hero Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.1s ease-in-out, transform 6s ease-out;
    transform: scale(1.03);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark Scrim Overlay for Full-Width Hero Readability (Solid, No flashy gradients) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(20, 20, 20, 0.42);
}

/* 6-Stage Auto-Playing Cinema Viewport */
.stage-cinema-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    max-height: 76vh;
    overflow: hidden;
    background-color: #141414;
    border: 1px solid var(--border-color);
}

.stage-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease-in-out;
}

.stage-layer.is-visible {
    opacity: 1;
}

.stage-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Minimalist Stage Timeline Tabs (MathoHome style) */
.stage-tab-item {
    position: relative;
    padding: 16px 8px;
    text-align: left;
    border-top: 2px solid var(--border-color);
    transition: all 0.25s ease;
    cursor: pointer;
    background: transparent;
}

.stage-tab-item.active {
    border-top-color: var(--text-primary);
}

.stage-tab-progress {
    position: absolute;
    top: -2px;
    left: 0;
    height: 2px;
    background-color: var(--text-primary);
    width: 0%;
}

/* 12-Story Floor Row */
.floor-row-item {
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    background-color: #ffffff;
}

.floor-row-item:hover,
.floor-row-item.active {
    background-color: var(--bg-warm);
    padding-left: 22px;
}

.floor-row-item.active .floor-row-num {
    background-color: var(--text-primary);
    color: #ffffff;
}

/* Chat Panel */
.aura-chat-panel {
    transition: all 0.25s ease;
    transform-origin: bottom right;
}

.aura-chat-panel.chat-hidden {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
}

.aura-chat-panel.chat-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
