/* Full-size, uncropped lead photographs share the gallery's right edge and gutter. */
body.is-project-detail .site-header {display:none}
body.is-project-detail #app-view {position:relative;z-index:1;animation:none}
body.is-project-detail #app-view:focus,.detail-panel h1:focus {outline:none}
body.is-project-detail .site-footer {position:relative;z-index:1;background:var(--paper);font-size:12px}
.detail-origin {position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;filter:blur(12px);opacity:.48}
.detail-origin::after {content:"";position:absolute;inset:0;background:rgba(250,250,249,.24)}
.detail-origin-inner {width:100%}
.detail-origin-inner * {animation:none!important;transition:none!important}
.detail-origin-inner .hr-shell {opacity:1!important;filter:none!important;translate:none!important}
.detail-nav {width:max-content}
.detail-nav .hr-nav {flex-wrap:nowrap}
.detail-nav a[aria-current="page"] {background:#111;color:#fff}
.detail-panel {position:relative;isolation:isolate;margin-top:136px;min-height:calc(100svh - 136px);border-top:1px solid #d8d9d3;background-color:var(--paper);background-image:var(--paper-texture);background-size:var(--paper-grain-size)}
.detail-panel::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("assets/profile-star-grid.svg?v=2026091906") repeat -30px -21px/208px 208px;opacity:.65}
.detail-panel-switch {animation:detail-copy-in .28s ease both}
.detail-panel.detail-panel-leaving {animation:detail-panel-out .56s cubic-bezier(.76,0,.24,1) both;pointer-events:none}
.detail-panel.detail-motion-managed {animation:none}
.project-cover-flight {position:fixed;z-index:40;overflow:hidden;pointer-events:none;contain:layout style paint;isolation:isolate}
.project-cover-flight img {position:absolute;display:block;max-width:none;margin:0;will-change:opacity}
.detail-shared-active .detail-cover img {transition:none!important}
.detail-topline {display:flex;align-items:center;justify-content:flex-start;gap:24px;padding-top:28px;color:#747570;font-size:12px;letter-spacing:.09em}
.detail-topline a {flex-shrink:0;font-size:14px;color:#171817;letter-spacing:0;padding:8px 18px 8px 0;border-right:1px solid #d8d9d3}
/* Only the exposed strip above the sheet returns; the fixed navigation is
   above this hit area and keeps its normal links. No gallery area is covered. */
.detail-backdrop-return {position:absolute;bottom:100%;left:0;width:100%;height:136px;z-index:2;border:0;padding:0;background:transparent;cursor:pointer}
@media(max-width:720px) {.detail-backdrop-return {height:216px}}
.detail-panel {--detail-image-gap:clamp(8px,1vw,16px)}
.detail-lead {display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:clamp(48px,8vw,160px);align-items:start;padding-top:clamp(60px,7vw,120px);padding-bottom:var(--detail-image-gap)}
.detail-panel .detail-heading {padding:0;max-width:450px;min-width:0}
.detail-panel .detail-heading > nav {font-size:12px;line-height:1.7;flex-wrap:wrap;gap:4px 9px}
.detail-panel .detail-heading > nav b {display:none}
.detail-panel .detail-heading > div {display:block;padding:28px 0 26px}
.detail-panel .detail-heading > div > p {font-size:12px;line-height:1.7;letter-spacing:.15em;color:#747570;margin-bottom:10px}
.detail-panel .detail-heading h1 {font-size:clamp(28px,2.3vw,44px);line-height:1.12;letter-spacing:-.04em;overflow-wrap:anywhere}
.detail-panel .project-meta {display:grid;grid-template-columns:1fr;gap:7px;border:0;font-size:14px;line-height:1.65}
.detail-panel .project-meta > div,.detail-panel .project-meta > div + div {display:flex;gap:16px;padding:0;border:0}
.detail-panel .project-meta dt {flex:0 0 60px;font-size:12px;color:#747570;line-height:1.925}
.detail-panel .project-meta dd {margin:0;font-size:14px}
.detail-panel .detail-brief {display:block;padding:30px 0 0}
.detail-panel .detail-brief-label {border:0;padding:0;margin-bottom:14px}
.detail-panel .detail-brief-label span {display:none}
.detail-panel .detail-brief-label p {margin:0;font-size:12px;color:#747570;letter-spacing:.06em}
.detail-panel .detail-brief-copy h2 {font-size:20px;line-height:1.5;letter-spacing:-.02em;margin-bottom:14px}
.detail-panel .detail-brief-copy > p {font-size:14px;line-height:1.85;color:#72736e}
.detail-panel .detail-brief.is-contribution-note {padding-top:26px}
.detail-panel .is-contribution-note .detail-brief-label {margin-bottom:10px}
.detail-panel .is-contribution-note .detail-brief-copy strong {font-weight:500;color:var(--editorial-ink,var(--ink))}
.detail-panel .detail-tags {display:flex;flex-wrap:wrap;gap:6px 14px;border:0;margin-top:20px}
.detail-panel .detail-tags li {padding:0;border:0;font-size:12px;line-height:1.7}
.detail-panel .detail-tags li::before {content:none}
.detail-panel a:focus-visible,.detail-panel button:focus-visible {outline:2px solid #198e86;outline-offset:5px}
.detail-panel a:hover {color:#198e86}
/* The lead image is shown uncropped; all following established photo groups
   are siblings of .detail-lead, so this rule cannot alter their geometry. */
.detail-lead .detail-cover {position:relative;padding:0;width:min(100%,calc(86svh * var(--detail-cover-ratio,1.5)));max-width:none;justify-self:end;align-self:end}
.detail-lead .detail-cover button {display:block;overflow:hidden;background:transparent}
.detail-lead .detail-cover img {display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:right center;background:transparent;transition:opacity .65s ease}
/* Portraits retain their complete frame at 88% of the previous height budget,
   leaving more of the following gallery visible. Landscape/gallery sizes stay intact. */
.detail-lead .detail-cover.is-portrait {width:min(100%,calc((100svh - var(--detail-sheet-top,162px) - 64px - clamp(60px,7vw,120px) - 24px) * .88 * var(--detail-cover-ratio)));align-self:start}
/* Stable left/right tracks keep the copy from chasing the portrait's width.
   Its modest top inset replaces vertical centering; the hero keeps its right edge. */
@media(min-width:901px) {
  .detail-lead.has-portrait-cover {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,5vw,80px)}
  .detail-lead.has-portrait-cover .detail-heading {width:min(100%,420px);justify-self:center;align-self:start;padding-top:clamp(48px,7svh,96px)}
  .detail-lead.has-portrait-cover .detail-cover {min-width:0}
}
/* The hero must remain complete even while hovering its zoom button. */
body.is-project-detail .detail-lead .detail-cover button:is(:hover,:focus-visible) img {transform:none}
/* No white mat/shadow around selected images; keyboard focus remains visible. */
.detail-panel .detail-cover button,.detail-panel .detail-gallery button,.detail-panel .turnaround-item {box-shadow:none;background:transparent}
.detail-panel .detail-cover button:hover,.detail-panel .detail-gallery button:hover {transform:none;box-shadow:none}
.detail-panel .detail-gallery,.detail-panel .detail-turnaround {width:calc(80% - var(--pad)*1.6);margin-left:auto;margin-right:var(--pad);padding-left:0;padding-right:0}
.detail-panel .detail-gallery,.detail-panel .gallery-cluster {gap:var(--detail-image-gap)}
.detail-panel .detail-gallery.has-turnaround {padding-bottom:var(--detail-image-gap)}
.detail-panel .gallery-cluster.is-trio {grid-template-rows:repeat(2,clamp(192px,24vw,400px))}
.detail-panel .gallery-cluster.is-pair {grid-template-rows:clamp(256px,32vw,496px)}
.detail-panel .gallery-cluster.is-single {grid-template-rows:clamp(336px,49.6vw,656px)}
.detail-panel .gallery-cluster.is-complete {grid-template-rows:none}
/* Surtr 08/09: column widths follow the two original aspect ratios, so the
   complete portrait and landscape meet at both edges. Phones retain stacking. */
@media(min-width:701px) {
  .detail-panel .gallery-cluster.is-balanced-pair {grid-template-columns:minmax(0,.66625fr) minmax(0,1.50094fr)}
}
.detail-panel .gallery-cluster.is-balanced-pair button:is(:hover,:focus-visible) img {transform:none}
.detail-panel .turnaround-grid {gap:clamp(6.4px,1vw,14.4px)}
.detail-panel .project-pagination {font-size:14px;margin-top:0;border-color:#d8d9d3}
.detail-panel .project-pagination span {font-size:12px}
.detail-panel .project-pagination b {font-size:16px;line-height:1.5}
/* Wide invisible edge targets reveal only their own arrow. They sit outside
   the animated sheet so scrolling and project transitions cannot move them. */
.detail-edge-link {position:fixed;z-index:60;top:calc((100dvh + var(--detail-sheet-top,162px))/2);translate:0 -50%;width:var(--pad);height:min(60dvh,calc(100dvh - var(--detail-sheet-top,162px) - 48px));display:grid;place-items:center;color:var(--ink);outline:none!important}
.detail-edge-link.is-previous {left:0}
.detail-edge-link.is-next {right:0}
.detail-edge-icon {display:grid;place-items:center;width:min(44px,var(--pad));height:56px;opacity:0;transform:translateX(-6px);transition:opacity .24s ease,transform .3s ease}
.is-next .detail-edge-icon {transform:translateX(6px)}
.detail-edge-icon svg {width:min(36px,var(--pad));height:36px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.detail-edge-link:is(:hover,:focus-visible) .detail-edge-icon {opacity:1;transform:none}
.detail-edge-link:focus-visible .detail-edge-icon {outline:2px solid #198e86;outline-offset:4px;border-radius:4px}
.detail-edge-link:hover {color:#198e86}
body.lightbox-open .detail-edge-navigation {visibility:hidden}
@media(hover:none) {.detail-edge-icon {opacity:.8;transform:none!important;height:42px;border-radius:22px;background:rgba(255,255,255,.9)}.detail-edge-icon svg {width:min(30px,var(--pad))}}
@media(prefers-reduced-motion:reduce) {.detail-edge-icon {transition:none}}
@keyframes detail-panel-in {from {transform:translateY(100svh)}to {transform:translateY(0)}}
@keyframes detail-panel-out {from {transform:translateY(0)}to {transform:translateY(100svh)}}
@keyframes detail-copy-in {from {opacity:0;transform:translateY(16px)}to {opacity:1;transform:none}}
@media(max-width:900px) {.detail-lead {gap:32px;grid-template-columns:minmax(240px,.85fr) minmax(0,1.15fr)}.detail-panel .detail-heading h1 {font-size:30px}.detail-panel .detail-brief-copy h2 {font-size:18px}}
@media(max-width:680px) {.detail-panel {margin-top:100px;min-height:calc(100svh - 100px)}.detail-topline {padding-top:20px}.detail-lead {grid-template-columns:1fr;padding-top:34px;gap:36px}.detail-panel .detail-heading {max-width:none}.detail-panel .detail-heading h1 {font-size:32px;line-height:1.2}.detail-panel .detail-heading > div {padding:22px 0}.detail-lead .detail-cover {width:100%}.detail-panel .detail-gallery,.detail-panel .detail-turnaround {width:calc(100% - var(--pad)*2)}.detail-panel .project-pagination {gap:12px}.detail-panel .project-pagination b {font-size:13px}}
@media(max-width:680px) {.detail-lead .detail-cover.is-portrait {width:min(100%,calc((100svh - var(--detail-sheet-top,124px) - 48px) * var(--detail-cover-ratio)))}}
@media(max-width:700px) {.detail-panel {--detail-image-gap:6.4px}.detail-panel .turnaround-grid {gap:var(--detail-image-gap)}.detail-panel .gallery-cluster.is-trio,.detail-panel .gallery-cluster.is-pair,.detail-panel .gallery-cluster.is-single {grid-template-rows:none}}
@media(prefers-reduced-motion:reduce) {.detail-panel,.detail-panel-switch,.detail-panel.detail-panel-leaving {animation:none!important}.detail-origin {filter:none}.detail-lead .detail-cover img {transition:none}.detail-lead .detail-cover button:hover img,.detail-lead .detail-cover button:focus-visible img {transform:none}}
