/* Project pages share one hero and a rail centered in the full left whitespace. */
.project-page .page-hero { min-height: 620px; align-items: stretch; isolation: isolate; }
.project-page .page-hero::before { background: rgba(3, 8, 20, .24); }
.project-page .page-hero-inner {
    width: min(1720px, calc(100% - 64px)); min-height: 620px;
    padding: 104px 0 44px; display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 4vw, 76px); align-items: center;
}
.project-hero-copy { position: relative; z-index: 3; min-width: 0; text-shadow: 0 2px 12px #07131e99; }
.project-page .page-hero h1 { max-width: none; font-size: clamp(64px, 6vw, 116px); line-height: .96; letter-spacing: -.045em; }
.project-page.design-page .page-hero h1 { font-size: clamp(108px, 9vw, 150px); }
.project-page .page-hero .lead { max-width: 560px; font-size: 20px; color: #e9f7f7; }
.project-page .project-hero--text .page-hero-inner { grid-template-columns: 1fr; }
.project-page .project-hero--text h1 { font-size: clamp(74px, 8vw, 140px); }
.project-photo-wall {
    height: 472px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px; overflow: hidden; padding: 10px; border: 1px solid #ffffff33;
    border-radius: 22px; background: #07131e38; box-shadow: 0 20px 60px #00000030;
}
.project-photo-column { min-width: 0; overflow: hidden; border-radius: 14px; }
.project-photo-track { animation: project-photo-flow 24s linear infinite; }
.project-photo-column--reverse .project-photo-track { animation-direction: reverse; animation-duration: 29s; }
.project-photo-set { display: grid; gap: 14px; padding-bottom: 14px; }
.project-photo-card { height: 142px; overflow: hidden; border: 1px solid #ffffff55; border-radius: 14px; background: #fff; }
.project-photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-photo-wall:hover .project-photo-track { animation-play-state: paused; }
@keyframes project-photo-flow { from { transform: translateY(0); } to { transform: translateY(-50%); } }

@media (min-width: 901px) {
    .project-page .editorial-layout {
        --project-rail: 340px;
        --project-article: min(1280px, calc(100vw - var(--project-rail) - 48px));
        display: grid; width: 100%; margin: 0; padding: 60px 48px 90px 0;
        grid-template-columns: minmax(var(--project-rail), 1fr) var(--project-article); column-gap: 0;
    }
    .project-page .editorial-sidebar { width: 316px; justify-self: center; translate: none; }
    .project-page .editorial-toc-link { padding: 12px 8px; font-size: 18px; gap: 8px; }
    .project-page .editorial-toc-number { flex-basis: 24px; }
    .project-page .editorial-toc-label { white-space: nowrap; overflow-wrap: normal; }
    .project-page .editorial-contents summary { padding-inline: 8px; }
}
@media (min-width: 901px) and (max-width: 1199px) {
    .project-page .editorial-layout { --project-rail: 310px; --project-article: calc(100vw - var(--project-rail) - 32px); padding-right: 32px; }
    .project-page .editorial-sidebar { width: 294px; }
    .project-page .editorial-toc-link { font-size: 17px; }
}
@media (max-width: 900px) {
    .project-page .editorial-layout { display: block; width: calc(100% - 40px); margin: auto; padding-top: 36px; }
    .project-page .editorial-sidebar { z-index: 5; top: 76px; margin-bottom: 34px; background: #fff; }
    .project-page .editorial-contents summary { padding-inline: 12px; }
    .project-page .editorial-toc-label { white-space: nowrap; overflow-wrap: normal; }
    .project-page .editorial-toc-link { font-size: 17px; }
    .project-page .editorial-back-top { display: none; }
    .project-page .page-hero-inner { gap: 24px; }
    .project-page .page-hero h1 { font-size: clamp(54px, 7vw, 70px); }
    .project-page.design-page .page-hero h1 { font-size: clamp(78px, 12vw, 108px); }
}
@media (max-width: 700px) {
    .project-page .page-hero, .project-page .page-hero-inner { min-height: 600px; }
    .project-page .page-hero-inner { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 26px; padding: 110px 0 32px; }
    .project-page .page-hero h1 { font-size: clamp(44px, 11vw, 68px); }
    .project-page.design-page .page-hero h1 { font-size: clamp(70px, 18vw, 96px); }
    .project-page .page-hero .lead { font-size: 17px; }
    .project-photo-wall { height: 260px; }
    .project-photo-card { height: 142px; }
    .project-page .project-hero--text .page-hero-inner { align-content: center; }
    .project-page .editorial-layout { width: calc(100% - 36px); }
    .project-page .editorial-toc-link { font-size: 16px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-photo-column { overflow-y: auto; scrollbar-width: thin; }
    .project-photo-track { animation: none; }
    .project-photo-set[aria-hidden="true"] { display: none; }
}
