/* 포트폴리오: 소개와 프로젝트 화면을 간결하게 보여준다. */
.pf-case { background:#faf8f5; color:#27231f; font-family:Pretendard,sans-serif; padding:132px 0 110px; }
.pf-case * { box-sizing:border-box; }
.pf-case h1,.pf-case h2,.pf-case p,.pf-case figure,.pf-case dl,.pf-case dd { margin:0; }
.pf-case a { color:inherit; text-decoration:none; }
.pf-case-wrap { width:min(90%,1200px); margin:0 auto; }
.pf-case-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
.pf-case-crumb { display:flex; align-items:center; gap:12px; color:#867d73; font-size:13px; }
.pf-case-crumb a:hover,.pf-case-byline a:hover { text-decoration:underline; }
.pf-case-admin { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; color:#4d4d4d; font-size:14px; }
.pf-case-admin>a,.pf-case-edit summary { display:flex; align-items:center; gap:3px; padding:2px 5px; border:0; border-radius:5px; background:transparent; color:#4d4d4d; font-size:14px; font-weight:400; cursor:pointer; }
.pf-case-admin img { display:block; width:18px; height:18px; }
.pf-case-edit { position:relative; }
.pf-case-edit summary { list-style:none; }
.pf-case-edit summary::-webkit-details-marker { display:none; }
.pf-case-edit-menu { position:absolute; z-index:20; top:calc(100% + 12px); right:0; min-width:calc(100% + 20px); margin:0; padding:0 8px; border:1px solid #e6e6e6; background:#fff; list-style:none; text-align:center; }
.pf-case-edit-menu::before { content:''; position:absolute; top:-5px; right:10px; width:10px; height:10px; transform:rotate(45deg); border-top:1px solid #e6e6e6; border-left:1px solid #e6e6e6; background:#fff; }
.pf-case-edit-menu li+li { border-top:1px solid #e6e6e6; }
.pf-case-edit-menu a { position:relative; display:block; padding:6px 2px; color:#666; font-size:.9em; white-space:nowrap; }
.pf-case-edit summary:focus-visible { outline:3px solid #ac8c6b; outline-offset:3px; }
.pf-case-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(36px,6vw,84px); padding:65px 0 105px; }
.pf-case-hero.no-image { grid-template-columns:minmax(0,760px); }
.pf-case--landing .pf-case-cover { grid-column:1; grid-row:1; }
.pf-case--landing .pf-case-intro { grid-column:2; grid-row:1; }
.pf-case--landing .pf-case-hero.no-image .pf-case-intro { grid-column:1; }
.pf-case-eyebrow,.pf-case-label { display:flex; align-items:center; gap:10px; color:#8c7a67; font-size:11px; font-weight:700; letter-spacing:.13em; }
.pf-case-eyebrow span { display:block; width:22px; height:2px; background:var(--case-accent); }
.pf-case-client { margin-top:28px !important; color:#8c7a67; font-size:15px; font-weight:600; }
.pf-case h1 { margin-top:14px; font-size:clamp(36px,3.6vw,54px); font-weight:700; line-height:1.28; letter-spacing:-.055em; word-break:keep-all; }
.pf-case-lead { margin-top:24px !important; color:#6b635a; font-size:16px; line-height:1.85; word-break:keep-all; }
.pf-case-info { display:flex; flex-wrap:wrap; gap:18px 38px; margin-top:34px !important; padding-top:24px; border-top:1px solid #e3dcd2; }
.pf-case-info div { min-width:105px; }
.pf-case-info dt { color:#9b8e80; font-size:12px; }
.pf-case-info dd { margin-top:6px; color:#443d35; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.pf-case-info dd a { text-decoration:underline; text-underline-offset:3px; }
.pf-case-byline { display:flex; gap:8px; margin-top:25px !important; color:#9a8e82; font-size:12px; }
.pf-case-cover { position:relative; padding:10px; border:1px solid #e7ded2; border-radius:18px; background:#fff; box-shadow:0 20px 55px rgba(68,48,30,.1); }
.pf-case-cover img { display:block; width:100%; aspect-ratio:16/11; object-fit:cover; object-position:top center; border-radius:10px; background:#eee9e3; }
.pf-case-about { display:grid; grid-template-columns:1fr 2fr; gap:50px; padding:75px 0 95px; border-top:1px solid #e4ddd4; }
.pf-case h2 { margin-top:14px; font-size:30px; font-weight:700; line-height:1.3; letter-spacing:-.045em; }
.pf-case-about-text { color:#60584f; font-size:16px; line-height:2; word-break:keep-all; }
.pf-case-about-text p+p { margin-top:12px; }
.pf-case-gallery { padding:0 0 100px; }
.pf-case-gallery-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:30px; }
.pf-case-gallery-head>p { color:#978b7e; font-size:13px; }
.pf-case-gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px 22px; }
.pf-case-shot { min-width:0; }
.pf-case-shot.is-main { grid-column:1 / -1; }
.pf-case-shot-image { overflow:hidden; aspect-ratio:16/10; border:1px solid #e6ded4; border-radius:12px; background:#ede8e1; }
.pf-case-shot.is-main .pf-case-shot-image { aspect-ratio:16/9; }
.pf-case-shot-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:top center; }
.pf-case-shot.is-full .pf-case-shot-image { aspect-ratio:auto; }
.pf-case-shot.is-full .pf-case-shot-image img { width:100%; height:auto; }
.pf-case-shot:not(.is-main) .pf-case-shot-image img { object-position:center 18%; }
.pf-case-shot.is-portrait .pf-case-shot-image img { object-fit:contain; }
.pf-case-shot figcaption { display:flex; justify-content:space-between; gap:15px; padding:13px 2px 0; color:#81766a; font-size:13px; }
.pf-case-shot figcaption span:last-child { color:#b2a599; font-size:11px; }
.pf-case-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid #ded6cc; border-bottom:1px solid #ded6cc; }
.pf-case-nav a { display:flex; min-width:0; flex-direction:column; gap:9px; padding:27px 12px 27px 0; }
.pf-case-nav a.next { grid-column:2; align-items:flex-end; padding-right:0; text-align:right; }
.pf-case-nav a:hover strong { text-decoration:underline; text-underline-offset:4px; }
.pf-case-nav span { color:#a09284; font-size:12px; }
.pf-case-nav strong { overflow:hidden; max-width:100%; color:#39332d; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.pf-case-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:45px; }
.pf-case-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 24px; border:1px solid #d5c9bc; border-radius:6px; font-size:14px; font-weight:700; }
.pf-case-actions a.primary { border-color:#3c3026; background:#3c3026; color:#fff; }
.pf-case a:focus-visible { outline:3px solid #ac8c6b; outline-offset:3px; }
@media(max-width:850px) {
 .pf-case { padding:105px 0 80px; }
 .pf-case-hero,.pf-case-hero.no-image { grid-template-columns:minmax(0,1fr); gap:32px; padding:45px 0 70px; }
 .pf-case--landing .pf-case-cover,.pf-case--landing .pf-case-intro { grid-column:auto; grid-row:auto; }
 .pf-case-intro { order:1; }
 .pf-case-cover { order:2; }
 .pf-case-about { grid-template-columns:1fr; gap:22px; padding:60px 0 70px; }
 .pf-case-gallery { padding-bottom:75px; }
}
@media(max-width:560px) {
 .pf-case { padding-top:90px; }
 .pf-case-wrap { width:90%; }
 .pf-case-hero,.pf-case-hero.no-image { padding-top:35px; }
 .pf-case-client { margin-top:22px !important; }
 .pf-case h1 { font-size:34px; }
 .pf-case-lead,.pf-case-about-text { font-size:15px; }
 .pf-case-info { gap:18px 24px; }
 .pf-case h2 { font-size:26px; }
 .pf-case-gallery-head { align-items:flex-start; flex-direction:column; gap:12px; }
 .pf-case-gallery-grid { gap:24px 12px; }
 .pf-case-shot-image,.pf-case-cover { border-radius:8px; }
 .pf-case-shot figcaption { font-size:12px; }
 .pf-case-nav strong { font-size:13px; }
}
@media(max-width:500px) {
 .pf-case-admin,.pf-case-admin>a,.pf-case-edit summary { font-size:12px; }
}
