/* Mahajana Group Careers — design system (standalone; not ERP) */
/* ============================================================ */
/* LIGHT-MODE LOCK                                                */
/* This page is light-mode only. Do not add any dark-mode tokens. */
/* ============================================================ */

:root {
    color-scheme: light only;
    --brand: #5a0110;
    --brand-dark: #3a000a;
    --brand-hover: #7a0118;
    --gold: #c9a13b;
    --text-strong: #1e0a0d;
    --text-body: #3d1a1f;
    --text-weak: #7a5a5f;
    --stroke-strong: #b08080;
    --stroke-weak: #ede0e0;
    --fill: #f0efd4;
    --bg: #f9f9dc;
    --bg-card: #ffffff;
    --color-error: #c94040;
    --color-warning: #8c6e00;
    --color-success: #1a7a5a;
    --if-requested: #2563eb;
    --font-display: "Poppins", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 2px 16px rgba(201, 161, 59, 0.14);
    --shadow-raised: 0 10px 32px rgba(201, 161, 59, 0.22);
    --nav-h: 78px;
    --subnav-h: 52px;
    --container: 1200px;
    --pad-x: 48px;
    --section-pad-y: 56px;
    /* Desktop hero fold only; tablet/mobile use solid --brand */
    --mc-hero-gradient: linear-gradient(
        180deg,
        var(--brand) 0%,
        var(--brand-dark) 100%
    );
}

/* ——— Layer 1: Force light mode on every root element ——— */
html,
body,
body.mc-body {
    color-scheme: light only !important;
    forced-color-adjust: none !important;   /* block Windows High Contrast inversion */
    -webkit-text-size-adjust: 100%;
    background-color: #f9f9dc !important;   /* hard-coded fallback (not via var) */
    color: #3d1a1f !important;
}

/* ——— Layer 2: Re-assert every token if the OS reports dark preference ——— */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only !important;
        --brand:         #5a0110;
        --brand-dark:    #3a000a;
        --brand-hover:   #7a0118;
        --text-strong:   #1e0a0d;
        --text-body:     #3d1a1f;
        --text-weak:     #7a5a5f;
        --stroke-strong: #b08080;
        --stroke-weak:   #ede0e0;
        --fill:          #f0efd4;
        --bg:            #f9f9dc;
        --bg-card:       #ffffff;
        --color-error:   #c94040;
        --color-warning: #8c6e00;
        --color-success: #1a7a5a;
        --if-requested:  #2563eb;
    }

    html, body, body.mc-body {
        background-color: #f9f9dc !important;
        color: #3d1a1f !important;
    }
}

/* ——— Layer 3: Block "force dark mode" auto-darkening in Chromium-based browsers ——— */
/* (Chrome/Edge/Brave on Android & ChromeOS have a setting that auto-inverts
   pages — this rule disables it for our content.) */
@media (forced-colors: active) {
    html, body, body.mc-body {
        background-color: #f9f9dc !important;
        color: #3d1a1f !important;
        forced-color-adjust: none !important;
    }
}

/* ——— Layer 4: Block invert filters & high-contrast mods ——— */
html, body {
    filter: none !important;
    -webkit-filter: none !important;
}

@media (max-width: 1024px) {
    :root {
        --pad-x: 40px;
    }
}

@media (max-width: 600px) {
    :root {
        --pad-x: 24px;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Ensure [hidden] is always respected — needed because display rules on
   .mc-btn (inline-flex) and other components can override the browser default. */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    /* Clear the single sticky careers nav on anchor jumps */
    scroll-padding-top: calc(var(--nav-h) + 8px);
    background-color: #f9f9dc;              /* ensures no transparent flash on html element */
}

body.mc-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: #3d1a1f;                          /* hard hex — never transparent */
    color: var(--text-body);                 /* upgrade if vars available */
    background-color: #f9f9dc;              /* hard hex fallback */
    background-color: var(--bg);            /* upgrade if vars available */
    -webkit-font-smoothing: antialiased;
}

.mc-container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* ——— Nav ——— */
.mc-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(249, 249, 220, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stroke-weak);
}

.mc-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mc-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mc-nav__brand img {
    display: block;
    height: 40px;
    width: auto;
}

.mc-nav__wordmark {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.02em;
    padding: 3px 10px;
    background: rgba(201, 161, 59, 0.12);
    border: 1px solid rgba(201, 161, 59, 0.5);
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 6px rgba(201, 161, 59, 0.12);
}

.mc-nav__wordmark__text {
    position: relative;
    z-index: 1;
}

.mc-nav__wordmark::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    left: -45%;
    z-index: 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 252, 220, 0) 35%,
        rgba(255, 252, 220, 0.92) 50%,
        rgba(255, 252, 220, 0) 65%,
        transparent 100%
    );
    animation: mc-pill-gold-shine 3.6s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes mc-pill-gold-shine {
    0% {
        left: -45%;
    }
    100% {
        left: 145%;
    }
}

@media (max-width: 400px) {
    .mc-nav__wordmark {
        font-size: 13px;
        padding: 2px 8px;
    }
}

.mc-nav__toggle {
    display: none;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 1.5px solid var(--brand-dark);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mc-nav__toggle:hover,
.mc-nav__toggle:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px rgba(90, 1, 16, 0.12);
}

.mc-nav__toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Two equal-weight bars → smooth X */
.mc-nav__toggle-bars {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 14px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mc-nav__toggle-bar {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--brand-dark);
    transform-origin: 50% 50%;
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-nav__toggle-bar:nth-child(1) {
    top: 0;
}

.mc-nav__toggle-bar:nth-child(2) {
    top: 12px;
}

.mc-nav__toggle[aria-expanded="true"] .mc-nav__toggle-bar:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.mc-nav__toggle[aria-expanded="true"] .mc-nav__toggle-bar:nth-child(2) {
    top: 6px;
    transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .mc-nav__toggle-bar {
        transition-duration: 0.01ms;
    }
}

.mc-nav__right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mc-nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mc-nav__link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.mc-nav__link:hover {
    color: var(--brand);
}

.mc-nav__link.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* External link (opens in new tab) — diagonal arrow cue */
.mc-nav__link--ext {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.mc-nav__ext-icon {
    flex-shrink: 0;
    transform: translateY(-1px);
    opacity: 0.7;
    transition: transform 0.18s var(--mc-spring-out, ease), opacity 0.18s ease;
}

.mc-nav__link--ext:hover .mc-nav__ext-icon,
.mc-nav__link--ext:focus-visible .mc-nav__ext-icon {
    transform: translate(2px, -3px);
    opacity: 1;
}

.mc-nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language picker — globe · language name · chevron (pill trigger) */
.mc-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mc-lang__toggle {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    gap: 0;
    border: 1px solid rgba(30, 10, 13, 0.22);
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: none;
    cursor: pointer;
    color: var(--text-strong);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: border-color 0.15s, color 0.15s;
}

.mc-lang__toggle:hover {
    border-color: rgba(30, 10, 13, 0.35);
    color: var(--text-strong);
}

.mc-lang__toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.mc-lang__toggle[aria-expanded="true"] {
    border-color: rgba(30, 10, 13, 0.45);
}

.mc-lang__toggle[aria-expanded="true"] .mc-lang__chevron svg {
    transform: rotate(180deg);
}

.mc-lang__globe {
    display: block;
    flex-shrink: 0;
    margin-right: 10px;
}

.mc-lang__current {
    flex: 0 1 auto;
    margin-right: 6px;
    white-space: nowrap;
}

.mc-lang__chevron {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: inherit;
}

.mc-lang__chevron svg {
    display: block;
    transition: transform 0.2s ease;
}

.mc-lang__menu {
    position: absolute;
    z-index: 130;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
}

.mc-lang__menu-item {
    margin: 0;
}

.mc-lang__choice {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    text-align: left;
    transition: background 0.15s;
}

.mc-lang__choice:hover {
    background: var(--fill);
}

.mc-lang__choice:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.mc-lang__choice.is-active {
    background: rgba(90, 1, 16, 0.08);
    color: var(--brand);
}

.mc-lang__glyph {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(201, 161, 59, 0.14);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.mc-lang__glyph:not(.mc-lang__glyph--lat) {
    font-size: 20px;
}

.mc-lang__glyph--lat {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.mc-lang__choice-label {
    flex: 1;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .mc-nav__toggle {
        display: block;
    }

    .mc-nav__right {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 16px var(--pad-x) 24px;
        background: rgba(249, 249, 220, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--stroke-weak);
        display: none;
        gap: 16px;
    }

    .mc-nav__right.is-open {
        display: flex;
    }

    .mc-nav__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .mc-nav__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mc-lang {
        width: 100%;
        justify-content: stretch;
    }

    .mc-lang__toggle {
        width: 100%;
        justify-content: center;
    }

    .mc-lang__menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
    }
}

/* ——— Buttons ——— */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mc-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mc-btn--primary {
    background: var(--brand);
    color: #fff;
    border: 1.5px solid var(--gold);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(201, 161, 59, 0.15);
}

.mc-btn--primary:hover:not(:disabled) {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-raised), 0 0 20px rgba(201, 161, 59, 0.28);
}

.mc-btn--primary:active:not(:disabled) {
    background: var(--brand-dark);
    transform: none;
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(201, 161, 59, 0.2);
}

.mc-btn--outline {
    background: transparent;
    color: var(--text-body);
    border: 1.5px solid var(--stroke-strong);
}

.mc-btn--outline:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
}

.mc-btn--ghost {
    background: transparent;
    color: var(--text-weak);
    border: none;
}

.mc-btn--ghost:hover:not(:disabled) {
    color: var(--text-body);
    text-decoration: underline;
}

.mc-btn--nav {
    padding: 10px 22px;
    font-size: 14px;
}

.mc-btn--block {
    width: 100%;
}

.mc-btn--on-brand {
    background: #fff;
    color: var(--brand);
}

.mc-btn--on-brand:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-raised);
}

