/* ============================================
   concepts.news - Seapunk Underwater Greenhouse
   Palette: Triadic (Teal / Coral / Gold)
   Typography: Fraunces + Nunito
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #D4CDC3;
    background: #0F2530;
    overflow-x: hidden;
}

/* --- SECTION BACKGROUNDS --- */
.section-dark {
    background: #1B3A4B;
    position: relative;
    overflow: hidden;
}

.section-light {
    background: #F4E8D0;
    position: relative;
    overflow: hidden;
}

.section-abyss {
    background: #0F2530;
    position: relative;
    overflow: hidden;
}

/* --- BOKEH SYSTEM --- */
.bokeh-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bokeh-deep {
    filter: blur(30px);
    z-index: 0;
}

.bokeh-mid {
    filter: blur(18px);
    z-index: 1;
    animation: bokeh-drift 40s ease-in-out infinite alternate;
}

.bokeh-surface {
    filter: blur(8px);
    z-index: 2;
}

@keyframes bokeh-drift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(12px, -8px); }
    50% { transform: translate(-10px, 15px); }
    75% { transform: translate(18px, 10px); }
    100% { transform: translate(-15px, -12px); }
}

/* --- HERO SECTION --- */
#hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 64px;
    position: relative;
    background: #0F2530;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: 96px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    font-variation-settings: 'WONK' 1, 'opsz' 72;
}

.title-concepts {
    font-weight: 900;
    color: #F4E8D0;
    opacity: 0;
    animation: fadeIn 800ms ease-out 600ms forwards;
}

.title-dot {
    font-weight: 300;
    color: #E0527A;
    opacity: 0;
    animation: fadeIn 800ms ease-out 800ms forwards;
}

.hero-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #8A9A8E;
    letter-spacing: 0.06em;
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 800ms ease-out 1200ms forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero botanical - Padina pavonica at bottom-right */
.hero-botanical {
    position: absolute;
    bottom: 64px;
    right: 64px;
    width: 300px;
    height: 300px;
    z-index: 5;
}

.botanical-padina {
    width: 100%;
    height: 100%;
}

.botanical-stroke {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: strokeDraw 2.4s cubic-bezier(0.25, 0.1, 0.25, 1.0) 600ms forwards;
}

