/* =========================================================
   saram.ai — Human in the Age of AI
   Palette: Digital Void #0a0a14 → Dawn #fdf0e6
   ========================================================= */

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

/* Full-page atmospheric gradient: Digital Void → Dawn */
body {
    background: linear-gradient(
        to bottom,
        #0a0a14  0%,
        #1a1a2e 20%,
        #3a2a3e 40%,
        #6a4a5e 55%,
        #c8888a 70%,
        #e8a0b4 80%,
        #fdf0e6 100%
    );
    background-attachment: fixed;
    color: #f0e4d8;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.9;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Noise Overlay ─────────────────────────────────────── */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* ── Floating Gradient Orbs ────────────────────────────── */
.orb {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(232, 160, 180, 0.28), transparent 60%);
    top: 5%;
    left: -120px;
    animation: drift1 30s ease-in-out infinite;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(136, 212, 224, 0.18), transparent 60%);
    top: 30%;
    right: -100px;
    animation: drift2 26s ease-in-out infinite;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(200, 136, 138, 0.22), transparent 60%);
    bottom: 25%;
    left: 25%;
    animation: drift3 35s ease-in-out infinite;
}

.orb-4 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(232, 160, 180, 0.2), transparent 60%);
    bottom: 10%;
    right: 15%;
    animation: drift4 28s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20%  { transform: translate(90px, 70px) scale(1.05); }
    50%  { transform: translate(45px, -50px) scale(0.95); }
    75%  { transform: translate(-70px, 35px) scale(1.02); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-80px, 55px) scale(1.04); }
    55%  { transform: translate(-35px, -65px) scale(0.96); }
    80%  { transform: translate(55px, 25px) scale(1.03); }
}
@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30%  { transform: translate(65px, -45px) scale(1.06); }
    65%  { transform: translate(-45px, 55px) scale(0.94); }
}
@keyframes drift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(-55px, -40px) scale(1.05); }
    70%  { transform: translate(70px, 30px) scale(0.97); }
}

/* ── Parallax Face Layers (hero) ───────────────────────── */
.face-layer {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    will-change: transform;
}

.face-layer-1 {
    width: 600px;
    height: 700px;
    background: radial-gradient(ellipse at 50% 40%,
        rgba(232, 160, 180, 0.12) 0%,
        rgba(200, 136, 138, 0.07) 35%,
        transparent 70%
    );
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px);
    animation: faceDrift1 40s ease-in-out infinite;
}

.face-layer-2 {
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(136, 212, 224, 0.08) 0%,
        transparent 70%
    );
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(40px);
    animation: faceDrift2 35s ease-in-out infinite;
}

.face-layer-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
        rgba(240, 228, 216, 0.1) 0%,
        transparent 70%
    );
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(25px);
    animation: faceDrift3 30s ease-in-out infinite;
}

@keyframes faceDrift1 {
    0%, 100% { transform: translateX(-50%) translateY(0) scaleX(1); }
    50%  { transform: translateX(-50%) translateY(30px) scaleX(1.05); }
}
@keyframes faceDrift2 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    33%  { transform: translateX(-48%) translateY(-20px); }
    66%  { transform: translateX(-52%) translateY(20px); }
}
@keyframes faceDrift3 {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50%  { transform: translateX(-50%) translateY(-15px) scale(1.1); }
}

/* ── Zone Base ─────────────────────────────────────────── */
.zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-content {
    max-width: 860px;
    padding: 60px 24px;
    width: 100%;
}

/* ── Digital Zone Colors ───────────────────────────────── */
.digital-text {
    color: #88d4e0;
}

/* ── Bilingual Text Pairs ──────────────────────────────── */
.bilingual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 0.2em;
}

