/* ─────────────────────────────────────────────────────────────
   JIREH MEDIA HOUSE · "Contact Sheet"
   Paper, ink, one china-marker red. Photos bring the colour.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:    #EEEAE2;
  --paper-hi: #F7F4EE;   /* a fresh print / the contact sheet */
  --table:    #E3DDD1;   /* the work table under the prints */
  --kraft:    #D9CBB2;   /* lab envelope */
  --ink:      #121110;
  --ink-2:    #4A4640;
  --ink-3:    #8C867B;
  --rule:     rgba(18, 17, 16, .16);
  --film:     #0D0C0B;
  --edge:     #C98A3A;   /* film edge print, amber */
  --red:      #D2261C;   /* china marker */

  --f-serif: 'Boska', 'Times New Roman', serif;
  --f-cond:  'League Gothic', 'Arial Narrow', sans-serif;
  --f-mono:  'DM Mono', ui-monospace, monospace;
  --f-hand:  'Kalam', 'Comic Sans MS', cursive;

  --gut: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .07 0 0 0 0 .06 0 0 0 0 .05 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.28'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 15px/1.55 var(--f-mono);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-night { background-color: var(--film); }
body { transition: background-color .9s ease; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--paper-hi); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type voices */
.serif  { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.serif i, .serif em { font-style: italic; }
.cond   { font-family: var(--f-cond); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .86; }
.mono   { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hand   { font-family: var(--f-hand); color: var(--red); font-weight: 400; line-height: 1.1; }

/* ── Header ──────────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__logo img { width: clamp(150px, 15vw, 230px); filter: invert(1); }
.top__nav { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.top__nav a { position: relative; padding: 4px 0; }
.top__nav a[aria-current="page"]::before {
  content: ''; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; transform: translateY(-50%);
}
.top__fr { min-width: 76px; text-align: right; opacity: .75; }

/* ── Page advance (film frame between pages) ─────────────── */
.advance {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--film); transform: translateX(-101%);
  display: grid; place-items: center;
}
.advance::before, .advance::after {
  content: ''; position: absolute; left: 0; right: 0; height: 26px;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 5px, transparent 5.5px) 0 0 / 34px 26px repeat-x;
  opacity: .9;
}
.advance::before { top: 14px; }
.advance::after  { bottom: 14px; }
.advance span { color: var(--edge); font: 400 clamp(60px, 14vw, 220px)/1 var(--f-cond); letter-spacing: .02em; }
.advance.is-in   { transform: none; }

/* ── Print (a photo with paper border) ───────────────────── */
.print {
  background: var(--paper-hi);
  padding: clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px) clamp(26px, 3.4vw, 54px);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 30px -14px rgba(40, 30, 20, .35);
}
.print img { width: 100%; }

/* developing: a photo arrives over-exposed and fixes into tone */
.dev img, img.dev {
  filter: brightness(1.85) contrast(.42) saturate(.15) blur(2px);
  transition: filter 1.7s cubic-bezier(.3, .1, .2, 1);
}
.dev.is-dev img, img.dev.is-dev { filter: none; }

/* ═══════════════════ HOME ═══════════════════ */

/* Hero: six frames inside a print, JIREH parting around it; scroll tells the frames */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero__word {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 400 min(66vh, 47vw)/.8 var(--f-cond); letter-spacing: -.005em; text-transform: uppercase;
  color: var(--ink); user-select: none; pointer-events: none;
}
.hero__word span { display: inline-block; will-change: transform; }
.hero__word .l-r { visibility: hidden; } /* sits behind the print, keeps spacing */
.hero__stage {
  position: absolute; left: 50%; top: 50%;
  width: min(44vh, 62vw); aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%);
}
.hero__print { position: absolute; inset: 0; padding: 12px 12px 46px; background: var(--paper-hi);
  box-shadow: 0 30px 60px -28px rgba(30, 20, 10, .5); }
