/* SPMA Hub Pages: Home Page v1.1.1 */

:root {
    --spma-green: #006837;
    --spma-green-dark: #004e2a;
    --spma-gold: #d5be52;
    --spma-gold-soft: #e9dda4;
    --spma-ink: #0d1511;
    --spma-muted: #5e6862;
    --spma-line: #e6e9e7;
    --spma-wash: #f5f7f6;
    --spma-white: #ffffff;
    --spma-shadow-sm: 0 8px 28px rgba(0, 37, 20, .08);
    --spma-shadow-md: 0 24px 70px rgba(0, 37, 20, .14);
    --spma-radius-sm: 14px;
    --spma-radius-md: 22px;
    --spma-radius-lg: 32px;
    --spma-container: 1240px;
}

.spma-home-page,
.spma-home-page * {
    box-sizing: border-box;
}

.spma-home-page {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: var(--spma-white);
    color: var(--spma-ink);
    font-family: inherit;
}

.spma-home-page img {
    display: block;
    max-width: 100%;
}

.spma-home-page a {
    text-decoration: none;
}

.spma-home-page button,
.spma-home-page a {
    -webkit-tap-highlight-color: transparent;
}

.spma-home-page a:focus-visible,
.spma-home-page button:focus-visible,
.spma-home-page [tabindex]:focus-visible {
    outline: 3px solid var(--spma-gold);
    outline-offset: 4px;
}

.spma-home-container {
    width: min(calc(100% - 48px), var(--spma-container));
    margin: 0 auto;
}

/* Hero */
.spma-home-hero {
    position: relative;
    isolation: isolate;
    padding: 88px 0 0;
    background:
        radial-gradient(circle at 12% 16%, rgba(213, 190, 82, .14), transparent 26%),
        radial-gradient(circle at 88% 86%, rgba(233, 221, 164, .10), transparent 30%),
        linear-gradient(135deg, var(--spma-green-dark) 0%, #003d21 48%, #002f19 100%);
    color: var(--spma-white);
}

.spma-home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34vw;
    min-width: 360px;
    height: 100%;
    background: linear-gradient(180deg, rgba(213, 190, 82, .07), rgba(213, 190, 82, 0));
    clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: -1;
}

.spma-home-hero__texture {
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 86%);
}

.spma-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
}

.spma-home-hero__copy {
    padding: 38px 0 64px;
}

.spma-home-kicker,
.spma-section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--spma-gold-soft);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .17em;
}

.spma-home-kicker span {
    width: 36px;
    height: 2px;
    border-radius: 999px;
    background: var(--spma-gold);
}

.spma-home-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--spma-white);
    font-size: clamp(48px, 5.7vw, 84px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
}

.spma-home-hero h1 span {
    display: block;
    color: var(--spma-gold);
}

.spma-home-hero__lede {
    max-width: 640px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.55;
}

.spma-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.spma-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.spma-button span {
    font-size: 18px;
    transition: transform .25s ease;
}

.spma-button:hover {
    transform: translateY(-2px);
}

.spma-button:hover span {
    transform: translate(2px, -1px);
}

.spma-button--gold {
    background: var(--spma-gold);
    color: #17301f;
    box-shadow: 0 14px 36px rgba(213, 190, 82, .22);
}

.spma-button--gold:hover {
    background: var(--spma-gold-soft);
    color: var(--spma-green-dark);
    box-shadow: 0 18px 42px rgba(213, 190, 82, .30);
}

.spma-button--ghost {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.055);
    color: var(--spma-white);
}

.spma-button--ghost:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.11);
    color: var(--spma-white);
}

.spma-button--dark {
    background: var(--spma-green-dark);
    color: var(--spma-white);
    box-shadow: 0 12px 30px rgba(0, 78, 42, .16);
}

.spma-button--dark:hover {
    background: var(--spma-green);
    color: var(--spma-white);
}

.spma-home-hero__quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.13);
}

.spma-home-hero__quicklinks a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease;
}

.spma-home-hero__quicklinks a:hover {
    color: var(--spma-white);
}

.spma-home-hero__quicklinks span {
    color: var(--spma-gold);
    font-size: 10px;
    font-weight: 900;
}

