/* Project collection and selected story. Shared page styles remain intact. */
.showcase-page .page-title{max-width:10.5ch}
.showcase-page .nav-link[aria-current=page]{color:var(--accent)}
.showcase-page .showcase-collection{padding-bottom:64px}
.showcase-page .showcase-projects{list-style:none;padding:0;margin:0;display:grid;gap:28px}
.showcase-page .showcase-project-link{display:grid;grid-template-columns:1.15fr 1fr;border:1px solid var(--line);background:var(--surface)}
.showcase-page .showcase-project-image{overflow:hidden;background:#090b0a}
.showcase-page .showcase-project-image img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:12/7}
.showcase-page .showcase-site-preview{display:flex;align-items:center}
.showcase-page .showcase-site-preview img{height:auto;aspect-ratio:1600/1111;object-fit:contain}
.showcase-page .showcase-project-summary{padding:clamp(28px,4vw,56px);align-self:center}
.showcase-page .showcase-project-summary .page-meta{color:var(--accent);font-size:13px;margin-bottom:25px}
.showcase-page .showcase-project-summary h3{font-size:clamp(33px,3.5vw,52px);margin-bottom:20px}
.showcase-page .showcase-project-summary>p:not(.page-meta){color:#c8c9bd;max-width:39ch;font-size:17px}
.showcase-page .showcase-read{display:flex;justify-content:space-between;align-items:center;gap:22px;border-top:1px solid var(--line);padding-top:18px;margin-top:28px;font-size:16px}
.showcase-page .showcase-read>span{color:var(--accent);font-size:26px}
.showcase-page .showcase-project-link:hover,.showcase-page .showcase-project-link[aria-expanded=true]{border-color:var(--accent)}
.showcase-page .showcase-project-link:hover h3{color:var(--accent)}
.showcase-page .showcase-story{display:none;border-top:1px solid var(--line);padding-top:40px;scroll-margin-top:96px}
/* Fragment links still select a single story when JavaScript is unavailable. */
.showcase-page .showcase-story:target,.showcase-page .showcase-story:has(:target),.showcase-page .showcase-story.is-open{display:block}
.showcase-page .showcase-story:focus:not(:focus-visible){outline:none}
.showcase-page .showcase-story-tools{display:flex;justify-content:flex-end;margin-bottom:40px}
.showcase-page .showcase-project-link{scroll-margin-top:96px}
.showcase-page .page-next{display:none}
.showcase-page:has(.showcase-story:target) .page-next,.showcase-page:has(.showcase-story :target) .page-next,.showcase-page.has-project .page-next{display:grid}
.showcase-page .showcase-story-header{max-width:1100px}
.showcase-page .showcase-story-header .section-index{margin-bottom:28px}
.showcase-page .showcase-story-header h2{font-size:clamp(54px,6.8vw,106px);letter-spacing:-.05em;max-width:14ch}
.showcase-page .showcase-deck{font-size:clamp(22px,2.2vw,31px);line-height:1.35;letter-spacing:-.02em;max-width:32ch;margin:30px 0 40px;color:#c8c9bd}
.showcase-page .showcase-hero-image{margin:0}
.showcase-page .showcase-hero-image img{display:block;width:100%;height:auto;border:1px solid var(--line)}
.showcase-page .showcase-hero-image figcaption{font:13px/1.6 var(--mono);color:var(--muted);max-width:75ch;margin-top:16px}
.showcase-page .showcase-project-facts{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:32px;margin:38px 0 64px;padding:24px 0;border-block:1px solid var(--line)}
.showcase-page .showcase-project-facts dt{font:13px/1.5 var(--mono);color:var(--accent);text-transform:uppercase;letter-spacing:.025em;margin-bottom:12px}
.showcase-page .showcase-project-facts dd{font-size:17px;line-height:1.5;margin:0}
.showcase-page .showcase-chapter{display:grid;grid-template-columns:1fr 2fr;gap:40px;padding:40px 0 48px;border-top:1px solid var(--line)}
.showcase-page .showcase-chapter-heading .section-index{font-size:13px;margin-bottom:25px}
.showcase-page .showcase-chapter-heading h3{font-size:clamp(31px,3.1vw,46px);max-width:16ch}
.showcase-page .showcase-chapter .body-copy{max-width:66ch}
.showcase-page .showcase-pullout{display:flex;justify-content:space-between;align-items:end;gap:36px;padding:44px 0 54px;margin:0;border-top:1px solid var(--line)}
.showcase-page .showcase-pullout p{font-size:clamp(36px,4.6vw,70px);line-height:1.08;letter-spacing:-.04em;color:var(--accent);margin:0}
.showcase-page .showcase-pullout>span{font:14px/1.6 var(--mono);color:var(--muted);flex-shrink:0}
.showcase-page .showcase-inline-links{margin-top:28px}
.showcase-page .showcase-inline-links .inline-link{padding-block:10px}
/* A lightweight, captured-site walkthrough; no live embeds or 3D downloads. */
.showcase-page .project-gallery{margin:48px 0 0;--gallery-ground:#111510}
.showcase-page .gallery-awi{--gallery-ground:#e4e5dd}
.showcase-page .gallery-pattersons{--gallery-ground:#101e31}
.showcase-page .gallery-aquagleam{--gallery-ground:#ebe7e1}
.showcase-page .gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:20px 0}
.showcase-page .gallery-heading p{margin:0;font:12px/1.5 var(--mono);color:var(--muted)}
.showcase-page .gallery-heading .page-meta{color:var(--accent)}
.showcase-page .gallery-heading p>span{color:var(--accent);font:22px/1 var(--font);margin-left:16px}
.showcase-page .gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:stretch}
.showcase-page .gallery-stage{min-width:0;background:var(--gallery-ground);border:1px solid #45493d;box-shadow:0 20px 48px #0003;position:relative;touch-action:pan-y}
.showcase-page .gallery-stage:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.showcase-page .gallery-browser-bar{height:43px;display:flex;align-items:center;gap:20px;padding:0 18px;background:#1b1e18;color:#c2c4b7;font:11px/1.3 var(--mono);border-bottom:1px solid #45493d}
.showcase-page .gallery-browser-bar>span:last-child{margin-left:auto;color:#929686;text-transform:uppercase;font-size:10px}
.showcase-page .gallery-window-marks{letter-spacing:3px;color:#68705b;font-size:9px;white-space:nowrap}
.showcase-page .gallery-slides{height:clamp(320px,38vw,580px);position:relative;overflow:hidden}
.showcase-page .gallery-slide{margin:0;height:100%;display:flex;justify-content:center;align-items:center}
.showcase-page .gallery-viewport{width:100%;height:100%;overflow:hidden;position:relative;background:var(--gallery-ground)}
.showcase-page .gallery-slide img{display:block;width:100%;height:auto;transform-origin:top center}
.showcase-page #jw-strata .gallery-slide:first-child img{height:100%;object-fit:contain}
.showcase-page .gallery-slide[data-device=mobile]{padding:24px}
.showcase-page .gallery-slide[data-device=mobile] .gallery-viewport{height:100%;width:auto;aspect-ratio:390/844;border:7px solid #1c211b;border-radius:22px;box-shadow:0 16px 30px #0004}
.showcase-page .gallery-slide.is-current{animation:gallery-enter .55s cubic-bezier(.2,.7,.2,1) both}
.showcase-page .gallery-progress{height:2px;position:absolute;bottom:0;inset-inline:0;background:#4c524240;overflow:hidden}
.showcase-page .gallery-progress>span{display:block;background:var(--accent);height:100%;transform:scaleX(0);transform-origin:left}
.showcase-page .gallery-choices{display:grid;grid-template-rows:repeat(4,1fr);gap:10px}
.showcase-page .gallery-choices button{display:grid;grid-template-columns:94px minmax(0,1fr);gap:14px;align-items:center;padding:12px;background:var(--surface);border:1px solid var(--line);text-align:left;font-size:16px;line-height:1.2;transition:border-color .2s,background .2s}
.showcase-page .gallery-choices button img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;object-position:top;border:1px solid #4d51422e;opacity:.7;transition:opacity .2s}
.showcase-page .gallery-choices button small{display:block;font:10px/1.4 var(--mono);color:var(--muted);text-transform:uppercase;margin-bottom:9px}
.showcase-page .gallery-choices button[aria-pressed=true]{border-color:var(--accent);background:#1b1d16}
.showcase-page .gallery-choices button[aria-pressed=true] small{color:var(--accent)}
.showcase-page .gallery-choices button[aria-pressed=true] img,.showcase-page .gallery-choices button:hover img{opacity:1}
.showcase-page .gallery-choices button:hover{border-color:#929784}
.showcase-page .gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:21px 0 17px;border-bottom:1px solid var(--line)}
.showcase-page .gallery-caption{display:flex;align-items:center;gap:20px;margin:0;font-size:16px;line-height:1.3}
.showcase-page [data-gallery-count]{color:var(--accent);font:12px/1.5 var(--mono);white-space:nowrap}
.showcase-page .gallery-actions{display:flex;gap:8px;flex-shrink:0}
.showcase-page .gallery-actions button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;min-width:44px;padding:10px 14px;background:transparent;border:1px solid var(--line);font-size:13px;line-height:1.2}
.showcase-page .gallery-actions button:hover{border-color:var(--accent);color:var(--accent)}
.showcase-page .gallery-actions [data-gallery-prev],.showcase-page .gallery-actions [data-gallery-next]{font-size:22px;padding:8px}
.showcase-page .gallery-actions [data-gallery-play]{min-width:108px}
.showcase-page .gallery-note{font:11px/1.5 var(--mono);color:var(--muted);margin:14px 0 0}
.gallery-lightbox{background:#111510;color:#f1f0e9;border:1px solid #686b5b;padding:24px;max-width:1440px;width:calc(100% - 48px);max-height:calc(100dvh - 48px);overscroll-behavior:contain}
.gallery-lightbox::backdrop{background:#030503ed;backdrop-filter:blur(8px)}
.gallery-lightbox img{display:block;max-width:100%;height:auto;margin:auto}
.gallery-lightbox__bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#111510;padding:0 0 18px}
.gallery-lightbox button{background:#1b1e18;border:1px solid #686b5b;padding:12px 18px;min-height:44px;flex-shrink:0}
.gallery-lightbox p{font:15px/1.5 var(--font);margin:0}
body.gallery-lightbox-open{overflow:hidden}
@keyframes gallery-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:1100px){
  .showcase-page .gallery-layout{grid-template-columns:minmax(0,1fr) 215px;gap:16px}
  .showcase-page .gallery-choices button{grid-template-columns:68px minmax(0,1fr);gap:10px;padding:10px;font-size:14px}
  .showcase-page .gallery-toolbar{align-items:flex-start}
  .showcase-page .gallery-caption{flex-direction:column;align-items:flex-start;gap:6px}
}
@media(max-width:760px){
  .showcase-page .project-gallery{margin-top:32px}
  .showcase-page .gallery-layout{grid-template-columns:1fr;gap:14px}
  .showcase-page .gallery-heading{gap:12px;padding:17px 0}
  .showcase-page .gallery-heading p{font-size:10px}
  .showcase-page .gallery-heading p>span{display:none}
  .showcase-page .gallery-browser-bar{padding:0 10px;gap:9px;height:35px;font-size:10px}
  .showcase-page .gallery-window-marks{font-size:7px;letter-spacing:1px}
  .showcase-page .gallery-browser-bar>span:last-child{font-size:8px}
  .showcase-page .gallery-slides{height:360px}
  .showcase-page .gallery-slide[data-device=mobile]{padding:18px}
  .showcase-page .gallery-choices{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:7px}
  .showcase-page .gallery-choices button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:5px;gap:8px;font-size:11px;line-height:1.25}
  .showcase-page .gallery-choices button small{font-size:9px;margin-bottom:5px}
  .showcase-page .gallery-toolbar{flex-direction:column;gap:16px;padding:18px 0}
  .showcase-page .gallery-caption{flex-direction:row;align-items:center;gap:14px;font-size:14px}
  .showcase-page .gallery-actions{width:100%;gap:6px}
  .showcase-page .gallery-actions button{padding:9px;font-size:12px}
  .showcase-page .gallery-actions [data-gallery-play]{min-width:0;flex:1}
  .showcase-page .gallery-actions [data-gallery-enlarge]{flex:1}
  .showcase-page .gallery-actions [data-gallery-prev],.showcase-page .gallery-actions [data-gallery-next]{font-size:20px}
  .gallery-lightbox{padding:14px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
}
@media(prefers-reduced-motion:reduce){.showcase-page .gallery-slide.is-current{animation:none}.showcase-page .gallery-choices button,.showcase-page .gallery-choices img{transition:none}}
@media print{.showcase-page .gallery-choices,.showcase-page .gallery-toolbar,.showcase-page .gallery-progress,.showcase-page .gallery-note{display:none!important}.showcase-page .gallery-layout{display:block}.showcase-page .gallery-slides{height:400px}.showcase-page .gallery-slide img{transform:none!important}}
@media(max-width:1200px){.showcase-page .header-descriptor{display:none}.showcase-page .site-header{gap:22px}.showcase-page .header-nav{gap:20px}}
@media(max-width:900px){.showcase-page .showcase-project-summary{padding:25px}.showcase-page .showcase-project-summary h3{font-size:34px}.showcase-page .showcase-pullout{display:block}.showcase-page .showcase-pullout>span{display:block;margin-top:26px}}
@media(max-width:760px){
  .showcase-page .site-header{gap:0 15px}
  .showcase-page .header-nav{display:grid;grid-template-columns:repeat(3,max-content);justify-content:start;gap:0 20px}
  .showcase-page .page-main{padding-top:155px}
  .showcase-page .page-title{max-width:11ch}
  .showcase-page .page-section,.showcase-page .showcase-story,.showcase-page .showcase-project-link{scroll-margin-top:172px}
  .showcase-page .showcase-collection{padding-bottom:42px}
  .showcase-page .showcase-story-tools{justify-content:flex-start;margin-bottom:30px}
  .showcase-page .showcase-project-link{grid-template-columns:1fr}
  .showcase-page .showcase-project-image img{height:auto;object-fit:contain}
  .showcase-page .showcase-project-summary{padding:28px 24px}
  .showcase-page .showcase-project-summary h3{font-size:38px}
  .showcase-page .showcase-project-summary .page-meta{margin-bottom:20px}
  .showcase-page .showcase-story{padding-top:40px}
  .showcase-page .showcase-story-header h2{font-size:clamp(46px,11vw,72px)}
  .showcase-page .showcase-deck{font-size:24px;margin:24px 0 30px}
  .showcase-page .showcase-project-facts{grid-template-columns:1fr;gap:22px;margin:28px 0 36px}
  .showcase-page .showcase-project-facts dt{margin-bottom:6px}
  .showcase-page .showcase-chapter{grid-template-columns:1fr;gap:4px;padding:29px 0 34px}
  .showcase-page .showcase-chapter-heading .section-index{margin-bottom:17px}
  .showcase-page .showcase-chapter-heading h3{font-size:34px;max-width:none}
  .showcase-page .showcase-pullout{padding:32px 0 36px}
  .showcase-page .showcase-pullout p{font-size:clamp(31px,7.7vw,54px)}
}
@media print{
  .showcase-page .showcase-inline-links,.showcase-page .showcase-story-tools{display:none}
  .showcase-page.has-project .showcase-collection{display:none}
  .showcase-page .page-main{padding:0}
  .showcase-page .showcase-chapter,.showcase-page .showcase-project-facts{break-inside:avoid}
  .showcase-page .body-copy,.showcase-page .showcase-deck,.showcase-page .showcase-project-facts dd,.showcase-page .showcase-pullout p{color:#111}
}
