/* Portrait artwork on the homepage, case cards, and case detail. */
.portrait-stage {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 45% 25%, #f5f4ec 0%, #e5e7dc 84%);
}
.book-face {
    position: relative;
    display: block;
    aspect-ratio: 210 / 297;
    background: #fffef9;
    box-shadow: 2px 1px #f7f7ee, 4px 2px #d5d7cc, 9px 13px 24px #333b332c;
}
.book-face img,
.brochure-card .case-image .book-face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}
.portrait-hero {
    margin: 0;
    min-width: 0;
}
.portrait-hero-stage {
    min-height: 440px;
    padding: 28px 32px 32px;
    border: 1px solid #d9ded1;
    border-radius: 5px;
}
.portrait-hero-stage .book-face {
    width: min(66%, 270px);
}
.portrait-hero figcaption {
    margin-top: 12px;
    color: #566155;
    font-size: 12px;
}
.brochure-card .case-image.portrait-stage {
    display: grid;
    aspect-ratio: 5 / 6;
    background-color: #e5e7dc;
}
.brochure-card:nth-child(3n + 2) .case-image.portrait-stage {
    background: radial-gradient(ellipse at 45% 25%, #f7f3e9, #e9e0d1);
}
.brochure-card:nth-child(3n + 3) .case-image.portrait-stage {
    background: radial-gradient(ellipse at 45% 25%, #f0f5ef, #dce6dc);
}
.brochure-card .case-image .book-face {
    width: 65%;
    transition: transform .22s ease;
}
.brochure-card .case-image:hover .book-face {
    transform: translateY(-3px);
}
.portrait-detail {
    padding-top: 26px;
    padding-bottom: 54px;
}
.portrait-detail .breadcrumb {
    display: inline-block;
    margin-bottom: 23px;
}
.portrait-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5.2vw, 80px);
}
.portrait-detail-stage {
    min-width: 0;
    min-height: 550px;
    margin: 0;
    padding: 36px 24px 39px;
    border: 1px solid #dce1d4;
    border-radius: 5px;
}
.portrait-detail-stage .book-face {
    width: min(74%, 335px);
}
.portrait-project {
    min-width: 0;
    align-self: center;
    padding: 8px 0;
}
.portrait-demo-label {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 9px;
    color: #655b3e;
    background: #ebe5d4;
    border-radius: 3px;
    font-size: 11px;
}
.portrait-project h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.portrait-project-summary {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.85;
    color: #596458;
    overflow-wrap: anywhere;
}
.portrait-specs h2 {
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 600;
}
.portrait-specs dl {
    margin: 0;
    border-top: 1px solid #dfe2d6;
}
.portrait-specs dl > div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid #dfe2d6;
    padding: 9px 0;
    font-size: 13px;
}
.portrait-specs dt { color: #636d61; }
.portrait-specs dd { margin: 0; overflow-wrap: anywhere; }
.portrait-project-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 13px;
    margin-top: 24px;
}
.portrait-secondary-link {
    color: #556348;
    font-size: 12px;
    padding: 8px 0;
}
.brochure-site .portrait-related .section-heading h2 { font-size: 22px; }
@media (max-width: 900px) {
    .portrait-hero-stage { min-height: 360px; padding: 24px; }
    .portrait-detail-grid { gap: 30px; }
    .portrait-detail-stage { min-height: 0; padding: 30px 18px 33px; }
    .portrait-detail-stage .book-face { width: min(86%, 335px); }
}
@media (max-width: 640px) {
    .portrait-hero-stage { min-height: 0; padding: 24px; }
    .portrait-hero-stage .book-face { width: min(72%, 235px); }
    .portrait-detail { padding-top: 17px; padding-bottom: 40px; }
    .portrait-detail .breadcrumb { margin-bottom: 16px; }
    .portrait-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .portrait-detail-stage { padding: 26px 20px 29px; }
    .portrait-detail-stage .book-face { width: min(78%, 260px); }
    .portrait-project { padding: 0; }
    .portrait-project-summary { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .brochure-card .case-image .book-face { transition: none; }
}