.spma-home-hero__visual {
    position: relative;
    min-height: 580px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.spma-home-hero__figure {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 32px 32px 8px 32px;
    box-shadow: 0 34px 90px rgba(0,0,0,.32);
}

.spma-home-hero__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,49,26,.32) 100%);
    pointer-events: none;
}

.spma-home-hero__image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.spma-home-hero__gold-block {
    position: absolute;
    z-index: 1;
    right: -30px;
    top: 50%;
    width: 66%;
    height: 72%;
    transform: translateY(-43%);
    border-radius: 28px;
    background: linear-gradient(145deg, var(--spma-gold), var(--spma-gold-soft));
    opacity: .94;
}

.spma-home-hero__stamp {
    position: absolute;
    z-index: 3;
    right: -18px;
    bottom: 42px;
    display: grid;
    place-items: center;
    width: 126px;
    aspect-ratio: 1;
    border: 7px solid var(--spma-green-dark);
    border-radius: 50%;
    background: var(--spma-gold);
    color: var(--spma-green-dark);
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    text-align: center;
    transform: rotate(7deg);
}

.spma-home-hero__stamp::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(0,78,42,.55);
    border-radius: 50%;
}

.spma-home-hero__stamp-top {
    align-self: end;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.spma-home-hero__stamp-bottom {
    align-self: start;
    margin-top: 5px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.spma-home-discovery-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    transform: translateY(42px);
    overflow: hidden;
    border: 1px solid rgba(13,21,17,.08);
    border-radius: 20px;
    background: var(--spma-white);
    box-shadow: var(--spma-shadow-md);
}

.spma-home-discovery-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 25px 28px;
    color: var(--spma-ink);
    transition: background .25s ease, color .25s ease;
}

.spma-home-discovery-card + .spma-home-discovery-card {
    border-left: 1px solid var(--spma-line);
}

.spma-home-discovery-card:hover {
    background: var(--spma-green);
    color: var(--spma-white);
}

.spma-home-discovery-card__number {
    color: var(--spma-gold);
    font-size: 12px;
    font-weight: 900;
}

.spma-home-discovery-card > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.spma-home-discovery-card strong {
    font-size: 17px;
    line-height: 1.15;
    font-weight: 900;
}

.spma-home-discovery-card small {
    color: var(--spma-muted);
    font-size: 12px;
    line-height: 1.4;
}

.spma-home-discovery-card:hover small {
    color: rgba(255,255,255,.72);
}

.spma-home-discovery-card b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--spma-wash);
    color: var(--spma-green-dark);
    font-size: 16px;
    transition: transform .25s ease, background .25s ease;
}

.spma-home-discovery-card:hover b {
    transform: rotate(7deg) scale(1.05);
    background: var(--spma-gold);
}

/* Shared section heading */
.spma-home-section {
    position: relative;
    padding: 118px 0;
}

.spma-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px;
}

.spma-section-heading h2,
.spma-home-jobs h2 {
    margin: 0;
    color: var(--spma-green-dark);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 900;
}

.spma-section-heading .spma-section-eyebrow {
    margin-bottom: 10px;
    color: var(--spma-green);
}

.spma-section-heading__intro {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--spma-muted);
    font-size: 16px;
    line-height: 1.55;
}

.spma-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(0,78,42,.3);
    color: var(--spma-green-dark);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.spma-text-link span {
    transition: transform .2s ease;
}

.spma-text-link:hover {
    border-color: var(--spma-gold);
    color: var(--spma-green);
}

.spma-text-link:hover span {
    transform: translate(2px, -2px);
}

/* Latest */
.spma-home-section--latest {
    padding-top: 150px;
    background: var(--spma-white);
}

.spma-latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 18px;
}

.spma-resource-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--spma-line);
    border-radius: var(--spma-radius-md);
    background: var(--spma-white);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.spma-resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,104,55,.18);
    box-shadow: var(--spma-shadow-md);
}

.spma-resource-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dfe6e2;
}

.spma-resource-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.75,.2,1);
}

.spma-resource-card:hover .spma-resource-card__image {
    transform: scale(1.045);
}

.spma-resource-card__image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(213,190,82,.3), transparent),
        var(--spma-green-dark);
    color: var(--spma-gold);
}

