/*
Theme Name:  Matias Portfolio
Theme URI:   https://matiasrodriguez.dev
Description: Kadence child theme for Matias Rodriguez's personal portfolio.
Author:      Matias Rodriguez
Template:    kadence
Version:     1.0.0
*/

:root {
    --color-primary:       #1A3A5C;   /* Deep blue */
    --color-primary-dark:  #112840;
    --color-primary-light: #2A5080;

    --color-accent:        #F5C518;   /* Bright yellow */
    --color-accent-dark:   #D4A800;
    --color-accent-light:  #FAD940;

    --color-bg:            #ffffff;   /* Pure white background */
    --color-bg-white:      #FFFFFF;
    --color-bg-muted:      #EEF1F4;

    --color-text:          #1E2A38;
    --color-text-muted:    #5A6A7A;
    --color-text-light:    #8A9AAA;

    --font-heading:        'Inter', 'Segoe UI', sans-serif;
    --font-body:           'Inter', 'Segoe UI', sans-serif;

    --radius-sm:           4px;
    --radius-md:           8px;
    --radius-lg:           16px;

    --shadow-sm:           0 1px 3px rgba(26,58,92,0.08);
    --shadow-md:           0 4px 16px rgba(26,58,92,0.12);
    --shadow-lg:           0 8px 32px rgba(26,58,92,0.16);

    --max-width:           1200px;
    --transition:          0.2s ease;
}

/* ── Global resets ─────────────────────────────────────────── */
body,
body.home,
body.page-template-front-page {
    background-color: #ffffff !important;
    color: var(--color-text);
    font-family: var(--font-body);
}

a {
    color: var(--color-primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-dark);
}

/* ── Kadence overrides ─────────────────────────────────────── */
.wp-block-button__link,
.kb-button {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    transition: background-color var(--transition), transform var(--transition);
}

.wp-block-button__link:hover,
.kb-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Accent buttons */
.is-style-accent .wp-block-button__link {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.is-style-accent .wp-block-button__link:hover {
    background-color: var(--color-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
}

/* ── Front-page header: force solid white, same as all other pages ── */
/* Safety net: if Kadence's .transparent-header class is still present on
   the front page body (e.g. before the PHP filter kicks in or via cache),
   override it so the header is never transparent or absolutely positioned. */
body.home #masthead,
body.page-template-front-page #masthead {
    position: relative !important;
    background: #ffffff !important;
}

body.home .site-top-header-wrap .site-header-row-container-inner,
body.home .site-main-header-wrap .site-header-row-container-inner,
body.home .site-bottom-header-wrap .site-header-row-container-inner,
body.page-template-front-page .site-top-header-wrap .site-header-row-container-inner,
body.page-template-front-page .site-main-header-wrap .site-header-row-container-inner,
body.page-template-front-page .site-bottom-header-wrap .site-header-row-container-inner {
    background: #ffffff !important;
}

/* ── Front-page hero ───────────────────────────────────────── */

/* Force Kadence's content wrapper not to interfere with hero layout or background */
.page-template-front-page #primary,
.page-template-front-page .content-area,
.page-template-front-page .site-content,
.page-template-front-page #main,
.home #primary,
.home .content-area,
.home .site-content,
.home #main {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #ffffff !important;
}