.hero__frames { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--paper-hi); }
.hero__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.hero__frames img.on { visibility: visible; }
/* the photographer's notes, one per frame (time from the camera, what the frame shows) */
.hero__say {
  position: absolute; top: calc(50% - 46px); left: calc(50% + min(22vh, 31vw) + clamp(24px, 3vw, 52px));
  width: min(26vw, 380px); height: 92px; opacity: 0; pointer-events: none; z-index: 3;
}
.hero__say p { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .4s var(--ease); }
.hero__say p.on { opacity: 1; transform: none; }
.hero__say .mono { display: block; color: var(--ink-3); font-size: 11px; letter-spacing: .14em; margin-bottom: 6px; }
.hero__say .hand { display: block; font-size: clamp(26px, 2.6vw, 40px); transform: rotate(-3deg); transform-origin: 0 50%; white-space: nowrap; }
/* the payoff: the last frame full-bleed, the name's meaning written over it */
.hero__shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(to top, rgba(12, 9, 7, .78) 0%, rgba(12, 9, 7, .35) 38%, transparent 62%); }
.hero__end { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(26px, 6vh, 64px); z-index: 4; color: var(--paper-hi); opacity: 0; pointer-events: none; }
.hero__end .mono { color: rgba(247, 244, 238, .72); font-size: 11px; letter-spacing: .16em; }
.hero__seen { font-size: clamp(50px, 8.4vw, 140px); line-height: .95; letter-spacing: -.02em; margin: 10px 0 18px; }
.hero__w { position: relative; display: inline-block; }
.hero__ul { position: absolute; left: -3%; width: 106%; bottom: -.14em; height: .26em; overflow: visible; pointer-events: none; }
.hero__ul path { stroke-width: 5; }
.hero__caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; justify-content: space-between; color: var(--ink-2); font-size: 10.5px;
}
.hero__sig {
  position: absolute; right: -22%; bottom: -9%; width: 52%; transform: rotate(-7deg);
  pointer-events: none;
  /* a paper-coloured edge on the ink, so the signature still reads where it crosses the dark photo and the black H */
  filter: drop-shadow(0 0 1px var(--paper-hi)) drop-shadow(0 0 1px var(--paper-hi)) drop-shadow(0 0 2px var(--paper-hi));
}
.hero__edge {
  position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; color: var(--edge); letter-spacing: .3em; font-size: 11px;
}
.hero__foot {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.hero__foot p { max-width: 30ch; }
.hero__foot .serif { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; text-transform: none; letter-spacing: 0; }

/* The half-second (hands) */
.half { padding: clamp(90px, 14vw, 200px) 0 clamp(60px, 9vw, 140px); position: relative; overflow: hidden; }
.half__head { padding: 0 var(--gut); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.half__head h2 { font-size: clamp(46px, 8.6vw, 150px); line-height: .9; }
.half__head h2 em { display: block; padding-left: 1.6em; }
.half__head .mono { color: var(--ink-3); text-align: right; }
.hands { position: relative; margin-top: clamp(20px, 4vw, 60px); aspect-ratio: 6000 / 3368; width: 100%; }
.hands img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.hands .h-l { clip-path: inset(0 50% 0 0); }
.hands .h-r { clip-path: inset(0 0 0 50%); }
.hands__gap {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  text-align: center; white-space: nowrap; color: var(--ink-2);
}
.half__after {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 90px);
  padding: 0 var(--gut); margin-top: clamp(30px, 5vw, 70px); align-items: end;
}
.half__after p.serif { font-size: clamp(22px, 2.5vw, 38px); line-height: 1.18; max-width: 22ch; text-indent: 2.4em; }
.half__ring { justify-self: end; width: min(340px, 70%); }
.half__ring img { mix-blend-mode: multiply; }
.half__ring figcaption { margin-top: 8px; color: var(--ink-3); }

/* Contact sheet */
.sheetwrap { padding: clamp(70px, 10vw, 150px) var(--gut); background: var(--table) var(--grain); position: relative; }
.sheetwrap__head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 48px); align-items: end; margin-bottom: clamp(26px, 4vw, 54px); }
.sheetwrap__head .cond { font-size: clamp(80px, 13vw, 210px); }
.sheetwrap__head .hand { font-size: clamp(20px, 2vw, 30px); transform: rotate(-3deg); align-self: center; }
.sheetwrap__head dl { display: grid; grid-template-columns: auto auto; gap: 2px 16px; color: var(--ink-2); }
.sheetwrap__head dt { color: var(--ink-3); }

