.rm-facilities-page {
    --fac-graphite: #172027;
    --fac-paper: #f2f0ea;
    --fac-muted: #626c72;
    --fac-line: rgba(23, 32, 39, .18);
    background: var(--fac-paper);
    color: var(--fac-graphite);
}

.fac-shell {
    width: min(100% - 64px, 1480px);
    margin-inline: auto;
}

.fac-eyebrow,
.fac-index {
    display: block;
    color: var(--rivimetal-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    line-height: 1.35;
    text-transform: uppercase;
}

.fac-index {
    margin-bottom: 42px;
    color: #7e878c;
}

.fac-text-link {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    margin-top: 30px;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    color: var(--fac-graphite);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.fac-text-link:hover,
.fac-text-link:focus-visible {
    color: var(--rivimetal-red);
}

.fac-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #11171c;
    color: #fff;
}

.fac-hero-image,
.fac-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fac-hero-image {
    object-fit: cover;
    object-position: center 52%;
}

.fac-hero-shade {
    background: linear-gradient(90deg, rgba(10, 15, 19, .94) 0%, rgba(10, 15, 19, .72) 42%, rgba(10, 15, 19, .2) 75%, rgba(10, 15, 19, .12) 100%);
}

.fac-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 720px;
    padding: 118px 0 78px;
}

.fac-hero .rm-breadcrumb {
    position: absolute;
    top: 118px;
    left: 0;
}

.fac-hero-copy {
    max-width: 820px;
}

.fac-hero .fac-eyebrow {
    margin-bottom: 24px;
    color: var(--rivimetal-red);
}

.fac-hero h1 {
    max-width: 790px;
    margin: 0;
    color: #fff;
    font-family: "Albert Sans", sans-serif;
    font-size: clamp(50px, 6.1vw, 92px);
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: .98;
}

.fac-hero p {
    max-width: 690px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.72;
}

.fac-overview {
    padding: 94px 0 104px;
    background: var(--fac-paper);
}

.fac-section-head,
.fac-flow-head {
    display: grid;
    grid-template-columns: minmax(190px, .48fr) minmax(0, 1.52fr);
    gap: clamp(60px, 9vw, 145px);
    align-items: start;
}

.fac-section-head h2,
.fac-hpdc h2,
.fac-operations h2,
.fac-quality h2,
.fac-flow h2,
.fac-closing h2 {
    margin: 0;
    font-family: "Albert Sans", sans-serif;
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.fac-section-head h2 {
    max-width: 800px;
    font-size: clamp(39px, 4.6vw, 68px);
}

.fac-section-head p,
.fac-flow-head p {
    max-width: 710px;
    margin: 28px 0 0;
    color: var(--fac-muted);
    font-size: 16px;
    line-height: 1.75;
}

.fac-data {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 72px 0 0;
    border-top: 1px solid var(--fac-line);
    border-bottom: 1px solid var(--fac-line);
}

.fac-data > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-height: 164px;
    padding: 28px 24px;
    border-right: 1px solid rgba(23, 32, 39, .13);
}

.fac-data > div:first-child {
    padding-left: 0;
}

.fac-data > div:last-child {
    border-right: 0;
}