.mp-hero {
    background: #0a1628;
    color: #fff;
    padding: 0 24px;
    text-align: center;
    height: 44vh;
    min-height: 352px;
    padding-top: 35px;
    padding-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.mp-hero__name {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mp-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.mp-hero__cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.mp-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.mp-btn--primary {
    background-color: #F5C518;
    color: #0a1628;
}

.mp-btn--primary:hover {
    background-color: #e0b200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
    color: #0a1628;
}

.mp-btn--outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
}

.mp-btn--outline:hover {
    border-color: #fff;
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    transform: translateY(-2px);
}

.mp-btn--text {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    padding-left: 4px;
    padding-right: 4px;
    text-decoration: none;
    position: relative;
}

.mp-btn--text::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: rgba(255,255,255,0.5);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.mp-btn--text:hover {
    color: #fff;
}

.mp-btn--text:hover::after {
    transform: scaleX(1);
}

/* ── Sections ──────────────────────────────────────────────── */
.mp-section {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: #ffffff !important;
}

.mp-section--white {
    background-color: #ffffff !important;
    max-width: 100%;
    padding: 0;
}

/* "Areas of Focus" white section with top border separator */
.mp-section--bordered {
    border-top: 1px solid rgba(26,58,92,0.08);
    border-bottom: 1px solid rgba(26,58,92,0.08);
}

.mp-section--white .mp-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navy contact section */
.mp-section--navy {
    background-color: #0a1628;
    max-width: 100%;
    padding: 100px 0;
}

.mp-section--navy .mp-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.mp-section__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 8px;
}

/* Yellow left-border accent on section labels */
.mp-section__label--accent {
    border-left: 3px solid #F5C518;
    padding-left: 10px;
    color: var(--color-primary);
}

/* Label inside navy section */
.mp-section__label--navy {
    color: #F5C518;
    border-left: 3px solid #F5C518;
    padding-left: 10px;
}

.mp-section__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 40px;
}

/* White title for navy section */
.mp-section__title--white {
    color: #ffffff;
}

/* Contact subtext */
.mp-contact__sub {
    color: rgba(255,255,255,0.72);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.mp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.mp-cards--3col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .mp-cards--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mp-cards--3col {
        grid-template-columns: 1fr;
    }
}

.mp-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 2px 12px rgba(26,58,92,0.08);
    border: 1px solid rgba(26,58,92,0.07);
    border-top: 3px solid transparent;
    transition: box-shadow var(--transition), transform var(--transition), border-top-color var(--transition);
}

.mp-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Focus cards: yellow top border on hover */
.mp-card--focus:hover {
    border-top-color: #F5C518;
}

/* Project cards: larger title, flex layout to push button to bottom */
.mp-card--project {
    display: flex;
    flex-direction: column;
}

.mp-card--project:hover {
    border-top-color: #F5C518;
}

.mp-card--project .mp-card__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.mp-card--project .mp-card__text {
    flex: 1;
    margin-bottom: 24px;
}

/* "View Project →" button */
.mp-btn--project {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F5C518;
    color: #0a1628;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color var(--transition), transform var(--transition);
}

.mp-btn--project:hover {
    background-color: #e0b200;
    transform: translateY(-1px);
    color: #0a1628;
}

.mp-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.mp-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 10px;
}

.mp-card__text {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── About strip ───────────────────────────────────────────── */
.mp-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

@media (max-width: 768px) {
    .mp-about {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px;
    }

    .mp-about__image {
        display: flex;
        justify-content: center;
    }
}

.mp-about__text p {
    color: var(--color-text-muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

.mp-about__headshot {
    width: 320px;
    height: 380px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-lg);
}

/* Portrait photo placeholder */
.mp-avatar-placeholder {
    width: 320px;
    height: 380px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1A3A5C, #2A5080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.4);
    box-shadow: var(--shadow-lg);
}

/* ── Coming Soon page (Experiments) ────────────────────────── */
.mp-coming-soon {
    background-color: #0a1628;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    box-sizing: border-box;
    text-align: center;
}

.mp-coming-soon__content {
    max-width: 560px;
}

.mp-coming-soon__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #F5C518;
    margin: 0 0 20px;
}

.mp-coming-soon__heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.mp-coming-soon__sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 32px;
    line-height: 1.6;
}

.mp-coming-soon__divider {
    width: 60px;
    height: 3px;
    background-color: #F5C518;
    margin: 0 auto 32px;
    border-radius: 2px;
}

.mp-coming-soon__note {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 36px;
    line-height: 1.6;
}

.mp-coming-soon__cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Contact page ───────────────────────────────────────────── */
.mp-contact-main {
    max-width: var(--max-width);
}

