/* ==========================================================
   MY MEDIA AFRICA — PREMIUM DESIGN SYSTEM
   Editorial • Sophisticated • African • Mobile-first
   ========================================================== */

:root {
    /* Palette */
    --ink: #080808;
    --ink-2: #151515;
    --ink-3: #232323;
    --paper: #F7F7F5;
    --white: #FFFFFF;
    --red: #C62828;
    --red-deep: #8F1515;
    --red-bright: #E8605C;
    --red-hover: #D53232;
    --red-soft: #FBE9E9;
    --green: var(--red-deep);
    --green-soft: var(--red-soft);
    --terracotta: var(--red-deep);
    --gold: var(--red);
    --gold-dark: var(--red-deep);
    --gold-soft: var(--red-bright);
    --text: #23252B;
    --muted: #6B6B6B;
    --line: #E7E4DD;
    --line-dark: rgba(255, 255, 255, 0.14);

    /* Type */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Shape */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 2px 10px rgba(14, 15, 19, 0.06);
    --shadow: 0 12px 34px rgba(14, 15, 19, 0.12);
    --shadow-lg: 0 24px 60px rgba(14, 15, 19, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.32s;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    overflow-x: clip;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

/* Visible focus states — never invisible */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--ink);
    color: var(--gold-soft);
    padding: 12px 20px;
    border-radius: 0 0 12px 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--gold-soft); }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Utilities ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.eyebrow::before {
    content: "";
    width: 34px; height: 2px;
    background: var(--gold);
    display: inline-block;
}
.eyebrow.eyebrow-center::after {
    content: "";
    width: 34px; height: 2px;
    background: var(--gold);
    display: inline-block;
}
.eyebrow-light { color: var(--gold-soft); }
.text-gold { color: var(--gold); }
.bg-ink { background: var(--ink); color: #E9E7E1; }
.bg-paper { background: var(--paper); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-sm { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

/* ---------- Buttons (clear text in every state) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled, .btn.disabled { opacity: 0.6; cursor: not-allowed; }
.btn .btn-label { display: inline-flex; align-items: center; gap: 10px; }
.btn .btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn.loading { pointer-events: none; }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.85; }

.btn-gold {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(198, 40, 40, 0.4);
}
.btn-gold:hover, .btn-gold:focus { background: var(--red-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198, 40, 40, 0.5); }
.btn-gold:active { background: var(--red-deep); color: var(--white); transform: translateY(0); }

.btn-ink {
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(14, 15, 19, 0.25);
}
.btn-ink:hover, .btn-ink:focus { background: var(--ink-3); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}
.btn-outline-light:hover, .btn-outline-light:focus { background: var(--white); border-color: var(--white); color: var(--ink); transform: translateY(-2px); }
.btn-outline-light:active { background: transparent; border-color: var(--white); color: var(--white); }

.btn-outline-dark {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-outline-dark:hover, .btn-outline-dark:focus { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn-outline-gold {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold-dark);
}
.btn-outline-gold:hover, .btn-outline-gold:focus { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-2px); }

.btn-sm { min-height: 42px; padding: 8px 20px; font-size: 0.87rem; }
.btn-lg { min-height: 58px; padding: 15px 36px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-arrow::after { content: "\2192"; font-size: 1.05em; transition: transform var(--dur) var(--ease); }
.btn-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header / Navbar ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(14, 15, 19, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark, .brand-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--white);
    white-space: nowrap;
}
.brand-name strong { color: var(--gold); font-weight: 700; }
.brand-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

/* Navbar wordmark lockup — same design as the footer brand */
.header-brand .brand-text { align-items: flex-start; line-height: 1.12; }
.header-brand .brand-name {
    font-size: clamp(0.98rem, 1vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.header-brand .brand-tag {
    position: relative;
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    color: var(--gold-soft);
    margin-top: 5px;
    padding-top: 5px;
}
.header-brand .brand-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Mobile drawer wordmark — same lockup, scaled for the panel */
.mobile-menu-head .header-brand .brand-name { font-size: 1.05rem; }
.mobile-menu-head .header-brand .brand-tag { font-size: 0.55rem; letter-spacing: 0.26em; margin-top: 5px; padding-top: 5px; }

/* Desktop nav */
.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 12px 13px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 8px;
    text-decoration: none;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
    white-space: nowrap;
}
.nav-list > li > a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav-list > li > a.active { color: var(--gold-soft); }
.nav-list > li > a.active::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px; bottom: 4px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { display: flex; align-items: center; }
.nav-dropdown > a { padding-right: 6px; }
.dropdown-chevron {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    padding: 12px 8px 12px 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dropdown-chevron:hover { color: var(--gold); }
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); color: var(--gold); }
.nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    list-style: none;
    margin: 0;
    padding: 10px;
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
    z-index: 100;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.nav-submenu a::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}
.nav-submenu a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-soft); padding-left: 18px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-dark);
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.header-search:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-cta { min-height: 44px; padding: 9px 22px; font-size: 0.9rem; }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.42s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.66);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.menu-backdrop.show { opacity: 1; visibility: visible; }
body.menu-locked { overflow: hidden; }

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-dark);
}
.mobile-menu-close {
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mobile-menu-close:hover { background: var(--gold); color: var(--white); }

.mobile-nav { flex: 1; overflow-y: auto; padding: 14px 0 20px; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mobile-nav-list a,
.mobile-sub-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 17px 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-nav-list a:hover,
.mobile-sub-toggle:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold-soft); }
.mobile-nav-list a.active { color: var(--gold-soft); background: rgba(198, 40, 40, 0.08); }
.mobile-nav-list a i, .mobile-sub-toggle > i:first-child {
    width: 22px;
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.mobile-sub-toggle .sub-chevron { margin-left: auto; transition: transform var(--dur) var(--ease); color: rgba(255,255,255,0.5); }
.mobile-sub-toggle[aria-expanded="true"] .sub-chevron { transform: rotate(180deg); color: var(--gold); }
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s var(--ease);
}
.mobile-submenu.open { max-height: 420px; }
.mobile-submenu a {
    padding: 13px 22px 13px 58px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    position: relative;
}
.mobile-submenu a::before {
    content: "";
    position: absolute;
    left: 38px; top: 50%;
    width: 6px; height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gold);
}
.mobile-menu-foot {
    padding: 18px 20px 24px;
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    min-height: min(calc(100svh - 76px), 920px);
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
    background-color: var(--ink);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 15, 19, 0.55) 0%, rgba(14, 15, 19, 0.72) 55%, rgba(14, 15, 19, 0.96) 100%),
        linear-gradient(90deg, rgba(14, 15, 19, 0.75) 0%, rgba(14, 15, 19, 0.25) 60%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8 L72 40 L40 72 L8 40 Z' fill='none' stroke='%23C62828' stroke-opacity='0.22' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='2.5' fill='%23C62828' fill-opacity='0.32'/%3E%3C/svg%3E");
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 7vw, 5.5rem);
    max-width: 880px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--gold); }
