/* TWEEQIM. One stylesheet, sections marked per page.
   Black like the coming soon page at tweeqim.com, its spaced orange capitals and gold rules, and the gold of MiQ's own work.
   Archivo variable (self-hosted, OFL): wide spaced caps for names and labels, a narrow cut only for project titles. */
@font-face { font-family: Archivo; src: url(/assets/fonts/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; src: url(/assets/fonts/archivo-ext.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: block; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@view-transition { navigation: auto; }

:root {
  --ink: #000; --paper: #efe6d6; --dim: #8f877b; --line: #28221b;
  --orange: #f0a040; --orange-hi: #f6b85e;
  --gold: linear-gradient(115deg, #5f3e12 0%, #b98228 18%, #f3d184 34%, #fff2c6 43%, #d6a04a 55%, #8a5c1c 74%, #c99a45 88%, #6b4815 100%);
  --rule: linear-gradient(90deg, transparent, rgba(240, 160, 64, .9) 30%, rgba(246, 212, 132, 1) 50%, rgba(240, 160, 64, .9) 70%, transparent);
  --pad: clamp(18px, 3.2vw, 52px); --head: 88px; --logo: 80px;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (max-width: 760px) { :root { --head: 78px; --logo: 68px; } }
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 Archivo, system-ui, sans-serif; font-stretch: 100%; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the type */
.lab { margin: 0; font: 600 11px/1.5 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.page-title, .sec-title { margin: 14px 0 0; font: 500 clamp(26px, 3vw, 46px)/1.15 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.page-title::after, .sec-title::after { content: ""; display: block; width: min(340px, 60%); height: 1px; margin-top: 18px; background: var(--rule); background-size: 250% 100%; animation: rulerun 6s var(--ease-io) infinite alternate; }
@keyframes rulerun { from { background-position: 100% 0; } to { background-position: 0 0; } }
.lede { max-width: 58ch; margin: 26px 0 0; color: #c9bfb0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.page { padding: calc(var(--head) + 7vh) var(--pad) 0; }
.page-head { margin-bottom: clamp(36px, 6vh, 70px); }
.sec-head { padding: 0 var(--pad); margin-bottom: 34px; }

/* ---------- header ---------- */
.head { view-transition-name: head; transition: transform .5s var(--ease); position: fixed; z-index: 50; inset: 0 0 auto; height: var(--head); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); pointer-events: none; }
.head::before { content: ""; position: absolute; inset: 0 0 -24px; background: linear-gradient(#000 52%, rgba(0,0,0,0)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.head.solid::before { opacity: .92; }
.head.tuck { transform: translateY(-105%); }
.head > * { pointer-events: auto; position: relative; }
/* the logo fills its box (the video has black margin all round), so the TWEEQIM on it reads at header size */
.brand { display: flex; align-items: center; gap: 8px; height: var(--logo); transition: opacity .5s, transform .6s var(--ease); }
.brand-logo { position: relative; flex: none; width: var(--logo); height: var(--logo); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.brand-vid { position: absolute; left: 50%; top: 50%; width: 122%; height: 122%; max-width: none; transform: translate(-50%, -53%); object-fit: cover; }
.brand .wm { width: 96px; height: 28px; background: var(--paper); -webkit-mask: url(/img/wordmark-mask.webp) left center / contain no-repeat; mask: url(/img/wordmark-mask.webp) left center / contain no-repeat; }
.home:not(.past) .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav a { position: relative; font: 600 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; padding: 10px 0; opacity: .8; transition: opacity .3s, color .3s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 2px; height: 1px; background: var(--rule); transform: scaleX(0); transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: none; }
@media (max-width: 980px) { .nav { display: none; } }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: clamp(100px, 16vh, 180px); padding: 46px var(--pad) 28px; }
.foot::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: var(--rule); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.foot-mark { display: flex; align-items: center; gap: 12px; }
.foot-vid { width: 78px; height: 78px; object-fit: cover; -webkit-mask: radial-gradient(circle, #000 58%, transparent 70%); mask: radial-gradient(circle, #000 58%, transparent 70%); }
.foot-mark b { display: block; font: 600 12px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.foot-mark small { display: block; margin-top: 4px; font: 500 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.foot-nav a { font: 600 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; padding: 14px 0; color: #cfc5b6; }
.foot-nav a:hover { color: var(--orange-hi); }
.foot-mail { text-align: right; }
.foot-mail .lab { color: var(--dim); letter-spacing: .18em; }
.foot-mail a { display: inline-block; margin-top: 6px; font-size: 17px; padding: 8px 0; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.foot-mail a:hover { color: var(--orange-hi); background-size: 100% 1px; }
.foot-fine { margin: 38px 0 0; text-align: center; font: 500 10px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: #5e574e; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; } .foot-mail { text-align: center; } }

/* ---------- HOME: the orbit ---------- */
.orbit { position: relative; height: 170vh; height: 170svh; background: #000; }
.orbit-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --cy: 47%; }
.orbit-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, rgba(246, 165, 57, .12) 0, rgba(246, 165, 57, .035) 22%, transparent 48%); pointer-events: none; }
.rings i { position: absolute; left: 50%; top: var(--cy); width: calc(var(--rx, 300px) * 2); height: calc(var(--ry, 90px) * 2); border: 1px solid rgba(246, 190, 110, .16); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.rings i:nth-child(3) { border-color: rgba(255, 255, 255, .05); }
.orbit-items { position: absolute; inset: 0; }
.oi { position: absolute; left: 0; top: 0; width: var(--w, 120px); will-change: transform, opacity; }
.oi img { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.65)); transition: filter .4s; }
.oi-cap { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; font: 600 10px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-hi); opacity: 0; transition: opacity .3s; pointer-events: none; text-shadow: 0 2px 10px #000; }
.oi:hover img, .oi:focus-visible img { filter: drop-shadow(0 0 18px rgba(246, 165, 57, .55)) drop-shadow(0 14px 22px rgba(0,0,0,.65)); }
.oi:hover .oi-cap, .oi:focus-visible .oi-cap { opacity: 1; }
.core { position: absolute; left: 50%; top: 44%; width: min(46vmin, 460px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 500; border-radius: 50%; will-change: transform; }
.core::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.06), transparent 40%), #000; box-shadow: 0 0 0 1px rgba(246, 190, 110, .18), 0 0 60px 10px #000; }
.core video { position: relative; width: 100%; height: 100%; object-fit: cover; -webkit-mask: radial-gradient(circle, #000 52%, transparent 66%); mask: radial-gradient(circle, #000 52%, transparent 66%); }
.orbit .est { position: absolute; left: 0; right: 0; top: calc(var(--head) + 3vh); margin: 0; text-align: center; font: 500 13px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .38em; text-transform: uppercase; color: var(--orange); z-index: 600; padding-left: .38em; }
.nameplate { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4.5vh, 48px); text-align: center; z-index: 600; pointer-events: none; }
.nameplate h1 { margin: 0; font: 500 clamp(19px, 2.4vw, 34px)/1.2 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .34em; text-transform: uppercase; color: var(--orange); text-shadow: 0 0 30px rgba(0,0,0,.9); padding-left: .34em; }
.nameplate .rule { display: block; width: min(380px, 60vw); height: 1px; margin: 14px auto; background: var(--rule); }
.nameplate p { margin: 0; font: 500 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: #bdb3a4; }
@media (max-width: 700px) { .core { width: 62vw; top: 42%; } .nameplate h1 { font-size: 16px; letter-spacing: .22em; padding-left: .22em; } }

/* ---------- HOME: the wall (gold between the pieces) ---------- */
/* Below the orbit, the home page sits in one of MiQ's design book pages, edge to edge, down to the footer: his orange
   spine down the left (logo and wordmark on top, cut from the book template), the book's bar down the right with their
   names and along the bottom with their credit line, the corner with its watermark. Sizes are the book's own, times --u
   (layer units: spine 199, brown 7, gray bevel 14, bar 80, outer curve 70); the spine runs on to the browser's edge
   (+52, the logo's overhang in the book), so his logo reaches the edge whole. Phones: the right bar is as wide as the
   spine, so the two sides balance. */
.wf { --u: .18px; --sp: calc(251 * var(--u)); --rb: calc(80 * var(--u)); position: relative; z-index: 2; margin-top: -70vh; margin-top: -70svh; box-shadow: 0 -40px 80px 20px #000;
  padding: 0 var(--rb) calc(80 * var(--u)) calc(var(--sp) + 7 * var(--u)); border-radius: 0 0 calc(70 * var(--u)) calc(70 * var(--u));
  background:
    linear-gradient(rgb(132, 75, 24), rgb(132, 75, 24)) var(--sp) 0 / calc(7 * var(--u)) 100% no-repeat,
    linear-gradient(rgb(211, 130, 43), rgb(229, 148, 62)) 0 0 / calc(var(--sp) + 1px) 100% no-repeat,
    linear-gradient(90deg, rgb(229, 149, 60), rgb(204, 121, 35) 70%, rgb(194, 111, 28)) 0 100% / 100% calc(81 * var(--u)) no-repeat,
    linear-gradient(rgb(206, 123, 38), rgb(194, 111, 28)) 100% 0 / calc(var(--rb) + 1px) 100% no-repeat; }
.wf-in { position: relative; z-index: 1; background: #000; border: solid rgb(96, 97, 101); border-width: 0 calc(14 * var(--u)) calc(14 * var(--u)); border-radius: 0 0 calc(38 * var(--u)) calc(38 * var(--u)); }
.wf-in > main { display: flow-root; }
.wf-in .foot { margin-top: clamp(80px, 12vh, 140px); }
.wf-head { position: absolute; z-index: 3; left: 0; top: calc(-237 * var(--u)); width: calc(320 * var(--u)); max-width: none; height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 60 * var(--u)), transparent); mask-image: linear-gradient(#000 calc(100% - 60 * var(--u)), transparent); }
.wf-corner { position: absolute; z-index: 3; left: 0; bottom: 0; width: calc(720 * var(--u)); max-width: none; height: auto; pointer-events: none;
  --fa: linear-gradient(transparent, #000 calc(60 * var(--u))); --fb: linear-gradient(270deg, transparent, #000 calc(60 * var(--u))); --fc: linear-gradient(90deg, transparent calc(52 * var(--u)), #000 calc(100 * var(--u)));
  -webkit-mask-image: var(--fa), var(--fb), var(--fc); -webkit-mask-composite: source-in, source-in; mask-image: var(--fa), var(--fb), var(--fc); mask-composite: intersect; }
.wf-names { position: absolute; z-index: 3; right: 0; top: calc(64 * var(--u)); width: var(--rb); margin: 0; writing-mode: vertical-rl; line-height: var(--rb); text-align: start; white-space: nowrap; pointer-events: none;
  font: 700 calc(60 * var(--u)) Archivo, system-ui, sans-serif; line-height: var(--rb); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: #000; }
.wf-bar { position: absolute; z-index: 3; right: calc(120 * var(--u)); bottom: 0; height: calc(80 * var(--u)); display: flex; align-items: center; white-space: nowrap;
  font: 700 calc(60 * var(--u))/1 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .09em; text-transform: uppercase; color: #000; }
.wf-bar i { font-style: normal; }
@media (min-width: 761px) {
  /* the header logo sits clear of the spine; the credit line in the bar takes the footer's names and email */
  .home .head { padding-left: max(var(--pad), 66px); }
  .wf .foot-mail { display: none; }
  .wf .foot-in { grid-template-columns: auto 1fr; } .wf .foot-nav { justify-content: flex-end; }
}
.wall { position: relative; z-index: 1; padding: 3px 0 0; display: flex; flex-direction: column; gap: 3px; background: var(--gold); }
.wall > .row { position: relative; z-index: 1; }
/* a row stays black (its seams and the line above it too) until its pieces have risen in; then the gold lights up around them */
.wall > .row::before { content: ""; position: absolute; inset: -3px 0 0; z-index: -1; background: #000; opacity: 0; transition: opacity 1.1s var(--ease-io) .45s; pointer-events: none; }
.wall > .row:has(> .tile.rv:not(.in))::before { opacity: 1; transition-duration: 0s; transition-delay: 0s; }
/* the gold between tiles: a screen-sized gradient that holds still while the work scrolls past, with light running across it */
.gold { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.gold i { position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; background: var(--gold); will-change: transform; }
.gold i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 214, .75) 49%, transparent 60%); transform: translateX(-100%); animation: sheen 7s var(--ease-io) infinite; }
@keyframes sheen { 55%, 100% { transform: translateX(100%); } }
.row { display: grid; grid-template-columns: var(--cols); gap: 3px; height: var(--h); min-height: 230px; }
.tile { position: relative; display: block; overflow: hidden; background: radial-gradient(ellipse 68% 62% at 50% 46%, var(--glow), transparent 74%), #050403; isolation: isolate; }
.tile, .tile.rv { transition: opacity .9s var(--ease), translate 1.3s var(--ease), --glow 1.4s var(--ease-io); }
.tile .stage { position: absolute; inset: 7% 7% 17%; translate: 0 calc(var(--sv, 0) * 22px); transition: scale 1.1s var(--ease), transform .8s var(--ease); perspective: 1100px; }
.tile .fl { position: absolute; inset: 0; animation: drift var(--fd, 7s) ease-in-out var(--fdel, 0s) infinite; }
.tile .pc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 18px 28px rgba(0,0,0,.6)); backface-visibility: hidden;
  transform: translateY(26px) scale(.94); transition: opacity .55s var(--ease-io), transform 1s cubic-bezier(.25, 1.2, .45, 1); }
.tile .pc.on { opacity: 1; transform: none; }
.tile .pc.out { opacity: 0; transform: translateY(-22px) scale(1.04); transition: opacity .45s var(--ease-io), transform .7s var(--ease); }
.tile[data-fx="flip"] .pc { transform: rotateY(-84deg) scale(.9); }
.tile[data-fx="flip"] .pc.on { transform: none; }
.tile[data-fx="flip"] .pc.out { transform: rotateY(84deg) scale(.9); }
.tile[data-fx="drop"] .pc { transform: translateY(-46%) rotate(-6deg); }
.tile[data-fx="drop"] .pc.on { transform: none; }
.tile[data-fx="drop"] .pc.out { transform: translateY(40%) rotate(7deg) scale(.9); }
.tile[data-fx="deal"] .pc { transform: translateX(70%) rotate(14deg) scale(.92); }
.tile[data-fx="deal"] .pc.on { transform: none; }
.tile[data-fx="deal"] .pc.out { transform: translateX(-70%) rotate(-12deg) scale(.92); }
.tile:hover .stage { scale: 1.045; }
.tile.focus .stage { scale: 1.04; }
.tile.focus { --glow-k: 1.5; }
.tile .cap { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.tile .cap b { font: 600 clamp(11px, .95vw, 14px)/1.3 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); }
.tile .cap em { font: 600 10px/1.3 Archivo, system-ui, sans-serif; font-style: normal; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 rgba(246, 212, 132, 0); transition: box-shadow .5s var(--ease); pointer-events: none; }
.tile:hover::after { box-shadow: inset 0 0 0 1px rgba(246, 212, 132, .55); }
.wall-end { display: flex; justify-content: center; padding: 40px var(--pad) 0; }
.more { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font: 600 12px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; padding: 10px 0; }
.more::after { content: ""; width: 120px; height: 1px; background: var(--rule); transition: width .6s var(--ease); }
.more:hover { color: var(--orange-hi); } .more:hover::after { width: 220px; }
@media (max-width: 760px) {
  .wf { --u: .075px; --rb: var(--sp); margin-top: -58svh; }
  .wf-names { font-size: calc(96 * var(--u)); letter-spacing: .16em; }
  .wf-bar { display: none; }
  .row { grid-template-columns: 1fr 1fr; height: auto; min-height: 0; }
  .row .tile { aspect-ratio: 1; }
  .row .tile:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .tile .cap { left: 12px; right: 12px; bottom: 10px; }
  .tile .cap b { font-size: 9.5px; letter-spacing: .13em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tile .cap em { font-size: 9px; }
  .tile .stage { inset: 7% 7% 24%; }
  .row .tile:not(:first-child:nth-last-child(odd)) .cap em { display: none; }
  .row .tile:first-child:nth-last-child(odd) .stage { inset: 6% 6% 20%; }
}

/* ---------- client marks (home band, clients page) ---------- */
/* home: "All projects" and the Clients heading on one centre line, like the orbit above */
.clients-band { padding-top: clamp(64px, 9vh, 96px); }
.clients-band .sec-head { text-align: center; }
.clients-band .sec-title::after { margin-left: auto; margin-right: auto; }
.marks-grid { position: relative; margin: 0 var(--pad); display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; padding: 1px; background: var(--gold); }
.marks-grid > .mark { z-index: 1; }
.marks-grid > .mark-fill { position: relative; z-index: 1; background: #000; }
.mark { position: relative; height: 104px; -webkit-tap-highlight-color: transparent; background: #000; --mx: 50%; --my: 50%; display: block; }
.mark i { position: absolute; inset: 24% 20%; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  background: radial-gradient(circle 150px at var(--mx) var(--my), #fff8e2 0, #f6d488 16%, #cf963a 40%, #7e5419 72%, #5f3e12 100%); transition: transform .5s var(--ease), opacity .4s; }
.mark:not(.has) i { opacity: .6; }
.mark.has { cursor: pointer; }
.mark.has:hover, .mark.has:focus-visible, .mark.has.on { z-index: 5; }
.mark.has:hover i, .mark.has.on i { transform: scale(1.1); }
.fan { position: absolute; left: 50%; bottom: calc(100% - 18px); width: 0; height: 0; pointer-events: none; z-index: 30; }
.fan img { position: absolute; left: 0; bottom: 0; width: 128px; max-width: none; height: auto; transform-origin: 50% 120%; opacity: 0;
  transform: translate(-50%, 30px) scale(.6); transition: opacity .35s, transform .6s var(--ease); filter: drop-shadow(0 14px 24px rgba(0,0,0,.7)); }
.fan-cap { position: absolute; left: 0; top: 30px; transform: translateX(-50%); white-space: nowrap; display: none; }
.mark.has:hover .fan img, .mark.has:focus-visible .fan img { opacity: 1; transform: translate(calc(-50% + var(--k) * 92px), -10px) rotate(calc(var(--k) * 9deg)) scale(1); }
@media (max-width: 600px) { .marks-grid { grid-template-columns: repeat(3, 1fr); margin: 0 12px; } .mark { height: 76px; } .fan { display: none; } }

/* clients page: the stage shows the work behind each mark */
.cl-wrap { display: grid; grid-template-columns: minmax(300px, 40%) 1fr; gap: clamp(24px, 3vw, 50px); align-items: start; }
.cl-stage { position: sticky; top: calc(var(--head) + 24px); height: min(72vh, 640px); display: grid; grid-template-rows: 1fr auto; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(246, 165, 57, .1), transparent 70%), #050403; outline: 1px solid var(--line); }
.cl-art { position: relative; overflow: hidden; }
.cl-art img { position: absolute; max-width: 56%; max-height: 62%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); opacity: 0; transform: translate(-50%, -50%) translateY(20px) scale(.95); transition: opacity .6s, transform .9s var(--ease); }
.cl-art img.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.cl-info { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cl-name { margin: 0 0 10px; font: 500 clamp(18px, 1.8vw, 26px)/1.2 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); min-height: 1.2em; }
.cl-links { display: flex; flex-wrap: wrap; gap: 2px 18px; min-height: 22px; }
.cl-links a { font: 600 11px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; color: #cfc5b6; }
.cl-links a:hover { color: var(--orange-hi); }
.clients .marks-grid { margin: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.clients .mark.on { box-shadow: inset 0 0 0 1px var(--orange); }
@media (max-width: 860px) { .cl-wrap { grid-template-columns: 1fr; } .cl-stage { position: relative; top: 0; height: 50svh; } }

/* ---------- WORK: one project ---------- */
.p-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--head) + 3vh) var(--pad) clamp(28px, 6vh, 60px);
  background: radial-gradient(ellipse 60% 55% at 50% 44%, var(--glow), transparent 72%), #000; overflow: hidden; }
.p-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 56px); min-height: 0; }
.p-stage figure { margin: 0; }
.p-lead { height: min(60vh, calc(62vw / var(--ar))); aspect-ratio: var(--ar); max-width: 64vw; position: relative; z-index: 2; animation: rise 1.4s var(--ease) both .1s; }
.p-side { height: min(34vh, calc(24vw / var(--ar))); aspect-ratio: var(--ar); max-width: 24vw; opacity: .5; animation: rise 1.4s var(--ease) both .45s; }
.p-side img { transform: translateY(var(--sy, 0px)); }
.p-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 46px rgba(0,0,0,.6)); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.p-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; padding-top: 22px; position: relative; z-index: 3; }
.p-title .lab { flex-basis: 100%; }
.p-title h1 { margin: 0; font: 800 clamp(38px, 5.6vw, 92px)/.9 Archivo, system-ui, sans-serif; font-stretch: 70%; text-transform: uppercase; letter-spacing: .01em; }
.p-title .sub { margin: 0; font: 600 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 760px) {
  .p-stage { display: block; }
  .p-lead { position: absolute; left: 50%; top: 48%; translate: -50% -50%; max-width: 78vw; height: min(48svh, calc(78vw / var(--ar))); }
  .p-side { position: absolute; top: 48%; max-width: 40vw; height: min(24svh, calc(40vw / var(--ar))); opacity: .6; z-index: 1; }
  .p-l { left: -4vw; translate: 0 -95%; rotate: -10deg; } .p-r { right: -4vw; translate: 0 5%; rotate: 9deg; }
}

.run { position: relative; }
.run-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.track { display: flex; align-items: center; gap: clamp(48px, 6vw, 110px); padding: 0 14vw 0 var(--pad); will-change: transform; height: 100%; }
.piece { position: relative; flex: none; margin: 0; height: var(--h, 62vh); aspect-ratio: var(--ar); max-width: 70vw; }
.piece img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 50px rgba(0,0,0,.6)); }
.note { flex: none; width: clamp(200px, 19vw, 280px); }
.note .n { font: 600 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; color: var(--orange); }
.note p { margin: 14px 0 0; font: 500 clamp(17px, 1.5vw, 23px)/1.3 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.note small { display: block; margin-top: 14px; color: var(--dim); font: 600 10px/1.5 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
.book-page { flex: none; margin: 0; width: min(56vw, 900px); }
.book-page img { width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.book-page figcaption { display: flex; justify-content: space-between; margin-top: 12px; font: 600 10px/1.3 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.book-page figcaption a { color: var(--orange-hi); padding: 6px 0; }
.run-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; height: 1px; background: var(--line); }
.run-bar i { position: absolute; inset: 0; background: var(--rule); transform-origin: left; transform: scaleX(var(--p, 0)); }
.run-count { position: absolute; right: var(--pad); bottom: 34px; font: 600 10px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; color: var(--dim); }

.next { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; min-height: 64vh; margin: 12vh var(--pad) 0; padding: 40px clamp(24px, 4vw, 60px); overflow: hidden;
  background: radial-gradient(ellipse 50% 70% at 72% 50%, var(--glow), transparent 72%), #050403; outline: 1px solid var(--line); }
.next-t b { display: block; margin-top: 16px; font: 800 clamp(34px, 4.6vw, 74px)/.92 Archivo, system-ui, sans-serif; font-stretch: 70%; text-transform: uppercase; transition: color .4s; }
.next-img { display: flex; justify-content: center; height: 48vh; }
.next-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); transition: transform 1.2s var(--ease); }
.next:hover b { color: var(--orange-hi); } .next:hover .next-img img { transform: translateY(-10px) scale(1.03); }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } .next-img { height: 34vh; } }

/* ---------- WORKS ---------- */
.idx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.idx li { border-bottom: 1px solid var(--line); position: relative; }
.idx li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule); transform: scaleX(0); transition: transform .6s var(--ease); }
.idx li:hover::after { transform: none; }
.idx a { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; padding: 18px 4px; }
.idx .num { font: 600 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .16em; color: var(--dim); }
.idx .nm { font: 700 clamp(22px, 2.5vw, 38px)/1 Archivo, system-ui, sans-serif; font-stretch: 78%; text-transform: uppercase; letter-spacing: .02em; transition: color .35s, transform .6s var(--ease); }
.idx .cl { font: 600 10px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); text-align: right; }
.idx a:hover .nm { color: var(--orange-hi); transform: translateX(14px); }
.fanbox { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 40; pointer-events: none; }
.fanbox img { position: absolute; left: 0; top: 0; width: 210px; max-width: none; height: auto; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .3s, transform .6s var(--ease); filter: drop-shadow(0 20px 34px rgba(0,0,0,.7)); }
.fanbox.on img[src] { opacity: 1; }
.fanbox.on img:nth-child(1) { transform: translate(-50%, -50%) translate(-120px, 12px) rotate(-9deg); }
.fanbox.on img:nth-child(2) { transform: translate(-50%, -50%) translate(0, -16px); z-index: 2; }
.fanbox.on img:nth-child(3) { transform: translate(-50%, -50%) translate(120px, 12px) rotate(9deg); }
@media (hover: none) { .fanbox { display: none; } }

/* ---------- SERVICES ---------- */
.svc-wrap { display: grid; grid-template-columns: 1fr minmax(320px, 42%); gap: clamp(30px, 4vw, 70px); align-items: start; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); position: relative; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc-row.on::before { transform: none; }
.svc-row .num { padding-top: 8px; font: 600 11px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .16em; color: var(--dim); }
.svc-row h2 { margin: 0; font: 500 clamp(20px, 2vw, 30px)/1.2 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; transition: color .35s; }
.svc-row.on h2 { color: var(--orange-hi); }
.svc-row .who { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.svc-row .who a { font: 600 10px/1.5 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 8px 0; }
.svc-row .who a:hover { color: var(--orange-hi); }
.svc-thumbs { display: none; }
.svc-stage { position: sticky; top: calc(var(--head) + 30px); height: min(70vh, 620px); background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(246, 165, 57, .1), transparent 72%), #050403; outline: 1px solid var(--line); overflow: hidden; }
.svc-art { position: absolute; inset: 0; }
.svc-art img { position: absolute; left: 50%; top: 50%; max-width: 58%; max-height: 60%; object-fit: contain; filter: drop-shadow(0 20px 34px rgba(0,0,0,.65)); opacity: 0; transform: translate(-50%, -50%) translateY(24px) scale(.94); transition: opacity .55s, transform .9s var(--ease); }
.svc-art img.on { opacity: 1; transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); }


/* ---------- ABOUT ---------- */
.ab-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: end; padding-bottom: clamp(60px, 10vh, 120px); }
.ab-title { margin: 18px 0 0; font: 400 clamp(26px, 2.7vw, 44px)/1.25 Archivo, system-ui, sans-serif; font-stretch: 100%; color: var(--paper); max-width: 24ch; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.4vw, 36px); }
.person { outline: none; }
.person .frame { position: relative; aspect-ratio: 4 / 5; margin-top: 26px; }
.person .frame::before { content: ""; position: absolute; inset: -26px -14px 0; border: 1px solid #3a3229; pointer-events: none; transition: border-color .5s; }
.person:hover .frame::before, .person.play .frame::before, .person:focus-visible .frame::before { border-color: var(--orange); }
.person .still, .person .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .still { transition: opacity .4s; }
.person .reel { position: absolute; inset: 0; background: #050403; opacity: 0; transition: opacity .35s; }
.person .reel img { object-fit: contain; padding: 10%; opacity: 0; filter: drop-shadow(0 14px 24px rgba(0,0,0,.6)); }
.person .reel img.on { opacity: 1; }
.person:hover .reel, .person:focus-visible .reel, .person.play .reel { opacity: 1; }
.person h2 { margin: 18px 0 0; font: 600 12px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; text-align: center; }
.story { border-top: 1px solid var(--line); }
.ch { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: center; min-height: 78vh; padding: clamp(50px, 9vh, 100px) 0; border-bottom: 1px solid var(--line); }
.ch:nth-child(even) .ch-text { order: 2; }
.ch-text .lab span { color: var(--dim); margin-right: 6px; }
.ch-p { margin: 22px 0 0; font: 400 clamp(19px, 1.6vw, 24px)/1.6 Archivo, system-ui, sans-serif; max-width: 36ch; color: #e8dfd1; }
.ch-vis { position: relative; height: clamp(320px, 56vh, 560px); }
.ch-art figure { position: absolute; margin: 0; opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--k) * .14s); }
.ch-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 40px rgba(0,0,0,.65)); }
.ch.in .ch-art figure { opacity: 1; transform: var(--t, none); }
.ch-art figure:nth-child(1) { left: 2%; top: 2%; width: 52%; height: 70%; --t: rotate(-3deg); }
.ch-art figure:nth-child(2) { right: 2%; top: 12%; width: 46%; height: 62%; --t: rotate(3deg); }
.ch-art figure:nth-child(3) { left: 22%; bottom: 0; width: 46%; height: 48%; --t: rotate(-1.5deg); z-index: 2; }
.ch-art figure:nth-child(4) { right: 6%; bottom: 2%; width: 32%; height: 42%; --t: rotate(4deg); z-index: 3; }
.ch-art.n2 figure:nth-child(1) { left: 0; top: 0; width: 62%; height: 100%; --t: none; }
.ch-art.n2 figure:nth-child(2) { right: 0; top: 10%; width: 44%; height: 84%; }
.ch-art.n3 figure:nth-child(1) { left: 0; top: 6%; width: 50%; height: 64%; }
.ch-art.n3 figure:nth-child(2) { right: 0; top: 0; width: 50%; height: 64%; }
.ch-art.n3 figure:nth-child(3) { left: 22%; bottom: 0; width: 56%; height: 50%; }
.ch-photo img { object-fit: cover; }
.ch-logo { position: absolute; inset: 0; display: grid; place-items: center; }
.ch-logo video { width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; -webkit-mask: radial-gradient(circle, #000 52%, transparent 68%); mask: radial-gradient(circle, #000 52%, transparent 68%); }
@media (max-width: 900px) {
  .ab-head { grid-template-columns: 1fr; align-items: start; }
  .people { max-width: 520px; }
  .ch { grid-template-columns: 1fr; min-height: 0; }
  .ch:nth-child(even) .ch-text { order: 0; }
  .ch-vis { height: 80vw; }
}

/* ---------- SHOP: the coming soon page from tweeqim.com ---------- */
.soon { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--head) + 30px) var(--pad) 60px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(246, 165, 57, .1) 0, rgba(246, 165, 57, .025) 20%, transparent 46%), #000; }
.soon-rings { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.soon-rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .055); transform: translate(-50%, -50%); }
.soon-rings i:nth-child(1) { width: 330px; height: 330px; border-color: rgba(246, 190, 110, .12); }
.soon-rings i:nth-child(2) { width: 560px; height: 560px; }
.soon-rings i:nth-child(3) { width: 680px; height: 680px; }
.soon-rings i:nth-child(4) { width: 800px; height: 800px; border-color: rgba(255, 255, 255, .035); }
.soon-rings b { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: orbit var(--t, 40s) linear infinite; animation-delay: var(--d, 0s); }
.soon-rings b::before { content: ""; position: absolute; left: var(--r); top: 0; width: var(--s, 6px); height: var(--s, 6px); margin: calc(var(--s, 6px) / -2); border-radius: 50%; background: var(--c, #f3ebdc); box-shadow: 0 0 10px var(--c, #f3ebdc); }
.soon-rings .d1 { --r: 280px; --t: 46s; --s: 7px; }
.soon-rings .d2 { --r: 340px; --t: 70s; --d: -20s; --s: 5px; --c: var(--orange); }
.soon-rings .d3 { --r: 400px; --t: 90s; --d: -50s; --s: 8px; }
.soon-rings .d4 { --r: 280px; --t: 60s; --d: -33s; --s: 4px; --c: var(--orange); }
.soon-rings .d5 { --r: 340px; --t: 110s; --d: -80s; --s: 6px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.soon .est { position: relative; margin: 0 0 30px; font: 500 14px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .38em; text-transform: uppercase; color: var(--orange); padding-left: .38em; }
.soon-core { position: relative; width: min(300px, 64vw); aspect-ratio: 1; border-radius: 50%; }
.soon-core::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(246, 190, 110, .15), 0 0 70px rgba(246, 165, 57, .12); }
.soon-core video { position: relative; width: 100%; height: 100%; object-fit: cover; -webkit-mask: radial-gradient(circle, #000 54%, transparent 68%); mask: radial-gradient(circle, #000 54%, transparent 68%); }
.soon-name { position: relative; margin: 40px 0 0; font: 500 clamp(20px, 2.6vw, 34px)/1.2 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .34em; text-transform: uppercase; color: var(--orange); padding-left: .34em; }
.soon-rule { position: relative; display: block; width: min(320px, 60vw); height: 1px; margin: 16px 0; background: var(--rule); }
.soon-sub { position: relative; margin: 0; font: 500 13px/1 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: #c4bbae; }
.soon-sub a { padding: 12px 0; display: inline-block; } .soon-sub a:hover { color: var(--orange-hi); }
.soon-mail { position: absolute; right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 40px); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--orange); background: radial-gradient(circle, #14110d, #000); box-shadow: 0 0 0 1px rgba(246, 190, 110, .2), 0 0 0 7px rgba(255, 255, 255, .03); transition: box-shadow .4s, color .3s; }
.soon-mail svg { width: 20px; height: 20px; }
.soon-mail:hover { color: var(--orange-hi); box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(246, 165, 57, .3); }
.shop-page .foot, .nf-page .foot { margin-top: 0; }

/* ---------- CONTACT ---------- */
.contact { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }
.ct-grid { display: grid; grid-template-columns: minmax(240px, 40%) 1fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.ct-logo { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.ct-logo::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(246, 190, 110, .15), 0 0 90px rgba(246, 165, 57, .1); }
.ct-logo video { position: relative; width: 100%; height: 100%; object-fit: cover; -webkit-mask: radial-gradient(circle, #000 54%, transparent 68%); mask: radial-gradient(circle, #000 54%, transparent 68%); }
.ct-title { margin: 22px 0 0; font: inherit; }
.ct-mail { display: inline-block; font: 600 clamp(26px, 3.6vw, 58px)/1.15 Archivo, system-ui, sans-serif; letter-spacing: .01em; background: var(--gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.2s var(--ease); word-break: break-all; padding: 4px 0; }
.ct-mail:hover { background-position: 100% 0; }
.ct-who, .ct-est { margin: 18px 0 0; font: 600 11px/1.6 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: #cfc5b6; }
.ct-est { margin-top: 6px; color: var(--dim); }
.ct-meds { display: flex; justify-content: center; gap: clamp(20px, 5vw, 90px); margin-top: clamp(40px, 8vh, 90px); }
.ct-meds img { width: clamp(84px, 11vw, 170px); animation: float 7s ease-in-out infinite; animation-delay: calc(var(--k) * -2.3s); filter: drop-shadow(0 18px 28px rgba(0,0,0,.6)); }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 760px) { .ct-grid { grid-template-columns: 1fr; text-align: center; } .ct-logo { max-width: 64vw; } }

/* =====================================================================================================
   ALIVE: things settle in as they arrive, pieces float, pieces lag and settle with the scroll, light runs on the gold.
   ===================================================================================================== */
@property --glow { syntax: '<color>'; inherits: true; initial-value: rgba(0, 0, 0, 0); }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 33% { translate: 0 -8px; rotate: -.7deg; } 66% { translate: 0 5px; rotate: .5deg; } }
.rv { opacity: 0; translate: 0 44px; transition: opacity .9s var(--ease), translate 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.rv.in { opacity: 1; translate: 0 0; }
.split .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .06em; }
.split .c { display: inline-block; translate: 0 112%; transition: translate 1.05s cubic-bezier(.2, .9, .15, 1); transition-delay: calc(var(--i) * 26ms + 80ms); }
.split.in .c { translate: 0 0; }
.p-stage figure img, .ch-art figure img, .next-img img, .cl-art img, .svc-art img { animation: drift var(--fd, 8s) ease-in-out var(--fdel, 0s) infinite; }
.p-side.p-r img { --fd: 9.5s; --fdel: -3s; } .p-side.p-l img { --fd: 7.5s; --fdel: -5s; }
.ch-art figure:nth-child(2) img { --fd: 9s; --fdel: -2s; } .ch-art figure:nth-child(3) img { --fd: 7s; --fdel: -4s; } .ch-art figure:nth-child(4) img { --fd: 10s; --fdel: -6s; }
.run-pin { background: radial-gradient(ellipse 62% 58% at 50% 50%, var(--glow), transparent 74%), #000; transition: --glow 1.2s var(--ease-io); }
.nameplate .rule, .soon-rule, .foot::before { background-size: 250% 100%; animation: rulerun 6s var(--ease-io) infinite alternate; }

/* page to page: the page lifts away, the next rises in; the piece you tapped flies into the next page's hero */
::view-transition-old(root) { animation: vt-out .34s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.975); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }
::view-transition-group(art) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-old(art), ::view-transition-new(art) { height: 100%; object-fit: contain; }
.p-lead img { view-transition-name: art; }

/* touch: everything you can press gives a little; the foil runs across the marks on its own */
@property --mx { syntax: '<length-percentage>'; inherits: false; initial-value: 50%; }
@property --my { syntax: '<length-percentage>'; inherits: false; initial-value: 50%; }
@keyframes foil { 0% { --mx: -60%; --my: 10%; } 55%, 100% { --mx: 160%; --my: 90%; } }
@media (hover: none) {
  .tile .stage, .idx a, .next, .svc-row .who a, .sheet-links a { transition-property: scale, transform, translate, opacity, background, color; }
  .tile:active .stage { scale: .96; } .next:active { scale: .98; } .idx a:active { scale: .98; } .mark.has:active i { transform: scale(.9); }
  .mark i { animation: foil 4.2s var(--ease-io) infinite; animation-delay: calc(var(--fx, 0) * 1ms); }
}

/* =====================================================================================================
   PHONES AND TABLETS: the dock and the menu.
   The dock is a flat black bar under a gold line; the line rises into a cut-cornered tab that holds the turning logo
   whole. The logo opens the menu. BOOK: one of MiQ's design book pages, his orange frame cut from the book's own
   template, with an index of the site. WALL: the home wall in small. (?menu=book or ?menu=wall, remembered.)
   ===================================================================================================== */
.dock, .app { display: none; }
@media (max-width: 980px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: calc(82px + env(safe-area-inset-bottom)); padding: 24px 0 env(safe-area-inset-bottom);
    display: grid; grid-template-columns: 1fr 1fr 112px 1fr 1fr; view-transition-name: dock; pointer-events: none; }
  .dock::before, .dock::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: translate .55s var(--ease); }
  .dock::before { background: var(--gold); background-size: 300% 100%; animation: rulerun 7s var(--ease-io) infinite alternate;
    clip-path: polygon(0 24px, calc(50% - 64px) 24px, calc(50% - 42px) 2px, calc(50% + 42px) 2px, calc(50% + 64px) 24px, 100% 24px, 100% 100%, 0 100%); }
  .dock::after { background: #000;
    clip-path: polygon(0 25px, calc(50% - 63.6px) 25px, calc(50% - 41.6px) 3px, calc(50% + 41.6px) 3px, calc(50% + 63.6px) 25px, 100% 25px, 100% 100%, 0 100%); }
  .dk { position: relative; z-index: 1; display: grid; place-items: center; pointer-events: auto; font: 600 9.5px/1 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: #d9cfbf;
    -webkit-tap-highlight-color: transparent; transition: color .25s, translate .55s var(--ease), opacity .3s; }
  .dk:first-child::after, .dk:last-child::before { content: ""; position: absolute; top: 17px; bottom: 17px; width: 1px; background: rgba(246, 190, 110, .2); }
  .dk:first-child::after { right: 0; } .dk:last-child::before { left: 0; }
  .dk[aria-current] { color: var(--orange-hi); background: linear-gradient(var(--orange), var(--orange)) 50% calc(50% + 12px) / 16px 1px no-repeat; }
  .dk:active { color: var(--orange-hi); }
  .dk-logo { position: absolute; z-index: 2; left: 50%; top: 5px; width: 84px; height: 76px; translate: -50% 0; overflow: hidden; pointer-events: auto; -webkit-tap-highlight-color: transparent;
    transition: transform .8s var(--ease), scale .2s; }
  .dk-logo.snap { transition: none; }
  .dk-logo video { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; max-width: none; translate: -50% -61%; object-fit: cover; }
  /* "Menu" under the logo, in the dock's own type, so the logo reads as the fifth button */
  .dk-lab { position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 8px); translate: -50% 0; pointer-events: none; padding-left: .2em;
    font: 600 8.5px/1 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); transition: translate .55s var(--ease), opacity .3s, color .3s; }
  .menu-book.app-open .dk-lab { translate: -50% 140%; opacity: 0; }
  .menu-wall.app-open .dk-lab { opacity: .3; }
  .dk-logo:active { scale: .94; }
  a.dk:nth-of-type(3) { grid-column: 4; } a.dk:nth-of-type(4) { grid-column: 5; }

  .app { display: block; position: fixed; inset: 0; z-index: 65; visibility: hidden; overflow: hidden; overscroll-behavior: contain; background: #000; opacity: 0;
    transition: opacity .3s .25s, visibility 0s .6s; }
  .app-open .app { visibility: visible; opacity: 1; transition: opacity .25s; }
  .app-open { overflow: hidden; }
  .menu-book .mw, .menu-wall .bm { display: none; }
  .menu-wall.app-open .dk { opacity: .3; }

  /* ---------- BOOK ---------- */
  /* the frame is laid out from the book's own measurements: spine 100 units wide, bar 37, at k = .36 */
  .bm { position: absolute; inset: 0; --sp: 14px; --sw: 36px; --bb: calc(env(safe-area-inset-bottom) + 10px); }
  .menu-book.app-open .dock::before, .menu-book.app-open .dock::after, .menu-book.app-open .dk { translate: 0 120%; }
  .bm-spine { position: absolute; left: var(--sp); width: var(--sw); top: calc(env(safe-area-inset-top) + 74px); bottom: calc(var(--bb) + 114px);
    background: linear-gradient(rgb(212, 129, 44), rgb(229, 146, 62)); box-shadow: 1px 0 0 rgb(170, 110, 52), 4px 0 0 #5c5f66;
    transform-origin: 50% 100%; scale: 1 0; transition: scale .65s var(--ease); -webkit-tap-highlight-color: transparent; }
  .bm-spine img { position: absolute; left: -2.88px; top: 0; width: 45.4px; max-width: none; height: auto; opacity: 0; transition: opacity .4s .45s; }
  .bm-corner { position: absolute; left: calc(var(--sp) - 2.88px); bottom: calc(var(--bb) - 2.2px); width: 164.2px; max-width: none; height: auto; opacity: 0; transition: opacity .3s;
    -webkit-mask-image: linear-gradient(transparent, #000 5px); mask-image: linear-gradient(transparent, #000 5px); }
  .bm-bar { position: absolute; left: 58px; right: 0; bottom: var(--bb); height: 16.9px; margin: 0; padding: 3px 12px 0 0; text-align: right; white-space: nowrap; overflow: hidden;
    background: linear-gradient(#5e6167, #5e6167) 112px 0 / 100% 3px no-repeat, linear-gradient(90deg, rgb(229, 146, 61), rgb(204, 119, 34)) 112px 3px / 100% 13.9px no-repeat;
    clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease) .15s; }
  .bm-bar { font: 700 7px/13.9px Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .09em; text-transform: uppercase; color: #000; }
  .bm-bar i { font-style: normal; }
  .bm-page { position: absolute; left: calc(var(--sp) + var(--sw) + 22px); right: 16px; top: calc(env(safe-area-inset-top) + 20px); bottom: calc(var(--bb) + 34px); display: flex; flex-direction: column; }
  .bm-top { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px; font: 600 8.5px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; white-space: nowrap; text-transform: uppercase; color: var(--orange); opacity: 0; transition: opacity .4s; }
  /* 00 Home: the way back, in the index's own type */
  .bm-home { display: inline-flex; align-items: baseline; gap: 12px; padding: 6px 18px 6px 0; -webkit-tap-highlight-color: transparent; }
  .bm-home-t { font: 800 clamp(20px, 6.2vw, 28px)/1 Archivo, system-ui, sans-serif; font-stretch: 70%; letter-spacing: .01em; text-transform: uppercase; color: var(--paper); transition: color .25s, translate .3s var(--ease); }
  .bm-home[aria-current] .bm-home-t, .bm-home:active .bm-home-t { color: var(--orange-hi); }
  .bm-home:active .bm-home-t { translate: 6px 0; }
  .bm-ix { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #2c261e; }
  .bx { flex: 1; min-height: 58px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 32%; align-content: center; column-gap: 12px; border-bottom: 1px solid #2c261e; -webkit-tap-highlight-color: transparent;
    opacity: 0; translate: -22px 0; clip-path: inset(0 100% 0 0); transition: opacity .2s, translate .2s, clip-path .2s; }
  .bx-n { grid-column: 1; font: 600 9px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; color: var(--orange); }
  .bx-t { grid-column: 1; margin-top: 4px; font: 800 clamp(28px, 9.4vw, 46px)/.95 Archivo, system-ui, sans-serif; font-stretch: 70%; text-transform: uppercase; color: var(--paper); transition: color .25s, translate .3s var(--ease); }
  .bx-s { grid-column: 1; margin-top: 5px; font: 600 8.5px/1.3 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bx-art { grid-column: 2; grid-row: 1 / span 3; position: relative; align-self: stretch; container-type: size; margin: 6px 0; }
  .bx[aria-current] .bx-t { color: var(--orange-hi); }
  .bx:active .bx-t, .bx.go .bx-t { color: var(--orange-hi); translate: 6px 0; }
  /* the first-visit peek: the menu rises a little from behind the dock, then drops back (site.js, PEEK) */
  .peek .app { visibility: visible; opacity: 1; pointer-events: none; }
  .peek .bm-spine { scale: 1 1; transition: none; }
  .peek .bm-spine img, .peek .bm-top { opacity: 1; transition: none; }
  .peek .bx { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); transition: none; }
  .peek .dk-logo { transform: translateY(-7px); }
  .peek .dk-lab { color: var(--orange-hi); }
  .menu-book.app-open .bm-spine { scale: 1 1; }
  .menu-book.app-open .bm-spine img, .menu-book.app-open .bm-corner, .menu-book.app-open .bm-top { opacity: 1; }
  .menu-book.app-open .bm-bar { clip-path: inset(0 0 0 0); }
  .menu-book.app-open .bx { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); transition: opacity .4s, translate .75s var(--ease), clip-path .85s var(--ease); transition-delay: calc(var(--i) * 55ms + 260ms); }

  /* ---------- WALL ---------- */
  .mw { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 12px) 10px calc(env(safe-area-inset-bottom) + 92px); }
  .mw-top { display: flex; justify-content: space-between; margin: 0 4px 8px; font: 600 9.5px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; }
  .mw-top a { color: var(--orange); padding: 10px 0; } .mw-top span { color: var(--dim); padding: 10px 0; }
  .mw-grid { flex: 1; min-height: 0; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr 1fr 1fr .62fr; gap: 2px; padding: 2px; background: var(--gold); }
  .mw-grid::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 214, .75) 49%, transparent 60%); transform: translateX(-100%); animation: sheen 7s var(--ease-io) infinite; }
  .mp { position: relative; z-index: 1; overflow: hidden; -webkit-tap-highlight-color: transparent; --glow: rgba(246, 165, 57, .14);
    background: radial-gradient(ellipse 70% 64% at 50% 42%, var(--glow), transparent 76%), #050403; transition: --glow 1s var(--ease-io);
    transform: perspective(700px) rotateX(-90deg); transform-origin: 50% 0; backface-visibility: hidden; }
  .mp-works, .mp-build, .mp-contact { grid-column: span 2; }
  .mp-art { position: absolute; inset: 7% 6% 27%; container-type: size; }
  .mp-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
  .mp-cap b { font: 600 10px/1.2 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); }
  .mp-cap em { font: 600 8.5px/1.2 Archivo, system-ui, sans-serif; font-style: normal; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mp-contact .mp-art { inset: 10% auto 10% 3%; width: 26%; }
  .mp-contact .mp-cap { left: 32%; top: 50%; bottom: auto; translate: 0 -50%; }
  .mp-contact .mp-cap em { font: 600 clamp(13px, 4vw, 17px)/1.2 Archivo, system-ui, sans-serif; letter-spacing: .02em; text-transform: none; background: var(--gold); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rulerun 4s var(--ease-io) infinite alternate; }
  .mp[aria-current]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--orange); }
  .mp:active .mp-cap b, .mp.go .mp-cap b { color: var(--orange-hi); }
  .menu-wall.app-open .mp { transform: none; transition: transform .75s cubic-bezier(.2, 1.15, .3, 1); transition-delay: calc(var(--i) * 70ms + 60ms); }

  /* ---------- what moves inside the index and the panels: whole pieces only ---------- */
  .deck { position: absolute; inset: 4%; }
  .deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(30%) rotate(8deg) scale(.8); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6));
    transition: opacity .45s, transform .85s cubic-bezier(.2, 1.3, .4, 1); }
  .deck img.on { opacity: 1; transform: none; }
  .deck img.out { opacity: 0; transform: translateY(-24%) rotate(-7deg) scale(.9); transition: opacity .4s, transform .6s var(--ease); }
  .mb { position: absolute; left: 50%; top: 50%; width: min(100cqw, 150cqh); aspect-ratio: 5100 / 3300; translate: -50% -50%; }
  .mb img { position: absolute; display: block; max-width: none; }
  .mb-frame { inset: 0; width: 100%; height: 100%; }
  .mb-l { height: auto; opacity: 0; transform: translateY(-34cqh) scale(1.08); transition: opacity .35s, transform .75s cubic-bezier(.2, 1.25, .4, 1); transition-delay: calc(var(--i) * 130ms); }
  .mb-l.flat { transform: none; }
  .mb.go .mb-l { opacity: var(--op, 1); transform: none; }
  .duo { position: absolute; inset: 0; }
  .duo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.1s var(--ease-io); }
  .duo img:last-child { object-fit: contain; padding: 4%; opacity: 0; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
  .duo.b img:first-child { opacity: 0; } .duo.b img:last-child { opacity: 1; }
  .foil i { position: absolute; inset: 14%; opacity: 0; transform: scale(.7) rotate(-8deg); transition: opacity .5s, transform .8s cubic-bezier(.2, 1.3, .4, 1);
    -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
    background: linear-gradient(115deg, #6b4815 20%, #cf963a 36%, #fff2c6 46%, #f3d184 52%, #b98228 64%, #5f3e12 82%); background-size: 320% 100%; animation: foilrun 2.8s linear infinite; }
  .foil i.on { opacity: 1; transform: none; }
  @keyframes foilrun { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .mini-soon { position: absolute; inset: 0; }
  .mini-soon i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(246, 190, 110, .22); width: 62cqmin; height: 62cqmin; }
  .mini-soon i + i { width: 96cqmin; height: 96cqmin; border-color: rgba(255, 255, 255, .08); }
  .mini-soon b { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: orbit 5s linear infinite; }
  .mini-soon b::before { content: ""; position: absolute; left: 31cqmin; top: 0; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #f3ebdc; }
  .mini-soon b + b { animation-duration: 8s; animation-direction: reverse; }
  .mini-soon b + b::before { left: 48cqmin; background: var(--orange); }
  .med img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: drift 6s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }

  .foot { padding-bottom: 20px; }
  .foot-nav { display: none; }
}
@media (max-width: 370px) {
  .dk { font-size: 8.5px; letter-spacing: .1em; font-stretch: 100%; }
  .dock { grid-template-columns: 1fr 1fr 104px 1fr 1fr; }
  .bm-bar i { display: none; }
  .bx-s { letter-spacing: .1em; }
}
@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
  .bm-ix { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; column-gap: 28px; }
  .bx { min-height: 0; } .bx-t { font-size: 26px; }
  .mw { padding-bottom: calc(env(safe-area-inset-bottom) + 86px); }
  .mw-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr .5fr; }
  .mp-works, .mp-build { grid-column: span 2; } .mp-contact { grid-column: span 4; }
}

/* =====================================================================================================
   PHONES, page by page
   ===================================================================================================== */
/* the bottom sheet: tap a gold mark on a phone and its work comes up from the bottom */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .55s; }
.sheet.open { visibility: visible; transition: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .64); opacity: 0; transition: opacity .45s; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet-card { position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: 88svh; overflow: auto; overscroll-behavior: contain; border-radius: 30px; padding: 10px 22px 26px;
  background: radial-gradient(ellipse 90% 50% at 50% 26%, var(--glow), transparent 72%), #0c0b09; --glow: rgba(246, 165, 57, .16); transition: translate .55s cubic-bezier(.2, 1, .3, 1), --glow 1s;
  box-shadow: inset 0 0 0 1px rgba(246, 190, 110, .2), 0 -20px 60px rgba(0, 0, 0, .7); translate: 0 115%; }
.sheet.open .sheet-card { translate: 0 var(--drag, 0px); }
.sheet.drag .sheet-card { transition: none; }
.sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: #463c30; margin: 2px auto 6px; }
.sheet-art { position: relative; height: 34svh; margin: 0 -10px; }
.sheet-art img { position: absolute; max-width: 56%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6)); opacity: 0; transform: translate(-50%, -50%) translateY(30px) scale(.9); transition: opacity .5s, transform .8s cubic-bezier(.2, 1.25, .4, 1); }
.sheet-art img.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.sheet-name { margin: 6px 0 14px; text-align: center; font: 500 17px/1.2 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.sheet-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 2px; border-top: 1px solid var(--line); font: 700 21px/1.05 Archivo, system-ui, sans-serif; font-stretch: 78%; text-transform: uppercase; }
.sheet-links a::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--orange); border-width: 1.5px 1.5px 0 0; rotate: 45deg; }
.sheet-links a:active { color: var(--orange-hi); }

