/* --------- TALENT TABS (animated pill switcher) --------- */
.talent-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0 auto var(--space-5);
    background: rgba(255,255,255,.7);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.talent-tabs-wrap { display: flex; justify-content: center; }
.talent-tab {
    background: transparent;
    color: var(--c-text-muted);
    border: 0;
    border-radius: 999px;
    padding: 7px 18px;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 220ms var(--ease), background 220ms var(--ease), transform 180ms var(--ease-out);
    position: relative; z-index: 1;
}
.talent-tab:hover    { color: var(--c-text); }
.talent-tab:active   { transform: scale(.96); }
.talent-tab.is-active {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff;
    box-shadow: 0 6px 16px rgba(30,126,124,.28);
}

/* Crossfade between tab panels with a tiny lift, plus per-card stagger. */
.talent-panels { position: relative; min-height: 240px; }
.talent-grid[data-talent-panel] {
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
    opacity: 1; transform: none;
}
.talent-grid[data-talent-panel][hidden] {
    display: grid !important;
    opacity: 0; transform: translateY(14px) scale(.985);
    pointer-events: none;
    position: absolute; inset: 0; width: 100%;
}
/* Per-card stagger: each card fades + lifts in. */
.talent-grid[data-talent-panel]:not([hidden]) .talent-card {
    animation: cardIn 480ms var(--ease-out) both;
    will-change: transform, opacity;
}
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(1) { animation-delay:  40ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(2) { animation-delay: 100ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(3) { animation-delay: 160ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(4) { animation-delay: 220ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(5) { animation-delay: 280ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(6) { animation-delay: 340ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(7) { animation-delay: 400ms; }
.talent-grid[data-talent-panel]:not([hidden]) .talent-card:nth-child(8) { animation-delay: 460ms; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .talent-grid[data-talent-panel] .talent-card { animation: none; }
}
/* =====================================================================
   Matendo Medics — pages.css
   Page-specific styles: hero, features, talent, careers, profile, etc.
   ===================================================================== */

/* --------- HERO ---------
   Shared by .hero (home) and .hero-compact (about/contact/legal/etc.)
   so every page has the same gradient backdrop and floating colour blobs. */
.hero,
.hero-compact {
    position: relative; isolation: isolate;
    background:
        radial-gradient(80% 70% at 10% 5%,  rgba(52,179,174,.42), transparent 65%),
        radial-gradient(75% 65% at 95% 92%, rgba(255,186,8,.24),  transparent 70%),
        linear-gradient(180deg, #e6faf5 0%, #ffffff 100%);
    overflow: hidden;
}
.hero::before, .hero::after,
.hero-compact::before, .hero-compact::after {
    content: ""; position: absolute; border-radius: 50%;
    pointer-events: none; z-index: -1;
    filter: blur(80px); opacity: .75;
}
.hero::before, .hero-compact::before {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--c-primary-light), transparent 70%);
    top: -90px; left: -110px;
    animation: floatA 14s ease-in-out infinite;
}
.hero::after, .hero-compact::after {
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--c-accent), transparent 70%);
    bottom: -140px; right: -160px;
    animation: floatB 18s ease-in-out infinite;
}
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 20px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, -25px); } }

/* Hero (home) — full split layout with image. */
.hero { padding: clamp(92px, 9vw, 120px) var(--gutter) clamp(28px, 3vw, 48px); }

/* Hero-compact — centred narrow header for inner pages. */
.hero-compact {
    padding: clamp(96px, 10vw, 140px) var(--gutter) clamp(32px, 4vw, 56px);
    text-align: center;
}
.hero-compact .hero-content { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.hero-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5);
    align-items: center;
}
.hero-compact .hero-content { grid-template-columns: 1fr; }

/* Inner-page variant: image on the LEFT, copy on the RIGHT.
   Used on hire, join and careers heroes. */
.hero-content.hero-flip { grid-template-columns: 1fr 1.2fr; }
.hero-content.hero-flip .hero-art  { grid-column: 1; margin-left: clamp(24px, 4vw, 72px); margin-right: auto; }
.hero-content.hero-flip .hero-text { grid-column: 2; }