.hero-title {
    font-size: clamp(2.7rem, 8.5vw, 5.6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-title .gold-italic { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-text {
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    bottom: 28px;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.hero-scroll-line { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* Hero keyword marquee */
.hero-marquee {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 15, 19, 0.9);
    padding: 16px 0;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 0 26px;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}
.marquee-track span i { color: var(--gold); font-size: 0.55rem; font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Trust / partners ---------- */
.trust-strip { padding: clamp(2.4rem, 5vw, 3.6rem) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.trust-label {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 26px;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-3);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    text-align: center;
}
.trust-item:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.trust-item i { font-size: 1.25rem; color: var(--gold-dark); flex-shrink: 0; }
.trust-item span {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
}

/* ---------- Trusted by leading organisations ---------- */
.partners-logo-section {
    --partners-gap: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.partners-logo-section .section-head {
    margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}
.partners-logo-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partners-logo-scroll 45s linear infinite;
    will-change: transform;
}
.partners-logo-set {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--partners-gap);
    padding-right: var(--partners-gap);
}
.partners-logo-cell {
    flex: 0 0 auto;
    min-width: 0;
}
.partners-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    min-width: 160px;
    padding: 12px 20px;
    text-decoration: none;
    transition: opacity var(--dur) var(--ease);
}
a.partners-logo-card { color: var(--ink-3); }
.partners-logo-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 170px;
    max-height: 52px;
    object-fit: contain;
    filter: saturate(0.92);
    transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.partners-logo-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-3);
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}
.partners-logo-card:hover,
.partners-logo-card:focus-visible {
    opacity: 1;
}
.partners-logo-card:hover img,
.partners-logo-card:focus-visible img {
    filter: saturate(1);
    opacity: 0.8;
}
@keyframes partners-logo-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Service cards ---------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: clamp(22px, 3vw, 30px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--terracotta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.service-card:hover, .service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold-soft);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.45rem;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover .service-icon { background: var(--gold); color: var(--ink); transform: rotate(-6deg) scale(1.05); }
.service-card h3 {
    font-size: 1.28rem;
    margin: 6px 0 0;
    color: var(--ink);
}
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; flex: 1; }
.service-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.9rem;
}
.service-card-more i { transition: transform var(--dur) var(--ease); }
.service-card:hover .service-card-more i { transform: translateX(5px); }
.service-card:hover .service-card-more, .service-card .service-card-more { color: var(--gold-dark); }
.service-card:hover .service-card-more { color: var(--gold-dark); }

/* ---------- Editorial cards (stories / insights) ---------- */
.story-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.story-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.story-card:hover .story-card-media img { transform: scale(1.06); }
.story-chip {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    padding: 6px 14px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.story-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.story-card-body h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.story-card:hover .story-card-body h3 { color: var(--gold-dark); }
.story-card-body h3 a { color: inherit; text-decoration: none; }
.story-card-body p { color: var(--muted); font-size: 0.93rem; margin: 0; flex: 1; }
.story-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
    flex-wrap: wrap;
}
.story-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.story-meta .read-link { margin-left: auto; color: var(--gold-dark); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.story-meta .read-link i { transition: transform var(--dur) var(--ease); }
.story-card:hover .story-meta .read-link i { transform: translateX(4px); }

/* Featured story (home) */
.feature-story { display: grid; gap: 26px; }
.feature-story-media { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 260px; }
.feature-story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.feature-story:hover .feature-story-media img { transform: scale(1.05); }
.feature-story .story-chip { top: 18px; left: 18px; }
.feature-story-body { display: flex; flex-direction: column; gap: 12px; }
.feature-story-body h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.22; }
.feature-story-body h3 a { color: var(--ink); text-decoration: none; }
.feature-story:hover .feature-story-body h3 a { color: var(--gold-dark); }
.feature-story-body p { color: var(--muted); }

/* ---------- Insight list rows ---------- */
.insight-row {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: clamp(20px, 3vw, 26px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.insight-row:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.insight-index {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}
.insight-row-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.insight-row h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin: 6px 0 8px; }
.insight-row h3 a { color: var(--ink); text-decoration: none; }
.insight-row:hover h3 a { color: var(--gold-dark); }
.insight-row p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.insight-row-arrow { justify-self: end; color: var(--gold-dark); font-size: 1.3rem; }

/* ---------- Event cards ---------- */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.event-card:hover .event-card-media img { transform: scale(1.06); }
.event-date-badge {
    position: absolute;
    top: 14px; right: 14px;
    width: 62px; height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.event-date-badge .day { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 3px; }
.event-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.event-card-body h3 { font-size: 1.22rem; margin: 0; }
.event-card-body h3 a { color: var(--ink); text-decoration: none; }
.event-card:hover .event-card-body h3 a { color: var(--gold-dark); }
.event-detail { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.event-detail i { color: var(--gold-dark); width: 16px; }
.event-card-body p { color: var(--muted); font-size: 0.93rem; margin: 0; flex: 1; }

/* ---------- Podcast cards ---------- */
.podcast-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.podcast-card:hover { transform: translateY(-6px); border-color: rgba(198, 40, 40, 0.5); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45); }
.podcast-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.podcast-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.podcast-card:hover .podcast-card-media img { transform: scale(1.06); }
.podcast-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 15, 19, 0.25);
    color: var(--white);
    font-size: 1.4rem;
    transition: background-color var(--dur) var(--ease);
}
.podcast-play .play-circle {
    width: 58px; height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    transition: transform var(--dur) var(--ease);
}
.podcast-card:hover .podcast-play { background: rgba(14, 15, 19, 0.35); }
.podcast-card:hover .play-circle { transform: scale(1.1); }
.podcast-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.podcast-topic {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.podcast-card-body h3 { font-size: 1.12rem; color: var(--white); margin: 0; line-height: 1.3; }
.podcast-guest { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.podcast-card-body p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; margin: 0; flex: 1; }
.podcast-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Team cards ---------- */
.team-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--line);
    height: 100%;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card-media { position: relative; aspect-ratio: 3 / 3.4; overflow: hidden; }
