/* ============================================================
   relativity.studio — Pop Art CSS
   Colors: #ffffff, #1a1a1a, #ff3131, #2d7dd2, #ffde17, #00c853, #ff6b6b, #f5f5f5
   Fonts: Bangers (display), Roboto (body), Permanent Marker (exclamations)
   ============================================================ */

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

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

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */
.section-title {
    font-family: 'Bangers', cursive;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.04em;
    color: #1a1a1a;
    line-height: 1.1;
}

.studio-name {
    font-family: 'Bangers', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 7rem);
    letter-spacing: 0.06em;
    line-height: 1;
    display: block;
}

.studio-sub {
    font-family: 'Bangers', cursive;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    letter-spacing: 0.12em;
    display: block;
    margin-top: 0.2em;
}

.body-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.body-text strong {
    font-weight: 700;
}

.block-title {
    font-family: 'Bangers', cursive;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
}

.card-title {
    font-family: 'Bangers', cursive;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.card-number {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: rgba(26, 26, 26, 0.15);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

/* ---- Border Box Utility ---- */
.border-box {
    border: 4px solid #1a1a1a;
}

/* ---- Hero: Warhol 2x2 Grid ---- */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
}

.warhol-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    overflow: hidden;
    transition: transform 0.15s ease;
    border: 2px solid #1a1a1a;
}

.warhol-cell:hover {
    transform: scale(1.02);
    z-index: 2;
}

.cell-inner {
    text-align: center;
    padding: 1rem;
}

.cell-red {
    background: #ff3131;
}
.cell-red .studio-name,
.cell-red .studio-sub {
    color: #ffffff;
    text-shadow: 3px 3px 0 #1a1a1a;
}

.cell-blue {
    background: #2d7dd2;
}
.cell-blue .studio-name,
.cell-blue .studio-sub {
    color: #ffde17;
    text-shadow: 3px 3px 0 #1a1a1a;
}

.cell-yellow {
    background: #ffde17;
}
.cell-yellow .studio-name,
.cell-yellow .studio-sub {
    color: #1a1a1a;
    text-shadow: 3px 3px 0 #ff3131;
}

.cell-green {
    background: #00c853;
}
.cell-green .studio-name,
.cell-green .studio-sub {
    color: #ffffff;
    text-shadow: 3px 3px 0 #1a1a1a;
}

/* ---- Tagline Band ---- */
.tagline-band {
    background: #1a1a1a;
    color: #ffde17;
    padding: 0.8rem 2rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.tagline-text {
    font-family: 'Bangers', cursive;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.15em;
    display: inline-block;
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(30vw); }
    100% { transform: translateX(-100%); }
}

/* ---- Starburst Divider ---- */
.starburst-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
}

.starburst {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.starburst.active {
    transform: scale(1);
}

.starburst::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ff3131;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%,
        79% 91%, 50% 70%, 21% 91%, 32% 57%,
        2% 35%, 39% 35%
    );
}

.starburst::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: #ffde17;
    clip-path: polygon(
        50% 5%, 58% 38%, 93% 38%, 66% 57%,
        76% 90%, 50% 73%, 24% 90%, 34% 57%,
        7% 38%, 42% 38%
    );
}

.starburst-text {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    position: relative;
    z-index: 1;
}

#starburst2::before { background: #2d7dd2; }
#starburst2::after  { background: #00c853; }
#starburst3::before { background: #00c853; }
#starburst3::after  { background: #ff6b6b; }

/* ---- Section Panels ---- */
.section-panel {
    padding: 5rem 4vw;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
    border-left: 8px solid #ff3131;
    padding-left: 1rem;
}

