/* Magic 1: the work track, the traveling draft, the stations. Shared by Home and the product pages. */
.work .track__view { background: var(--studio); }
.work .station { position: absolute; inset: 0; }
.work .station img, .work .station video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.work .station video { display: none; }
.work .station.is-acting video { display: block; }
.work .station-cap { position: absolute; left: var(--gutter); top: 22px; z-index: 3; display: grid; gap: 4px; }
.work .station-cap b { font-family: var(--head); font-size: 1.25rem; background: rgba(247,245,240,.92); padding: 6px 12px; border-radius: 10px; }
.work .station-cap span { font-family: var(--ui); font-size: .8rem; background: rgba(247,245,240,.9); padding: 4px 10px; border-radius: 8px; width: max-content; }
.work .controls { position: absolute; right: var(--gutter); top: 22px; z-index: 4; display: flex; gap: 8px; }
.work .controls .btn { background: rgba(247,245,240,.95); }
.draft { width: 420px; background: #fffdf8; color: var(--ink); border-radius: 10px; box-shadow: 0 24px 60px rgba(17,22,39,.3); padding: 26px 28px; font-size: 1rem; line-height: 1.45; position: relative; }
.draft .dh { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--ui); font-size: .8rem; color: var(--ink-3); }
.draft .dh .chip { font-size: .8rem; min-height: 24px; }
.draft .line { display: block; margin: 0 0 .6em; position: relative; transition: color .2s var(--ease); }
.draft .line.struck { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #c8322b; text-decoration-thickness: 3px; }
.draft .line .note { display: none; font-family: var(--ui); font-size: .8rem; color: #c8322b; margin-left: 6px; }
.draft .line.struck .note { display: inline; text-decoration: none; }
.draft .line.swap .old { text-decoration: line-through; text-decoration-color: #c8322b; text-decoration-thickness: 3px; color: var(--ink-3); display: block; }
.draft .line.swap .new { display: none; font-weight: 600; }
.draft .line.swap .old { display: block; }
.draft .line.swap:not(.is-swapped) .old { text-decoration: none; color: inherit; }
.draft .line.swap.is-swapped .new { display: block; }
.draft .sig { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(21,23,28,.2); display: flex; align-items: center; gap: 10px; min-height: 44px; flex-wrap: wrap; }
.draft .sig .stamp { display: none; font-family: var(--display); font-weight: 700; color: #1d7a52; border: 3px solid #1d7a52; border-radius: 8px; padding: 2px 10px; transform: rotate(-6deg); }
.draft.is-signed .sig .stamp { display: inline-block; }
.draft .sig .await { font-family: var(--ui); font-size: .8rem; color: var(--ink-3); }
.draft.is-signed .sig .await { display: none; }
/* the Approve button shows only when the draft is ready and not yet signed: the visitor's yes is an action, never a default */
.draft .sig .approve { display: none; margin-left: auto; min-height: 44px; }
.draft.is-ready:not(.is-signed) .sig .approve { display: inline-flex; }
.draft.is-ready:not(.is-signed) .sig .await { color: var(--ink-2); }
.draft .source { font-family: var(--ui); font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
.draft .source b { color: var(--ink-2); font-weight: 600; }
.draft.is-phone { width: 300px; border-radius: 30px; border: 8px solid var(--navy); padding: 18px; }
.work .traveler { position: absolute; left: 0; top: 0; z-index: 5; transform-origin: 0 0; will-change: transform; }
.work .track__panel .draft-copy { display: none; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .work .traveler, .work .controls { display: none; }
  .work .track__panel { min-height: auto; padding: 0 0 20px; }
  .work .station { position: relative; aspect-ratio: 16 / 10; }
  .work .track__panel .draft-copy { display: block; margin: -40px var(--gutter) 0; position: relative; z-index: 3; }
  .work .track__panel .draft-copy .draft { width: min(420px, 100%); }
  .work .station-cap { top: 14px; right: var(--gutter); }
  .work .station-cap span { width: auto; max-width: 100%; justify-self: start; }
  .work .m-controls { padding: 10px var(--gutter) 30px; display: flex; gap: 8px; }
}
.work .m-controls { display: none; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) { .work .m-controls { display: flex; } }

.work .trav-cap { margin: 10px 0 0; max-width: 420px; background: rgba(247,245,240,.9); padding: 6px 10px; border-radius: 8px; }

/* Deliverables (F2: A01-A08, F22, F24). Every piece shown whole at its own shape, in justified rows: each card's width
   follows its picture's aspect (--r), so pictures in a row share one height and nothing is cropped or padded (rules 2, 3, 9). */
.dlv-quiet { margin: 0 0 16px; }
.dlv-art { margin: 0; }
.dlv-art img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(17, 22, 39, .14); }
.dlv-art--pair { display: flex; gap: 8px; align-items: flex-start; }
.dlv-art--pair img { flex: 1 1 0; width: 0; min-width: 0; }
.dlv-art--film { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 2.667; }
.dlv-art--film img { height: 100%; object-fit: cover; }
.dlv-art--film .f0 { grid-row: 1 / span 2; }
.dlv-art--collage { display: grid; grid-template-columns: 43.4% minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px; aspect-ratio: 1.72; }
.dlv-art--collage img { height: 100%; object-fit: cover; }
.dlv-art--collage .c-tall { grid-row: 1 / span 2; }
.dlv-art--collage .c-wide { height: auto; aspect-ratio: 2; }
.dlv-art--collage .c-note { background: var(--card, #fff); border-radius: 10px; padding: 14px 16px; display: grid; align-content: start; gap: 6px; }
/* a post set as text, in the shape of a feed post, so every word reads at any size */
.dlv-art--post { display: grid; }
.dlv-post { background: #fff; color: var(--ink); border: 1px solid rgba(21, 23, 28, .12); border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 10px 30px rgba(17, 22, 39, .1); font-family: var(--ui); }
.dlv-post-top { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 12px; }
.dlv-post-top span:last-child { margin-left: auto; color: var(--ink-3); font-size: .82rem; }
.dlv-post-av { width: 30px; height: 30px; border-radius: 50%; background: #034638; flex: 0 0 auto; }
.dlv-post h4, .dlv-post .dlv-post-h { font-family: var(--body); font-weight: 700; font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; max-width: none; } /* SWEEP: the post title is text in a mock post, not a page heading */
.dlv-post p { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.dlv-post-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.dlv-post-tags li { font-size: .78rem; border: 1px solid rgba(21, 23, 28, .18); border-radius: 999px; padding: 2px 10px; }
.dlv-lines { margin: 0; display: grid; gap: 4px; font-family: var(--ui); font-size: .92rem; }
.dlv-lines > div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.dlv-lines dt { font-weight: 700; }
.dlv-lines dd { margin: 0; }
.dlv-made { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dlv-made .label { margin-right: 4px; }
.dlv-made .uwee .shadow { display: none; }
/* the library: justified rows */
.dlv-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px 24px; --rowh: 330px; }
.dlv-card { flex: var(--r) 1 calc(var(--r) * var(--rowh)); min-width: 0; display: grid; gap: 12px; }
.dlv-fill { flex: 3 1 0; height: 0; padding: 0; margin: 0; }
.dlv-meta { display: grid; gap: 6px; align-content: start; }
.dlv-meta h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.dlv-meta p { margin: 0; font-size: .97rem; line-height: 1.45; max-width: 60ch; }
.dlv-meta .dlv-brand { font-family: var(--ui); font-weight: 700; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; opacity: .8; }
.dlv-meta .text-link { justify-self: start; font-family: var(--ui); font-weight: 600; font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
/* the proof: fewer pieces, each shown large enough to read, words beside it */
.dlv-proof-wrap { margin-top: clamp(32px, 4vw, 56px); }
.dlv-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 4vw, 56px); }
.dlv-proof .dlv-card { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.dlv-proof .dlv-meta { order: -1; }
.dlv-proof .dlv-meta h3 { font-size: 1.5rem; }
.dlv-proof .dlv-meta p { font-size: 1.05rem; }
.dlv-proof .dlv-art img { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
@media (max-width: 860px) {
  .dlv-grid { gap: 32px; }
  .dlv-card { flex: 1 1 100%; }
  .dlv-fill { display: none; }
  .dlv-proof .dlv-card { grid-template-columns: 1fr; }
  .dlv-proof .dlv-meta { order: 0; }
}
/* rule 2 (FIX-F2 r1): on a phone the 1.72 frame squeezed the rink into a tall slot and cropped it; now each picture keeps its own shape:
   the rink beside the note, the diner full width below */
@media (max-width: 560px) {
  .dlv-art--collage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; aspect-ratio: auto; align-items: start; }
  .dlv-art--collage img, .dlv-art--collage .c-wide { height: auto; }
  .dlv-art--collage .c-tall { grid-row: 1; grid-column: 1; }
  .dlv-art--collage .c-note { grid-row: 1; grid-column: 2; }
  .dlv-art--collage .c-wide { grid-row: 2; grid-column: 1 / span 2; }
}