/* ——— Hero (bowl layout — tall white capsule with curved underside, stats on dark band) ——— */
.mc-hero {
    position: relative;
    z-index: 0;
    /* No top padding here — it used to show as a #0d0406 strip above the fold on desktop */
    padding: 0 0 clamp(32px, 6vw, 72px);
    overflow: clip;
    /* Matches the gradient end colour so no band shows */
    background-color: var(--brand-dark);
    /* Rounded underside so the dark hero curves seamlessly into the
       cream Latest Vacancies section (the cream page bg shows at the corners). */
    border-bottom-left-radius: clamp(28px, 5vw, 56px);
    border-bottom-right-radius: clamp(28px, 5vw, 56px);
}

/* First viewport (bowl + CTAs); stats follow below outside this fold */
.mc-hero__fold {
    position: relative;
    z-index: 1;
    /* Desktop (>1024px); solid primary on narrower viewports below */
    background: var(--mc-hero-gradient);
    /* Same viewport band on all breakpoints so gradient %-stops (e.g. bottom 25%) stay consistent */
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
}

@media (min-width: 1025px) {
    /* Top breathing room sits inside the fold so only the gradient is visible (no dark band) */
    .mc-hero__fold {
        padding-top: clamp(8px, 2vw, 20px);
        padding-bottom: 12px;
        box-sizing: border-box;
        /* On larger screens the fold must never grow taller than 700px;
           release the 100dvh floor so the cap can take effect. */
        min-height: 0;
        max-height: 700px;
    }
}

.mc-hero__bowl {
    position: relative;
    z-index: 1;
    width: calc(100% - clamp(16px, 5vw, 48px));
    max-width: 1240px;
    margin-inline: auto;
    background-color: rgba(249, 249, 220, 1);
    /* Rounded “shell” with a deep curved underside (bowl) */
    border-top-left-radius: clamp(24px, 5vw, 40px);
    border-top-right-radius: clamp(24px, 5vw, 40px);
    border-bottom-right-radius: 50% clamp(56px, 11vw, 140px);
    border-bottom-left-radius: 50% clamp(56px, 11vw, 140px);
    padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 40px) clamp(52px, 9vw, 88px);
    box-shadow:
        0 28px 80px rgba(30, 10, 13, 0.1),
        0 12px 40px rgba(201, 161, 59, 0.12);
}

.mc-hero__inner {
    max-width: var(--container);
    margin-inline: auto;
}

.mc-hero__head {
    text-align: center;
    margin: 0 0 clamp(12px, 2.4vw, 20px);
}

.mc-hero__title {
    max-width: 920px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(32px, 4.8vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.mc-hero__title em {
    font-style: italic;
    color: var(--brand);
}

/* Team photo — sits in the centre of the stage, flanked by the lede (left)
   and the experience badge (right). Blends into the cream bowl. */
.mc-hero__media {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.mc-hero__media-img {
    display: block;
    width: 100%;
    height: auto;
    /* The JPEG already carries the bowl backdrop (rgb 249,249,220),
       so the team appears to stand inside the bowl with no visible frame. */
}

/* Soft fade at the bottom in the exact bowl colour so the photo's lower
   crop edge dissolves into the bowl instead of showing a hard line. */
.mc-hero__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 30%;
    background: linear-gradient(to bottom,
        rgba(249, 249, 220, 0) 0%,
        rgba(249, 249, 220, 0.85) 62%,
        rgba(249, 249, 220, 1) 100%);
    pointer-events: none;
}

.mc-hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 33vw, 480px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 36px);
    align-items: center;
    margin-top: clamp(0px, 1vw, 10px);
}

.mc-hero__col--left {
    text-align: left;
}

.mc-hero__lede {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
    max-width: 34ch;
}

.mc-hero__col--center {
    display: flex;
    justify-content: center;
}

.mc-hero__portrait-ring {
    position: relative;
    width: min(100%, 300px);
    aspect-ratio: 1;
    padding: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold) 0%, rgba(201, 161, 59, 0.25) 55%, var(--brand) 100%);
    box-shadow: var(--shadow-raised);
}

.mc-hero__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--fill);
    background-image: url("/careers/assets/images/hero-team.png");
    background-size: cover;
    background-position: center 28%;
    border: 4px solid #fff;
    box-sizing: border-box;
}

.mc-hero__exp-badge {
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    background: var(--fill);
    border: 1px solid rgba(201, 161, 59, 0.45);
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: 280px;
    margin-left: auto;
}

.mc-hero__exp-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--gold);
}

.mc-hero__exp-stars svg {
    display: block;
}

.mc-hero__exp-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 6px;
    line-height: 1.25;
}

.mc-hero__exp-num {
    display: block;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--brand);
}

.mc-hero__exp-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-weak);
}

.mc-hero__cta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 20px;
    margin-top: clamp(16px, 3vw, 28px);
    margin-bottom: clamp(-12px, -2vw, -8px);
    position: relative;
    z-index: 2;
}

.mc-hero__cta-primary {
    border-radius: 999px;
    padding: 14px 32px;
}

.mc-hero__cta-secondary {
    border-radius: 999px;
    padding: 14px 32px;
    border-width: 1.5px;
}

.mc-hero__stats-wrap {
    position: relative;
    z-index: 1;
    margin-top: clamp(20px, 4vw, 36px);
    padding: 0 var(--pad-x) 8px;
}

.mc-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 3vw, 22px);
}

