/* CUT · PRINT · WRAP (003): a bespoke case study inside the AKINTADE shell (js/inregister.js). The site keeps its own
   nav, faces, focus, margins and gutters (tokens.css, base.css); this page brings its films' clock. One scroll is one
   day: the ground follows the hour (calico morning, press white at 17:00, night at 23:59, a charcoal studio after), and
   each hour is set large in Bespoke Stencil, the trilogy's own face, as the page's one piece of type as architecture.
   Every class is prefixed ir- and every rule sits under .ir, so nothing reaches the homepage or the other pages.
   Motion: the boards' own 6 s loops, only while seen; base.css turns every animation and transition off under
   prefers-reduced-motion, and js/inregister.js never loads a loop then. */

@font-face { font-family: "Bespoke Stencil"; src: url("/fonts/bespoke-stencil/BespokeStencil-Extrabold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap; }   /* ITF Free Font License, self-hosted, file unmodified */

.ir {
  --ir-calico: #E9E1CF; --ir-press: #E2E2DD; --ir-night: #15171B; --ir-studio: #1D1B18;
  --ir-on-dark: #ECE6DA; --ir-on-dark-2: #B5AE9F; --ir-red: #B3261E; --ir-red-dark: #E0574C;
  --ir-rule: rgba(31, 30, 27, 0.16); --ir-rule-dark: rgba(236, 230, 218, 0.16);
  --ir-stencil: "Bespoke Stencil", var(--sans);
  --ir-clock-h: 52px;
  position: relative; padding-top: var(--nav-h);
  font: 400 1.0625rem/1.6 var(--sans); color: var(--ink);
}
.ir .ir-wrap { padding-inline: var(--m); max-width: calc(var(--page-max) + 2 * var(--m)); margin-inline: auto; }
.ir h1, .ir h2, .ir h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; }
.ir h1 em, .ir h2 em { font-style: italic; font-weight: 400; }
.ir h2[tabindex="-1"] { outline: none; }
.ir img, .ir video { display: block; width: 100%; height: auto; }

/* ---------- the clock: chapter navigation, from 1180 px, once the cover has gone ---------- */
.ir-clock { display: none; }
@media (min-width: 1180px) {
  .ir-clock { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--ir-clock-h);
    margin-bottom: calc(var(--ir-clock-h) * -1); align-items: center; gap: 24px; padding-inline: var(--m);
    background: color-mix(in srgb, var(--ir-calico) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ir-rule); transition-property: opacity, background-color, color; transition-duration: 0.4s; transition-timing-function: var(--expo); }
  .ir-clock.away:not(:focus-within) { opacity: 0; pointer-events: none; }
  .ir-clock .ir-here { font: 400 var(--fs-label)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
  .ir-clock ol { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
  .ir-clock a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 10px; font: 400 0.75rem/1 var(--mono);
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; border-radius: 2px; }
  .ir-clock a:hover { color: var(--ink); }
  .ir-clock a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ir-red); }
  .ir-clock.ir-dark { background: color-mix(in srgb, var(--ir-night) 90%, transparent); border-bottom-color: var(--ir-rule-dark); }
  .ir-clock.ir-dark .ir-here, .ir-clock.ir-dark a { color: var(--ir-on-dark-2); }
  .ir-clock.ir-dark a:hover, .ir-clock.ir-dark a[aria-current="true"] { color: var(--ir-on-dark); }
  .ir-clock.ir-dark a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--ir-red-dark); }
}

