/* Hallmark · shape: Photographic, a full-bleed project film and then the case in order · genre: atmospheric · theme: brand
 * paper: oklch(15.3% 0.007 56.2) · accent: oklch(67.6% 0.216 37.4) · display: Archivo Expanded · body: Archivo · hero: Poster, the project film full-bleed and the head low left · nav: clapper tab, top left, by request · footer: viewfinder ledger over the wordmark, by request · signature: the film framed by the logo's viewfinder corners and REC dot
 * axes: dark/grotesk-heavy/warm · posture: Full palette · contrast: pass · fold: pass · job: hire · brand: Grainback Studios (spec 2026-11-06) · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, four pages share one case order; the order is the owner's own from Polaroid X, the films and stills keep them apart */
/* Hallmark · dropped 44d · the owner asked for the AreYouDami layout exactly, and it pins the tab and title to the screen edges at every width */

/* ---------- while a film plays the page goes dark and the grain steps aside ---------- */
.dim { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-dim); opacity: 0; pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); }
.is-screening .dim { opacity: 1; }
.is-on-screen { z-index: calc(var(--z-modal) + 1); }
.grain { transition: opacity var(--dur-long) linear; }
.is-screening .grain { opacity: 0; animation-play-state: paused; }

/* ---------- the film opening, same stack as the Home slides ---------- */
.case-hero { position: relative; min-height: 100svh; overflow: clip; background: var(--color-paper); color: var(--color-ink); }
.js.motion .case-hero .line > span { transform: none; transition: none; }
.case-hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-scrim-strong) 0%, var(--color-scrim-strong) 36%, transparent 80%); }
.case-hero__text { position: absolute; left: var(--stage-text-x); right: var(--page-gutter); bottom: var(--space-2xl); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.case-hero__go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; transition: opacity var(--dur-micro) linear; }
.case-hero__go:hover { opacity: 0.75; }
.case-hero__go:active { opacity: 0.6; }
.case-hero__go:focus-visible { outline-color: var(--color-negative); }
.case-hero__toggle { position: absolute; right: var(--page-gutter); bottom: var(--space-2xl); margin: 0; }
html:not(.motion) .case-hero__toggle { display: none; }

/* ---------- the case ---------- */
.case { display: grid; gap: var(--section-gap-s); width: 100%; max-width: 1200px; margin-inline: auto; padding: var(--section-gap-s) var(--page-gutter); }
.case > * { min-width: 0; }
.case__lede { max-width: 30ch; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.case__h { max-width: none; font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.case__p { max-width: 58ch; color: var(--color-ink-2); line-height: 1.6; }
.case__tag { color: var(--color-accent); font-size: var(--text-sm); font-weight: 600; }
.case__note { color: var(--color-muted); font-size: var(--text-sm); }
.case__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); }
.case__col { display: grid; gap: var(--space-md); align-content: start; min-width: 0; }
.section-label { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-xs); }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--color-rule); }
.section-label__link { order: 1; color: var(--color-muted); font-size: var(--text-sm); text-decoration: none; transition: color var(--dur-short) linear; }
.section-label__link:hover { color: var(--color-accent); }
.section-label__link:active { color: var(--color-ink); }

/* the film sits inside the logo's viewfinder: four corners and the REC dot */
.case__player { position: relative; margin: var(--space-md); scroll-margin-top: var(--space-3xl); }
.case__frame { position: relative; aspect-ratio: 16 / 9; background: var(--color-paper-2); }
.case__frame iframe, .case__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
/* a 4:3 film keeps its own frame and stays on one screen */
.case__player--43 { width: min(calc(100% - 2 * var(--space-md)), calc(78svh * 4 / 3)); margin-inline: auto; }
.case__player--43 .case__frame { aspect-ratio: 4 / 3; }
.case__player::before, .case__player::after, .case__frame::before, .case__frame::after { content: ""; position: absolute; width: 40px; height: 40px; border: 2px solid var(--color-ink); pointer-events: none; }
.case__player::before { left: calc(-1 * var(--space-md)); top: calc(-1 * var(--space-md)); border-right: 0; border-bottom: 0; }
.case__player::after { left: calc(-1 * var(--space-md)); bottom: calc(-1 * var(--space-md)); border-right: 0; border-top: 0; }
.case__frame::before { right: calc(-1 * var(--space-md)); top: calc(-1 * var(--space-md)); border-left: 0; border-bottom: 0; }
.case__frame::after { right: calc(-1 * var(--space-md)); bottom: calc(-1 * var(--space-md)); border-left: 0; border-top: 0; }
.case__rec { position: absolute; z-index: var(--z-raised); right: calc(-1 * var(--space-2xs)); top: calc(-1 * var(--space-2xs)); width: 10px; height: 10px; border-radius: 50%; background: var(--color-rec); pointer-events: none; }