.mc-hero .mc-stat {
    padding: clamp(16px, 3vw, 22px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mc-hero .mc-stat__num {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    color: #fff;
    display: block;
}

.mc-hero .mc-stat__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1024px) {
    /* First screen = fold only; stats sit below scroll */
    .mc-hero {
        min-height: 0;
        padding: clamp(6px, 2vw, 14px) 0 0;
        background-color: var(--brand-dark);
    }

    .mc-hero__fold {
        background: var(--mc-hero-gradient);
        display: flex;
        flex-direction: column;
        padding-bottom: clamp(14px, 3.5vw, 22px);
        box-sizing: border-box;
    }

    .mc-hero__bowl {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: clamp(24px, 3.8vw, 28px) clamp(14px, 3vw, 24px) clamp(22px, 5vw, 40px);
    }

    .mc-hero__inner {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: clamp(6px, 2vw, 12px);
    }

    .mc-hero__head {
        margin-bottom: clamp(8px, 2.5vw, 16px);
    }

    .mc-hero__title {
        font-size: clamp(26px, 5.2vw, 40px);
    }

    .mc-hero__stage {
        grid-template-columns: 1fr;
        gap: clamp(10px, 3vw, 20px);
        margin-top: 0;
        text-align: center;
    }

    .mc-hero__col--left {
        text-align: center;
        order: 2;
    }

    .mc-hero__col--center {
        order: 1;
    }

    .mc-hero__col--right {
        order: 3;
        display: flex;
        justify-content: center;
    }

    .mc-hero__lede {
        margin-inline: auto;
        max-width: 46ch;
    }

    .mc-hero__portrait-ring {
        width: min(240px, 70vw);
    }

    .mc-hero__exp-badge {
        margin-inline: auto;
        padding: 14px 16px;
        max-width: 260px;
    }

    .mc-hero__exp-num {
        font-size: clamp(24px, 5vw, 32px);
    }

    .mc-hero__cta-bar {
        margin-top: auto;
        margin-bottom: 0;
        padding-top: clamp(8px, 2.5vw, 14px);
        gap: 10px 16px;
    }

    .mc-hero__stats-wrap {
        margin-top: clamp(14px, 3.5vw, 22px);
        padding-bottom: clamp(14px, 4vw, 28px);
    }
}

@media (max-width: 600px) {
    .mc-hero {
        padding-left: 0;
        padding-right: 0;
    }

    .mc-hero__bowl {
        width: calc(100% - 20px);
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border-bottom-right-radius: 50% 44px;
        border-bottom-left-radius: 50% 44px;
        padding: 24px 12px 20px;
    }

    .mc-hero__head {
        margin-bottom: 6px;
    }

    .mc-hero__title {
        font-size: clamp(23px, 7.6vw, 30px);
        line-height: 1.12;
    }

    .mc-hero__lede {
        font-size: 13px;
        line-height: 1.5;
        max-width: 52ch;
    }

    .mc-hero__portrait-ring {
        width: min(200px, 58vw);
        padding: 5px;
    }

    .mc-hero__photo {
        border-width: 3px;
    }

    .mc-hero__exp-badge {
        padding: 12px 12px;
    }

    .mc-hero__exp-stars {
        margin-bottom: 6px;
    }

    .mc-hero__exp-stars svg {
        width: 14px;
        height: 14px;
    }

    .mc-hero__exp-title {
        font-size: 15px;
    }

    .mc-hero__exp-sub {
        font-size: 12px;
    }

    .mc-hero__stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mc-hero__cta-bar {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 8px;
    }

    .mc-hero__cta-primary,
    .mc-hero__cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 22px;
    }
}

/* ——— Filter bar ——— */
.mc-filter-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--stroke-weak);
    border-bottom: 1px solid var(--stroke-weak);
}

.mc-filter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.mc-filter-bar__field {
    flex: 1 1 140px;
    padding: 0 16px;
    min-width: 140px;
}

.mc-filter-bar__rule {
    width: 1px;
    align-self: stretch;
    min-height: 56px;
    background: var(--stroke-weak);
    flex: 0 0 1px;
}

/* Filters placed inside vacancies / job list (full-width toolbar removed from page flow) */
.mc-filter-bar.mc-filter-bar--embedded {
    margin-bottom: clamp(20px, 3vw, 28px);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.mc-filter-bar.mc-filter-bar--embedded .mc-filter-bar__inner {
    padding-left: clamp(12px, 3vw, 24px);
    padding-right: clamp(12px, 3vw, 24px);
}

@media (max-width: 900px) {
    .mc-filter-bar__rule {
        display: none;
    }

    .mc-filter-bar__field {
        flex: 1 1 100%;
        padding: 8px 0;
    }
}

.mc-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.mc-select-wrap {
    position: relative;
}

.mc-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-weak);
    border-bottom: 2px solid var(--text-weak);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.mc-select {
    width: 100%;
    appearance: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-body);
    background: var(--bg-card);
    border: 1.5px solid var(--stroke-weak);
    border-radius: var(--radius-sm);
    padding: 12px 36px 12px 14px;
    cursor: pointer;
}

.mc-select:focus {
    outline: none;
    border-color: var(--brand);
}

/* ——— Sections & job grid ——— */
.mc-section {
    padding: var(--section-pad-y) 0;
}

.mc-section--muted {
    background: var(--fill);
}

.mc-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
/* Header that carries a "View All" action on the right */
.mc-section__head--with-action { align-items: center; }
.mc-section__head-right {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
}
.mc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--brand);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, gap .2s ease, box-shadow .2s ease;
}
.mc-view-all:hover {
    background-color: var(--brand);
    color: var(--bg);
    gap: 10px;
    box-shadow: 0 6px 16px rgba(90, 1, 16, 0.18);
}
.mc-view-all:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.mc-view-all__arrow { transition: transform .2s ease; }
.mc-view-all:hover .mc-view-all__arrow { transform: translateX(3px); }
@media (max-width: 560px) {
    .mc-section__head--with-action { flex-direction: column; align-items: flex-start; }
    .mc-section__head-right { width: 100%; justify-content: space-between; }
}

.mc-h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.mc-h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 28px 0 12px;
}

.mc-link-all {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.mc-link-all:hover {
    text-decoration: underline;
}

.mc-text {
    font-size: 15px;
    color: var(--text-body);
    margin: 0 0 16px;
}

.mc-jobs-empty {
    text-align: center;
    color: var(--text-weak);
    padding: 16px;
}

.mc-job-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 960px) {
    .mc-job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mc-job-grid {
        grid-template-columns: 1fr;
    }
}

.mc-job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
}

.mc-job-card:hover {
    box-shadow: var(--shadow-raised);
}

.mc-job-card--extra {
    display: none;
}

.mc-job-grid.is-expanded .mc-job-card--extra {
    display: flex;
}

.mc-job-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(201, 161, 59, 0.14);
    color: var(--brand);
    margin-bottom: 14px;
}

.mc-job-card__icon svg {
    display: block;
    flex-shrink: 0;
}

.mc-job-card__tag {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    margin: 0;
    border: 1px solid transparent;
}

.mc-job-card__tag--urgent {
    background: rgba(201, 64, 64, 0.12);
    color: var(--color-error);
}

.mc-job-card__tag--new {
    background: rgba(26, 122, 90, 0.12);
    color: var(--color-success);
}

.mc-job-card__tag--muted {
    background: rgba(201, 161, 59, 0.1);
    border: 1px solid rgba(201, 161, 59, 0.38);
    color: var(--text-body);
}

.mc-job-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
}

.mc-job-card__title a {
    color: var(--text-strong);
    text-decoration: none;
}

.mc-job-card__title a:hover {
    color: var(--brand);
}

.mc-job-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mc-pill {
    font-size: 12px;
    color: var(--text-body);
    background: rgba(201, 161, 59, 0.1);
    border: 1px solid rgba(201, 161, 59, 0.42);
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(201, 161, 59, 0.1);
}

.mc-job-card__salary {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 8px;
}

.mc-job-card__req {
    font-size: 13px;
    color: var(--text-weak);
    margin: 0 0 20px;
    flex: 1;
}

/* Job card CTA — bolder label, explicit 1.5px stroke */
.mc-job-card > .mc-btn--outline {
    font-weight: 700;
    letter-spacing: 0.02em;
    border-width: 1.5px;
    border-style: solid;
    border-color: var(--stroke-strong);
}

.mc-show-more-wrap {
    text-align: center;
    margin-top: 28px;
}

/* ——— All-jobs page header ——— */
.mc-jobs-page-header {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--stroke-weak);
    background: var(--bg);
}

.mc-jobs-page-header .mc-breadcrumb {
    margin-bottom: 12px;
}

.mc-jobs-page-header__title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 8px;
}

.mc-jobs-page-header__sub {
    font-size: 15px;
    color: var(--text-weak);
    margin: 0;
}

/* All-jobs grid — all cards always visible */
.mc-job-grid--all .mc-job-card--extra {
    display: flex;
}

/* ——— Benefits teaser ——— */
.mc-benefits-teaser {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* ——— CTA band ——— */
.mc-cta-band {
    background: var(--brand);
    padding: var(--section-pad-y) var(--pad-x);
}

.mc-cta-band__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.mc-cta-band__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.mc-cta-band__sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 24px;
}

/* ——— Ongoing at Mahajana (news carousel) ———
   Beige band (--bg) between maroon CTA and footer; type matches light sections. */
.mc-ongoing__shell {
    background: var(--bg);
    color: var(--text-body);
    padding: var(--section-pad-y) var(--pad-x) calc(var(--section-pad-y) + 8px);
    border-top: 1px solid var(--stroke-weak);
}

/* Shell already applies horizontal page gutters; avoid doubling with .mc-container */
.mc-ongoing__shell > .mc-ongoing__head.mc-container {
    padding-left: 0;
    padding-right: 0;
}

.mc-ongoing__head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
    margin-bottom: 32px;
}

.mc-ongoing__title {
    grid-column: 2;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

.mc-ongoing__nav {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-ongoing__arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--stroke-strong);
    background: var(--bg-card);
    color: var(--text-body);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mc-ongoing__arrow:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
}

.mc-ongoing__arrow:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.mc-ongoing__arrow:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.mc-ongoing__chev {
    display: block;
    margin: 0;
}

