/* === tanso.news — Zen News Scroll === */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 400;
    color: #6A6A78;
    background: #F5F5F8;
    overflow-x: hidden;
    position: relative;
}

/* --- Layered-Depth Background Shapes --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background: #B0B0B8;
    top: 8%;
    left: -5%;
}

.bg-shape-2 {
    width: 220px;
    height: 220px;
    background: #6A6A78;
    top: 25%;
    right: -3%;
}

.bg-shape-3 {
    width: 260px;
    height: 180px;
    background: #4A6A8A;
    border-radius: 20px;
    top: 40%;
    left: 10%;
    opacity: 0.04;
}

.bg-shape-4 {
    width: 200px;
    height: 200px;
    background: #B0B0B8;
    top: 55%;
    right: 12%;
    opacity: 0.06;
}

.bg-shape-5 {
    width: 280px;
    height: 280px;
    background: #6A6A78;
    top: 70%;
    left: -8%;
    opacity: 0.04;
}

.bg-shape-6 {
    width: 180px;
    height: 240px;
    background: #4A6A8A;
    border-radius: 24px;
    top: 15%;
    right: 20%;
    opacity: 0.03;
}

.bg-shape-7 {
    width: 240px;
    height: 240px;
    background: #B0B0B8;
    bottom: 15%;
    left: 25%;
    opacity: 0.05;
}

.bg-shape-8 {
    width: 160px;
    height: 160px;
    background: #6A6A78;
    bottom: 5%;
    right: 5%;
    opacity: 0.04;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.hero-content {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #1A1A25;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #6A6A78;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.hero-card {
    max-width: 480px;
    width: 100%;
    padding: 32px 36px;
    text-align: center;
    margin-bottom: 60px;
}

.hero-card-label {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A6A8A;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.hero-card-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #6A6A78;
}

.spine-start {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #B0B0B8);
}

/* --- Glass Card --- */
/* Base card background: #E0E0E8, glassmorphic overlay applied */
.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(240, 240, 248, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(26, 26, 37, 0.04);
}

.glass-card:hover {
    background: #E0E0E8;
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Timeline Spine --- */
.timeline-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #B0B0B8;
    top: 100vh;
    bottom: 200px;
    z-index: 0;
}

/* --- Timeline Section --- */
.timeline-section {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* --- Timeline Entry --- */
.timeline-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    width: 100%;
}

/* Entry Dot (on spine) */
.entry-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 8px;
    height: 8px;
    background: #4A6A8A;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Entry Branch (connects card to spine) */
.entry-branch {
    position: absolute;
    top: 23px;
    width: 40px;
    height: 1px;
    background: #B0B0B8;
    z-index: 1;
}

/* Left Entry */
.entry-left {
    justify-content: flex-start;
    padding-right: calc(50% + 20px);
}

.entry-left .entry-branch {
    right: calc(50% - 40px);
}

.entry-left .entry-card {
    margin-left: auto;
    text-align: right;
}

/* Right Entry */
.entry-right {
    justify-content: flex-end;
    padding-left: calc(50% + 20px);
}

.entry-right .entry-branch {
    left: calc(50% - 40px);
}

.entry-right .entry-card {
    margin-right: auto;
    text-align: left;
}

/* Entry Card */
.entry-card {
    max-width: 400px;
    width: 100%;
    padding: 24px 28px;
}

.entry-timestamp {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #4A6A8A;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.entry-headline {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #1A1A25;
    line-height: 1.35;
    margin-bottom: 10px;
}

.entry-body {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #6A6A78;
    margin-bottom: 12px;
}

.entry-source {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #B0B0B8;
    letter-spacing: 0.04em;
}

/* --- Slide-Reveal Animation --- */
.slide-reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-reveal[data-direction="left"] {
    transform: translateX(-30px);
}

.slide-reveal[data-direction="right"] {
    transform: translateX(30px);
}

.slide-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* --- Closing Section --- */
#closing {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 120px;
}

.spine-end {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #B0B0B8, transparent);
    margin-bottom: 48px;
}

.closing-card {
    max-width: 420px;
    width: 100%;
    padding: 28px 32px;
    text-align: center;
    margin-bottom: 48px;
}

.closing-text {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1A1A25;
    line-height: 1.6;
}

.closing-domain {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1A1A25;
    letter-spacing: -0.02em;
    opacity: 0.15;
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .timeline-spine {
        left: 24px;
        transform: none;
    }

    .timeline-entry {
        padding-left: 48px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .entry-dot {
        left: 24px;
        transform: translateX(-50%);
    }

    .entry-branch {
        left: 24px !important;
        right: auto !important;
        width: 24px;
    }

    .entry-left .entry-card,
    .entry-right .entry-card {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        max-width: 100%;
    }

    .entry-card {
        max-width: 100%;
    }

    .slide-reveal[data-direction="left"],
    .slide-reveal[data-direction="right"] {
        transform: translateX(-20px);
    }

    .hero-card {
        max-width: 100%;
    }

    .bg-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .entry-card {
        padding: 18px 20px;
    }

    .closing-domain {
        font-size: 1.8rem;
    }
}
