@font-face {
    font-display: swap;
    font-family: "SpeciesMontserrat";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/montserrat-v26-latin-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "SpeciesMontserrat";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/montserrat-v26-latin-500.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "SpeciesJost";
    font-style: normal;
    font-weight: 200;
    src: url("../fonts/jost-v15-latin-200.woff2") format("woff2");
}

.species-list-page {
    --species-gold: #b8984b;
    --species-ink: #030303;
    --species-line: rgba(255, 255, 255, .075);
    min-height: 100vh;
    color: #f5f5f4;
    background: var(--species-ink);
    font-family: "SpeciesMontserrat", Montserrat, sans-serif;
}

.species-list-page a {
    color: inherit;
}

.species-list-page .species-list-hero.hero-image {
    height: min(62svh, 560px);
    min-height: 380px;
    isolation: isolate;
    overflow: hidden;
    background-position: center;
}

.species-list-page .species-list-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .24) 30%, rgba(0, 0, 0, .08) 66%, rgba(0, 0, 0, .5)),
        linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 36%, rgba(0, 0, 0, .16) 58%, rgba(0, 0, 0, .92));
    pointer-events: none;
}

.species-list-page .species-list-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 32%;
    background: linear-gradient(180deg, transparent, #030303);
    pointer-events: none;
}

.species-list-page .species-list-hero-text {
    z-index: 2;
    width: min(920px, calc(100% - 44px));
    text-align: center;
}

.species-list-page .species-list-hero-text > h5 {
    position: relative;
    display: inline-block;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font: 400 clamp(.78rem, 1.2vw, 1.18rem)/1 "SpeciesJost", Jost, sans-serif;
    letter-spacing: .36em;
    text-transform: uppercase;
}

.species-list-page .species-list-hero-text > h5::before,
.species-list-page .species-list-hero-text > h5::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, .76);
}

.species-list-page .species-list-hero-text > h5::before {
    right: calc(100% + 24px);
    width: 34px;
}

.species-list-page .species-list-hero-text > h5::after {
    left: calc(100% + 24px);
    width: 52px;
}

.species-list-page .species-list-hero-text > h1 {
    margin: 18px 0 0;
    color: #fff;
    font: 400 clamp(2.35rem, 5vw, 64px)/1 "SpeciesMontserrat", Montserrat, sans-serif;
    letter-spacing: -.038em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .5);
}

.species-list-main {
    background:
        radial-gradient(circle at 12% 18%, rgba(184, 152, 75, .075), transparent 30%),
        linear-gradient(180deg, #030303, #050505 48%, #030303);
}

.species-list-shell {
    width: min(1520px, calc(100% - 40px));
    margin: 0 auto;
}

.species-list-intro-section {
    padding: clamp(46px, 6vw, 86px) 0 clamp(30px, 4vw, 58px);
}

.species-list-intro {
    display: grid;
    gap: clamp(24px, 4vw, 42px);
    align-items: start;
}

.species-list-heading {
    max-width: 980px;
}

.species-list-page .editorial-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #78716c;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.species-list-page .editorial-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: rgba(184, 152, 75, .85);
}

.species-list-page .editorial-heading h2 {
    max-width: 880px;
    margin: 8px 0 0;
    color: #f5f5f4;
    font: 400 28px/1 "SpeciesMontserrat", Montserrat, sans-serif;
    letter-spacing: -.025em;
}

.species-list-subtitle {
    max-width: 760px;
    margin: 18px 0 0;
    color: #a8a29e;
    font-size: 14px;
    line-height: 1.95;
}

.species-list-stats {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(1040px, 100%);
    border-top: 1px solid var(--species-line);
    border-bottom: 1px solid var(--species-line);
    background:
        linear-gradient(90deg, rgba(184, 152, 75, .09), transparent 24%, transparent 76%, rgba(184, 152, 75, .045)),
        rgba(255, 255, 255, .018);
}

