:root {
  --fpa-project-bg: #050505;
  --fpa-project-panel: #0b0b0b;
  --fpa-project-text: #f2eee7;
  --fpa-project-muted: #8d8a84;
  --fpa-project-line: rgba(255,255,255,.13);
  --fpa-project-gold: #c7a34f;
  --fpa-project-pad: clamp(24px, 4.5vw, 76px);
  --fpa-project-max: 1600px;
}

html { background: var(--fpa-project-bg); }
body.fpa-project-page {
  margin: 0;
  background: var(--fpa-project-bg);
  color: var(--fpa-project-text);
  font-family: "Raleway", Arial, sans-serif;
  overflow-x: hidden;
}
body.fpa-project-menu-open { overflow: hidden; }

.fpa-project-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 106px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--fpa-project-pad);
  pointer-events: none;
  mix-blend-mode: normal;
}
.fpa-project-mark,
.fpa-project-menu-button { pointer-events: auto; }
.fpa-project-mark {
  width: 58px;
  display: block;
  line-height: 0;
}
.fpa-project-mark img {
  width: 100%;
  height: auto;
  display: block;
}
.fpa-project-menu-button,
.fpa-project-menu-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fpa-project-text);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  cursor: pointer;
}
.fpa-project-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0 12px 12px;
}
.fpa-project-menu-lines {
  width: 25px;
  height: 11px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.fpa-project-menu-lines i {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.fpa-project-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5,5,5,.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.fpa-project-menu.is-open { opacity: 1; visibility: visible; }
.fpa-project-menu-inner {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 80px var(--fpa-project-pad);
}
.fpa-project-menu-close {
  position: absolute;
  top: 41px;
  right: var(--fpa-project-pad);
  color: var(--fpa-project-muted);
}
.fpa-project-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fpa-project-menu nav a {
  color: var(--fpa-project-text);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: clamp(34px, 6vw, 86px);
  line-height: 1.02;
  font-weight: 300;
  text-transform: uppercase;
  transition: color .25s ease;
}
.fpa-project-menu nav a:hover { color: var(--fpa-project-gold); }

.fpa-project-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--fpa-project-muted);
}

.fpa-project-shell { padding-top: 1px; }
.fpa-project-intro,
.fpa-project-hero,
.fpa-project-overview,
.fpa-project-gallery,
.fpa-project-credits-block,
.fpa-project-related,
.fpa-project-bottom-nav,
.fpa-project-footer {
  width: min(calc(100% - (var(--fpa-project-pad) * 2)), var(--fpa-project-max));
  margin-inline: auto;
}

.fpa-project-intro {
  min-height: 72vh;
  padding-top: clamp(180px, 22vh, 290px);
  padding-bottom: clamp(72px, 9vw, 140px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fpa-project-kicker {
  margin-bottom: 20px;
  color: var(--fpa-project-muted);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.fpa-project-intro h1 {
  margin: 0;
  max-width: 1350px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(72px, 13vw, 210px);
  line-height: .86;
  font-weight: 300;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--fpa-project-text);
}

.fpa-project-hero {
  margin-bottom: clamp(92px, 11vw, 180px);
}
.fpa-project-hero img,
.fpa-project-hero iframe {
  width: 100%;
  display: block;
  border: 0;
}
.fpa-project-hero img { height: auto; }
.fpa-project-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.fpa-project-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.fpa-project-overview {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) 2.2fr;
  gap: clamp(40px, 8vw, 150px);
  border-top: 1px solid var(--fpa-project-line);
  padding-top: 28px;
  padding-bottom: clamp(90px, 12vw, 190px);
}
.fpa-project-overview-label {
  color: var(--fpa-project-muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
}
.fpa-project-overview-copy { max-width: 900px; }
.fpa-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 50px;
}
.fpa-project-fact {
  min-height: 72px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px solid var(--fpa-project-line);
}
.fpa-project-fact span {
  color: var(--fpa-project-muted);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.fpa-project-fact strong {
  color: var(--fpa-project-text);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
}

/* Phase 5.42 — Credits header row + full-width credit fields (defect 4.1 fix):
   the isolated label column and its wide offset gap read as an empty section,
   so the label is now a compact header row above a full-width credit grid. */
.fpa-project-credits-block {
  display: block;
  border-top: 1px solid var(--fpa-project-line);
  padding-top: 24px;
  padding-bottom: clamp(58px, 7vw, 92px);
}
.fpa-project-credits-label {
  display: block;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  color: var(--fpa-project-muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
}
.fpa-project-credits-label::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 12px;
  background: var(--fpa-gold, #c7a34f);
}
.fpa-project-credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 60px);
  row-gap: 0;
  max-width: none;
}
.fpa-project-credit {
  min-width: 0;
  padding: 0 0 18px;
}
.fpa-project-credit span {
  display: block;
  margin-bottom: 5px;
  color: var(--fpa-project-muted);
  font-size: 8px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.fpa-project-credit strong {
  display: block;
  color: var(--fpa-project-text);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
}
.fpa-project-credits-block[hidden] { display: none !important; }

.fpa-project-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 50px);
  padding-bottom: clamp(72px, 8vw, 118px);
}
.fpa-gallery-row {
  display: grid;
  gap: clamp(22px, 3vw, 50px);
}
.fpa-gallery-row.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpa-gallery-item {
  margin: 0;
  overflow: hidden;
  background: #0a0a0a;
}
.fpa-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateZ(0);
}

