/* =====================================================
   MAVA INSTITUTE — IMPROVED STYLESHEET
   Compiled CSS (drop into /css/main.css)
   ===================================================== */

/* === RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    /* Brand palette */
    --red:    #c0392b;
    --blue:   #0077c8;
    --yellow: #e8a020;
    --dark:   #111111;
    --mid:    #3a3a3a;
    --grey:   #666666;
    --light:  #f6f5f3;  /* warm off-white — more gallery-like */
    --white:  #ffffff;

    /* Spacing */
    --sp:  1.5rem;

    /* Border-radius */
    --r: 3px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--dark);
}

/* === UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.title-rule {
    width: 48px;
    height: 2px;
    background: var(--red);
    margin: 1.25rem 0 2.5rem;
}

.text-center { text-align: center; }
.text-center .title-rule,
.gallery-section .title-rule { margin-left: auto; margin-right: auto; }

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.85rem 2.2rem;
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--dark);
    transition: background 0.25s, color 0.25s;
}
.btn-primary:hover { background: var(--red); border-color: var(--red); }

.btn-outline-white {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background 0.25s, border-color 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }


/* =====================================================
   HEADER
   ===================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: padding 0.3s var(--ease), box-shadow 0.3s;
}
.main-header.scrolled {
    padding: 0.65rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.logo {
    display: block;
    max-width: 200px;
    flex-shrink: 0;
}
.logo img { width: 100%; }

/* Nav links */
.main-header nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.main-header nav a {
    text-decoration: none;
    color: var(--mid);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s;
}
.main-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.3s var(--ease);
}
.main-header nav a:hover,
.main-header nav a.active {
    color: var(--dark);
}
.main-header nav a:hover::after,
.main-header nav a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark);
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
    .hamburger { display: flex; }
    #main-nav {
        position: fixed;
        inset: 0;
        background: var(--dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    #main-nav.open { opacity: 1; pointer-events: auto; }
    #main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
    #main-nav a { color: var(--white); font-size: 1.1rem; }
    #main-nav a::after { background: var(--yellow); }
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    padding: 7rem 1.5rem 4rem;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.25rem;
}

.hero-section h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-section h1 em {
    font-style: italic;
    color: var(--red);
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--grey);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-rule {
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--red), transparent);
    margin: 3rem auto 0;
}


/* =====================================================
   MARQUEE STRIP
   ===================================================== */
.marquee-strip {
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
    padding: 0.8rem 0;
    background: var(--light);
    margin-bottom: 4rem;
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
}
.marquee-track .dot { color: var(--red); }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); } /* 3 sets — loop at exactly 1/3 */
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}


/* =====================================================
   GALLERY SECTION
   ===================================================== */
.gallery-section {
    padding-bottom: 5rem;
}
.gallery-section .section-label { text-align: center; }
.gallery-section .section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0;
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    grid-auto-rows: 270px;
    gap: 1rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--light);
    cursor: pointer;
    border-radius: var(--r);
    /* Images always visible — reveal is progressive enhancement */
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s;
}
/* JS adds .reveal-ready first to opt-in to animation */
.gallery-item.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
}
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

/* Overlay */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.gallery-item .overlay h3 {
    color: var(--white);
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 0.15rem;
}
.gallery-item .overlay p {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.18); }

/* Span modifiers */
.gallery-item.wide {
    grid-column: span 2;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.big  { grid-column: span 2; grid-row: span 2; }

@media (max-width: 600px) {
    .gallery-item.wide,
    .gallery-item.big  { grid-column: span 1; }
    .gallery-item.big  { grid-row: span 1; }
    .gallery-grid { grid-auto-rows: 220px; gap: 0.6rem; }
}


/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
    background: var(--dark);
    padding: 5rem 0;
    margin-top: 2rem;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.cta-inner h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}
.cta-inner p {
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}
@media (max-width: 700px) {
    .cta-inner { flex-direction: column; text-align: center; }
}


/* =====================================================
   STATS STRIP (About page)
   ===================================================== */
.stats-strip {
    background: var(--light);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 2.5rem 0;
    margin-bottom: 5rem;
}
.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3rem;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(0,0,0,0.12);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .stat { padding: 0.75rem 1.5rem; }
    .stat-divider { display: none; }
}


/* =====================================================
   ABOUT PAGE — SPLIT LAYOUT
   ===================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 5rem;
    align-items: start;
    padding-bottom: 6rem;
}
@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-text h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin-bottom: 1.25rem;
}
.about-text h2 em { font-style: italic; color: var(--red); }

.about-text > p {
    color: var(--grey);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Pillars */
