/* ============================================
   yesang.xyz - Frutiger-Aero Forecast Observatory
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #6A5A48;
    background: #F5F0E5;
    overflow-x: hidden;
}

/* --- Kinetic Typography Animations --- */
@keyframes breatheWeight {
    0%, 100% {
        font-weight: 300;
        letter-spacing: 0em;
    }
    50% {
        font-weight: 600;
        letter-spacing: 0.03em;
    }
}

@keyframes breatheWeightSlow {
    0%, 100% {
        font-weight: 300;
        letter-spacing: 0em;
    }
    50% {
        font-weight: 600;
        letter-spacing: 0.03em;
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(10px) rotate(45deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Parallax Layers --- */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-bg {
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(200,160,152,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(106,154,144,0.12) 0%, transparent 45%),
        conic-gradient(from 45deg at 50% 50%, rgba(200,176,120,0.05) 0%, transparent 25%),
        #F5F0E5;
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    will-change: transform;
}

.parallax-mid {
    z-index: 2;
    will-change: transform;
}

/* --- Chevron Formations --- */
.chevron-group {
    position: absolute;
}

.chevron {
    position: absolute;
    width: 20px;
    height: 20px;
    border-left: 2px solid #C8B078;
    border-top: 2px solid #C8B078;
    transform: rotate(45deg);
}

.chevron-lg {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.chevron-sm {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}

/* Hero chevrons - right side ascending */
.chevron-group-hero {
    right: 10%;
    top: 15vh;
}

.chevron-group-hero .chevron-1 {
    top: 0;
    right: 0;
    opacity: 0.10;
}

.chevron-group-hero .chevron-2 {
    top: -30px;
    right: 30px;
    opacity: 0.14;
}

.chevron-group-hero .chevron-3 {
    top: -65px;
    right: 55px;
    opacity: 0.18;
}

.chevron-group-hero .chevron-4 {
    top: -105px;
    right: 75px;
    opacity: 0.22;
}

.chevron-group-hero .chevron-5 {
    top: -150px;
    right: 90px;
    opacity: 0.25;
}

/* Section 2 chevrons - denser */
.chevron-group-s2 {
    right: 8%;
    top: 115vh;
}

.chevron-group-s2 .chevron-1 {
    top: 0;
    right: 0;
    opacity: 0.10;
}

.chevron-group-s2 .chevron-2 {
    top: -25px;
    right: 22px;
    opacity: 0.12;
}

.chevron-group-s2 .chevron-3 {
    top: -52px;
    right: 40px;
    opacity: 0.14;
}

.chevron-group-s2 .chevron-4 {
    top: -82px;
    right: 55px;
    opacity: 0.16;
}

.chevron-group-s2 .chevron-5 {
    top: -115px;
    right: 68px;
    opacity: 0.18;
}

.chevron-group-s2 .chevron-6 {
    top: -150px;
    right: 80px;
    opacity: 0.20;
}

.chevron-group-s2 .chevron-7 {
    top: -188px;
    right: 92px;
    opacity: 0.22;
}

/* Section 3 chevrons - peak, largest */
.chevron-group-s3 {
    left: 6%;
    top: 215vh;
}

.chevron-group-s3 .chevron-1 {
    top: 0;
    left: 0;
    opacity: 0.12;
}

.chevron-group-s3 .chevron-2 {
    top: -40px;
    left: 35px;
    opacity: 0.16;
}

.chevron-group-s3 .chevron-3 {
    top: -85px;
    left: 65px;
    opacity: 0.20;
}

.chevron-group-s3 .chevron-4 {
    top: -135px;
    left: 90px;
    opacity: 0.24;
}

.chevron-group-s3 .chevron-5 {
    top: -190px;
    left: 110px;
    opacity: 0.25;
}

/* Section 4 chevrons - diminishing */
.chevron-group-s4 {
    right: 12%;
    top: 320vh;
}

.chevron-group-s4 .chevron-1 {
    top: 0;
    right: 0;
    opacity: 0.08;
}

.chevron-group-s4 .chevron-2 {
    top: -20px;
    right: 18px;
    opacity: 0.10;
}

.chevron-group-s4 .chevron-3 {
    top: -42px;
    right: 32px;
    opacity: 0.12;
}

/* --- Sections --- */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.section-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    z-index: 4;
}

/* --- Gradient Mesh Backgrounds per Section --- */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.gradient-mesh-hero {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(200,160,152,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(106,154,144,0.12) 0%, transparent 45%),
        conic-gradient(from 45deg at 50% 50%, rgba(200,176,120,0.08) 0%, transparent 25%),
        radial-gradient(ellipse at 60% 20%, rgba(184,168,192,0.06) 0%, transparent 40%);
}

.gradient-mesh-s2 {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(106,154,144,0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(106,154,144,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(200,160,152,0.08) 0%, transparent 45%),
        conic-gradient(from 120deg at 40% 60%, rgba(200,176,120,0.06) 0%, transparent 30%);
}

.gradient-mesh-s3 {
    background:
        radial-gradient(ellipse at 40% 30%, rgba(184,168,192,0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(184,168,192,0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 20% 70%, rgba(106,154,144,0.10) 0%, transparent 40%),
        conic-gradient(from 200deg at 60% 40%, rgba(200,176,120,0.06) 0%, transparent 25%);
}

.gradient-mesh-s4 {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245,240,229,0.40) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 30%, rgba(200,176,120,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 70%, rgba(200,160,152,0.06) 0%, transparent 40%);
}

/* --- Glass Panels (Frutiger-Aero) --- */
.glass-panel {
    background: rgba(245,240,229,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200,176,120,0.15);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.glass-panel.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.glass-panel-hero {
    text-align: center;
    padding: 3rem 2.5rem;
}

.glass-panel-s2 {
    /* standard styling */
}

.glass-panel-s3 {
    /* larger panel */
}

.glass-panel-lg {
    padding: 3rem 2.5rem;
}

.glass-panel-s4 {
    text-align: center;
}

.glass-panel-golden {
    border: 1px solid rgba(200,176,120,0.35);
    box-shadow: 0 0 30px rgba(200,176,120,0.08);
}

/* --- Typography --- */
.site-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    color: #4A4A5A;
    animation: breatheWeight 5s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.site-title-sm {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    color: #4A4A5A;
    animation: breatheWeight 5s ease-in-out infinite;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #6A9A90;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

.kinetic-text {
    font-family: 'DM Sans', sans-serif;
    color: #4A4A5A;
    animation: breatheWeight 5s ease-in-out infinite;
}

.kinetic-slow {
    animation: breatheWeightSlow 8s ease-in-out infinite;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.2rem;
}

h2.kinetic-text {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.2rem;
}

.body-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #6A5A48;
    margin-bottom: 1rem;
}

.body-text:last-child {
    margin-bottom: 0;
}

.accent-rose {
    color: #C8A098;
}

.accent-lavender {
    color: #B8A8C0;
}

.closing-text {
    color: #6A5A48;
    font-style: italic;
}

/* --- Teal Links with Underline-Draw Effect --- */
.teal-link {
    color: #6A9A90;
    text-decoration: none;
    position: relative;
    display: inline;
}

.teal-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: #6A9A90;
    transition: width 0.4s ease;
}

.teal-link:hover::after {
    width: 100%;
}

/* --- Scroll Hint --- */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-chevron {
    width: 18px;
    height: 18px;
    border-right: 2px solid #C8B078;
    border-bottom: 2px solid #C8B078;
    transform: rotate(45deg);
    opacity: 0.4;
    animation: bounceDown 2s ease-in-out infinite;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-inner {
        padding: 2rem 1.2rem;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }

    .glass-panel-hero {
        padding: 2.5rem 1.5rem;
    }

    .glass-panel-lg {
        padding: 2.5rem 1.5rem;
    }

    .chevron-group-hero,
    .chevron-group-s2,
    .chevron-group-s3,
    .chevron-group-s4 {
        display: none;
    }

    .site-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .site-title-sm {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .section-inner {
        padding: 1.5rem 1rem;
    }

    .glass-panel {
        padding: 1.5rem 1.2rem;
    }
}