.fpa-project-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--fpa-project-line);
  padding-top: 28px;
  margin-bottom: 44px;
}
.fpa-project-section-head span {
  color: var(--fpa-project-muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fpa-project-section-head h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(42px, 6vw, 88px);
  line-height: .95;
  font-weight: 300;
  text-transform: uppercase;
}
.fpa-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(110px, 13vw, 190px);
}
.fpa-related-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  text-decoration: none;
}
.fpa-related-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2,.7,.2,1);
}
.fpa-related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05) 62%);
}
.fpa-related-card-copy {
  position: absolute;
  z-index: 2;
  inset: auto 24px 22px;
  color: #fff;
}
.fpa-related-card-copy small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
}
.fpa-related-card-copy strong {
  font-family: "Oswald", sans-serif;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}
.fpa-related-card:hover img { transform: scale(1.025); }
.fpa-related-card:hover strong { color: var(--fpa-project-gold); }

.fpa-project-bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--fpa-project-line);
  border-bottom: 1px solid var(--fpa-project-line);
}
.fpa-bottom-link {
  min-height: 150px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: var(--fpa-project-text);
  border-right: 1px solid var(--fpa-project-line);
  transition: background .25s ease, color .25s ease;
}
.fpa-bottom-link:last-child { border-right: 0; text-align: right; }
.fpa-bottom-back { text-align: center; }
.fpa-bottom-link span {
  color: var(--fpa-project-muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 9px;
  margin-bottom: 9px;
}
.fpa-bottom-link strong {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(19px, 2.1vw, 32px);
}
.fpa-bottom-link:hover { background: var(--fpa-project-gold); color: #090909; }
.fpa-bottom-link:hover span { color: rgba(9,9,9,.62); }
.fpa-bottom-link[hidden] { visibility: hidden; pointer-events: none; }

.fpa-project-footer {
  min-height: 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fpa-project-muted);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 9px;
}

.fpa-reveal,
.fpa-gallery-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1);
}
.fpa-reveal.is-visible,
.fpa-gallery-item.is-visible { opacity: 1; transform: none; }

.fpa-project-error {
  min-height: 100vh;
  width: min(calc(100% - (var(--fpa-project-pad) * 2)), 1000px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.fpa-project-error h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: clamp(50px, 8vw, 120px);
  text-transform: uppercase;
}
.fpa-project-error p { color: var(--fpa-project-muted); max-width: 620px; line-height: 1.7; }
.fpa-project-error a { color: var(--fpa-project-gold); text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; }

@media (max-width: 900px) {
  .fpa-project-header { height: 86px; }
  .fpa-project-mark { width: 48px; }
  .fpa-project-intro { min-height: 60vh; padding-top: 150px; }
  .fpa-project-overview { grid-template-columns: 1fr; gap: 28px; }
  .fpa-project-facts { grid-template-columns: 1fr; }
  .fpa-project-credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fpa-gallery-row.is-pair { grid-template-columns: 1fr; }
  .fpa-related-grid { grid-template-columns: 1fr; }
  .fpa-project-bottom-nav { grid-template-columns: 1fr; }
  .fpa-bottom-link { min-height: 108px; border-right: 0; border-bottom: 1px solid var(--fpa-project-line); text-align: left !important; }
  .fpa-bottom-link:last-child { border-bottom: 0; }
  .fpa-project-footer { min-height: 140px; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
}

@media (max-width: 520px) {
  .fpa-project-credits { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fpa-reveal,
  .fpa-gallery-item,
  .fpa-related-card img,
  .fpa-project-menu { transition: none !important; }
  .fpa-reveal,
  .fpa-gallery-item { opacity: 1; transform: none; }
}

/* Phase 5.37 — approved Fulgent project gallery standard, inherited by every project. */
.fpa-project-gallery.is-grid-4x5 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, .55vw, 10px);
  padding-bottom: clamp(72px, 8vw, 118px);
}
.fpa-project-gallery.is-grid-4x5 .fpa-gallery-item {
  aspect-ratio: 16 / 9;
  min-width: 0;
}
.fpa-project-gallery.is-grid-4x5 .fpa-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .fpa-project-gallery.is-grid-4x5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .fpa-project-gallery.is-grid-4x5 { grid-template-columns: 1fr; gap: 8px; }
}