.mc-ongoing__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mc-ongoing__viewport::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .mc-ongoing__viewport {
        scroll-behavior: smooth;
    }
}

.mc-ongoing__track {
    list-style: none;
    margin: 0;
    /* Horizontal gutters come from .mc-ongoing__shell; keep only bottom scroll clearance */
    padding: 0 0 6px;
    display: flex;
    gap: 20px;
}

.mc-ongoing__cell {
    flex: 0 0 min(360px, 82vw);
    scroll-snap-align: start;
}

.mc-ongoing-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mc-ongoing-card__link:hover .mc-ongoing-card__title {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--brand);
}

.mc-ongoing-card__link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 6px;
    border-radius: 4px;
}

.mc-ongoing-card__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 0 0 14px;
    background: var(--fill);
    box-shadow: var(--shadow-card);
}

.mc-ongoing-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-ongoing-card__media--brand {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold);
    box-sizing: border-box;
    background: linear-gradient(
        145deg,
        rgba(201, 161, 59, 0.45) 0%,
        var(--brand-hover) 48%,
        var(--brand-dark) 100%
    );
}

.mc-ongoing-card__media--brand .mc-ongoing-card__logo {
    width: min(38%, 132px);
    height: auto;
    max-height: 55%;
    object-fit: contain;
}

.mc-ongoing-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.38;
    color: var(--text-strong);
    margin: 0 0 6px;
}

.mc-ongoing-card__date {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-weak);
    display: block;
}

@media (max-width: 600px) {
    .mc-ongoing__head {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .mc-ongoing__title {
        grid-column: 1;
    }

    .mc-ongoing__nav {
        grid-column: 1;
        justify-self: end;
    }
}

/* ——— Footer ———
   Sticky curtain reveal — same 21st.dev / landing-app Footer.tsx pattern:
   fixed panel + sticky top offset lifts content over the footer until scroll
   exposes it. Column blur/fade handled by .mc-footer-reveal__item + careers.js. */
:root {
    --mc-footer-h: 580px;
}

@media (min-width: 801px) {
    :root {
        --mc-footer-h: 420px;
    }
}

.mc-footer-reveal {
    position: relative;
    width: 100%;
    height: var(--mc-footer-h);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.mc-footer-reveal__panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mc-footer-h);
    background: var(--brand);
    z-index: 10;
}

.mc-footer-reveal__sticky {
    height: 100%;
    overflow-y: auto;
    position: sticky;
    top: calc(100vh - var(--mc-footer-h));
    -webkit-overflow-scrolling: touch;
}

.mc-footer-reveal__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    isolation: isolate;
}

.mc-footer-reveal__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
}

.mc-footer-reveal__glow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mc-footer-reveal__glow-blob--gold {
    left: -80px;
    top: 0;
    width: 420px;
    height: 320px;
    transform: translateY(-50%) rotate(-45deg);
    background: radial-gradient(ellipse, rgba(201, 161, 59, 0.08) 0%, transparent 70%);
    opacity: 0.6;
}

.mc-footer-reveal__glow-blob--brand {
    right: 0;
    bottom: 0;
    width: 320px;
    height: 240px;
    transform: translateY(33%) rotate(12deg);
    background: radial-gradient(ellipse, rgba(90, 1, 16, 0.35) 0%, transparent 70%);
    opacity: 0.5;
}

.mc-footer__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding: 48px var(--pad-x);
    flex: 1 1 auto;
}

@media (max-width: 800px) {
    .mc-footer__main {
        grid-template-columns: 1fr;
    }
}

.mc-footer__lead {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
    margin: 0 0 16px;
}

.mc-footer__social {
    display: flex;
    gap: 12px;
}

.mc-footer__social-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.mc-footer__social-svg {
    display: block;
    flex-shrink: 0;
}

.mc-footer__social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mc-footer__heading {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 16px;
}

.mc-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-footer__list li {
    margin-bottom: 10px;
}

.mc-footer__list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
}

.mc-footer__list a:hover {
    color: var(--gold);
}

.mc-footer__address {
    font-style: normal;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 12px;
}

.mc-footer__contact {
    margin: 0 0 8px;
    font-size: 14px;
}

.mc-footer__contact a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.mc-footer__contact a:hover {
    color: #e6cf73;
}

.mc-footer__bar {
    position: relative;
    z-index: 1;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--brand-dark);
    padding: 16px 0;
}

/* Footer column reveal — mirrors landing AnimatedContainer (blur + slight lift) */
.mc-footer-reveal__item.mc-reveal {
    transform: translate3d(0, -10px, 0);
    filter: blur(4px);
}

.mc-footer-reveal__item.mc-reveal.is-in {
    transform: none;
    filter: none;
}

.mc-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mc-footer__copy {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.mc-footer__legal {
    display: flex;
    gap: 20px;
}

.mc-footer__legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
}

.mc-footer__legal a:hover {
    color: var(--gold);
}

/* ——— Job detail ——— */
.mc-job-page {
    padding: 24px 0 56px;
}

/* Explicit horizontal padding on tablet (≤1024 px) and mobile (≤600 px)
   mc-container already inherits --pad-x; this is a safety override for
   any section that may break out of the container. */
@media (max-width: 1024px) {
    .mc-job-page.mc-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 600px) {
    .mc-job-page.mc-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.mc-job-notfound {
    padding: 48px 0;
}

.mc-breadcrumb {
    font-size: 13px;
    color: var(--text-weak);
    margin-bottom: 24px;
}

.mc-breadcrumb a {
    color: var(--brand);
    text-decoration: none;
}

.mc-breadcrumb__sep {
    margin: 0 8px;
    color: var(--stroke-strong);
}

.mc-job-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    /* stretch (not start) so the aside column matches the tall article column,
       giving the sticky details rail room to pin under the nav while scrolling. */
    align-items: stretch;
}

@media (max-width: 960px) {
    .mc-job-layout {
        grid-template-columns: 1fr;
    }

    /* Sidebar stays below main content on tablet/mobile */
    .mc-job-aside {
        order: unset;
    }

    /* Hide map on tablet/mobile — title is already at top of mc-job-main */
    .mc-map-thumb {
        display: none;
    }
}

/* Job header */
.mc-job-header {
    margin-bottom: 24px;
}

.mc-job-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.mc-dept-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(201, 161, 59, 0.12);
    border: 1px solid rgba(201, 161, 59, 0.48);
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(201, 161, 59, 0.12);
}

.mc-job-header__posted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-weak);
}

.mc-job-h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 16px;
    line-height: 1.15;
}

@media (max-width: 600px) {
    .mc-job-h1 {
        font-size: 28px;
    }
}

.mc-job-lead {
    font-size: 15px;
    color: var(--text-body);
    margin: 0 0 8px;
    line-height: 1.6;
}

/* Section cards */
.mc-section-card {
    background: var(--bg-card);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.mc-section-card:last-child {
    margin-bottom: 0;
}

.mc-section-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mc-section-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.mc-section-card__icon--brand {
    background: rgba(201, 161, 59, 0.16);
    color: var(--brand);
}

.mc-section-card__icon--success {
    background: rgba(26, 122, 90, 0.1);
    color: var(--color-success);
}

.mc-section-card__icon--warning {
    background: rgba(140, 110, 0, 0.1);
    color: var(--color-warning);
}

.mc-section-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.mc-section-card__sub {
    font-size: 13px;
    color: var(--text-weak);
    margin: -12px 0 16px;
}

/* Both checklist and bullets use the same clean bullet-point style */
.mc-checklist,
.mc-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-checklist li,
.mc-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
}

.mc-checklist li:last-child,
.mc-bullets li:last-child {
    margin-bottom: 0;
}

/* Bullet dot in brand colour */
.mc-checklist li::before,
.mc-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.7;
}

/* Benefits grid */
.mc-benefit-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
}

@media (max-width: 560px) {
    .mc-benefit-mini-grid {
        grid-template-columns: 1fr;
    }
}

.mc-benefit-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-weak);
    font-size: 14px;
    color: var(--text-body);
}

.mc-benefit-mini__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brand);
    flex-shrink: 0;
}

.mc-benefit-mini__icon svg {
    display: block;
}

/* Document cards (horizontal row of doc tiles) */
.mc-doc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.mc-doc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 86px;
    padding: 16px 20px;
    box-sizing: border-box;
    background: var(--fill);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Blue * = “If requested” (see legend under grid) */
.mc-if-requested-asterisk {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: var(--if-requested);
}