.mp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .mp-contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Left column */
.mp-contact-left {
    display: flex;
    flex-direction: column;
}

.mp-contact-left__heading {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 8px 0 24px;
}

.mp-contact-left__body {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 18px;
}

.mp-contact-left__btn {
    display: inline-block;
    margin: 8px 0 20px;
    font-size: 1.05rem;
    padding: 16px 36px;
}

.mp-contact-left__secondary {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin: 0;
}

.mp-contact-left__secondary a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.mp-contact-left__secondary a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* Right: info card */
.mp-contact-card {
    background-color: #0a1628;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.mp-contact-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.mp-contact-card__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 480px) {
    .mp-contact-card__grid {
        grid-template-columns: 1fr;
    }
}

.mp-contact-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F5C518;
}

.mp-contact-card__value {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
}

.mp-contact-card__divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* 2x2 grid for "What I'm Open To" cards */
.mp-open-to-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 640px) {
    .mp-open-to-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Creative page sections ─────────────────────────────────── */
.mp-creative-section {
    padding: 80px 0;
}

.mp-creative-section--white {
    background-color: #ffffff;
}

.mp-creative-section--gray {
    background-color: #f8f8f8;
    border-top: 1px solid rgba(26,58,92,0.06);
    border-bottom: 1px solid rgba(26,58,92,0.06);
}

.mp-creative-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Two-column layout: text + visual */
.mp-creative-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.mp-creative-block--reversed {
    direction: rtl;
}

.mp-creative-block--reversed > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .mp-creative-block,
    .mp-creative-block--reversed {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .mp-creative-block--reversed > * {
        direction: ltr;
    }
}

.mp-creative-block__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 8px 0 20px;
    letter-spacing: -0.02em;
}

.mp-creative-block__desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 28px;
}

.mp-creative-block__cta {
    display: inline-block;
    margin-bottom: 20px;
}

/* Tag line */
.mp-tag-line {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    margin: 0;
}

/* Visual panel */
.mp-creative-block__visual {
    border-radius: var(--radius-lg);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.mp-creative-block__visual--design {
    background: linear-gradient(135deg, #2d1b69, #4a2fa0);
}

.mp-creative-block__visual--music {
    background: linear-gradient(135deg, #1f0a0a, #4a1515);
}

.mp-creative-block__visual--video {
    background: linear-gradient(135deg, #0d4f4f, #1a7a7a);
}

/* ── Currently Exploring (navy cards) ──────────────────────── */
.mp-creative-exploring {
    background-color: #0a1628;
    padding: 80px 0;
}

.mp-creative-exploring__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.mp-creative-exploring__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 40px;
}

.mp-exploring-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .mp-exploring-cards {
        grid-template-columns: 1fr;
    }
}

.mp-exploring-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid #F5C518;
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: background-color var(--transition);
}

.mp-exploring-card:hover {
    background: rgba(255,255,255,0.1);
}

.mp-exploring-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 16px;
}

.mp-exploring-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.mp-exploring-card__text {
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ── Blog: topic filter bar ────────────────────────────────── */
.mp-topic-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(26,58,92,0.08);
    padding: 0;
}

.mp-topic-bar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-topic-pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(26,58,92,0.15);
    color: var(--color-primary);
    background: #ffffff;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.mp-topic-pill:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.mp-topic-pill--active {
    background-color: #F5C518;
    color: #0a1628;
    border-color: #F5C518;
}

.mp-topic-pill--active:hover {
    background-color: #e0b200;
    border-color: #e0b200;
    color: #0a1628;
}

/* ── Blog: post grid ───────────────────────────────────────── */
.mp-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .mp-blog-grid {
        grid-template-columns: 1fr;
    }
}

.mp-post-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26,58,92,0.08);
    box-shadow: 0 2px 12px rgba(26,58,92,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.mp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(26,58,92,0.14);
}

.mp-post-card__header {
    height: 100px;
    display: flex;
    align-items: flex-end;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0d1f3c, #1a3a5c);
}

