/* ============================================================
   tsundere.stream — Styles
   Colors: #C4956A #F2E0C8 #D4603A #3D2B1F #C1440E #E8A838 #F5EDD6 #8C7B72
   Fonts: Bricolage Grotesque (variable), DM Sans, DM Mono, Playfair Display
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #C4956A;
    color: #3D2B1F;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

/* ── CSS Custom Properties ── */
:root {
    --color-clay: #C4956A;
    --color-sienna: #C1440E;
    --color-amber: #E8A838;
    --color-linen: #F2E0C8;
    --color-parchment: #F5EDD6;
    --color-midnight: #3D2B1F;
    --color-ash: #8C7B72;
    --color-ember: #D4603A;

    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-serif: 'Playfair Display', serif;

    --scroll-progress: 0;
}

/* ── Thermal Background Layer ── */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        #C4956A 0%,
        #C4956A 20%,
        #D4603A 45%,
        #C1440E 60%,
        #E8A838 75%,
        #3D2B1F 100%
    );
    background-attachment: fixed;
    transform: translateZ(0);
}

/* ── Navigation ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.site-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-logo-text {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #3D2B1F;
    text-transform: lowercase;
}

.nav-logo-dot {
    color: #D4603A;
}

.nav-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dots .dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #3D2B1F;
}

/* ── Main & Sections ── */
main {
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    width: 100%;
}

/* ── Section 1: Rebuff ── */
.section-rebuff {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 80px 48px;
}

.rebuff-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-headline {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 75, 'wght' 800;
    font-size: clamp(80px, 12vw, 160px);
    line-height: 0.92;
    color: #3D2B1F;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: font-variation-settings 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    user-select: none;
}

.hero-line-1,
.hero-line-2,
.hero-line-3 {
    display: block;
}

.hero-headline.relaxed {
    font-variation-settings: 'wdth' 100, 'wght' 300;
}

.rebuff-subtext {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #8C7B72;
    text-transform: lowercase;
    margin-top: 16px;
}

/* ── Wave Dividers ── */
.wave-divider {
    width: 100%;
    line-height: 0;
    display: block;
    position: relative;
    z-index: 2;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ── Section 2: Disinterest ── */
.section-disinterest {
    min-height: 100vh;
    background: #F2E0C8;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.disinterest-header {
    padding: 0 48px;
    margin-bottom: 40px;
}

.disinterest-note {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #8C7B72;
    text-transform: lowercase;
}

.card-strip-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.card-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 48px 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.card-strip::-webkit-scrollbar {
    display: none;
}

/* ── Glassmorphic Media Cards ── */
.media-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: rgba(242, 224, 200, 0.35);
    border: 1px solid rgba(244, 210, 160, 0.6);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    clip-path: polygon(
        0 0,
        calc(100% - 32px) 0,
        100% 32px,
        100% 100%,
        32px 100%,
        0 calc(100% - 32px)
    );
    min-height: 260px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: default;
}

.media-card:hover {
    transform: translateY(-12px) rotate(0.5deg);
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.18), 0 4px 16px rgba(193, 68, 14, 0.12);
}

.card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.card-genre-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    background: #D4603A;
    color: #F5EDD6;
    display: inline-block;
    padding: 3px 12px 3px 6px;
    border-radius: 0 20px 20px 0;
    align-self: flex-start;
}

.card-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8C7B72;
    letter-spacing: 0.08em;
}

.card-title {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 100, 'wght' 600;
    font-size: 20px;
    color: #3D2B1F;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: #3D2B1F;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease 0.06s, transform 0.4s ease 0.06s;
}

.media-card:hover .card-title,
.media-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section 3: Glimpse ── */
.section-glimpse {
    min-height: 120vh;
    background: #C1440E;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 80px 48px;
    overflow: hidden;
}

.glimpse-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.glimpse-feature {
    clip-path: ellipse(52% 48% at 50% 50%);
    transition: clip-path 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(196, 149, 106, 0.2);
    padding: 80px 60px;
}

.glimpse-feature.revealed {
    clip-path: polygon(
        0% 8%,
        8% 0%,
        92% 0%,
        100% 8%,
        100% 92%,
        92% 100%,
        8% 100%,
        0% 92%
    );
}

.glimpse-feature-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
}

.glimpse-year-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: rgba(245, 237, 214, 0.7);
}

.glimpse-title {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 90, 'wght' 500;
    font-size: clamp(36px, 5vw, 60px);
    color: #F5EDD6;
    line-height: 1.1;
    transition: font-variation-settings 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(22px, 3.5vw, 36px);
    color: #F2E0C8;
    line-height: 1.5;
    max-width: 680px;
    quotes: none;
}

.glimpse-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.glimpse-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    background: rgba(212, 96, 58, 0.6);
    color: #F5EDD6;
    padding: 3px 12px 3px 6px;
    border-radius: 0 20px 20px 0;
}

