/* Image-led project pages, with one original service illustration per story. */
.project-detail-page .project-page { width:calc(100% - 64px); max-width:1240px; padding-block:28px 64px; }
.project-back { display:inline-flex; align-items:center; min-height:44px; color:#526044; font-size:13px; text-decoration:underline; text-underline-offset:5px; }
.project-editorial { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:start; gap:64px; margin-top:24px; }
.project-visuals { min-width:0; text-align:left; }
.project-kicker { font:500 11px/1.6 var(--sans); letter-spacing:.1em; text-transform:uppercase; color:#526044; }
.gallery-kicker { width:fit-content; margin:0 0 18px; padding:7px 15px; border:1px solid #a5af92; border-radius:50% 40% 48% 38% / 25% 35% 25% 35%; background:#dce2cf; }
.project-gallery { display:grid; grid-template-columns:1fr 1fr; gap:22px 16px; }
.project-figure { min-width:0; margin:0; }
.project-figure.is-wide { grid-column:1/-1; }
.project-figure>a { display:flex; align-items:center; justify-content:center; min-height:150px; padding:12px; overflow:hidden; border-radius:16px 9px 19px 11px; background:var(--paper); transition:background .2s; }
.project-figure>a:hover { background:#e9ddca; }
.project-figure img { display:block; width:100%; height:auto; max-height:360px; object-fit:contain; }
.project-figure.is-wide img { max-height:440px; }
.project-figure:first-child.is-wide>a { min-height:260px; background:#faf6ed; padding:24px; }
.project-figure figcaption { padding:10px 3px 0; font-size:12px; line-height:1.6; color:#526044; text-wrap:pretty; }
.project-story { position:sticky; top:24px; text-align:left; padding:0 0 18px; }
.project-intro { text-align:center; }
.project-icon { width:90px; height:94px; margin:0 auto 22px; display:flex; align-items:center; justify-content:center; background:var(--paper); border-radius:38% 46% 35% 42%; transform:rotate(3deg); }
.project-icon img { width:65px; height:65px; object-fit:contain; transform:rotate(-3deg); }
.project-intro .project-kicker { margin:0 auto 12px; max-width:38ch; }
.project-detail-page .project-intro h1 { font:500 clamp(42px,5vw,68px)/1.08 var(--serif); text-transform:none; letter-spacing:-.045em; margin:0 0 22px; color:var(--ink); }
.project-time { display:flex; justify-content:center; flex-wrap:wrap; gap:5px 12px; font-size:12px; line-height:1.6; margin:0; color:#526044; }
.project-time strong { font-weight:500; color:var(--ink); }
.project-estimate-note { max-width:38ch; font-size:10px; line-height:1.6; margin:6px auto 0; color:#526044; }
.project-challenge { margin-top:30px; }
.project-story section { text-align:left; }
.project-story h2 { font:500 24px/1.2 var(--serif); margin:0 0 12px; color:var(--rust); letter-spacing:-.025em; }
.project-story .project-challenge h2::after { content:''; display:block; width:74px; height:9px; margin-top:10px; background:url('assets/brand/signoff-squiggle.svg') center/contain no-repeat; }
.project-story section>p,.project-steps p { font-size:14px; line-height:1.75; margin:0; text-wrap:pretty; }
.project-approach { margin-top:28px; }
.project-steps { list-style:none; counter-reset:project-step; margin:0; padding:0; display:grid; gap:18px; }
.project-steps li { position:relative; padding-left:35px; counter-increment:project-step; }
.project-steps li::before { content:'0' counter(project-step); position:absolute; top:2px; left:0; font-size:11px; font-weight:600; color:var(--rust); }
.project-steps h3 { font:600 15px/1.4 var(--sans); margin:0 0 4px; letter-spacing:-.01em; }
.project-deliverables { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px; margin:26px 0 20px; padding:0; list-style:none; }
.project-deliverables li { padding:6px 9px; border-radius:9px 5px 8px 6px; background:#e0e3d1; color:var(--ink); font-size:11px; line-height:1.4; }
.project-status-note { padding:12px 14px; background:#e9ddca; border-radius:9px 4px 11px 5px; font-size:12px; line-height:1.6; }
.project-credits { margin:20px 0 24px; font-size:11px; line-height:1.8; color:#526044; }
.project-credits a { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.project-bottom { display:flex; flex-direction:column; align-items:center; gap:20px; margin-top:60px; }
.project-bottom a { display:inline-flex; min-height:44px; align-items:center; text-decoration:underline; text-underline-offset:5px; font-size:14px; }
/* Dedicated page links retain the gallery title styling previously used by buttons. */
.work-set .project-title a { display:inline-flex; align-items:center; min-height:44px; font:600 28px/1.25 var(--sans); text-transform:none; }
.work-set .project-title a:hover { color:var(--rust); }
@media(min-width:1100px) and (max-height:1050px) { .project-story { position:static; } }
@media(max-width:900px) {
 .project-detail-page .project-page { width:calc(100% - 40px); }
 .project-editorial { grid-template-columns:1fr; gap:36px; margin-top:20px; }
 .project-story { position:static; grid-row:1; max-width:600px; margin:auto; }
 .project-visuals { grid-row:2; }
 .project-gallery { gap:20px 14px; }
 .project-intro h1 { font-size:48px; }
 .project-story section>p,.project-steps p { font-size:15px; }
}
@media(max-width:460px) {
 .project-detail-page .project-page { width:calc(100% - 32px); padding-top:16px; }
 .project-gallery { grid-template-columns:1fr; }
 .project-figure.is-wide { grid-column:auto; }
 .project-figure:first-child.is-wide>a { min-height:190px; }
 .project-figure img,.project-figure.is-wide img { max-height:420px; }
 .project-intro h1 { font-size:42px; }
 .project-icon { width:78px; height:82px; margin-bottom:18px; }
 .project-icon img { width:56px; height:56px; }
}
@media(prefers-reduced-motion:reduce) { .project-figure>a { transition:none; } }

/* The gallery label uses the site's forest ribbon and keeps its capital lettering. */
.gallery-kicker { position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 18px; border:0; border-radius:0; background:none; color:var(--paper); font-weight:500; letter-spacing:.1em; text-transform:uppercase; }
.gallery-kicker::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--ink); mask:url('assets/brand/invitation-ribbon.svg') center/100% 100% no-repeat; -webkit-mask:url('assets/brand/invitation-ribbon.svg') center/100% 100% no-repeat; }

/* Badges have their own row rather than sharing a grid track with slides. */
.gallery-subheading { grid-column:1/-1; margin:10px 0 -6px; font:500 22px/1.2 var(--serif); color:var(--rust); text-transform:lowercase; }
.project-gallery .badge-figure>a { height:260px; padding:14px; }
.project-gallery .badge-figure img { width:100%; height:100%; max-height:none; object-fit:contain; }
.project-gallery .spine-figure>a { height:260px; padding:14px; }
.project-gallery .spine-figure img { width:auto; max-width:100%; height:232px; max-height:100%; object-fit:contain; }
.project-mobile-feature,.project-mobile-nav { display:none; }
#project-gallery,#project-process { scroll-margin-top:32px; }
@media(max-width:900px) {
 .project-mobile-feature { display:block; margin:28px 0 10px; }
 .project-mobile-feature>a { min-height:0; padding:14px; background:var(--paper); }
 .project-mobile-feature img { width:100%; height:auto; max-height:420px; object-fit:contain; }
 .project-mobile-nav { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; margin:10px 0 24px; }
 .project-mobile-nav a { display:inline-flex; align-items:center; min-height:44px; padding:4px; font-size:14px; font-weight:500; text-decoration:underline; text-underline-offset:5px; }
 .project-mobile-nav span { color:var(--rust); }
 .project-gallery>figure:first-child { display:none; }
 .project-gallery { grid-template-columns:1fr 1fr; }
 .project-figure.is-wide { grid-column:1/-1; }
 .project-gallery .badge-figure>a { height:240px; }
}
@media(max-width:460px) {
 .project-gallery { grid-template-columns:1fr; }
 .project-gallery .badge-figure>a { height:260px; }
 .project-gallery .spine-figure>a { height:240px; }
}

.project-figure>a { cursor:zoom-in; }
.artwork-lightbox { width:min(1180px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:16px; border:0; border-radius:16px 10px 18px 12px; background:var(--paper); color:var(--ink); }
.artwork-lightbox::backdrop { background:#15251ee8; }
.artwork-lightbox-bar,.artwork-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:13px; }
.artwork-lightbox button,.artwork-lightbox .artwork-original { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; font-size:13px; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
.artwork-lightbox figure { margin:8px 0; }
.artwork-lightbox .artwork-expanded { display:block; width:100%; height:calc(100dvh - 220px); min-height:140px; max-height:780px; object-fit:contain; }
.artwork-lightbox figcaption { padding-top:12px; font-size:13px; line-height:1.6; text-align:center; }
@media(max-width:600px) {
 .artwork-lightbox { padding:12px; }
 .artwork-lightbox .artwork-expanded { height:calc(100dvh - 240px); }
 .artwork-controls { gap:4px; }
}
