.restore-page {
    --restore-navy: #07152f;
    --restore-navy-soft: #0d2146;
    --restore-ink: #131a2b;
    --restore-muted: #657086;
    --restore-gold: #cba968;
    --restore-gold-light: #ecd69f;
    --restore-paper: #f4f0e7;
    --restore-line: rgba(13, 33, 70, .14);
    overflow: hidden;
    color: var(--restore-ink);
    background: #fff;
}

.restore-page *,
.restore-page *::before,
.restore-page *::after {
    box-sizing: border-box;
}

.restore-section {
    padding: clamp(64px, 8vw, 112px) 0;
}

.restore-section--compact {
    padding-top: 0;
}

.restore-section--paper {
    background: var(--restore-paper);
}

.restore-section--navy {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0, rgba(47, 59, 154, .34), transparent 34%),
        linear-gradient(145deg, var(--restore-navy), #08091e 70%);
}

.restore-section--navy::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 20vw 100%;
    content: "";
}

.restore-section--navy > .site-container {
    position: relative;
}

.restore-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: #9b7940;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.5;
}

.restore-kicker::before {
    width: 34px;
    height: 1px;
    flex: 0 0 auto;
    background: currentColor;
    content: "";
}

.restore-heading {
    max-width: 760px;
    margin-bottom: clamp(32px, 5vw, 60px);
}

.restore-heading h2,
.restore-copy h2,
.restore-intro h2 {
    margin: 0;
    color: var(--restore-ink);
    font-family: var(--serif, "Noto Serif SC", "Songti SC", serif);
    font-size: clamp(31px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.28;
}

.restore-heading > p:last-child,
.restore-copy > p,
.restore-intro__inner > p:last-child {
    color: var(--restore-muted);
    font-size: 17px;
    line-height: 1.95;
}

.restore-heading > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
}

.restore-heading--light h2 {
    color: #fff;
}

.restore-heading--light > p:last-child {
    color: rgba(255, 255, 255, .7);
}

.restore-heading--light .restore-kicker,
.restore-section--navy .restore-kicker {
    color: var(--restore-gold-light);
}

.restore-intro {
    background: linear-gradient(90deg, #fff 0, #fff 68%, #faf7ef 68%);
}

.restore-intro__inner {
    max-width: 890px;
    margin-inline: auto;
    text-align: center;
}

.restore-intro__inner .restore-kicker {
    justify-content: center;
}

.restore-intro__inner .restore-kicker::after {
    width: 34px;
    height: 1px;
    background: currentColor;
    content: "";
}

.restore-lead {
    font-size: clamp(18px, 2vw, 21px) !important;
}

.restore-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 32px);
}

.restore-entry-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    color: var(--restore-ink);
    background: #fff;
    border: 1px solid var(--restore-line);
    box-shadow: 0 18px 55px rgba(10, 24, 51, .08);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.restore-entry-card:hover,
.restore-entry-card:focus-visible {
    border-color: rgba(203, 169, 104, .75);
    box-shadow: 0 24px 65px rgba(10, 24, 51, .14);
    transform: translateY(-5px);
}

.restore-entry-card:focus-visible {
    outline: 3px solid rgba(203, 169, 104, .45);
    outline-offset: 3px;
}

.restore-entry-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8e7e4;
}

.restore-entry-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.restore-entry-card:hover .restore-entry-card__media img {
    transform: scale(1.025);
}

.restore-entry-card__body {
    display: flex;
    min-height: 230px;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.restore-entry-card__number {
    margin-bottom: 28px;
    color: #9b7940;
    font-family: Georgia, serif;
    font-size: 14px;
    letter-spacing: .12em;
}

.restore-entry-card__body strong {
    margin-bottom: 9px;
    font-family: var(--serif, "Noto Serif SC", "Songti SC", serif);
    font-size: 27px;
    font-weight: 600;
}

.restore-entry-card__body > span:not(.restore-entry-card__number, .restore-entry-card__link) {
    color: var(--restore-muted);
    line-height: 1.75;
}

.restore-entry-card__link {
    margin-top: auto;
    padding-top: 24px;
    color: #80612f;
    font-weight: 700;
}

.restore-split {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(36px, 7vw, 96px);
}

.restore-split--company {
    align-items: center;
}

.restore-copy > p {
    margin: 20px 0 0;
}

.restore-media,
.restore-figure,
.restore-office-grid figure {
    margin: 0;
}

.restore-media {
    position: relative;
    overflow: hidden;
    background: #e8e7e4;
    box-shadow: 24px 24px 0 var(--restore-paper);
}

.restore-media::before {
    position: absolute;
    z-index: 1;
    inset: 18px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .55);
    content: "";
}

