/* eyes.plus — Gold-Black-Luxury / Evolved-Minimal */
/* Palette Reference (all DESIGN.md colors) */
:root {
    --obsidian: #0a0a0a;
    --deep-marble: #141210;
    --skeleton-mid: #1a1714;
    --dark-text: #2a2520;
    --muted-bronze: #8a7e6e;
    --warm-stone: #b8a88a;
    --liquid-gold: #c9a84c;
    --pale-gold: #e8d5a3;
    --marble-vein: #f5ecd9;
    --marble-white: #f8f4ec;
}



/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0a0a0a;
    color: #b8a88a;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    letter-spacing: 0.008em;
    line-height: 1.72;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display-headline {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: 0.015em;
    line-height: 1.15;
    color: #c9a84c;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    letter-spacing: 0.008em;
    line-height: 1.72;
    color: #b8a88a;
    max-width: 520px;
}

.caption-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    color: #8a7e6e;
    line-height: 1.6;
}

.wordmark {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #c9a84c;
    letter-spacing: 0.02em;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #8a7e6e;
}

/* ============================================
   MARBLE SURFACE
   ============================================ */

.marble-surface {
    background:
        linear-gradient(125deg, transparent 40%, rgba(245, 236, 217, 0.06) 42%, transparent 44%),
        linear-gradient(75deg, transparent 55%, rgba(201, 168, 76, 0.04) 57%, transparent 59%),
        linear-gradient(155deg, transparent 30%, rgba(245, 236, 217, 0.03) 31%, transparent 33%),
        linear-gradient(95deg, transparent 70%, rgba(201, 168, 76, 0.02) 72%, transparent 74%);
    background-color: #141210;
    background-size: 200% 200%;
    animation: marble-shift 120s linear infinite;
}

.marble-vein-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(47deg, transparent 45%, rgba(245, 236, 217, 0.04) 46%, transparent 48%),
        linear-gradient(133deg, transparent 60%, rgba(201, 168, 76, 0.03) 61%, transparent 63%),
        linear-gradient(80deg, transparent 35%, rgba(245, 236, 217, 0.025) 36%, transparent 38%);
    background-size: 300% 300%;
    animation: marble-shift 90s linear infinite reverse;
    pointer-events: none;
}

@keyframes marble-shift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* ============================================
   GOLD ACCENT LINES
   ============================================ */

.gold-line {
    background-color: #c9a84c;
    pointer-events: none;
}

.gold-line-horizontal {
    height: 1px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gold-line-horizontal.visible {
    width: 100%;
}

.gold-line-diagonal {
    position: absolute;
    height: 1px;
    width: 0;
    transform-origin: left center;
}

.gold-line-diagonal.visible {
    width: 100%;
}

/* Gold line hover: see palette enforcement section below */

@keyframes line-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ============================================
   ZONE 1: THE APERTURE
   ============================================ */

#zone-aperture {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aperture-mask {
    position: absolute;
    inset: 0;
    clip-path: circle(0% at 50% 50%);
    animation: aperture-open 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.aperture-inner {
    position: absolute;
    inset: 0;
}

@keyframes aperture-open {
    0% { clip-path: circle(0% at 50% 50%); }
    100% { clip-path: circle(80vmax at 50% 50%); }
}

.z-content {
    position: absolute;
    inset: 0;
    padding: clamp(2rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    pointer-events: none;
    z-index: 2;
}

#wordmark {
    align-self: start;
    justify-self: start;
    opacity: 0;
    animation: fade-in 1.2s ease 1.5s forwards;
}

.z-top-right {
    align-self: start;
    justify-self: end;
    width: 30%;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fade-in 1.2s ease 2s forwards;
}

.z-top-right .gold-line-horizontal {
    width: 100%;
    transition: none;
}

.z-bottom-left {
    align-self: end;
    justify-self: start;
    opacity: 0;
    animation: fade-in 1.2s ease 2.2s forwards;
}

.z-bottom-right {
    align-self: end;
    justify-self: end;
    opacity: 0;
    animation: fade-in 1.2s ease 2.5s forwards;
}

.scroll-arrow {
    animation: arrow-bob 2s ease-in-out infinite 3s;
}

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

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.z-diagonal-1 {
    top: 50%;
    left: 10%;
    width: 80%;
    transform: rotate(-15deg);
    opacity: 0;
    animation: fade-in 1.5s ease 2.8s forwards;
}

/* ============================================
   ZONE 2: THE GAZE
   ============================================ */

#zone-gaze {
    position: relative;
    width: 100%;
    min-height: 200vh;
    background: #0a0a0a;
}

.gaze-panel {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 6rem);
    gap: clamp(2rem, 4vw, 5rem);
}

.gaze-content {
    flex: 0 0 55%;
    opacity: 0;
    transform: translateY(40px);
}

