/* tanso.center — Art Deco × Terracotta × Carbon */

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

:root {
    --terracotta-deep: #a3412a;
    --terracotta-mid: #c4603a;
    --gold: #c9a84c;
    --amber: #e8a85c;
    --earth-dark: #2b2320;
    --earth-mid: #3d2e28;
    --cream: #f5e6d0;
    --rose-dust: #b8857a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--earth-dark);
    color: var(--cream);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

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

.chamber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 61.8% 50%, var(--earth-mid) 0%, var(--earth-dark) 70%);
    opacity: 0.6;
}

.chamber-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.chamber-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(3.5rem, 10vw, 9rem);
    letter-spacing: 0.08em;
    line-height: 1.0;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chamber.visible .chamber-title {
    opacity: 1;
    transform: translateY(0);
}

.chamber-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--rose-dust);
    letter-spacing: 0.02em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.chamber.visible .chamber-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Waves */
.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 1;
    opacity: 0.5;
}

.wave {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.wave-1 {
    stroke: var(--terracotta-mid);
    opacity: 0.7;
    animation: waveShift1 8s ease-in-out infinite;
}

.wave-2 {
    stroke: var(--gold);
    opacity: 0.5;
    animation: waveShift2 10s ease-in-out infinite;
}

.wave-3 {
    stroke: var(--terracotta-deep);
    opacity: 0.6;
    animation: waveShift3 12s ease-in-out infinite;
}

.wave-4 {
    stroke: var(--amber);
    opacity: 0.4;
    animation: waveShift1 9s ease-in-out infinite reverse;
}

.wave-5 {
    stroke: var(--rose-dust);
    opacity: 0.5;
    animation: waveShift2 11s ease-in-out infinite reverse;
}

@keyframes waveShift1 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-30px) translateY(10px); }
}

@keyframes waveShift2 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(-15px); }
}

@keyframes waveShift3 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-15px) translateY(-10px); }
}

/* Hexagon ornament */
.hexagon-ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    z-index: 1;
    opacity: 0.15;
    border: 1.5px solid var(--gold);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexRotate 20s linear infinite;
}

#chamber-2 .hexagon-ornament {
    top: auto;
    bottom: 15%;
    right: auto;
    left: 8%;
    width: 80px;
    height: 80px;
    border-color: var(--terracotta-mid);
}

#chamber-3 .hexagon-ornament {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 5%;
    border-color: var(--amber);
}

#chamber-4 .hexagon-ornament {
    top: 5%;
    right: auto;
    left: 12%;
    width: 100px;
    height: 100px;
    border-color: var(--rose-dust);
}

#chamber-5 .hexagon-ornament {
    top: auto;
    bottom: 10%;
    right: 15%;
    width: 90px;
    height: 90px;
    border-color: var(--gold);
}

#chamber-6 .hexagon-ornament {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--terracotta-deep);
    opacity: 0.1;
}

@keyframes hexRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#chamber-6 .hexagon-ornament {
    animation: hexRotate 20s linear infinite;
    transform-origin: center center;
}

/* Progress nav */
.progress-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--cream);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.progress-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
}

/* Decorative lines between sections */
.chamber + .chamber::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-nav {
        right: 1rem;
    }

    .hexagon-ornament {
        display: none;
    }
}