.mc-if-requested-asterisk--legend {
    position: static;
    font-size: 15px;
    flex-shrink: 0;
}

.mc-doc-if-requested-legend {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
}

.mc-doc-card__icon {
    color: var(--brand);
}

.mc-doc-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.3;
}

/* ——— Sidebar ——— */
.mc-job-aside__sticky {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Desktop: the details rail pins under the nav and renders at its FULL natural
   height so no row is ever clipped. No max-height/overflow clamp here — if the
   rail is ever taller than the viewport, normal page scrolling reveals the
   remainder instead of hiding a row behind an inner scrollbar. */
@media (min-width: 961px) {
    .mc-job-aside__sticky {
        padding-bottom: 4px;
    }
}

/* Quick Apply — one copy of help text: inline on mobile/tablet; tooltip on desktop */
.mc-quick-apply-wrap {
    position: relative;
    width: 100%;
}

/* Mobile / tablet: icon + text under the button */
.mc-quick-apply__info {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-top: 8px;
    padding-top: 2px;
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-weak);
}

.mc-quick-apply__info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 1px;
    color: var(--brand);
}

.mc-quick-apply__info-icon svg {
    display: block;
}

.mc-quick-apply__info-text {
    margin: 0;
}

@media (min-width: 961px) {
    .mc-quick-apply__info {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        z-index: 40;
        display: block;
        margin-top: 0;
        padding: 11px 14px;
        visibility: hidden;
        opacity: 0;
        color: var(--text-body);
        background: var(--bg-card);
        border: 1px solid var(--stroke-strong);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-card);
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    .mc-quick-apply__info-icon {
        display: none;
    }

    .mc-quick-apply-wrap:hover .mc-quick-apply__info,
    .mc-quick-apply-wrap:focus-within .mc-quick-apply__info {
        visibility: visible;
        opacity: 1;
    }
}

/* Map embed — live Google map of the nearest HQ */
.mc-map-thumb {
    position: relative;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e8eee3;
    border: 1px solid var(--stroke-weak);
    box-shadow: var(--shadow-card);
}

.mc-map-thumb__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.mc-map-thumb__label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(30, 10, 13, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mc-map-thumb__label:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* —— Floating apply dock (tablet & mobile) —— */
.mc-apply-dock { display: none; }

@media (max-width: 960px) {
    .mc-apply-dock {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        border-top: 1px solid var(--stroke-weak);
        box-shadow: 0 -8px 24px rgba(30, 10, 13, 0.14);
        transform: translateY(115%);
        opacity: 0;
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
    }
    .mc-apply-dock.is-visible {
        transform: translateY(0);
        opacity: 1;
    }
    .mc-apply-dock .mc-btn { margin: 0; }
    /* Clear space so the in-page button never hides behind the dock */
    .mc-job-page { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
    .mc-apply-dock { transition: opacity 0.2s ease; }
}

/* Info panel (replaces mc-info-rows) */
.mc-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.mc-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--stroke-weak);
}

.mc-info-row--last {
    border-bottom: none;
}

.mc-info-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--fill);
    border-radius: var(--radius-sm);
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}

.mc-info-row dt {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-weak);
    margin: 0 0 3px;
}

.mc-info-row dd {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
}

/* Quick Apply button with icon */
.mc-btn--apply-quick {
    gap: 8px;
}

/* HR card */
.mc-hr-card {
    padding: 16px 20px;
    background: var(--fill);
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-weak);
    font-size: 14px;
}

.mc-hr-card__t {
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-strong);
    font-size: 14px;
}

.mc-hr-card__p {
    margin: 0 0 10px;
    color: var(--text-weak);
    font-size: 13px;
    line-height: 1.5;
}

.mc-hr-card a {
    color: var(--brand);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.mc-hr-card a:hover {
    text-decoration: underline;
}

/* Legacy aliases kept for backward compat */
.mc-info-rows { display: none; }
.mc-doc-list  { display: none; }
.mc-dot       { margin: 0 6px; }
.mc-job-meta-top { font-size: 13px; color: var(--text-weak); margin: 0 0 8px; }
.mc-job-dept { font-weight: 600; color: var(--brand); }

/* ——— Application success screen ——— */
.mc-success {
    max-width: 540px;
    margin: 40px auto 80px;
    text-align: center;
    padding: 56px 32px;
    background: var(--bg-card);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
}

.mc-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(26, 122, 90, 0.1);
    color: var(--color-success);
    margin-bottom: 24px;
}

.mc-success__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 16px;
}

.mc-success__msg {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0 0 12px;
}

.mc-success__sub {
    font-size: 13px;
    color: var(--text-weak);
    margin: 0 0 32px;
}

.mc-success__sub a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.mc-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ——— Apply wizard ——— */
.mc-apply {
    padding: 32px var(--pad-x) 56px;
}

.mc-apply__header {
    position: sticky;
    top: var(--nav-h);
    z-index: 55;
    margin-bottom: 24px;
    /* Break out of .mc-container to full viewport width; content stays aligned via padding */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 12px;
    padding-bottom: 14px;
    padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    /* Opaque page beige only — no blur, no transparency, no blend-through */
    isolation: isolate;
    opacity: 1;
    mix-blend-mode: normal;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgb(249, 249, 220);
    background-image: none;
}

/* Vacancy context above the step indicator — tells the user what they're applying for */
.mc-apply__role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--stroke-weak);
}

.mc-apply__role-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(201, 161, 59, 0.14);
    border: 1px solid rgba(201, 161, 59, 0.4);
    color: var(--brand);
}

.mc-apply__role-icon svg {
    display: block;
}

.mc-apply__role-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.mc-apply__role-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-weak);
}

.mc-apply__role-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
}

.mc-apply__step-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mc-apply__step-bold {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.04em;
}

.mc-apply__step-name {
    font-size: 14px;
    color: var(--text-weak);
}

.mc-progress {
    height: 6px;
    background: var(--stroke-weak);
    border-radius: 999px;
    overflow: hidden;
}

.mc-progress__fill {
    height: 100%;
    width: 33.33%;
    background: var(--brand);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.mc-wizard-step[hidden] {
    display: none !important;
}

.mc-wizard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--stroke-weak);
    padding: 32px;
}

.mc-wizard__title {
    margin-bottom: 24px;
}

.mc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

@media (max-width: 640px) {
    .mc-form-grid {
        grid-template-columns: 1fr;
    }
}

.mc-field--full {
    grid-column: 1 / -1;
}

.mc-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-body);
    background: var(--bg-card);
    border: 1.5px solid var(--stroke-weak);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.mc-input::placeholder {
    color: var(--text-weak);
}

.mc-input:focus {
    outline: none;
    border-color: var(--brand);
}

.mc-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-weak);
    max-width: 48ch;
    display: none;
}

.mc-field-hint.is-visible {
    display: block;
}

.mc-optional {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-weak);
    background: var(--fill);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Required asterisk */
.mc-required {
    color: var(--color-error);
    font-weight: 700;
    margin-left: 2px;
}

/* ——— Shake / vibrate animation (validation errors) ——— */
@keyframes mc-shake {
    0%        { transform: translateX(0); }
    12%       { transform: translateX(-6px); }
    25%       { transform: translateX(5px); }
    37%       { transform: translateX(-5px); }
    50%       { transform: translateX(4px); }
    62%       { transform: translateX(-3px); }
    75%       { transform: translateX(2px); }
    87%       { transform: translateX(-1px); }
    100%      { transform: translateX(0); }
}

/* Input error state — red border */
.mc-input--error,
.mc-select--error {
    border-color: var(--color-error) !important;
    background: rgba(201, 64, 64, 0.04) !important;
}

/* Shake class — added/removed by JS */
.mc-input--shake,
.mc-select--shake,
.mc-selector-grid--shake,
.mc-upload-zone--shake {
    animation: mc-shake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

/* Education selector grid error state */
.mc-selector-grid--error {
    outline: 2px solid var(--color-error);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* ——— CV upload: file-chosen state ——— */
.mc-upload-chosen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(26, 122, 90, 0.06);
    border: 1.5px solid var(--color-success);
    border-radius: var(--radius-sm);
}

.mc-upload-chosen__file {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mc-upload-chosen__icon {
    color: var(--color-success);
    flex-shrink: 0;
}

.mc-upload-chosen__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.mc-upload-chosen__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mc-upload-chosen__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1.5px solid transparent;
    background: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mc-upload-chosen__btn--change {
    border-color: var(--stroke-strong);
    color: var(--text-body);
}

.mc-upload-chosen__btn--change:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.mc-upload-chosen__btn--remove {
    border-color: rgba(201, 64, 64, 0.35);
    color: var(--color-error);
}

.mc-upload-chosen__btn--remove:hover {
    background: rgba(201, 64, 64, 0.08);
}

/* Back button styling */
#wizard-back {
    border: 1.5px solid var(--stroke-strong);
}

.mc-upload__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mc-upload {
    display: block;
    cursor: pointer;
}

.mc-upload__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px;
    border: 1.5px dashed var(--stroke-strong);
    border-radius: var(--radius-sm);
    background: var(--fill);
}

