/* ==========================================================================
   Steel Struxures - project detail page
   ========================================================================== */

/* shared title block over media */
.aerial-title h1, .phero-title h1 { font-size: clamp(44px, 7vw, 108px); line-height: .92; letter-spacing: -.04em; margin: 18px 0 14px; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.aerial-title .where, .phero-title .where { font: 600 clamp(16px, 1.4vw, 20px)/1.2 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: #eee; }
.aerial-title .label, .phero-title .label { color: #fff; }

/* ---------------------------------------------------------------- aerial scrub: 200vh */
.aerial { position: relative; height: 200vh; background: var(--ink); }
.aerial-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.aerial.video-ready .hero-media video { opacity: 1; }
.aerial.video-ready .hero-media .poster { opacity: 0; }
.aerial-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,.35) 34%, rgba(10,10,10,0) 55%, rgba(17,17,17,.6) 100%);
}
/* name and location stay fixed at the top of the section for the whole scrub */
.aerial-title { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(28px, 5vh, 60px)); z-index: 2; }
.aerial-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2; font: 600 13px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: #ddd; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.aerial-cue::after { content: ''; width: 2px; height: 36px; background: linear-gradient(var(--accent), transparent); }
.aerial.static { height: auto; }
.aerial.static .aerial-stage { position: relative; height: 88svh; min-height: 560px; }
.aerial.static .aerial-cue { display: none; }

/* ---------------------------------------------------------------- static hero image */
.phero { position: relative; height: 88vh; height: 88svh; min-height: 560px; margin-top: var(--nav-h); overflow: hidden; }
.phero img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08); }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,.82) 100%); }
.phero-title { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vh, 80px); z-index: 2; }

/* ---------------------------------------------------------------- intro + specs */
.pintro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: 56px; align-items: start; }
.pintro-text { margin-top: 24px; font: 500 clamp(20px, 1.8vw, 25px)/1.5 var(--f-body); color: #222; }
.specs { margin: 0; border-top: 3px solid var(--ink); }
.specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--paper-2); }
.specs dt { font: 700 14px/1.5 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-2); }
.specs dd { margin: 0; font: 900 24px/1.2 var(--f-head); letter-spacing: -.02em; }
.specs .mat dd { font: 500 16px/1.5 var(--f-body); letter-spacing: 0; }
.specs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.specs li { padding-left: 18px; position: relative; }
.specs li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; background: var(--accent); }
@media (max-width: 900px) { .pintro-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .specs > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------------------------------------------------------------- before / after */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08); }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input:focus-visible ~ .ba-handle::after, .ba:has(input:focus-visible) .ba-handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag { position: absolute; top: 18px; z-index: 1; background: var(--ink); padding: 9px 14px; font: 700 13px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.ba-tag.l { left: 18px; } .ba-tag.r { right: 18px; }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gph { position: relative; padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.gph img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(.92); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gph:hover img { transform: scale(1.03); }
.gph .gi { position: absolute; left: 0; bottom: 0; background: var(--ink); padding: 10px 14px; font: 700 14px/1 var(--f-label); letter-spacing: .2em; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gph:first-child { aspect-ratio: 4 / 3; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8,8,8,.92); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 52px; height: 52px; border: 0; background: var(--accent); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }

/* ---------------------------------------------------------------- next project */
.next { display: block; background: var(--ink); text-decoration: none; padding: 56px 0 64px; border-top: 1px solid var(--ink-3); }
.next strong { display: flex; align-items: center; gap: 18px; margin-top: 18px; font: 900 clamp(32px, 4.4vw, 60px)/1 var(--f-head); letter-spacing: -.03em; }
.next svg { width: .8em; height: .8em; color: var(--accent); transition: transform .2s; }
.next:hover svg { transform: translateX(8px); }