/* Phase 5.37 — approved project hierarchy + cinematic still lightbox standard. */
.fpa-project-intro {
  min-height: 54vh;
  padding-top: clamp(150px, 18vh, 230px);
  padding-bottom: clamp(54px, 6vw, 90px);
}
.fpa-project-intro h1 {
  max-width: 1180px;
  font-size: clamp(56px, 8.2vw, 132px);
  line-height: .9;
  letter-spacing: -.035em;
}

/* The project flow is now: title -> film/hero -> stills -> compact credits. */
.fpa-project-hero {
  margin-bottom: clamp(48px, 6vw, 86px);
}
.fpa-project-gallery {
  padding-bottom: clamp(58px, 7vw, 92px);
}
.fpa-project-credits-block {
  padding-top: 22px;
  padding-bottom: clamp(64px, 8vw, 108px);
}

/* Make every gallery frame clearly interactive without adding visual clutter. */
.fpa-gallery-item {
  position: relative;
  cursor: zoom-in;
}
.fpa-gallery-open {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}
.fpa-gallery-open:focus-visible {
  outline: 1px solid var(--fpa-project-gold);
  outline-offset: 4px;
}
.fpa-gallery-open img {
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
}
.fpa-gallery-item:hover .fpa-gallery-open img {
  transform: scale(1.012);
  opacity: .96;
}

/* Full-screen still viewer. It never filters or recolours the grade. */
body.fpa-lightbox-open {
  overflow: hidden;
}
.fpa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  align-items: center;
  background: rgba(3,3,3,.985);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.fpa-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.fpa-lightbox[hidden] {
  display: none !important;
}
.fpa-lightbox-stage {
  min-width: 0;
  height: 100vh;
  padding: clamp(72px, 8vh, 100px) clamp(8px, 2vw, 34px) clamp(52px, 6vh, 76px);
  display: grid;
  place-items: center;
  position: relative;
}
.fpa-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.fpa-lightbox-close,
.fpa-lightbox-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f3efe8;
  cursor: pointer;
  font-family: "Raleway", Arial, sans-serif;
}
.fpa-lightbox-close {
  position: fixed;
  top: 30px;
  right: 34px;
  z-index: 2;
  padding: 10px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fpa-lightbox-arrow {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
  opacity: .72;
  transition: opacity .2s ease, color .2s ease;
}
.fpa-lightbox-arrow:hover,
.fpa-lightbox-arrow:focus-visible,
.fpa-lightbox-close:hover,
.fpa-lightbox-close:focus-visible {
  color: var(--fpa-project-gold);
  opacity: 1;
  outline: none;
}
.fpa-lightbox-caption {
  position: absolute;
  left: clamp(8px, 2vw, 34px);
  right: clamp(8px, 2vw, 34px);
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 9px;
}
.fpa-lightbox-caption strong {
  color: rgba(255,255,255,.78);
  font-weight: 400;
}

@media (max-width: 900px) {
  .fpa-project-intro { min-height: 46vh; padding-top: 132px; }
  .fpa-lightbox { grid-template-columns: 54px minmax(0,1fr) 54px; }
  .fpa-lightbox-arrow { font-size: 32px; }
}
@media (max-width: 620px) {
  .fpa-project-intro h1 { font-size: clamp(48px, 15vw, 78px); }
  .fpa-lightbox { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .fpa-lightbox-close { top: 16px; right: 14px; }
  .fpa-lightbox-stage { padding-top: 58px; padding-bottom: 48px; }
  .fpa-lightbox-image { max-height: calc(100vh - 110px); }
  .fpa-lightbox-caption { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fpa-gallery-open img,
  .fpa-lightbox { transition: none !important; }
}