.spma-resource-card__image-fallback span {
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.spma-resource-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.spma-resource-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    color: var(--spma-green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.spma-resource-badge--featured {
    background: var(--spma-gold);
}

.spma-resource-badge--trending,
.spma-resource-badge--popular {
    background: var(--spma-green-dark);
    color: var(--spma-white);
}

.spma-resource-card__body {
    padding: 24px;
}

.spma-resource-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #7a837e;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.spma-resource-card__type {
    color: var(--spma-green);
    font-weight: 900;
}

.spma-resource-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--spma-gold);
}

.spma-resource-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.17;
    letter-spacing: -.025em;
    font-weight: 900;
}

.spma-resource-card__title a {
    color: var(--spma-ink);
    transition: color .2s ease;
}

.spma-resource-card__title a:hover {
    color: var(--spma-green);
}

.spma-resource-card__excerpt,
.spma-resource-card__person {
    margin: 14px 0 0;
    color: var(--spma-muted);
    font-size: 13px;
    line-height: 1.6;
}

.spma-resource-card__person {
    display: grid;
    gap: 2px;
}

.spma-resource-card__person strong {
    color: var(--spma-green-dark);
    font-weight: 850;
}

.spma-resource-card__person span {
    font-size: 12px;
}

.spma-resource-card__read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--spma-green-dark);
    font-size: 12px;
    font-weight: 900;
}

.spma-resource-card__read span {
    color: var(--spma-gold);
    transition: transform .2s ease;
}

.spma-resource-card__read:hover span {
    transform: translate(2px, -2px);
}

.spma-resource-card--lead {
    grid-row: 1 / span 3;
}

.spma-resource-card--lead .spma-resource-card__media {
    aspect-ratio: 16 / 10;
}

.spma-resource-card--lead .spma-resource-card__body {
    padding: 30px;
}

.spma-resource-card--lead .spma-resource-card__title {
    font-size: clamp(26px, 2.4vw, 35px);
}

.spma-resource-card--lead .spma-resource-card__excerpt,
.spma-resource-card--lead .spma-resource-card__person {
    font-size: 14px;
}

.spma-resource-card--compact {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 184px;
}

.spma-resource-card--compact .spma-resource-card__media {
    min-height: 100%;
}

.spma-resource-card--compact .spma-resource-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.spma-resource-card--compact .spma-resource-card__title {
    font-size: 18px;
}

.spma-resource-card--compact .spma-resource-card__excerpt,
.spma-resource-card--compact .spma-resource-card__person {
    display: none;
}

.spma-resource-card--compact .spma-resource-card__read {
    margin-top: 13px;
}

/* Featured */
.spma-home-section--featured {
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--spma-green-dark), #003b20 56%, #002f19);
    color: var(--spma-white);
}

.spma-home-section__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.spma-home-section__orb--one {
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(213,190,82,.22);
}

.spma-home-section__orb--two {
    right: 140px;
    bottom: -240px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,.07);
}

.spma-section-heading--light h2 {
    color: var(--spma-white);
}

.spma-section-heading--light .spma-section-eyebrow {
    color: var(--spma-gold-soft);
}

.spma-text-link--light {
    border-color: rgba(255,255,255,.28);
    color: var(--spma-white);
}

.spma-text-link--light:hover {
    border-color: var(--spma-gold);
    color: var(--spma-gold-soft);
}

.spma-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.spma-resource-card--featured {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.065);
    color: var(--spma-white);
}