.bilingual .ko {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    color: #f0e4d8;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.bilingual .en {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: #c8888a;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

/* Hero bilingual — larger scale */
.bilingual-hero {
    margin-bottom: 1.5rem;
    gap: 0.15em;
}

.bilingual-hero .ko {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #f0e4d8;
}

.bilingual-hero .en {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: #c8888a;
    letter-spacing: 0.2em;
    font-style: italic;
}

/* Heading bilingual */
.bilingual-heading .ko {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: #f0e4d8;
}

.bilingual-heading .en {
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    color: #c8888a;
    margin-bottom: 1rem;
}

/* Large bilingual */
.bilingual-large .ko {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.bilingual-large .en {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
}

/* ── Domain Label ──────────────────────────────────────── */
.domain-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #6a6a80;
    letter-spacing: 0.4em;
    text-transform: lowercase;
    margin-bottom: 2.5rem;
}

/* ── Zone Descriptors (digital zone) ──────────────────── */
.zone-descriptor {
    font-family: 'Nanum Myeongjo', serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: #88d4e0;
    margin-bottom: 0.25rem;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.zone-descriptor-en {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: #6a6a80;
    font-style: italic;
    letter-spacing: 0.06em;
}

/* ── Eyebrow ───────────────────────────────────────────── */
.eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: #6a6a80;
    margin-bottom: 2rem;
}

/* ── Boundary Lines ─────────────────────────────────────── */
.boundary-line {
    font-family: 'Nanum Myeongjo', serif;
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
    font-weight: 400;
    color: #f0e4d8;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    letter-spacing: 0.03em;
}

.dissolve-dot {
    color: #6a6a80;
    font-size: 0.7em;
    opacity: 0.6;
}

/* ── Emergence Rings ───────────────────────────────────── */
.emergence-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 3rem;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232, 160, 180, 0.35);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-outer {
    width: 180px;
    height: 180px;
    animation: ringPulse 3.5s ease-in-out infinite;
    border-color: rgba(232, 160, 180, 0.2);
}

.ring-middle {
    width: 120px;
    height: 120px;
    animation: ringPulse 3.5s ease-in-out infinite 0.6s;
    border-color: rgba(232, 160, 180, 0.35);
}

.ring-inner {
    width: 60px;
    height: 60px;
    animation: ringPulse 3.5s ease-in-out infinite 1.2s;
    border-color: rgba(232, 160, 180, 0.55);
    background: radial-gradient(circle, rgba(232, 160, 180, 0.12), transparent);
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50%       { transform: translate(-50%, -50%) scale(1.18); opacity: 0.25; }
}

/* ── AI Label ──────────────────────────────────────────── */
.ai-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    margin-top: 1.5rem;
    color: #88d4e0;
    text-transform: uppercase;
}

/* ── Dawn Zone Overrides ───────────────────────────────── */
.zone-dawn {
    color: #3a2a3e;
}

.zone-dawn .bilingual .ko {
    color: #3a2a3e;
}

.zone-dawn .bilingual .en {
    color: #6a4a5e;
}

.zone-dawn .bilingual-heading .ko {
    color: #3a2a3e;
}

.zone-dawn .bilingual-heading .en {
    color: #6a4a5e;
}

.zone-dawn .pulse-word {
    color: #3a2a3e;
}

/* ── Footer Mark ───────────────────────────────────────── */
.footer-mark {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(106, 74, 94, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.domain-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.6rem;
    color: #6a4a5e;
    letter-spacing: 0.2em;
    display: block;
}

.domain-meaning {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 100;
    font-size: 0.8rem;
    color: #6a6a80;
    letter-spacing: 0.15em;
}

/* ── Pulse Word Animation ──────────────────────────────── */
.pulse-word {
    display: inline-block;
    animation: wordPulse 3s ease-in-out infinite;
}

/* Stagger the pulse on different words */
.bilingual-hero .pulse-word {
    animation-delay: 0s;
}

.zone-boundary .boundary-line:nth-child(2) .pulse-word { animation-delay: 0.3s; }
.zone-boundary .boundary-line:nth-child(3) .pulse-word { animation-delay: 0.6s; }
.zone-boundary .boundary-line:nth-child(4) .pulse-word { animation-delay: 0.9s; }
.zone-boundary .boundary-line:nth-child(5) .pulse-word { animation-delay: 1.2s; }

.ai-label .pulse-word { animation-delay: 1.5s; }

@keyframes wordPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.02); }
}

/* ── Fade-in on Scroll ─────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements start visible */
.zone-digital .bilingual-hero,
.zone-digital .domain-label {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger fade-in children */
.section-content .fade-in:nth-child(2) { transition-delay: 0.1s; }
.section-content .fade-in:nth-child(3) { transition-delay: 0.22s; }
.section-content .fade-in:nth-child(4) { transition-delay: 0.34s; }
.section-content .fade-in:nth-child(5) { transition-delay: 0.46s; }
.section-content .fade-in:nth-child(6) { transition-delay: 0.58s; }
.section-content .fade-in:nth-child(7) { transition-delay: 0.7s; }

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .orb,
    .face-layer,
    .ring,
    .pulse-word {
        animation: none;
    }

    .fade-in {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .bilingual-hero .ko {
        font-size: clamp(3rem, 18vw, 5rem);
    }

    .boundary-line {
        flex-direction: column;
        gap: 0.2em;
    }

    .dissolve-dot {
        display: none;
    }

    .emergence-ring {
        width: 140px;
        height: 140px;
    }

    .ring-outer { width: 140px; height: 140px; }
    .ring-middle { width: 92px; height: 92px; }
    .ring-inner { width: 46px; height: 46px; }
}
