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

:root {
    --terracotta: #e87461;
    --teal: #5bb8a9;
    --deep-black: #1f1a17;
    --warm-cream: #e8ddd0;
    --holographic: #b08ed6;
    --charcoal: #2b2320;
    --muted-taupe: #a89484;
    --burnt-sienna: #c4654a;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: var(--deep-black);
    color: var(--warm-cream);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.scroll-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.frame {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.frame-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 700px;
}

/* Frame 1 - Identity */
.frame-1 {
    background: linear-gradient(135deg, var(--deep-black) 0%, var(--charcoal) 100%);
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 7rem);
    letter-spacing: -0.03em;
    color: var(--warm-cream);
    line-height: 1;
}

.title-dot {
    color: var(--terracotta);
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--muted-taupe);
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

.scroll-hint {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hint-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--muted-taupe);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hint-line {
    width: 60px;
    height: 1px;
    background: var(--muted-taupe);
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.3); transform-origin: left; }
}

/* Frame titles */
.frame-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 7rem);
    letter-spacing: -0.03em;
    color: var(--warm-cream);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.frame-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--muted-taupe);
    max-width: 500px;
}

/* Frames backgrounds */
.frame-2 { background: linear-gradient(180deg, var(--deep-black) 0%, #231e1b 100%); }
.frame-3 { background: linear-gradient(160deg, var(--charcoal) 0%, var(--deep-black) 100%); }
.frame-4 { background: linear-gradient(200deg, var(--deep-black) 0%, #1a1512 100%); }
.frame-5 { background: linear-gradient(140deg, #231e1b 0%, var(--deep-black) 100%); }
.frame-6 { background: radial-gradient(ellipse at center, var(--charcoal) 0%, var(--deep-black) 100%); }

/* Ambient glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--terracotta);
    bottom: -100px;
    right: 10%;
}

.glow-2 {
    width: 350px;
    height: 350px;
    background: var(--teal);
    top: 10%;
    right: 15%;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: var(--holographic);
    bottom: 15%;
    left: 10%;
}

.glow-4 {
    width: 400px;
    height: 400px;
    background: var(--terracotta);
    top: 5%;
    left: 20%;
    opacity: 0.1;
}

.glow-5 {
    width: 350px;
    height: 350px;
    background: var(--teal);
    bottom: 10%;
    right: 20%;
}

.glow-6 {
    width: 500px;
    height: 500px;
    background: var(--holographic);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

/* Skyline dividers */
.skyline-divider {
    flex: 0 0 80px;
    width: 80px;
    height: 100vh;
    display: flex;
    align-items: stretch;
}

.skyline-divider svg {
    width: 100%;
    height: 100%;
}

/* Skyline silhouette in frame 1 */
.skyline-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--charcoal) 0%, transparent 100%);
    z-index: 1;
}

/* Geometric compositions */
.geometric-comp {
    margin-top: 2.5rem;
    position: relative;
}

/* Frame 2 - rectangles */
.comp-2 {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.geo-rect {
    background: var(--terracotta);
    opacity: 0.6;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rect-1 { width: 40px; height: 80px; }
.rect-2 { width: 40px; height: 120px; background: var(--teal); }
.rect-3 { width: 40px; height: 60px; background: var(--holographic); }

.frame-2:hover .geo-rect {
    opacity: 1;
    transform: translateY(-4px);
}

/* Frame 3 - grid lines */
.grid-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grid-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--teal), transparent);
    opacity: 0.4;
    animation: gridShimmer 3s ease-in-out infinite;
}

.grid-line:nth-child(2) { animation-delay: 0.4s; width: 80%; }
.grid-line:nth-child(3) { animation-delay: 0.8s; width: 60%; }
.grid-line:nth-child(4) { animation-delay: 1.2s; width: 90%; }
.grid-line:nth-child(5) { animation-delay: 1.6s; width: 70%; }

@keyframes gridShimmer {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* Frame 4 - signal bars */
.comp-4 {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100px;
}

.signal-bar {
    width: 4px;
    background: var(--holographic);
    border-radius: 2px;
    animation: signalPulse 1.5s ease-in-out infinite;
}

.bar-1 { height: 30px; animation-delay: 0s; }
.bar-2 { height: 60px; animation-delay: 0.2s; }
.bar-3 { height: 90px; animation-delay: 0.4s; }
.bar-4 { height: 50px; animation-delay: 0.6s; }
.bar-5 { height: 70px; animation-delay: 0.8s; }

@keyframes signalPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Frame 5 - rhythm dots */
.comp-5 {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rhythm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--terracotta);
    animation: rhythmBeat 2s ease-in-out infinite;
}

.rhythm-dot:nth-child(2) { animation-delay: 0.28s; background: var(--teal); }
.rhythm-dot:nth-child(3) { animation-delay: 0.56s; }
.rhythm-dot:nth-child(4) { animation-delay: 0.84s; background: var(--holographic); }
.rhythm-dot:nth-child(5) { animation-delay: 1.12s; background: var(--teal); }
.rhythm-dot:nth-child(6) { animation-delay: 1.4s; }
.rhythm-dot:nth-child(7) { animation-delay: 1.68s; background: var(--holographic); }

@keyframes rhythmBeat {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Frame 6 - resolution */
.resolution-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    color: var(--terracotta);
    opacity: 0.15;
    position: absolute;
    bottom: 10%;
    right: 10%;
    z-index: 1;
}

/* Frame indicator */
.frame-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-taupe);
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.indicator-dot.active {
    opacity: 1;
    background: var(--terracotta);
    transform: scale(1.3);
}

/* Parallax content fade */
.frame-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.frame.visible .frame-content {
    opacity: 1;
    transform: translateX(0);
}