.about-pillars {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.pillar {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: var(--light);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--r) var(--r) 0;
}
.pillar-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(192,57,43,0.08);
    border-radius: 50%;
    color: var(--red);
}
.pillar h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.pillar p { color: var(--grey); font-size: 0.95rem; margin-bottom: 0.75rem; }

.pillar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pillar-list li {
    font-size: 0.9rem;
    color: var(--mid);
    padding-left: 1.1rem;
    position: relative;
}
.pillar-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 0.8rem;
}

/* About image column */
.about-image {
    position: sticky;
    top: 100px;
    position: -webkit-sticky;
}
@media (max-width: 900px) {
    .about-image {
        position: relative;
        top: 0;
        order: -1;
    }
}
.about-image img {
    width: 100%;
    min-height: 460px;
    object-fit: cover;
    border-radius: var(--r);
    box-shadow: 16px 16px 0 var(--light), 16px 16px 0 1px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}
.about-image::before {
    content: '';
    position: absolute;
    top: -16px; left: -16px;
    width: 55%; height: 50%;
    background: rgba(232,160,32,0.15);
    z-index: 1;
    border-radius: var(--r);
}
.image-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
}


/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 4rem;
    padding-bottom: 6rem;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-split { grid-template-columns: 1fr; gap: 3rem; }
}

/* Contact info panel */
.contact-info {
    background: var(--light);
    padding: 2.5rem;
    border-radius: var(--r);
    border-top: 3px solid var(--red);
}
.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(192,57,43,0.08);
    border-radius: 50%;
    color: var(--red);
}
.contact-item strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.contact-item p { font-size: 0.95rem; color: var(--mid); line-height: 1.6; }
.contact-item a { text-decoration: none; color: var(--mid); }
.contact-item a:hover { color: var(--red); }

.map-embed {
    margin-top: 2rem;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Contact form */
.contact-form-wrap h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.designer-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mid);
}
.req { color: var(--red); }

.designer-form input,
.designer-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--r);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
}
.designer-form input:focus,
.designer-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,119,200,0.1);
}
.designer-form textarea { resize: vertical; min-height: 140px; }

/* Submit button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    padding: 1rem 2.2rem;
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}
.btn-submit:hover:not(:disabled) { background: var(--red); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-arrow { transition: transform 0.25s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

/* Form messages */
.form-message {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--r);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}
.form-message.success {
    display: block;
    background: #eaf7f0;
    color: #1a6b40;
    border: 1px solid #b4dfc8;
}
.form-message.error {
    display: block;
    background: #fdf0ef;
    color: #8b2218;
    border: 1px solid #f5c6c0;
}


/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 5rem 0 3rem;
    border-top: 3px solid var(--red);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.25rem;
}
@media (max-width: 800px) {
    .footer-logo { margin: 0 auto 1.25rem; }
}

.footer-tagline {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.45);
}
.copyright { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.6; }

.main-footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.main-footer ul { list-style: none; }
.main-footer ul li { margin-bottom: 0.7rem; }
.main-footer a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s, padding-left 0.25s;
}
.main-footer a:hover { color: var(--yellow); padding-left: 4px; }

.contact-col p { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.6; }
.contact-details a { display: block; }

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
@media (max-width: 800px) { .social-icons { justify-content: center; } }

.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s, padding-left 0s;
}
.social-icons a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    padding-left: 0;
}


/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.94);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.lightbox-modal.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}
.lightbox-modal img {
    max-width: 88vw;
    max-height: 82vh;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r);
    animation: lbZoom 0.3s var(--ease);
}
.lightbox-caption {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
#lb-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
}
#lb-medium {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.close-btn {
    position: absolute;
    top: 20px; right: 28px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    font-family: sans-serif;
}
.close-btn:hover { color: var(--red); }
@keyframes lbZoom {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}


/* =====================================================
   ACCESSIBILITY
   ===================================================== */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    /* Always show gallery items regardless of reveal state */
    .gallery-item,
    .gallery-item.reveal-ready { opacity: 1; transform: none; }
}


/* =====================================================
   PAINT REVEAL EFFECT — Home page hero only
   Watercolour ink blobs + paint brush wipe on headline.
   ===================================================== */

/* --- Hero positioning (blobs need this) --- */
.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* --- Shared blob base --- */
.paint-blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

/* Blob 1 — warm red wash, top left */
.paint-blob--1 {
    width: 520px; height: 420px;
    top: -80px; left: -120px;
    background: radial-gradient(
        ellipse at 40% 40%,
        rgba(192, 57, 43, 0.13)  0%,
        rgba(192, 57, 43, 0.07) 40%,
        rgba(192, 57, 43, 0.02) 65%,
        transparent             100%
    );
    animation: blobDrift1 1.4s 0.1s both;
}

