/* I mockups (round 6): logo draw, light flip-board, project carousels, projector About. Sits on top of r.css, g.css, h.css. */
@property --rx { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --bx { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ro { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --bo { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ko { syntax: '<number>'; inherits: true; initial-value: 1; }

/* ---------- registration type: black serif with red and blue plates that show only while the type moves (12/3: settled type is clean) ---------- */
.reg { position: relative; color: rgba(12, 12, 13, var(--ko)); }
.reg::before, .reg::after { content: attr(data-t); position: absolute; left: 0; top: 0; right: 0; white-space: inherit; mix-blend-mode: multiply; pointer-events: none; }
.reg::before { color: rgb(255, 45, 75); opacity: var(--ro); transform: translateX(calc(var(--rx) * 1em)); }
.reg::after { color: rgb(30, 95, 255); opacity: var(--bo); transform: translateX(calc(var(--bx) * 1em)); }
.reg-d { color: rgba(244, 244, 241, var(--ko)); }
.reg-d::before, .reg-d::after { mix-blend-mode: screen; }
/* arrives once: plates slide in from the sides and lock */
.reg-in { --rx: -.3; --bx: .3; --ro: 0; --bo: 0; --ko: 0; }
.reg-in.on { --rx: 0; --bx: 0; --ro: 0; --bo: 0; --ko: 1; transition: --ko .4s ease, --rx 1.2s cubic-bezier(.16, 1, .3, 1) .1s, --bx 1.2s cubic-bezier(.16, 1, .3, 1) .1s, --ro .5s ease .3s, --bo .5s ease .3s; }
.reg-in.on.d1 { transition-delay: .12s, .22s, .22s, .42s, .42s; }
.reg-in.on.d2 { transition-delay: .24s, .34s, .34s, .54s, .54s; }
.still .reg-in.on { transition: none; }

/* ---------- the lockup: film "e" + Motion Pictures ---------- */
.i-lock { position: fixed; left: 0; top: 0; z-index: 31; white-space: nowrap; transform-origin: 0 0; font-family: var(--serif); line-height: 1; letter-spacing: -.01em; display: flex; align-items: baseline; will-change: transform; pointer-events: none; color: var(--ink); }
.i-slot { display: inline-flex; align-items: baseline; font-family: var(--serif); font-size: 29px; line-height: 1; letter-spacing: -.01em; visibility: hidden; white-space: nowrap; }
.i-e { position: relative; display: inline-block; flex: none; width: .68em; height: .68em; vertical-align: baseline; margin-right: -.03em; margin-bottom: -.082em; }
.i-e canvas { position: absolute; display: block; pointer-events: none; }
.i-wm { display: inline-block; }
.i-lock .i-wm { transition: none; }
.i-nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: baseline; padding: calc(var(--pad) * .8) var(--pad); pointer-events: none; transition: color .6s ease; }
.i-nav > * { pointer-events: auto; }
.i-home { display: inline-flex; }
.i-links { display: flex; gap: clamp(16px, 2vw, 30px); opacity: 0; transition: opacity .8s ease .2s, background-color .6s ease, box-shadow .6s ease; background: #fff; border-radius: 999px; padding: 0 16px; margin-right: -16px; box-shadow: 0 1px 10px rgba(0,0,0,.08); }
.i-ready .i-links, .still .i-links { opacity: 1; }
.i-links button { position: relative; font-size: 13px; padding: 6px 0; }
.i-links button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.i-links button:hover::after { transform: scaleX(1); transform-origin: left; }
.i-links button:active { opacity: .55; }
/* night: the About beat */
.i-night .i-lock, .i-night .i-links { color: #f3f3f0; }
.i-night .i-links { background: rgba(14, 14, 18, .72); box-shadow: 0 1px 10px rgba(0,0,0,.3); }
.i-lock .i-e canvas { transition: filter .6s ease; }
.i-night .i-lock .i-e canvas { filter: invert(1); }
.i-night .i-lock .i-wm { --ko: 1; color: #f3f3f0; }
.i-night .i-lock .i-wm::before, .i-night .i-lock .i-wm::after { mix-blend-mode: screen; }

/* ---------- the board (light flip-board, bottom-left) ---------- */
.i-board { position: absolute; z-index: 2; left: var(--pad); bottom: max(5.5vh, 36px); font-size: min(3.3vw, 6.1vh); will-change: transform, opacity; opacity: 0; pointer-events: none; }
.i-board .m { display: grid; gap: .12em; font: 500 1em/1 var(--sans); letter-spacing: 0; }
.i-board .fl-tile { --tile: #f1f0ec; --tile2: #fbfbf9; --tink: #0c0c0d; --hinge: rgba(0, 0, 0, .2); --flshade: 0, 0, 0; gap: .1em; }
.i-board .fl-tile .fl-c { box-shadow: 0 .012em .02em rgba(0,0,0,.14), 0 .1em .26em rgba(0,0,0,.09), 0 .34em .7em rgba(0,0,0,.05); outline: 1px solid rgba(0,0,0,.045); outline-offset: -1px; }
.i-board .fl-tile .fl-c::after { background: var(--hinge); height: max(1px, .014em); margin-top: calc(max(1px, .014em) / -2); }
.i-hint { position: absolute; z-index: 2; right: var(--pad); bottom: var(--pad); font-size: 13px; color: var(--mute); opacity: 0; transition: opacity .6s ease; }
.i-hint.on { opacity: 1; }
.i-hint { display: inline-flex; align-items: center; gap: 6px; }
.i-arw { width: 10px; height: 14px; animation: i-bob 1.8s ease-in-out infinite; }
@keyframes i-bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .i-arw { animation: none; } }

/* ---------- the work: three rows, one project each, each row a carousel ---------- */
.g-stage { height: 560vh; }
.i-rows { position: absolute; z-index: 2; left: 0; right: 0; top: calc(clamp(64px, 8.4vh, 92px) + clamp(30px, 4.6vh, 44px)); bottom: 14px; display: flex; flex-direction: column; justify-content: space-around; --ch: min(calc((100dvh - clamp(64px, 8.4vh, 92px) - clamp(30px, 4.6vh, 44px) - 14px) / 3 - 50px), 40vw); --cg: 14px; }
.i-row { display: flex; flex-direction: column; }
.i-title { align-self: flex-start; margin-left: var(--pad); font: 400 clamp(24px, 3.6vh, 40px)/1 var(--serif); letter-spacing: -.02em; margin-bottom: clamp(8px, 1.4vh, 14px); white-space: nowrap; }
.i-car { position: relative; height: var(--ch); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.i-car:active { cursor: grabbing; }
.i-track { position: absolute; left: 0; top: 0; height: 100%; display: flex; gap: var(--cg); will-change: transform; }
.i-card { flex: none; height: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #ecebe7; opacity: 0; }
.i-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.i-card.show { opacity: 1; }                                 /* the moment its frame has landed on it */
.i-card.later { transition: opacity .8s ease; }              /* repeats further along the row: they only slide in from the edge */
.i-rows.on .i-card.later { opacity: 1; }
.i-rows.about .i-card.fade { transition: opacity .5s ease; opacity: 0 !important; }
.i-rows.about .i-card.gone { transition: none; opacity: 0 !important; }
.i-rows.about .i-title { opacity: 0; transition: opacity .3s ease; }
.i-title { transition: opacity .3s ease; }

/* ---------- About ---------- */
.i-night-bg { position: fixed; inset: 0; z-index: 1; background: #05050a; opacity: 0; pointer-events: none; }
#pj { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1; opacity: 0; pointer-events: none; display: block; }
.i-about { position: fixed; z-index: 4; left: clamp(22px, 6vw, 110px); top: 50%; width: min(52vw, 15em); transform: translateY(-46%); font: 400 clamp(36px, 4.9vw, 86px)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; opacity: 0; pointer-events: none; text-shadow: 0 0 .5em rgba(0, 0, 0, .55); }
.i-about p { margin: 0; position: relative; }
.i-about::before { content: ''; position: absolute; inset: -25% -30% -25% -22%; background: radial-gradient(ellipse at 40% 50%, rgba(4, 5, 12, .62), rgba(4, 5, 12, .3) 55%, transparent 75%); z-index: -1; pointer-events: none; }
.i-about.vis { pointer-events: auto; }

@media (max-width: 700px) {
  .i-board { font-size: 6.4vw; bottom: 34px; }
  .i-rows { top: 104px; --ch: min(calc((100dvh - 120px) / 3 - 40px), 44vw); --cg: 10px; }
  .i-title { font-size: clamp(22px, 3.6vh, 30px); }
  .i-about { left: var(--pad); right: var(--pad); width: auto; top: 46%; font-size: 9.6vw; line-height: 1.04; }
}
@media (prefers-reduced-motion: reduce) { .i-card, .i-links { transition: none !important; } }

.i-works { position: absolute; left: 0; top: calc(-1 * clamp(34px, 5vh, 48px)); margin: 0 0 0 var(--pad); }
/* fifth pass: the opening pen is the 3D ribbon's head, so the film canvas shows from the first frame and sits over the lockup until it reaches the corner */
body.i-page #gl { transition: none; }
body.i-pen #gl { z-index: 32; }

/* ---- sixth pass ---- */
.i-wm, .i-wm2 { white-space: pre-line; }
.i-slot { align-items: flex-start; }
/* rows type: Works in Motion is a small muted eyebrow; the project titles are the headings (?rowtype=2 flips it) */
.i-title { font: 500 clamp(22px, 3.1vh, 28px)/1 var(--sans); letter-spacing: -.015em; }
.i-works { font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .55; top: calc(-1 * clamp(30px, 4.4vh, 44px)); }
body.rt2 .i-works { font: 500 clamp(30px, 4.6vh, 42px)/1 var(--sans); letter-spacing: -.025em; text-transform: none; opacity: 1; top: calc(-1 * clamp(40px, 5.6vh, 52px)); }
body.rt2 .i-title { font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
/* About: low on the screen, as if projected from behind onto a surface */
.i-about { top: auto; bottom: 7vh; left: 50%; transform: translateX(-50%); width: min(74vw, 1020px); text-align: center; font-size: clamp(26px, 3.5vw, 60px); line-height: 1.06; text-shadow: none; }
.i-about::before { display: none; }
.i-scr { position: fixed; z-index: 3; left: 50%; bottom: 3.5vh; transform: translateX(-50%); width: min(86vw, 1180px); height: min(36vh, 360px); opacity: 0; pointer-events: none; transition: opacity .7s ease; }
/* 1: a hanging translucent scrim, light spilling through it, text as bloom */
.scr1 .i-scr { background: radial-gradient(ellipse closest-side at 50% 50%, rgba(52, 62, 138, .62) 0%, rgba(70, 82, 170, .46) 50%, rgba(90, 105, 200, .18) 80%, transparent 100%); }
.scr1 .i-about { color: #fff; text-shadow: 0 0 .45em rgba(170, 195, 255, .9), 0 0 1.2em rgba(120, 150, 255, .45); }
/* 2: a soft-edged rectangle of light where the beam lands, the text dark inside it */
.scr2 .i-scr { background: radial-gradient(ellipse closest-side at 50% 50%, rgba(238, 241, 255, .95) 0%, rgba(228, 233, 255, .9) 58%, rgba(205, 214, 250, .55) 82%, transparent 100%); }
.scr2 .i-about { color: rgba(12, 14, 30, .92); }
.scr2 .i-about p.reg-d { color: rgba(12, 14, 30, var(--ko)); }
.scr2 .reg-d::before, .scr2 .reg-d::after { mix-blend-mode: multiply; }
/* 3: the text is the light itself; the beam lands on a dark floor with a pool of light */
.scr3 .i-scr { height: 46vh; background: radial-gradient(ellipse 50% 22% at 50% 82%, rgba(170, 190, 255, .3), transparent 100%), radial-gradient(ellipse closest-side at 50% 62%, rgba(3, 4, 10, .82) 0%, rgba(3, 4, 10, .55) 60%, transparent 100%); }
.scr3 .i-about { color: #fff; text-shadow: 0 0 .3em rgba(200, 215, 255, .95), 0 0 .9em rgba(150, 175, 255, .7), 0 0 2em rgba(110, 140, 255, .4); bottom: 9vh; }
@media (max-width: 700px) {
  .i-about { left: 50%; right: auto; width: 88vw; bottom: 8vh; top: auto; font-size: 7.6vw; }
  .i-scr { width: 100vw; height: 34vh; }
  .scr1 .i-scr { background: radial-gradient(ellipse closest-side at 50% 52%, rgba(40, 48, 120, .78) 0%, rgba(58, 70, 160, .6) 55%, transparent 100%); }
  .scr3 .i-scr { background: radial-gradient(ellipse 50% 22% at 50% 82%, rgba(170, 190, 255, .3), transparent 100%), radial-gradient(ellipse closest-side at 50% 62%, rgba(3, 4, 10, .6) 0%, rgba(3, 4, 10, .3) 60%, transparent 100%); }
  .i-title { font-size: clamp(20px, 3.2vh, 26px); }
}

/* ---- seventh pass: About on the LEFT, on a glass / backlit rectangle lit by the beam (?screen=4, 5, 6) ---- */
.i-eyebrow, .i-next, .i-perf { display: none; }
body.scr4, body.scr5, body.scr6 { --ax: 5vw; --aw: min(50vw, 720px); --ay: 38vh; --ah: 40vh; }
.scr4 .i-scr, .scr5 .i-scr, .scr6 .i-scr { left: var(--ax); bottom: auto; top: var(--ay); width: var(--aw); height: var(--ah); transform: none; border-radius: 6px; }
.scr4 .i-about, .scr5 .i-about, .scr6 .i-about { left: var(--ax); top: var(--ay); bottom: auto; width: var(--aw); height: var(--ah); transform: none; display: flex; align-items: center; text-align: left;
  padding: 0 clamp(26px, 4vw, 64px); box-sizing: border-box; font-size: clamp(28px, 3.6vw, 60px); line-height: 1.08; text-wrap: balance; color: #fff; text-shadow: 0 0 .3em rgba(200, 215, 255, .95), 0 0 .9em rgba(150, 175, 255, .7), 0 0 2em rgba(110, 140, 255, .4); }
.scr4 .i-eyebrow, .scr5 .i-eyebrow, .scr6 .i-eyebrow { display: block; position: absolute; left: 2px; top: -34px; font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(225, 232, 255, .78); text-shadow: none; }
.scr4 .i-next, .scr5 .i-next, .scr6 .i-next { display: inline-flex; gap: 8px; position: fixed; z-index: 5; left: var(--ax); top: calc(var(--ay) + var(--ah) + 26px); font: 500 14px/1 var(--sans); color: rgba(235, 240, 255, .86); padding: 11px 16px; border: 1px solid rgba(220, 230, 255, .28); border-radius: 999px; background: rgba(20, 24, 50, .35); opacity: 0; transition: opacity .5s ease, background .2s; cursor: pointer; }
.scr4 .i-next:hover, .scr5 .i-next:hover, .scr6 .i-next:hover { background: rgba(60, 70, 130, .5); }
.scr4 .i-about::before, .scr5 .i-about::before, .scr6 .i-about::before { display: none; }
.i-scr::before, .i-scr::after { content: ''; position: absolute; pointer-events: none; }
/* 4: backlit rear-projection rectangle, soft glow at the edges */
.scr4 .i-scr { background: linear-gradient(180deg, rgba(176, 192, 255, .30), rgba(112, 132, 232, .20) 60%, rgba(150, 170, 250, .26));
  box-shadow: inset 0 0 90px rgba(214, 226, 255, .55), inset 0 0 0 1px rgba(214, 226, 255, .35), 0 0 70px rgba(126, 148, 255, .38), 0 0 190px rgba(110, 130, 255, .22); }
.scr4 .i-scr::before { inset: 0; border-radius: 6px; background: radial-gradient(ellipse 70% 90% at 38% 0%, rgba(255, 255, 255, .22), transparent 70%); }
/* 5: frosted glass, the beam catches the top edge, a faint reflection below */
.scr5 .i-scr { background: linear-gradient(158deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05) 55%, rgba(200, 215, 255, .09)); -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(235, 240, 255, .26); box-shadow: 0 20px 80px rgba(8, 10, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.scr5 .i-scr::before { left: 0; right: 0; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, .5) 22%, #fff 40%, rgba(255, 255, 255, .5) 58%, transparent 92%); box-shadow: 0 0 22px 3px rgba(190, 205, 255, .65); }
.scr5 .i-scr::after { left: 3%; right: 3%; top: calc(100% + 10px); height: 20%; border-radius: 6px; background: linear-gradient(180deg, rgba(190, 205, 255, .16), transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); filter: blur(2px); }
/* 6: thin floating glass with scanlines and light bleed */
.scr6 .i-scr { background: repeating-linear-gradient(180deg, rgba(220, 230, 255, .07) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(150, 170, 255, .10), rgba(150, 170, 255, .04));
  border: 1px solid rgba(215, 225, 255, .5); box-shadow: 0 0 0 1px rgba(120, 140, 255, .18), 0 0 26px rgba(150, 170, 255, .38), 0 0 90px rgba(110, 130, 255, .2), inset 0 0 30px rgba(190, 205, 255, .16); }
.scr6 .i-scr::before { left: 0; right: 0; height: 34%; top: -34%; background: linear-gradient(180deg, transparent, rgba(190, 205, 255, .16), transparent); animation: i-scan 7s linear infinite; }
.scr6 .i-scr::after { left: 6%; right: 6%; bottom: -22px; height: 22px; background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(150, 170, 255, .4), transparent 100%); filter: blur(6px); }
.scr6 .i-scr { overflow: hidden; }
@keyframes i-scan { from { top: -34%; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scr6 .i-scr::before { animation: none; } }
@media (max-width: 700px) {
  body.scr4, body.scr5, body.scr6 { --ax: var(--pad); --aw: calc(100vw - 2 * var(--pad)); --ay: 33vh; --ah: 38vh; }
  .scr4 .i-scr, .scr5 .i-scr, .scr6 .i-scr { background-color: rgba(10, 12, 36, .5); }
  .scr4 .i-about, .scr5 .i-about, .scr6 .i-about { width: var(--aw); left: var(--ax); font-size: 7.4vw; padding: 0 20px; }
}

/* a quiet column of film perforations on the right balances the screen (no copy) */
.scr4 .i-perf, .scr5 .i-perf, .scr6 .i-perf { display: block; position: fixed; z-index: 3; right: clamp(24px, 5vw, 84px); top: var(--ay); height: var(--ah); width: 22px; opacity: 0; pointer-events: none; transition: opacity .7s ease;
  background: repeating-linear-gradient(180deg, rgba(205, 218, 255, .2) 0 13px, transparent 13px 28px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); border-radius: 3px; }
@media (max-width: 700px) { .scr4 .i-perf, .scr5 .i-perf, .scr6 .i-perf { display: none; } }

/* ==== ninth pass (11/19): four scenes, one swipe each; G4's hero, grid and white About ==== */
html:has(body.i9) { overflow: hidden; overscroll-behavior: none; }
body.i9 { overflow: hidden; height: 100vh; height: 100dvh; overscroll-behavior: none; }
body.i9 .g-stage { height: 100vh; height: 100dvh; }
/* hero: big serif "Pictures" top-left, "that move" bottom-right; the ribbon runs between them */
.i-head { position: absolute; inset: 0; z-index: 1; margin: 0; font: 400 min(11.4vw, 19.8vh)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); pointer-events: none; }
.i-w1 { position: absolute; left: calc(var(--pad) - .04em); top: 12.5vh; }
.i-w2 { position: absolute; right: var(--pad); top: 60vh; display: flex; white-space: nowrap; }
.i-roll, .i-you, .i-tm { position: relative; display: inline-block; overflow: hidden; padding: .08em .03em .18em 0; margin: -.08em -.03em -.18em 0; vertical-align: top; }
.i-wb { position: absolute; left: 0; top: .08em; }
.i-tm { display: inline-block; }
.i-head .ch { display: inline-block; white-space: pre; }
.i-edge { position: absolute; z-index: 4; bottom: var(--pad); margin: 0; font-size: 13px; opacity: 0; transition: none; }
.i-lead { left: var(--pad); } .i9 .i-hint { right: var(--pad); color: var(--mute); transition: none; }
/* works: G4's centred grid, one group per project (header bar + four 16:9 tiles) */
.i-wz { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.i-wk { --tg: min(1.1vw, 18px); position: relative; width: min(66vw, calc((100dvh - 382px) * 2.37)); margin-top: 5vh; }
.i-eye { margin: 0; font: 400 12px/1 var(--sans); color: var(--mute); letter-spacing: .01em; }
.i-weye { position: absolute; left: 0; bottom: calc(100% + 26px); opacity: 0; }
.i-grp + .i-grp { margin-top: clamp(18px, 3.4vh, 34px); }
.i-bar { display: flex; align-items: baseline; gap: 28px; margin-bottom: 12px; opacity: 0; }
.i-bar .n { font-size: 10px; color: var(--mute); margin-right: -21px; }
.i-bar h2 { margin: 0; min-width: 170px; font: 400 24px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.i-bar p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--mute); }
.i-pill { margin-left: auto; align-self: center; display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 14px; font-size: 12px; font-weight: 500; background: var(--ink); color: #fff; transition: transform .35s var(--ease), opacity .2s ease; }
.i-pill:hover { opacity: .82; } .i-pill:active { transform: scale(.94); }
.i-wz.on .i-pill { pointer-events: auto; }
/* 12/3: the tiles open the stills viewer (no Open button) */
.i-wz.on .i-tile.show { pointer-events: auto; cursor: zoom-in; }
.i-tile { outline-offset: 3px; }   /* no transform on hover: measure() reads the tiles' rects every frame */
.i-tile img { transition: filter .3s ease; }
@media (hover: hover) { .i-wz.on .i-tile.show:hover img { filter: brightness(1.08) contrast(1.04); } }
.i-tile:focus-visible { outline: 2px solid var(--ink); }
/* the stills viewer (12/3): a dark cinema. The still is the screen; rows of seats run up to it; a dim EXIT sign closes it */
.i-lbx { --sw: min(92vw, 84vh, 1100px); position: fixed; inset: 0; z-index: 60; background: #000; color: #f3f3f0; overflow: hidden; opacity: 0; transition: opacity .3s ease; }
.i-lbx.on { opacity: 1; }
.i-lbx:focus { outline: none; }
.i-lbx[hidden] { display: none; }
.lbx-fig { position: absolute; left: 50%; top: max(64px, env(safe-area-inset-top) + 56px, 7vh); width: var(--sw); aspect-ratio: 1376 / 768; margin: 0; transform: translateX(-50%); background: #000; box-shadow: 0 0 calc(var(--sw) * .08) rgba(205, 215, 255, .12); }
.lbx-fig img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: opacity .25s ease; }
.lbx-fig button { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; padding: 0; background: none; cursor: pointer; }
.lbx-p { left: 0; cursor: w-resize !important; } .lbx-nx { right: 0; cursor: e-resize !important; }
.lbx-fig button:focus-visible { outline: 1px solid rgba(243, 243, 240, .5); outline-offset: -6px; }
.lbx-glow { position: absolute; left: 50%; top: 12vh; width: calc(var(--sw) * .8); aspect-ratio: 10 / 7; transform: translateX(-50%); object-fit: cover; filter: blur(90px) saturate(1.3); opacity: .4; pointer-events: none; }
.lbx-spill { position: absolute; left: 50%; bottom: 0; width: calc(var(--sw) * 1.3); height: 48vh; transform: translateX(-50%); background: radial-gradient(ellipse 50% 45% at 50% 0%, rgba(205, 215, 255, .09), transparent 75%); pointer-events: none; }
.lbx-head { position: absolute; left: 50%; width: var(--sw); top: calc(max(64px, env(safe-area-inset-top) + 56px, 7vh) - 38px); transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px; }
.lbx-t { font: 400 24px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.lbx-hint { font-size: 11px; color: #8a8a90; text-align: center; }
.lbx-n { font-size: 12px; color: #a3a3a8; font-variant-numeric: tabular-nums; text-align: right; }
.lbx-seats { position: absolute; inset: 0; pointer-events: none; }
.lbx-row { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start; }
.lbx-row i { flex: none; width: var(--w); height: var(--h); border-radius: calc(var(--w) * .32) calc(var(--w) * .32) calc(var(--w) * .12) calc(var(--w) * .12); background: linear-gradient(180deg, #19191f 0%, #0b0b0e 45%, #030304 100%); box-shadow: inset 0 max(1px, calc(var(--z) * 2px)) 0 rgba(205, 215, 255, var(--lit)); }
.lbx-row b { flex: none; width: var(--a); height: var(--h); display: flex; justify-content: center; align-items: flex-end; }
.lbx-row em { width: max(3px, calc(var(--z) * 5px)); height: max(2px, calc(var(--z) * 3px)); margin-bottom: calc(var(--h) * .35); border-radius: 2px; background: #ffb257; box-shadow: 0 0 calc(var(--z) * 10px) #ff9a2e; }
.lbx-x { position: absolute; right: max(14px, env(safe-area-inset-right)); top: max(10px, env(safe-area-inset-top)); width: 84px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lbx-x span { display: grid; place-items: center; width: 62px; height: 24px; box-sizing: border-box; border: 1px solid #1d1d20; border-radius: 2px; background: linear-gradient(180deg, #0d0d0f, #070708); box-shadow: 0 0 14px rgba(200, 40, 45, .12);
  font: 600 11px/1 var(--sans); letter-spacing: .22em; padding-left: .22em; color: #b8333a; text-shadow: 0 0 5px rgba(220, 50, 55, .55); transition: color .2s ease, text-shadow .2s ease; }
.lbx-x:hover span, .lbx-x:focus-visible span { color: #d8434a; text-shadow: 0 0 7px rgba(230, 60, 65, .75); }
.lbx-x:focus-visible { outline: 1px solid rgba(243, 243, 240, .4); outline-offset: 2px; }
@media (max-width: 700px) { .i-lbx { --sw: 94vw; } .lbx-fig { top: 26vh; } .lbx-head { top: calc(26vh - 34px); } .lbx-t { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .i-lbx, .lbx-fig img, .lbx-x span { transition: none; } }
.i-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tg); }
.i-tile { margin: 0; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden; opacity: 0; }
.i-tile.show { opacity: 1; }
.i-tile img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
/* about: G4's white About (eyebrow + big serif statement), with a light glass contact card over a film still */
.i-ab { position: fixed; inset: 0; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) min(330px, 25vw); align-content: center; align-items: end; column-gap: 6vw; padding: 4vh var(--pad) 0; box-sizing: border-box; visibility: hidden; pointer-events: none; }
.i-ab.on { pointer-events: auto; }
.i-ab-main { font-size: clamp(34px, 5.2vw, 84px); max-width: 12em; }
.i-big { margin: 18px 0 0; font: 400 1em/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.i-cc { position: relative; z-index: 1; grid-column: 2; grid-row: 1; width: min(330px, 25vw); display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 20px; box-sizing: border-box; border-radius: 18px;
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 28px 60px -24px rgba(24, 32, 64, .28), 0 2px 10px rgba(24, 32, 64, .06); }
.cc-photo { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; margin: 0 0 58% -34px; width: 78%; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; }
.cc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-eye { font-size: 12px; color: var(--mute); }
.cc-line { margin-top: 2px; font: 400 32px/1.02 var(--serif); letter-spacing: -.015em; }
.cc-mail { font-size: 14px; }
.cc-btn { align-self: flex-start; margin-top: 12px; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; transition: transform .35s var(--ease), opacity .2s ease; }
.cc-btn:hover { opacity: .85; } .cc-btn:active { transform: scale(.95); }
.cc-links { display: flex; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--mute); }
.cc-links button { color: inherit; } .cc-links button:hover { color: var(--ink); }
.i-veil { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; --sh: 0; }
/* shutter: white blades with a hairline edge close to a 7% slit over the outgoing scene (never a full cover), then open on the new one */
.i-veil::before, .i-veil::after { content: ""; position: absolute; left: 0; right: 0; height: calc((50% - 3.5vh) * var(--sh)); background: #fff; box-shadow: 0 0 0 1px rgba(12, 12, 13, calc(.14 * var(--sh))), 0 0 40px rgba(12, 12, 13, calc(.12 * var(--sh))); }
.i-veil::before { top: 0; } .i-veil::after { bottom: 0; }
@media (max-width: 700px) {
  .i-head { font-size: 17.5vw; }
  .i-w1 { top: 17dvh; } .i-w2 { top: 63dvh; }
  .i-wk { --tg: 8px; width: min(calc(100vw - 2 * var(--pad)), calc((100dvh - 330px) / 6 * 3.556 + 8px)); margin-top: 11vh; }
  .i-weye { bottom: calc(100% + 12px); }
  .i-grp + .i-grp { margin-top: 16px; }
  .i-bar { gap: 12px; margin-bottom: 8px; } .i-bar p { display: none; } .i-bar h2 { min-width: 0; font-size: 21px; } .i-bar .n { margin-right: -6px; }
  .i-grid { grid-template-columns: repeat(2, 1fr); }
  .i-ab { grid-template-columns: 1fr; align-content: center; row-gap: 34px; padding-top: 8vh; }
  .i-ab-main { font-size: 9.6vw; }
  .i-cc, .cc-photo { grid-column: 1; grid-row: 2; }
  .i-cc { width: 100%; }
  .cc-photo { width: 46%; margin: 0 0 0 auto; justify-self: end; align-self: start; transform: translate(-14px, -26px); }
}

/* reference pass (11/19, "the order we build every site in"): About is a white curtain that rises over the grid while the film,
   above it, carries the tiles away; the nav jump is a shutter (see .i-veil); labels take a letter-by-letter colour sweep on hover */
.i-ab { z-index: 2; background: #fff; box-shadow: 0 -28px 60px rgba(12, 12, 13, .07); border-top: 1px solid rgba(12, 12, 13, .05); will-change: transform; }
.sw span { transition: color .22s ease calc(var(--i) * 26ms); }
.i-pill:hover .sw span, .cc-btn:hover .sw span, .i-links button:hover .sw span, .cc-links button:hover .sw span { color: rgb(255, 45, 75); }
.i-pill:hover .sw span, .cc-btn:hover .sw span { color: rgb(255, 120, 140); }
@media (prefers-reduced-motion: reduce) { .sw span { transition: none; } }

/* tenth pass: the drum can be grabbed */
body.i-drum #gl { cursor: grab; }
body.i-grabbing, body.i-grabbing * { cursor: grabbing !important; }

/* 11/19: the locked logo. The drawn e lands, then the finished lockup crossfades in over it (same e size and place) */
.i-logo { position: fixed; z-index: 31; left: 0; top: 0; height: 20px; width: auto; display: block; opacity: 0; pointer-events: none; transition: opacity .5s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.i-ready .i-logo, .still .i-logo { opacity: 1; }
/* the drawn e is the logo's own e (13th pass): the logo fades in ON TOP of it and the drawn e goes once it is covered (a crossfade of two
   identical shapes would dip to 75% ink halfway) */
.i-lock .i-e canvas { transition: filter .6s ease, opacity 0s linear .55s; }
.i-ready .i-lock .i-e canvas, .still .i-lock .i-e canvas { opacity: 0; }
/* only the lockup's e shows (its text is the live wordmark below); 919/4195 of the width is the e, the text starts at 961 */
.i-logo { clip-path: inset(-10% 77.6% -10% -10%); }
.i-logo svg { display: block; height: 100%; width: auto; overflow: visible; }
.i-logo svg g { fill: currentColor; }
.i-logo { color: #0c0c0d; }
.i-night .i-logo { color: #f3f3f0; }

/* "Motion Pictures" = the lockup's text (img/logo/emotion-lockup.svg, Instrument Serif): in lock ems (F, the e box is .68em) it is
   .532em, starts .8311em right of the e box's left and sits on a baseline .6012em below its top (the bottom of the e; the flex row's
   baseline is the e box's bottom, .68em, hence the lift). Same in the nav slot, so the shrink into the corner lands on the same pixels. */
.i-lock .i-wm, .i-slot .i-wm2 { font-size: .532em; letter-spacing: -.01em; margin-left: .3405em; position: relative; top: -.1476em; }
