.rm-history-page {
    --his-graphite: #172027;
    --his-paper: #f2f0ea;
    --his-warm: #e5e1d8;
    --his-muted: #657076;
    --his-line: rgba(23, 32, 39, .18);
    background: var(--his-paper);
    color: var(--his-graphite);
}

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

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

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

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

.his-hero-image {
    object-fit: cover;
    object-position: center;
}

.his-hero-shade {
    background: linear-gradient(90deg, rgba(10, 15, 19, .95) 0%, rgba(10, 15, 19, .78) 42%, rgba(10, 15, 19, .22) 76%, rgba(10, 15, 19, .12) 100%);
}

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

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

.his-hero-copy {
    max-width: 880px;
}

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

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

.his-hero p {
    max-width: 680px;
    margin: 29px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
    line-height: 1.72;
}

.his-intro {
    padding: 100px 0 110px;
    background: var(--his-paper);
}

.his-intro-grid {
    display: grid;
    grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr);
    gap: clamp(64px, 10vw, 160px);
}

.his-intro h2,
.his-timeline-head h2,
.his-today h2,
.his-closing h2 {
    margin: 0;
    font-family: "Albert Sans", sans-serif;
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.his-intro h2 {
    max-width: 950px;
    font-size: clamp(40px, 4.9vw, 72px);
}

.his-intro p {
    max-width: 830px;
    margin: 32px 0 0;
    color: var(--his-muted);
    font-size: 17px;
    line-height: 1.78;
}

.his-timeline {
    padding: 112px 0 126px;
    overflow: hidden;
    background: #151c21;
    color: #fff;
}

.his-timeline-head {
    display: grid;
    grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr);
    gap: clamp(64px, 10vw, 160px);
    align-items: end;
    margin-bottom: 96px;
}

.his-timeline-head h2 {
    max-width: 790px;
    color: #fff;
    font-size: clamp(40px, 4.8vw, 70px);
}

.his-chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(110px, .24fr) minmax(0, 1.76fr);
    gap: clamp(42px, 7vw, 108px);
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.his-chapter-marker {
    padding-top: 30px;
    color: var(--rivimetal-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
}

.his-milestones {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.his-milestone {
    display: grid;
    grid-template-columns: minmax(170px, .38fr) minmax(0, 1.62fr);
    gap: clamp(42px, 7vw, 110px);
    min-height: 250px;
    padding: 34px 0 52px 58px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.his-milestone time,
.his-visual-copy time {
    color: #fff;
    font-family: "Albert Sans", sans-serif;
    font-size: clamp(48px, 5.5vw, 82px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .92;
}

.his-milestone h3,
.his-visual-copy h3 {
    margin: 2px 0 16px;
    color: #fff;
    font-family: "Albert Sans", sans-serif;
    font-size: clamp(24px, 2.1vw, 33px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.his-milestone p,
.his-visual-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .58);
    font-size: 15px;
    line-height: 1.75;
}

.his-editorial-image {
    margin: 0;
}

.his-editorial-image-wide {
    margin: 90px 0 110px 18%;
}

.his-editorial-image-wide img {
    width: 100%;
    height: clamp(420px, 48vw, 680px);
    object-fit: cover;
}

.his-editorial-image figcaption,
.his-today-image figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.his-chapter-automotive {
    margin-top: 110px;
}

.his-milestone-feature {
    min-height: 300px;
}

.his-visual-chapter {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
    gap: clamp(70px, 10vw, 160px);
    align-items: center;
    margin-top: 120px;
    padding-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.his-visual-chapter-reverse figure {
    order: 2;
}

.his-visual-chapter-reverse .his-visual-copy {
    order: 1;
}

.his-visual-chapter .his-editorial-image img {
    width: 100%;
    aspect-ratio: 1.42 / 1;
    object-fit: cover;
}

.his-visual-copy .his-chapter-marker {
    display: block;
    margin-bottom: 74px;
    padding: 0;
}

.his-visual-copy h3 {
    margin-top: 32px;
}

.his-today {
    padding: 112px 0 0;
    background: var(--his-warm);
}

.his-today-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .58fr);
    gap: clamp(70px, 11vw, 170px);
    align-items: end;
    margin-bottom: 62px;
}

.his-today .his-label {
    margin-bottom: 20px;
}

.his-today h2 {
    font-size: clamp(42px, 5vw, 74px);
}

.his-today-head > p {
    margin: 0 0 4px;
    color: var(--his-muted);
    font-size: 16px;
    line-height: 1.75;
}

.his-today-image {
    margin: 0;
}

.his-today-image img {
    width: 100%;
    height: clamp(440px, 52vw, 760px);
    object-fit: cover;
    object-position: center 54%;
}

.his-today-image figcaption {
    color: #6d767b;
}

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

.his-today-data > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    min-height: 170px;
    padding: 28px 22px;
    border-right: 1px solid rgba(23, 32, 39, .13);
}

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

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

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

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

.his-today-data strong {
    font-family: "Albert Sans", sans-serif;
    font-size: clamp(24px, 2.2vw, 35px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.his-today-data dd span {
    color: var(--his-muted);
    font-size: 12px;
}

.his-closing {
    padding: 82px 0;
    background: var(--his-paper);
}

.his-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .55fr);
    gap: clamp(70px, 10vw, 160px);
    align-items: end;
}

.his-closing .his-label {
    margin-bottom: 21px;
}

.his-closing h2 {
    max-width: 950px;
    font-size: clamp(38px, 4.5vw, 66px);
}

.his-closing-links {
    border-top: 1px solid var(--his-line);
}

.his-closing-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 66px;
    border-bottom: 1px solid var(--his-line);
    color: var(--his-graphite);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.his-closing-links a:hover,
.his-closing-links a:focus-visible {
    color: var(--rivimetal-red);
}

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

    .his-visual-chapter {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr);
    }
}

