/* ============================================================
   koomimi.com — Chrome-Metallic Flat Design
   ============================================================ */

:root {
    /* Chrome Metallic Palette */
    --polished-chrome: #E0E0E8;
    --brushed-steel: #C8C8D4;
    --gunmetal: #2A2A32;
    --warm-graphite: #4A4A56;
    --signal-blue: #3D5AFE;
    --copper-flash: #D4713B;
    --lavender-mist: #8888A0;
    --white: #FFFFFF;
    --deep-slate: #1A1A24;
    --silver-light: #E8E8EC;
    --chrome-mid: #D8D8E0;
    --chrome-dark: #C0C0CC;
    --chrome-shadow: #D0D0DC;
    --chrome-subtle: #CCCCDA;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--polished-chrome);
    color: var(--gunmetal);
    line-height: 1.72;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HERO SECTION — Chrome Dashboard
   ============================================================ */

.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(175deg, var(--silver-light) 0%, var(--chrome-shadow) 50%, var(--brushed-steel) 100%);
    overflow: hidden;
}

/* Hero content positioned at golden ratio (42% from top) */
.hero-content {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw + 0.5rem, 7rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gunmetal);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.hero-rule {
    width: 100%;
    height: 1px;
    background: #A0A0B0;
    margin: 0 auto 1rem;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.15rem);
    color: var(--warm-graphite);
    line-height: 1.72;
    letter-spacing: 0.01em;
}

.hero-tagline--second {
    color: var(--lavender-mist);
    font-size: 0.9rem;
}

/* Hero Edge Waveforms */
.hero-waveform {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 1;
    opacity: 0.35;
}

.hero-waveform--left {
    left: 3%;
}

.hero-waveform--right {
    right: 3%;
}

.hero-wave-svg {
    width: 100%;
    height: 100%;
}

.hero-wave-path {
    transition: stroke 0.3s ease;
}

.hero-wave-path--blue {
    stroke: var(--signal-blue);
    opacity: 0.6;
}

/* Scroll Indicator — Breathing Pulse */
.scroll-indicator {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: breathe 3s ease-in-out infinite;
    cursor: default;
}

@keyframes breathe {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}

/* ============================================================
   FREQUENCY BAND SECTIONS
   ============================================================ */

.freq-band {
    padding: 120px 8vw;
    position: relative;
    overflow: hidden;
}

/* Chrome gradient rotation per section — 15deg increments */
.freq-band--1 {
    background: linear-gradient(175deg, var(--polished-chrome) 0%, var(--chrome-shadow) 50%, var(--brushed-steel) 100%);
}

.freq-band--2 {
    background: linear-gradient(160deg, var(--brushed-steel) 0%, var(--chrome-mid) 50%, var(--polished-chrome) 100%);
}

.freq-band--3 {
    background: linear-gradient(190deg, var(--polished-chrome) 0%, var(--chrome-subtle) 40%, var(--chrome-dark) 100%);
}

.freq-band--4 {
    background: linear-gradient(205deg, var(--brushed-steel) 0%, var(--polished-chrome) 50%, var(--chrome-mid) 100%);
}

.freq-band--5 {
    background: linear-gradient(220deg, var(--polished-chrome) 0%, var(--brushed-steel) 50%, var(--chrome-dark) 100%);
}

/* Two-column zigzag layout */
.band-inner {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.band-inner--text-left {
    flex-direction: row;
}

.band-inner--text-right {
    flex-direction: row-reverse;
}

.band-inner--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.band-text-col {
    flex: 0 0 55%;
    max-width: 55%;
}

.band-text-col--full {
    flex: 0 0 100%;
    max-width: 700px;
}

.band-shape-col {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Section markers — small blue rectangles along left margin */
.section-marker {
    width: 8px;
    height: 24px;
    background: var(--signal-blue);
    flex-shrink: 0;
}

.band-headline-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.band-headline-wrap--center {
    justify-content: center;
}

.band-headline-wrap--center .section-marker {
    display: none;
}

.band-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw + 0.3rem, 3.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gunmetal);
    line-height: 1.1;
}