.sheet {
  position: relative; background: var(--paper-hi);
  padding: clamp(14px, 2.2vw, 34px); transform: rotate(-.5deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.03), 0 40px 70px -40px rgba(40, 28, 14, .55);
  cursor: none;
}
.strip {
  position: relative; background: var(--film);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(4px, .6vw, 9px);
  padding: clamp(16px, 2vw, 26px) clamp(6px, .8vw, 12px);
  margin-bottom: clamp(8px, 1vw, 14px);
}
.strip::before, .strip::after { /* sprocket holes */
  content: ''; position: absolute; left: 0; right: 0; height: clamp(6px, .7vw, 9px);
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(238,234,226,.86) 7px 13px, transparent 13px 20px);
  border-radius: 1px; opacity: .9;
}
.strip::before { top: clamp(4px, .55vw, 8px); }
.strip::after  { bottom: clamp(4px, .55vw, 8px); }
.strip__code { position: absolute; right: 14px; bottom: -1px; font: 400 9px/1 var(--f-mono); color: var(--edge); letter-spacing: .25em; transform: translateY(100%); padding-top: 3px; }
.fr { position: relative; aspect-ratio: 3 / 2; overflow: visible; }
.fr__img { position: absolute; inset: 0; overflow: hidden; background: #000; }
.fr__img img { width: 100%; height: 100%; object-fit: cover; }
.fr--p .fr__img img { /* portrait frames sit sideways, like a camera turned on its side */
  position: absolute; left: 50%; top: 50%; width: 66.67%; height: 150%;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.fr__n { position: absolute; top: -13px; left: 2px; font: 400 8.5px/1 var(--f-mono); color: var(--edge); letter-spacing: .1em; }
.fr button { position: absolute; inset: 0; cursor: none; }
.fr svg.gp { position: absolute; left: -14%; top: -22%; width: 128%; height: 144%; overflow: visible; pointer-events: none; z-index: 2; }
.gp path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fr .note { position: absolute; z-index: 3; font-size: clamp(14px, 1.35vw, 21px); white-space: nowrap; pointer-events: none; }

.loupe {
  position: fixed; left: 0; top: 0; z-index: 40; width: 230px; height: 230px;
  margin: -115px 0 0 -115px; border-radius: 50%; overflow: hidden; pointer-events: none;
  box-shadow: 0 0 0 6px #1a1816, 0 0 0 7px #3a3631, 0 22px 40px rgba(0,0,0,.45);
  background: var(--paper-hi); opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .35s var(--ease);
}
.loupe.on { opacity: 1; transform: none; }
.loupe__inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.loupe__inner .sheet { transform: none; box-shadow: none; }
.loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0,0,0,.35); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), transparent 40%); }

