/* simidiots.net - Art-Deco Ocean Liner */

:root {
    --driftwood-cream: #F0EDE5;
    --coastal-teal: #3A8E8E;
    --sea-glass: #7EC8C8;
    --tarnished-gold: #B8963E;
    --abyssal-charcoal: #1A1A1E;
    --foam-white: #FAFAF7;
    --slate-deep: #2A3040;
    --mineral-frost: rgba(126, 200, 200, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--driftwood-cream);
    color: var(--abyssal-charcoal);
    font-family: 'Lora', serif;
    overflow-x: hidden;
}

/* Hero */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 6vw;
}

.deco-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crystal-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    pointer-events: none;
}

.crystal-cluster {
    width: 100%;
    height: 100%;
}

.crystal-cluster polygon {
    transform: scale(0.6);
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.crystal-cluster polygon:nth-child(1) { animation-delay: 0.1s; transform-origin: 200px 85px; }
.crystal-cluster polygon:nth-child(2) { animation-delay: 0.2s; transform-origin: 160px 112px; }
.crystal-cluster polygon:nth-child(3) { animation-delay: 0.3s; transform-origin: 240px 112px; }
.crystal-cluster polygon:nth-child(4) { animation-delay: 0.4s; transform-origin: 130px 131px; }
.crystal-cluster polygon:nth-child(5) { animation-delay: 0.5s; transform-origin: 270px 126px; }
.crystal-cluster polygon:nth-child(6) { animation-delay: 0.3s; transform-origin: 185px 115px; }
.crystal-cluster polygon:nth-child(7) { animation-delay: 0.4s; transform-origin: 220px 115px; }

@keyframes bounceIn {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-domain {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--abyssal-charcoal);
}

.hero-tagline {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: var(--coastal-teal);
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Deco Divider */
.deco-divider {
    text-align: center;
    padding: 3vh 0;
}

.deco-divider svg {
    width: 200px;
    height: 30px;
}

/* Section labels */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tarnished-gold);
    margin-bottom: 2rem;
}

/* Section 2: The Ballroom */
.section-ballroom {
    min-height: 100vh;
    padding: 8vh 6vw;
}

.ballroom-grid {
    display: grid;
    grid-template-columns: 55% 5% 40%;
    max-width: 1100px;
    margin: 0 auto;
}

.ballroom-text {
    padding-right: 2vw;
}

.manifesto {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.8;
    color: var(--abyssal-charcoal);
    margin-bottom: 1.5rem;
}

.ballroom-gap {
    /* empty breathing room column */
}

.ballroom-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-crystal {
    width: 100%;
    max-width: 300px;
}

.deco-frame {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 1.5s ease;
}

.section-ballroom.visible .deco-frame {
    stroke-dashoffset: 0;
}

.frame-crystal-shape {
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-ballroom.visible .frame-crystal-shape:nth-child(4) { transform: scale(1); transition-delay: 1.6s; }
.section-ballroom.visible .frame-crystal-shape:nth-child(5) { transform: scale(1); transition-delay: 1.68s; }
.section-ballroom.visible .frame-crystal-shape:nth-child(6) { transform: scale(1); transition-delay: 1.76s; }
.section-ballroom.visible .frame-crystal-shape:nth-child(7) { transform: scale(1); transition-delay: 1.84s; }
.section-ballroom.visible .frame-crystal-shape:nth-child(8) { transform: scale(1); transition-delay: 1.92s; }

/* Section 3: The Chart Room */
.section-chartroom {
    padding: 8vh 6vw;
}

.chartroom-layout {
    display: flex;
    gap: 3vw;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.chart-card {
    flex: 1;
    max-width: 35vw;
    background: var(--foam-white);
    padding: 32px 28px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chart-card:nth-child(2) { margin-top: 8vh; }
.chart-card:nth-child(3) { margin-top: 16vh; }

.card-deco-top {
    margin-bottom: 1.5rem;
}

.card-deco-top svg {
    width: 100%;
    height: 20px;
}

.card-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--abyssal-charcoal);
    margin-bottom: 1rem;
}

.card-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--abyssal-charcoal);
}

/* Bounce enter */
.bounce-item {
    opacity: 0;
    transform: scale(0.6);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s ease;
    transition-delay: var(--bounce-delay);
}

.section-chartroom.visible .bounce-item {
    opacity: 1;
    transform: scale(1);
}

/* Section 4: The Promenade Deck */
.section-promenade {
    background: var(--coastal-teal);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
    gap: 3vw;
}

.promenade-rail {
    width: 20px;
    height: 300px;
    flex-shrink: 0;
}

.promenade-rail svg {
    width: 100%;
    height: 100%;
}

.left-rail svg {
    animation: sway 4s ease-in-out infinite;
}

.right-rail svg {
    animation: sway 4s ease-in-out infinite reverse;
}

@keyframes sway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.promenade-text {
    max-width: 60vw;
    text-align: center;
}

.promenade-text p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.85;
    color: var(--foam-white);
}

/* Section 5: The Log */
.section-log {
    background: var(--abyssal-charcoal);
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6vh 5vw;
}

.log-domain {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sea-glass);
}

.log-rule {
    height: 1px;
    width: 0;
    background: var(--tarnished-gold);
    opacity: 0.4;
    margin: 1.5rem 0;
    transition: width 1s ease-out;
}

.section-log.visible .log-rule {
    width: 40vw;
}

.log-meta {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--sea-glass);
    opacity: 0.6;
}
