.dorm-case-hero {
    padding: clamp(6.5rem, 8vw, 8rem) 0 clamp(2.6rem, 5.2vw, 4.6rem);
    background: #1a303a;
    color: #fff;
}
.dorm-case-hero .site-breadcrumbs {
    margin-bottom: clamp(1.6rem, 3.8vw, 3rem);
}
.dorm-case-intro {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: clamp(1.5rem, 5vw, 5rem);
}
.dorm-case-hero .site-eyebrow { color: #ffc399; }
.dorm-case-hero h1 {
    margin: .4rem 0 1rem;
    font-size: clamp(2.25rem, 4.4vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}
.dorm-case-hero .site-lead,
.dorm-project-outcome {
    max-width: 54ch;
    color: #dfebed;
    line-height: 1.6;
}
.dorm-case-hero .site-lead { margin: 0; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.dorm-project-outcome { margin-top: .75rem; }
.dorm-project-jump,
.dorm-project-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    text-decoration-thickness: .08em;
    text-underline-offset: .26em;
    font-weight: 650;
}
.dorm-project-jump { margin-top: .7rem; color: #ffc399; }
.dorm-project-back { margin-top: .9rem; color: var(--brand-copper); }
.dorm-project-jump:hover, .dorm-project-back:hover { text-decoration: underline; }
.dorm-case-intro > img { aspect-ratio: 24 / 17; object-fit: cover; border-radius: 12px; }

.dorm-case-details { background: #fbfcfa; scroll-margin-top: 4.5rem; }
.dorm-project-gallery-head {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: end;
    gap: .7rem clamp(1.5rem, 5vw, 5rem);
    margin-bottom: clamp(1.25rem, 2.6vw, 2rem);
}
.dorm-project-gallery-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 3rem);
    line-height: 1.13;
    letter-spacing: -.04em;
    margin: 0;
}
.dorm-project-gallery-head p { margin: 0; color: var(--text-muted); }
.dorm-case-gallery.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
}
.dorm-case-gallery figure { margin: 0; min-width: 0; }
.dorm-case-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #e1e8e7;
    cursor: zoom-in;
}
.dorm-case-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 70%;
}
.dorm-case-gallery figcaption {
    margin-top: .55rem;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.45;
}
.dorm-case-details .dorm-project-next {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
    background: #eef3f1;
    border-color: #d6dfdf;
}
.dorm-project-next p { margin: 0; color: var(--text-muted); }
.dorm-project-next .btn { justify-self: end; text-align: center; white-space: normal; }
.dorm-case-hero a:focus-visible, .dorm-case-details a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
.dorm-case-gallery a:focus-visible { outline-color: var(--brand-copper); }
@media (max-width: 780px) {
    .dorm-case-intro, .dorm-project-gallery-head, .dorm-case-details .dorm-project-next {
        grid-template-columns: minmax(0, 1fr);
    }
    .dorm-project-next .btn { justify-self: start; }
}
@media (max-width: 660px) {
    .dorm-case-gallery.photo-gallery { grid-template-columns: minmax(0, 1fr); }
    .dorm-case-gallery img { aspect-ratio: 3 / 2; }
}
