/* ===========================================
   rational.business - Pop Art Business Design
   =========================================== */

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

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.65;
    color: #1A1A1A;
    background-color: #FFF8E8;
    overflow-x: hidden;
}

/* --- Full Bleed --- */
.full-bleed {
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* Ben-Day dot overlay on all major sections */
.full-bleed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 1;
}

/* ===========================================
   SPLASH PANEL
   =========================================== */
.splash-panel {
    min-height: 100vh;
    background-color: #D4A855;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.splash-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 10vw, 160px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A1A1A;
    line-height: 1;
    transform: scale(0.9);
    opacity: 0;
    animation: splashTitleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.title-dot {
    color: #E63946;
}

.splash-tagline {
    font-family: 'Bangers', cursive;
    font-size: clamp(18px, 3vw, 36px);
    color: #1A1A1A;
    margin-top: 10px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.8s forwards;
}

@keyframes splashTitleIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- Splash Decorations (SVGs around title) --- */
.splash-decorations {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.deco-svg {
    position: absolute;
    opacity: 0;
    transform: scale(0);
}

.deco-thought {
    width: clamp(50px, 8vw, 90px);
    top: -15%;
    left: 5%;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

.deco-arrow {
    width: clamp(40px, 6vw, 70px);
    top: -20%;
    right: 10%;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

.deco-bang {
    width: clamp(30px, 5vw, 55px);
    bottom: 5%;
    left: 8%;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.deco-bulb {
    width: clamp(50px, 7vw, 80px);
    bottom: 0%;
    right: 5%;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}

.deco-star {
    width: clamp(35px, 5vw, 60px);
    top: 5%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    animation: popInCenter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.0s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popInCenter {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* --- Scroll Hint --- */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.2s forwards;
}

.scroll-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #1A1A1A;
    display: block;
    margin-bottom: 5px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: bounceDown 1.5s ease-in-out infinite;
}

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

/* ===========================================
   COMIC STRIP SECTIONS
   =========================================== */
.comic-section {
    padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 120px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.comic-section:hover {
    transform: scale(1.005);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    position: relative;
    z-index: 2;
}

.section-content {
    flex: 1;
    min-width: 0;
}

.section-illustration {
    flex: 0 0 auto;
    width: clamp(150px, 25vw, 280px);
}

.illustration-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Alternate layout: even sections reverse */
.comic-section:nth-child(even) .section-inner {
    flex-direction: row-reverse;
}

.section-headline {
    font-family: 'Bangers', cursive;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.65;
    max-width: 600px;
}

/* --- Section Colors --- */
.section-cream {
    background-color: #FFF8E8;
}

.section-cream .section-headline {
    color: #2B6CB0;
}

.section-cream .section-text {
    color: #1A1A1A;
}

.section-red {
    background-color: #E63946;
}

.section-red .section-headline {
    color: #FFE066;
}

.section-red .section-text {
    color: #FFF8E8;
}

.section-blue {
    background-color: #2B6CB0;
}

.section-blue .section-headline {
    color: #FFE066;
}

.section-blue .section-text {
    color: #FFF8E8;
}

.section-gold {
    background-color: #D4A855;
}

.section-gold .section-headline {
    color: #1A1A1A;
}

.section-gold .section-text {
    color: #1A1A1A;
}

/* ===========================================
   INFOGRAPHIC STRIP
   =========================================== */
.infographic-section {
    background-color: #1A1A1A;
    padding: clamp(40px, 6vh, 80px) 0;
}

.infographic-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 6vw, 80px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #FFE066;
    text-align: center;
    margin-bottom: clamp(20px, 4vh, 50px);
    position: relative;
    z-index: 2;
}

.infographic-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0 10vw;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}

.infographic-scroll::-webkit-scrollbar {
    height: 8px;
}

.infographic-scroll::-webkit-scrollbar-track {
    background: #E0D8C8;
}

.infographic-scroll::-webkit-scrollbar-thumb {
    background: #D4A855;
    border-radius: 4px;
}

.infographic-panel {
    min-width: 80vw;
    scroll-snap-align: center;
    padding: 60px;
    border: 3px solid #1A1A1A;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Ben-Day dots on panels */
.infographic-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
}

.panel-gold {
    background-color: #D4A855;
}

.panel-cream {
    background-color: #FFF8E8;
}

.panel-red {
    background-color: #E63946;
}

.panel-red .panel-headline,
.panel-red .panel-text {
    color: #FFF8E8;
}

.panel-blue {
    background-color: #2B6CB0;
}

.panel-blue .panel-headline,
.panel-blue .panel-text {
    color: #FFF8E8;
}

.panel-icon {
    width: clamp(60px, 10vw, 120px);
    height: clamp(60px, 10vw, 120px);
    margin-bottom: 30px;
}

.panel-icon svg {
    width: 100%;
    height: 100%;
}

.panel-headline {
    font-family: 'Bangers', cursive;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: 0.04em;
    color: #1A1A1A;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.panel-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.65;
    color: #1A1A1A;
    max-width: 500px;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer-section {
    background-color: #E63946;
    padding: clamp(50px, 8vh, 100px) clamp(20px, 5vw, 120px);
    text-align: center;
}

.footer-inner {
    position: relative;
    z-index: 2;
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 6vw, 72px);
    letter-spacing: 0.02em;
    color: #FFF8E8;
    text-transform: uppercase;
}

.footer-dot {
    color: #FFE066;
}

.footer-tagline {
    font-family: 'Bangers', cursive;
    font-size: clamp(16px, 2.5vw, 28px);
    color: #FFE066;
    margin-bottom: 20px;
}

.footer-decorations {
    margin: 20px auto;
    width: clamp(100px, 30vw, 300px);
}

.footer-deco {
    width: 100%;
    height: auto;
}

.footer-copy {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 16px);
    color: #FFF8E8;
    opacity: 0.8;
    margin-top: 15px;
}

/* ===========================================
   SCROLL REVEAL ANIMATIONS
   =========================================== */
.comic-section .section-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.comic-section.visible .section-inner {
    opacity: 1;
    transform: translateY(0);
}

.infographic-section .infographic-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.infographic-section.visible .infographic-title {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .section-inner {
        flex-direction: column !important;
        text-align: center;
    }

    .section-illustration {
        width: clamp(120px, 50vw, 200px);
        order: -1;
    }

    .section-text {
        max-width: 100%;
    }

    .infographic-panel {
        min-width: 85vw;
        padding: 40px 30px;
    }

    .infographic-scroll {
        padding: 0 7.5vw;
    }

    .splash-decorations {
        display: none;
    }
}