.hero-text .eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-2);
    background: rgba(255,255,255,.7); color: var(--c-primary);
    padding: 6px 14px;
    border: 1px solid rgba(30,126,124,.18);
    border-radius: 999px;
    font-size: .85rem; font-weight: 600;
    margin-bottom: var(--space-4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-text .eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-primary-light); box-shadow: 0 0 0 4px rgba(52,179,174,.25);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(52,179,174,.25); }
    50%     { box-shadow: 0 0 0 8px rgba(52,179,174,.05); }
}
.lede {
    font-size: clamp(.92rem, .85rem + .25vw, 1.02rem);
    color: var(--c-text-muted);
    line-height: 1.6; max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

.trust-bar {
    display: flex; flex-wrap: wrap; gap: var(--space-5);
    list-style: none; padding: 0; margin-top: var(--space-5);
    color: var(--c-text-muted);
    font-size: .85rem;
}
.trust-bar li strong { color: var(--c-text); font-size: 1.15rem; display: block; letter-spacing: -.02em; }

/* HERO STAGE — clean photo with crossfading featured talent + floating profile card.
   Restores the previous compact look: light, rotated, dashed ring, no dark overlay. */
.hero-image {
    position: relative;
    width: 100%;
    max-width: 220px;
    /* Push leftward inside its grid cell so the photo sits closer to the text. */
    margin-left: auto; margin-right: clamp(24px, 4vw, 72px);
    aspect-ratio: 4 / 5;
}
/* Register --ring-color as an animatable <color> so transitions fire smoothly
   when JS swaps the variable on each slide change. Without @property the swap
   is instantaneous (transitions through unregistered custom properties don't fire). */
@property --ring-color {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(30, 126, 124, .55);
}

/* Spinning dashed ring — only decoration; bottom fades into the page. */
.hero-image { --ring-color: rgba(30, 126, 124, .55); transition: --ring-color 700ms var(--ease-out); }
.hero-image::before {
    content: ""; position: absolute; inset: -10px;
    border: 2px dashed var(--ring-color);
    border-radius: var(--radius-xl);
    pointer-events: none;
    animation: spin 60s linear infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stage {
    position: absolute; inset: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: transform 600ms var(--ease-out);
}

/* Bottom fade so the photo melts into the page — applied to the IMG only,
   so the floating profile card stays fully opaque. */
.hero-slide img {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

.hero-slide {
    position: absolute; inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms var(--ease-out), transform 1400ms var(--ease-out);
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.hero-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
}

/* Floating profile card — clickable link, extends slightly BELOW the photo,
   glassy translucent so the page background bleeds through. */
.hero-slide-card {
    position: absolute; left: 14px; bottom: -28px;
    z-index: 3;
    background: rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
            backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 12px;
    padding: 7px 34px 7px 12px;        /* extra right pad for the arrow */
    width: max-content;
    max-width: calc(100% - 28px);
    text-decoration: none;
    color: inherit;
    display: grid; grid-template-columns: 1fr;
    grid-template-areas: "status" "name" "spec";
    gap: 1px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 600ms var(--ease-out) 180ms,
                opacity 500ms var(--ease) 180ms,
                background 220ms var(--ease),
                box-shadow 220ms var(--ease);
}
.hero-slide.is-active .hero-slide-card {
    transform: translateY(0);
    opacity: 1;
}
.hero-slide-card:hover {
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    text-decoration: none;
}
.hero-slide-card:hover .hero-slide-arrow { transform: translateX(3px); color: var(--c-primary); }

.hero-slide-status {
    grid-area: status;
    color: var(--c-success); font-weight: 700; font-size: .58rem;
    letter-spacing: .1em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 5px;
    margin-bottom: 1px;
}
.hero-slide-status i { font-size: .5rem; animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot {
    0%,100% { opacity: 1; }
    50%     { opacity: .35; }
}
.hero-slide-card strong  { grid-area: name; font-size: .85rem; color: var(--c-text); letter-spacing: -.01em; line-height: 1.2; }
.hero-slide-spec         { grid-area: spec; font-size: .7rem;  color: var(--c-text-muted); line-height: 1.2;
                           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-slide-arrow {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-muted); font-size: .7rem;
    transition: transform 220ms var(--ease-out), color 220ms var(--ease);
}
.hero-slide-card:hover .hero-slide-arrow {
    /* Override the centring transform for the slide effect. */
    transform: translateY(-50%) translateX(3px);
}

@media (min-width: 1100px) {
    .hero-image, .hero-art { max-width: 260px; }
}
@media (max-width: 920px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text .lede { margin-left: auto; margin-right: auto; }
    .hero-actions, .trust-bar { justify-content: center; }
    .hero-image, .hero-art { display: none; }
    /* When the hero-flip variant collapses, drop the explicit grid-column
       overrides so the text sits in the natural single-column flow
       (otherwise it would still try to land in column 2, leaving a phantom
       empty column 1 and making the page look broken). */
    .hero-content.hero-flip { grid-template-columns: 1fr; }
    .hero-content.hero-flip .hero-text,
    .hero-content.hero-flip .hero-art { grid-column: auto; }
}

/* Phone: pull hero copy right under the now-compact navbar (no wasted band). */
@media (max-width: 720px) {
    .hero          { padding-top: 60px; padding-bottom: var(--space-5); }
    .hero-compact  { padding-top: 68px; padding-bottom: var(--space-5); }
    body[data-page="hire"] .hero { padding-top: 60px; padding-bottom: var(--space-4); }
}

/* --------- HERO ART — static visual for inner-page heroes (no carousel) --------- */
.hero-art {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin-left: auto; margin-right: clamp(24px, 4vw, 72px);
    aspect-ratio: 4 / 5;
    --ring-color: rgba(30, 126, 124, .55);
}
.hero-art::before {
    content: ""; position: absolute; inset: -10px;
    border: 2px dashed var(--ring-color);
    border-radius: var(--radius-xl);
    pointer-events: none;
    animation: spin 60s linear infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}
.hero-art img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}
/* Brand-mark variant: centered logo with soft halo, no fade.
   Used by legal/auth pages where a person photo isn't appropriate. */
.hero-art.is-mark::before {
    border-color: rgba(30, 126, 124, .35);
}
.hero-art.is-mark {
    background: radial-gradient(circle at center, rgba(52, 179, 174, .22), transparent 70%);
    border-radius: var(--radius-xl);
}
.hero-art.is-mark img {
    object-fit: contain;
    width: 62%; height: 62%; inset: 19%;
    -webkit-mask-image: none; mask-image: none;
    filter: drop-shadow(0 6px 16px rgba(15, 79, 77, .18));
}

/* --------- BRAND-LOGO TRUST BAR --------- */
.brand-bar {
    border-top: 1px solid var(--c-border-soft);
    border-bottom: 1px solid var(--c-border-soft);
    background: #fff;
}
.brand-bar .container {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: var(--space-6);
    padding-top: var(--space-4); padding-bottom: var(--space-4);
}
.brand-bar .label {
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--c-text-soft); font-weight: 600; margin: 0;
}
.brand-bar ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
}
.brand-bar li {
    color: var(--c-text-muted); font-weight: 700; font-size: .92rem;
    letter-spacing: -.01em; opacity: .55;
    transition: opacity 200ms var(--ease), color 200ms var(--ease);
}
.brand-bar li:hover { opacity: 1; color: var(--c-text); }

/* --------- FEATURES / CARDS --------- */
.features-grid {
    display: grid; gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
    position: relative; overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.feature-card::after {
    content: ""; position: absolute; inset: auto -40% -60% auto;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(52,179,174,.18), transparent 70%);
    opacity: 0; transition: opacity 380ms var(--ease-out);
    pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d6e2e1; }
.feature-card:hover::after { opacity: 1; }
.feature-card i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--c-bg-soft); color: var(--c-primary);
    font-size: 1rem; margin-bottom: var(--space-2);
    transition: transform 320ms var(--ease-out), background 320ms var(--ease);
}
.feature-card:hover i { transform: scale(1.08) rotate(-4deg); background: var(--c-primary); color: #fff; }
.feature-card h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.feature-card p  { color: var(--c-text-muted); margin: 0; font-size: .88rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: var(--space-2); padding: 2px 0; color: var(--c-text); }
.check-list i  { color: var(--c-success); margin-top: 4px; }
/* Inline icon for check-list items — smaller, no chip background. */
.check-list li > i:first-child {
    width: auto; height: auto; background: transparent;
    margin: 4px 0 0 0; font-size: .8rem;
}

/* --------- STEPS --------- */
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: var(--space-6);
    position: relative; overflow: hidden;
    transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps li::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: linear-gradient(180deg, var(--c-primary), var(--c-primary-light));
    transform: scaleY(0); transform-origin: top;
    transition: transform 380ms var(--ease-out);
}
.steps li:hover::before { transform: scaleY(1); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff;
    font-weight: 800; margin-bottom: var(--space-3);
    box-shadow: 0 6px 14px rgba(30,126,124,.3);
    font-size: .92rem;
}
.steps li h3 { margin: 0 0 var(--space-2); }
.steps li p  { color: var(--c-text-muted); margin: 0; }