.species-list-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 12% 50%, rgba(184, 152, 75, .12), transparent 26%);
    opacity: .8;
}

.species-list-stats div {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 16px;
    min-height: 104px;
    align-content: center;
    padding: 20px clamp(18px, 3vw, 32px);
    text-align: left;
}

.species-list-stats div::before {
    content: "";
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    align-self: center;
    border: 1px solid rgba(184, 152, 75, .48);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(184, 152, 75, .2), transparent 48%),
        rgba(0, 0, 0, .28);
    box-shadow: 0 0 28px rgba(184, 152, 75, .08);
}

.species-list-stats div::after {
    content: "";
    position: absolute;
    top: -1px;
    left: clamp(18px, 3vw, 32px);
    width: 42px;
    height: 1px;
    background: var(--species-gold);
}

.species-list-stats div + div {
    border-left: 1px solid var(--species-line);
}

.species-list-stats strong {
    color: #f5f5f4;
    font-size: clamp(24px, 2.5vw, 38px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.species-list-stats span {
    color: #78716c;
    font-size: 8px;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.species-list-section {
    padding: clamp(20px, 4vw, 46px) 0 clamp(70px, 8vw, 120px);
}

.species-group-columns {
    column-count: 4;
    column-gap: 18px;
}

.species-group-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    border: 1px solid var(--species-line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .014)),
        #070707;
}

.species-group-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--species-line);
}

.species-group-card header a {
    color: #f5f5f4;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

.species-group-card header a:hover,
.species-group-card header a:focus {
    color: var(--species-gold);
}

.species-group-card header span {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--species-gold);
    font-size: 8px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.species-group-card ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 22px 18px;
    list-style: none;
}

.species-group-card li + li {
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.species-group-card li a {
    display: block;
    padding: 10px 0;
    color: #a8a29e;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.species-group-card li a:hover,
.species-group-card li a:focus {
    color: #f5f5f4;
    transform: translateX(3px);
}

.species-empty {
    max-width: 760px;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid var(--species-line);
    background: #070707;
}

.species-empty h2 {
    margin: 12px 0 24px;
    color: #f5f5f4;
    font: 400 clamp(30px, 4vw, 52px)/1.08 "SpeciesMontserrat", Montserrat, sans-serif;
    letter-spacing: -.04em;
}

.species-empty a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--species-gold);
    font-size: 8px;
    letter-spacing: .22em;
    text-decoration: none;
    text-transform: uppercase;
}

.species-empty a::after {
    content: "";
    width: 44px;
    height: 1px;
    background: currentColor;
}

@media (max-width: 1199px) {
    .species-group-columns {
        column-count: 3;
    }

    .species-list-intro {
        gap: 26px;
    }

    .species-list-stats {
        width: min(780px, 100%);
    }
}

@media (max-width: 767px) {
    .species-list-page .species-list-hero.hero-image {
        height: 54svh;
        min-height: 340px;
    }

    .species-list-page .species-list-hero-text > h5 {
        font-size: .72rem;
        letter-spacing: .28em;
    }

    .species-list-page .species-list-hero-text > h5::before {
        right: calc(100% + 16px);
        width: 26px;
    }

    .species-list-page .species-list-hero-text > h5::after {
        left: calc(100% + 16px);
        width: 34px;
    }

    .species-list-page .species-list-hero-text > h1 {
        font-size: clamp(2.15rem, 10vw, 3.35rem);
    }

    .species-list-page .editorial-heading h2 {
        font-size: 23px;
    }

    .species-list-shell {
        width: calc(100% - 32px);
    }

    .species-list-stats {
        grid-template-columns: 1fr;
    }

    .species-list-stats div + div {
        border-top: 1px solid var(--species-line);
        border-left: 0;
    }

    .species-list-stats div {
        min-height: 92px;
    }

    .species-group-columns {
        column-count: 1;
    }

    .species-group-card header {
        display: grid;
    }
}

@media (min-width: 1600px) {
    .species-group-columns {
        column-count: 5;
    }
}
