/* tanso.center - Flat-design retro-futurism through a marble museum lens */

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

:root {
    --marble-white: #f0ece4;
    --retro-teal: #1a8a7a;
    --burnt-sienna: #c45a30;
    --slate-indigo: #3a3a6a;
    --saffron-gold: #d4a030;
    --corridor-dark: #1a1a20;
    --inst-cream: #e8e0d0;
    --marble-vein: #a8a098;
    --body-text: #2a2a30;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--marble-white);
    color: var(--body-text);
    font-family: 'Archivo', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Floor Indicator ---- */
.floor-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.5s;
}

.floor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--marble-vein);
    transition: background 0.3s;
}

.floor-dot.dot-active {
    background: var(--corridor-dark);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ---- Room Base ---- */
.room {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.room-number {
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: 'Righteous', cursive;
    font-size: 120px;
    color: currentColor;
    opacity: 0.1;
    line-height: 1;
}

.room-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.room-content h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.room-content p {
    margin-bottom: 14px;
}

/* ---- Atrium ---- */
.atrium-room {
    background: var(--marble-white);
}

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

.logo-large {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.logo-circle {
    stroke-dasharray: 570;
    stroke-dashoffset: 570;
    animation: drawLogo 1.5s ease forwards 0.3s;
}

.logo-hex {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawLogo 1.5s ease forwards 0.6s;
}

@keyframes drawLogo {
    to { stroke-dashoffset: 0; }
}

#atrium-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(3rem, 10vw, 8rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--corridor-dark);
    margin-bottom: 12px;
}

#atrium-title span {
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    animation: zoomChar 0.3s ease forwards;
}

#atrium-title span:nth-child(1) { animation-delay: 1.2s; }
#atrium-title span:nth-child(2) { animation-delay: 1.26s; }
#atrium-title span:nth-child(3) { animation-delay: 1.32s; }
#atrium-title span:nth-child(4) { animation-delay: 1.38s; }
#atrium-title span:nth-child(5) { animation-delay: 1.44s; }
#atrium-title span:nth-child(6) { animation-delay: 1.50s; }
#atrium-title span:nth-child(7) { animation-delay: 1.56s; }
#atrium-title span:nth-child(8) { animation-delay: 1.62s; }
#atrium-title span:nth-child(9) { animation-delay: 1.68s; }
#atrium-title span:nth-child(10) { animation-delay: 1.74s; }
#atrium-title span:nth-child(11) { animation-delay: 1.80s; }
#atrium-title span:nth-child(12) { animation-delay: 1.86s; }

@keyframes zoomChar {
    to { opacity: 1; transform: scale(1); }
}

.atrium-tagline {
    font-family: 'Righteous', cursive;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--marble-vein);
}

.arrow-pulse {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: arrowBounce 1s ease-in-out infinite;
}

.arrow-pulse svg {
    width: 30px;
    height: 30px;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Corridors ---- */
.corridor {
    height: 60px;
    background: var(--corridor-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.corridor-arrow {
    width: 24px;
    height: 24px;
}

/* ---- Room Colors ---- */
.room-teal {
    background: var(--retro-teal);
    color: var(--marble-white);
}

.room-teal .room-number { color: var(--marble-white); }
.room-teal h2 { color: var(--marble-white); }

.room-sienna {
    background: var(--burnt-sienna);
    color: var(--marble-white);
}

.room-sienna .room-number { color: var(--marble-white); }
.room-sienna h2 { color: var(--marble-white); }

.room-indigo {
    background: var(--slate-indigo);
    color: var(--marble-white);
}

.room-indigo .room-number { color: var(--marble-white); }
.room-indigo h2 { color: var(--marble-white); }

.room-gold {
    background: var(--saffron-gold);
    color: var(--corridor-dark);
}

.room-gold .room-number { color: var(--corridor-dark); }
.room-gold h2 { color: var(--corridor-dark); }

/* ---- Column Silhouette ---- */
.column-silhouette {
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 0;
    width: 20px;
    border-left: 2px solid rgba(168, 160, 152, 0.3);
    border-right: 2px solid rgba(168, 160, 152, 0.3);
}

.column-silhouette::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    right: -6px;
    height: 12px;
    border-bottom: 2px solid rgba(168, 160, 152, 0.3);
}

.column-silhouette::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -6px;
    right: -6px;
    height: 12px;
    border-top: 2px solid rgba(168, 160, 152, 0.3);
}

/* ---- Pediment Crown ---- */
.pediment-crown {
    width: 200px;
    height: 30px;
    margin: 0 auto 20px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    background: rgba(240, 236, 228, 0.15);
}

/* ---- Hex Ornament ---- */
.hex-ornament {
    margin-top: 20px;
    text-align: center;
}

.hex-ornament svg {
    width: 40px;
    height: 40px;
}

/* ---- Classical Frieze ---- */
.classical-frieze {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        rgba(240, 236, 228, 0.15) 0px,
        rgba(240, 236, 228, 0.15) 15px,
        transparent 15px,
        transparent 20px
    );
}

.frieze-light {
    background: repeating-linear-gradient(
        90deg,
        rgba(240, 236, 228, 0.1) 0px,
        rgba(240, 236, 228, 0.1) 12px,
        transparent 12px,
        transparent 18px
    );
}

.frieze-dark {
    background: repeating-linear-gradient(
        90deg,
        rgba(26, 26, 32, 0.15) 0px,
        rgba(26, 26, 32, 0.15) 15px,
        transparent 15px,
        transparent 20px
    );
}

/* ---- Generative Patterns ---- */
.gen-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pattern-hex {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,5 55,17.5 55,42.5 30,55 5,42.5 5,17.5' fill='none' stroke='rgba(0,0,0,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.pattern-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(0,0,0,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* ---- Zoom Focus ---- */
.zoom-focus {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.zoom-focus.visible {
    transform: scale(1);
    opacity: 1;
}

/* ---- Information Desk Footer ---- */
.info-desk {
    background: var(--corridor-dark);
    padding: 60px 20px 40px;
    text-align: center;
}

.info-icons {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 48px;
    height: 48px;
}

.info-label {
    font-family: 'Righteous', cursive;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--marble-vein);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 30px;
    border-top: 1px solid rgba(240, 236, 228, 0.1);
}

.logo-small {
    width: 24px;
    height: 24px;
}

.footer-name {
    font-family: 'Righteous', cursive;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--marble-white);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .room-number {
        font-size: 80px;
    }

    #atrium-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .floor-indicator {
        display: none;
    }

    .info-icons {
        gap: 20px;
    }

    .column-silhouette {
        display: none;
    }
}