/* ---------- the opening: title, the moving cover, the facts ---------- */
.ir-hero { background: var(--ir-calico); padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 96px); }
.ir-hero .ir-source { margin: 0 0 20px; }
.ir-hero h1 { font-size: var(--fs-hero); line-height: 0.98; margin: 0; max-width: 14ch; }
.ir-summary { max-width: var(--measure); margin: 20px 0 clamp(28px, 4vw, 56px); color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 819px) { .ir-hero h1 { font-size: var(--fs-hero-phone); } }
.ir-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px var(--g); margin: 28px 0 0; }
.ir-meta dt { font: 400 var(--fs-label)/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ir-meta dd { margin: 6px 0 0; font-size: var(--fs-small); color: var(--ink); }

/* ---------- a board: the still is the resting state; the loop lies over it once it plays ---------- */
.ir-board { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0f0f0e;
  box-shadow: 0 1px 2px rgba(20, 18, 15, 0.12), 0 18px 48px -24px rgba(20, 18, 15, 0.45); }
.ir-board img { outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.ir-board video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition-property: opacity; transition-duration: 0.5s; }
.ir-board.ir-live video { opacity: 1; }
.ir-pause { position: absolute; right: 12px; bottom: 12px; min-height: 40px; min-width: 64px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px; background: rgba(15, 15, 14, 0.62); color: #F3EEE4; font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition-property: background-color, transform; transition-duration: 150ms; transition-timing-function: ease-out; }
.ir-pause:hover { background: rgba(15, 15, 14, 0.82); }
.ir-pause:active { transform: scale(0.96); }
/* the icon: two bars for Pause, a triangle for Play (aria-pressed says which); shown only on phones */
.ir-ico { display: none; }
@media (max-width: 819px) {
  /* phones: the board is small, so the control shrinks to a 36 px round icon in the corner (WCAG 2.5.8 target 24 px);
     the word stays for screen readers. Decided 16 Oct after the phone preview: the pill covered the board's corner. */
  .ir-pause { right: 8px; bottom: 8px; min-width: 0; width: 36px; min-height: 0; height: 36px; padding: 0; display: grid; place-items: center; }
  .ir-pause .ir-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ir-ico { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
  .ir-pause[aria-pressed="true"] .ir-ico { width: 0; height: 0; margin-left: 3px; border-right: 0; border-left: 11px solid currentColor;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
}

/* ---------- the films ---------- */
.ir-films { background: var(--ir-calico); padding-block: clamp(48px, 7vw, 120px); border-top: 1px solid var(--ir-rule); }
.ir-films-head { display: grid; gap: 16px; margin-bottom: clamp(24px, 3vw, 44px); }
.ir-films-head h2 { font-size: var(--fs-section); line-height: 1.05; margin: 0; }
.ir-films-head p { margin: 0; max-width: var(--measure); color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 1024px) { .ir-films-head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--g); } }
.ir-cinema { display: grid; gap: var(--g); }
@media (min-width: 1024px) { .ir-cinema { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; } }
.ir-frame { position: relative; aspect-ratio: 16 / 9; background: var(--cinema); overflow: hidden; }
.ir-frame img, .ir-frame video { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.ir-frame video { object-fit: contain; background: #000; }
.ir-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px 0 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: rgba(15, 15, 14, 0.66);
  color: #F5F0E6; font: 500 1rem/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition-property: background-color, transform; transition-duration: 150ms; transition-timing-function: ease-out; }
.ir-play:hover { background: rgba(15, 15, 14, 0.84); }
.ir-play:active { transform: translate(-50%, -50%) scale(0.96); }
.ir-tri { width: 0; height: 0; margin-left: 2px; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ir-dur { font: 400 0.75rem/1 var(--mono); opacity: 0.8; font-variant-numeric: tabular-nums; }
.ir-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) { .ir-pick { grid-template-columns: 1fr; } }
.ir-pick button { display: grid; gap: 4px; padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink); text-align: left;
  cursor: pointer; transition-property: border-color; transition-duration: 150ms; }
/* only the picture dims on the films not chosen: the labels keep their full contrast (axe, 16 Oct) */
.ir-pick button img { opacity: 0.68; transition-property: opacity; transition-duration: 150ms; }
.ir-pick button:hover img, .ir-pick button[aria-pressed="true"] img { opacity: 1; }
.ir-pick button[aria-pressed="true"] { border-bottom-color: var(--ir-red); }
.ir-pick img { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.ir-act, .ir-flen { font: 400 var(--fs-label)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ir-fname { font: 500 1.125rem/1.2 var(--serif); }
.ir-beats-wrap { margin-top: clamp(28px, 4vw, 56px); max-width: 60rem; }
.ir-beats-wrap h3 { font-size: 1.5rem; margin: 0; }
.ir-note { margin: 6px 0 16px; font: 400 0.75rem/1.5 var(--mono); color: var(--ink-3); }
.ir-beats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ir-rule); }
.ir-beats li { border-bottom: 1px solid var(--ir-rule); }
.ir-beats button { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; width: 100%; min-height: 44px; padding: 12px 0; border: 0; background: none;
  color: var(--ink-2); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; text-wrap: pretty; transition-property: color; transition-duration: 150ms; }
.ir-beats button:hover, .ir-beats button[aria-current="true"] { color: var(--ink); }
.ir-beats time { font: 400 0.8125rem/1.6 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ir-beats button[aria-current="true"] time { color: var(--ir-red); }

/* ---------- a chapter: the hour, set large; the heading; the board; the story ---------- */
.ir-ch { padding-block: clamp(56px, 8vw, 140px); }
.ir-calico { background: var(--ir-calico); }
/* the hour turns: a fixed band of dusk above the heading, so text only ever sits on its own solid ground */
.ir-press, .ir-night { --ir-dusk: clamp(96px, 12vw, 200px); padding-top: calc(var(--ir-dusk) + clamp(40px, 5vw, 96px)); }
.ir-press { background: linear-gradient(var(--ir-calico), var(--ir-press) var(--ir-dusk)); }
.ir-night { background: linear-gradient(var(--ir-press), var(--ir-night) var(--ir-dusk)); color: var(--ir-on-dark); }
.ir-studio { background: var(--ir-studio); color: var(--ir-on-dark); }
.ir-head { display: grid; gap: 8px; margin-bottom: clamp(20px, 2.6vw, 40px); }
.ir-hour { margin: 0 0 0.12em; font: 500 clamp(4rem, 11vw, 11rem)/0.9 var(--serif); letter-spacing: -0.035em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.ir-studio .ir-hour, .ir-night .ir-hour { color: var(--ir-on-dark); }
.ir-ch h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.375rem); line-height: 1.15; max-width: 46ch; }
.ir-name { font: 800 0.86em/1 var(--ir-stencil); text-transform: uppercase; letter-spacing: 0.015em; }
.ir-ch h2 em { color: var(--ink-2); }
.ir-night h2 em, .ir-studio h2 em { color: var(--ir-on-dark-2); }
.ir-no { font: 400 var(--fs-label)/1 var(--mono); letter-spacing: 0.12em; vertical-align: 0.45em; margin-right: 10px; color: var(--ink-3); }
.ir-night .ir-no { color: var(--ir-on-dark-2); }
/* in the studio the big number already says it: the small one stays for screen readers only */
.ir-studio .ir-no { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ir-text { display: grid; gap: 1rem; max-width: var(--measure); margin-top: clamp(20px, 2.6vw, 40px); color: var(--ink-2); }
.ir-text p { margin: 0; text-wrap: pretty; }
.ir-night .ir-text, .ir-studio .ir-text { color: var(--ir-on-dark-2); }
@media (min-width: 1024px) {
  .ir-text { margin-left: calc(var(--u) * 6); grid-template-columns: 1fr 1fr; column-gap: var(--g); max-width: none; }
  .ir-ch:nth-of-type(odd) .ir-text { margin-left: calc(var(--u) * 2); }
}
.ir-night .ir-board, .ir-studio .ir-board { box-shadow: 0 0 0 1px rgba(236, 230, 218, 0.08), 0 24px 60px -28px rgba(0, 0, 0, 0.8); }
.ir-night .ir-board img, .ir-studio .ir-board img { outline-color: rgba(255, 255, 255, 0.1); }

/* ---------- the studio band and the close ---------- */
.ir-studio-band { background: var(--ir-studio); color: var(--ir-on-dark); padding-block: clamp(48px, 7vw, 120px) 0; border-top: 1px solid var(--ir-rule-dark); }
.ir-studio-band p { margin: 0; font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1.2 var(--serif); max-width: 30ch; text-wrap: balance; color: var(--ir-on-dark-2); }
.ir-studio-band span { color: var(--ir-on-dark); font-style: italic; }
.ir-close { padding-block: clamp(56px, 8vw, 140px); }
.ir-beat { font-size: var(--fs-section); line-height: 1.05; margin: 0 0 clamp(28px, 4vw, 56px); max-width: 22ch; color: var(--ir-on-dark); }
.ir-beat em { color: var(--ir-on-dark-2); }
.ir-pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px var(--g); margin: 0; padding-top: 24px; border-top: 1px solid var(--ir-rule-dark); }
.ir-pipe dt { font: 400 var(--fs-label)/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ir-on-dark-2); }
.ir-pipe dd { margin: 6px 0 0; font-size: var(--fs-small); color: var(--ir-on-dark); }
.ir-ai { max-width: var(--measure); margin: clamp(28px, 4vw, 48px) 0 0; font-size: var(--fs-small); color: var(--ir-on-dark-2); text-wrap: pretty; }

/* the site's ending sits on paper again after the studio */
.ir + .c-end, .ir .c-end { background: var(--paper); }

/* the site's focus ring, made visible on the dark grounds too */
.ir-night :focus-visible, .ir-studio :focus-visible, .ir-studio-band :focus-visible, .ir-clock.ir-dark :focus-visible { outline-color: var(--ir-on-dark); }

@media (prefers-reduced-motion: reduce) {
  .ir-board video { display: none; }
}

/* Integration (16 Oct 2026): while this page is open, the page under the site's top bar is the page's own calico, so no
   strip of the site's grid paper shows behind AKINTADE / Index (David, iPhone). Also tints Safari's bars to match. */
html:has(article.ir), html:has(article.ir) body { background: #E9E1CF; background-image: none; }
html:has(article.ir) .grid-bg { display: none; }   /* the page covers the site grid everywhere but this strip, so it goes here too */