/* Blob 2 — yellow ochre, top right */
.paint-blob--2 {
    width: 380px; height: 340px;
    top: -40px; right: -60px;
    background: radial-gradient(
        ellipse at 60% 35%,
        rgba(232, 160, 32, 0.14)  0%,
        rgba(232, 160, 32, 0.07) 45%,
        rgba(232, 160, 32, 0.02) 65%,
        transparent              100%
    );
    animation: blobDrift2 1.6s 0.2s both;
}

/* Blob 3 — cobalt blue, bottom right */
.paint-blob--3 {
    width: 300px; height: 260px;
    bottom: 20px; right: 10%;
    background: radial-gradient(
        ellipse at 55% 60%,
        rgba(0, 119, 200, 0.10)  0%,
        rgba(0, 119, 200, 0.05) 50%,
        rgba(0, 119, 200, 0.01) 70%,
        transparent             100%
    );
    animation: blobDrift3 1.8s 0.35s both;
}

/* Blob 4 — warm ochre puddle, bottom left */
.paint-blob--4 {
    width: 220px; height: 180px;
    bottom: 30px; left: 8%;
    background: radial-gradient(
        ellipse at 45% 55%,
        rgba(232, 160, 32, 0.10)  0%,
        rgba(232, 160, 32, 0.04) 55%,
        transparent              100%
    );
    animation: blobDrift4 1.5s 0.45s both;
}

@keyframes blobDrift1 {
    0%   { opacity: 0; transform: scale(0.3) translate(30px,  20px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1)   translate(0, 0); }
}
@keyframes blobDrift2 {
    0%   { opacity: 0; transform: scale(0.4) translate(-20px, 15px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1)   translate(0, 0); }
}
@keyframes blobDrift3 {
    0%   { opacity: 0; transform: scale(0.5) translate(10px, -10px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1)   translate(0, 0); }
}
@keyframes blobDrift4 {
    0%   { opacity: 0; transform: scale(0.4) translate(-15px, 10px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1)   translate(0, 0); }
}

/* --- Staggered content reveal --- */
.hero-section .hero-eyebrow {
    opacity: 0;
    transform: translateY(12px);
    animation: heroFadeUp 0.7s ease 0.3s forwards;
}
.hero-section p {
    opacity: 0;
    transform: translateY(14px);
    animation: heroFadeUp 0.7s ease 1.1s forwards;
}
.hero-section .btn-primary {
    opacity: 0;
    transform: translateY(14px);
    animation: heroFadeUp 0.7s ease 1.35s forwards;
}
.hero-section .hero-rule {
    transform: scaleX(0);
    transform-origin: center;
    animation: ruleDrawIn 0.6s ease 1.55s forwards;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleDrawIn {
    to { transform: scaleX(1); }
}

/* --- Paint brush wipe headline reveal --- */
.hero-section h1 {
    opacity: 1 !important;
    animation: none !important;
}

.wipe-line {
    display: inline-block;
    position: relative;
    overflow: hidden;
    color: transparent;
    animation: textReveal 0.01s ease 0.55s forwards;
}
.wipe-line--accent {
    animation-name: textRevealAccent; /* own keyframe → resolves to red, not inherited black */
    animation-delay: 0.85s;
    font-style: italic;
}

/* The sweeping brush rectangle */
.wipe-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #111111;
    transform: scaleX(0);
    transform-origin: left center;
    animation: brushSweep 0.65s cubic-bezier(0.77, 0, 0.18, 1) 0.55s forwards;
}
.wipe-line--accent::after {
    background: #c0392b;
    animation-delay: 0.85s;
}

@keyframes textReveal {
    to { color: #111111; } /* resolves to dark — "Where Ideas" line */
}
@keyframes textRevealAccent {
    to { color: #c0392b; } /* resolves to red — "Become Visual" line */
}
@keyframes brushSweep {
    0%   { transform: scaleX(0); transform-origin: left center; }
    45%  { transform: scaleX(1); transform-origin: left center; }
    55%  { transform: scaleX(1); transform-origin: right center; }
    100% { transform: scaleX(0); transform-origin: right center; }
}

@media (prefers-reduced-motion: reduce) {
    .paint-blob,
    .hero-section .hero-eyebrow,
    .hero-section p,
    .hero-section .btn-primary,
    .hero-section .hero-rule,
    .wipe-line,
    .wipe-line::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .wipe-line            { color: #111111 !important; }
    .wipe-line--accent    { color: #c0392b !important; }
}
