/* ==========================================================================
   supplychain.watch -- Japanese-Minimal Surveillance Scroll
   Palette: Sepia Nostalgic
   Fonts: Jost (display), Noto Sans JP (body)
   ========================================================================== */

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

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

body {
    background-color: #F5EDE0;
    color: #8A7A6A;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Central Axis Line ---------- */
.axis-line {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-0.5px);
    width: 1px;
    height: 100vh;
    background: #8A7A6A;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Circuit Background SVG ---------- */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* ---------- Sections ---------- */
.section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.section--hero {
    min-height: 100vh;
}

.section--hero .section__content {
    background-color: transparent;
}

.section__content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 2;
    background-color: #FFF8F0;
    border-radius: 2px;
}

/* ---------- Watercolor Washes ---------- */
.watercolor-wash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wash--hero {
    background:
        radial-gradient(ellipse 600px 400px at 50% 45%, rgba(184, 144, 96, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 40% 55%, rgba(138, 122, 106, 0.05) 0%, transparent 65%),
        radial-gradient(ellipse 350px 250px at 60% 40%, rgba(106, 112, 128, 0.04) 0%, transparent 60%),
        radial-gradient(circle 200px at 45% 50%, rgba(184, 144, 96, 0.06) 0%, transparent 70%);
}

.wash--observation {
    background:
        radial-gradient(ellipse 500px 350px at 55% 50%, rgba(106, 112, 128, 0.06) 0%, transparent 65%),
        radial-gradient(ellipse 350px 250px at 35% 40%, rgba(184, 144, 96, 0.05) 0%, transparent 60%),
        radial-gradient(circle 280px at 60% 60%, rgba(138, 122, 106, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 200px 300px at 45% 35%, rgba(184, 144, 96, 0.05) 0%, transparent 65%);
}

.wash--philosophy {
    background:
        radial-gradient(ellipse 450px 320px at 45% 45%, rgba(184, 144, 96, 0.08) 0%, transparent 65%),
        radial-gradient(circle 300px at 55% 55%, rgba(138, 122, 106, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 250px 400px at 50% 50%, rgba(106, 112, 128, 0.04) 0%, transparent 70%);
}

.wash--closing {
    background:
        radial-gradient(ellipse 500px 300px at 50% 50%, rgba(138, 122, 106, 0.06) 0%, transparent 65%),
        radial-gradient(circle 250px at 45% 45%, rgba(184, 144, 96, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 300px 200px at 55% 55%, rgba(106, 112, 128, 0.03) 0%, transparent 70%);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    color: #3A3028;
    letter-spacing: 0.04em;
}

.hero__title {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.05rem;
    color: #8A7A6A;
    letter-spacing: 0.06em;
    font-weight: 400;
}

.section__heading {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.section__body {
    color: #8A7A6A;
    margin-bottom: 1.5rem;
    text-align: left;
}

.section__body:last-child {
    margin-bottom: 0;
}

/* ---------- Underline-Draw Interaction ---------- */
.underline-draw {
    background: linear-gradient(#B89060, #B89060) no-repeat bottom center;
    background-size: 0% 1px;
    transition: background-size 0.4s ease;
    padding-bottom: 2px;
    cursor: default;
}

.underline-draw:hover {
    background-size: 100% 1px;
}

/* ---------- Pull Quote ---------- */
.pullquote {
    margin-bottom: 3rem;
}

.pullquote__text {
    font-family: 'Jost', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #3A3028;
    letter-spacing: 0.05em;
    line-height: 1.7;
    text-align: center;
    font-style: italic;
}

.philosophy__detail {
    margin-top: 2rem;
}

/* ---------- Closing Section ---------- */
.section--closing {
    min-height: 50vh;
}

.closing__rule {
    border: none;
    height: 1px;
    background: #8A7A6A;
    opacity: 0.25;
    max-width: 200px;
    margin: 0 auto;
}

.closing__domain {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #3A3028;
    letter-spacing: 0.04em;
    padding: 2rem 0;
}

.closing__tagline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #6A7080;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 2rem;
}

/* ---------- Fade-in Animation (IntersectionObserver driven) ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section__content {
        padding: 3rem 1.25rem;
    }

    .section__body {
        text-align: center;
    }

    .hero__title {
        letter-spacing: 0.02em;
    }
}

@media (max-width: 480px) {
    .section__content {
        padding: 2.5rem 1rem;
    }

    .pullquote__text {
        font-size: 1.1rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }
}