.fac-data dt {
    color: var(--rivimetal-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
}

.fac-data dd {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

.fac-data strong {
    font-family: "Albert Sans", sans-serif;
    font-size: clamp(24px, 2.25vw, 36px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.fac-data dd span {
    color: var(--fac-muted);
    font-size: 12px;
    line-height: 1.45;
}

.fac-hpdc {
    padding: 112px 0;
    background: #e5e2da;
}

.fac-hpdc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
}

.fac-hpdc-image,
.fac-operations figure,
.fac-flow-image,
.fac-quality figure {
    margin: 0;
}

.fac-hpdc-image img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
}

.fac-hpdc-image figcaption,
.fac-operations figcaption,
.fac-flow-image figcaption {
    margin-top: 12px;
    color: #737c81;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fac-hpdc-copy .fac-eyebrow,
.fac-operations .fac-eyebrow,
.fac-quality .fac-eyebrow,
.fac-flow .fac-eyebrow {
    margin-bottom: 22px;
}

.fac-hpdc h2,
.fac-operations h2,
.fac-quality h2,
.fac-flow h2 {
    font-size: clamp(36px, 4vw, 60px);
}

.fac-hpdc-copy p,
.fac-operations-head > p,
.fac-quality-grid > div > p {
    margin: 28px 0 0;
    color: var(--fac-muted);
    font-size: 16px;
    line-height: 1.75;
}

.fac-operations {
    padding: 112px 0;
    background: var(--fac-paper);
}

.fac-operations-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .62fr);
    gap: clamp(60px, 10vw, 160px);
    align-items: end;
    margin-bottom: 64px;
}

.fac-operations-head h2 {
    max-width: 760px;
}

.fac-operations-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, .62fr);
    gap: clamp(52px, 8vw, 124px);
    align-items: start;
}

.fac-operations figure img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
}

.fac-operation-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--fac-line);
    list-style: none;
}

.fac-operation-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid var(--fac-line);
}

.fac-operation-list span {
    color: var(--rivimetal-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
}

.fac-operation-list strong {
    font-family: "Albert Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.fac-quality {
    padding: 112px 0;
    overflow: hidden;
    background: #141b20;
    color: #fff;
}

.fac-quality-grid {
    display: grid;
    grid-template-columns: minmax(360px, .7fr) minmax(0, 1.3fr);
    gap: clamp(72px, 11vw, 180px);
    align-items: center;
}

.fac-quality figure {
    height: 680px;
}

.fac-quality figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fac-quality h2 {
    max-width: 700px;
    color: #fff;
}

.fac-quality-grid > div > p {
    max-width: 700px;
    color: rgba(255, 255, 255, .62);
}

.fac-quality-terms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 48px 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .17);
    border-bottom: 1px solid rgba(255, 255, 255, .17);
    list-style: none;
}

.fac-quality-terms li {
    padding: 21px 15px;
    border-right: 1px solid rgba(255, 255, 255, .13);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .09em;
    text-align: center;
}

.fac-quality-terms li:first-child {
    padding-left: 0;
}

.fac-quality-terms li:last-child {
    border-right: 0;
}

.fac-text-link-light {
    color: #fff;
}

.fac-flow {
    padding: 112px 0;
    background: var(--fac-paper);
}

.fac-flow-head h2 {
    max-width: 720px;
}

.fac-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 70px 0 54px;
    padding: 0;
    border-top: 1px solid var(--fac-line);
    list-style: none;
}

.fac-flow-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 138px;
    padding: 24px;
    border-right: 1px solid rgba(23, 32, 39, .13);
    border-bottom: 1px solid var(--fac-line);
}

.fac-flow-steps li:first-child {
    padding-left: 0;
}

.fac-flow-steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: 22px;
    bottom: 20px;
    color: var(--rivimetal-red);
}

.fac-flow-steps li:last-child {
    border-right: 0;
}

.fac-flow-steps span {
    color: var(--rivimetal-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
}

.fac-flow-steps strong {
    font-family: "Albert Sans", sans-serif;
    font-size: 20px;
    font-weight: 500;
}

.fac-flow-image img {
    width: 100%;
    height: clamp(340px, 42vw, 620px);
    object-fit: cover;
    object-position: center 58%;
}

.fac-closing {
    padding: 74px 0;
    background: var(--rivimetal-red);
    color: #fff;
}

.fac-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: clamp(60px, 9vw, 150px);
    align-items: end;
}

.fac-closing .fac-eyebrow {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .68);
}

.fac-closing h2 {
    max-width: 800px;
    color: #fff;
    font-size: clamp(38px, 4.4vw, 66px);
}

.fac-closing-actions {
    border-top: 1px solid rgba(255, 255, 255, .34);
}

.fac-closing-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fac-closing-actions a:hover,
.fac-closing-actions a:focus-visible {
    color: #11171c;
}