.mp-post-card__thumb {
    position: relative;
}

.mp-post-card__thumb-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
}

.mp-post-card__cat--overlay {
    position: absolute;
    bottom: 12px;
    left: 16px;
}

.mp-post-card__cat,
.mp-post-card__cat a {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0a1628;
    background-color: #F5C518;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
}

.mp-post-card__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mp-post-card__date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin: 0 0 10px;
}

.mp-post-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 12px;
    line-height: 1.4;
}

.mp-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.mp-post-card__title a:hover {
    color: var(--color-primary);
}

.mp-post-card__excerpt {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0 0 24px;
    flex: 1;
}

/* ── Projects grid ─────────────────────────────────────────── */
.mp-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .mp-projects-grid {
        grid-template-columns: 1fr;
    }
}

.mp-project-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26,58,92,0.08);
    box-shadow: 0 2px 12px rgba(26,58,92,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.mp-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(26,58,92,0.14);
}

.mp-project-card__icon-area {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.mp-project-card__body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mp-project-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 10px;
}

.mp-project-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 12px;
}

.mp-project-card__desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.97rem;
    margin: 0 0 24px;
    flex: 1;
}

/* ── About: story section ──────────────────────────────────── */
.mp-story__body p {
    color: var(--color-text-muted);
    font-size: 1.08rem;
    line-height: 1.85;
    margin: 0 0 20px;
}

.mp-story__body p:last-child {
    margin-bottom: 0;
}

/* ── About: timeline ───────────────────────────────────────── */
.mp-timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 8px;
}

.mp-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #F5C518, rgba(245,197,24,0.15));
    border-radius: 2px;
}

.mp-timeline__item {
    position: relative;
    display: flex;
    gap: 28px;
    margin-bottom: 48px;
}

.mp-timeline__item:last-child {
    margin-bottom: 0;
}

.mp-timeline__marker {
    position: absolute;
    left: -32px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #F5C518;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #F5C518;
    flex-shrink: 0;
}

.mp-timeline__content {
    flex: 1;
    padding-bottom: 8px;
}

.mp-timeline__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.mp-timeline__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 4px;
}

.mp-timeline__sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin: 0 0 10px;
}

.mp-timeline__desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.97rem;
    margin: 0;
}

/* ── Inner page hero ───────────────────────────────────────── */
.mp-page-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1A3A5C 60%, #2A5080 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}

.mp-page-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.mp-page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.mp-page-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.6;
}

/* ── Aurora canvas ─────────────────────────────────────────── */
#aurora-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* ── Testimonial ticker ────────────────────────────────────── */
.mp-ticker-wrap {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 48px 0;
    overflow: hidden;
    width: 100%;
}

.mp-ticker-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: mp-ticker-scroll 30s linear infinite;
}

@keyframes mp-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mp-ticker-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.08);
    padding: 28px;
    min-width: 380px;
    max-width: 380px;
    margin-right: 24px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    transition: transform 250ms ease, box-shadow 250ms ease, opacity 250ms ease;
    opacity: 1;
}

.mp-ticker-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.18);
}

.mp-ticker-card.dimmed {
    opacity: 0.5;
}

.mp-ticker-card__quote {
    font-size: 48px;
    line-height: 1;
    color: #F5C518;
    font-family: Georgia, serif;
    display: block;
    margin-bottom: -8px;
}

.mp-ticker-card__text {
    font-size: 15px;
    font-style: italic;
    color: #444;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.mp-ticker-card__attr {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0;
}

@media (max-width: 600px) {
    .mp-ticker-card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* ── Featured Articles ──────────────────────────────────────── */
.mp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

@media (max-width: 900px) {
    .mp-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .mp-articles-grid { grid-template-columns: 1fr; }
}

.mp-article-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.mp-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(10, 22, 40, 0.15);
}

.mp-article-card__img-link { display: block; }

.mp-article-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
}