.spma-resource-card--featured:hover {
    border-color: rgba(213,190,82,.55);
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.spma-resource-card--featured .spma-resource-card__media {
    aspect-ratio: 4 / 3;
}

.spma-resource-card--featured .spma-resource-card__body {
    padding: 22px;
}

.spma-resource-card--featured .spma-resource-card__title {
    font-size: 19px;
}

.spma-resource-card--featured .spma-resource-card__title a,
.spma-resource-card--featured .spma-resource-card__read {
    color: var(--spma-white);
}

.spma-resource-card--featured .spma-resource-card__meta,
.spma-resource-card--featured .spma-resource-card__excerpt,
.spma-resource-card--featured .spma-resource-card__person {
    color: rgba(255,255,255,.64);
}

.spma-resource-card--featured .spma-resource-card__type,
.spma-resource-card--featured .spma-resource-card__person strong {
    color: var(--spma-gold-soft);
}

.spma-resource-card--featured .spma-resource-card__excerpt,
.spma-resource-card--featured .spma-resource-card__person {
    display: none;
}

/* Roles */
.spma-home-section--roles {
    background: var(--spma-wash);
}

.spma-role-controls {
    display: flex;
    gap: 9px;
}

.spma-role-control {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d9dfdb;
    border-radius: 50%;
    background: var(--spma-white);
    color: var(--spma-green-dark);
    cursor: pointer;
    font-size: 18px;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.spma-role-control:hover {
    transform: translateY(-2px);
    border-color: var(--spma-green-dark);
    background: var(--spma-green-dark);
    color: var(--spma-white);
}

.spma-role-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(265px, 24%);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 2px 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.spma-role-rail::-webkit-scrollbar {
    display: none;
}

.spma-role-card {
    scroll-snap-align: start;
}

.spma-role-card__link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e1e5e2;
    border-radius: var(--spma-radius-md);
    background: var(--spma-white);
    color: var(--spma-ink);
    box-shadow: 0 10px 30px rgba(0,55,29,.06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.spma-role-card__link:hover {
    transform: translateY(-6px);
    border-color: rgba(0,104,55,.20);
    box-shadow: 0 24px 50px rgba(0,55,29,.14);
}

.spma-role-card__media {
    display: block;
    height: 205px;
    overflow: hidden;
    background: #e3e8e5;
}

.spma-role-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.spma-role-card__link:hover .spma-role-card__image {
    transform: scale(1.05);
}

.spma-role-card__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--spma-green), var(--spma-green-dark));
    color: var(--spma-gold);
    font-size: 26px;
    font-weight: 950;
}

.spma-role-card__content {
    display: grid;
    gap: 9px;
    padding: 22px;
}


.spma-role-card__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #7a837e;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.spma-role-card__meta > span:first-child {
    color: var(--spma-green);
    font-weight: 900;
}

.spma-role-card__meta i {
    width: 3px;
    height: 3px;
    flex: 0 0 3px;
    border-radius: 50%;
    background: var(--spma-gold);
}

.spma-role-card__meta time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spma-role-card__eyebrow {
    color: var(--spma-green);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.spma-role-card__title {
    min-height: 50px;
    color: var(--spma-ink);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
}

.spma-role-card__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--spma-green-dark);
    font-size: 11px;
    font-weight: 900;
}

.spma-role-card__action span {
    color: var(--spma-gold);
}

.spma-role-footer {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

/* Jobs */
.spma-home-jobs {
    padding: 110px 0;
    background: var(--spma-white);
}

.spma-home-jobs__panel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    overflow: hidden;
    padding: 54px;
    border-radius: var(--spma-radius-lg);
    background:
        radial-gradient(circle at 83% 20%, rgba(213,190,82,.16), transparent 28%),
        var(--spma-green-dark);
    color: var(--spma-white);
    box-shadow: var(--spma-shadow-md);
}

.spma-home-jobs__panel::after {
    content: "SPMA";
    position: absolute;
    right: -10px;
    bottom: -46px;
    color: rgba(255,255,255,.035);
    font-size: 180px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.09em;
    pointer-events: none;
}

.spma-home-jobs__mark {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 20px;
    background: var(--spma-gold);
    color: var(--spma-green-dark);
    box-shadow: 0 16px 38px rgba(0,0,0,.2);
    font-size: 27px;
    line-height: .8;
    font-weight: 950;
    letter-spacing: -.05em;
}

.spma-home-jobs__mark span {
    display: block;
}

.spma-home-jobs__copy,
.spma-home-jobs__actions {
    position: relative;
    z-index: 2;
}

.spma-home-jobs__copy .spma-section-eyebrow {
    margin-bottom: 9px;
    color: var(--spma-gold-soft);
}

.spma-home-jobs h2 {
    max-width: 660px;
    color: var(--spma-white);
    font-size: clamp(30px, 3vw, 46px);
}

.spma-home-jobs__copy > p:last-child {
    max-width: 660px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.65;
}

.spma-home-jobs__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

/* Divi/module cleanup */
.et_pb_module .spma-home-page h1,
.et_pb_module .spma-home-page h2,
.et_pb_module .spma-home-page h3,
.et_pb_module .spma-home-page p {
    padding-bottom: 0;
}