.mc-upload__icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.mc-upload__main {
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 6px;
}

.mc-upload__hint {
    font-size: 12px;
    color: var(--text-weak);
}

.mc-selector-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 640px) {
    .mc-selector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mc-selector-card {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid var(--stroke-weak);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    color: var(--text-body);
    transition: border-color 0.15s, background 0.15s;
}

.mc-selector-card--other {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
}

.mc-selector-card__plus {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    line-height: 0;
}

.mc-selector-card__other-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-education-other-wrap {
    margin-top: 16px;
    max-width: min(100%, 420px);
}

.mc-selector-card:hover {
    border-color: var(--stroke-strong);
}

.mc-selector-card.is-selected {
    border-color: var(--brand);
    background: rgba(201, 161, 59, 0.1);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.mc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 200px;
}

.mc-stepper__btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--stroke-weak);
    background: var(--fill);
    font-size: 20px;
    cursor: pointer;
    color: var(--text-strong);
}

.mc-stepper__btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.mc-stepper__btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mc-stepper__input {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1.5px solid var(--stroke-weak);
    border-left: none;
    border-right: none;
    height: 44px;
    background: var(--bg-card);
}

.mc-review-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mc-review-card {
    padding: 20px;
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-md);
    background: var(--fill);
}

.mc-review-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mc-review-card__t {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text-strong);
}

.mc-link-edit {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.mc-link-edit:hover {
    text-decoration: underline;
}

.mc-review-card__body {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
    white-space: pre-wrap;
}

.mc-check-legal {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
}

.mc-check-legal input {
    margin-top: 4px;
}

.mc-text-weak {
    color: var(--text-weak);
}

.mc-wizard__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--stroke-weak);
}

.mc-wizard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.mc-secure-note {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--text-weak);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   21st.dev-inspired motion layer (Phase 1)
   ============================================================
   Single-observer reveal system, spring easing tokens, magnetic
   CTA, hero gradient mesh, marquee, edge-masked rail, nav state.
   All effects are pure CSS + a tiny shared IntersectionObserver
   in careers.js. No external libraries.
   ------------------------------------------------------------ */

:root {
    --mc-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --mc-spring-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --mc-reveal-duration: 720ms;
    --mc-reveal-stagger: 70ms;
}

/* ——— Reveal primitive ———
   Add .mc-reveal (+ a variant) to any element. JS observer adds
   .is-in once it enters the viewport. Children can opt into
   staggered timing by setting --mc-stagger-i inline. */
.mc-reveal {
    opacity: 0;
    transition:
        opacity var(--mc-reveal-duration) var(--mc-spring),
        transform var(--mc-reveal-duration) var(--mc-spring),
        filter var(--mc-reveal-duration) var(--mc-spring);
    transition-delay: calc(var(--mc-stagger-i, 0) * var(--mc-reveal-stagger));
    will-change: opacity, transform;
}

.mc-reveal--up    { transform: translate3d(0, 28px, 0); }
.mc-reveal--down  { transform: translate3d(0, -22px, 0); }
.mc-reveal--left  { transform: translate3d(-28px, 0, 0); }
.mc-reveal--right { transform: translate3d(28px, 0, 0); }
.mc-reveal--scale { transform: scale(0.94); }
.mc-reveal--blur  { filter: blur(8px); opacity: 0; }

.mc-reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .mc-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ——— Hero gradient mesh & noise ———
   Layered radial / conic gradients add depth without raising the
   maroon brand value too far. Lives behind the existing hero
   composition; existing copy/photo stays untouched. */
.mc-hero__fold {
    position: relative;
    isolation: isolate;
}

.mc-hero__fold::before,
.mc-hero__fold::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Soft gold mesh blooms drifting slowly through the hero. */
.mc-hero__fold::before {
    background:
        radial-gradient(60% 40% at 18% 24%, rgba(201, 161, 59, 0.22), transparent 60%),
        radial-gradient(48% 36% at 82% 18%, rgba(201, 161, 59, 0.12), transparent 65%),
        radial-gradient(70% 60% at 50% 110%, rgba(122, 1, 24, 0.35), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: mc-hero-bloom 18s ease-in-out infinite alternate;
}

/* Subtle film grain layered above the mesh for warmth.
   Uses a tiny inline SVG to avoid an extra HTTP request. */
.mc-hero__fold::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.06;
    mix-blend-mode: overlay;
}

.mc-hero__bowl,
.mc-hero__inner {
    position: relative;
    z-index: 1;
}

@keyframes mc-hero-bloom {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
    100% { transform: translate3d(1.2%, -0.8%, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
    .mc-hero__fold::before { animation: none; }
}

/* ——— Magnetic CTA ———
   JS sets --mx / --my (px offsets relative to the button center)
   while the cursor is near. Falls back to a normal hover when JS
   is disabled or under prefers-reduced-motion. */
.mc-hero__cta-bar .mc-btn {
    transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
    transition:
        transform 260ms var(--mc-spring),
        box-shadow 260ms var(--mc-spring),
        background-color 200ms ease,
        color 200ms ease,
        border-color 200ms ease;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .mc-hero__cta-bar .mc-btn {
        transform: none;
        transition: none;
    }
}

/* ——— Department marquee strip ———
   Sits below the hero CTA bar inside the cream `.mc-hero__bowl`.
   Uses brand-toned text + hairline rules so it reads against the
   bowl background without competing with the hero copy. JS
   duplicates the track in place so the -50% keyframe loops
   without a visible seam. */
.mc-hero__marquee {
    position: relative;
    z-index: 1;
    /* Full-bleed band: sits below the cream bowl and above the stats,
       spanning the hero edge-to-edge on the dark hero backdrop. */
    width: 100%;
    margin: 0;
    padding: 16px 0;
    overflow: hidden;
    /* Hairline rules in light ink so the band reads on the dark hero. */
    border-top: 1px solid rgba(255, 251, 242, 0.14);
    border-bottom: 1px solid rgba(255, 251, 242, 0.14);
    /* Symmetric edge fade so the marquee feels infinite. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.mc-hero__marquee-track {
    display: flex;
    gap: 36px;
    width: max-content;
    animation: mc-marquee 38s linear infinite;
}

.mc-hero__marquee-item {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    /* Light cream ink — readable on the dark hero backdrop. */
    color: rgba(255, 251, 242, 0.82);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.mc-hero__marquee-item::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.85;
    flex-shrink: 0;
}

@keyframes mc-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .mc-hero__marquee-track { animation: none; }
}

@media (max-width: 600px) {
    .mc-hero__marquee {
        margin: 0;
        padding: 14px 0;
    }
    .mc-hero__marquee-item {
        font-size: 11px;
        letter-spacing: 0.16em;
        gap: 12px;
    }
    .mc-hero__marquee-track {
        gap: 28px;
        animation-duration: 28s;
    }
}

/* ——— Job card spring polish ———
   The existing card already declares a transform/shadow
   transition; we upgrade the easing curve and lift distance. */
.mc-job-card {
    transition:
        box-shadow 380ms var(--mc-spring),
        transform 380ms var(--mc-spring),
        border-color 240ms ease;
}

.mc-job-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(201, 161, 59, 0.55);
}

/* When the grid is in revealed state, allow the extra cards to
   slide in just like the original six. */
.mc-job-grid.is-expanded .mc-job-card--extra.mc-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

.mc-job-grid.is-expanded .mc-job-card--extra.mc-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ——— Filter bar polish ———
   Lift the embedded filter bar into a glass shell that matches
   the new motion language. */