.mp-article-card__img-placeholder {
    width: 100%;
    height: 180px;
    background: #0a1628;
    border-radius: 8px 8px 0 0;
}

.mp-article-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mp-article-card__cat {
    display: inline-block;
    background: #F5C518;
    color: #0a1628;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
}

.mp-article-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #0a1628;
    margin: 0;
    line-height: 1.4;
}

.mp-article-card__title a { color: inherit; text-decoration: none; }
.mp-article-card__title a:hover { text-decoration: underline; }

.mp-article-card__excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.mp-article-card__read-more {
    font-size: 14px;
    color: #F5C518;
    text-decoration: none;
    font-weight: 600;
    margin-top: 4px;
}

.mp-article-card__read-more:hover { text-decoration: underline; }

.mp-articles-viewall {
    text-align: center;
    margin-top: 32px;
}

.mp-articles-viewall a {
    font-size: 14px;
    color: #0a1628;
    text-decoration: none;
    font-weight: 600;
}

.mp-articles-viewall a:hover { text-decoration: underline; }

.mp-articles-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 15px;
    padding: 40px 0;
}


/* ── Chat widget ────────────────────────────────────────────── */
#mp-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

#mp-chat-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0a1628;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    animation: mp-chat-bounce 5s ease-in-out infinite;
    flex-shrink: 0;
}

.mp-chat-avatar__initial {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
}

.mp-chat-avatar__dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #F5C518;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

@keyframes mp-chat-bounce {
    0%, 85%, 100% { transform: translateY(0); }
    90%            { transform: translateY(-7px); }
    95%            { transform: translateY(-3px); }
}

#mp-chat-popup {
    width: 300px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}

.mp-chat__header {
    background: #0a1628;
    border-radius: 16px 16px 0 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-chat__header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-chat__name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
}

.mp-chat__status {
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
    line-height: 1.2;
}

.mp-chat__close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    opacity: 0.75;
    transition: opacity 150ms;
}

.mp-chat__close:hover { opacity: 1; }

.mp-chat__body {
    padding: 16px;
    background: #ffffff;
}

.mp-chat__typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 10px 14px;
    background: #f0f0f0;
    border-radius: 12px 12px 12px 0;
    width: fit-content;
}

.mp-chat__typing span {
    width: 7px;
    height: 7px;
    background: #888;
    border-radius: 50%;
    animation: mp-dot-bounce 1.2s ease-in-out infinite;
}

.mp-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.mp-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes mp-dot-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-6px); }
}

.mp-chat__sender-label {
    font-size: 11px;
    color: #F5C518;
    font-weight: 700;
    margin: 0 0 5px 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mp-chat__bubble {
    background: #f0f0f0;
    border-radius: 12px 12px 12px 0;
    padding: 10px 14px;
    max-width: 90%;
    font-size: 14px;
    color: #222;
    line-height: 1.55;
    word-break: break-word;
}

.mp-chat__cta-wrap { margin-top: 12px; }

.mp-chat__cta {
    display: inline-block;
    background: #F5C518;
    color: #0a1628;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 150ms;
}

.mp-chat__cta:hover { opacity: 0.85; }

/* ── About page hero ────────────────────────────────────────── */
.mp-about-hero {
    text-align: left;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 80px 24px;
    box-sizing: border-box;
}

.mp-about-hero__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 72px;
    align-items: center;
}

.mp-about-hero__text { display: flex; flex-direction: column; }
.mp-about-hero__text .mp-page-hero__title { margin-bottom: 16px; }
.mp-about-hero__text .mp-page-hero__sub { max-width: 480px; }

.mp-about-hero__photo-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-about-hero__headshot {
    width: 100%;
    max-width: 340px;
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

@media (max-width: 768px) {
    .mp-about-hero { padding: 60px 24px; min-height: unset; }

    .mp-about-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .mp-about-hero__text .mp-page-hero__sub { max-width: 100%; margin: 0 auto; }
    .mp-about-hero__headshot { height: 260px; max-width: 100%; }
}

/* ── About: story expand ────────────────────────────────────── */
.mp-story__short { margin-bottom: 20px; }

.mp-story__toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0a1628;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #F5C518;
    text-underline-offset: 3px;
    text-align: left;
    transition: color 0.15s ease;
}