.team-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.team-card:hover .team-card-media img { transform: scale(1.06); }
.team-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(14, 15, 19, 0.92) 100%);
}
.team-card-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 18px 18px 20px;
    color: var(--white);
}
.team-card-info h3 { color: var(--white); font-size: 1.18rem; margin: 0 0 4px; }
.team-role {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.team-bio { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); margin: 0; padding: 18px; }

/* ---------- Values grid ---------- */
.value-card {
    position: relative;
    height: 100%;
    padding: clamp(24px, 3vw, 32px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-number {
    position: absolute;
    top: 14px; right: 20px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3.4rem;
    line-height: 1;
    color: rgba(198, 40, 40, 0.22);
    transition: color var(--dur) var(--ease);
}
.value-card:hover .value-number { color: rgba(198, 40, 40, 0.55); }
.value-icon {
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--ink);
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.value-card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.value-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 3.6rem);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 90% at 85% 0%, rgba(198, 40, 40, 0.22), transparent 60%),
                radial-gradient(ellipse 40% 70% at 10% 100%, rgba(255, 255, 255, 0.06), transparent 60%);
}
.page-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8 L72 40 L40 72 L8 40 Z' fill='none' stroke='%23C62828' stroke-opacity='0.18' stroke-width='1'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.breadcrumb-nav a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--gold-soft); }
.breadcrumb-nav .sep { color: rgba(255, 255, 255, 0.4); }
.breadcrumb-nav .current { color: var(--gold-soft); }
.page-hero-title {
    color: var(--white);
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}
.page-hero-intro {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    max-width: 680px;
    margin: 16px 0 0;
}

/* ---------- Article content (CKEditor-compatible) ---------- */
.article-content {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text);
}
.article-content h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin: 2rem 0 1rem;
}
.article-content h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    margin: 1.7rem 0 0.8rem;
}
.article-content p { margin: 0 0 1.25rem; }
.article-content ul, .article-content ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
    margin: 1.8rem 0;
    padding: 22px 26px;
    border-left: 4px solid var(--gold);
    background: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.article-content blockquote p { margin: 0; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-content figure { margin: 1.8rem 0; }
.article-content figure img { margin: 0; }
.article-content figcaption { font-size: 0.84rem; color: var(--muted); text-align: center; margin-top: 10px; }
.article-content hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.article-content strong { font-weight: 700; }

/* ---------- Article header ---------- */
.article-header { padding: clamp(2.6rem, 6vw, 4.5rem) 0 0; }
.article-header .container { max-width: 860px; }
.article-title { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.15; margin: 16px 0 20px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.article-meta .avatar-dot {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.article-meta .meta-name { font-weight: 700; color: var(--ink); }
div.article-feature-image { margin-top: 2.4rem; border-radius: var(--radius-lg); overflow: hidden; max-width: 1080px; margin-inline: auto; }
.article-feature-image img { width: 100%; display: block; }
.article-body { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.article-body .container { max-width: 800px; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 2rem 0 0; }
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.share-label { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-right: 6px; }
.share-btn {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ink);
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.share-btn:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); }
.share-btn.share-whatsapp:hover { background: #25D366; color: var(--ink); }
.share-btn.share-copy.copied { background: var(--green); color: var(--white); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-control, .form-select {
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.18);
    color: var(--text);
    background: var(--white);
}
.form-control::placeholder { color: #9A9DA3; }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #DC3545;
    background-image: none;
}
.form-control.is-valid, .form-select.is-valid { border-color: var(--green); background-image: none; }
.invalid-feedback, .valid-feedback { font-size: 0.85rem; font-weight: 600; display: block; margin-top: 6px; }

.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.contact-info-panel {
    height: 100%;
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 42px);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.contact-info-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 90% 0%, rgba(198, 40, 40, 0.2), transparent 60%);
}
.contact-info-panel h2 { color: var(--white); position: relative; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.contact-info-item .ci-icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(198, 40, 40, 0.16);
    border: 1px solid rgba(198, 40, 40, 0.35);
    color: var(--gold-soft);
    font-size: 1.1rem;
}
.contact-info-item h3 { color: var(--white); font-size: 1.02rem; margin: 0 0 4px; }
.contact-info-item p, .contact-info-item a { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: 0.96rem; text-decoration: none; }
.contact-info-item a:hover { color: var(--gold-soft); }

.alert-form { border-radius: var(--radius-sm); font-weight: 600; }
.alert-form .alert { border-radius: var(--radius-sm); }

/* ---------- Newsletter ---------- */
.newsletter-band {
    background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%);
    border-radius: var(--radius-lg);
    padding: clamp(30px, 6vw, 56px);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.newsletter-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8 L72 40 L40 72 L8 40 Z' fill='none' stroke='%23C62828' stroke-opacity='0.2' stroke-width='1'/%3E%3C/svg%3E");
}
.newsletter-band > * { position: relative; z-index: 1; }
.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
    color: var(--white);
    margin: 0 0 12px;
}
.newsletter-sub { color: rgba(255, 255, 255, 0.78); max-width: 520px; }
.newsletter-fields { display: flex; gap: 12px; flex-wrap: wrap; max-width: 560px; }
.newsletter-fields .form-control { flex: 1 1 240px; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: var(--white); }
.newsletter-fields .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-fields .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.22); background: rgba(255, 255, 255, 0.12); color: var(--white); }
.newsletter-btn { min-height: 52px; }
.form-feedback { margin-top: 12px; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-feedback.success { color: #5FBF8F; }
.form-feedback.error { color: #FF9D9D; }
.newsletter-band .form-feedback.success { color: #7ED6A7; }
.newsletter-band .form-feedback.error { color: #FF9D9D; }

.newsletter-block.footer .newsletter-fields { flex-direction: column; gap: 10px; max-width: 100%; }
.newsletter-block.footer .form-control { min-height: 48px; }
.newsletter-block.footer .newsletter-btn { width: 100%; min-height: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { row-gap: 38px; padding-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand { display: inline-flex; align-items: flex-start; }
.footer-brand .brand-text { align-items: flex-start; line-height: 1.15; }
.footer-brand .brand-name {
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: normal;
    word-spacing: 0.12em;
}
.footer-brand .brand-tag {
    position: relative;
    font-size: 0.68rem;
    letter-spacing: 0.42em;
    color: var(--gold-soft);
    margin-top: 10px;
    padding-top: 10px;
}
.footer-brand .brand-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.footer-about { font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); margin: 0; max-width: 380px; }
.footer-heading {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-family: var(--font-body);
}
.footer-heading::after {
    content: "";
    display: block;
    width: 28px; height: 2px;
    background: var(--gold);
    margin-top: 10px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    text-decoration: none;
    position: relative;
    padding-left: 14px;
    transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer-links a::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 5px; height: 5px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gold);
}
.footer-links a:hover { color: var(--gold-soft); padding-left: 20px; }
.footer-contact { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; }
.footer-contact i { color: var(--gold); margin-top: 4px; width: 16px; text-align: center; flex-shrink: 0; }
.footer-contact a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-contact a:hover { color: var(--gold-soft); }
.social-icons { display: flex; gap: 10px; }
.social-icon {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-dark);
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social-icon:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-3px); }
.social-icons-light .social-icon:hover { background: var(--gold); color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.copyright { margin: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.55); }
.copyright strong { color: var(--gold-soft); font-weight: 700; }
.footer-legal { margin: 0; font-size: 0.86rem; display: flex; gap: 10px; align-items: center; }
.footer-legal a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-soft); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    border: none;
    font-size: 1.05rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-hover); color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 90% 10%, rgba(198, 40, 40, 0.28), transparent 55%),
                radial-gradient(ellipse 50% 80% at 5% 100%, rgba(255, 255, 255, 0.08), transparent 55%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4.5vw, 3rem); }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 620px; }