.ix-stage { display: none; }
@media (max-width: 760px) {
  /* home: the orbit hands over to the wall without a dark gap; the tile in the middle of the screen is lit */
  .orbit { height: 150svh; }
  .nameplate { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tile .cap { transition: translate .6s var(--ease); }
  .tile.focus .cap b { color: var(--orange-hi); }
  .tile.focus .cap { translate: 0 -3px; }

  /* works: a held stage at the top fans out the project you are passing */
  .works-page .page-head { margin-bottom: 18px; }
  .ix-stage { display: block; position: sticky; top: var(--head); z-index: 3; height: 38svh; margin: 0 calc(var(--pad) * -1);
    background: radial-gradient(ellipse 62% 70% at 50% 54%, var(--glow), transparent 74%), #000; --glow: rgba(246, 165, 57, .2); transition: --glow 1s var(--ease-io), top .5s var(--ease); }
  .tucked .ix-stage { top: 0; }
  .ix-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px; background: linear-gradient(#000, transparent); pointer-events: none; }
  .ix-art { position: absolute; inset: 6% 0 12%; }
  .ix-art img { position: absolute; max-width: 46%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .65)); opacity: 0; transform: translate(-50%, -50%) translateY(34px) rotate(calc(var(--r, 0deg) * 2)) scale(.86); transition: opacity .45s, transform .8s cubic-bezier(.2, 1.25, .4, 1); }
  .ix-art img.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
  .ix-num { position: absolute; left: var(--pad); bottom: 8px; margin: 0; font: 600 10px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .22em; color: var(--dim); }
  .ix-num b { color: var(--orange); font-weight: 600; }
  .idx { padding-bottom: 46svh; border-top: 0; }
  .idx a { grid-template-columns: 30px 1fr; gap: 4px 10px; padding: 13px 0; }
  .idx .num { grid-row: 1 / span 2; padding-top: 6px; transition: color .3s; }
  .idx .cl { grid-column: 2; text-align: left; }
  .idx .nm { font-size: 25px; transition: color .3s, translate .5s var(--ease); }
  .idx li.on .nm { color: var(--orange-hi); translate: 8px 0; }
  .idx li.on .num { color: var(--orange); }
  .idx li.on::after { transform: none; }

  /* services: each service is a card; the next one slides up over it and the one underneath sinks back */
  .svc-wrap { display: block; } .svc-stage { display: none; }
  .svc { padding-bottom: 8svh; }
  .svc-row { position: sticky; top: calc(var(--head) + 6px + var(--k, 0) * 7px); display: flex; flex-direction: column; min-height: calc(100svh - var(--head) - 118px - env(safe-area-inset-bottom)); margin-bottom: 18px; padding: 22px 20px 20px; border: 0 !important; border-radius: 26px; transform-origin: 50% 0;
    background: radial-gradient(ellipse 80% 55% at 50% 66%, rgba(246, 165, 57, .13), transparent 72%), #0c0b09; box-shadow: inset 0 0 0 1px rgba(246, 190, 110, .16), 0 -18px 40px rgba(0, 0, 0, .75); }
  .svc-row::before { display: none; }
  .svc-row .num { display: block; padding: 0 0 10px; color: var(--orange); }
  .svc-row h2 { font-size: 22px; color: var(--paper); }
  .svc-body { flex: 1; display: flex; flex-direction: column; }
  .svc-row .who { order: 2; margin-top: 4px; }
  .svc-row.on h2 { color: var(--paper); }
  .svc-thumbs { order: 1; position: relative; display: block; flex: 1; min-height: 30svh; margin: 12px -8px 6px; }
  .svc-thumbs img { position: absolute; top: 8%; height: 84%; width: 44%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .65)); animation: drift 8s ease-in-out infinite; }
  .svc-thumbs a:nth-child(1) img { left: 0; transform: rotate(-8deg); animation-delay: -2s; } .svc-thumbs a:nth-child(2) img { left: 24%; width: 52%; top: 2%; z-index: 2; animation-duration: 9s; } .svc-thumbs a:nth-child(3) img { right: 0; transform: rotate(8deg); animation-duration: 7s; animation-delay: -4s; }
  .svc-thumbs a:only-child img { left: 12%; width: 76%; }

  /* about: the story reads down a gold line */
  .story { padding-left: 20px; }
  .story-line { left: 2px; }
  .ch { padding: 46px 0; }
}
.story { position: relative; }
.story-line { position: absolute; left: calc(var(--pad) * -.5); top: 0; bottom: 0; width: 1px; background: var(--line); }
.story-line i { position: absolute; inset: 0; background: linear-gradient(var(--orange), #f6d488); transform-origin: top; transform: scaleY(var(--p, 0)); }
.story-dot { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #f6d488; box-shadow: 0 0 12px var(--orange); translate: 0 var(--y, 0px); }

/* one project on phones: the run holds the screen and steps through the pieces; the light changes with each one */
@media (max-width: 900px) {
  .run { height: calc(var(--steps, 1) * 72svh + 100svh); }
  .run-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: block; -webkit-tap-highlight-color: transparent; }
  .track { position: absolute; inset: 0; padding: 0; transform: none !important; display: block; height: 100%; }
  .note { display: none; }
  .piece, .book-page { position: absolute; left: 50%; top: 53%; margin: 0; height: auto !important; max-width: none; translate: -50% -50%; opacity: 0; scale: .82; rotate: 7deg;
    transition: opacity .45s var(--ease-io), scale .9s cubic-bezier(.2, 1.2, .4, 1), rotate .9s cubic-bezier(.2, 1.2, .4, 1), translate .9s var(--ease); }
  .piece { width: min(86vw, calc(54svh * var(--ar))); aspect-ratio: var(--ar); }
  .book-page { width: 92vw; }
  .piece.on, .book-page.on { opacity: 1; scale: 1; rotate: 0deg; }
  .piece.past, .book-page.past { opacity: 0; scale: 1.1; rotate: -5deg; translate: -50% -66%; }
  .piece.on img { animation: drift 7s ease-in-out infinite; }
  .run-cap { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--head) + 4px); z-index: 3; transition: top .5s var(--ease); pointer-events: none; }
  .tucked .run-cap { top: 16px; }
  .run-segs { display: flex; gap: 3px; height: 2px; }
  .run-segs i { flex: 1; background: rgba(255, 255, 255, .14); border-radius: 1px; overflow: hidden; }
  .run-segs i::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #f6d488); transform-origin: left; transform: scaleX(var(--f, 0)); }
  .run-cap p { margin: 14px 0 0; font: 500 15px/1.3 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
  .run-cap small { display: block; margin-top: 6px; color: var(--dim); font: 600 9.5px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
  .run-bar { display: none; }
  .run-count { bottom: calc(98px + env(safe-area-inset-bottom)); right: auto; left: var(--pad); }
  .run-hint { position: absolute; right: var(--pad); bottom: calc(86px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(246, 190, 110, .3); display: grid; place-items: center; z-index: 3; }
  .run-hint::before { content: ""; width: 9px; height: 9px; border: solid var(--orange); border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; animation: nudge 1.8s var(--ease-io) infinite; }
  @keyframes nudge { 50% { translate: 0 3px; } }
}
@media (min-width: 901px) { .run-cap, .run-hint { display: none; } }

/* =====================================================================================================
   CUES: the controls you are meant to press (Build's autoplay, a project's next piece, the full-screen viewer) are
   bars from MiQ's book: book orange, a grey bevel along the top, black spaced capitals, one corner cut.
   ===================================================================================================== */
.cue { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 3px 20px 0 16px; overflow: hidden;
  font: 700 10.5px/1 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: #000; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(#5e6167, #5e6167) 0 0 / 100% 3px no-repeat, linear-gradient(90deg, rgb(231, 150, 64), rgb(208, 124, 38));
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%); transition: filter .25s, translate .2s, opacity .3s; }
.cue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 230, .55) 48%, transparent 60%); transform: translateX(-110%); pointer-events: none; }
.cue:hover { filter: brightness(1.08); }
.cue:active { translate: 0 1px; filter: brightness(.95); }
.cue > :not(.fill) { position: relative; z-index: 1; }
.cue .fill { position: absolute; left: 0; right: 0; top: 3px; bottom: 0; background: rgba(0, 0, 0, .17); transform-origin: left; transform: scaleX(var(--f, 0)); pointer-events: none; }
.cue .cue-n { font-weight: 600; letter-spacing: .14em; opacity: .72; }
.cue .chev { width: 9px; height: 9px; border: solid #000; border-width: 2px 2px 0 0; rotate: 45deg; margin: 0 2px 0 -2px; animation: nudge-x 1.6s var(--ease-io) infinite; }
@keyframes nudge-x { 50% { translate: 3px -3px; } }
/* calling for attention: light runs along the bar */
.cue.call::after { animation: cuecall 2.4s var(--ease-io) infinite; }
@keyframes cuecall { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }

/* the run's next and back: desktop bottom right, phones above the dock */
.run-nav { position: absolute; right: var(--pad); bottom: 22px; z-index: 6; display: flex; gap: 6px; }
.run-nav .cue-back { padding: 3px 18px 0; clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px); }
.run-nav .cue-back .chev { rotate: -135deg; animation: none; margin: 0 -2px 0 2px; }
.run-nav .cue-back[disabled] { opacity: .3; pointer-events: none; }
.run-next { min-width: 172px; justify-content: space-between; }
.run-next.end .cue-l { letter-spacing: .16em; }
@media (min-width: 901px) { .run-count { display: none; } .run-bar { right: calc(var(--pad) + 300px); } }
@media (max-width: 900px) {
  .run-hint { display: none !important; }
  .run-nav { bottom: calc(80px + env(safe-area-inset-bottom)); right: var(--pad); }
  .run-count { display: none; }
  .run-nav .cue { height: 44px; }
  .run-next { min-width: 150px; }
}