.sheetwrap__foot { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(22px, 3vw, 40px); gap: 20px; }
.arrowlink { display: inline-flex; align-items: center; gap: 12px; font: 400 clamp(26px, 3vw, 44px)/1 var(--f-cond); text-transform: uppercase; }
.arrowlink i { display: inline-block; width: 46px; height: 1.5px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.arrowlink i::after { content: ''; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.arrowlink:hover i { width: 80px; }

/* Prints on the table */
.table { position: relative; background: var(--table) var(--grain); padding: clamp(60px, 9vw, 130px) var(--gut) 0; overflow: hidden; }
.table__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; position: relative; z-index: 1; }
.table__head h2 { font-size: clamp(44px, 7vw, 120px); line-height: .9; }
.table__head .hand { font-size: clamp(20px, 2vw, 28px); transform: rotate(4deg); }
.table__field { position: relative; height: clamp(620px, 78vw, 900px); }
.tp {
  position: absolute; width: clamp(170px, 19vw, 300px); touch-action: none; cursor: grab;
  user-select: none; -webkit-user-drag: none;
}
.tp:active { cursor: grabbing; }
.tp img { pointer-events: none; aspect-ratio: 4 / 5; object-fit: cover; }
.tp .print { padding-bottom: clamp(38px, 4.2vw, 64px); position: relative; }
.tp__label { position: absolute; left: 0; right: 0; bottom: clamp(9px, 1.1vw, 16px); text-align: center; font: 400 clamp(20px, 2vw, 30px)/1 var(--f-cond); text-transform: uppercase; letter-spacing: .03em; }
.tp__go { position: absolute; right: 10px; bottom: 10px; font-size: 10px; color: var(--ink-3); }

/* Footer — their own sign-off */
.foot { position: relative; background: var(--paper) var(--grain); padding: clamp(80px, 11vw, 160px) var(--gut) 24px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(24px, 5vw, 80px); }
.foot__lock { width: min(520px, 100%); }
.foot__duo { justify-self: end; width: min(520px, 100%); mix-blend-mode: multiply; -webkit-mask: linear-gradient(180deg, #000 88%, transparent); mask: linear-gradient(180deg, #000 88%, transparent); }
.foot__lines { margin-top: clamp(26px, 3vw, 46px); display: grid; gap: 6px; }
.foot__lines a { font: 400 clamp(26px, 3.4vw, 52px)/1.05 var(--f-serif); letter-spacing: -.01em; width: fit-content; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.foot__lines a:hover { background-size: 100% 2px; }
.foot__word { margin-top: clamp(60px, 9vw, 140px); width: 100%; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--ink-3); flex-wrap: wrap; }

/* Lightbox (a print held up) */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(13, 12, 11, .92); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.lb figure { background: var(--paper-hi); padding: 12px 12px 40px; max-width: 92vw; max-height: 92vh; position: relative; transform: translateY(20px) rotate(-1deg); transition: transform .6s var(--ease); }
.lb.open figure { transform: none; }
.lb img { max-width: calc(92vw - 24px); max-height: calc(92vh - 60px); width: auto; height: auto; object-fit: contain; }
.lb figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; color: var(--ink-2); }
.lb__x { position: fixed; top: 18px; right: var(--gut); color: var(--paper); }
.lb__nav { position: fixed; top: 50%; color: var(--paper); font: 400 40px/1 var(--f-cond); padding: 20px; transform: translateY(-50%); }
.lb__prev { left: 0; } .lb__next { right: 0; }

/* ═══════════════════ PORTFOLIO (Rolls) ═══════════════════ */
.rhead { padding: clamp(120px, 15vw, 220px) var(--gut) clamp(30px, 4vw, 60px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.rhead h1 { font-size: clamp(110px, 21vw, 360px); }
.rhead p { max-width: 34ch; color: var(--ink-2); text-transform: none; letter-spacing: .01em; font-size: 13px; }
.chips { display: flex; gap: 8px; padding: 0 var(--gut) 18px; flex-wrap: wrap; }
.chip { border: 1px solid var(--rule); padding: 7px 13px 6px; border-radius: 99px; transition: background .25s, color .25s, border-color .25s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.index { border-top: 1px solid var(--ink); margin: 0 var(--gut); }
.idx {
  display: grid; grid-template-columns: 70px 1fr 180px 120px 40px; align-items: baseline; gap: 16px;
  padding: clamp(14px, 1.8vw, 24px) 0 clamp(10px, 1.4vw, 18px); border-bottom: 1px solid var(--rule);
  transition: opacity .35s ease, color .35s ease;
}
.idx__t { font: 400 clamp(32px, 4.6vw, 78px)/1 var(--f-serif); letter-spacing: -.02em; transition: transform .5s var(--ease); }
.idx__c { font: 400 clamp(18px, 1.6vw, 24px)/1 var(--f-cond); text-transform: uppercase; color: var(--ink-2); }
.idx__arrow { justify-self: end; }
.index:hover .idx:not(:hover) { opacity: .28; }
.idx:hover .idx__t { font-style: italic; transform: translateX(14px); }
.idx[hidden] { display: none; }
.trail { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; }
.trail img { position: absolute; width: clamp(140px, 14vw, 220px); max-width: none; height: auto; transform: translate(-50%, -50%); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }

.roll { display: grid; grid-template-columns: minmax(240px, 27%) 1fr; gap: clamp(20px, 4vw, 70px); padding: clamp(90px, 12vw, 180px) var(--gut) 0; position: relative; }
.roll[hidden] { display: none; }
.roll__side { position: sticky; top: 90px; align-self: start; padding-bottom: 40px; }
.roll__no { font: 400 clamp(110px, 13vw, 220px)/.8 var(--f-cond); }
.roll__t { font: 400 clamp(30px, 3vw, 50px)/1.02 var(--f-serif); margin-top: 18px; letter-spacing: -.015em; }
.roll__t em { font-style: italic; }
.roll__specs { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; color: var(--ink-2); }
.roll__specs dt { color: var(--ink-3); }
.roll__line { margin-top: 20px; font: 400 17px/1.35 var(--f-serif); max-width: 30ch; color: var(--ink-2); }
.roll__ch { margin-top: 26px; display: grid; gap: 6px; }
.roll__ch a { color: var(--ink-3); transition: color .3s; }
.roll__ch a.on { color: var(--ink); }
.roll__ch a.on::before { content: '→ '; color: var(--red); }
.roll__flow { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 22px); row-gap: clamp(34px, 5vw, 90px); align-items: end; }
.roll__flow figure { position: relative; cursor: zoom-in; }
.roll__flow figcaption { margin-top: 8px; color: var(--ink-3); font-size: 10.5px; display: flex; justify-content: space-between; gap: 10px; }
.b-full   { grid-column: 1 / -1; }
.b-wide   { grid-column: 1 / span 9; }
.b-wideR  { grid-column: 4 / -1; }
.b-half   { grid-column: span 6; }
.b-thirdL { grid-column: 1 / span 4; }
.b-thirdR { grid-column: 9 / -1; }
.b-mid    { grid-column: 3 / span 7; }
.b-sm     { grid-column: span 4; }
.chap { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--rule); padding-top: 14px; scroll-margin-top: 100px; }
.chap .cond { font-size: clamp(38px, 4.4vw, 70px); }
.chap .mono { color: var(--ink-3); }
.flick { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 3vw, 46px); align-items: center; }
.flick__frames { position: relative; aspect-ratio: 4 / 5; background: var(--film); overflow: hidden; }
.flick__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.flick__frames img.on { visibility: visible; }
.flick__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--film); padding: 18px 8px; position: relative; }
.flick__strip img { aspect-ratio: 4 / 5; object-fit: cover; opacity: .32; transition: opacity .2s; }
.flick__strip img.on { opacity: 1; outline: 2px solid var(--red); outline-offset: 2px; }
.flick__txt .serif { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; margin-bottom: 18px; }
.flick__txt .mono { color: var(--ink-3); }
.takes { grid-column: 2 / span 10; position: relative; aspect-ratio: 2 / 3; max-height: 92vh; justify-self: center; width: min(100%, 61vh); }
.takes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.takes .t-col { clip-path: inset(0 0 100% 0); }
.takes .hand { position: absolute; right: -16%; top: 12%; font-size: clamp(18px, 1.7vw, 26px); transform: rotate(5deg); }
.gnote { grid-column: 1 / -1; font-size: clamp(22px, 2.3vw, 34px); transform: rotate(-2deg); padding-left: 8%; }
.night { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: inherit; row-gap: inherit; align-items: end; color: var(--paper); }
body.is-night .roll__side, body.is-night .chap, body.is-night .roll__flow figcaption { color: var(--paper); }
body.is-night .chap { border-color: rgba(238,234,226,.2); }
body.is-night .roll__specs, body.is-night .roll__line, body.is-night .roll__ch a { color: rgba(238,234,226,.6); }
body.is-night .roll__ch a.on { color: var(--paper); }
body.is-night .top__fr { opacity: 1; }
.rollend { padding: clamp(100px, 14vw, 200px) var(--gut); text-align: center; }

