/* /work/ portfolio page. Loaded only on that page, after styles.css. */

.work-intro { max-width: 760px; }

/* Jump links under the masthead */
/* Show links stay pinned under the top of the window while the page scrolls. One row; it scrolls sideways when it doesn't fit. */
.show-nav { position: sticky; top: 0; z-index: 15; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); padding: 12px 0; }
.show-index { display: flex; flex-wrap: nowrap; gap: 10px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.show-index::-webkit-scrollbar { display: none; }
.show-index li { flex: none; }
.show-nav .wrap { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.show-index { padding-right: 56px; }
.show-index a {
  display: inline-block; padding: 9px 14px; border: 2px solid var(--ink); text-decoration: none;
  font-size: 12px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.12em;
  transition: background-color .15s ease;
}
.show-index a:hover { background: var(--volt); }
.show-index a[aria-current] { background: var(--ink); color: var(--paper); }

/* One show per section */
.show { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 72px; }
.show:first-of-type { border-top: 0; }
.show-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.show-head h2 { margin: 8px 0 0; font-size: clamp(32px, 5.4vw, 60px); line-height: 0.98; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.005em; }
.show-num { font-size: clamp(36px, 6vw, 64px); line-height: 1; font-weight: 900; font-stretch: var(--wide); color: var(--rule); }
.show-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 32px; }
.show-body .prose p { font-size: 17.5px; }
.role-line { margin: 0 0 18px; padding: 12px 14px; background: #f5f5f5; font-size: 15px; font-weight: 600; }
.role-line b { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; margin-right: 8px; }

/* Facts column */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 11px; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }

/* Media grid: videos and stills */
.media { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.media.vertical { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); }
.media figure { margin: 0; }
.media figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.media figcaption b { color: var(--ink); font-weight: 700; }
.media img.still { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #f0f0f0; }

/* Click-to-play YouTube: a thumbnail button that swaps in the player, so nothing loads from YouTube until a visitor asks */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #111; cursor: pointer; overflow: hidden; }
.yt .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.yt.tall { aspect-ratio: 9 / 16; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); transition: opacity .2s ease; }
.yt:hover::after { opacity: .6; }
.yt .play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; transition: background-color .15s ease, transform .2s ease;
}
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--volt); }
.yt:hover .play, .yt:focus-visible .play { background: var(--volt); transform: scale(1.06); }
.yt:hover .play svg, .yt:focus-visible .play svg { fill: var(--ink); }
.yt:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.yt .yt-label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; text-align: left; font: 700 14px/1.3 "Archivo", system-ui, sans-serif; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Off-site video (Instagram, X, Facebook, publisher players): a linked card */
.ext { display: block; text-decoration: none; }
.ext .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #111 center / cover no-repeat; }
.ext .thumb .play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: background-color .15s ease; }
.ext .thumb .play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--volt); }
.ext:hover .thumb .play { background: var(--volt); }
.ext:hover .thumb .play svg { fill: var(--ink); }
.ext .via { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.14em; border-bottom: 2px solid var(--ink); }

/* Press list reuses .linklist from styles.css */
.show .press { margin-top: 36px; }
.show .press > .label { display: block; margin-bottom: 10px; }
.show .press .linklist a:hover { background: linear-gradient(90deg, #ecf7b8, transparent 70%); }

.credits { margin-top: clamp(48px, 7vw, 72px); padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; max-width: 760px; }

@media (max-width: 860px) {
  .show-body { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .show-num { display: none; }
  .show-head { grid-template-columns: 1fr; }
  .media.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Compact type-only label for shows with no public artwork */
.type-card { display: block; margin: 0 0 18px; padding: 14px 16px; background: var(--ink); color: var(--paper); border-left: 6px solid var(--volt); }
.type-card .tc-top { display: block; font-size: 10px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.16em; color: var(--volt); }
.type-card .tc-title { display: block; margin-top: 6px; font-size: 20px; line-height: 1.05; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; }
.type-card .tc-foot { display: block; margin-top: 8px; font-size: 12px; color: #cfcfcf; }
.art { margin: 0 0 18px; }
.art img { display: block; width: 100%; height: auto; }
.art figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Pull quote from press */
.pull { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--volt); max-width: 640px; }
.pull p { margin: 0; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; font-weight: 700; }
.pull cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--muted); }

/* Concept / Production / Partnerships strip under each role line */
.my-part { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: -10px 0 22px; padding: 0; list-style: none; background: var(--rule); border: 1px solid var(--rule); }
.my-part li { padding: 12px 14px; background: var(--paper); font-size: 14px; line-height: 1.4; }
.my-part b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.14em; }
.my-part b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--volt); outline: 1px solid var(--ink); vertical-align: 1px; }
@media (max-width: 520px) { .my-part { grid-template-columns: 1fr; } }
.media video.clip { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111; }

/* The Shift (Habitat GSF): cover still behind a stat; Instagram's embed loads only when pressed. */
.media.ig { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ig-embed { display: block; width: 100%; padding: 0; border: 2px solid var(--ink); background: #111; cursor: pointer; text-align: left; aspect-ratio: 4 / 5; position: relative; overflow: hidden; color: #fff; }
.ig-embed .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ig-embed:hover .poster { transform: scale(1.03); }
.ig-embed .ig-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; gap: 6px; background: linear-gradient(rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 22%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 48%, rgba(0,0,0,.86) 100%); }
.ig-embed .ig-stat { font-size: clamp(36px, 5.6vw, 58px); font-weight: 900; font-stretch: var(--wide); line-height: 0.95; letter-spacing: -0.01em; color: var(--volt); text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.ig-embed .ig-stat-label { font-size: 11px; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.16em; color: #fff; margin-bottom: auto; }
.ig-embed .ig-title { font-size: 17px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ig-embed .ig-meta { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.4; }
.ig-embed .ig-cta { margin-top: 10px; align-self: flex-start; font-size: 11px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 10px; border: 1.5px solid #fff; color: #fff; }
.ig-embed:hover .ig-cta, .ig-embed:focus-visible .ig-cta { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.ig-embed:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.ig-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.media.ig .before { aspect-ratio: 4 / 5; box-sizing: border-box; padding: 20px; border: 2px solid var(--ink); background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; overflow: hidden; }
.media.ig figure { align-self: start; }
.media.ig .before p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.82); }
.media.ig .before .label { color: var(--volt); }
.media.ig .before .stat { font-size: clamp(36px, 5.6vw, 58px); font-weight: 900; font-stretch: var(--wide); line-height: 0.95; color: #fff; margin: 4px 0 10px; }
.media.ig .before .stat span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,.7); margin-top: 6px; }
.media.ig .before .quote { font-size: 16px; font-weight: 700; color: #fff; }
.prose .fine { font-size: 13.5px; color: var(--muted); }
.case { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); }
.case h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: 0.01em; }
.case .show-body { margin-top: 20px; }
.ig-embed.fb .ig-card { background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,.6) 100%); }
.case figure.art figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