.mp-story__toggle:hover { color: #1a3a5c; }

.mp-story__long {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin-top: 20px;
}

.mp-story__long:not([hidden]) { max-height: 1000px; }

.mp-story__long p { margin-bottom: 18px; }
.mp-story__long p:last-child { margin-bottom: 0; }

/* ── About: accordion ───────────────────────────────────────── */
.mp-accordion {
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.mp-accordion__item {
    border-bottom: 1px solid #e5e5e5;
    transition: transform 0.2s ease, border-left 0.2s ease;
    transform-origin: left center;
}

.mp-accordion__item--open { border-left: 4px solid #F5C518; }

.mp-accordion__item:hover { transform: scaleY(1.04) scaleX(1.01); }

.mp-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 20px 4px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}

.mp-accordion__trigger:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
}

.mp-accordion__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.mp-accordion__emoji {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.mp-accordion__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
    color: #111;
}

.mp-accordion__item--open .mp-accordion__icon {
    transform: rotate(45deg);
    border-color: #F5C518;
    color: #F5C518;
}

.mp-accordion__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.mp-accordion__body:not([hidden]) { max-height: 200px; }

.mp-accordion__text {
    padding: 0 4px 20px 44px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.tp-accordion__body:not([hidden]) { max-height: 500px; }

.tp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 4px 20px 44px;
}

.tp-pill {
    background: #ffffff;
    color: #0a1628;
    border: 2px solid #0a1628;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── About: 2-col background section ───────────────────────── */
.mp-bg-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 64px;
    align-items: start;
}

.mp-bg-col__heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 32px 0;
}

@media (max-width: 768px) {
    .mp-bg-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ── About: education cards ─────────────────────────────────── */
.mp-edu-stack { display: flex; flex-direction: column; gap: 20px; }

.mp-edu-card {
    background: #f0f2f5;
    border-left: 4px solid #F5C518;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
}

.mp-edu-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.mp-edu-card__sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin: 0 0 10px 0;
}

