/* =====================================================================
   Portfolio subpages — Film / Animation / Design / Photography
   Extends the Rotunda direction (tokens.css + direction-3-rotunda.css).
   Navy hero band + chrome, paper body with editorial grids.
   ===================================================================== */

/* ---------- Top band: chrome sits over a navy hero ---------- */
.pf-top { position: relative; background: var(--navy); }

/* Active state for the CREATING trigger + current sub-item */
.ro-drop > button.is-active { color: var(--orange); }
.ro-drop-menu a.is-current { color: var(--orange); }
.ro-drop-menu a.is-current > i { color: var(--orange); }

.pf-hero {
  background: var(--navy); color: var(--cream);
  padding: 168px var(--ro-pad) 88px;
  position: relative; overflow: hidden;
}
.pf-hero::after {
  content: ""; position: absolute;
  right: -220px; top: -180px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(229,114,0,0.16) 0%, rgba(229,114,0,0) 62%);
  pointer-events: none;
}
.pf-hero > * { position: relative; z-index: 2; }

.pf-crumb {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: var(--tracking-mono-wide);
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 40px;
}
.pf-crumb a { color: rgba(244,239,230,0.6); text-decoration: none; }
.pf-crumb a:hover { color: var(--cream); }
.pf-crumb .pf-crumb-sep { color: rgba(244,239,230,0.35); }
.pf-crumb .pf-crumb-cur { color: var(--orange); }

.pf-hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 120px; line-height: 0.94; letter-spacing: -0.03em;
  color: var(--cream); margin: 0; max-width: 15ch;
  text-wrap: balance;
}
.pf-hero h1 em { color: var(--orange); font-style: italic; font-weight: 400; }

.pf-hero-lede {
  font-family: var(--font-serif); font-style: italic;
  font-size: 24px; line-height: 1.5; color: rgba(244,239,230,0.82);
  margin: 32px 0 0; max-width: 720px;
}
.pf-hero-lede em { color: var(--orange-2); font-style: italic; }

.pf-hero-meta {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--rule-on-dark);
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: var(--tracking-mono-tight);
  text-transform: uppercase; color: rgba(244,239,230,0.6);
}
.pf-hero-meta strong { color: var(--cream); font-weight: 500; }

/* ---------- Body ---------- */
.pf-body {
  background: var(--paper);
  padding: 96px var(--ro-pad) 120px;
}
.pf-body.is-cream { background: var(--cream); }

.pf-set-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin: 0 0 40px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}
.pf-set-head:not(:first-child) { margin-top: 104px; }
.pf-set-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 44px; line-height: 1; letter-spacing: -0.024em;
  color: var(--navy); margin: 0;
}
.pf-set-title em { color: var(--orange); font-style: italic; font-weight: 400; }
.pf-set-note {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: var(--tracking-mono-wide); text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* ---------- Video grid (Film / Animation) ---------- */
.pf-vgrid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}
.pf-vcard { display: flex; flex-direction: column; }

.pf-video {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--navy-2); overflow: hidden;
  border: 1px solid var(--rule);
}
.pf-video img,
.pf-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block;
}
.pf-video img { object-fit: cover; filter: contrast(1.03) saturate(1.02); }

/* Play facade */
.pf-video button {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.pf-video button::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,36,56,0.15) 0%, rgba(27,36,56,0) 40%, rgba(27,36,56,0.55) 100%);
  transition: background .25s;
}
.pf-video button:hover::before { background: rgba(27,36,56,0.42); }
.pf-play {
  position: relative; z-index: 2;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.pf-video button:hover .pf-play { transform: scale(1.08); background: var(--orange-deep); }
.pf-play::after {
  content: ""; margin-left: 5px;
  border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}

/* Placeholder (no embed yet) */
.pf-video.is-placeholder { background: var(--navy-2); }
.pf-video.is-placeholder .pf-ph {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-decoration: none;
}
.pf-video.is-placeholder .pf-ph .pf-play { width: 60px; height: 60px; box-shadow: none; }
.pf-video.is-placeholder .pf-ph .pf-play::after { border-width: 10px 0 10px 17px; }
.pf-video.is-placeholder .pf-ph span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-mono-wide); text-transform: uppercase;
  color: rgba(244,239,230,0.7);
}