@media (max-width: 991px) {
    .his-chapter {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 28px;
    }

    .his-milestone {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 44px;
        padding-left: 38px;
    }

    .his-editorial-image-wide {
        margin-left: 98px;
    }

    .his-visual-chapter,
    .his-today-head,
    .his-closing-grid {
        grid-template-columns: 1fr;
    }

    .his-visual-chapter-reverse figure,
    .his-visual-chapter-reverse .his-visual-copy {
        order: initial;
    }

    .his-visual-copy {
        max-width: 720px;
    }

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

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

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

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

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

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

    .his-hero-image {
        object-position: 58% center;
    }

    .his-hero-shade {
        background: linear-gradient(180deg, rgba(10, 15, 19, .68) 0%, rgba(10, 15, 19, .26) 34%, rgba(10, 15, 19, .89) 73%, rgba(10, 15, 19, .96) 100%);
    }

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

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

    .his-hero h1 {
        font-size: clamp(43px, 12.5vw, 58px);
    }

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

    .his-intro,
    .his-timeline,
    .his-today {
        padding-top: 76px;
    }

    .his-intro {
        padding-bottom: 82px;
    }

    .his-intro-grid,
    .his-timeline-head {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .his-intro h2,
    .his-timeline-head h2,
    .his-today h2 {
        font-size: 39px;
    }

    .his-intro p {
        font-size: 15px;
    }

    .his-timeline {
        padding-bottom: 84px;
    }

    .his-timeline-head {
        margin-bottom: 58px;
    }

    .his-chapter {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .his-chapter-marker {
        padding: 22px 0;
    }

    .his-milestones {
        border-left: 0;
    }

    .his-milestone {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: 0;
        padding: 34px 0 42px;
    }

    .his-milestone time,
    .his-visual-copy time {
        font-size: 56px;
    }

    .his-milestone h3,
    .his-visual-copy h3 {
        font-size: 27px;
    }

    .his-editorial-image-wide {
        margin: 64px 0 76px;
    }

    .his-editorial-image-wide img {
        height: 360px;
    }

    .his-chapter-automotive {
        margin-top: 72px;
    }

    .his-milestone-feature {
        min-height: 0;
    }

    .his-visual-chapter {
        gap: 45px;
        margin-top: 76px;
        padding-top: 70px;
    }

    .his-visual-chapter .his-editorial-image img {
        aspect-ratio: 1 / .82;
    }

    .his-visual-copy .his-chapter-marker {
        margin-bottom: 34px;
    }

    .his-today-head {
        gap: 27px;
        margin-bottom: 46px;
    }

    .his-today-image img {
        height: 400px;
    }

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

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

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

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

    .his-closing {
        padding: 66px 0;
    }

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

    .his-closing h2 {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .his-closing-links a {
        transition: none;
    }
}