.et_pb_code_inner > .spma-home-page,
.et_pb_text_inner > .spma-home-page {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .spma-home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
        gap: 46px;
    }

    .spma-home-hero__image {
        height: 470px;
    }

    .spma-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spma-role-rail {
        grid-auto-columns: minmax(270px, 31%);
    }

    .spma-home-jobs__panel {
        grid-template-columns: auto 1fr;
    }

    .spma-home-jobs__actions {
        grid-column: 2;
        flex-direction: row;
        min-width: 0;
    }
}

@media (max-width: 980px) {
    .spma-home-container {
        width: min(calc(100% - 36px), var(--spma-container));
    }

    .spma-home-hero {
        padding-top: 54px;
    }

    .spma-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .spma-home-hero__copy {
        max-width: 760px;
        padding: 30px 0 20px;
    }

    .spma-home-hero__visual {
        min-height: 0;
        margin-top: 18px;
    }

    .spma-home-hero__figure {
        border-radius: 26px 26px 8px 26px;
    }

    .spma-home-hero__image {
        height: min(58vw, 520px);
    }

    .spma-home-hero__gold-block {
        right: -16px;
        top: 53%;
        width: 52%;
        height: 78%;
    }

    .spma-home-hero__stamp {
        right: 18px;
        bottom: 18px;
        width: 106px;
        border-width: 6px;
    }

    .spma-home-discovery-bar {
        grid-template-columns: 1fr;
        transform: translateY(36px);
    }

    .spma-home-discovery-card {
        min-height: 88px;
        padding: 18px 22px;
    }

    .spma-home-discovery-card + .spma-home-discovery-card {
        border-top: 1px solid var(--spma-line);
        border-left: 0;
    }

    .spma-home-section {
        padding: 88px 0;
    }

    .spma-home-section--latest {
        padding-top: 122px;
    }

    .spma-latest-layout {
        grid-template-columns: 1fr;
    }

    .spma-resource-card--lead {
        grid-row: auto;
    }

    .spma-resource-card--compact {
        grid-template-columns: 210px 1fr;
    }

    .spma-role-rail {
        grid-auto-columns: minmax(255px, 42%);
    }

    .spma-home-jobs {
        padding: 86px 0;
    }

    .spma-home-jobs__panel {
        padding: 42px;
    }
}

@media (max-width: 700px) {
    .spma-home-container {
        width: min(calc(100% - 28px), var(--spma-container));
    }

    /* Keep the mobile hero punchy without letting the headline dominate the first screen. */
    .spma-home-hero {
        padding-top: 20px;
    }

    .spma-home-hero__copy {
        padding: 14px 0 10px;
    }

    .spma-home-kicker,
    .spma-section-eyebrow {
        margin-bottom: 11px;
        font-size: 10px;
    }

    .spma-home-kicker span {
        width: 28px;
    }

    .spma-home-hero h1 {
        max-width: 100%;
        font-size: clamp(34px, 9.5vw, 42px);
        line-height: .98;
        letter-spacing: -.045em;
    }

    .spma-home-hero__lede {
        max-width: 34rem;
        margin-top: 14px;
        font-size: 15.5px;
        line-height: 1.45;
    }

    .spma-home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .spma-home-hero__actions .spma-button {
        min-height: 48px;
    }

    .spma-button {
        width: 100%;
    }

    .spma-home-hero__quicklinks {
        display: none;
    }

    .spma-home-hero__visual {
        margin-top: 6px;
    }

    .spma-home-hero__image {
        height: 72vw;
        min-height: 320px;
    }

    .spma-home-hero__gold-block {
        right: -12px;
        width: 68%;
        height: 76%;
    }

    .spma-home-hero__stamp {
        right: 10px;
        bottom: 10px;
        width: 88px;
        border-width: 5px;
    }

    .spma-home-hero__stamp-top {
        font-size: 20px;
    }

    .spma-home-discovery-bar {
        margin-top: 4px;
        border-radius: 17px;
    }

    .spma-home-discovery-card b {
        width: 34px;
        height: 34px;
    }

    .spma-home-section {
        padding: 72px 0;
    }

    .spma-home-section--latest {
        padding-top: 108px;
    }

    .spma-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .spma-section-heading h2,
    .spma-home-jobs h2 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .spma-resource-card--compact {
        display: block;
    }

    .spma-resource-card--compact .spma-resource-card__media {
        aspect-ratio: 16 / 9;
    }

    .spma-resource-card--compact .spma-resource-card__body,
    .spma-resource-card--lead .spma-resource-card__body {
        padding: 22px;
    }

    .spma-resource-card--compact .spma-resource-card__title {
        font-size: 20px;
    }

    .spma-featured-grid {
        grid-template-columns: 1fr;
    }

    .spma-resource-card--featured .spma-resource-card__media {
        aspect-ratio: 16 / 9;
    }

    .spma-role-controls {
        align-self: flex-end;
        margin-top: -54px;
    }

    .spma-role-rail {
        grid-auto-columns: 84%;
        margin-right: -14px;
    }

    .spma-role-footer {
        justify-content: stretch;
    }

    .spma-home-jobs {
        padding: 72px 0;
    }

    .spma-home-jobs__panel {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 24px;
        border-radius: 24px;
    }

    .spma-home-jobs__mark {
        width: 82px;
        height: 82px;
        border-radius: 17px;
        font-size: 23px;
    }

    .spma-home-jobs__actions {
        grid-column: auto;
        flex-direction: column;
        width: 100%;
    }

    .spma-home-jobs__panel::after {
        font-size: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spma-home-page *,
    .spma-home-page *::before,
    .spma-home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* v1.4.0 company-info integration */
.spma-home-about {
    padding: 88px 0;
    background: linear-gradient(180deg, #fff 0%, var(--spma-wash) 100%);
}

.spma-home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: clamp(40px, 6vw, 78px);
    align-items: center;
}

.spma-home-about__copy h2 {
    max-width: 760px;
    margin: 0;
    color: var(--spma-ink);
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 900;
}

.spma-home-about__text {
    max-width: 740px;
    margin-top: 22px;
    color: var(--spma-muted);
    font-size: 17px;
    line-height: 1.72;
}

.spma-home-about__text > *:first-child { margin-top: 0; }
.spma-home-about__text > *:last-child { margin-bottom: 0; }

.spma-home-about__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-top: 28px;
}

.spma-home-about__secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--spma-green);
    font-size: 14px;
    font-weight: 900;
}