/* ---------- Pagination ---------- */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 2.5rem; }
.page-link-btn {
    min-width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-link-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.page-link-btn.current { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); }

/* ---------- Reveal animations ---------- */
/* Hidden states are gated behind .js-anim (set by main.js) so content is
   NEVER invisible when JavaScript is unavailable or fails partway —
   especially important on mobile devices with slow/weak connections. */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.js-anim .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js-anim .reveal, .js-anim .reveal-left, .js-anim .reveal-right,
    .js-anim .reveal-fade, .js-anim .reveal-scale,
    .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 { opacity: 1 !important; transform: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .hero-bg, .marquee-track, .hero-scroll-line { animation: none !important; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Empty / search states ---------- */
.empty-state {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 1rem;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-state i { font-size: 2.6rem; color: var(--gold); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

.search-box { position: relative; max-width: 620px; }
.search-box .form-control { padding-right: 56px; min-height: 56px; border-radius: var(--radius-pill); }
.search-box .search-btn {
    position: absolute;
    right: 6px; top: 6px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.search-box .search-btn:hover { background: var(--red-hover); transform: scale(1.05); }

/* ---------- Section side-by-side (editorial split) ---------- */
.split-block { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.split-media img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: inherit;
    pointer-events: none;
}
.split-media .media-caption {
    position: absolute;
    left: 16px; bottom: 16px;
    background: rgba(14, 15, 19, 0.85);
    color: var(--gold-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
}
.split-body .eyebrow { margin-bottom: 16px; }
.split-body h2 { margin: 0 0 18px; }
.split-body p { color: var(--muted); margin-bottom: 14px; }
.split-body .btn { margin-top: 10px; }

/* Feature list (checkmark bullets) */
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list i {
    width: 26px; height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature-list strong { color: var(--ink); }
.feature-list span { color: var(--muted); display: block; font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-item:hover { border-color: rgba(198, 40, 40, 0.5); transform: translateY(-4px); }
.stat-number { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--gold-soft); line-height: 1; }
.stat-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-top: 10px; }

/* ---------- Studios ---------- */
.studio-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: clamp(24px, 3vw, 32px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.studio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.studio-card .studio-icon {
    width: 58px; height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--ink);
    color: var(--gold);
    font-size: 1.4rem;
}
.studio-card h3 { font-size: 1.3rem; margin: 0; }
.studio-card p { color: var(--muted); font-size: 0.95rem; flex: 1; margin: 0; }
.studio-card .btn { align-self: flex-start; }

/* Podcast hero (dark) */
.podcast-hero {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 5rem) 0;
}
.podcast-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 80% 10%, rgba(198, 40, 40, 0.22), transparent 55%);
}
.podcast-hero h1 { color: var(--white); }
.podcast-hero .hero-text { color: rgba(255, 255, 255, 0.85); }

/* ---------- Events page ---------- */
.event-banner { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 300px; }
.event-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14, 15, 19, 0.85)); }
.event-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event-facts li { display: flex; gap: 14px; align-items: center; font-size: 0.98rem; }
.event-facts i { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.event-facts strong { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.event-facts span { color: var(--ink); font-weight: 600; }

/* ---------- Auth (existing login page) ---------- */
.auth-container { padding: clamp(3rem, 8vw, 6rem) 0; min-height: 70vh; }
.auth-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow);
}
.auth-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--ink);
    margin-bottom: 18px;
}
.auth-footer a { color: var(--gold-dark); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (min-width: 1200px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
    .brand-logo { height: 42px; }
    .hero-scroll { display: flex; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .insight-row { grid-template-columns: 64px 1fr; }
    .partners-logo-card { min-height: 88px; min-width: 180px; padding: 14px 24px; }
    .partners-logo-card img { max-width: 190px; max-height: 60px; }
}

@media (max-width: 1199.98px) {
    .header-inner { min-height: 68px; }
    .brand-logo { height: 36px; }
    .hero { min-height: min(calc(100svh - 68px), 760px); }
    .feature-story { grid-template-columns: 1fr; }
    .insight-row { grid-template-columns: 48px 1fr; }
}

@media (min-width: 992px) {
    .feature-story { grid-template-columns: 1.15fr 1fr; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
    .hero-content { max-width: 100%; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .contact-info-panel { margin-bottom: 2rem; }
    .partners-logo-card { min-height: 70px; min-width: 138px; padding: 10px 16px; }
    .partners-logo-card img { max-width: 140px; max-height: 42px; }
    .partners-logo-name { font-size: 0.85rem; }
}

@media (max-width: 767.98px) {
    .section { padding: 3.2rem 0; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-fields { flex-direction: column; }
    .newsletter-btn { width: 100%; }
    .article-share { gap: 8px; }
    .share-btn { width: 42px; height: 42px; }
    .event-date-badge { width: 56px; height: 56px; }
    .event-date-badge .day { font-size: 1.2rem; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .partners-logo-card { min-height: 74px; }
}

@media (max-width: 575.98px) {
    .btn { min-height: 50px; }
    .trust-grid { gap: 10px; }
    .trust-item { min-height: 58px; padding: 10px; }
    .trust-item i { font-size: 1.05rem; }
    .trust-item span { font-size: 0.78rem; }
    .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
    .page-hero { padding: 2.6rem 0 2.2rem; }
    .partners-logo-section { --partners-gap: 12px; }
    .partners-logo-section .section-head { margin-bottom: 1.5rem; }
    .partners-logo-card { min-height: 58px; min-width: 112px; padding: 8px 12px; }
    .partners-logo-card img { max-width: 112px; max-height: 32px; }
    .partners-logo-name { font-size: 0.75rem; }
    .footer-brand .brand-tag { font-size: 0.62rem; letter-spacing: 0.32em; }
    /* Navbar wordmark on phones — compact, crisp, never overflows */
    .header-brand .brand-name { font-size: 0.92rem; letter-spacing: 0.05em; }
    .header-brand .brand-tag { font-size: 0.48rem; letter-spacing: 0.2em; margin-top: 4px; padding-top: 4px; }
    /* Phones: Work With Us stays visible — compact premium pill */
    .header-inner { gap: 14px; }
    .header-actions { gap: 10px; }
    .header-search { display: none; }
    .header-actions .btn-cta {
        min-height: 42px;
        min-width: 0;
        padding: 9px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
        transition: transform 0.15s var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
    }
    .header-actions .btn-cta:active { transform: scale(0.97); }
}

@media (max-width: 379.98px) {
    .logo-mark, .brand-logo { height: 30px; }
    .brand-name { font-size: 0.98rem; }
    .brand-tag { font-size: 0.55rem; letter-spacing: 0.26em; }
    .footer-brand .brand-name { font-size: 1.2rem; letter-spacing: 0.06em; }
    .footer-brand .brand-tag { font-size: 0.58rem; letter-spacing: 0.28em; }
    .header-brand .brand-name { font-size: 0.84rem; letter-spacing: 0.04em; }
    .header-brand .brand-tag { font-size: 0.46rem; letter-spacing: 0.18em; margin-top: 4px; padding-top: 4px; }
    /* Ultra-narrow phones: tighter pill so Work With Us always fits */
    .header-inner { gap: 12px; }
    .header-actions .btn-cta { min-height: 40px; padding: 8px 12px; font-size: 0.73rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   TABLET / LAPTOP / DESKTOP / FULL-SCREEN RESPONSIVENESS
   Deliberate scaling — same design, controlled at every size
   ========================================================== */

/* Split sections: stacked on tablets, side-by-side on laptops+ */
@media (min-width: 992px) {
    .split-block { grid-template-columns: 1.05fr 1fr; }
}

/* Tablet (768-991): stacked split imagery reads better at 16:10 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .split-media img { aspect-ratio: 16 / 10; }
    .hero-content { padding-bottom: clamp(3.2rem, 7vw, 5rem); }
}

/* Medium desktops (992-1199): keep breathing room between sections */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .section { padding: clamp(3.8rem, 7vw, 5.2rem) 0; }
    .service-card { padding: clamp(24px, 3vw, 28px); }
}

/* Narrow desktops (1200-1399): condensed nav — compact wordmark,
   tighter items so the nav never crowds or wraps in the 1140px container */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header-inner { gap: 10px; }
    .header-brand .brand-name { font-size: 0.92rem; letter-spacing: 0.05em; }
    .header-brand .brand-tag { font-size: 0.47rem; letter-spacing: 0.18em; margin-top: 4px; padding-top: 4px; }
    .nav-list { gap: 0; }
    .nav-list > li > a { padding: 11px 7px; font-size: 0.85rem; }
    .dropdown-chevron { padding: 11px 3px 11px 1px; }
    .header-actions { gap: 6px; }
    .header-search { width: 40px; height: 40px; }
    .btn-cta { padding: 9px 11px; font-size: 0.84rem; }
}

/* Article readability: controlled measure on laptop+ screens */
@media (min-width: 992px) {
    .article-body { max-width: 880px; margin-inline: auto; }
    .article-body .container { max-width: 100%; }
    .article-content { font-size: 1.08rem; }
}

/* Large desktops (1600+): scale the container up, keep it centered */
@media (min-width: 1600px) {
    .container { max-width: 1460px; }
    .brand-logo { height: 44px; }
}

/* Full-screen (1920+): controlled container cap, richer composition */
@media (min-width: 1920px) {
    .container { max-width: 1560px; }
    .section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
    .section-sm { padding: clamp(2.4rem, 5vw, 4rem) 0; }
    .hero-content { padding-top: clamp(6rem, 12vw, 10rem); max-width: 960px; }
    .split-block { gap: clamp(2.5rem, 5vw, 4.5rem); }
    .stats-grid { gap: 22px; }
    .trust-grid { gap: 18px; }
    .footer-grid { row-gap: 44px; }
}

/* Ultra-wide (2560+): keep composition centered and calm */
@media (min-width: 2560px) {
    .hero-title { font-size: clamp(4rem, 4.4vw, 6rem); }
    .hero-text { font-size: clamp(1.05rem, 1.2vw, 1.25rem); }
    .stat-number { font-size: clamp(2rem, 1.8vw, 2.8rem); }
}

/* ==========================================================
   DEFENSIVE LAYOUT RULES — controlled widths, no overflow
   ========================================================== */

/* Bootstrap columns must never force the grid wider than the viewport */
.row > [class*="col-"] { min-width: 0; }

/* Article content from the editor: keep long words, tables, media
   and code blocks inside the reading column on every screen size */
.article-content { overflow-wrap: break-word; }
.article-content table { max-width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.article-content iframe, .article-content video { max-width: 100%; }
.article-content pre {
    overflow-x: auto;
    padding: 18px 20px;
    background: var(--ink);
    color: #E9E7E1;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Large screens: a touch more air between cards and split columns
   so the composition breathes without stretching content */
@media (min-width: 1920px) {
    .row.g-4 { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }
    .row.g-5 { --bs-gutter-x: 3rem; --bs-gutter-y: 3rem; }
}

/* ==========================================================
   MOBILE APP-LIKE UX — TOUCH, SAFE-AREA, SMALL-SCREEN POLISH
   ========================================================== */

/* No-JS safety: animated content must never be hidden when JS is unavailable */
.no-js .reveal { opacity: 1; transform: none; }

/* Sticky header anchor offset + prevent iOS font auto-inflation */
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

/* Touch-friendly: instant taps, no ghost highlights or 300ms delays */
a, button, .btn, input, select, textarea,
.nav-toggle, .mobile-menu-close, .dropdown-chevron, .mobile-sub-toggle,
.search-btn, .share-btn, .social-icon, .page-link-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Mobile drawer: contain scroll chaining inside the menu */
.mobile-nav { overscroll-behavior-y: contain; }

/* Safe-area insets for notched phones */
.mobile-menu-head { padding-top: calc(18px + env(safe-area-inset-top)); }
.mobile-menu-foot { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* App-like navbar feel: no accidental text selection, subtle press feedback */
.site-header .brand,
.header-search, .nav-toggle { -webkit-user-select: none; user-select: none; }
.nav-toggle { transition: transform 0.18s var(--ease); }
.nav-toggle:active, .header-search:active, .mobile-menu-close:active { transform: scale(0.92); }
.mobile-menu-close { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.18s var(--ease); }

/* Drawer CTA on mobile: smooth, premium press response */
.mobile-menu-foot .btn {
    transition: transform 0.15s var(--ease), background-color var(--dur) var(--ease),
                color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mobile-menu-foot .btn:active { transform: scale(0.98); }

/* Landscape phones: slimmer sticky bar so content leads on short screens */
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 500px) {
    .header-inner { min-height: 56px; }
    .header-brand .brand-name { font-size: 0.9rem; }
    .header-brand .brand-tag { font-size: 0.46rem; margin-top: 3px; padding-top: 3px; }
}

/* Hero entrance on load */
.hero-content { animation: heroContentIn 0.9s var(--ease) both; }
@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Editor tables: scroll within the column instead of breaking the viewport */
.article-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Landscape phones / short screens: keep hero compact */
@media (max-height: 560px) and (orientation: landscape) {
    .hero { min-height: 0; padding: 2.5rem 0; }
    .hero-content { padding: 2.5rem 0 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-text { margin-bottom: 20px; }
}

/* Small phones */
@media (max-width: 575.98px) {
    .event-banner { min-height: 220px; }
    .feature-story-media { min-height: 210px; }
    .article-content { font-size: 1rem; }
    .article-content blockquote { padding: 18px 20px; font-size: 1.08rem; }
    .hero-ctas .btn { padding: 12px 22px; }
    .section-head p { font-size: 0.98rem; }
    .auth-card { padding: 22px 18px; }
    .g-recaptcha { width: 244px; transform: scale(0.8); transform-origin: 0 0; }
}

/* Snappier, lighter reveal motion on mobile + drop will-change
   (avoids GPU memory pressure on low-end phones — visuals unchanged) */
@media (max-width: 767.98px) {
    .js-anim .reveal { transform: translateY(16px); transition-duration: 0.45s; will-change: auto; }
    .js-anim .reveal-left, .js-anim .reveal-right,
    .js-anim .reveal-fade, .js-anim .reveal-scale { will-change: auto; }
}

/* ==========================================================
   MY MEDIA AFRICA — PREMIUM MOTION SYSTEM
   Directional reveals, staggered entrances, image reveals,
   cinematic hero, mobile app-like motion.
   GPU-friendly only (transform + opacity + clip-path).
   Triggered once via IntersectionObserver in main.js.
   Hidden states are gated behind .js-anim / .no-js so content
   is never permanently invisible when JavaScript is unavailable.
   ========================================================== */

/* Root-level clip: off-screen animated transforms (directional reveals,
   drawer slide) must never create horizontal document overflow. More
   robust than overflow-x:hidden alone — it also caps scrollWidth and
   stops iOS Safari from letting users pan into the translated area.
   #main-content wraps every page's content, so clipping it contains
   every reveal/slide transform without touching individual sections. */
html, #main-content, .site-footer { overflow-x: clip; }

/* Directional reveal variants — the hidden state is inherited
   from .reveal (markup already carries it), so no-JS stays safe.
   JS adds the direction class to split blocks + insight rows.
   Opacity gated behind .js-anim exactly like the base .reveal. */
.js-anim .reveal-left, .js-anim .reveal-right, .js-anim .reveal-fade, .js-anim .reveal-scale { opacity: 0; }
.js-anim .reveal-left  { transform: translateX(-40px); }
.js-anim .reveal-right { transform: translateX(40px); }
.js-anim .reveal-fade  { transform: none; }
.js-anim .reveal-scale { transform: scale(0.96); }
.js-anim .reveal-left.in-view, .js-anim .reveal-right.in-view,
.js-anim .reveal-fade.in-view, .js-anim .reveal-scale.in-view { opacity: 1; transform: none; }

/* Stagger delay extensions (existing system caps at .reveal-delay-3) */
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Cinematic coordinated hero entrance — eyebrow → title → text →
   CTAs → scroll cue. Runs on load, no JS required. */
.hero-content { animation: none; }
.hero .hero-eyebrow { animation: heroElIn 0.7s var(--ease) 0.15s both; }
.hero .hero-title   { animation: heroElIn 0.7s var(--ease) 0.28s both; }
.hero .hero-text    { animation: heroElIn 0.7s var(--ease) 0.42s both; }
.hero .hero-ctas    { animation: heroElIn 0.7s var(--ease) 0.56s both; }
.hero .hero-scroll  { animation: heroElIn 0.8s var(--ease) 0.9s both; }
@keyframes heroElIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

/* Inner page heroes — breadcrumb, title, intro stagger on load */
.page-hero .breadcrumb-nav  { animation: heroElIn 0.6s var(--ease) both; }
.page-hero .page-hero-title { animation: heroElIn 0.7s var(--ease) 0.15s both; }
.page-hero .page-hero-intro { animation: heroElIn 0.7s var(--ease) 0.3s both; }

/* Subtle whole-page content fade on load (never delays navigation) */
.js-anim #main-content { animation: mainIn 0.45s var(--ease) both; }
@keyframes mainIn { from { opacity: 0; } to { opacity: 1; } }

/* Desktop nav — premium underline sweep on hover */
.nav-list > li:not(.nav-dropdown) > a:not(.active)::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
.nav-list > li:not(.nav-dropdown) > a:not(.active):hover::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Desktop dropdown items stagger in on open */
.nav-dropdown.open .nav-submenu li {
    opacity: 0;
    animation: subIn 0.32s var(--ease) forwards;
}
.nav-dropdown.open .nav-submenu li:nth-child(1) { animation-delay: 0.04s; }
.nav-dropdown.open .nav-submenu li:nth-child(2) { animation-delay: 0.09s; }
.nav-dropdown.open .nav-submenu li:nth-child(3) { animation-delay: 0.14s; }
.nav-dropdown.open .nav-submenu li:nth-child(4) { animation-delay: 0.19s; }
.nav-dropdown.open .nav-submenu li:nth-child(5) { animation-delay: 0.24s; }
.nav-dropdown.open .nav-submenu li:nth-child(6) { animation-delay: 0.29s; }
.nav-dropdown.open .nav-submenu li:nth-child(7) { animation-delay: 0.34s; }
@keyframes subIn { to { opacity: 1; transform: none; } }

/* Mobile drawer — app-like staggered link entrance */
.mobile-menu .mobile-nav-list > li {
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.open .mobile-nav-list > li { opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-list > li:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(4) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(5) { transition-delay: 0.28s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(6) { transition-delay: 0.34s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(7) { transition-delay: 0.40s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(8) { transition-delay: 0.46s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(9) { transition-delay: 0.52s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(10) { transition-delay: 0.58s; }

/* Mobile submenu links slide in when expanded */
.mobile-submenu a {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-submenu.open a { opacity: 1; transform: none; }
.mobile-submenu.open li:nth-child(1) a { transition-delay: 0.06s; }
.mobile-submenu.open li:nth-child(2) a { transition-delay: 0.11s; }
.mobile-submenu.open li:nth-child(3) a { transition-delay: 0.16s; }
.mobile-submenu.open li:nth-child(4) a { transition-delay: 0.21s; }
.mobile-submenu.open li:nth-child(5) a { transition-delay: 0.26s; }
.mobile-submenu.open li:nth-child(6) a { transition-delay: 0.31s; }

/* Curtain-style image reveal for editorial media (scroll-triggered).
   Gated behind .js-anim so images are never clipped without JS. */
.js-anim .reveal .story-card-media,
.js-anim .reveal .event-card-media,
.js-anim .reveal .podcast-card-media,
.js-anim .reveal .team-card-media,
.js-anim .reveal .event-banner {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--ease) 0.12s;
}
.js-anim .reveal.in-view .story-card-media,
.js-anim .reveal.in-view .event-card-media,
.js-anim .reveal.in-view .podcast-card-media,
.js-anim .reveal.in-view .team-card-media,
.js-anim .reveal.in-view .event-banner { clip-path: inset(0); }

.js-anim .reveal .feature-story-media,
.js-anim .reveal .split-media {
    clip-path: inset(0 0 100% 0 round var(--radius-lg));
    transition: clip-path 0.9s var(--ease) 0.12s;
}
.js-anim .reveal.in-view .feature-story-media,
.js-anim .reveal.in-view .split-media { clip-path: inset(0 round var(--radius-lg)); }

/* Section heading eyebrow line grows in */
.eyebrow::before { transform-origin: left; transition: transform 0.6s var(--ease); }
.eyebrow.eyebrow-center::after { transform-origin: left; transition: transform 0.6s var(--ease); }
.js-anim .section-head .eyebrow::before { transform: scaleX(0); }
.js-anim .section-head .eyebrow.eyebrow-center::after { transform: scaleX(0); }
.js-anim .section-head.in-view .eyebrow::before { transform: scaleX(1); }
.js-anim .section-head.in-view .eyebrow.eyebrow-center::after { transform: scaleX(1); }

/* Icon + stat micro pops (fire once on reveal) */
.reveal.in-view .service-icon,
.reveal.in-view .studio-icon,
.reveal.in-view .value-icon,
.reveal.in-view .ci-icon { animation: fadeIn 0.5s var(--ease) both; }
.reveal.in-view .stat-number { animation: statPop 0.55s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes statPop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Team card info slides up slightly with the card */
.js-anim .reveal .team-card-info { transform: translateY(10px); transition: transform 0.5s var(--ease); }
.js-anim .reveal.in-view .team-card-info { transform: none; }

/* CTA band — staggered fade entrance (scroll-triggered, opacity-only
   so existing button transitions are preserved) */
.js-anim .cta-band:not(.in-view) .container > * { opacity: 0; }
.js-anim .cta-band.in-view .container > * { opacity: 1; }
.js-anim .cta-band .container > .eyebrow,
.js-anim .cta-band .container > h2,
.js-anim .cta-band .container > p { transition: opacity 0.6s var(--ease); }
.js-anim .cta-band .container > .btn {
    transition: opacity 0.6s var(--ease),
                transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.js-anim .cta-band.in-view .container > *:nth-child(2) { transition-delay: 0.10s; }
.js-anim .cta-band.in-view .container > *:nth-child(3) { transition-delay: 0.20s; }
.js-anim .cta-band.in-view .container > *:nth-child(4) { transition-delay: 0.30s; }

/* Trust strip — label + staggered partner items */
.js-anim .trust-strip:not(.in-view) .trust-label,
.js-anim .trust-strip:not(.in-view) .trust-grid { opacity: 0; transform: translateY(16px); }
.js-anim .trust-strip.in-view .trust-label,
.js-anim .trust-strip.in-view .trust-grid { opacity: 1; transform: none; }
.js-anim .trust-strip .trust-label { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js-anim .trust-strip .trust-grid { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-anim .trust-strip:not(.in-view) .trust-item { opacity: 0; }
.js-anim .trust-strip.in-view .trust-item { opacity: 1; }
.js-anim .trust-strip .trust-item {
    transition: opacity 0.4s var(--ease),
                border-color var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}
.js-anim .trust-strip.in-view .trust-item:nth-child(1) { transition-delay: 0.05s; }
.js-anim .trust-strip.in-view .trust-item:nth-child(2) { transition-delay: 0.11s; }
.js-anim .trust-strip.in-view .trust-item:nth-child(3) { transition-delay: 0.17s; }
.js-anim .trust-strip.in-view .trust-item:nth-child(4) { transition-delay: 0.23s; }
.js-anim .trust-strip.in-view .trust-item:nth-child(5) { transition-delay: 0.29s; }
.js-anim .trust-strip.in-view .trust-item:nth-child(6) { transition-delay: 0.35s; }
.js-anim .trust-strip.in-view .trust-item:nth-child(7) { transition-delay: 0.41s; }

/* Newsletter band — soft rise reveal */
.js-anim .newsletter-band:not(.in-view) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-anim .newsletter-band.in-view { opacity: 1; transform: none; }

/* Article feature image + inline images — gentle rise */
.js-anim div.article-feature-image {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-anim div.article-feature-image.in-view { opacity: 1; transform: none; }
.js-anim .article-content img {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-anim .article-content img.in-view { opacity: 1; transform: none; }

/* Feedback + alert entrance */
.form-feedback:not(:empty) { animation: feedbackIn 0.4s var(--ease); }
#contactAlert.show { animation: feedbackIn 0.45s var(--ease); }
@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Mobile-safe directional distances (no horizontal overflow) */
@media (max-width: 767.98px) {
    .js-anim .reveal-left { transform: translateX(-24px); }
    .js-anim .reveal-right { transform: translateX(24px); }
}

/* Reduced motion — force all reveal states visible & instant */
@media (prefers-reduced-motion: reduce) {
    .js-anim .cta-band:not(.in-view) .container > *,
    .js-anim .trust-strip:not(.in-view) .trust-label,
    .js-anim .trust-strip:not(.in-view) .trust-grid,
    .js-anim .trust-strip:not(.in-view) .trust-item,
    .js-anim .newsletter-band:not(.in-view),
    .js-anim div.article-feature-image,
    .js-anim .article-content img,
    .js-anim .section-head .eyebrow::before,
    .js-anim .section-head .eyebrow.eyebrow-center::after {
        opacity: 1 !important;
        transform: none !important;
    }
    .js-anim .reveal, .js-anim .reveal.in-view,
    .js-anim .reveal-left, .js-anim .reveal-right,
    .js-anim .reveal-fade, .js-anim .reveal-scale,
    .js-anim .reveal-left.in-view, .js-anim .reveal-right.in-view,
    .js-anim .reveal-fade.in-view, .js-anim .reveal-scale.in-view {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero .hero-eyebrow, .hero .hero-title, .hero .hero-text,
    .hero .hero-ctas, .hero .hero-scroll,
    .page-hero .breadcrumb-nav, .page-hero .page-hero-title,
    .page-hero .page-hero-intro,
    .mobile-menu .mobile-nav-list > li, .mobile-submenu a,
    .nav-dropdown.open .nav-submenu li,
    .js-anim .reveal .story-card-media, .js-anim .reveal .event-card-media,
    .js-anim .reveal .podcast-card-media, .js-anim .reveal .team-card-media,
    .js-anim .reveal .event-banner, .js-anim .reveal .feature-story-media,
    .js-anim .reveal .split-media {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
    }
}

/* No-JS safety net for directional reveals (JS adds these classes) */
.no-js .reveal-left, .no-js .reveal-right,
.no-js .reveal-fade, .no-js .reveal-scale { opacity: 1; transform: none; }