.portfolio-page { background: #eee9e0; color: #292622; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.portfolio-page :is(h1, h2, h3) { font-family: inherit; font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.portfolio-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 700px; display: flex; align-items: end; padding-block: 180px 65px; background: #272724; }
.portfolio-hero-media { position: absolute; inset: 0; z-index: -1; }
.portfolio-hero-main-image { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.portfolio-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #171715e8 0%, #171715c7 38%, #17171547 80%), linear-gradient(0deg, #171715d9, transparent 55%); }
.portfolio-hero-inset { position: absolute; z-index: 1; right: clamp(25px, 6vw, 110px); width: clamp(135px, 15vw, 245px); height: clamp(140px, 15vw, 235px); object-fit: cover; border: 5px solid #e7dbc8; box-shadow: 0 20px 45px #0008; }
.portfolio-hero-inset-interior { top: 18%; transform: rotate(5deg); }
.portfolio-hero-inset-landscape { top: 48%; right: clamp(100px, 17vw, 315px); transform: rotate(-7deg); }
.portfolio-hero-main-image { animation: portfolio-image-enter 1.8s ease-out both, portfolio-image-drift 16s 1.8s ease-in-out infinite alternate; }
.portfolio-hero-inset-interior { animation: portfolio-inset-interior-enter 1s .35s ease-out both, portfolio-interior-float 5s 1.35s ease-in-out infinite alternate; }
.portfolio-hero-inset-landscape { animation: portfolio-inset-landscape-enter 1s .55s ease-out both, portfolio-landscape-float 6s 1.55s ease-in-out infinite alternate; }
.portfolio-hero .eyebrow { animation: portfolio-copy-enter .8s .25s ease-out both; }
.portfolio-hero h1 { animation: portfolio-copy-enter .9s .4s ease-out both; }
.portfolio-hero-bottom { animation: portfolio-copy-enter .9s .6s ease-out both; }
.portfolio-hero-bottom::before { content: ''; position: absolute; top: -1px; left: 0; width: min(260px, 35vw); height: 2px; background: #e6bd72; transform-origin: left; animation: portfolio-line-enter 1.2s 1s ease-out both; }
.portfolio-hero-bottom > span span { display: inline-block; animation: portfolio-arrow-bob 2s 1.5s ease-in-out infinite; }
@keyframes portfolio-image-enter { from { transform: scale(1.08); opacity: .65; } to { transform: scale(1); opacity: 1; } }
@keyframes portfolio-image-drift { from { transform: scale(1); } to { transform: scale(1.06) translateX(-1%); } }
@keyframes portfolio-inset-interior-enter { from { transform: translateY(35px) rotate(12deg); opacity: 0; } to { transform: translateY(0) rotate(5deg); opacity: 1; } }
@keyframes portfolio-inset-landscape-enter { from { transform: translateY(35px) rotate(-14deg); opacity: 0; } to { transform: translateY(0) rotate(-7deg); opacity: 1; } }
@keyframes portfolio-interior-float { from { transform: translateY(0) rotate(5deg); } to { transform: translateY(-12px) rotate(7deg); } }
@keyframes portfolio-landscape-float { from { transform: translateY(0) rotate(-7deg); } to { transform: translateY(11px) rotate(-9deg); } }
@keyframes portfolio-copy-enter { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes portfolio-line-enter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes portfolio-arrow-bob { 50% { transform: translateY(6px); } }
.portfolio-hero .page-container { position: relative; z-index: 1; }
.portfolio-hero h1 { max-width: 850px; font-size: clamp(48px, 7vw, 110px); text-shadow: 0 4px 30px #0008; }
.portfolio-hero h1 em { color: #d8b878; }
.portfolio-hero-bottom { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 65px; padding-top: 22px; border-top: 1px solid #ffffff55; }
.portfolio-hero-bottom p { max-width: 350px; margin: 0; }
.portfolio-hero-bottom > span { color: #e9d6b6; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.portfolio-work { min-height: 650px; }
.portfolio-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.portfolio-intro h2, .portfolio-detail-gallery h2 { color: #292622; }
.portfolio-intro h2 em { color: #9c733b; }
.portfolio-intro > p { max-width: 310px; margin-bottom: 5px; color: #625c53; }
.portfolio-filters { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 25px; margin-bottom: 24px; scrollbar-width: thin; }
.portfolio-filters a { flex: 0 0 auto; padding: 12px 22px; border: 1px solid #b8aa95; border-radius: 99px; color: #292622; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.portfolio-filters a:hover, .portfolio-filters a.is-active { border-color: #292622; background: #292622; color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.portfolio-card { position: relative; display: block; min-height: 420px; overflow: hidden; background: #393732; }
.portfolio-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transition: transform .6s; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #171614dc); }
.portfolio-card-content { position: absolute; z-index: 1; inset: auto 30px 26px; color: #fff; }
.portfolio-card-content > span:first-child { color: #e9c789; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.portfolio-card h3 { margin-top: 10px; font-size: clamp(32px, 3.6vw, 52px); }
.portfolio-card-arrow { position: absolute; right: 0; bottom: 7px; font-size: 30px; }
.portfolio-empty { grid-column: 1 / -1; padding: 75px 40px; background: #e1d9ca; text-align: center; }
.portfolio-empty > span { color: #906834; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; }
.portfolio-empty h3 { margin: 12px 0; color: #292622; font-size: clamp(40px, 6vw, 70px); }
.portfolio-empty p { margin: 0; color: #625c53; }
.portfolio-detail-hero { position: relative; display: flex; align-items: end; min-height: clamp(360px, 56svh, 620px); padding-block: 150px clamp(32px, 5vw, 65px); background: #252320; }
.portfolio-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.portfolio-detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, #151413bd); }
.portfolio-detail-hero .page-container { position: relative; z-index: 1; }
.portfolio-detail-hero h1 { font-size: clamp(36px, 6vw, 88px); overflow-wrap: anywhere; }
.portfolio-back { display: inline-block; margin-bottom: 35px; color: #d7af69; font-size: 13px; font-weight: 700; }
.portfolio-back:hover { color: #fff; }
.portfolio-detail-gallery { padding-block: clamp(36px, 5vw, 72px); }
.portfolio-detail-gallery > .page-container { max-width: 1260px; }
.portfolio-detail-gallery .eyebrow { color: #6f5228; margin-bottom: 12px; }
.portfolio-detail-overview { margin-bottom: clamp(32px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid #9c733b40; }
.portfolio-detail-overview h2 { font-size: clamp(32px, 4vw, 54px); margin-bottom: 18px; }
.portfolio-detail-description { max-width: 68ch; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; line-height: 1.6; }
.portfolio-detail-description p { color: #332d25; }
.portfolio-detail-description p + p { margin-top: 12px; }
.portfolio-detail-photos-title { font-size: clamp(32px, 4vw, 54px); margin-bottom: 24px; }
.portfolio-detail-grid { --photo-gap: clamp(12px, 1.6vw, 22px); columns: 3; column-gap: var(--photo-gap); margin-bottom: 28px; }
.portfolio-detail-grid figure { position: relative; break-inside: avoid; overflow: hidden; margin: 0 0 var(--photo-gap); aspect-ratio: var(--photo-width) / 123.47; border-radius: 8px; background: #ddd5c9; }
.portfolio-detail-grid img { position: absolute; top: 0; left: calc(-100% * var(--photo-left) / var(--photo-width)); width: calc(32000% / var(--photo-width)); max-width: none; height: auto; }
.portfolio-detail-gallery .portfolio-back { color: #6f5228; margin-bottom: 0; }
.portfolio-detail-gallery .portfolio-back:hover { color: #332d25; text-decoration: underline; }
@media (max-width: 991.98px) {
    .portfolio-detail-grid { columns: 2; }
}
@media (max-width: 767.98px) {
    .portfolio-hero { min-height: 650px; }
    .portfolio-hero-main-image { object-position: 60% center; }
    .portfolio-hero-media::after { background: linear-gradient(0deg, #171715ed, #17171599 65%, #17171544); }
    .portfolio-hero-inset { width: 110px; height: 125px; border-width: 3px; }
    .portfolio-hero-inset-interior { top: 16%; right: 24px; }
    .portfolio-hero-inset-landscape { top: 19%; right: 120px; }
    .portfolio-hero-bottom, .portfolio-intro { align-items: start; flex-direction: column; }
    .portfolio-hero-bottom { margin-top: 45px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card, .portfolio-card img { min-height: 330px; }
}
@media (max-width: 575.98px) {
    .portfolio-detail-grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .portfolio-hero-main-image, .portfolio-hero-inset, .portfolio-hero .eyebrow, .portfolio-hero h1, .portfolio-hero-bottom, .portfolio-hero-bottom::before, .portfolio-hero-bottom > span span { animation: none; }
    .portfolio-card img { transition: none; }
}