.mp-edu-card__desc {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── About: interests pills ─────────────────────────────────── */
.interests-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.interests-pill {
    background: #ffffff;
    color: #0a1628;
    border: 2px solid #0a1628;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ── Projects page ──────────────────────────────────────────── */
.mp-projects-page { background: #f7f8fa; }

.mp-proj-section { padding: 72px 24px; }
.mp-proj-section--alt { background: #ffffff; }

.mp-proj-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mp-proj-section__heading {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 40px 0;
    padding-left: 20px;
    border-left: 4px solid #F5C518;
    line-height: 1.2;
}

.mp-proj-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.mp-proj-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 12px;
    border-top: 3px solid #F5C518;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.08);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-proj-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F5C518;
    background: rgba(245, 197, 24, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.mp-proj-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0;
    line-height: 1.35;
}

.mp-proj-card__short {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

.mp-proj-card__full {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.mp-proj-card__full:not([hidden]) { max-height: 2000px; }

.mp-proj-card__full p {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.7;
    margin: 0;
    padding-top: 4px;
}

.mp-proj-card__toggle {
    margin-top: auto;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a1628;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.mp-proj-card__toggle:hover { text-decoration-color: #F5C518; }

.mp-proj-card__toggle:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
    border-radius: 2px;
}

.mp-proj-filter-wrap {
    background: #f7f8fa;
    padding: 32px 24px 0;
}

.mp-proj-filter {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.mp-proj-filter__pill {
    background: #ffffff;
    color: #0a1628;
    border: 2px solid #0a1628;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.mp-proj-filter__pill:hover { border-color: #F5C518; }

.mp-proj-filter__pill--active {
    background: #0a1628;
    color: #ffffff;
    border-color: #0a1628;
}

.mp-proj-filter__pill--active:hover { border-color: #0a1628; }

.mp-proj-section--hidden { display: none; }

@keyframes mp-card-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mp-proj-card--animate-in { animation: mp-card-in 150ms ease-out both; }

@media (max-width: 768px) {
    .mp-proj-section { padding: 56px 24px; }
    .mp-proj-grid    { grid-template-columns: 1fr; }
}

/* ── Creative page: scroll reveal ───────────────────────────── */
.reveal-left,
.reveal-right {
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal-left  { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }

.reveal-left.revealed,
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ── Creative page: featured entries ────────────────────────── */
.cr-featured-entry {
    display: grid;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.cr-entry--img-left  { grid-template-columns: 55% 1fr; }
.cr-entry--img-right { grid-template-columns: 1fr 55%; }

.cr-entry-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 0;
}

@media (max-width: 860px) {
    .cr-entry--img-left,
    .cr-entry--img-right {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
    }

    .cr-entry--img-right .cr-entry__text    { order: 2; }
    .cr-entry--img-right .cr-entry__placeholder { order: 1; }
}

.cr-entry__images { display: flex; flex-direction: column; }

.cr-image-stack {
    position: relative;
    min-height: 380px;
    height: 380px;
    border-radius: 10px;
    width: 100%;
}

.cr-stack-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    transition: opacity 600ms ease, transform 600ms ease;
    opacity: 0;
    z-index: 1;
}

.cr-stack-img.s-active  { opacity: 1; z-index: 10; transform: rotate(0deg) translate(0, 0); }
.cr-stack-img.s-behind1 { opacity: 0.55; z-index: 9; transform: rotate(-2deg) translate(-10px, 8px); }
.cr-stack-img.s-behind2 { opacity: 0.28; z-index: 8; transform: rotate(1.5deg) translate(8px, -6px); }

@media (max-width: 600px) {
    .cr-stack-img.s-behind1,
    .cr-stack-img.s-behind2 { opacity: 0; transform: none; }
}

.cr-stack-controls {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-start;
    align-items: center;
}

.cr-stack-btn {
    background: none;
    border: none;
    color: #0a1628;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 200ms;
}

.cr-stack-btn:hover { opacity: 1; }

.cr-entry__text { display: flex; flex-direction: column; justify-content: center; }

.cr-featured-label {
    display: inline-block;
    background: #F5C518;
    color: #0a1628;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    width: fit-content;
}

.cr-featured-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 16px;
    line-height: 1.2;
}

.cr-featured-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.75;
    margin: 0 0 24px;
}

.cr-featured-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.cr-entry__btn { display: inline-block; margin-bottom: 4px; width: fit-content; }

.cr-tag {
    background: #F5C518;
    color: #0a1628;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ── Creative page: video section ───────────────────────────── */
.cr-video__desc {
    max-width: 700px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 36px;
}

.cr-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .cr-video-grid { grid-template-columns: 1fr; }
}

.cr-video-el {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    background: #1a2a4a;
    display: block;
}

.cr-video-card__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a1628;
    margin: 12px 0 0;
    text-align: center;
}

/* ── Creative page hero ─────────────────────────────────────── */
.mp-creative-hero {
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 80px 60px;
    box-sizing: border-box;
}

.mp-creative-hero__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.mp-creative-hero__text {
    flex: 1;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
}

.mp-creative-hero__text .mp-page-hero__title { margin-bottom: 20px; }

.mp-creative-hero__body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.mp-creative-hero__photo-col {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 380px;
    height: 320px;
}

.mp-creative-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    display: block;
    transform: scale(1.3);
    transform-origin: center top;
}

@media (max-width: 768px) {
    .mp-creative-hero {
        padding: 60px 24px;
        min-height: unset;
    }

    .mp-creative-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .mp-creative-hero__text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .mp-creative-hero__photo-col { flex: 0 0 auto; width: 100%; }
    .mp-creative-hero__photo { height: 260px; max-width: 100%; }
}

/* ── Creative page: music section ───────────────────────────── */
.cr-music-wrap {
    background: #0a1628;
    padding: 80px 24px;
}

.cr-music { max-width: 1200px; margin: 0 auto; }

.cr-music__desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 700px;
    margin-bottom: 40px;
}

.cr-music-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .cr-music-cards { grid-template-columns: 1fr; }
}

.cr-music-card { background: #1a2a4a; border-radius: 12px; padding: 24px; }

.cr-music-card__icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }

.cr-music-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.cr-music-card__text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.6;
}

.cr-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 32px;
}

.cr-note--light { color: rgba(255, 255, 255, 0.45); }

/* ── Music section: two-column split ───────────────────────── */
.cr-music--split {
    display: flex;
    gap: 56px;
    align-items: stretch;
}

.cr-music__img-col {
    flex: 0 0 45%;
    min-width: 0;
}

.cr-music__img-wrap {
    position: relative;
    height: 100%;
}

.cr-music__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 33% 25%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: block;
}

.cr-music__caption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
}