/* ═══════════════════ STUDIO ═══════════════════ */
.shero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 70px); align-items: end; padding: clamp(110px, 13vw, 190px) var(--gut) 0; }
.shero__sig { width: min(560px, 100%); clip-path: inset(0 100% 0 0); }
.shero__words { margin-top: clamp(20px, 3vw, 40px); font: 400 clamp(21px, 2.1vw, 32px)/1.25 var(--f-serif); max-width: 26ch; letter-spacing: -.01em; }
.shero__words::first-line { }
.shero__words span { display: inline-block; width: 2.2em; }
.shero__tags { margin-top: 22px; font: 400 clamp(20px, 1.8vw, 28px)/1 var(--f-cond); text-transform: uppercase; letter-spacing: .06em; }
.shero__duo { mix-blend-mode: multiply; width: 100%; max-width: 640px; justify-self: end; -webkit-mask: linear-gradient(180deg, #000 88%, transparent); mask: linear-gradient(180deg, #000 88%, transparent); }
.two { padding: clamp(90px, 13vw, 200px) var(--gut); }
.two h2 { font-size: clamp(40px, 6.6vw, 112px); line-height: .95; max-width: 15ch; }
.two h2 em { color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 18px); margin-top: clamp(40px, 6vw, 90px); align-items: center; }
.pair figure { position: relative; overflow: hidden; }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pair .cam { position: absolute; left: 10px; top: 10px; background: var(--paper-hi); padding: 4px 7px 3px; }
.pair__why { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; color: var(--ink-3); padding-top: 4px; }
.pair__why .hand { font-size: clamp(18px, 1.7vw, 25px); }
.name { padding: clamp(60px, 9vw, 140px) var(--gut); border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 80px); align-items: center; }
.name__w { font: 400 clamp(110px, 20vw, 340px)/.8 var(--f-serif); letter-spacing: -.04em; position: relative; }
.name__w .hand { position: absolute; left: 30%; bottom: -10%; font-size: clamp(26px, 3vw, 46px); transform: rotate(-8deg); white-space: nowrap; }
.name dl { font: 400 clamp(18px, 1.6vw, 24px)/1.4 var(--f-serif); max-width: 36ch; }
.name dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: 14px; }

