/* Work detail: light wide page; a dark stage card holds the clip and the way in. */
.work-detail { background: var(--ground); padding-bottom: 72px; }
.work-detail .dp-back { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 14px; font-size: 14px; color: var(--muted); text-decoration: none; }
.work-detail .dp-back:hover { color: var(--ink); }
.dp-stage { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(300px, 1fr); background: #121415; border-radius: 18px; overflow: hidden; color: #FFFFFF; box-shadow: 0 24px 50px -30px rgba(34, 36, 38, .7); }
.dp-player { position: relative; aspect-ratio: 16 / 9; background: #121415; min-width: 0; }
.dp-player video, .dp-player > img { display: block; width: 100%; height: 100%; object-fit: contain; background: #121415; }
/* Only the edge next to the text softens; the picture itself stays clear. */
.dp-player::after { content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 6%; pointer-events: none; background: linear-gradient(90deg, rgba(18, 20, 21, 0), #121415); }
.work-detail .detail-video-error { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; background: #222426; color: #F5F5F1; padding: 12px 16px; font-size: 13px; }
.dp-info { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(22px, 2.4vw, 44px); min-width: 0; }
.dp-info h1 { margin: 0; font-size: clamp(32px, 3vw, 54px); line-height: 1.12; letter-spacing: 0; color: #FFFFFF; }
.dp-tagline { margin: 0; font-size: 16px; line-height: 1.65; color: #D5D8D0; }
.dp-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: #B4B9B0; }
.dp-meta li { display: inline-flex; align-items: center; }
.dp-meta li + li::before { content: ''; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: #7D827A; }
.dp-meta .dp-fee { color: #A9C29A; font-weight: 600; }
.dp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; margin-top: 8px; padding: 0 28px; border-radius: 999px; background: #A9C29A; color: #121415; font-size: 18px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.dp-cta svg { width: 18px; height: 18px; }
.dp-cta:hover { background: #FFFFFF; color: #121415; transform: translateY(-2px); }
.dp-cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.dp-note { margin: 0; font-size: 13px; text-align: center; color: #8F958C; }
.dp-facts { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid #2C3032; display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; font-size: 14px; }
.dp-facts dt { color: #8F958C; }
.dp-facts dd { margin: 0; }

.dp-h { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 16px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.dp-h small { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--muted); }
.dp-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dp-shot { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #121415; box-shadow: 0 14px 30px -22px rgba(34, 36, 38, .6); cursor: zoom-in; }
.dp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dp-shot:hover img { transform: scale(1.03); }
.dp-shot:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.work-detail[data-orientation="portrait"] .dp-shots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.work-detail[data-orientation="portrait"] .dp-shot { aspect-ratio: 9 / 16; }

.dp-about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; margin-top: 44px; }
.dp-about > :only-child { grid-column: 1 / -1; }
.dp-panel { background: var(--white); border: 1px solid #E0E1DA; border-radius: 16px; padding: 28px 32px; }
.dp-panel h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: 0; }
.dp-panel p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.dp-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 15px; }
.dp-panel dt { color: var(--muted); }
.dp-panel dd { margin: 0; }

/* More works reuse the home cards; only the column count is local. */
.work-detail .dp-more .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 0; }
.work-detail .dp-more { background: none; }

@media (max-width: 999px) {
  .dp-stage { grid-template-columns: minmax(0, 1fr); }
  .dp-player::after { display: none; }
  .dp-info { padding: 22px; }
  .dp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-detail[data-orientation="portrait"] .dp-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp-about { grid-template-columns: minmax(0, 1fr); }
  .work-detail .dp-more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .work-detail { padding-bottom: 48px; }
  .dp-stage { border-radius: 14px; }
  .dp-info { padding: 18px 16px 20px; gap: 12px; }
  .dp-info h1 { font-size: 30px; }
  .dp-h { margin: 32px 0 12px; font-size: 21px; }
  /* Many shots would make a very long page on a phone: swipe sideways instead. */
  .dp-shots, .work-detail[data-orientation="portrait"] .dp-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .dp-shots::-webkit-scrollbar { display: none; }
  .dp-shot { flex: 0 0 86%; scroll-snap-align: center; }
  .work-detail[data-orientation="portrait"] .dp-shot { flex-basis: 46%; }
  .dp-about { margin-top: 32px; gap: 14px; }
  .dp-panel { padding: 20px; }
  .work-detail .dp-more .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dp-cta, .dp-shot img { transition: none; }
  .dp-cta:hover, .dp-shot:hover img { transform: none; }
  .work-detail .lightbox, .work-detail .lightbox-figure { animation: none; }
}

/* Native, keyboard-accessible image viewer. */
.work-detail .lightbox { position: fixed; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; padding: 60px 100px; background: rgba(12,14,18,.94); animation: concept-fade .18s ease both; }
.work-detail .lightbox-figure { width: min(1100px,100%); margin: 0; animation: concept-rise .24s ease both; }
.work-detail .lightbox-figure img { display: block; width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; box-shadow: 0 24px 90px rgba(0,0,0,.45); }
.work-detail .lightbox-figure figcaption { display: flex; justify-content: space-between; padding-top: 14px; color: #e9e9e2; font-size: 13px; }
.work-detail .lightbox-figure figcaption b { font: 12px/1.5 var(--display); font-weight: 500; letter-spacing: .08em; }
.work-detail .lightbox-figure figcaption i { color: #82857f; font-style: normal; padding: 0 4px; }
.work-detail .lightbox-close,.work-detail .lightbox-arrow { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.06); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.work-detail .lightbox-close:hover,.work-detail .lightbox-arrow:hover { background: rgba(143,89,65,.75); }
.work-detail .lightbox-close { top: 24px; right: 30px; width: 44px; height: 44px; border-radius: 50%; font-size: 27px; line-height: 1; font-weight: 300; }
.work-detail .lightbox-arrow { top: 50%; width: 48px; height: 56px; transform: translateY(-50%); font-size: 38px; line-height: 1; font-weight: 300; }
.work-detail .lightbox-arrow:hover { transform: translateY(-50%) scale(1.05); }
.work-detail .lightbox-prev { left: 30px; }
.work-detail .lightbox-next { right: 30px; }
@keyframes concept-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes concept-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.work-detail .lightbox{margin:0;border:0;width:100vw;height:100dvh;max-width:none;max-height:none;color:#f5f5f1}
.work-detail .lightbox:not([open]){display:none}
.work-detail .lightbox::backdrop{background:rgba(12,14,18,.5)}
.work-detail .lightbox-figure img{min-height:100px}
@media (max-width: 640px) {
  .work-detail .lightbox { padding: 56px 18px; }
  .work-detail .lightbox-prev { left: 10px; }
  .work-detail .lightbox-next { right: 10px; }
  .work-detail .lightbox-arrow { width: 38px; height: 46px; }
}