.spma-home-about__secondary:hover {
    color: var(--spma-green-dark);
}

.spma-home-about__panel {
    position: relative;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--spma-line);
    border-radius: 26px;
    background: var(--spma-line);
    box-shadow: var(--spma-shadow-sm);
}

.spma-home-about__panel::before {
    content: "SPMA";
    position: absolute;
    right: 18px;
    top: -10px;
    color: rgba(0,104,55,.035);
    font-size: 92px;
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
}

.spma-home-about__stat {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 112px;
    padding: 22px 24px;
    background: #fff;
}

.spma-home-about__stat strong {
    color: var(--spma-green-dark);
    font-size: 18px;
    font-weight: 900;
}

.spma-home-about__stat span {
    color: var(--spma-muted);
    font-size: 14px;
    line-height: 1.55;
}

.spma-home-connect {
    padding: 54px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #111814;
    color: #fff;
}

.spma-home-connect__inner {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 36px;
    align-items: center;
}

.spma-home-connect .spma-section-eyebrow {
    color: var(--spma-gold-soft);
}

.spma-home-connect h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 900;
}

.spma-home-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.spma-home-socials a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.spma-home-socials a:hover {
    transform: translateY(-2px);
    border-color: var(--spma-gold);
    background: rgba(213,190,82,.09);
    color: var(--spma-gold-soft);
}

.spma-home-socials i {
    color: var(--spma-gold);
    font-size: 15px;
}

@media (max-width: 900px) {
    .spma-home-about__grid,
    .spma-home-connect__inner {
        grid-template-columns: 1fr;
    }

    .spma-home-socials {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .spma-home-about {
        padding: 68px 0;
    }

    .spma-home-about__copy h2 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .spma-home-about__actions,
    .spma-home-about__actions .spma-button {
        width: 100%;
    }

    .spma-home-about__stat {
        grid-template-columns: 1fr;
        gap: 7px;
        min-height: 0;
    }

    .spma-home-connect {
        padding: 46px 0;
    }

    .spma-home-socials a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}

.spma-home-search {
    padding: 54px 0;
    border-bottom: 1px solid var(--spma-line);
    background: #fff;
}

.spma-home-search__inner {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(520px, 1.28fr);
    gap: 42px;
    align-items: center;
}

.spma-home-search__copy h2 {
    margin: 0;
    color: var(--spma-ink);
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 900;
}

.spma-home-search__panel {
    padding: 12px;
    border: 1px solid var(--spma-line);
    border-radius: 20px;
    background: var(--spma-wash);
}

.spma-home-search__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid #dce3de;
    border-radius: 14px;
    background: #fff;
}