@keyframes strokeDraw {
    to { stroke-dashoffset: 0; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: fadeIn 600ms ease-out 3000ms forwards;
}

.scroll-blade {
    width: 20px;
    height: 50px;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

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

/* --- BOTANICAL DIVIDERS --- */
.botanical-divider {
    width: 100%;
    height: 120px;
    background: #1B3A4B;
    position: relative;
    overflow: hidden;
}

.section-light + .botanical-divider {
    background: #F4E8D0;
}

.botanical-divider[data-accent="gold"] {
    background: linear-gradient(to bottom, #1B3A4B, #1B3A4B);
}

.section-light + .botanical-divider[data-accent="teal"] {
    background: #F4E8D0;
}

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

.divider-stroke-left,
.divider-stroke-right {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.divider-stroke-left.animate {
    animation: strokeDraw 1.4s cubic-bezier(0.25, 0.1, 0.25, 1.0) forwards;
}

.divider-stroke-right.animate {
    animation: strokeDraw 1.4s cubic-bezier(0.25, 0.1, 0.25, 1.0) forwards;
}

/* --- Z-PATTERN ROWS --- */
.z-row {
    padding: 80px 0;
    position: relative;
}

.z-container {
    display: flex;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    position: relative;
    z-index: 5;
    gap: 40px;
}

.concept-card {
    position: relative;
    padding: 48px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.concept-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.concept-left {
    width: 45%;
}

.concept-right {
    width: 45%;
    margin-top: 80px;
}

/* Wide concept (light sections) */
.z-row-wide {
    padding: 100px 64px;
    position: relative;
}

.concept-wide {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

/* --- CARD BOTANICAL WATERMARK --- */
.card-botanical-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.4);
    width: 200px;
    height: 300px;
    pointer-events: none;
    z-index: 0;
}

.watermark-svg {
    width: 100%;
    height: 100%;
}

/* --- CONCEPT LABEL --- */
.concept-label {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-variation-settings: 'opsz' 9;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.concept-card[data-accent="coral"] .concept-label {
    color: #E0527A;
}

.concept-card[data-accent="gold"] .concept-label {
    color: #E8B84B;
}

.concept-card[data-accent="teal"] .concept-label {
    color: #2A7A8C;
}

.concept-label-dark {
    color: #1B3A4B;
}

.concept-card[data-accent="teal"] .concept-label-dark {
    color: #2A7A8C;
}

/* --- CONCEPT HEADING --- */
.concept-heading {
    font-family: 'Fraunces', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #F4E8D0;
    font-variation-settings: 'WONK' 1, 'opsz' 72;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.concept-heading-dark {
    color: #1B3A4B;
}

/* --- UNDERLINE SYSTEM --- */
.heading-underline {
    display: block;
    width: 100%;
    height: 12px;
    margin-top: 8px;
}

.underline-svg {
    width: 100%;
    height: 12px;
    display: block;
}

.underline-path {
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    transition: stroke 300ms ease;
}

.underline-path.drawn {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 700ms ease-out, stroke 300ms ease;
}

.concept-heading:hover .underline-path.drawn {
    stroke: #F4E8D0;
}

.concept-heading-dark:hover .underline-path.drawn {
    stroke: #1B3A4B;
}

/* --- CONCEPT EXCERPT --- */
.concept-excerpt {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #D4CDC3;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.concept-excerpt-dark {
    color: #3D5A6E;
    -webkit-line-clamp: unset;
}

/* --- READ LINK --- */
.concept-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-variation-settings: 'opsz' 9;
    color: #8A9A8E;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 300ms ease;
}

.concept-read-link:hover {
    color: #F4E8D0;
}

.concept-read-link-dark {
    color: #3D5A6E;
}

.concept-read-link-dark:hover {
    color: #1B3A4B;
}

.read-arrow {
    width: 24px;
    height: 12px;
    transition: transform 300ms ease;
}

.concept-read-link:hover .read-arrow {
    transform: translateX(4px);
}

/* --- LIGHT SECTION BOTANICAL BACKGROUND --- */
.light-botanical-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cymodocea-bg {
    width: 100%;
    height: 100%;
}

/* --- WET STONE / SOFT CORAL / WARM GOLD ACCENTS --- */
.concept-card[data-accent="coral"] .concept-read-link:hover {
    color: #F28BA0; /* Soft Coral hover */
}

.concept-card[data-accent="gold"] .concept-read-link:hover {
    color: #F2D06B; /* Warm Gold hover */
}

.section-abyss .footer-botanical svg g {
    stroke: #2C3E3A; /* Wet Stone stroke on footer botanical */
}

/* --- FOOTER --- */
#footer {
    padding: 120px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.footer-botanical {
    width: 400px;
    height: 200px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.cymodocea-footer {
    width: 100%;
    height: 100%;
}

.footer-text {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 300;
    color: #8A9A8E;
    text-align: center;
    position: relative;
    z-index: 5;
    font-variation-settings: 'WONK' 1, 'opsz' 72;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .title-concepts,
    .title-dot,
    .hero-tagline {
        opacity: 1;
        animation: none;
    }

    .botanical-stroke {
        stroke-dashoffset: 0;
        animation: none;
    }

    .bokeh-mid {
        animation: none;
    }

    .concept-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .underline-path {
        stroke-dashoffset: 0;
    }

    .scroll-indicator {
        opacity: 1;
        animation: none;
    }

    .scroll-blade {
        animation: none;
    }

    .divider-stroke-left,
    .divider-stroke-right {
        stroke-dashoffset: 0;
    }
}

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 64px;
    }

    .concept-heading {
        font-size: 48px;
    }

    #hero {
        padding: 48px;
    }

    .hero-botanical {
        bottom: 48px;
        right: 48px;
        width: 220px;
        height: 220px;
    }

    .z-container {
        padding: 0 48px;
    }

    .z-row-wide {
        padding: 80px 48px;
    }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .hero-title {
        font-size: 48px;
    }

    #hero {
        padding: 24px;
        justify-content: center;
    }

    .hero-botanical {
        bottom: 24px;
        right: 24px;
        width: 150px;
        height: 150px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .z-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 24px;
    }

    .concept-left,
    .concept-right {
        width: 100%;
    }

    .concept-right {
        margin-top: 0;
    }

    .concept-card {
        padding: 32px;
    }

    .concept-heading {
        font-size: 36px;
    }

    .z-row-wide {
        padding: 60px 24px;
    }

    .concept-wide {
        padding: 32px;
    }

    .botanical-divider {
        height: 80px;
    }

    #footer {
        padding: 80px 24px;
    }

    .footer-botanical {
        width: 250px;
        height: 120px;
    }

    .footer-text {
        font-size: 20px;
    }

    .card-botanical-watermark {
        display: none;
    }
}