/* Video caption */
.pf-vcap { padding-top: 20px; }
.pf-vcap-top {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px;
}
.pf-vnum {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--orange);
}
.pf-vtype {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-mono-wide); text-transform: uppercase;
  color: var(--muted); margin-left: auto;
}
.pf-vtitle {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.016em;
  color: var(--navy); margin: 0;
}
.pf-vtitle em { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.pf-vtags {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; color: var(--ink-soft); margin: 8px 0 0;
}

/* ---------- Design grid ---------- */
.pf-dgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.pf-dcard { display: flex; flex-direction: column; text-decoration: none; }
.pf-dframe {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--cream-2); overflow: hidden;
  border: 1px solid var(--rule);
}
.pf-dframe img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.pf-dcard:hover .pf-dframe img { transform: scale(1.04); }
.pf-dframe .pf-ph-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-mono-wide); text-transform: uppercase;
  color: var(--muted);
}
.pf-dcap { padding-top: 18px; }
.pf-dtitle {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.016em;
  color: var(--navy); margin: 0; transition: color .2s;
}
.pf-dcard:hover .pf-dtitle { color: var(--orange); }
.pf-dtags {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-mono-tight); text-transform: uppercase;
  color: var(--muted); margin: 10px 0 0;
}

/* ---------- Photography sets ---------- */
.pf-pgrid {
  columns: 3; column-gap: 20px;
}
.pf-pgrid > * {
  break-inside: avoid; margin: 0 0 20px;
  display: block; width: 100%;
}
.pf-pgrid image-slot {
  width: 100%; aspect-ratio: 3 / 4; display: block;
}
.pf-pgrid image-slot.is-wide { aspect-ratio: 3 / 2; }
.pf-pgrid image-slot.is-tall { aspect-ratio: 2 / 3; }
/* Real photo tiles (static galleries) */
.pf-pgrid figure { margin: 0 0 20px; }
.pf-pgrid img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); background: var(--cream-2);
}

/* ---------- Project detail gallery (Design subpages) ---------- */
.pf-gallery {
  display: grid; gap: 28px;
  max-width: 960px; margin: 0 auto;
}
.pf-gallery figure { margin: 0; }
.pf-gallery img {
  display: block; width: 100%;
  border: 1px solid var(--rule);
  background: var(--cream-2);
}
.pf-gallery figcaption {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-mono-tight); text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Back to archive (foot of body) ---------- */
.pf-return {
  margin-top: 88px; padding-top: 40px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.pf-return-links { display: flex; gap: 28px; flex-wrap: wrap; }
.pf-return a {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: var(--tracking-mono-wide);
  text-transform: uppercase; color: var(--orange); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.pf-return a:hover { color: var(--orange-deep); }
.pf-return .pf-return-note {
  font-family: var(--font-serif); font-style: italic; font-size: 15px;
  color: var(--muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .pf-hero { padding: 148px var(--ro-pad) 72px; }
  .pf-hero h1 { font-size: 84px; }
  .pf-hero-lede { font-size: 21px; }
  .pf-dgrid { grid-template-columns: repeat(2, 1fr); }
  .pf-pgrid { columns: 2; }
  .pf-set-title { font-size: 36px; }
}

/* ---------- Phone ---------- */
@media (max-width: 620px) {
  .pf-hero { padding: 128px var(--ro-pad) 56px; }
  .pf-hero h1 { font-size: 52px; }
  .pf-hero-lede { font-size: 18px; margin-top: 24px; }
  .pf-hero-meta { gap: 10px 24px; }
  .pf-body { padding: 64px var(--ro-pad) 80px; }
  .pf-vgrid { grid-template-columns: 1fr; gap: 40px; }
  .pf-dgrid { grid-template-columns: 1fr; gap: 36px; }
  .pf-pgrid { columns: 1; }
  .pf-set-head:not(:first-child) { margin-top: 64px; }
  .pf-set-title { font-size: 30px; }
  .pf-play { width: 60px; height: 60px; }
  .pf-play::after { border-width: 10px 0 10px 17px; }
}