/* --------- WHY SECTION (audience switcher + expandable cards) --------- */
.why-section .section-title { margin-bottom: var(--space-2); }

.why-switch-wrap { display: flex; justify-content: center; margin-bottom: var(--space-6); }
.why-switch {
    display: inline-flex; gap: 4px; padding: 4px;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
.why-tab {
    background: transparent; color: var(--c-text-muted);
    border: 0; border-radius: 999px;
    padding: 9px 22px;
    font: inherit; font-size: .92rem; font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 220ms var(--ease), background 220ms var(--ease), transform 180ms var(--ease-out);
}
.why-tab i { font-size: .92rem; }
.why-tab:hover  { color: var(--c-text); }
.why-tab:active { transform: scale(.96); }
.why-tab.is-active {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff;
    box-shadow: 0 6px 16px rgba(30,126,124,.28);
}
.why-tab.is-active i { color: #fff; }

.why-panel {
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
    opacity: 1; transform: none;
}
.why-panel[hidden] {
    display: block !important;
    opacity: 0; transform: translateY(10px);
    pointer-events: none;
    height: 0; overflow: hidden;
}

/* Expandable detail text inside feature cards. */
.feature-card .feature-long {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--c-text-muted);
    font-size: .85rem;
    transition: max-height 380ms var(--ease-out), margin 380ms var(--ease), opacity 280ms var(--ease);
}
.why-panel.is-expanded .feature-card .feature-long {
    max-height: 200px;
    margin-top: var(--space-2);
    opacity: 1;
}
.why-panel.is-expanded .feature-card .feature-short { color: var(--c-text); font-weight: 500; }

.why-actions {
    display: flex; justify-content: center; gap: var(--space-3);
    margin-top: var(--space-5); flex-wrap: wrap;
}
.why-actions [data-why-toggle] i { transition: transform 280ms var(--ease-out); }
.why-panel.is-expanded .why-actions [data-why-toggle] i { transform: rotate(180deg); }

/* --------- FEATURED TOOLBAR (toggle button above the section) --------- */
.featured-toolbar {
    display: flex; justify-content: flex-end;
    max-width: var(--container);
    margin: 0 auto var(--space-3);
}
.featured-toolbar .btn { gap: 6px; }

/* --------- AUTO-SCROLL MARQUEE --------- */
.talent-scroller {
    position: relative;
    overflow: hidden;
    /* Fade the edges so cards softly enter/leave the viewport. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.talent-scroll-track {
    display: flex;
    /* IMPORTANT: no flex `gap` here — the trailing spacing must be part
       of each card's box, otherwise translateX(-50%) lands a half-gap
       off the duplicated copy and the loop visibly seams. */
    width: max-content;
    animation: talentScroll 90s linear infinite;
    padding: var(--space-3) 0;
    will-change: transform;
}
.talent-scroller:hover .talent-scroll-track,
.talent-scroller:focus-within .talent-scroll-track { animation-play-state: paused; }
.talent-scroll-track .talent-card {
    flex: 0 0 220px;
    margin-right: var(--space-4);    /* uniform trailing spacing → perfect 50% alignment */
    /* No card entrance animation in marquee — they're already moving. */
    animation: none !important;
}
@keyframes talentScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .talent-scroll-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* --------- TALENT GRID (compact, animated, dynamic) --------- */
.talent-grid {
    display: grid; gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: var(--space-5);
}
.talent-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 380ms var(--ease-out),
                box-shadow 380ms var(--ease-out),
                border-color 380ms var(--ease-out);
}
.talent-card::after {
    /* Soft accent stripe that grows on hover. */
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light), var(--c-accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform 480ms var(--ease-out);
}
.talent-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30,126,124,.35);
}
.talent-card:hover::after { transform: scaleX(1); }