/* the facts read like the footer ledger, with the result in orange */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-xl) var(--gap-columns); padding-top: var(--space-lg); border-top: 1px solid var(--color-accent); }
.fact { display: flex; flex-direction: column; gap: var(--space-2xs); }
.fact__k { color: var(--color-muted); font-size: var(--text-sm); }
.fact__v { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.fact__note { color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.4; }
.fact--result .fact__v { color: var(--color-accent); font-size: var(--text-2xl); font-weight: 800; font-stretch: 125%; line-height: 1.1; text-transform: uppercase; }

/* reels */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-tab); background: var(--color-paper-2); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* proof */
.proof { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-2xl); align-items: start; }
.quote { display: grid; gap: var(--space-md); margin: 0; }
.quote__stars { display: flex; gap: var(--space-2xs); }
.quote__stars svg { width: 16px; height: 16px; fill: var(--color-accent); }
.quote__text { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; font-stretch: 125%; line-height: 1.15; text-transform: uppercase; text-wrap: balance; }
.quote__by { display: grid; gap: var(--space-3xs); }
.quote__handle { color: var(--color-muted); font-size: var(--text-sm); text-decoration: none; transition: color var(--dur-short) linear; }
.quote__handle:hover { color: var(--color-accent); }
.quote__handle:active { color: var(--color-ink); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.numbers__item { display: flex; flex-direction: column; gap: var(--space-2xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.numbers__v { font-variant-numeric: tabular-nums; color: var(--color-accent); font-size: var(--text-3xl); font-weight: 800; font-stretch: 125%; line-height: 1; text-transform: uppercase; }
.numbers__k { font-weight: 600; }
.numbers__item a { color: var(--color-ink); }

/* the frame named after Isah */
.namesake { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-xl); align-items: center; padding: var(--space-lg); border-radius: var(--radius-tab); background: var(--color-paper-2); color: inherit; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.namesake:hover { background: var(--color-paper-3); }
.namesake:active { background: var(--color-paper-2); }
.namesake__img { width: 100%; height: auto; border-radius: var(--radius-tab); }
.namesake__meta { display: grid; gap: var(--space-sm); }
.namesake__cta { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* stills */
.stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-md); }
.stills--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.stills--trio, .stills--port { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stills--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.still { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-tab); background: var(--color-paper-2); outline: 1px solid transparent; outline-offset: -1px; cursor: pointer; }
.still:hover { outline-color: var(--color-accent); }
.still:active { outline-color: var(--color-ink); }
.still:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.still img, .still video { width: 100%; height: 100%; object-fit: cover; }
.still video { object-position: 50% 0%; }
.still--land, .stills--wide .still, .stills--trio .still { aspect-ratio: 3 / 2; }
.still--port, .stills--five .still, .stills--port .still { aspect-ratio: 2 / 3; }
.still--full { aspect-ratio: auto; }
.still--full img { height: auto; }
.still--span { grid-column: 1 / -1; }
.still__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--color-ink); border-radius: 50%; background: var(--color-scrim); pointer-events: none; transform: translate(-50%, -50%); transition: opacity var(--dur-short) linear; }
.still__play::before { content: ""; width: 14px; height: 16px; margin-left: var(--space-2xs); background: var(--color-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.still--video.is-playing .still__play { opacity: 0; }

/* the close */
.closer { display: grid; gap: var(--space-md); justify-items: start; }
.closer__text { max-width: 46ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.4; }
.closer__ask { max-width: 14ch; font-size: clamp(2.25rem, 5.4vw, 5rem); font-weight: 800; font-stretch: 125%; line-height: 1.02; text-transform: uppercase; }
.case__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }

/* ---------- the photo viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: calc(var(--z-toast) + 50); display: grid; place-items: center; padding: var(--space-xl) var(--space-lg) var(--space-2xl); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) linear; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__scrim { position: absolute; inset: 0; border: 0; background: var(--color-scrim-deep); cursor: zoom-out; }
.lightbox__img { position: relative; display: block; width: auto; height: auto; max-width: min(1400px, 92vw); max-height: calc(88dvh - 44px); border-radius: var(--radius-tab); object-fit: contain; transform-origin: top left; }
.lightbox__close { position: absolute; top: var(--space-md); right: var(--space-lg); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-paper); color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-short) linear; }
.lightbox__close:hover { border-color: var(--color-accent); }
.lightbox__close:active { transform: scale(0.96); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: var(--space-md); padding-inline: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-sm); text-align: center; }
body.is-lightboxed { overflow-y: hidden; }

@media (max-width: 60rem) {
  .case { padding-top: var(--space-2xl); }
  .case__cols, .proof { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .namesake { grid-template-columns: minmax(0, 1fr); }
  .stills--five, .stills--trio, .stills--port { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .reel { scroll-snap-align: center; }
  .case-hero__text { bottom: var(--space-xl); }
  .case-hero__toggle { bottom: var(--space-xl); }
}
@media (max-width: 40rem) {
  .stills--wide, .stills--trio, .stills--port { grid-template-columns: minmax(0, 1fr); }
  .case__player::before, .case__player::after, .case__frame::before, .case__frame::after { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-hero__go, .section-label__link, .quote__handle, .namesake, .still__play, .lightbox, .lightbox__close { transition: none; }
}
