:root {
  --bg: #faf8f3;       /* warm gallery paper, not clinical white */
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e2d8;     /* warm hairline to match the paper */
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(140%) blur(8px);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
}
.nav a {
  margin-left: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); opacity: 1; }

/* ---------- Hero (editorial intro + image curtain) ---------- */
.hero {
  position: relative;
  height: 260vh;          /* scroll runway */
  padding: 0;
  max-width: none;
  --p:  0;                /* overall scroll progress 0 → 1 */
  --pc: 0;                /* curtain rise progress (first phase) */
  --pi: 0;                /* image copy reveal (second phase)   */
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);  /* warm gallery paper, matches the rest of the site */
}

/* ---- Intro panel (visible at rest) ---- */
.intro-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(64px, 10vw, 120px) var(--pad) clamp(32px, 4vw, 56px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: var(--ink);
  /* Subtle parallax as the curtain rises over it. */
  transform: translate3d(0, calc(var(--pc) * -40px), 0);
  opacity: calc(1 - var(--pc) * 0.5);
}

.intro-eyebrow,
.curtain-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hairline {
  display: block;
  width: clamp(36px, 6vw, 72px);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.hairline.light { background: rgba(255,255,255,0.8); opacity: 1; }

.intro-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
}
.intro-title em {
  font-style: italic;
  font-weight: 400;
  color: #5a4a3a; /* warm bronze accent */
}