.restore-media img {
    display: block;
    width: 100%;
    height: auto;
}

.restore-stat-grid {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid rgba(255, 255, 255, .15);
}

.restore-stat-grid > div {
    padding: 36px clamp(16px, 3vw, 42px);
    text-align: center;
}

.restore-stat-grid > div + div {
    border-left: 1px solid rgba(255, 255, 255, .15);
}

.restore-stat-grid dt {
    color: var(--restore-gold-light);
    font-family: Georgia, var(--serif, serif);
    font-size: clamp(40px, 4.6vw, 66px);
    line-height: 1;
}

.restore-stat-grid dd {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    letter-spacing: .08em;
}

.restore-values-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
    gap: clamp(30px, 5vw, 72px);
}

.restore-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--restore-line);
    border-left: 1px solid var(--restore-line);
}

.restore-value-grid article {
    min-height: 190px;
    padding: 28px;
    border-right: 1px solid var(--restore-line);
    border-bottom: 1px solid var(--restore-line);
}

.restore-value-grid article:last-child {
    grid-column: 1 / -1;
}

.restore-value-grid article > span {
    color: #a1824e;
    font-family: Georgia, serif;
    font-size: 13px;
}

.restore-value-grid h3 {
    margin: 21px 0 8px;
    color: var(--restore-ink);
    font-family: var(--serif, "Noto Serif SC", serif);
    font-size: 24px;
}

.restore-value-grid p {
    margin: 0;
    color: var(--restore-muted);
    line-height: 1.8;
}

.restore-figure {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13, 33, 70, .1);
    box-shadow: 0 18px 50px rgba(8, 20, 43, .08);
}

.restore-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.restore-figure figcaption {
    padding: 13px 18px;
    color: var(--restore-muted);
    background: #fff;
    border-top: 1px solid var(--restore-line);
    font-size: 13px;
    line-height: 1.6;
}

.restore-figure--contained {
    padding: clamp(16px, 2vw, 26px);
}

.restore-split--history {
    align-items: start;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
}

.restore-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.restore-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 78px;
    padding: 0 0 30px 30px;
    border-left: 1px solid rgba(155, 121, 64, .4);
}

.restore-timeline li::before {
    position: absolute;
    top: 5px;
    left: -6px;
    width: 11px;
    height: 11px;
    background: #9b7940;
    border: 3px solid var(--restore-paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px #9b7940;
    content: "";
}

.restore-timeline li:last-child {
    padding-bottom: 0;
}

.restore-timeline time {
    color: #856736;
    font-family: Georgia, serif;
    font-weight: 700;
}

.restore-timeline p {
    margin: 0;
    color: #4f596d;
    line-height: 1.75;
}

.restore-office-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.restore-office-grid figure {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    background: #e7e7e7;
}

.restore-office-grid img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform .4s ease;
}

.restore-office-grid figure:hover img {
    transform: scale(1.025);
}

.restore-office-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 50px 20px 20px;
    color: #fff;
    background: linear-gradient(transparent, rgba(4, 10, 25, .88));
    font-weight: 700;
    letter-spacing: .05em;
}

.restore-split--knowledge {
    grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
}

.restore-model-stack {
    display: grid;
    gap: clamp(54px, 7vw, 90px);
}

.restore-model {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(230px, .34fr) minmax(0, .66fr);
    gap: clamp(28px, 5vw, 70px);
}

.restore-model__heading {
    position: sticky;
    top: 100px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
}

.restore-model__heading > span {
    padding-top: 5px;
    color: var(--restore-gold-light);
    font-family: Georgia, serif;
    font-size: 14px;
}

.restore-model__heading h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--serif, "Noto Serif SC", serif);
    font-size: clamp(25px, 2.8vw, 36px);
    font-weight: 600;
}

.restore-model__heading p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
}

.restore-model .restore-figure {
    border-color: rgba(236, 214, 159, .2);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .24);
}

.restore-editor-section {
    padding-top: 0;
}

/* Original company and know-how pages use uninterrupted image-led layouts. */
.restore-original-story {
    padding: clamp(42px, 5vw, 72px) 0;
    background: #fff;
}

.restore-original-story--knowledge {
    padding-top: 0;
}

.restore-original-story__stack {
    display: grid;
    gap: clamp(22px, 3vw, 42px);
}

.restore-original-panel {
    margin: 0;
    overflow: hidden;
    background: #fff;
}

.restore-original-panel img {
    display: block;
    width: 100%;
    height: auto;
    margin-inline: auto;
}

.restore-original-panel--medium img {
    max-width: 900px;
}

.restore-original-panel--compact img {
    max-width: 800px;
}

.restore-original-panel--narrow img {
    max-width: 700px;
}

