/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { background: #0c0a08; }

body {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    color: #c9bfa3;
    background: #0c0a08;
    overflow: hidden;
    height: 100vh;
}

/* === SCROLL CONTAINER === */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* === SECTIONS === */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.section-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px 50px rgba(12, 10, 8, 0.6);
    pointer-events: none;
    z-index: 5;
}

/* === SECTION 1: EYES === */
.section-eyes {
    background: #0c0a08;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 15vh;
    padding-left: 8vw;
}

.eyes-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 12vw, 10rem);
    color: #d4a843;
    letter-spacing: 0.02em;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.eyes-line {
    width: 0;
    height: 1px;
    background: #d4a843;
    margin-top: 1.5rem;
    animation: drawLine 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    position: relative;
    z-index: 2;
}

@keyframes drawLine {
    to { width: 25vw; }
}

/* Floating bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #d4a843;
    opacity: 0.3;
    z-index: 1;
}

.bubble-float {
    animation-name: floatUp;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-iteration-count: infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { opacity: 0.15; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* === SECTION 2: PERCEIVE === */
.section-perceive {
    background: linear-gradient(180deg, #0c0a08 0%, #2a1f14 60%, #0c0a08 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.iris-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    clip-path: circle(5% at 50% 50%);
    transition: clip-path 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.iris-container.revealed {
    clip-path: circle(85% at 50% 50%);
}

.iris-texture {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(201, 191, 163, 0.03) 0px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(201, 191, 163, 0.02) 0px, transparent 1px, transparent 4px),
        radial-gradient(ellipse at 40% 45%, #c9bfa3 0%, #8a7d65 30%, #2a1f14 70%, #0c0a08 100%);
}

.iris-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vmin;
    height: 50vmin;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.iris-ring {
    fill: none;
    stroke: #d4a843;
    stroke-width: 0.5;
    opacity: 0.25;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.iris-container.revealed .ring-1 { stroke-dashoffset: 0; transition-delay: 0.2s; }
.iris-container.revealed .ring-2 { stroke-dashoffset: 0; transition-delay: 0.5s; }
.iris-container.revealed .ring-3 { stroke-dashoffset: 0; transition-delay: 0.8s; }
.iris-container.revealed .ring-4 { stroke-dashoffset: 0; transition-delay: 1.1s; }

.perceive-text {
    position: absolute;
    top: 35%;
    left: 55%;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 2rem;
    color: #f5f0e1;
    z-index: 3;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s;
}

.iris-container.revealed .perceive-text {
    opacity: 1;
}

/* Iris ring pulse */
@keyframes ringPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.4; }
}

.iris-container.revealed .iris-ring {
    animation: ringPulse 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
.iris-container.revealed .ring-1 { animation-delay: 0s; }
.iris-container.revealed .ring-2 { animation-delay: 1s; }
.iris-container.revealed .ring-3 { animation-delay: 2s; }
.iris-container.revealed .ring-4 { animation-delay: 3s; }

/* === SECTION 3: VALUE === */
.section-value {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialogue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.dialogue-left {
    background: #0c0a08;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6vw;
}

.dialogue-left .dialogue-phrase {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #d4a843;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(0);
}

.dialogue-right {
    background: #f5f0e1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6vw;
}

.dialogue-right .dialogue-phrase {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #1a1510;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(0);
}

/* Shake animation */
@keyframes shake {
    0% { transform: translateX(0); opacity: 1; }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); opacity: 1; }
}

.shake-target.animate {
    animation: shake 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* === SECTION 4: SEE === */
.section-see {
    background: #0c0a08;
    display: flex;
    align-items: center;
    justify-content: center;
}

.montage-field {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 85vw;
    height: 80vh;
    position: relative;
    z-index: 2;
}

.montage-bubble {
    border-radius: 50%;
    border: 1px solid #d4a843;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s;
    cursor: default;
}

.montage-bubble:hover {
    transform: scale(1.15) !important;
    border-color: #f5f0e1;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.12); opacity: 1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.bounce-target.animate {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.vintage-fill {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.vf-1 { background: radial-gradient(ellipse at 35% 40%, #c9bfa3, #8a7d65 50%, #2a1f14); }
.vf-2 { background: radial-gradient(ellipse at 60% 30%, #d4a843, #8a7d65 60%, #1a1510); }
.vf-3 { background: radial-gradient(ellipse at 45% 55%, #b8860b, #c9bfa3 40%, #2a1f14); }
.vf-4 { background: radial-gradient(ellipse at 50% 50%, #f5f0e1, #8a7d65 50%, #0c0a08); }
.vf-5 { background: radial-gradient(ellipse at 30% 60%, #d4a843, #2a1f14 70%); }
.vf-6 { background: radial-gradient(ellipse at 70% 35%, #c9bfa3, #b8860b 45%, #1a1510); }
.vf-7 { background: radial-gradient(ellipse at 40% 40%, #8a7d65, #2a1f14 60%, #0c0a08); }
.vf-8 { background: radial-gradient(ellipse at 55% 45%, #d4a843, #8a7d65 55%, #2a1f14); }
.vf-9 { background: radial-gradient(ellipse at 50% 50%, #b8860b, #1a1510 65%); }
.vf-10 { background: radial-gradient(ellipse at 35% 55%, #c9bfa3, #d4a843 40%, #2a1f14); }

.bg-bubbles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* === SECTION 5: WORTH === */
.section-worth {
    background: linear-gradient(180deg, #2a1f14 0%, #0c0a08 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.worth-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4a843;
    animation: pulse 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px 2px rgba(212, 168, 67, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(212, 168, 67, 0.4); }
}

.worth-text {
    margin-top: 4rem;
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7d65;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.worth-text.visible {
    opacity: 1;
}

/* === NAVIGATION DOTS === */
.nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-dots.visible {
    opacity: 1;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #d4a843;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.nav-dot.active {
    background: #d4a843;
}

.nav-dot:hover {
    transform: scale(1.4);
}

/* Thin asymmetric rules */
.dialogue-left::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 5%;
    width: 35%;
    height: 1px;
    background: #8a7d65;
}

.dialogue-right::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 8%;
    width: 30%;
    height: 1px;
    background: #8a7d65;
    opacity: 0.5;
}

.dialogue-left, .dialogue-right {
    position: relative;
}
