/* ============================================================
   WORK SINGLE — page-specific styles.
   No locked canonical exists for the single-work surface
   (the canonical inventory at v107 close ships an archive
   canonical only). This stylesheet authors a focused,
   restrained surface that leans on the lifted shared
   families:

     - .work-tile-* (base.css)        : poster + click-to-play
     - .case-related (base.css)       : tail rail wrapper
     - .case-related-card families: surface-specific (here)
     - .contact-tail (base.css)       : closing line

   New page-specific selectors introduced here:
     - .work-single-section           : outer block
     - .work-single-header            : kicker + h1 + meta strip
     - .work-single-frame             : full-width poster (16:9)
     - .work-single-meta              : labelled meta strip
     - .work-single-cta               : "Read the case study →" CTA
     - .work-related-grid             : 3-up grid for tail rail

   Posture: quiet, single-screen surface. The film is the hero;
   everything else is service text.

   @since 0.5.48
   ============================================================ */


/* ----------------------------------------------------------
   HEADER — kicker + title + meta strip (sits on top of
   the play frame). Matches the page-header chassis in
   typographic register but uses a tighter cadence.
---------------------------------------------------------- */

.work-single-header {
  padding-block: var(--s-9) var(--s-7);
}
.work-single-kicker {
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-4);
}
.work-single-headline {
  margin: 0 0 var(--s-5) 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 28ch;
}
.work-single-headline em { font-style: italic; }

.work-single-meta {
  display: flex; flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  align-items: baseline;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-quiet);
}
.work-single-meta strong {
  color: var(--ink); font-weight: 600;
  margin-right: var(--s-2);
  letter-spacing: 0.10em; text-transform: uppercase;
  font-size: 11px;
}


/* ----------------------------------------------------------
   FRAME — large 16:9 click-to-play. The .work-tile-frame
   family from base.css does the heavy lifting; this scopes
   a few size adjustments for full-width single use.
---------------------------------------------------------- */

.work-single-section {
  padding-block: var(--s-7) var(--s-9);
}
.work-single-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-warm);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: box-shadow var(--motion-duration-content) var(--motion-ease-content);
}
.work-single-frame:hover {
  box-shadow: 0 12px 48px rgba(20,20,19,.12);
}
.work-single-frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.work-single-poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--motion-duration-content) var(--motion-ease-content),
              filter var(--motion-duration-content) var(--motion-ease-content);
}
.work-single-frame:hover .work-single-poster {
  transform: scale(1.01);
  filter: brightness(0.94);
}
.work-single-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.work-single-play::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,19,0) 50%,
    rgba(20,20,19,0.16) 100%
  );
  opacity: 0.85;
  transition: opacity var(--motion-duration-content) var(--motion-ease-content);
}
.work-single-frame:hover .work-single-play::before { opacity: 1; }
.work-single-play-icon {
  position: relative; z-index: 1;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(250,250,247,0.94);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(20,20,19,0.20);
  transition: transform var(--motion-duration-content) var(--motion-ease-content),
              background var(--motion-duration-content) var(--motion-ease-content);
}
.work-single-frame:hover .work-single-play-icon {
  transform: scale(1.06);
  background: var(--paper);
}
.work-single-play-icon svg {
  width: 30px; height: 30px;
  margin-left: 4px;
}
.work-single-frame.is-playing .work-single-poster,
.work-single-frame.is-playing .work-single-play {
  display: none;
}
.work-single-frame.is-playing { cursor: default; }
.work-single-frame.is-playing iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}


/* ----------------------------------------------------------
   CASE STUDY CTA — under the frame, when a related case
   study exists. Quiet but visible.
---------------------------------------------------------- */

.work-single-cta-row {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-4);
}
.work-single-cta-row p {
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.4;
  color: var(--ink-soft);
  max-width: 56ch;
}
.work-single-cta {
  display: inline-flex; align-items: baseline;
  font-family: var(--sans); font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color var(--motion-duration-ui) var(--motion-ease-ui),
              border-color var(--motion-duration-ui) var(--motion-ease-ui);
}
.work-single-cta:hover {
  color: var(--ink);
  border-color: var(--ink);
}


/* ----------------------------------------------------------
   RELATED RAIL — "More from The Work". Reuses the lifted
   .case-related wrapper + .case-related-header from
   base.css. The card grammar inside is a 3-up grid of
   work-tiles (the same .work-tile family from base.css).
---------------------------------------------------------- */

.work-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7) var(--s-6);
}
@media (max-width: 1023px) {
  .work-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6) var(--s-5);
  }
}
@media (max-width: 640px) {
  .work-related-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}