/* Lab envelope enquiry */
.write { padding: clamp(80px, 11vw, 170px) var(--gut); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 90px); align-items: start; background: var(--table) var(--grain); }
.env {
  position: relative; background: var(--kraft) var(--grain); padding: clamp(24px, 3.4vw, 50px) clamp(20px, 3vw, 46px) clamp(30px, 4vw, 56px);
  transform: rotate(-1deg); box-shadow: 0 40px 60px -40px rgba(60, 40, 20, .6);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.env::before { /* envelope flap line */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.12), transparent);
}
.env__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 8px; }
.env__head .cond { font-size: clamp(40px, 4.4vw, 70px); }
.env__row { display: grid; grid-template-columns: 150px 1fr; align-items: end; border-bottom: 1px solid rgba(18,17,16,.35); padding: 14px 0 6px; gap: 10px; }
.env__row label, .env__row .lbl { font: 400 19px/1 var(--f-cond); text-transform: uppercase; letter-spacing: .03em; }
.env input, .env textarea {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink);
  font: 400 22px/1.25 var(--f-hand); padding: 2px 0;
}
.env textarea { resize: none; min-height: 86px; }
.env input::placeholder, .env textarea::placeholder { color: rgba(18,17,16,.32); }
.env__boxes { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.env__boxes label { display: inline-flex; align-items: center; gap: 7px; font: 400 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.env__boxes input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--ink); position: relative; flex: none; padding: 0; }
.env__boxes input:checked::after { content: '✕'; position: absolute; left: -2px; top: -9px; color: var(--red); font: 700 21px/1 var(--f-hand); }
.env__send { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.env__send button { font: 400 30px/1 var(--f-cond); text-transform: uppercase; background: var(--ink); color: var(--kraft); padding: 12px 22px 10px; letter-spacing: .02em; transition: background .25s; }
.env__send button:hover { background: var(--red); color: var(--paper-hi); }
.env__send .mono { color: var(--ink-2); font-size: 10.5px; max-width: 28ch; }
.stamp {
  position: absolute; right: 8%; top: 30%; z-index: 4; pointer-events: none;
  border: 4px solid var(--red); color: var(--red); padding: 8px 16px 4px; border-radius: 6px;
  font: 400 clamp(48px, 6vw, 88px)/1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-14deg) scale(2.4); opacity: 0; mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 2px rgba(210,38,28,.35); text-shadow: 0 0 1px rgba(210,38,28,.6);
}
.stamp small { display: block; font: 400 11px/1.4 var(--f-mono); letter-spacing: .12em; text-align: center; }
.direct .cond { font-size: clamp(30px, 3vw, 48px); margin-bottom: 18px; }
.direct a.serif { display: block; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.12; width: fit-content; margin-bottom: 4px; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.direct a.serif:hover { background-size: 100% 2px; }
.direct .mono { color: var(--ink-3); margin-top: 18px; display: block; }
.direct__lock { width: min(380px, 80%); margin-top: clamp(30px, 5vw, 70px); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
  .top__nav { gap: 14px; }
  .top__fr { display: none; }
  .hero__sig { right: -12%; width: 46%; }
  .hero__say { left: var(--gut); right: var(--gut); width: auto; top: calc(50% + min(33vh, 46.5vw) + 20px); height: 80px; text-align: center; }
  .hero__say p { left: 0; right: 0; }
  .hero__say .hand { transform-origin: 50% 50%; }
  .half__head { grid-template-columns: 1fr; }
  .half__head .mono { text-align: left; }
  .half__after { grid-template-columns: 1fr; }
  .half__ring { justify-self: start; }
  .sheetwrap__head { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .sheet { cursor: auto; transform: none; }
  .fr button { cursor: zoom-in; }
  .loupe { display: none; }
  .table__field { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px 0 60px; }
  .tp { position: relative; width: auto; left: auto !important; top: auto !important; touch-action: auto; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__duo { justify-self: start; }
  .rhead { grid-template-columns: 1fr; }
  .idx { grid-template-columns: 44px 1fr 40px; }
  .idx__c, .idx__n { display: none; }
  .roll { grid-template-columns: 1fr; }
  .roll__side { position: relative; top: 0; padding-bottom: 0; }
  .roll__ch { display: none; }
  .b-wide, .b-wideR, .b-mid { grid-column: 1 / -1; }
  .b-thirdL, .b-thirdR, .b-sm { grid-column: span 6; }
  .flick { grid-template-columns: 1fr; }
  .takes { grid-column: 1 / -1; width: 100%; }
  .takes .hand { right: 4%; top: auto; bottom: 4%; color: var(--paper-hi); }
  .shero, .write { grid-template-columns: 1fr; }
  .shero__duo { justify-self: start; }
  .name { grid-template-columns: 1fr; }
  .env__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__word { align-items: flex-start; padding-top: 13vh; font-size: 43vw; }
  .hero__word .l-r { visibility: visible; }
  .hero__stage { top: 48%; width: min(56vw, 40vh); }
  .hero__say { top: calc(48% + min(42vw, 30vh) + 18px); }
  .hero__say .hand { font-size: 27px; }
  .hero__sig { right: auto; left: -20%; bottom: -12%; width: 50%; transform: rotate(-9deg); }
  .hero__edge { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 8px; bottom: 16px; }
}
@media (max-width: 520px) {
  .wide-only { display: none; }
  .hero__caption { justify-content: flex-end; }
  .top__nav a:not([aria-current]) { font-size: 11px; }
  .top__logo img { width: 128px; }
  .b-thirdL, .b-thirdR, .b-sm, .b-half { grid-column: 1 / -1; }
  .table__field { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tp__label { font-size: 18px; }
}

/* static version: ?still (motion is on by default, whatever the OS setting) */
@media all { html.still {
  .dev img, img.dev { filter: none; transition: none; }
  .loupe { display: none; }
  .sheet, .fr button { cursor: zoom-in; }
  .advance { display: none; }
  .shero__sig { clip-path: none; }
  .takes .t-col { clip-path: none; }
  * { transition-duration: .01ms !important; }
}
}

/* hero letters rise in on load (own property, so the scroll timeline's transform is untouched) */
@keyframes hero-rise { from { top: .16em; opacity: 0; } to { top: 0; opacity: 1; } }
.hero__word span { position: relative; }
.hero__word.rise .l-j, .hero__word.rise .l-i, .hero__word.rise .l-e, .hero__word.rise .l-h { animation: hero-rise 1.4s cubic-bezier(.16, 1, .3, 1) .15s both; }
.hero__word.rise .l-i { animation-delay: .22s; }
.hero__word.rise .l-e { animation-delay: .29s; }
.hero__word.rise .l-h { animation-delay: .36s; }