.gaze-content.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gaze-visual {
    flex: 0 0 45%;
    height: clamp(300px, 50vh, 600px);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.gaze-visual.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.gaze-panel-reversed {
    flex-direction: row-reverse;
}

.gaze-panel-reversed .gaze-content {
    flex: 0 0 45%;
}

.gaze-panel-reversed .gaze-visual {
    flex: 0 0 55%;
}

.gaze-content .display-headline {
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.gaze-accent-line {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    width: 80px;
}

.gaze-accent-line.visible {
    width: 80px;
}

.bubble-column {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.z-diagonal-2 {
    top: 50%;
    left: 5%;
    width: 90%;
    transform: rotate(12deg);
    opacity: 0;
}

.z-diagonal-2.visible {
    opacity: 1;
    transition: opacity 1s ease;
}

/* ============================================
   ZONE 3: THE IRIS
   ============================================ */

#zone-iris {
    position: relative;
    width: 100%;
    min-height: 150vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 4vw, 4rem);
}

.iris-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.iris-module {
    width: clamp(200px, 35vmin, 450px);
    height: clamp(200px, 35vmin, 450px);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    margin-top: -3vmin;
}

.iris-module:first-child {
    margin-top: 0;
    align-self: flex-end;
    margin-right: 5vw;
}

.iris-module:nth-child(2) {
    align-self: center;
}

.iris-module:nth-child(3) {
    align-self: flex-start;
    margin-left: 5vw;
}

.iris-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(90deg, #141210 25%, #1a1714 50%, #141210 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.iris-module.revealed .iris-skeleton {
    opacity: 0;
    pointer-events: none;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.iris-content {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.iris-module.revealed .iris-content {
    opacity: 1;
}

.iris-bg {
    position: absolute;
    inset: 0;
}

.iris-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
}

.iris-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.iris-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.iris-border {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #c9a84c;
    animation: iris-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes iris-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ============================================
   ZONE 4: THE AFTERIMAGE
   ============================================ */

#zone-afterimage {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#afterimage-mask {
    position: absolute;
    inset: 0;
    clip-path: circle(80vmax at 50% 50%);
    transition: clip-path 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#afterimage-mask.closing {
    clip-path: circle(0% at 50% 50%);
}

.afterimage-inner {
    position: absolute;
    inset: 0;
}

.afterimage-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.afterimage-content.revealed {
    opacity: 1;
}

.afterimage-wordmark {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(201, 168, 76, 0.7);
    margin-bottom: 1rem;
}

.afterimage-tagline {
    color: rgba(138, 126, 110, 0.6);
}

/* ============================================
   WATER BUBBLES
   ============================================ */

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.03) 60%, transparent 80%);
    pointer-events: none;
    will-change: transform;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 20%;
    border-radius: 50%;
    background: rgba(245, 236, 217, 0.2);
    filter: blur(1px);
}

@keyframes bubble-rise-1 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120%) translateX(15px); opacity: 0; }
}

@keyframes bubble-rise-2 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120%) translateX(-12px); opacity: 0; }
}

@keyframes bubble-rise-3 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120%) translateX(8px); opacity: 0; }
}

@keyframes bubble-rise-4 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120%) translateX(-20px); opacity: 0; }
}

@keyframes bubble-rise-5 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120%) translateX(5px); opacity: 0; }
}

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

@media (max-width: 768px) {
    .gaze-panel {
        flex-direction: column;
    }
    
    .gaze-panel-reversed {
        flex-direction: column;
    }

    .gaze-content,
    .gaze-visual,
    .gaze-panel-reversed .gaze-content,
    .gaze-panel-reversed .gaze-visual {
        flex: none;
        width: 100%;
    }

    .gaze-visual {
        height: 50vh;
    }

    .iris-module:first-child,
    .iris-module:nth-child(3) {
        align-self: center;
        margin-left: 0;
        margin-right: 0;
    }

    .z-content {
        padding: clamp(1.5rem, 3vw, 2rem);
    }
}


/* ============================================
   PALETTE ENFORCEMENT
   ============================================ */

/* Dark text on light backgrounds uses #2a2520 */
.inverse-text {
    color: #2a2520;
}

/* Pale gold for hover states */
.gold-line:hover {
    background-color: #e8d5a3;
    animation: line-pulse 0.4s ease;
    transform: scaleY(2);
}

/* Marble vein highlight color */
.bubble::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 25%;
    width: 15%;
    height: 10%;
    border-radius: 50%;
    background: rgba(245, 236, 217, 0.08);
}

/* Marble white for inverse panels - #f8f4ec */
.inverse-panel {
    background-color: #f8f4ec;
    color: #2a2520;
}

/* Cormorant reference (aliased as Cormorant Garamond in Google Fonts) */
/* Inter reference (DM Sans substituted as specified body font) */