/* Photo: square frame keeps cards short, image fills via cover. */
.talent-card .talent-photo {
    position: relative; overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #eaf5f4, #d8ecea);
}
.talent-card .talent-photo::before {
    /* Soft top-left highlight inside the frame. */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 50% at 30% 20%, rgba(255,255,255,.6), transparent 70%);
    pointer-events: none; z-index: 1;
}
.talent-card .talent-photo::after {
    /* Bottom darken on hover so the slide-up CTA is readable. */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(10,31,30,.78));
    opacity: 0;
    transition: opacity 380ms var(--ease-out);
}
.talent-card:hover .talent-photo::after { opacity: 1; }

.talent-card img {
    position: relative; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform 800ms var(--ease-out), filter 380ms var(--ease);
}
.talent-card:hover img { transform: scale(1.06); filter: saturate(1.05); }

/* Hover slide-up "View profile" pill (CSS-only). */
.talent-card .talent-photo .view-cta {
    position: absolute; left: 50%; bottom: 12px; z-index: 3;
    transform: translate(-50%, 14px);
    opacity: 0; pointer-events: none;
    background: #fff; color: var(--c-primary);
    padding: 7px 14px; border-radius: 999px;
    font-size: .78rem; font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 380ms var(--ease-out), opacity 320ms var(--ease);
    white-space: nowrap;
}
.talent-card:hover .view-cta {
    transform: translate(-50%, 0);
    opacity: 1; pointer-events: auto;
}