.mc-filter-bar.mc-filter-bar--embedded {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(201, 161, 59, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 12px 32px rgba(122, 1, 24, 0.08);
    transition: box-shadow 300ms var(--mc-spring), border-color 240ms ease;
}

.mc-filter-bar.mc-filter-bar--embedded:hover,
.mc-filter-bar.mc-filter-bar--embedded:focus-within {
    border-color: rgba(201, 161, 59, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 18px 44px rgba(122, 1, 24, 0.12);
}

/* ═══════════ Mobile vacancies filter — collapsible gooey "blob" panel ═══════════
   Desktop: filters always shown; the round toggle is hidden.
   Mobile (≤900px): filters collapse behind a funnel toggle placed beside
   "View All". Toggle ↔ panel read as one gooey blob via the #mc-goo SVG filter —
   a connector nub under the icon merges with the panel as it springs open. */
.mc-vac-filter {
    position: relative;
}

.mc-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--brand);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--brand);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-radius 0.45s var(--mc-spring-out),
        transform 0.2s var(--mc-spring-out);
}

.mc-filter-toggle svg {
    display: block;
}

.mc-filter-toggle:hover {
    background: rgba(90, 1, 16, 0.07);
}

.mc-filter-toggle:active {
    transform: scale(0.92);
}

.mc-filter-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.mc-filter-toggle.is-active {
    background: var(--brand);
    color: var(--bg);
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(201, 161, 59, 0.35),
        0 6px 16px rgba(90, 1, 16, 0.22);
    border-radius: 56% 44% 50% 50% / 55% 50% 50% 45%;
}

.mc-filter-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .mc-section__head-right {
        justify-content: flex-end;
        gap: 10px;
    }

    .mc-section__count {
        margin-right: auto;
    }

    .mc-filter-toggle {
        display: inline-flex;
    }

    /* Goo context: connector nub + panel merge into one blob. */
    .mc-vac-filter {
        filter: url(#mc-goo);
        margin-bottom: 0;
    }

    /* Connector nub sits just under the toggle (top-right), bridging icon → panel. */
    .mc-vac-filter::before {
        content: "";
        position: absolute;
        top: -10px;
        right: 8px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--bg-card);
        border: 1.5px solid rgba(201, 161, 59, 0.55);
        transform: scale(0);
        transform-origin: 50% 0;
        transition: transform 0.42s var(--mc-spring-out);
        z-index: 1;
        pointer-events: none;
    }

    /* Collapsed panel */
    .mc-vac-filter .mc-filter-bar.mc-filter-bar--embedded {
        max-height: 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        border-color: transparent;
        background: var(--bg-card);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        transition:
            max-height 0.44s var(--mc-spring),
            opacity 0.3s ease,
            visibility 0.44s,
            margin 0.44s var(--mc-spring);
    }

    .mc-vac-filter .mc-filter-bar.mc-filter-bar--embedded .mc-filter-bar__inner {
        transform: scale(0.55);
        transform-origin: top right;
        opacity: 0;
        transition:
            transform 0.46s var(--mc-spring-out),
            opacity 0.3s ease;
    }

    /* Open state */
    .mc-vac-filter.is-open::before {
        transform: scale(1);
    }

    .mc-vac-filter.is-open .mc-filter-bar.mc-filter-bar--embedded {
        max-height: 640px;
        margin-bottom: clamp(20px, 3vw, 28px);
        opacity: 1;
        visibility: visible;
        border-color: rgba(201, 161, 59, 0.55);
    }

    .mc-vac-filter.is-open .mc-filter-bar.mc-filter-bar--embedded:focus-within {
        box-shadow: none;
    }

    .mc-vac-filter.is-open .mc-filter-bar.mc-filter-bar--embedded .mc-filter-bar__inner {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-filter-toggle,
    .mc-vac-filter::before,
    .mc-vac-filter .mc-filter-bar.mc-filter-bar--embedded,
    .mc-vac-filter .mc-filter-bar.mc-filter-bar--embedded .mc-filter-bar__inner {
        transition: none !important;
    }
}

/* ——— CTA band parallax ———
   JS writes --mc-parallax-y (px) on the inner element each frame.
   Decorative blobs absorb the offset so the heading stays put. */
.mc-cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mc-cta-band::before,
.mc-cta-band::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate3d(0, var(--mc-parallax-y, 0px), 0);
    transition: transform 80ms linear;
    will-change: transform;
}

.mc-cta-band::before {
    left: -160px;
    top: -180px;
    background: radial-gradient(closest-side, rgba(201, 161, 59, 0.42), transparent 70%);
}

.mc-cta-band::after {
    right: -200px;
    bottom: -220px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 70%);
}

.mc-cta-band__inner {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .mc-cta-band::before,
    .mc-cta-band::after {
        transform: none;
        transition: none;
    }
}

/* ——— Ongoing rail edge mask & card refinements ——— */
.mc-ongoing__viewport {
    /* First card sits flush-left (no left fade); only the right edge softens
       so later cards appear to glide out of the rail. */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
}

.mc-ongoing-card__media {
    transition: transform 420ms var(--mc-spring), box-shadow 420ms var(--mc-spring);
}

.mc-ongoing-card__link:hover .mc-ongoing-card__media {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-raised);
}

/* ===========================================================
   Restored homepage footer (plain maroon block).
   The redesign moved the maroon background onto
   .mc-footer-reveal__panel; the reverted footer.php drops that
   sticky-curtain wrapper, so .mc-footer carries the colour again.
   =========================================================== */
.mc-footer {
    background: var(--brand);
    color: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ——— Testimonials (careers homepage) — bowl card + portrait overlap; matches hero bowl radii ——— */
.mc-testimonials {
    background-color: var(--bg);
    padding: var(--section-pad-y) 0 calc(var(--section-pad-y) + 16px);
    border-top: 1px solid var(--stroke-weak);
}

.mc-testimonials__h {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-strong);
    text-align: center;
    margin: 0 0 clamp(28px, 5vw, 44px);
}

.mc-testimonials__carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 2vw, 20px);
    max-width: 1180px;
    margin-inline: auto;
}

.mc-testimonials__nav {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid var(--gold);
    background: var(--bg-card);
    color: var(--brand);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.mc-testimonials__nav:hover {
    background: var(--brand);
    color: var(--bg);
    border-color: var(--gold);
    box-shadow: var(--shadow-raised);
    transform: translateY(-2px);
}

.mc-testimonials__nav:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.mc-testimonials__nav svg {
    display: block;
}

.mc-testimonials__viewport {
    min-width: 0;
    overflow: visible;
}

.mc-testimonials__slide {
    outline: none;
}

.mc-testimonials__slide:not(.is-active) {
    display: none;
}

.mc-testimonials__composition {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: end;
    justify-items: center;
    gap: 0;
    row-gap: 0;
    max-width: min(100%, 760px);
    margin-inline: auto;
    padding: clamp(8px, 1.5vw, 14px) 0 0;
}

.mc-testimonials__photo-stack {
    position: relative;
    z-index: 2;
    width: min(88vw, 380px);
    line-height: 0;
    margin-bottom: clamp(-36px, -6vw, -14px);
}

.mc-testimonials__photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    pointer-events: none;
}

/* Narrower-aspect portraits (650×1024) — scale the stack down ~21% so their
   displayed height matches the first portrait for a consistent carousel size. */
.mc-testimonials__photo-stack.mc-testimonials__photo-stack--sm {
    width: min(70vw, 302px);
}

@media (min-width: 901px) {
    .mc-testimonials__photo-stack.mc-testimonials__photo-stack--sm {
        width: min(59vw, 256px);
    }
}

.mc-testimonials__tail {
    display: none;
    position: absolute;
    z-index: 1;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 30px 22px 0;
    border-color: transparent var(--bg-card) transparent transparent;
    filter: drop-shadow(-3px 6px 10px rgba(201, 161, 59, 0.18));
    pointer-events: none;
}

.mc-testimonials__bowl {
    position: relative;
    z-index: 4;
    margin: 0;
    width: 100%;
    max-width: min(100%, calc(100vw - 48px));
    margin-inline: auto;
    box-sizing: border-box;
    text-align: center;
    background-color: var(--bg-card);
    border: 1.5px solid var(--gold);
    box-shadow: var(--shadow-card), 0 16px 48px rgba(201, 161, 59, 0.12);
    padding: clamp(28px, 4.5vw, 44px) clamp(22px, 3.5vw, 40px) clamp(32px, 5vw, 52px);
    /* Same bowl underside as .mc-hero__bowl */
    border-top-left-radius: clamp(24px, 5vw, 40px);
    border-top-right-radius: clamp(24px, 5vw, 40px);
    border-bottom-right-radius: 50% clamp(56px, 11vw, 140px);
    border-bottom-left-radius: 50% clamp(56px, 11vw, 140px);
}

.mc-testimonials__mark {
    position: absolute;
    top: clamp(4px, 1.5vw, 12px);
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    line-height: 0.85;
    color: var(--gold);
    opacity: 0.28;
    pointer-events: none;
    user-select: none;
}