@media (max-width: 1199px) {
    .fac-shell {
        width: min(100% - 48px, 1120px);
    }

    .fac-hpdc-grid,
    .fac-operations-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    }

    .fac-quality-grid {
        gap: 70px;
    }
}

@media (max-width: 991px) {
    .fac-hero,
    .fac-hero-inner {
        min-height: 680px;
    }

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

    .fac-data > div:nth-child(2) {
        border-right: 0;
    }

    .fac-data > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--fac-line);
    }

    .fac-data > div:nth-child(3) {
        padding-left: 0;
    }

    .fac-hpdc-grid,
    .fac-operations-head,
    .fac-operations-layout,
    .fac-quality-grid,
    .fac-closing-grid {
        grid-template-columns: 1fr;
    }

    .fac-hpdc-copy,
    .fac-operations-layout > div,
    .fac-quality-grid > div {
        max-width: 760px;
    }

    .fac-quality figure {
        width: min(76%, 620px);
        height: 560px;
    }
}

@media (max-width: 767px) {
    .fac-shell {
        width: calc(100% - 44px);
    }

    .fac-hero,
    .fac-hero-inner {
        min-height: 690px;
    }

    .fac-hero-image {
        object-position: 62% center;
    }

    .fac-hero-shade {
        background: linear-gradient(180deg, rgba(10, 15, 19, .72) 0%, rgba(10, 15, 19, .32) 34%, rgba(10, 15, 19, .9) 74%, rgba(10, 15, 19, .96) 100%);
    }

    .fac-hero-inner {
        padding: 104px 0 50px;
    }

    .fac-hero .rm-breadcrumb {
        top: 102px;
    }

    .fac-hero h1 {
        font-size: clamp(44px, 13vw, 60px);
    }

    .fac-hero p {
        margin-top: 24px;
        font-size: 15px;
    }

    .fac-overview,
    .fac-hpdc,
    .fac-operations,
    .fac-quality,
    .fac-flow {
        padding: 76px 0;
    }

    .fac-section-head,
    .fac-flow-head {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .fac-section-head h2,
    .fac-hpdc h2,
    .fac-operations h2,
    .fac-quality h2,
    .fac-flow h2 {
        font-size: 39px;
    }

    .fac-data {
        grid-template-columns: 1fr;
        margin-top: 52px;
    }

    .fac-data > div,
    .fac-data > div:first-child,
    .fac-data > div:nth-child(3) {
        min-height: 114px;
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid var(--fac-line);
    }

    .fac-data > div:last-child {
        border-bottom: 0;
    }

    .fac-data strong {
        font-size: 28px;
    }

    .fac-index {
        margin-bottom: 26px;
    }

    .fac-hpdc-image img,
    .fac-operations figure img {
        aspect-ratio: 1 / .78;
    }

    .fac-operations-head {
        gap: 26px;
        margin-bottom: 46px;
    }

    .fac-quality figure {
        width: 100%;
        height: 500px;
    }

    .fac-quality-grid {
        gap: 54px;
    }

    .fac-quality-terms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fac-quality-terms li:nth-child(2) {
        border-right: 0;
    }

    .fac-quality-terms li:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .fac-flow-steps {
        grid-template-columns: 1fr;
        margin-top: 52px;
    }

    .fac-flow-steps li,
    .fac-flow-steps li:first-child {
        flex-direction: row;
        align-items: center;
        min-height: 70px;
        padding: 18px 0;
        border-right: 0;
    }

    .fac-flow-steps li:not(:last-child)::after {
        right: 0;
        bottom: 24px;
        transform: rotate(90deg);
    }

    .fac-flow-steps strong {
        width: 65%;
        font-size: 18px;
    }

    .fac-flow-image img {
        height: 330px;
    }

    .fac-closing {
        padding: 64px 0;
    }

    .fac-closing-grid {
        gap: 42px;
    }

    .fac-closing h2 {
        font-size: 41px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fac-text-link,
    .fac-closing-actions a {
        transition: none;
    }
}