.restore-knowledge-original__intro {
    padding: clamp(58px, 7vw, 96px) 0 clamp(34px, 4vw, 58px);
    background: #fff;
    text-align: center;
}

.restore-knowledge-original__intro h2 {
    margin: 0;
    color: var(--restore-ink);
    font-family: var(--serif, "Noto Serif SC", "Songti SC", serif);
    font-size: clamp(30px, 3.7vw, 50px);
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.35;
}

.restore-knowledge-original__intro p {
    margin: 16px 0 0;
    color: var(--restore-muted);
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: .04em;
    line-height: 1.8;
}

.company-photo-marquee {
    --company-marquee-item-width: 320px;
    --company-marquee-gap: 18px;
    --company-marquee-duration: 190s;
    padding: clamp(28px, 4vw, 52px) 0 clamp(52px, 6vw, 84px);
    overflow: hidden;
    background: #fff;
}

.company-photo-marquee__viewport {
    overflow: hidden;
    outline: none;
}

.company-photo-marquee__viewport:focus-visible {
    outline: 3px solid rgba(203, 169, 104, .65);
    outline-offset: -3px;
}

.company-photo-marquee__track {
    display: flex;
    width: max-content;
    animation: company-photo-flow-right var(--company-marquee-duration) linear infinite;
    will-change: transform;
}

.company-photo-marquee__group {
    display: flex;
    align-items: center;
    gap: var(--company-marquee-gap);
    padding-right: var(--company-marquee-gap);
}

.company-photo-marquee__item {
    width: var(--company-marquee-item-width);
    flex: 0 0 var(--company-marquee-item-width);
    margin: 0;
    overflow: hidden;
    background: #eef0f3;
}

.company-photo-marquee__item img {
    display: block;
    width: 100%;
    height: auto;
}

.company-photo-marquee:hover .company-photo-marquee__track,
.company-photo-marquee:focus-within .company-photo-marquee__track {
    animation-play-state: paused;
}

@keyframes company-photo-flow-right {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 980px) {
    .restore-entry-grid,
    .restore-office-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .restore-entry-card:last-child,
    .restore-office-grid figure:last-child {
        grid-column: 1 / -1;
    }

    .restore-split,
    .restore-split--history,
    .restore-split--knowledge,
    .restore-values-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .restore-media { box-shadow: 18px 18px 0 var(--restore-paper); }

    .restore-values-layout .restore-figure {
        max-width: 720px;
    }

    .restore-model {
        grid-template-columns: minmax(0, 1fr);
    }

    .restore-model__heading {
        position: static;
    }
}

@media (max-width: 720px) {
    .restore-section {
        padding: 58px 0;
    }

    .restore-section--compact {
        padding-top: 0;
    }

    .restore-heading {
        margin-bottom: 32px;
    }

    .restore-entry-grid,
    .restore-office-grid,
    .restore-value-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .restore-entry-card:last-child,
    .restore-office-grid figure:last-child,
    .restore-value-grid article:last-child {
        grid-column: auto;
    }

    .restore-entry-card__body {
        min-height: 210px;
        padding: 24px;
    }

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

    .restore-stat-grid > div + div {
        border-left: 0;
    }

    .restore-stat-grid > div:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, .15);
    }

    .restore-stat-grid > div:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .restore-value-grid article {
        min-height: auto;
    }

    .restore-timeline li {
        grid-template-columns: 76px minmax(0, 1fr);
        padding-left: 22px;
    }

    .restore-office-grid figure,
    .restore-office-grid img {
        min-height: 290px;
    }

    .restore-figure--long {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-color: var(--restore-gold) rgba(255, 255, 255, .1);
    }

    .restore-figure--long img {
        width: auto;
        min-width: 680px;
        max-width: none;
    }

    .restore-model__heading {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .restore-original-story {
        padding: 32px 0;
    }

    .restore-original-story--knowledge {
        padding-top: 0;
    }

    .restore-original-story__stack {
        gap: 18px;
    }

    .restore-knowledge-original__intro {
        padding: 50px 0 30px;
    }

    .company-photo-marquee {
        --company-marquee-item-width: 240px;
        --company-marquee-gap: 14px;
        --company-marquee-duration: 143s;
        padding: 24px 0 54px;
    }
}

@media (max-width: 480px) {
    .restore-stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .restore-stat-grid > div:nth-child(even) {
        border-left: 0;
    }

    .restore-stat-grid > div + div {
        border-top: 1px solid rgba(255, 255, 255, .15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .restore-entry-card,
    .restore-entry-card__media img,
    .restore-office-grid img {
        transition: none;
    }

    .company-photo-marquee__track {
        animation: company-photo-flow-right var(--company-marquee-duration) linear infinite !important;
    }
}
