/* Way Past Wrap · From Doodle to Reality
   Paper, ink, and a blue engineering grid. Print-production details stay subtle. */

:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --sheet: #FBFAF6;
  --ink: #111111;
  --ink-2: #2B2A28;
  --graphite: #4A4946;
  --muted: #6A665E;
  --grid: 157, 183, 213;            /* #9DB7D5 */
  --red: #E2412E;                   /* process red */
  --yellow: #F2C230;                /* MTV yellow */
  --blue: #1E5BB8;                  /* broadcast blue */
  --cyan: #00A3E0;
  --magenta: #E6007E;
  --process-yellow: #FFD400;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-pencil: "Reenie Beanie", "Bradley Hand", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --mast-h: 56px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .28 0 0 0 0 .22 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --graph:
    linear-gradient(to bottom, rgba(var(--grid), .34) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to right, rgba(var(--grid), .34) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(var(--grid), .15) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(to right, rgba(var(--grid), .15) 1px, transparent 1px) 0 0 / 8px 8px;
  --regmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23111' stroke-width='1'%3E%3Ccircle cx='14' cy='14' r='7'/%3E%3Cpath d='M14 0v28M0 14h28'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grain), var(--graph), var(--paper);
  background-color: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font: 500 13px/1 var(--f-mono); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.mono, .eyebrow {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 18px; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .88;
  margin: 0;
}

.pencil-note {
  font-family: var(--f-pencil);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  color: var(--graphite);
  margin: 0;
  white-space: nowrap;
}

/* ---------- Print-production details ---------- */

.reg {
  position: absolute; width: 26px; height: 26px; opacity: .5;
  background: var(--regmark) center / contain no-repeat;
  pointer-events: none;
}
.reg--tl { top: calc(var(--mast-h) + 16px); left: 16px; }
.reg--tr { top: calc(var(--mast-h) + 16px); right: 16px; }
.reg--bl { bottom: 16px; left: 16px; }
.reg--br { bottom: 16px; right: 16px; }

.folio {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px;
  display: flex; justify-content: space-between; gap: 16px;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
}
.folio--static { position: relative; left: auto; right: auto; bottom: auto; margin: 10vh auto 0; max-width: 1360px; }

.colorbar { display: flex; height: 12px; }
.colorbar span { flex: 1; }
.colorbar span:nth-child(1) { background: var(--cyan); }
.colorbar span:nth-child(2) { background: var(--magenta); }
.colorbar span:nth-child(3) { background: var(--process-yellow); }
.colorbar span:nth-child(4) { background: var(--ink); }
.colorbar span:nth-child(5) { background: var(--red); }
.colorbar span:nth-child(6) { background: var(--yellow); }
.colorbar span:nth-child(7) { background: var(--blue); }
.colorbar span:nth-child(8) { background: #444; }
.colorbar span:nth-child(9) { background: #888; }
.colorbar span:nth-child(10) { background: #C9C5BC; }

/* Crop marks: hairlines just outside each corner of the trim. */
.crop {
  position: absolute; inset: -16px; pointer-events: none; z-index: 2;
  --cm: rgba(17, 17, 17, .55);
  background:
    linear-gradient(var(--cm), var(--cm)) left 0 top 16px / 11px 1px,
    linear-gradient(var(--cm), var(--cm)) left 16px top 0 / 1px 11px,
    linear-gradient(var(--cm), var(--cm)) right 0 top 16px / 11px 1px,
    linear-gradient(var(--cm), var(--cm)) right 16px top 0 / 1px 11px,
    linear-gradient(var(--cm), var(--cm)) left 0 bottom 16px / 11px 1px,
    linear-gradient(var(--cm), var(--cm)) left 16px bottom 0 / 1px 11px,
    linear-gradient(var(--cm), var(--cm)) right 0 bottom 16px / 11px 1px,
    linear-gradient(var(--cm), var(--cm)) right 16px bottom 0 / 1px 11px;
  background-repeat: no-repeat;
}

/* ---------- Masthead + ruler ---------- */

.masthead {
  position: fixed; inset: 0 0 auto; height: var(--mast-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(244, 241, 234, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 17, 17, .08);
}
.masthead__brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
}
.masthead__rings { width: 26px; height: 26px; fill: var(--ink); will-change: transform; }
.masthead__nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.masthead__nav a {
  font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; position: relative;
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.masthead__nav a:hover::after, .masthead__nav a:focus-visible::after { transform: scaleX(1); }

.ruler {
  position: fixed; left: 0; top: var(--mast-h); bottom: 0; width: 14px; z-index: 40; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(17, 17, 17, .3) 0 1px, transparent 1px 8px) left top / 5px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(17, 17, 17, .5) 0 1px, transparent 1px 40px) left top / 10px 100% no-repeat;
}
.ruler__marker { position: absolute; left: 0; top: 0; width: 14px; height: 2px; background: var(--red); will-change: transform; }

/* ---------- Logo (shared by hero, pinned stage, and static fallback) ---------- */

.logo { position: relative; aspect-ratio: 1; }
.logo > img { display: block; width: 100%; height: 100%; }
.logo__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo__svg .layer { opacity: 0; transition: opacity .55s ease; }
.logo[data-stage="sketch"] .layer--sketch,
.logo[data-stage="draft"] .layer--draft,
.logo[data-stage="produce"] .layer--produce,
.logo[data-stage="release"] .layer--ink,
.logo[data-stage="ink"] .layer--ink { opacity: 1; }
.logo[data-stage="draft"] .layer--sketch { opacity: .2; }
.logo[data-stage="ink"] .layer--sketch { opacity: .22; }

.pencil { fill: none; stroke: #3A3936; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pencil--2 { stroke-width: 1.7; opacity: .55; }
.pencil--light { stroke-width: 1.4; opacity: .38; }

.cl { fill: none; stroke: var(--blue); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.cl--axis { opacity: .35; stroke-dasharray: 2 6; }
.cl--dash { stroke-dasharray: 7 5; opacity: .8; }
.cl--dim { stroke-width: 1; }
.cl-label { fill: var(--blue); font: 500 15px var(--f-mono); letter-spacing: .06em; }
.outline { fill: rgba(17, 17, 17, .035); stroke: var(--ink); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.outline--film { fill: none; stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.footage-tint { fill: #1A1410; opacity: .42; mix-blend-mode: multiply; }
.cmyk { mix-blend-mode: multiply; }
.cmyk--c { fill: var(--cyan); }
.cmyk--m { fill: var(--magenta); }
.cmyk--y { fill: var(--process-yellow); }
.ink { fill: var(--ink); }

/* ---------- A · Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--mast-h) + 5vh) var(--gutter) 10vh;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
  width: 100%; max-width: 1360px; margin: 0 auto;
}
.hero__title { font-size: clamp(60px, 9.6vw, 158px); margin: 0 0 .22em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero__title .line > span { display: inline-block; }
.lede { max-width: 50ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; text-decoration: none;
  font: 500 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue__arrow { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero__mark { position: relative; display: grid; justify-items: center; }
.hero__logo { width: min(58vh, 100%); }
.hero__note { position: absolute; left: -2%; top: 2%; transform: rotate(-8deg); z-index: 2; }
.hero__wordmark {
  position: absolute; right: 0; bottom: -4%; width: clamp(96px, 10vw, 150px); height: auto;
  box-shadow: 0 16px 30px -22px rgba(17, 17, 17, .6);
}

/* The headline, wordmark, and note "set in" once the doodle has inked. */
.js .hero [data-set] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .hero .line > [data-set] { opacity: 1; transform: translateY(108%); }
.js .hero .hero__note[data-set] { transform: rotate(-8deg) translateY(10px); }
.js .hero.is-in [data-set] { opacity: 1; transform: none; }
.js .hero.is-in .hero__note[data-set] { transform: rotate(-8deg); }
/* Safety net: if the script never runs, show everything after a moment. */
.js .hero:not(.is-in) [data-set] { animation: show-anyway 0s 4.5s forwards; }
@keyframes show-anyway { to { opacity: 1; transform: none; } }

/* ---------- B · Pillars ---------- */

.pillars { position: relative; }
.pillars__pin {
  position: relative; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(24px, 5vw, 88px);
  padding: calc(var(--mast-h) + 3vh) var(--gutter) 8vh;
  max-width: 1440px; margin: 0 auto;
}
.pillars__stage { display: grid; place-items: center; }

.stage-frame { position: relative; width: min(70vh, 44vw); aspect-ratio: 1; }
.bracket { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.bracket--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.bracket--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.bracket--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.bracket--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.stage__fig, .stage__scale { position: absolute; top: -26px; margin: 0; font-size: 10.5px; color: var(--muted); }
.stage__fig { left: 0; }
.stage__scale { right: 0; }

.stage__logo { position: absolute; inset: 7%; transition: transform .9s var(--ease-out); }
.stage-frame.is-printed .stage__logo { transform: translateX(-19%) scale(.66); }
.stage__wordmark {
  position: absolute; right: 8%; top: 50%; width: 31%; height: auto;
  opacity: 0; transform: translate(18px, -50%); transition: opacity .5s ease, transform .8s var(--ease-out);
}
.stage-frame.is-printed .stage__wordmark { opacity: 1; transform: translate(0, -50%); transition-delay: .7s; }

.stage__colorbar {
  position: absolute; left: 12%; right: 12%; bottom: 4%; height: 10px;
  opacity: 0; transform: translateX(-30%); clip-path: inset(0 100% 0 0);
  transition: opacity .3s ease, transform .9s var(--ease-out), clip-path .9s var(--ease-out);
}
.stage-frame.is-printed .stage__colorbar { opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition-delay: .9s; }

.stage__pulse {
  position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--ink); transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
}
.stage-frame.is-printed .stage__pulse { animation: pulse-out 1.1s .75s var(--ease-out) both; }
@keyframes pulse-out {
  0% { opacity: .5; transform: translate(-50%, -50%) scale(.7); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

.viewfinder { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.stage-frame[data-stage="produce"] .viewfinder { opacity: 1; }
.viewfinder__film {
  position: absolute; top: 4%; bottom: 4%; width: 18px; background:
    repeating-linear-gradient(to bottom, transparent 0 7px, var(--paper) 7px 17px, transparent 17px 24px) center / 8px 100% no-repeat,
    var(--ink);
  border-radius: 2px;
}
.viewfinder__film--l { left: -30px; }
.viewfinder__film--r { right: -30px; }
.viewfinder__safe { position: absolute; inset: 10%; border: 1px dashed rgba(17, 17, 17, .35); }
.viewfinder__rec { position: absolute; top: 3%; left: 4%; color: var(--red); font-size: 11px; animation: blink 1s steps(2) infinite; }
.viewfinder__tc {
  position: absolute; bottom: 2.5%; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 4px 8px; font-size: 11px; letter-spacing: .12em; white-space: nowrap;
}
@keyframes blink { 50% { opacity: .2; } }

.stage__note { position: absolute; right: 2%; bottom: -11%; transform: rotate(-6deg); z-index: 3; }
.stage__note.is-writing { animation: write-in .7s var(--ease-out) both; }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.pillars__text { position: relative; max-width: 36rem; }
.pillars__counter { display: flex; align-items: baseline; gap: 10px; margin: 0 0 22px; font-size: 12.5px; }
.pillars__num { font-size: 15px; color: var(--ink); }
.pillars__of { color: var(--muted); }
.pillars__name { margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(17, 17, 17, .3); }
.pillars__list { list-style: none; margin: 0; padding: 0; position: relative; }
.pillar__num { display: none; margin: 0 0 12px; color: var(--muted); }
.pillar__title { font: 400 clamp(64px, 8.2vw, 136px)/.86 var(--f-display); text-transform: uppercase; margin: 0 0 .2em; }
.pillar p { font-size: clamp(16px, 1.22vw, 19px); line-height: 1.6; max-width: 46ch; color: var(--ink-2); }

.js:not(.is-static) .pillars__list { display: grid; }
.js:not(.is-static) .pillar {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(26px); visibility: hidden;
  transition: opacity .4s ease, transform .6s var(--ease-out), visibility 0s .6s;
}
.js:not(.is-static) .pillar.is-active {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .55s ease .12s, transform .8s var(--ease-out) .12s, visibility 0s 0s;
}

.pillars__ticks { display: flex; gap: 6px; margin-top: 30px; max-width: 280px; }
.pillars__ticks span { height: 3px; flex: 1; background: rgba(17, 17, 17, .14); transition: background .4s ease; }
.pillars__ticks span.is-on { background: var(--ink); }

/* Static pillars: reduced motion or no animation library. Each pillar shows its own stage of the mark. */
.is-static .pillars__pin { height: auto; display: block; padding: 14vh var(--gutter) 10vh; }
.is-static .pillars__stage, .is-static .pillars__counter, .is-static .pillars__ticks { display: none; }
.is-static .pillars__text { max-width: 1100px; margin: 0 auto; }
.is-static .pillars__list { display: grid; gap: 12vh; }
.is-static .pillar { display: grid; grid-template-columns: minmax(160px, 280px) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 64px); align-items: start; }
.is-static .pillar > * { grid-column: 2; }
.is-static .pillar > .pillar__mark { grid-column: 1; grid-row: 1 / span 4; align-self: center; }
.is-static .pillar__num { display: block; }
.is-static .folio { position: relative; left: auto; right: auto; bottom: auto; margin-top: 10vh; }
.pillar__mark { width: 100%; }

/* ---------- How we work ---------- */

.how { padding: 16vh var(--gutter) 14vh; display: grid; place-items: center; }
.how__card {
  position: relative; max-width: 780px; background: var(--sheet);
  padding: clamp(28px, 4.4vw, 60px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 22px 44px -28px rgba(17, 17, 17, .45);
  transform: rotate(-.6deg);
}
.how__card::before, .how__card::after {
  content: ""; position: absolute; top: -12px; width: 104px; height: 26px;
  background: rgba(242, 194, 48, .42); box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.how__card::before { left: 28px; transform: rotate(-4deg); }
.how__card::after { right: 28px; transform: rotate(3deg); }
.how__card p:last-child { margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); }
.how__note { position: absolute; left: -8px; top: -58px; transform: rotate(-5deg); }

/* ---------- C · Unfold ---------- */

.unfold { position: relative; }
.unfold__pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 2fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--mast-h) + 4vh) var(--gutter) 6vh;
  max-width: 1520px; margin: 0 auto;
}
.unfold__title { font-size: clamp(46px, 5.2vw, 92px); margin-bottom: .35em; }
.unfold__intro p:not(.eyebrow) { color: var(--ink-2); max-width: 40ch; }
.unfold__stage { perspective: 2000px; perspective-origin: 50% 30%; }
.unfold__sheet {
  position: relative; width: 100%; max-width: calc(70vh * 3 / 2); margin: 0 auto;
  aspect-ratio: 3 / 2; transform-style: preserve-3d; transform-origin: 50% 100%;
}
.unfold__photo {
  position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--sheet);
  box-shadow: 0 36px 70px -36px rgba(17, 17, 17, .6), 0 2px 3px rgba(0, 0, 0, .08);
}
.unfold__photo picture, .unfold__photo img { display: block; width: 100%; height: 100%; }
.unfold__photo img { object-fit: cover; }

.flap { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; display: none; }
.flap--l { left: 0; transform-origin: 0% 50%; }
.flap--r { right: 0; transform-origin: 100% 50%; }
.flap__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.flap__front { background: var(--grain), var(--graph), var(--paper); }
.flap--l .flap__front { box-shadow: inset -14px 0 22px -18px rgba(17, 17, 17, .35); border: 1px solid rgba(17, 17, 17, .08); border-right: 0; }
.flap--r .flap__front { box-shadow: inset 14px 0 22px -18px rgba(17, 17, 17, .35); border: 1px solid rgba(17, 17, 17, .08); border-left: 0; }
.flap__back { transform: rotateY(180deg); background: var(--grain), var(--paper-2); }
.flap__sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
.flap__pencil path { fill: none; stroke: #3A3936; stroke-width: 2.4; stroke-linecap: round; }
.flap__note { position: absolute; font: 400 clamp(26px, 2.6vw, 40px)/1 var(--f-pencil); color: var(--graphite); margin: 0; }
.flap__note--a { left: 14%; top: 7%; transform: rotate(-4deg); }
.flap__note--b { left: 16%; bottom: 9%; font-size: clamp(20px, 1.8vw, 28px); transform: rotate(-2deg); }
.flap__note--c { right: 14%; top: 66%; transform: rotate(-6deg); }

.unfold__caption {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: calc(70vh * 3 / 2); margin: 22px auto 0; font-size: 11px; color: var(--muted);
}

/* ---------- D · Work wall ---------- */

.work { position: relative; padding: 14vh var(--gutter) 6vh; }
.work__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end;
  gap: clamp(20px, 4vw, 64px); max-width: 1360px; margin: 0 auto 10vh;
}
.work__title { font-size: clamp(56px, 7.8vw, 128px); }
.work__intro { color: var(--ink-2); max-width: 44ch; margin: 0; }

.wall {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px); row-gap: clamp(48px, 7vw, 112px);
  max-width: 1360px; margin: 0 auto; align-items: start;
}
.sheet { grid-column: var(--col, auto); margin: var(--mt, 0) 0 0; position: relative; }
.sheet__open {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  cursor: zoom-in; text-align: left; font: inherit;
}
.sheet__paper {
  display: block; position: relative; background: var(--sheet);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 2px 3px rgba(0, 0, 0, .07), 0 26px 44px -30px rgba(17, 17, 17, .6);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.sheet__crop { display: block; overflow: hidden; aspect-ratio: var(--ar, 4 / 3); }
.sheet__crop picture, .sheet__crop img { display: block; width: 100%; height: 100%; }
.sheet__crop img { object-fit: cover; transition: transform .8s var(--ease-out); }
.sheet__open:hover .sheet__paper, .sheet__open:focus-visible .sheet__paper {
  transform: translateY(-12px) rotate(0deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .08), 0 46px 70px -34px rgba(17, 17, 17, .65);
}
.sheet__open:hover .sheet__crop img { transform: scale(1.03); }
@media (min-width: 800px) { .sheet--tall { grid-row: span 2; } }
.slug {
  display: flex; justify-content: space-between; gap: 14px; margin-top: 16px;
  font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.slug span:first-child { color: var(--ink); white-space: nowrap; }
.slug span:last-child { text-align: right; }

.js:not(.is-static) .sheet > .sheet__open,
.js:not(.is-static) .sheet > .reel,
.js:not(.is-static) .sheet > .note-card {
  opacity: 0; transform: translateY(44px);
  transition: opacity .8s ease, transform 1.1s var(--ease-out);
}
.js:not(.is-static) .sheet.is-visible > .sheet__open,
.js:not(.is-static) .sheet.is-visible > .reel,
.js:not(.is-static) .sheet.is-visible > .note-card { opacity: 1; transform: none; }

.note-card {
  background: var(--sheet); padding: 26px 24px 22px; transform: rotate(-1.4deg);
  box-shadow: 0 18px 34px -26px rgba(17, 17, 17, .5);
  border-top: 22px solid rgba(226, 65, 46, .12);
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.note-card .pencil { font: 400 32px/1 var(--f-pencil); color: var(--graphite); margin-bottom: 10px; }
.note-card p:last-child { margin: 0; }

.reel { position: relative; }
.reel__screen {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; overflow: hidden;
  border-top: 18px solid var(--ink); border-bottom: 18px solid var(--ink);
  box-shadow: 0 30px 50px -30px rgba(17, 17, 17, .7);
}
.reel__screen::before, .reel__screen::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(to right, transparent 0 10px, var(--paper) 10px 20px, transparent 20px 28px);
  opacity: .9;
}
.reel__screen::before { top: -13px; }
.reel__screen::after { bottom: -13px; }
.reel__slate { text-align: center; padding: 24px; max-width: 34rem; }
.reel__label { color: rgba(244, 241, 234, .65); margin: 0 0 14px; font-size: 10.5px; }
.reel__title { font: 400 clamp(36px, 4.4vw, 68px)/.9 var(--f-display); text-transform: uppercase; margin: 0 0 14px; }
.reel__text { color: rgba(244, 241, 234, .8); margin: 0 auto 22px; max-width: 34ch; }
.reel__tc { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: 10.5px; color: rgba(244, 241, 234, .55); }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel.has-video .reel__slate, .reel.has-video .reel__tc { display: none; }

/* ---------- E · Partner / contact ---------- */

.partner { position: relative; padding: 18vh var(--gutter) 8vh; }
.statement {
  max-width: 1180px; margin: 0 auto;
  font: 500 clamp(26px, 3.3vw, 50px)/1.16 var(--f-sans); letter-spacing: -.012em; color: var(--muted);
}
.statement span { color: var(--ink); }
.partner__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: 1360px; margin: 16vh auto 0;
}
.partner__title { font-size: clamp(54px, 7vw, 116px); margin-bottom: .3em; }
.partner__body { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); max-width: 36ch; }
.partner__cta { font-family: var(--f-pencil); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; color: var(--graphite); max-width: 24ch; margin: 28px 0 34px; }
.partner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  font: 500 12.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.contact-card { position: relative; background: var(--sheet); padding: clamp(24px, 3vw, 40px); box-shadow: 0 24px 44px -30px rgba(17, 17, 17, .55); }
.contact-card dl { margin: 0; display: grid; gap: 20px; }
.contact-card dt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card dd { margin: 0; font-size: 18px; }
.contact-card a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.people {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px);
  max-width: 1360px; margin: 14vh auto 0; padding-top: 28px; border-top: 1px solid rgba(17, 17, 17, .22);
}
.person__name { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--f-display); text-transform: uppercase; margin: 0 0 10px; }
.person__role { margin: 0 0 8px; color: var(--ink); }
.person__bio { color: var(--ink-2); margin: 0; }

/* ---------- Footer ---------- */

.footer {
  position: relative; background: var(--ink); color: var(--paper);
  padding: 0 var(--gutter) 32px;
}
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px;
}
.footer__colorbar { margin: 0 calc(var(--gutter) * -1); height: 10px; }
.footer__top {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  max-width: 1360px; margin: 0 auto; padding: 64px 0 48px;
}
.footer__brand { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; }
.footer__rings { width: 72px; height: 72px; fill: var(--paper); }
.footer__wordmark { width: 78px; height: auto; filter: invert(1); }
.footer__tagline { margin: 0; font-size: clamp(18px, 1.6vw, 24px); max-width: 26ch; }
.footer__bottom {
  position: relative; display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: space-between;
  max-width: 1360px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(244, 241, 234, .18);
  font-size: 11px; color: rgba(244, 241, 234, .7);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 14, 14, .96); color: var(--paper);
}
.lightbox::backdrop { background: rgba(14, 14, 14, .6); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px 40px; }
.lightbox__figure { margin: 0; display: grid; gap: 16px; justify-items: center; max-width: 100%; }
.lightbox__img { display: block; max-width: min(92vw, 1600px); max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__caption { display: grid; gap: 6px; text-align: center; max-width: 70ch; }
.lightbox__count { color: rgba(244, 241, 234, .5); font-size: 10.5px; }
.lightbox__slug { font-size: 12px; }
.lightbox__desc { font-size: 14px; color: rgba(244, 241, 234, .75); }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, .4); background: rgba(17, 17, 17, .6); color: var(--paper);
  font: 400 22px/1 var(--f-sans); cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lightbox__close { top: 14px; right: 14px; font-size: 28px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Desktop-only animated extras ---------- */

@media (min-width: 800px) {
  .js:not(.is-static) .flap { display: block; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .unfold__pin { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .unfold__title { font-size: clamp(38px, 4.6vw, 52px); }
  .unfold__intro p:not(.eyebrow) { font-size: 15.5px; }
  .work__head { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */

@media (max-width: 799px) {
  :root { --mast-h: 52px; }
  body { font-size: 16px; }
  .ruler { display: none; }
  .masthead__nav { gap: 14px; }
  .masthead__nav a { font-size: 11px; letter-spacing: .12em; }
  .reg--tl, .reg--tr { top: calc(var(--mast-h) + 10px); }
  .reg { width: 20px; height: 20px; }

  .hero { padding-top: calc(var(--mast-h) + 28px); padding-bottom: 12vh; align-items: start; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__mark { order: -1; width: min(78vw, 360px); justify-self: center; }
  .hero__logo { width: 82%; }
  .hero__note { left: -4%; top: -2%; font-size: 24px; }
  .hero__wordmark { width: 92px; right: -2%; bottom: -6%; }
  .hero__title { font-size: clamp(54px, 16.5vw, 96px); }

  .pillars__pin {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; align-items: start;
    gap: 14px; padding: calc(var(--mast-h) + 34px) var(--gutter) 40px;
  }
  .stage-frame { width: min(36svh, 74vw); }
  .stage__fig, .stage__scale { top: -20px; font-size: 9.5px; }
  .stage__note { display: none; }
  .viewfinder__film { width: 12px; }
  .viewfinder__film--l { left: -18px; }
  .viewfinder__film--r { right: -18px; }
  .pillars__counter { margin-bottom: 10px; font-size: 11px; }
  .pillar__title { font-size: clamp(42px, 12.5vw, 64px); }
  .pillar p { font-size: 15px; line-height: 1.5; }
  .pillars__ticks { margin-top: 0; position: absolute; left: 0; right: 0; bottom: -18px; max-width: none; display: none; }
  .pillars .folio { display: none; }
  .is-static .pillar { grid-template-columns: 1fr; }
  .is-static .pillar > *, .is-static .pillar > .pillar__mark { grid-column: 1; grid-row: auto; }
  .is-static .pillar__mark { max-width: 220px; margin-bottom: 20px; }

  .how__note { top: -46px; left: 6px; font-size: 26px; }

  /* One column on phones: the text runs full width, the poster sits under it. */
  .unfold__pin { grid-template-columns: 1fr; align-items: start; gap: 32px; min-height: 0; padding-top: 10vh; padding-bottom: 4vh; }
  .unfold__title { font-size: clamp(44px, 13vw, 64px); margin-bottom: .3em; }
  .unfold__intro p:not(.eyebrow) { font-size: 16px; line-height: 1.6; max-width: none; margin-bottom: 0; }
  .unfold__caption { flex-direction: column; gap: 4px; margin-top: 16px; }

  .wall { grid-template-columns: 1fr; row-gap: 56px; }
  .sheet { grid-column: 1 / -1; margin-top: 0; }
  .sheet__paper { transform: rotate(calc(var(--tilt, 0deg) * .5)); }
  .slug { flex-direction: column; gap: 4px; }
  .slug span:last-child { text-align: left; }

  .partner { padding-top: 12vh; }
  .partner__grid { grid-template-columns: 1fr; margin-top: 10vh; }
  .people { grid-template-columns: 1fr; }

  .lightbox__inner { padding: 64px 12px 96px; }
  .lightbox__img { max-width: 100%; max-height: calc(100vh - 260px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

@media (max-width: 420px) {
  .masthead__name { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .scroll-cue__arrow, .viewfinder__rec { animation: none !important; }
}

/* ---------- D · Design work: Vox-style scroll story ----------
   Full-bleed and raw, like the original waypastwrap.com: the stage sticks to the
   screen while the caption cards scroll up over it, and each card that comes up
   brings its piece onto the stage. Plain vertical scrolling, nothing to learn. */

.vox {
  --fw: 54vw; --fh: calc(100svh - var(--mast-h) - 19vh);
  position: relative; margin: 0 calc(-1 * var(--gutter));
}
.vox__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #151413; color: var(--paper);
}
.vox__backs { position: absolute; inset: -60px; }
.vox__back {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) saturate(1.15); opacity: 0; transition: opacity 1s ease;
}
.vox__back.is-active { opacity: .55; }
.vox__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grain), radial-gradient(130% 95% at 62% 45%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .6));
}
.vox__frames { position: absolute; z-index: 2; top: calc(var(--mast-h) + 6vh); right: 4vw; width: var(--fw); height: var(--fh); }
.vox__frame {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(26px) scale(.975);
  transition: opacity .45s ease, transform .9s var(--ease-out), visibility 0s .9s;
}
.vox__frame.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s ease .08s, transform .9s var(--ease-out) .08s, visibility 0s 0s;
}
.vox__open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.vox__paper {
  display: block; position: relative; padding: clamp(6px, .7vw, 11px); background: var(--sheet);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 50px 90px -36px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease-out);
}
.vox__paper picture { display: contents; }
.vox__paper img {
  display: block; width: auto; height: auto; object-fit: contain;
  max-width: calc(var(--fw) - 22px); max-height: calc(var(--fh) - 22px);
}
.vox__open:hover .vox__paper, .vox__open:focus-visible .vox__paper { transform: translateY(-6px); }

.vox__hud {
  position: absolute; z-index: 3; right: 4vw; width: var(--fw); bottom: 4vh;
  display: flex; align-items: center; gap: 18px; color: rgba(244, 241, 234, .7);
}
.vox__count { margin: 0; font-size: 12px; letter-spacing: .14em; white-space: nowrap; }
.vox__count span { color: var(--paper); }
.vox__ticks { display: flex; gap: 6px; flex: 1; }
.vox__tick { position: relative; flex: 1; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.vox__tick::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background: rgba(244, 241, 234, .25); transition: background .3s;
}
.vox__tick.is-done::before { background: rgba(244, 241, 234, .85); }
.vox__tick[aria-current="true"]::before { background: var(--red); }
.vox__tick:hover::before { background: var(--paper); }
.vox__hint { margin: 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: opacity .4s; }
.vox__hint span { display: inline-block; animation: vox-nudge 1.4s ease-in-out infinite; }
.vox.is-started .vox__hint { opacity: 0; }
@keyframes vox-nudge { 50% { transform: translateY(4px); } }

.vox__steps {
  position: relative; z-index: 4; list-style: none; margin: -100vh 0 0; margin-top: -100svh; padding: 0;
  pointer-events: none;
}
.vox__step { min-height: 96vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.vox__step:last-child { min-height: 100vh; min-height: 100svh; }
.vox__card {
  pointer-events: auto; position: relative; width: min(32vw, 440px);
  padding: 24px 26px 24px; background: var(--sheet); color: var(--ink);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 34px 60px -30px rgba(0, 0, 0, .85);
}
.vox__kicker {
  display: flex; justify-content: space-between; margin: 0 0 14px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.vox__kicker span:first-child { color: var(--red); }
.vox__title { margin: 0 0 12px; font-size: clamp(30px, 2.7vw, 42px); line-height: .94; }
.vox__desc { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.vox__more {
  padding: 11px 15px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.vox__more:hover, .vox__more:focus-visible { background: var(--ink); color: var(--paper); }

/* No script: show the pieces one after another, each with its card. */
.no-js .vox__stage { position: relative; height: auto; overflow: visible; padding: 8vh 0; }
.no-js .vox__frames { position: relative; inset: auto; width: auto; height: auto; display: grid; gap: 8vh; padding: 0 var(--gutter); }
.no-js .vox__frame { position: relative; opacity: 1; visibility: visible; transform: none; }
.no-js .vox__steps { margin: 0; }
.no-js .vox__hud { display: none; }

/* ---------- D2 · Selected clients (08_SCROLL_VIDEO.md) ----------
   A contact sheet of client marks, cells ruled with hairlines. */

.clients-sheet { position: relative; padding: 16vh var(--gutter) 8vh; }
.clients { --cols: 6; --rule: rgba(17, 17, 17, .2); position: relative; max-width: 1360px; margin: 0 auto; }
.clients__head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); align-items: end;
  gap: clamp(20px, 4vw, 64px); margin: 0 0 7vh;
}
.clients__title { font-size: clamp(56px, 7.8vw, 128px); }
.clients__intro { color: var(--ink-2); max-width: 44ch; margin: 0; }
.clients__grid {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  background: rgba(251, 250, 246, .6);
}
.clients__cell {
  position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.clients__num { position: absolute; left: 8px; top: 7px; font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
/* Ink on paper via CSS, never by editing the artwork. Each logo's box (inline style) is sized
   from its measured ink so every mark carries about the same visual weight, centred in its cell. */
.clients__logo { position: absolute; left: 20%; top: 30%; width: 60%; height: 40%; object-fit: contain; filter: brightness(0); opacity: .93; }
.clients__more { grid-column: span 2; aspect-ratio: 3 / 1; }
.clients__more-note { font: 400 clamp(22px, 2.2vw, 32px)/1 var(--f-pencil); color: var(--graphite); transform: rotate(-2deg); }
/* The marks print in one by one, in reading order, as the sheet comes into view. */
.js:not(.is-static) .clients__logo { opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.js:not(.is-static) .clients.is-in .clients__logo { opacity: .93; transform: none; }

@media (max-width: 1100px) {
  .clients { --cols: 4; }
}
@media (max-width: 799px) {
  .clients-sheet { padding: 12vh 16px 8vh; }
  .clients { --cols: 3; }
  .clients__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .clients__num { left: 5px; top: 4px; font-size: 8.5px; }
}

/* ---------- D3 · "Doodle to Reality" clip (08_SCROLL_VIDEO.md) ----------
   A tall section with a sticky full-bleed stage; main.js maps the scroll through it to the
   clip's playhead. --run is how far the clip runs, in viewports. */

.reel { --run: 1.8; position: relative; height: calc(100svh * (1 + var(--run))); background: var(--paper); }
.reel__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--paper); }
.reel__stage::after { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.reel__video, .reel__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.reel--contain .reel__video { object-fit: contain; }
.reel__still { display: block; }
.js:not(.is-static) .reel__still { display: none; }

@media (max-width: 799px) {
  .reel { --run: 1.5; }
}
@media (max-width: 799px) and (orientation: portrait) {
  .reel__still img { object-fit: contain; }
}

/* Reduced motion / no script: no scrolling run, just the end card as a still. */
.is-static .reel, .no-js .reel { height: auto; padding: 8vh var(--gutter); background: none; }
.is-static .reel__stage, .no-js .reel__stage { position: relative; height: auto; overflow: visible; background: none; max-width: 1100px; margin: 0 auto; }
.is-static .reel__stage::after, .no-js .reel__stage::after { display: none; }
.is-static .reel__video, .no-js .reel__video { display: none; }
.is-static .reel__still img, .no-js .reel__still img { position: static; height: auto; object-fit: initial; box-shadow: 0 30px 60px -34px rgba(17, 17, 17, .55); }

/* ---------- D4 · Film + photo cards ---------- */

.bodies { position: relative; padding: 12vh var(--gutter) 8vh; }
.bodies__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end;
  gap: clamp(20px, 4vw, 64px); max-width: 1360px; margin: 0 auto 8vh;
}
.bodies__title { font-size: clamp(56px, 7.8vw, 128px); }
.bodies__intro { color: var(--ink-2); max-width: 44ch; margin: 0; }
.bodies__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); max-width: 1360px; margin: 0 auto; }

.body-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.body-card__paper {
  position: relative; display: block; padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 0; background: var(--sheet);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 2px 3px rgba(0, 0, 0, .07), 0 26px 44px -30px rgba(17, 17, 17, .6);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.body-card:hover .body-card__paper, .body-card:focus-visible .body-card__paper {
  transform: translateY(-12px) rotate(0deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .08), 0 46px 70px -34px rgba(17, 17, 17, .65);
}
.body-card:focus-visible { outline: none; }
.body-card:focus-visible .body-card__paper { outline: 3px solid var(--ink); outline-offset: 6px; }
.body-card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.body-card__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  animation: bc-frame 15s linear infinite both; animation-delay: calc(var(--i) * 3s);
}
.body-card__frame:first-child { opacity: 1; }
@keyframes bc-frame {
  0% { opacity: 0; transform: scale(1.03); }
  4% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; transform: scale(1.13); }
  100% { opacity: 0; transform: scale(1.13); }
}
.body-card:hover .body-card__frame { animation-duration: 7.5s; animation-delay: calc(var(--i) * 1.5s); }

/* Film: letterbox, REC light, running timecode, play button */
.body-card__bars { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 clamp(14px, 2.6vw, 34px) 0 #0b0b0b, inset 0 calc(clamp(14px, 2.6vw, 34px) * -1) 0 #0b0b0b; }
.body-card__rec {
  position: absolute; left: 14px; top: clamp(20px, 3vw, 42px); display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.body-card__rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: bc-blink 1.2s steps(2, jump-none) infinite; }
@keyframes bc-blink { 50% { opacity: .15; } }
.body-card__tc { position: absolute; right: 14px; top: clamp(20px, 3vw, 42px); color: #fff; font-size: 10.5px; letter-spacing: .12em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.body-card__play {
  position: absolute; left: 50%; top: 50%; width: clamp(60px, 6.4vw, 88px); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); transform: translate(-50%, -50%); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease-out), background .2s;
}
.body-card__play::after {
  content: ""; position: absolute; left: 41%; top: 50%; transform: translateY(-50%);
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink);
}
.body-card:hover .body-card__play { transform: translate(-50%, -50%) scale(1.1); background: var(--red); }
.body-card:hover .body-card__play::after { border-left-color: var(--paper); }

/* Photo: viewfinder corners and a shutter flash on each new frame */
.body-card__finder {
  position: absolute; inset: 9%; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) left top / 26px 2px, linear-gradient(#fff, #fff) left top / 2px 26px,
    linear-gradient(#fff, #fff) right top / 26px 2px, linear-gradient(#fff, #fff) right top / 2px 26px,
    linear-gradient(#fff, #fff) left bottom / 26px 2px, linear-gradient(#fff, #fff) left bottom / 2px 26px,
    linear-gradient(#fff, #fff) right bottom / 26px 2px, linear-gradient(#fff, #fff) right bottom / 2px 26px;
  background-repeat: no-repeat; opacity: .85;
}
.body-card__finder::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.body-card--photo .body-card__rec { top: 14px; }
.body-card__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: bc-flash 3s linear infinite; }
@keyframes bc-flash { 0% { opacity: .55; } 6% { opacity: 0; } 100% { opacity: 0; } }

.body-card__label { display: flex; flex-direction: column; gap: 6px; padding: 18px 4px 20px; }
.body-card__kicker { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.body-card__title { font-size: clamp(34px, 3.8vw, 58px); line-height: .95; }
.body-card__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 16px 20px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 600 clamp(15px, 1.25vw, 18px)/1.25 var(--f-sans); transition: background .2s, color .2s;
}
.body-card__cta span { font-size: 1.3em; transition: transform .3s var(--ease-out); }
.body-card:hover .body-card__cta, .body-card:focus-visible .body-card__cta { background: var(--ink); color: var(--paper); }
.body-card:hover .body-card__cta span { transform: translateX(6px); }

.is-static .body-card__frame, .is-static .body-card__flash, .is-static .body-card__rec i { animation: none; }
.is-static .body-card__frame:not(:first-child) { opacity: 0; }

/* ---------- Viewer window (iframe) for the two bodies of work ---------- */

.viewer {
  width: min(94vw, 1440px); height: 92vh; max-width: none; max-height: none; margin: auto; padding: 0;
  border: 0; background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7);
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(17, 17, 17, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.viewer__bar {
  display: flex; align-items: center; gap: 16px; padding: 10px clamp(12px, 2vw, 22px);
  border-bottom: 1px solid rgba(17, 17, 17, .15); background: var(--sheet);
}
.viewer__title { margin: 0 auto 0 0; font-size: clamp(20px, 2.2vw, 30px); }
.viewer__out { color: var(--ink); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.viewer__out:hover { text-decoration: underline; }
.viewer__close {
  padding: 11px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.viewer__close:hover, .viewer__close:focus-visible { background: var(--ink); color: var(--paper); }
.viewer__frame { flex: 1; width: 100%; border: 0; background: var(--paper); }

@media (max-width: 799px) {
  /* Phone: the piece sits in a panel at the top and the cards slide up underneath it,
     so a card never covers the work. */
  .vox {
    --fw: calc(100vw - 28px); --fh: 40svh; --panel: calc(var(--mast-h) + 2svh + var(--fh) + 46px);
    --cap: calc(100svh - var(--panel)); background: #151413;
  }
  .vox__stage { z-index: 5; background: none; pointer-events: none; }
  .vox__backs {
    inset: 0 0 auto; height: var(--panel); overflow: hidden; background: #151413;
    box-shadow: 0 22px 30px -14px rgba(0, 0, 0, .85);
  }
  .vox__back { inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); }
  .vox__stage::after { bottom: auto; height: var(--panel); }
  .vox__frames, .vox__hud { pointer-events: auto; }
  .vox__frames { top: calc(var(--mast-h) + 2svh); left: 14px; right: 14px; width: auto; }
  .vox__hud { left: 14px; right: 14px; width: auto; bottom: auto; top: calc(var(--mast-h) + 2svh + var(--fh) + 12px); gap: 12px; }
  .vox__hint { display: none; }
  .vox__steps { padding-top: var(--panel); }
  .vox__step { min-height: calc(var(--cap) * 1.3); padding: 0 14px; }
  .vox__step:last-child { min-height: var(--cap); }
  .vox__card { width: 100%; padding: 18px 18px 18px; }
  .vox__kicker { margin-bottom: 10px; }
  .vox__title { font-size: 28px; margin-bottom: 8px; }
  .vox__desc { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
  .bodies__head { grid-template-columns: 1fr; }
  .bodies__grid { grid-template-columns: 1fr; gap: 56px; }
  .body-card__paper { transform: rotate(calc(var(--tilt, 0deg) * .5)); }
  .viewer { width: 100vw; height: 100dvh; max-height: 100dvh; }
  .viewer__out { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vox__frame, .vox__frame.is-active, .vox__back, .vox__paper { transition: none; transform: none; }
  .vox__hint span { animation: none; }
  .body-card__frame, .body-card__flash, .body-card__rec i { animation: none; }
  .body-card__frame:not(:first-child) { opacity: 0; }
}