/* project pages: every piece opens full screen */
.p-stage img, .track .piece img, .track .book-page img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 95; visibility: hidden; opacity: 0; background: #000; touch-action: none; overscroll-behavior: contain;
  transition: opacity .35s var(--ease-io), visibility 0s .35s; }
.lb.open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease-io); }
.lb-stage { position: absolute; inset: 70px 90px 104px; }
.lb-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.lb-img.go { transition: transform .55s var(--ease); }
.lb-img.swap { transition: opacity .2s; opacity: 0; }
.lb-cap { position: absolute; left: var(--pad); bottom: 30px; margin: 0; max-width: calc(100% - 2 * var(--pad) - 330px); }
.lb-cap b { display: block; font: 500 15px/1.3 Archivo, system-ui, sans-serif; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.lb-cap small { display: block; margin-top: 6px; color: var(--dim); font: 600 9.5px/1.4 Archivo, system-ui, sans-serif; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
.lb-close { position: absolute; top: 16px; right: var(--pad); }
.lb-close .x { position: relative; width: 12px; height: 12px; }
.lb-close .x::before, .lb-close .x::after { content: ""; position: absolute; left: -1px; top: 5px; width: 14px; height: 2px; background: #000; rotate: 45deg; }
.lb-close .x::after { rotate: -45deg; }
.lb-nav { position: absolute; right: var(--pad); bottom: 22px; display: flex; gap: 6px; }
.lb-nav .cue-back { padding: 3px 18px 0; clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px); }
.lb-nav .cue-back .chev { rotate: -135deg; animation: none; margin: 0 -2px 0 2px; }
.lb-nav .lb-next { min-width: 150px; justify-content: space-between; }
@media (max-width: 760px) {
  .lb-stage { inset: 68px 10px 150px; }
  .lb-cap { left: var(--pad); right: var(--pad); bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; }
  .lb-cap b { font-size: 13px; }
  .lb-nav { left: var(--pad); right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); }
  .lb-nav .lb-next { flex: 1; }
}

/* links around floating pieces and logos */
.ch-art figure > a, .ch-photo > a { display: block; width: 100%; height: 100%; }
.logo-home { display: block; width: 100%; height: 100%; }
.ch-logo .logo-home { display: grid; place-items: center; }
.person .frame { display: block; }
.person .frame:focus-visible::before { border-color: var(--orange); }
.ct-meds a { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .rv, .split .c { opacity: 1; translate: none; }
}
.lb-open { overflow: hidden; }