.cr-music__content-col {
    flex: 0 0 55%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Music section: scroll animations ──────────────────────── */
.cr-music-anim--left,
.cr-music-anim--right,
.cr-music-card--anim {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cr-music-anim--left  { transform: translateX(-30px); }
.cr-music-anim--right { transform: translateX(30px); }
.cr-music-card--anim  { transform: translateY(20px); }

.cr-music-anim--left.is-visible,
.cr-music-anim--right.is-visible,
.cr-music-card--anim.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .cr-music--split {
        flex-direction: column;
        gap: 32px;
    }
    .cr-music__img-col,
    .cr-music__content-col { flex: 0 0 100%; }
    .cr-music__img-wrap { min-height: 240px; }
}

/* ── Creative page: tools ───────────────────────────────────── */
.cr-tools-group { margin-bottom: 40px; }
.cr-tools-group--tools { margin-bottom: 0; }

.cr-tools-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Base bubble */
.cr-tool-tag {
    background: #ffffff;
    color: #0a1628;
    border: 2px solid #0a1628;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: default;
    transition: background 200ms ease, color 200ms ease;
}

.cr-tool-tag:hover { background: #0a1628; color: #ffffff; }

/* Capabilities — slightly more prominent */
.cr-tool-tag--capability {
    font-size: 0.92rem;
    border-width: 2px;
    border-color: #1A3A5C;
    color: #1A3A5C;
}

.cr-tool-tag--capability:hover { background: #1A3A5C; color: #ffffff; }

/* Tools — lighter weight */
.cr-tool-tag--tool {
    font-weight: 500;
    border-color: #8a9ab0;
    color: #4a5a6a;
}

.cr-tool-tag--tool:hover { background: #4a5a6a; color: #ffffff; border-color: #4a5a6a; }

/* ── Creative page: philosophy ──────────────────────────────── */
.cr-philosophy-wrap {
    background: #f8f9fa;
    border-top: 1px solid rgba(26, 58, 92, 0.08);
    padding: 80px 24px;
}

.cr-philosophy { max-width: 700px; margin: 0 auto; text-align: center; }

.cr-philosophy__text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-top: 24px;
}

/* ── Creative: spacing between featured & video sections ─────── */
.mp-section.cr-featured { padding-bottom: 40px; }
.mp-section.cr-video    { padding-top:    40px; }

/* ── Footer accent bar ─────────────────────────────────────── */
.site-footer {
    border-top: 4px solid var(--color-accent);
}

/* ── Hide Kadence footer credit bar ────────────────────────── */
.site-info {
    display: none !important;
}

/* ── Lightbox ──────────────────────────────────────────────── */
#mp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: zoom-out;
}

#mp-lightbox.is-open    { display: flex; opacity: 0; }
#mp-lightbox.is-visible { opacity: 1; }

#mp-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease;
}

.mp-lightbox-trigger { cursor: pointer; }