/* Verified badge: GPU-friendly pulse via a scaling ring (transform + opacity only). */
.talent-card .verified-badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(255,255,255,.96); color: var(--c-primary);
    padding: 3px 9px; border-radius: 999px;
    font-size: .68rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(30,126,124,.18);
}
.talent-card .verified-badge::after {
    content: ""; position: absolute; inset: 0;
    border-radius: 999px;
    border: 2px solid var(--c-primary-light);
    animation: badgeRing 2.6s ease-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}
.talent-card .verified-badge i { color: var(--c-primary); }
@keyframes badgeRing {
    0%   { transform: scale(1);    opacity: .55; }
    100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .talent-card .verified-badge::after { display: none; }
}

.talent-info       { padding: var(--space-3) var(--space-4) var(--space-4); }
.talent-info h3    { margin: 0 0 2px; font-size: .95rem; }
.talent-specialty  { color: var(--c-primary); font-weight: 600; margin: 0 0 2px; font-size: .82rem; }
.talent-detail     { color: var(--c-text-muted); font-size: .78rem; margin: 0 0 var(--space-2);
                     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rating: star spins gently, number scales on card hover. */
.rating { color: var(--c-warning); font-weight: 700; margin: 0; font-size: .85rem;
          display: inline-flex; align-items: center; gap: 4px; }
.rating i { transition: transform 380ms var(--ease-out); display: inline-block; }
.talent-card:hover .rating i { transform: rotate(72deg) scale(1.15); }

/* --------- SEARCH BAR --------- */
.search-bar {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto;
    gap: var(--space-3);
    background: #fff;
    padding: var(--space-4);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}
.search-bar .field { margin: 0; }
@media (max-width: 920px) {
    .search-bar { grid-template-columns: 1fr 1fr; }
}

/* --------- JOIN WIZARD --------- */
.wizard {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}
.wizard-header { margin-bottom: var(--space-4); }
.wizard-header h2 { margin-bottom: var(--space-2); }
.wizard-header p  { color: var(--c-text-muted); margin: 0; font-size: .9rem; }

.stepper {
    display: flex; align-items: center; gap: var(--space-2);
    margin: var(--space-4) 0 var(--space-5);
    counter-reset: step;
}
.stepper-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative;
}
.stepper-item::before {
    counter-increment: step;
    content: counter(step);
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-bg-soft); color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    font-weight: 700; font-size: .85rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.stepper-item.is-done::before {
    background: var(--c-primary); color: #fff;
    border-color: var(--c-primary);
    content: "\2713";              /* checkmark when complete */
}
.stepper-item.is-active::before {
    background: var(--c-primary); color: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(30, 126, 124, .15);
}
.stepper-item span {
    font-size: .78rem; font-weight: 600;
    color: var(--c-text-muted);
    text-align: center; line-height: 1.2;
}
.stepper-item.is-active span,
.stepper-item.is-done span { color: var(--c-text); }
.stepper-item:not(:last-child)::after {
    content: ""; position: absolute;
    top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px);
    height: 2px; background: var(--c-border);
    z-index: -1;
}
.stepper-item.is-done:not(:last-child)::after { background: var(--c-primary); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: stepIn 280ms var(--ease-out); }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: none; }
}
.form-step fieldset { margin-bottom: var(--space-3); }
.form-step .field   { margin-bottom: var(--space-3); }