.band-summary {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.15rem);
    color: var(--warm-graphite);
    line-height: 1.72;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.band-summary--center {
    text-align: center;
}

/* Band body — initially hidden, revealed via progressive disclosure */
.band-body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.freq-band.phase-2 .band-body {
    opacity: 1;
    transform: translateY(0);
}

.band-paragraph {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.15rem);
    color: var(--warm-graphite);
    line-height: 1.72;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.band-paragraph--center {
    text-align: center;
}

/* Frequency annotations — Phase 3 reveal */
.band-annotations {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.3s, transform 0.4s ease-out 0.3s;
}

.band-annotations--center {
    justify-content: center;
}

.freq-band.phase-3 .band-annotations {
    opacity: 1;
    transform: translateY(0);
}

.annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--lavender-mist);
    letter-spacing: 0.02em;
}

/* ============================================================
   WAVEFORM SHAPES & GEOMETRY
   ============================================================ */

.shape-composition {
    width: 100%;
    max-width: 400px;
    height: auto;
    transform: scale(0.6);
    opacity: 0.3;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease-out;
}

.freq-band.phase-2 .shape-composition {
    transform: scale(1);
    opacity: 1;
}

.waveform-shape {
    transition: stroke 0.3s ease;
}

.waveform-shape:hover {
    stroke: var(--signal-blue);
}

/* Geometric elements */
.geo-circle {
    transition: stroke 0.3s ease;
}

.geo-rect {
    transition: opacity 0.3s ease;
}

.geo-triangle {
    transition: opacity 0.3s ease;
}

/* Micro waveform accents */
.micro-waveform {
    width: 120px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.4s ease-out 0.3s;
}

.freq-band.phase-3 .micro-waveform {
    opacity: 0.5;
}

/* Section waveform opacity pulse */
@keyframes waveformPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.freq-band.phase-2 .waveform-shape--sine-overlay,
.freq-band.phase-2 .waveform-shape--sawtooth-overlay,
.freq-band.phase-2 .waveform-shape--square-overlay,
.freq-band.phase-2 .waveform-shape--complex-overlay {
    animation: waveformPulse 4s ease-in-out infinite;
}

/* ============================================================
   HOVER: WAVEFORM UNDERLINE ON TEXT BLOCKS
   ============================================================ */

.band-text-col {
    position: relative;
}

.band-paragraph {
    position: relative;
    display: inline-block;
}

/* ============================================================
   CLOSING SECTION
   ============================================================ */

.freq-band--closing {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   FOOTER — Deep Slate ground
   ============================================================ */

.site-footer {
    background: var(--deep-slate);
    padding: 3rem 8vw;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--lavender-mist);
    letter-spacing: 0.1em;
}

.footer-annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--lavender-mist);
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* Copper Flash appearance 2 of 3 */
.footer-accent {
    width: 30px;
    height: 2px;
    background: var(--copper-flash);
    margin-left: auto;
}

/* ============================================================
   PROGRESSIVE DISCLOSURE — Phase states
   ============================================================ */

/* Phase 1: Headline + summary visible, rest hidden */
.freq-band .band-title,
.freq-band .band-summary {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.freq-band.phase-1 .band-title,
.freq-band.phase-1 .band-summary {
    opacity: 1;
    transform: translateY(0);
}

/* Phase 2: Body text + shapes scale up */
/* (Already defined above for .band-body, .shape-composition) */

/* Phase 3: Annotations + micro waveforms fade in */
/* (Already defined above for .band-annotations, .micro-waveform) */

/* Section marker visibility */
.section-marker {
    opacity: 0;
    transition: opacity 0.4s ease-out 0.5s;
}

.freq-band.phase-3 .section-marker {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .band-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .band-inner--text-right {
        flex-direction: column;
    }

    .band-text-col,
    .band-shape-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .freq-band {
        padding: 80px 6vw;
    }

    .hero-waveform {
        display: none;
    }
}

@media (max-width: 600px) {
    .freq-band {
        padding: 60px 5vw;
    }

    .band-inner {
        gap: 1.5rem;
    }

    .band-annotations {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .scroll-indicator {
        bottom: 3%;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-accent {
        margin-left: 0;
    }
}