.intro-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.intro-foot-cue { display: inline-flex; align-items: center; gap: 10px; }
.cue-arrow {
  display: inline-block;
  animation: cue-bob 2.4s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ---- The curtain: image panel that rises from below ---- */
.curtain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Rises from below the viewport over the first phase of scroll. */
  transform: translate3d(0, calc((1 - var(--pc)) * 100%), 0);
  will-change: transform;
  box-shadow: 0 -40px 80px rgba(0,0,0,calc(var(--pc) * 0.18));
}
.curtain-image {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%),
    url('assets/projects/das-transformed/Final%20exterior%20render%20BETTER2.jpg') center/cover no-repeat,
    #111;
  /* Slow Ken Burns once curtain is in place. */
  transform: scale(calc(1.08 + var(--pi) * 0.06)) translate3d(0, calc(var(--pi) * -1.5%), 0);
  filter: saturate(0.9) contrast(1.02);
  will-change: transform;
}
.curtain-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.curtain-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(48px, 8vw, 100px) var(--pad) clamp(48px, 6vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: #fff;
  /* Fades in after the curtain has landed. */
  opacity: var(--pi);
  transform: translate3d(0, calc((1 - var(--pi)) * 24px), 0);
}
.curtain-eyebrow {
  color: rgba(255,255,255,0.75);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.curtain-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 20ch;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.curtain-title em {
  font-style: italic;
  font-weight: 400;
  color: #e8d8b8; /* warm cream accent on dark */
}

/* ---------- Sections ---------- */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 72px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.section-head .lede {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 28ch;
}
.section-head .lede em { font-style: italic; color: #5a4a3a; font-weight: 400; }
.view-all {
  justify-self: end;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  color: var(--ink);
}

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(44px, 5vw, 72px) 24px;
}
.work-card {
  display: block;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.work-card.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.work-image {
  aspect-ratio: 4 / 3;
  background: #eee center/cover no-repeat;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.work-card:hover { opacity: 1; }
.work-card:hover .work-image { transform: scale(1.01); }
.work-meta { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.work-num {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.work-meta h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.work-meta p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- About ---------- */
/* ---------- About (editorial 2-col with eyebrow header) ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: clamp(32px, 4vw, 56px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 110px);
}
.about-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(16px, 3vw, 36px);
}
.about-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  background:
    url('assets/projects/melissa.jpg') center/cover no-repeat,
    #ddd;
  border-radius: 0;
  max-width: 460px;
  width: 100%;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 56ch;
  padding-top: clamp(8px, 1.2vw, 16px);
}
.about-text p {
  margin: 0;
  color: #2a2a2a;
  font-size: 15px;
  line-height: 1.7;
}
.about-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink) !important;
  margin-bottom: clamp(8px, 1vw, 16px) !important;
}
.about-status {
  margin-top: clamp(8px, 1vw, 16px) !important;
  color: var(--muted) !important;
}
.about-status strong {
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ---------- Contact (centered closing moment) ---------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 110px);
}
.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 clamp(36px, 5vw, 64px);
}
.contact-title em {
  font-style: italic;
  font-weight: 400;
  color: #5a4a3a;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.contact-list a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.contact-list a:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 40px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  align-items: start;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  color: var(--muted);
}
.foot-brand { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.foot-col { display: grid; gap: 6px; }
.foot-col a { color: var(--ink); }
.foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ============================================================== */
/* Project detail panel (morph expansion)                          */
/* ============================================================== */

.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.detail-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* The starting rect is set by JS via --t/--l/--w/--h (the card's bounds).
   While .opening/.open is added, the panel transitions to inset:0.    */
.project-detail {
  position: fixed;
  top: var(--t, 50%);
  left: var(--l, 50%);
  width: var(--w, 0);
  height: var(--h, 0);
  z-index: 100;
  background: var(--bg);
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transition:
    top    0.7s cubic-bezier(.7,0,.2,1),
    left   0.7s cubic-bezier(.7,0,.2,1),
    width  0.7s cubic-bezier(.7,0,.2,1),
    height 0.7s cubic-bezier(.7,0,.2,1),
    border-radius 0.7s ease;
  will-change: top, left, width, height;
}
.project-detail.open {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.detail-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}
.project-detail.open .detail-scroll {
  opacity: 1;
}

/* Cover lives in the scroll flow so the title sits cleanly below it
   and the whole thing scrolls together. */
.detail-cover {
  position: relative;
  width: 100%;
  height: clamp(56vh, 68vh, 78vh);
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.project-detail.open .detail-cover {
  transform: scale(1);
}
.detail-cover::after {
  /* Soft fade from the image into the page background. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, #fafaf7 100%);
  pointer-events: none;
}

.detail-close {
  position: fixed;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 5;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease 0.3s, transform 0.35s ease 0.3s;
}
.project-detail.open .detail-close {
  opacity: 1;
  transform: translateY(0);
}
.detail-close:hover { background: #fff; }

/* All textual blocks in the detail panel share a narrower, centered
   content column so wide windows don't leave the title flush-left in a
   1280px box. */
.detail-head,
.detail-meta,
.detail-body {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.detail-head {
  padding: clamp(48px, 7vw, 96px) var(--pad) clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.detail-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  max-width: 22ch;
}
.detail-tag {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 22px);
  color: #5a4a3a;
}

.detail-meta {
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: 20px;
}
.detail-meta > div { display: flex; flex-direction: column; gap: 6px; }
.detail-meta dt {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.detail-body {
  max-width: 720px;
  padding: clamp(48px, 6vw, 80px) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
}
.detail-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #2a2a2a;
}

/* ---- Horizontal carousel ---- */
.detail-carousel-wrap {
  position: relative;
  padding-bottom: clamp(80px, 12vw, 140px);
}
.detail-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--pad);
  padding: 8px var(--pad) 24px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.detail-carousel::-webkit-scrollbar { height: 6px; }
.detail-carousel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
}
.detail-carousel::-webkit-scrollbar-track { background: transparent; }

.detail-carousel figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  height: clamp(48vh, 64vh, 72vh);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ede5;
  border-radius: 0;
  overflow: hidden;
}
.detail-carousel .carousel-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: min(90vw, 1280px);
  object-fit: contain;
  background: #f0ede5;
}

/* Prev / Next pills sit on the outer wrap so they don't scroll. */
.carousel-prev, .carousel-next {
  position: absolute;
  top: calc(50% - clamp(40px, 6vw, 70px));
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.carousel-prev { left: clamp(8px, 1.5vw, 24px); }
.carousel-next { right: clamp(8px, 1.5vw, 24px); }
.carousel-prev:hover, .carousel-next:hover {
  background: #fff;
}
.carousel-prev[disabled], .carousel-next[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* Lock background scroll while detail is open. */
body.detail-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .detail-cover { height: clamp(44vh, 56vh, 64vh); }
  .detail-head { padding-top: clamp(36px, 8vw, 64px); }
}

/* ---------- Reveal on scroll (sections) ---------- */
.about, .contact {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.about.in-view, .contact.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; overflow: visible; }
  .intro-panel { position: relative; padding-bottom: 56px; transform: none; opacity: 1; }
  .curtain { position: relative; height: clamp(360px, 60vh, 620px); transform: none; box-shadow: none; }
  .curtain-image { transform: none; inset: 0; }
  .curtain-copy { opacity: 1; transform: none; }
  .curtain-grain { display: none; }
  .cue-arrow { animation: none; }
  .work-card, .about, .contact { opacity: 1; transform: none; transition: none; }
  .project-detail, .project-detail .detail-cover, .project-detail .detail-scroll,
  .project-detail .detail-close, .detail-backdrop { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; }
  .view-all { justify-self: start; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; margin: 0 auto; }
  .about-text { max-width: 100%; padding-top: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .nav a { margin-left: 18px; }
  .site-footer { grid-template-columns: 1fr; }
}

/* Video thumbnail inside a carousel — a play badge over the poster image. */
.carousel-video { position: relative; cursor: pointer; }
.carousel-video .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(20,18,16,0.55);
  color: #fff;
  font-size: 26px;
  padding-left: 4px; /* nudge the ▶ glyph optically centred */
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.carousel-video:hover .play-badge,
.carousel-video:focus-visible .play-badge {
  background: rgba(20,18,16,0.8);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Full-screen video popup, layered above the project detail panel. */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(12,11,10,0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.video-lightbox[hidden] { display: none; }
.video-lightbox.visible { opacity: 1; }
.video-lightbox-player {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 3px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.video-lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 1;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #141210;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.video-lightbox-close:hover { background: #fff; }

/* ---------- Technical labels in monospace ---------- */
/* The small, tracked-out captions read like the annotations on an
   architectural drawing or spec sheet — Plex Mono gives them that voice
   while Cormorant carries the display type and Inter the prose. */
.nav a,
.section-head h2,
.intro-eyebrow, .curtain-eyebrow, .about-eyebrow, .contact-eyebrow,
.intro-foot,
.work-num,
.work-meta p,
.detail-num,
.detail-meta dt,
.view-all {
  font-family: var(--mono);
  font-weight: 400;
}
/* Mono runs wider than Inter, so ease the tracking on the longest labels. */
.work-meta p { letter-spacing: 0.02em; text-transform: none; }
.detail-meta dt { letter-spacing: 0.12em; }
.nav a { letter-spacing: 0.12em; }