.spma-home-search__tabs button {
    display: inline-flex;
    min-width: 0;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #53605a;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.spma-home-search__tabs button i {
    font-size: 12px;
}

.spma-home-search__tabs button:hover {
    color: var(--spma-green-dark);
    background: rgba(0, 104, 55, .055);
}

.spma-home-search__tabs button.is-active,
.spma-home-search__tabs button[aria-selected="true"] {
    background: var(--spma-green);
    color: #fff;
    box-shadow: 0 7px 18px rgba(0, 104, 55, .16);
}

.spma-home-search__form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.spma-home-search__field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
    overflow: hidden;
    border: 1px solid #d7ded9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,56,30,.05);
}

.spma-home-search__field:focus-within {
    border-color: var(--spma-green);
}

.spma-home-search__field > i {
    margin-left: 18px;
    color: var(--spma-green);
}

.spma-home-search__field input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--spma-ink);
    font: inherit;
    font-size: 15px;
}

.spma-home-search__field button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-right: 7px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    background: var(--spma-green);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.spma-home-search__field button:hover {
    background: var(--spma-green-dark);
}

.spma-home-search__suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
}

.spma-home-search__suggestions > span {
    color: var(--spma-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.spma-home-search__suggestions a {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--spma-line);
    border-radius: 999px;
    background: #fff;
    color: var(--spma-green-dark);
    font-size: 11px;
    font-weight: 800;
}

.spma-home-search__suggestions a:hover {
    border-color: var(--spma-green);
    background: rgba(0,104,55,.04);
}

@media (max-width: 980px) {
    .spma-home-search__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .spma-home-search {
        padding: 30px 0;
    }

    .spma-home-search__inner {
        gap: 14px;
    }

    .spma-home-search__copy h2 {
        font-size: clamp(29px, 9.4vw, 38px);
    }

    .spma-home-search__panel {
        padding: 10px;
        border-radius: 18px;
    }

    .spma-home-search__tabs {
        margin-bottom: 8px;
    }

    .spma-home-search__tabs button {
        min-height: 38px;
        padding: 0 6px;
        font-size: 11px;
    }

    .spma-home-search__field {
        grid-template-columns: auto minmax(0, 1fr) auto;
        overflow: hidden;
    }

    .spma-home-search__field > i {
        margin-left: 14px;
    }

    .spma-home-search__field input {
        padding: 0 10px;
        font-size: 14px;
    }

    .spma-home-search__field button {
        width: auto;
        justify-content: center;
        margin: 0 6px 0 0;
        padding: 0 11px;
        white-space: nowrap;
        font-size: 11px;
    }

    .spma-home-search__suggestions {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-top: 9px;
        padding: 0 1px 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .spma-home-search__suggestions::-webkit-scrollbar {
        display: none;
    }

    .spma-home-search__suggestions > span,
    .spma-home-search__suggestions a {
        flex: 0 0 auto;
    }
}

.spma-home-search .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* v1.13.0: compact, unified swipe carousels on phones */
@media (max-width: 700px) {
    .spma-home-section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .spma-home-section--latest {
        padding-top: 88px;
    }

    .spma-section-heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    .spma-section-heading__intro {
        margin-top: 8px;
    }

    .spma-latest-layout,
    .spma-featured-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -14px;
        padding: 2px 14px 14px 0;
        scroll-padding-inline: 0 14px;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .spma-latest-layout::-webkit-scrollbar,
    .spma-featured-grid::-webkit-scrollbar {
        display: none;
    }

    .spma-latest-layout > .spma-resource-card,
    .spma-featured-grid > .spma-resource-card {
        min-width: 0;
        height: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .spma-resource-card--lead,
    .spma-resource-card--compact,
    .spma-resource-card--featured {
        display: block;
        grid-row: auto;
    }

    .spma-resource-card--lead .spma-resource-card__media,
    .spma-resource-card--compact .spma-resource-card__media,
    .spma-resource-card--featured .spma-resource-card__media {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .spma-resource-card--lead .spma-resource-card__body,
    .spma-resource-card--compact .spma-resource-card__body,
    .spma-resource-card--featured .spma-resource-card__body {
        display: flex;
        min-height: 178px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 18px;
    }

    .spma-resource-card__meta {
        display: flex;
        margin-bottom: 9px;
        font-size: 9px;
    }

    .spma-resource-card--lead .spma-resource-card__title,
    .spma-resource-card--compact .spma-resource-card__title,
    .spma-resource-card--featured .spma-resource-card__title {
        display: -webkit-box;
        overflow: hidden;
        font-size: 19px;
        line-height: 1.2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .spma-resource-card__excerpt,
    .spma-resource-card__person,
    .spma-resource-card--lead .spma-resource-card__excerpt,
    .spma-resource-card--lead .spma-resource-card__person,
    .spma-resource-card--compact .spma-resource-card__excerpt,
    .spma-resource-card--compact .spma-resource-card__person,
    .spma-resource-card--featured .spma-resource-card__excerpt,
    .spma-resource-card--featured .spma-resource-card__person {
        display: none;
    }

    .spma-resource-card__read,
    .spma-resource-card--compact .spma-resource-card__read {
        margin-top: auto;
        padding-top: 15px;
    }

    .spma-resource-card__badges {
        top: 12px;
        left: 12px;
    }

    .spma-role-rail {
        grid-auto-columns: 84%;
        gap: 14px;
        padding-bottom: 14px;
    }

    .spma-role-card__media {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .spma-role-card__content {
        padding: 18px;
    }

    .spma-role-card__title {
        min-height: 0;
        display: -webkit-box;
        overflow: hidden;
        font-size: 19px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .spma-role-footer {
        margin-top: 16px;
    }
}

/* v1.13.0: keep the home discovery choices horizontal on phones too. */
@media (max-width: 700px) {
    .spma-home-discovery-bar {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -14px;
        padding: 2px 14px 12px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .spma-home-discovery-bar::-webkit-scrollbar {
        display: none;
    }

    .spma-home-discovery-card {
        min-height: 86px;
        padding: 17px 18px;
        border: 1px solid var(--spma-line);
        border-radius: 17px;
        background: var(--spma-white);
        box-shadow: 0 10px 26px rgba(0,55,29,.08);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .spma-home-discovery-card + .spma-home-discovery-card {
        border-top: 1px solid var(--spma-line);
        border-left: 1px solid var(--spma-line);
    }
}

/* v1.14.2: mobile vertical rhythm + section transition cleanup */
@media (max-width: 700px) {
    /* Keep the hero, image and discovery rail visually connected. */
    .spma-home-hero__grid {
        gap: 10px;
    }

    .spma-home-hero__visual {
        margin-top: 0;
    }

    .spma-home-discovery-bar {
        margin-top: 0;
        transform: translateY(18px);
        padding-bottom: 8px;
    }

    .spma-home-discovery-card {
        min-height: 82px;
        padding: 14px 16px;
    }

    /* The search block immediately follows the discovery rail, so keep it compact. */
    .spma-home-search {
        padding: 42px 0 34px;
    }

    .spma-home-search__inner {
        gap: 12px;
    }

    .spma-home-search__copy .spma-section-eyebrow {
        margin-bottom: 8px;
    }

    .spma-home-search__copy h2 {
        line-height: 1.02;
    }

    .spma-home-search__panel {
        margin-top: 2px;
    }

    /* Remove the large dead zone between search and About SPMA. */
    .spma-home-about {
        padding: 40px 0 48px;
    }

    .spma-home-about__grid {
        gap: 28px;
    }

    .spma-home-about__copy .spma-section-eyebrow {
        margin-bottom: 10px;
    }

    .spma-home-about__copy h2 {
        line-height: 1.01;
    }

    .spma-home-about__text {
        margin-top: 16px;
    }

    .spma-home-about__actions {
        margin-top: 20px;
    }

    /* Keep later homepage sections on the same tighter mobile rhythm. */
    .spma-home-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .spma-home-section--latest {
        padding-top: 72px;
    }
}

@media (max-width: 420px) {
    .spma-home-container {
        width: calc(100% - 28px);
    }

    .spma-home-search {
        padding-top: 38px;
    }

    .spma-home-about {
        padding-top: 36px;
    }
}