/* ---- Ben-Day Dot Backgrounds ---- */
.dots-red {
    background-color: #f5f5f5;
    background-image: radial-gradient(circle, #ff6b6b 2px, transparent 2px);
    background-size: 8px 8px;
}

.dots-yellow {
    background-color: #ffffff;
    background-image: radial-gradient(circle, #ffde17 2px, transparent 2px);
    background-size: 8px 8px;
}

.dots-blue-bg {
    background-color: #f5f5f5;
    background-image: radial-gradient(circle, #2d7dd2 1.5px, transparent 1.5px);
    background-size: 8px 8px;
}

.dots-green-bg {
    background-image: radial-gradient(circle, #00c853 2px, transparent 2px);
    background-size: 8px 8px;
    background-color: #f5f5f5;
}

.dots-red-bg {
    background-image: radial-gradient(circle, #ff6b6b 2px, transparent 2px);
    background-size: 8px 8px;
    background-color: #ffffff;
}

/* ---- Overlapping Columns (About Section) ---- */
.overlap-grid {
    display: grid;
    grid-template-columns: 55% 55%;
    width: 100%;
    overflow: visible;
    position: relative;
}

.overlap-col {
    position: relative;
}

.col-right {
    margin-left: -10%;
    position: relative;
}

.content-block {
    background: #ffffff;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.col-right .content-block {
    mix-blend-mode: multiply;
    background: rgba(45, 125, 210, 0.12);
    z-index: 2;
}

/* Slam-in animation: initial hidden state */
[data-animate="slam"] {
    opacity: 0;
    transform: scale(1.3);
}

[data-animate="slam"].active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Speech Bubbles ---- */
.quotes-section {
    background: #ffffff;
}

.bubbles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.speech-bubble {
    background: #ffffff;
    border-radius: 20px;
    border: 3px solid #1a1a1a;
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.bubble-left {
    background: #ffde17;
}

.bubble-right {
    background: #ff6b6b;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 20px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top: 8px solid #1a1a1a;
}

.bubble-right::after {
    left: auto;
    right: 20px;
}

.bubble-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.bubble-speaker {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a1a;
    opacity: 0.7;
    text-align: right;
}

/* Wobble hover animation */
@keyframes wobble {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(-2deg); }
    75%  { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

.speech-bubble:hover {
    animation: wobble 0.5s ease;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    padding: 2rem;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #1a1a1a;
}

.card-red   { border-color: #ff3131; }
.card-blue  { border-color: #2d7dd2; }
.card-yellow { border-color: #ffde17; }
.card-green { border-color: #00c853; }

.card-red   .card-number { color: rgba(255, 49, 49, 0.2); }
.card-blue  .card-number { color: rgba(45, 125, 210, 0.2); }
.card-yellow .card-number { color: rgba(255, 222, 23, 0.4); }
.card-green .card-number { color: rgba(0, 200, 83, 0.3); }

/* ---- Manifesto Section ---- */
.manifesto-panel {
    background: #1a1a1a;
}

.manifesto-panel .section-header {
    border-color: #ffde17;
}

.manifesto-panel .section-title {
    color: #ffffff;
}

.manifesto-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border-color: #ffde17;
    padding: 3rem;
}

.manifesto-title {
    margin-bottom: 2.5rem;
}

.manifesto-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manifesto-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    border-bottom: 2px solid rgba(255, 222, 23, 0.3);
    padding-bottom: 1.2rem;
}

.manifesto-num {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #ff3131;
    min-width: 2.5rem;
    letter-spacing: 0.05em;
}

.manifesto-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
}

/* ---- Contact Section ---- */
.contact-section {
    background: #ff3131;
    text-align: center;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    color: #ffde17;
    text-shadow: 3px 3px 0 #1a1a1a;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-link {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.08em;
    color: #1a1a1a;
    background: #ffde17;
    text-decoration: none;
    padding: 0.6rem 2rem;
    border-color: #1a1a1a;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-block;
}

.contact-link:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #1a1a1a;
}

.contact-socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-tag {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    background: #ffffff;
    border-color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.social-tag:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ---- Footer ---- */
.site-footer {
    background: #1a1a1a;
    padding: 1.5rem 4vw;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'Bangers', cursive;
    font-size: 1.6rem;
    color: #ff3131;
    letter-spacing: 0.1em;
}

.footer-copy {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .overlap-grid {
        grid-template-columns: 1fr;
    }

    .col-right {
        margin-left: 0;
    }

    .col-right .content-block {
        mix-blend-mode: normal;
        background: #ffffff;
    }

    .bubbles-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-panel {
        padding: 3rem 5vw;
    }

    .manifesto-inner {
        padding: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #hero {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: auto;
        min-height: 100vh;
    }

    .warhol-cell {
        min-height: 25vh;
    }
}