.wizard-actions {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5); padding-top: var(--space-4);
    border-top: 1px solid var(--c-border);
}
.wizard-actions .spacer { flex: 1; }

@media (max-width: 600px) {
    .stepper-item span { display: none; }
    .stepper-item:not(:last-child)::after { left: calc(50% + 16px); right: calc(-50% + 16px); }
}

/* --------- HIRE OPTIONS — typography matched to .feature-card on home --------- */
.hire-options {
    display: grid; gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hire-card {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: var(--space-5);
    text-align: left;
    transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.hire-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6e2e1; }
.hire-card i { font-size: 1.6rem; color: var(--c-primary); margin-bottom: var(--space-2); }
.hire-card h3 { margin-bottom: var(--space-2); }
.hire-card p  { margin-bottom: var(--space-3); }
.hire-card .check-list { margin-bottom: var(--space-3); }

/* Hire page: tighten hero + section gaps so the sparse hero copy
   doesn't leave a gulf above the option cards. */
body[data-page="hire"] .hero {
    padding-top: clamp(80px, 7vw, 100px);
    padding-bottom: clamp(16px, 2vw, 28px);
}
body[data-page="hire"] .hero-content { align-items: start; }
body[data-page="hire"] .section { padding: var(--space-5) 0; }

/* --------- CAREERS --------- */
.careers-grid {
    display: grid; gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.career-card {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: var(--space-5);
}
.career-card header {
    display: flex; justify-content: space-between; gap: var(--space-3);
    align-items: flex-start; margin-bottom: var(--space-3);
}
.career-card .tag {
    background: #e6f4f3; color: var(--c-primary);
    padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    white-space: nowrap;
}
.career-card .meta {
    list-style: none; padding: 0; margin: 0 0 var(--space-3);
    display: flex; flex-wrap: wrap; gap: var(--space-4);
    color: var(--c-text-muted); font-size: .9rem;
}
.career-card .meta i { margin-right: 4px; color: var(--c-primary); }

/* --------- PROFILE --------- */
.profile {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: var(--space-6);
}
.profile-header {
    display: grid; grid-template-columns: 200px 1fr; gap: var(--space-6);
    align-items: center;
    padding-bottom: var(--space-5); margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--c-border);
}
.profile-avatar {
    width: 200px; height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.badges {
    list-style: none; padding: 0; margin: var(--space-3) 0;
    display: flex; flex-wrap: wrap; gap: var(--space-3);
}
.badges li {
    background: #e6f4f3; color: var(--c-primary);
    padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.details {
    display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3);
    margin: 0;
}
.details dt { font-weight: 600; color: var(--c-text-muted); }
.details dd { margin: 0; }

@media (max-width: 720px) {
    .profile-header { grid-template-columns: 1fr; text-align: center; }
    .profile-avatar { margin: 0 auto; }
}

/* --------- STATS / IMPACT --------- */
.stats-grid {
    display: grid; gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: var(--space-5);
}
.stat {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: var(--space-5);
    text-align: center;
    transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6e2e1; }
.stat:hover i { transform: scale(1.1); }
.stat i { font-size: 1.6rem; color: var(--c-primary); margin-bottom: var(--space-2); transition: transform 320ms var(--ease-out); }
.stat strong { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.stat span   { color: var(--c-text-muted); }

/* --------- CONTACT --------- */
.contact-grid {
    display: grid; gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: var(--space-5);
}
.contact-card {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: var(--space-5);
    text-align: center;
}
.contact-card i:first-child { font-size: 1.8rem; color: var(--c-primary); margin-bottom: var(--space-2); }

.faq summary {
    cursor: pointer; padding: var(--space-3) 0;
    font-weight: 600; list-style: none;
    border-bottom: 1px solid var(--c-border);
}
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary { color: var(--c-primary); }
.faq p { padding: var(--space-3) 0; color: var(--c-text-muted); margin: 0; }

/* --------- CTA SECTION --------- */
.cta {
    background:
        radial-gradient(60% 80% at 80% 0%, rgba(52,179,174,.35), transparent 60%),
        radial-gradient(50% 80% at 0% 100%, rgba(255,186,8,.18), transparent 60%),
        linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-2) 50%, var(--c-primary-dark) 100%);
    color: #fff;
    position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p  { color: rgba(255,255,255,.78); max-width: 720px; margin: 0 auto var(--space-5); }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.cta .btn-outline:hover { background: #fff; color: var(--c-primary); border-color: #fff; }

/* --------- TESTIMONIALS CAROUSEL --------- */
.testimonials {
    overflow: hidden; padding: var(--space-7) 0;
}
.testimonial-track {
    display: flex;
    /* No flex gap here — see talent-scroll-track for why. */
    animation: marquee 70s linear infinite;
    width: max-content;
}
.testimonials:hover .testimonial-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.testimonial-card {
    flex: 0 0 360px;
    margin-right: var(--space-5);
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}
.testimonial-card .quote {
    color: var(--c-text); font-size: 1rem; line-height: 1.65;
    margin: 0 0 var(--space-4);
}
.testimonial-card .quote::before {
    content: "“"; display: block;
    font-family: Georgia, serif;
    font-size: 3rem; line-height: .5; color: var(--c-primary-light);
    margin-bottom: var(--space-3);
}
.testimonial-author {
    display: flex; align-items: center; gap: var(--space-3);
}
.testimonial-author img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    background: var(--c-bg-soft);
}
.testimonial-author strong { display: block; color: var(--c-text); }
.testimonial-author span   { color: var(--c-text-muted); font-size: .85rem; }

/* --------- NEWSLETTER --------- */
.inline-form {
    display: flex; gap: var(--space-3);
    max-width: 480px; margin: 0 auto;
}
.inline-form input { flex: 1; }

/* --------- AUTH --------- */
.auth-page .card { margin: var(--space-7) 0; }

/* --------- DASHBOARD --------- */
.action-list { list-style: none; padding: 0; margin: 0; }
.action-list li { border-bottom: 1px solid var(--c-border); }
.action-list li:last-child { border: 0; }
.action-list a {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--c-text);
}
.action-list a:hover { color: var(--c-primary); text-decoration: none; }
.action-list i { color: var(--c-primary); width: 20px; }

/* =====================================================================
   MOBILE UNIFORMITY (≤ 720px)
   ─────────────────────────────────────────────────────────────────────
   Brings every page to the same compact rhythm the home page uses on
   phones: tighter section padding, smaller titles, denser forms, cards
   collapse cleanly to one column, buttons stay thumb-friendly. Anything
   page-specific (hire, join wizard, profile) inherits these and adds
   its own scoped tweak above.
   ===================================================================== */
@media (max-width: 720px) {
    /* Vertical rhythm — every section, regardless of page. */
    .section          { padding: var(--space-5) 0; }
    .section-title    { font-size: clamp(1.15rem, 4.5vw, 1.4rem); margin-bottom: var(--space-2); }
    .section-sub      { font-size: .88rem; padding: 0 var(--space-3); margin-bottom: var(--space-4); }

    /* Container gutters trim a bit so content has more breathing room. */
    .container        { padding: 0 var(--space-4); }

    /* Cards on every page — same denser look as home's feature-card. */
    .card             { padding: var(--space-4); }
    .feature-card     { padding: var(--space-4); }
    .feature-card h3  { font-size: 1rem; }
    .feature-card .feature-short { font-size: .88rem; }

    /* Forms — match the modal-auth density across hire, join, contact. */
    fieldset          { padding: var(--space-3); margin-bottom: var(--space-3); }
    legend            { font-size: .9rem; padding: 0 var(--space-2); }
    .field            { margin-bottom: var(--space-3); }
    .field label      { font-size: .9rem; }
    input, select, textarea { font-size: .92rem; padding: 9px 11px; }
    .form-actions     { gap: var(--space-2); padding-top: var(--space-3); margin-top: var(--space-4); }

    /* Steps grid (home, hire, join, careers) — single column, compact. */
    .steps            { grid-template-columns: 1fr; gap: var(--space-3); }
    .steps li         { padding: var(--space-4); padding-left: var(--space-5); }

    /* Wizard (join) — collapse stepper labels are already handled at 600px;
       here we tighten the wizard chrome to match home. */
    .wizard           { padding: var(--space-4); }
    .wizard-header h2 { font-size: 1.15rem; }
    .stepper          { margin: var(--space-3) 0 var(--space-4); }
    .wizard-actions   { margin-top: var(--space-4); padding-top: var(--space-3); flex-wrap: wrap; }
    .wizard-actions .btn { flex: 1; min-width: 0; }

    /* Hero copy — match home's centred, tight rhythm on every page hero. */
    .hero-text .eyebrow { font-size: .8rem; padding: 4px 12px; margin-bottom: var(--space-3); }
    .hero-text h1     { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    .lede             { font-size: .92rem; line-height: 1.5; }
    .hero-actions .btn-lg { padding: 11px 16px; font-size: .92rem; }
    .trust-bar        { gap: var(--space-3); font-size: .8rem; justify-content: center; }
    .trust-bar li strong { font-size: 1rem; }

    /* Brand bar (home) — wrap tighter. */
    .brand-bar .container { gap: var(--space-3); padding-top: var(--space-3); padding-bottom: var(--space-3); }
    .brand-bar li         { font-size: .82rem; }

    /* CTA + newsletter — same compact treatment everywhere. */
    .cta              { padding: var(--space-6) 0; }
    .cta h2           { font-size: 1.25rem; }
    .cta .hero-actions{ flex-direction: column; align-items: stretch; }
    .cta .hero-actions .btn { width: 100%; }
    .inline-form      { flex-direction: column; gap: var(--space-2); }
    .inline-form .btn { width: 100%; }

    /* Talent + testimonial cards (home) — tighter card paddings keep the
       marquee from feeling oversized on small screens. */
    .talent-scroll-track .talent-card { flex: 0 0 200px; margin-right: var(--space-3); }
    .talent-card .talent-photo { aspect-ratio: 1 / 1; }
    .testimonial-card { flex: 0 0 280px; margin-right: var(--space-3); padding: var(--space-4); }
    .testimonial-card .quote { font-size: .92rem; }

    /* Tabs (talent filter, why audience switcher) — pillows full-width. */
    .talent-tabs, .why-switch { flex-wrap: wrap; justify-content: center; }
    .talent-tab, .why-tab { flex: 1; min-width: 0; }

    /* Profile page (already collapses to 1col above) — denser stats. */
    .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .stats-grid .stat { padding: var(--space-3); }

    /* Generic two-column → one-column safety net for anything custom. */
    .two-col          { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Even tighter on very small phones — keep everything legible. */
@media (max-width: 420px) {
    .container       { padding: 0 var(--space-3); }
    .section-title   { font-size: 1.1rem; }
    .stats-grid      { grid-template-columns: 1fr; }
    .checkboxes label{ padding: 5px 10px; font-size: .85rem; }
}