.mc-testimonials__quote {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin-top: 0;
    margin-right: auto;
    margin-bottom: clamp(16px, 2.5vw, 22px);
    margin-left: auto;
    padding-top: clamp(12px, 2vw, 20px);
    text-align: center;
    max-width: 52ch;
}

.mc-testimonials__attr {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-weak);
    text-align: center;
}

.mc-testimonials__attr strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
    text-align: center;
}

@media (min-width: 901px) {
    .mc-testimonials__composition {
        max-width: min(100%, 646px);
    }

    .mc-testimonials__photo-stack {
        width: min(75vw, 323px);
        margin-bottom: clamp(-31px, -5.1vw, -12px);
    }

    .mc-testimonials__bowl {
        padding: clamp(24px, 3.8vw, 37px) clamp(19px, 3vw, 34px) clamp(27px, 4.25vw, 44px);
        border-top-left-radius: clamp(20px, 4.25vw, 34px);
        border-top-right-radius: clamp(20px, 4.25vw, 34px);
        border-bottom-right-radius: 50% clamp(48px, 9.35vw, 119px);
        border-bottom-left-radius: 50% clamp(48px, 9.35vw, 119px);
    }

    .mc-testimonials__mark {
        font-size: clamp(3rem, 10.2vw, 4.675rem);
    }

    .mc-testimonials__quote {
        font-size: clamp(15px, 2.04vw, 20px);
        padding-top: clamp(10px, 1.7vw, 17px);
        margin-bottom: clamp(14px, 2.1vw, 19px);
    }

    .mc-testimonials__attr {
        font-size: 12px;
    }

    .mc-testimonials__attr strong {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .mc-testimonials__carousel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: clamp(14px, 3vw, 20px) clamp(20px, 8vw, 48px);
        max-width: 100%;
    }

    .mc-testimonials__viewport {
        grid-column: 1 / -1;
        grid-row: 1;
        overflow: visible;
        width: 100%;
    }

    .mc-testimonials__nav--prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        align-self: center;
    }

    .mc-testimonials__nav--next {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        align-self: center;
    }

    .mc-testimonials__nav {
        width: 44px;
        height: 44px;
    }

    .mc-testimonials__bowl {
        max-width: min(100%, calc(100vw - 24px));
        padding: clamp(24px, 5vw, 36px) clamp(16px, 4.5vw, 22px) clamp(28px, 6vw, 40px);
    }

    .mc-testimonials__quote {
        font-size: clamp(16px, 4.2vw, 20px);
        padding-top: clamp(18px, 5vw, 26px);
        max-width: none;
    }

    .mc-testimonials__attr {
        font-size: 13px;
    }

    .mc-testimonials__attr strong {
        font-size: 16px;
    }

    .mc-testimonials__mark {
        font-size: clamp(3rem, 14vw, 4.2rem);
    }
}

/* ===========================================================
   Responsive hardening (mobile / tablet)
   Flex & grid items default to min-width:auto, so a single
   wide child (marquee track, grid track, long word) can force
   the hero wider than the viewport and shove its content
   off-screen — which also stops the IntersectionObserver from
   ever revealing those blocks. Allow them to shrink, and clip
   any stray horizontal overflow at the page level.
   =========================================================== */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

.mc-hero__fold,
.mc-hero__bowl,
.mc-hero__inner,
.mc-hero__head,
.mc-hero__stage,
.mc-hero__col,
.mc-hero__col--left,
.mc-hero__col--center,
.mc-hero__col--right {
    min-width: 0;
}

.mc-hero__title {
    overflow-wrap: break-word;
}

/* ===========================================================
   Mobile / tablet hero failsafe (<=1024px)
   The bowl hero's flex fold + 100vh min-height + JS reveals
   proved fragile on narrow viewports (content displaced /
   stuck hidden). Re-assert a simple, non-overflowing,
   single-column layout and guarantee hero content is visible
   even if the IntersectionObserver never fires for it.
   =========================================================== */
@media (max-width: 1024px) {
    .mc-hero { overflow: visible; }

    .mc-hero__fold {
        display: block;
        min-height: 0;
    }

    .mc-hero__bowl {
        display: block;
        width: auto;
        max-width: 100%;
        margin-inline: 12px;
        box-sizing: border-box;
    }

    .mc-hero__inner {
        display: block;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mc-hero__stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mc-hero__col,
    .mc-hero__col--left,
    .mc-hero__col--center,
    .mc-hero__col--right {
        width: 100%;
        max-width: 100%;
    }

    .mc-hero__cta-bar {
        margin-top: 20px;
        margin-bottom: 0;
    }

    .mc-hero .mc-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Apply Now modal — nav CTA overlay (design-system tokens)
   ═══════════════════════════════════════════════════════════════ */
.mc-btn--pill { border-radius: 999px; }

.mc-apply-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(12px, 3vw, 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mc-apply-modal[hidden] { display: none; }

.mc-apply-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 4, 8, 0.62);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    backdrop-filter: blur(8px) saturate(115%);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.mc-apply-modal.is-open .mc-apply-modal__backdrop { opacity: 1; }

.mc-apply-modal__dialog {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: minmax(0, 1fr);
    width: min(960px, 100%);
    margin: auto;
    max-height: calc(100dvh - clamp(24px, 6vw, 64px));
    background: var(--bg-card);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(18, 4, 8, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.3s ease, transform 0.32s cubic-bezier(.2, .7, .2, 1);
}
.mc-apply-modal.is-open .mc-apply-modal__dialog { opacity: 1; transform: none; }

.mc-apply-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.25s ease;
}
.mc-apply-modal__close:hover { background: rgba(0, 0, 0, 0.42); transform: rotate(90deg); }

/* —— Left aside (maroon) —— */
.mc-apply__aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(28px, 3vw, 44px);
    background: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #f7e9ea;
    overflow-y: auto;
}
.mc-apply__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 7px 14px;
    border: 1px solid rgba(201, 161, 59, 0.55);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.mc-apply__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.mc-apply__headline {
    margin: 20px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
}
.mc-apply__lede {
    margin: 14px 0 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(247, 233, 234, 0.8);
}
.mc-apply__steps {
    list-style: none;
    margin: clamp(22px, 3vw, 32px) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mc-apply__step { display: flex; gap: 14px; align-items: flex-start; }
.mc-apply__step-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}
.mc-apply__step-text h3 {
    margin: 3px 0 4px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.mc-apply__step-text p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.55;
    color: rgba(247, 233, 234, 0.72);
}
.mc-apply__aside-foot { margin-top: auto; padding-top: 24px; }
.mc-apply__aside-foot-q { margin: 0 0 4px; font-family: var(--font-body); font-size: 13px; color: rgba(247, 233, 234, 0.7); }
.mc-apply__aside-foot-link { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--gold); text-decoration: none; }
.mc-apply__aside-foot-link:hover { text-decoration: underline; }

/* —— Right form column —— */
.mc-apply__form-col {
    min-height: 0;
    padding: clamp(26px, 3vw, 40px);
    background: var(--bg);
    overflow-y: auto;
}
.mc-apply-form { display: flex; flex-direction: column; gap: 16px; }
.mc-apply-form .mc-form-grid { gap: 16px 18px; }
.mc-apply-form__textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.mc-apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mc-apply-form__file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}
.mc-apply-form__file-icon { display: inline-flex; color: var(--brand); }
.mc-apply-form__file-name {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-apply-form__file-remove {
    flex: none;
    border: none;
    background: none;
    color: var(--color-error);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.mc-apply-form__file-remove:hover { text-decoration: underline; }
.mc-apply-form__legal { margin: 2px 0 0; font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--text-weak); }
.mc-apply-form__feedback {
    margin: 0;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
}
.mc-apply-form__feedback--error { background: rgba(201, 64, 64, 0.1); color: var(--color-error); }
.mc-apply-form__submit { margin-top: 4px; }
.mc-apply-form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: clamp(34px, 6vw, 70px) 12px;
}
.mc-apply-form__success-icon { color: var(--color-success); }
.mc-apply-form__success h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--text-strong); }
.mc-apply-form__success p { margin: 0 0 14px; font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--text-body); max-width: 42ch; }

body.mc-apply-open { overflow: hidden; }

@media (max-width: 760px) {
    .mc-apply-modal__dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }
    .mc-apply__aside { padding: 24px; min-height: 0; overflow: visible; }
    .mc-apply__form-col { overflow: visible; }
    .mc-apply__steps,
    .mc-apply__aside-foot { display: none; }
}
