/* Clark Renders — a project page (project.html). Built on showcase.css and work.css. */

/* where you are */
.p-crumb { font-size: var(--fs-state); line-height: 1.05; }
.p-crumb a { color: var(--soft); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .p-crumb a:hover { color: var(--ink); } }
.p-crumb .sep { color: var(--soft); }
/* the project's categories, after "Work": plain capitals like every other page title (no italic) */
.p-types { font: inherit; text-transform: inherit; }

/* the stage: details left, images right — as on the Work page */
.p-stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); column-gap: 4vw;
  margin: 0 var(--pad);
  user-select: none; -webkit-user-select: none; touch-action: none;
}

/* the details */
.p-info { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; }
.p-name { margin: 0; font-size: var(--fs-big); line-height: 0.9; letter-spacing: -0.025em; font-weight: 700; }
.p-by { font-size: var(--fs-state); line-height: 1; color: var(--soft); margin-top: 0.3em; }
.p-meta { margin-top: 1em; display: flex; flex-wrap: wrap; gap: 0.3em 1.4em; }
.p-sum { margin-top: 1.4em; max-width: 34em; }
.p-readmore { margin-top: 0.9em; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.p-readmore[aria-expanded="true"] .plus { transform: rotate(45deg); }
.p-credits { margin: 1.6em 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35em 1.6em; }
.p-credits dt { color: var(--soft); }
.p-credits dd { margin: 0; }
/* the design credit: a small label, then the name */
.p-credit { margin-top: 0.5em; display: flex; flex-direction: column; gap: 0.15em; }
.p-crlab { letter-spacing: 0.02em; }
.p-credit .p-by { margin-top: 0; color: var(--ink); }
/* the commission: the three public capabilities, one line */
.p-commission { margin-top: 1.1em; display: flex; gap: 1em; }
/* film is always clearly a film: a small play mark on its thumbnail and its picture */
.play { display: inline-block; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-right: 6px; vertical-align: 0.05em; }
.p-thumb .play { position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px; color: #fff; filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6)); }
.p-col .hero .tag { display: inline-flex; align-items: center; }

/* the scope: what was done, in order, a line under each */
.p-scope { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 0.75em; max-width: 34em; }
.p-scope li { display: grid; grid-template-columns: 2.2em 1fr; column-gap: 0.4em; }
.p-scope .n { grid-row: span 2; }
.p-scope .nt { text-transform: none; font-weight: 500; font-stretch: 100%; font-size: 1.05em; line-height: 1.3; margin-top: 0.15em; }
.p-scope .nt:empty { display: none; }
.p-stage.more-open .p-scope { visibility: hidden; }
.p-types a { color: inherit; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .p-types a:hover { color: var(--soft); } }
.p-group { align-self: center; margin: 0 2px 0 6px; font-size: 10px; letter-spacing: 0.04em; }
.p-group:first-child { margin-left: 0; }
.p-nav { margin-top: 1.8em; }
.p-count { display: block; margin-bottom: 0.7em; }
.p-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.p-thumb { position: relative; height: clamp(40px, 5.6vh, 62px); padding: 0; opacity: 0.4; transition: opacity 250ms ease; }
.p-thumb.on { opacity: 1; }
.p-thumb img { display: block; height: 100%; width: auto; }
.p-thumb .film { position: absolute; right: 4px; bottom: 3px; color: #fff; font-size: 9px; text-shadow: 0 0 4px rgba(0, 0, 0, 0.6); }
@media (hover: hover) and (pointer: fine) { .p-thumb:hover { opacity: 1; } }

/* "Read more": the full text and credits open over the details */
.p-more {
  position: absolute; inset: 0; z-index: 5; background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; user-select: text; -webkit-user-select: text;
  opacity: 0; transform: translateY(10px); transition: opacity 350ms ease, transform 500ms var(--ease-out);
}
.p-more.is-open { opacity: 1; transform: none; }
.p-more[hidden] { display: none; }
.p-more-in { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 24px; }
.p-body p { margin: 0 0 1em; max-width: 36em; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.4; font-weight: 500; text-transform: none; font-stretch: 100%; }
.p-more .p-credits { margin-top: 1.2em; }
.p-services { margin-top: 1.4em; }
.p-more-lab { margin-bottom: 1.2em; }
.p-close { align-self: flex-start; margin-bottom: 1.4em; border-bottom: 2px solid currentColor; }
.p-stage.more-open .p-nav, .p-stage.more-open .p-credits:not(.all) { visibility: hidden; }

/* the film and images */
.p-col { position: relative; overflow: hidden; min-height: 0; }
.p-col .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.p-col .hero .tag { position: absolute; left: 10px; bottom: 9px; color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); }

/* the strip along the bottom */
.p-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 0 var(--pad); padding: 10px 0 var(--pad); border-top: 1px solid var(--line);
}
.p-foot a { display: inline-flex; align-items: center; gap: 0.7em; }
.arr { position: relative; width: 14px; height: 9px; display: inline-block; }
.arr::before { content: ""; position: absolute; left: 0; right: 1px; top: 4px; height: 1.5px; background: currentColor; }
.arr::after { content: ""; position: absolute; top: 1.5px; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arr.r::after { right: 1px; transform: rotate(45deg); }
.arr.l::after { left: 1px; transform: rotate(-135deg); }
.arr { transition: transform 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .p-next:hover .arr { transform: translateX(3px); }
  .p-back:hover .arr { transform: translateX(-3px); }
}

/* phones: the images in a sideways row at the top, the details beneath */
@media (max-width: 900px) {
  .p-crumb { font-size: 19px; }
  .p-stage { display: flex; flex-direction: column; }
  .p-col { order: 1; flex: none; height: 46%; overflow: visible; margin: 0 calc(var(--pad) * -1); }
  .p-info { order: 2; justify-content: flex-start; padding-top: 14px; flex: 1; min-height: 0; }
  .p-name { font-size: 30px; }
  .p-by { font-size: 17px; }
  .p-sum { margin-top: 0.8em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .p-scope { margin-top: 0.9em; gap: 0.2em; }
  .p-scope .nt { display: none; }
  .p-nav { margin-top: 1em; }
  /* phones: the thumbnails scroll sideways on their own, so a long gallery stays easy to jump around */
  .p-thumbs { flex-wrap: nowrap; overflow-x: auto; touch-action: pan-x; scrollbar-width: none; padding-bottom: 2px; }
  .p-thumbs::-webkit-scrollbar { display: none; }
  .p-thumb { flex: none; }
  .p-commission { margin-top: 0.7em; }
  .p-more { position: fixed; inset: 0; z-index: 25; padding: 90px var(--pad) var(--pad); }
}
@media (prefers-reduced-motion: reduce) { .p-more { transition: none; } }