/* ── Underline Draw Animation ── */
.underline-draw {
    position: relative;
    display: inline-block;
}

.underline-draw::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    display: block;
    width: 0;
    height: 2px;
    background: #D4603A;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.underline-draw.visible::after {
    width: 100%;
}

/* ── Section 4: Warmth ── */
.section-warmth {
    min-height: 80vh;
    position: relative;
    z-index: 2;
    padding: 80px 48px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* CSS gradient mesh background */
.warmth-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(232, 168, 56, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 70%, rgba(196, 149, 106, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 70% 40% at 50% 50%, rgba(242, 224, 200, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 40% 70% at 10% 80%, rgba(212, 96, 58, 0.2) 0%, transparent 60%);
    background-color: #F2E0C8;
    z-index: 0;
}

.warmth-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.warmth-heading {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 100, 'wght' 400;
    font-size: clamp(36px, 5vw, 56px);
    color: #3D2B1F;
    line-height: 1.1;
    margin-bottom: 4px;
}

.warmth-subheading {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    color: #8C7B72;
    margin-bottom: 32px;
}

/* ── Stacked Warmth Cards ── */
.warmth-cards-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.warmth-card {
    background: rgba(242, 224, 200, 0.35);
    border: 1px solid rgba(244, 210, 160, 0.6);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    clip-path: polygon(
        0 0,
        calc(100% - 40px) 0,
        100% 40px,
        100% 100%,
        40px 100%,
        0 calc(100% - 40px)
    );
    padding: 36px 40px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.warmth-card-1 {
    transform: rotate(-1.5deg);
    margin-right: 40px;
}

.warmth-card-2 {
    transform: rotate(0deg);
}

.warmth-card-3 {
    transform: rotate(1.5deg);
    margin-left: 40px;
}

.warmth-card:hover {
    transform: translateY(-12px) rotate(0.5deg) !important;
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.18), 0 4px 16px rgba(193, 68, 14, 0.12);
}

.warmth-card-glass {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.warmth-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warmth-card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    background: #D4603A;
    color: #F5EDD6;
    padding: 3px 12px 3px 6px;
    border-radius: 0 20px 20px 0;
}

.warmth-card-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8C7B72;
    letter-spacing: 0.08em;
}

.warmth-card-title {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 100, 'wght' 600;
    font-size: 28px;
    color: #3D2B1F;
    line-height: 1.2;
}

.warmth-card-body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: #3D2B1F;
    line-height: 1.75;
    max-width: 600px;
}

.warmth-card-footer {
    padding-top: 8px;
    border-top: 1px solid rgba(196, 149, 106, 0.3);
}

.warmth-card-detail {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8C7B72;
    letter-spacing: 0.06em;
}

/* ── Section 5: Surrender (footer) ── */
.section-surrender {
    min-height: 60vh;
    background: #3D2B1F;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    overflow: hidden;
}

.surrender-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.surrender-wave-top svg {
    display: block;
    width: 100%;
    height: 80px;
}

.surrender-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.surrender-logo {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 100, 'wght' 300;
    font-size: clamp(48px, 8vw, 120px);
    color: #F5EDD6;
    line-height: 1;
    letter-spacing: -0.02em;
}

.surrender-logo-accent {
    color: #C4956A;
}

.surrender-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #8C7B72;
    text-transform: lowercase;
}

.surrender-divider {
    width: 80px;
    height: 1px;
    background: rgba(196, 149, 106, 0.3);
    margin: 8px 0;
}

.surrender-note {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: rgba(245, 237, 214, 0.5);
    letter-spacing: 0.02em;
}

.surrender-bottom {
    margin-top: 20px;
}

.surrender-credits {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(140, 123, 114, 0.6);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    max-width: 480px;
    display: block;
    text-align: center;
    line-height: 1.8;
}

/* ── Scroll Reveal: section entry animations ── */
.section-glimpse,
.section-warmth {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-glimpse.in-view,
.section-warmth.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-nav {
        padding: 20px 24px;
    }

    .section-rebuff {
        padding: 80px 24px;
    }

    .hero-headline {
        font-size: clamp(56px, 15vw, 100px);
    }

    .disinterest-header {
        padding: 0 24px;
    }

    .card-strip {
        padding: 16px 24px 32px;
    }

    .section-glimpse {
        padding: 60px 24px;
        min-height: 100vh;
    }

    .glimpse-feature {
        padding: 48px 32px;
        clip-path: ellipse(55% 50% at 50% 50%);
    }

    .section-warmth {
        padding: 60px 24px 80px;
        min-height: auto;
    }

    .warmth-card-1,
    .warmth-card-2,
    .warmth-card-3 {
        margin-right: 0;
        margin-left: 0;
    }

    .warmth-card {
        padding: 28px 28px;
    }

    .section-surrender {
        padding: 80px 24px 60px;
    }

    .warmth-inner {
        max-width: 100%;
    }
}
