/* =========================================================
   Yzerr — one-pager · dark gray & white
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #141414;
  --panel: #262626;
  --panel-2: #1c1c1c;
  --ink:   #f2f2f2;
  --mute:  #8a8a8a;   /* 5.5:1 on --bg */
  --line:  #2c2c2c;
  --side:  clamp(300px, 34vw, 640px);
  --pad:   clamp(16px, 1.8vw, 32px);
  --ease:  cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --sans:  'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --anton: 'Anton', Impact, sans-serif;
  --play:  'Playfair Display', Georgia, serif;
  --unb:   'Unbounded', 'Arial Black', sans-serif;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  display: inline-block;
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

/* fonts for slide titles */
.t-anton { font-family: var(--anton); font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.t-play  { font-family: var(--play); font-style: italic; font-weight: 900; letter-spacing: -0.02em; }
.t-unb   { font-family: var(--unb); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }

/* =========================================================
   Placeholder media
========================================================= */
.ph { position: relative; overflow: hidden; background: var(--ph, #2a2a2a); }
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__label {
  position: absolute; right: 14px; top: 12px;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(242, 242, 242, .5);
}
.is-light .ph__label { color: rgba(20, 20, 20, .5); }
.ph:has(> img, > video) .ph__label { display: none; }

/* vertical 9:16 media inside a landscape frame */
.ph--vertical { background: #0e0e0e; }
.ph--vertical .ph__bg {
  filter: blur(40px) brightness(.35) saturate(1.2);
  transform: scale(1.25);
}
.ph__portrait {
  position: absolute;
  top: 7%; bottom: 7%; right: 9%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ph, #2a2a2a);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  outline: 1px solid rgba(242, 242, 242, .08);
}
.ph__portrait .ph__label { right: 12px; top: 12px; }
.ph__portrait > img, .ph__portrait > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* stacked vertical videos: cards on top of each other, front one plays */
.ph__stack {
  position: absolute; top: 5%; bottom: 14%; right: 13%;
  aspect-ratio: 9 / 16;
  z-index: 1;
}
.ph__stack .ph__card {
  inset: 0; top: 0; bottom: 0; right: 0;
  cursor: pointer;
  transition: transform .8s cubic-bezier(.3, 1.25, .5, 1), filter .6s var(--ease), box-shadow .6s;
}
.ph__stack .ph__card.is-front { z-index: 2; transform: none; }
.ph__stack .ph__card.is-back  { z-index: 1; transform: translate(20%, -6%) scale(.92); filter: brightness(.45); }
.ph__stack .ph__card.is-back:hover { filter: brightness(.7); transform: translate(24%, -7%) scale(.92); }
.js .slide.is-current .ph__stack .ph__card { animation: none; }
.ph__dots {
  position: absolute; left: 0; right: 0; top: calc(100% + clamp(8px, 1.6vh, 16px));
  display: flex; justify-content: center; gap: 4px;
}
.ph__dots button {
  width: 26px; height: 26px; padding: 8px;          /* small square, comfortable hit area */
  background: rgba(242, 242, 242, .28); background-clip: content-box;
  transition: background-color .3s;
}
.ph__dots button[aria-current] { background-color: var(--ink); }
.ph__dots button:hover { background-color: rgba(242, 242, 242, .6); }
.ph__portrait:has(> img, > video) .ph__label { display: none; }
.js .slide.is-current .ph__portrait { animation: portrait-in 1.2s var(--ease) .25s both; }
@keyframes portrait-in { from { transform: translateY(14%) rotate(2deg); opacity: 0; } }
.tile .ph__portrait { top: 8%; bottom: 8%; right: 8%; border-radius: 6px; }
.tile .ph__portrait .ph__label { display: none; }

/* framed: the whole image floats in the frame (banners, screens with their own type) */
.ph--contain { background: #0e0e0e; }
.ph--contain .ph__bg { filter: blur(40px) brightness(.45) saturate(1.2); transform: scale(1.25); }
.slide .ph--contain > img:not(.ph__bg), .slide .ph--contain > video:not(.ph__bg),
.tile .ph--contain > img:not(.ph__bg), .tile .ph--contain > video:not(.ph__bg) { object-fit: contain; scale: 1; }
.ph--framed { background: #0e0e0e; }
.ph--framed .ph__bg { filter: blur(40px) brightness(.35) saturate(1.2); transform: scale(1.25); }
.ph__framed {
  position: absolute; left: 50%; top: 56%;
  width: 84%;
  transform: translate(-50%, -50%);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75);
  outline: 1px solid rgba(242, 242, 242, .08);
}
.ph__framed > img, .ph__framed > video { display: block; width: 100%; height: auto; }
.js .slide.is-current .ph__framed { animation: framed-in 1.2s var(--ease) .25s both; }
@keyframes framed-in { from { opacity: 0; transform: translate(-50%, -42%) scale(.96); } }
/* title on top of real media: a soft shade behind it so white type always reads */
.slide.cap-top .slide__cap { top: clamp(16px, 2.4vh, 28px); bottom: auto; right: 62%; }   /* stays left of a centred logo */
.slide.title-top:has(.ph > img, .ph > video)::before,
.slide.cap-top:has(.ph > img, .ph > video)::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 3;
  background: linear-gradient(rgba(10, 10, 10, .72), rgba(10, 10, 10, 0));
  pointer-events: none;
}
.slide.title-top .slide__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.slide.title-top .slide__title,
.slide:has(.ph--framed) .slide__title { top: calc(clamp(18px, 5%, 44px) + .45em); font-size: clamp(2rem, 4.2vw, 5.4rem); }
.tile .ph__framed { width: 86%; top: 50%; border-radius: 4px; }

/* =========================================================
   Left panel
========================================================= */
.side {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) + 10px) var(--pad) var(--pad);
  min-height: 0;
}
.side__name { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; margin-top: -10px; }
.side__cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 20px;
  border-radius: 6px;
  background: var(--panel);
  font-size: 1.05rem;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.side__cta::before {                           /* white fill wipes up on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.side__cta:hover, .side__cta:focus-visible { color: var(--bg); }
.side__cta:hover::before, .side__cta:focus-visible::before { transform: none; }
.side__cta:hover .dot, .side__cta:focus-visible .dot { background: var(--bg); }
/* drawn arrow: the ↗ character turns into an emoji on iOS */
.arrow { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.side__cta-arrow { display: inline-block; transition: transform .5s var(--ease); }
.side__cta:hover .side__cta-arrow { transform: translate(3px, -3px) rotate(45deg); }

/* ---------- focus-ring nav ---------- */
.wheel {
  position: relative;
  height: 360px;
  margin-top: auto;
  margin-bottom: clamp(32px, 9vh, 110px);
  display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px);
  --R: 120px;          /* drum radius */
  --step: 30deg;       /* angle between items */
}
.wheel__mark {
  flex: none;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--unb);
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1;
}
.logo__yz { font-weight: 800; letter-spacing: -0.06em; line-height: .8; }
.logo__studio {
  font-weight: 200;
  font-size: .36em;
  letter-spacing: .02em;
  line-height: 1;
  margin: .3em 0 0 .04em;
}
.wheel__line {
  flex: none;
  width: clamp(28px, 3.6vw, 64px); height: 1px;
  background: var(--ink);
  transform-origin: left;
}
.wheel__line.draw { animation: draw .8s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } }

.wheel__drum {
  position: relative;
  flex: 1; height: 100%;
  perspective: 900px;
  min-width: 0;
}
.wheel__list {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.wheel__list.spin-in { animation: spin-in 1.6s var(--ease) both; }
@keyframes spin-in { from { transform: rotateX(-160deg); opacity: 0; } 30% { opacity: 1; } }
.wheel__list li {
  position: absolute; left: 0; top: 50%;
  height: 48px; margin-top: -24px;
  transform: translateZ(calc(var(--R) * -1)) rotateX(var(--a, 0deg)) translateZ(var(--R));
  opacity: var(--o, 1);
  filter: blur(var(--b, 0px));
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(.3, 1.35, .5, 1), opacity .6s var(--ease), filter .6s var(--ease);
  white-space: nowrap;
}
/* the 3D list plane would swallow clicks — only the buttons take the pointer */
.wheel__list { pointer-events: none; }
.wheel__list button { pointer-events: auto; }
.wheel__list button {
  height: 48px;
  display: flex; align-items: center; gap: 12px;
  color: var(--mute);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  transition: color .4s;
}
.wheel__no {
  font-size: .68rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s, transform .5s var(--ease);
}
.wheel__txt { display: inline-block; transform-origin: left center; transition: transform .7s var(--ease), letter-spacing .7s var(--ease); }
.wheel__list button:hover { color: var(--ink); }
.wheel__list button:hover .wheel__txt { transform: translateX(6px); }
.wheel__list .is-active button { color: var(--ink); }
.wheel__list .is-active .wheel__no { opacity: .6; transform: none; }
.wheel__list .is-active .wheel__txt {
  transform: scale(1.5);
  font-weight: 500;
  letter-spacing: -0.02em;
  animation: rack .9s var(--ease) both;
}
@keyframes rack { from { filter: blur(6px); opacity: .3; } }

.wheel__ruler {
  position: relative; flex: none;
  width: 22px; height: 100%;
  overflow: hidden;
}
/* ticks sit on a cylinder: JS places each one by its angle */
.wheel__ruler > div { position: absolute; inset: 0; }
.wheel__ruler > div span {
  position: absolute; right: 0; top: 50%;
  height: 1px; width: 8px;
  background: var(--mute);
  transform-origin: right center;
  will-change: transform, opacity;
}
.wheel__ruler > div span.major { width: 16px; background: #b5b5b5; }
.wheel__ruler > i {
  position: absolute; left: 0; top: 50%;
  width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 5px solid var(--ink);
  translate: 0 -50%;
}
.wheel__pill { display: none; }

/* =========================================================
   Stage
========================================================= */
.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: 100svh;
}
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--pad) var(--pad) 0 0;
  height: clamp(84px, 11.8vh, 128px);
  align-items: flex-start;
}
.toggle { display: flex; gap: 4px; }
.toggle button {
  width: 48px; height: 48px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--mute);
  transition: background-color .3s, color .3s;
}
.toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.toggle .is-on { background: var(--panel); color: var(--ink); }
.toggle button:hover { color: var(--ink); }
.info-btn {
  background: var(--panel);
  padding: 0 40px; height: 48px; border-radius: 6px;
  font-size: 1.05rem;
  transition: background-color .3s;
}
.info-btn:hover { background: #333; }
.bar__right { display: flex; gap: 8px; align-items: center; }
.bar__cta { display: none; }

/* ---------- viewer ---------- */
.viewer {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
  padding-bottom: clamp(64px, 9vh, 110px);
  container: viewer / size;                     /* lets the 16:9 frame fit the height */
}
.slides {
  position: relative;
  aspect-ratio: 16 / 9;                          /* 16:9 media fills it edge to edge */
  width: min(100%, (100cqh - 64px) * 16 / 9);    /* 64px = counter row below */
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: var(--panel-2);
  cursor: grab;
}
.slide {
  position: absolute; inset: 0;
  visibility: hidden;
}
.slide.is-current, .slide.is-leaving, .slide.is-peek { visibility: visible; }
.slide { z-index: 1; }
.slide.is-current { z-index: 2; }
.slide.is-peek { z-index: 3; }
.slide.is-peek .slide__title, .slide.is-peek .slide__cap { opacity: 0; }
.slides { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slide .slide__title, .slide .slide__cap { will-change: transform; }
.slide .ph { position: absolute; inset: 0; }

.slide__title {
  position: absolute; left: clamp(20px, 2vw, 36px); right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: clamp(2.4rem, 5.6vw, 7.5rem);
  line-height: .9;
  color: var(--ink);
  pointer-events: none;
}
.slide__title .ch { display: inline-block; white-space: pre; }
.slide__title .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.slide__title.t-play { font-size: clamp(2.8rem, 6.6vw, 8.6rem); }
.slide__title.t-anton { font-size: clamp(3rem, 7.4vw, 10rem); }
.is-light .slide__title, .is-light .slide__cap { color: #141414; }
.slide__cap {
  position: absolute; left: clamp(20px, 2vw, 36px); right: clamp(20px, 2vw, 36px); bottom: clamp(16px, 2.4vh, 28px);
  z-index: 3;
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  font-size: .82rem;
  color: rgba(242, 242, 242, .82);
}
.slide__cap span + span { opacity: .6; }
.slide__role { opacity: .45 !important; }
.slide.no-title .slide__title { display: none; }
.slide__more {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; margin-left: 4px;
  border-radius: 6px;
  background: rgba(242, 242, 242, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-size: inherit;
  opacity: 1 !important;
  transition: background-color .3s, color .3s;
}
.slide__more span { font-size: 1.1em; line-height: 1; transition: transform .4s var(--ease); }
.slide__more:hover { background: var(--ink); color: var(--bg); }
.slide__more:hover span { transform: rotate(90deg); }
.is-light .slide__more { background: rgba(20, 20, 20, .1); color: #141414; }
.is-light .slide__more:hover { background: #141414; color: var(--ink); }
.project__meta { color: var(--mute); font-size: .9rem; }
.project__note { color: var(--mute); font-size: .85rem; }
.project__note:empty { display: none; }   /* media brings its own titles */

/* hover the frame: the title steps back so the work itself is visible */
.slide__title { transition: opacity .6s var(--ease); }
.slide.title-top::before { transition: opacity .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .slides:hover .slide__title { opacity: .12; }
  .slides:hover .slide.title-top::before { opacity: 0; }
}

/* transitions */
.js .slide.is-current .ph { animation: wipe-in 1.1s var(--ease-io) both; }
.js .slide.is-current .ph > * { animation: settle 1.6s var(--ease) both; }
.js .slide.is-leaving .ph { animation: push-out 1.1s var(--ease-io) both; }
.js .slide.is-current .ch { animation: rise 1s var(--ease) both; animation-delay: calc(.35s + var(--i) * .025s); }
.js .slide.is-current .slide__cap { animation: fade 1s var(--ease) .7s both; }
.js .slide.is-leaving .slide__title, .js .slide.is-leaving .slide__cap { opacity: 0; transition: opacity .3s; }
.js .back .slide.is-current .ph { animation-name: wipe-in-back; }
.js .slide.from-drag .ph { animation: none; }

@keyframes wipe-in      { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes wipe-in-back { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes push-out     { to { transform: scale(.92); opacity: .3; } }
@keyframes settle       { from { transform: scale(1.12); } to { transform: none; } }
@keyframes rise         { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade         { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* slow drift on the current frame so it never sits still */
.slide.is-current .ph { will-change: transform; }

.viewer__foot {
  display: flex; align-items: center; gap: 20px;
  padding: 18px var(--pad) 0 0;
  color: var(--mute);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.progress { flex: 1; max-width: 360px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.arrows { display: flex; gap: 4px; margin-left: auto; margin-right: clamp(150px, 15vw, 240px); }
.arrows button {
  width: 44px; height: 44px; border-radius: 6px;
  color: var(--mute); font-size: 1.1rem;
  transition: background-color .3s, color .3s;
}
.arrows button:hover { background: var(--panel); color: var(--ink); }

.clock {
  position: absolute; right: var(--pad); bottom: var(--pad);
  display: flex; align-items: center; gap: 12px;
  color: var(--mute); font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- grid view ---------- */
.grid {
  overflow-y: auto;
  padding: 0 var(--pad) clamp(80px, 10vh, 120px) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--panel) transparent;
}
.tile {
  position: relative; display: block; text-align: left;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  animation: tile-in .8s var(--ease) both;
  animation-delay: calc(var(--i) * .05s);
}
.tile .ph { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.tile:hover .ph { transform: scale(1.06); }
.tile__name {
  position: absolute; left: 14px; bottom: 10px; z-index: 2;
  font-size: clamp(1.1rem, 1.7vw, 1.8rem); line-height: 1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .4);
}
.tile.is-light .tile__name { color: #141414; text-shadow: 0 1px 12px rgba(255, 255, 255, .6); }
@keyframes tile-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.slide:has(.ph--vertical) .slide__cap { right: calc(9% + 32%); }
@container viewer (aspect-ratio > 1.62) { .slides { border-radius: 10px; } }

/* close: white fill wipes up on hover, the cross turns a quarter */
.info__close {
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), transform .2s;
}
.info__close::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.info__close:hover,
.info__close:focus-visible,
.info__close.is-pressed { color: var(--bg); }
.info__close:hover::before,
.info__close:focus-visible::before,
.info__close.is-pressed::before { transform: none; transition-duration: .3s; }
.info__close .x {
  display: none; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.info__close:hover .x,
.info__close.is-pressed .x { transform: rotate(90deg); }
.info__close:active, .info__close.is-pressed { transform: scale(.92); }

/* ---------- background space (canvas) ---------- */
.depth {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.side, .stage { position: relative; z-index: 1; }

/* ---------- depth: layers follow the mouse at different distances ---------- */
:root { --mx: 0; --my: 0; }
.slides {
  transform: perspective(1600px) rotateY(calc(var(--mx) * -2.2deg)) rotateX(calc(var(--my) * 1.6deg));
  transform-origin: 30% 50%;
}
.slide .ph > img, .slide .ph > video, .slide .ph > .ph__label {   /* far */
  translate: calc(var(--mx) * -18px) calc(var(--my) * -12px);
}
.slide .ph > img, .slide .ph > video { scale: 1.06; }
.slide .ph > .ph__bg { translate: calc(var(--mx) * -34px) calc(var(--my) * -22px); scale: 1.3; }
.slide .ph__portrait { translate: calc(var(--mx) * -10px) calc(var(--my) * -8px); }   /* middle */
.slide .ph__framed { translate: calc(var(--mx) * -10px) calc(var(--my) * -8px); }
.slide__title { translate: calc(var(--mx) * 30px) calc(var(--my) * 18px); }           /* near */
.slide__cap { translate: calc(var(--mx) * 12px) calc(var(--my) * 8px); }
.wheel__drum { transform: rotateY(calc(var(--mx) * 10deg)) rotateX(calc(var(--my) * -8deg)); transform-style: preserve-3d; }
.wheel__mark { translate: calc(var(--mx) * 5px) calc(var(--my) * 4px); }

/* ---------- tap to view (touch screens only) ---------- */
.tapview { display: none; }
@media (hover: none) and (pointer: coarse) {
  .tapview {
    position: absolute; z-index: 4; right: 12px; top: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px 0 10px; border-radius: 6px;
    background: rgba(242, 242, 242, .92); color: var(--bg);
    font-size: .75rem; font-weight: 500;
    pointer-events: none;                        /* the whole frame is the tap target */
  }
  .tapview svg { width: 12px; height: 12px; fill: currentColor; }
  .slide:not(.is-current) .tapview { opacity: 0; }
  .slide:has(.ph--vertical) .tapview { right: auto; left: 12px; }   /* keep upright videos uncovered */
}

/* ---------- lightbox (phones & tablets) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(8, 8, 8, .96);
  animation: fade .35s var(--ease) both;
}
.lightbox__stage {
  height: 100%;
  display: grid; place-items: center;
  padding: 16px 16px 92px;
}
.lightbox__stage video {
  max-height: 100%; max-width: 100%;          /* scale to fit, never crop */
  border-radius: 12px;
  animation: lightbox-in .6s var(--ease) both;
}
@keyframes lightbox-in { from { transform: scale(.9) translateY(16px); opacity: 0; } }
.lightbox .lightbox__close {
  position: fixed; z-index: 50;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; padding: 0; margin: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.lightbox .lightbox__close .x { display: block; }
.lightbox .lightbox__close .close__txt { display: none; }

/* =========================================================
   Info
========================================================= */
.info {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .4s var(--ease) both;
}
.info__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: var(--panel-2);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
  animation: slide-in .7s var(--ease) both;
}
@keyframes slide-in { from { transform: translateX(100%); } }
.info__close {
  align-self: flex-end;
  background: var(--panel); height: 44px; padding: 0 22px; border-radius: 6px;
}
.info__title { font-family: var(--unb); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: .95; letter-spacing: -0.04em; text-transform: uppercase; }
.info__title em { font-family: var(--play); font-weight: 900; text-transform: none; letter-spacing: -0.02em; }
.info__lede { font-size: 1.1rem; color: #cfcfcf; max-width: 36ch; }
.info__list { display: grid; border-top: 1px solid var(--line); }
.info__list div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info__list dt { color: var(--mute); }
.info__cta { align-self: stretch; justify-content: space-between; height: 60px; padding: 0 24px; margin-top: auto; flex: none; }
.info__services { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }

/* contact buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 6px;
  background: var(--panel); color: var(--ink);
  font-size: 1.05rem;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--fill { background: var(--ink); color: var(--bg); }
.btn--fill::before { background: #d4d4d4; }
.btn--fill span { display: inline-block; transition: transform .5s var(--ease); }
.btn--fill:hover span { transform: translate(3px, -3px) rotate(45deg); }

/* footer line */
.info__foot {
  margin-top: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--mute); font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.info__foot span:last-child { margin-left: auto; }

/* staggered entrance */
.info__panel > [style*="--n"] { animation: info-in .8s var(--ease) both; animation-delay: calc(.18s + var(--n) * .07s); }
@keyframes info-in { from { opacity: 0; transform: translateY(18px); } }

/* =========================================================
   Mobile / tablet
========================================================= */
@media (max-width: 900px) {
  body { display: flex; flex-direction: column; min-height: 100svh; overflow: auto; height: auto; }
  .side { padding: 14px var(--pad) 0; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 6px; }
  .side__name { margin-top: 0; }
  .side > .side__cta { display: none; }           /* lives next to Info on phones */
  .bar__cta { display: inline-flex; height: 44px; padding: 0 14px; gap: 8px; font-size: .9rem; }
  .info-btn { height: 44px; padding: 0 20px; font-size: .95rem; }
  .toggle button { width: 44px; height: 44px; }
  .wheel { order: 3; grid-column: 1 / -1; height: auto; margin: 0 calc(var(--pad) * -1); padding: 8px var(--pad); gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .wheel__mark { display: none; }          /* "Yzerr studio" above is the logo on phones */
  .wheel__line, .wheel__ruler, .wheel__no { display: none; }
  .wheel__drum { perspective: none; height: auto; flex: none; transform: none !important; transform-style: flat; }
  .wheel__list { position: relative; z-index: 1; display: flex; gap: 2px; transform: none !important; animation: none !important; }
  .wheel__list li { position: relative; top: 0; margin: 0; transform: none !important; opacity: 1 !important; filter: none !important; z-index: 1; }
  .wheel__list button { height: 40px; padding: 0 14px; font-size: .95rem; }
  .wheel__list .is-active .wheel__txt { transform: none; animation: none; font-weight: 400; }
  .wheel__pill {
    display: block; position: absolute; top: 0; left: 0; height: 40px;
    width: var(--pw, 0px); transform: translateX(var(--px, 0px));
    background: var(--panel); border-radius: 6px;
    transition: transform .55s cubic-bezier(.3, 1.35, .5, 1), width .55s var(--ease);
  }
  .stage { height: auto; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad) calc(96px + env(safe-area-inset-bottom)); }
  /* buttons live in a bar at the bottom: the thumb zone */
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: auto; align-items: center;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 20, 20, .82);
    -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid rgba(242, 242, 242, .08);
    animation: bar-in .6s var(--ease) .2s both;
  }
  @keyframes bar-in { from { transform: translateY(100%); } }
  .viewer { padding-top: 14px; }
  .viewer { padding-bottom: 0; }
  .viewer { container: none; }
  .slides { border-radius: 10px; width: 100%; }
  .viewer__foot { padding-right: 0; }
  .arrows { margin-right: 0; }
  .grid { grid-template-columns: 1fr 1fr; padding: 0 0 24px; overflow: visible; }
  .clock { position: static; justify-content: flex-end; padding-top: 18px; font-size: .9rem; }
  .slide__title { font-size: clamp(1.8rem, 9vw, 4rem); }
  .slide__title.t-play { font-size: clamp(2.3rem, 12.5vw, 4.6rem); }
  .slide__title.t-anton { font-size: clamp(2.6rem, 14vw, 5.4rem); }
  .slide__cap { font-size: .72rem; }
  .slide__role { display: none; }
  .slide.cap-top .slide__cap { right: 100px; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
  .slide.cap-top .slide__more { height: 24px; padding: 0 8px; margin-left: 0; }
  .slide.cap-top .slide__cap > span:nth-child(2) { display: none; }   /* year/type is in the About panel */
  .ph__framed { width: 92%; top: 52%; }
  .slide.title-top .slide__title,
  .slide:has(.ph--framed) .slide__title { font-size: clamp(1.8rem, 9vw, 3rem); }
  .ph__portrait { right: 12px; translate: none; top: 6%; bottom: 6%; border-radius: 8px; }
  .slide:has(.ph--vertical) .slide__cap { right: 124px; }   /* keep the caption beside the upright video */
  .slide:has(.ph--vertical) .slide__title { top: 46%; right: 124px; font-size: 9.5vw !important; }
  .ph__stack { right: 30px; top: 7%; bottom: 19%; }
  .ph__dots { top: calc(100% + 2px); }
  .ph__dots button { width: 22px; height: 22px; padding: 7px; }
  .tile .ph__portrait { left: auto; right: 8%; margin: 0; }

  /* Info: close button in the thumb zone */
  .info__foot span:last-child { margin-left: 0; }
  .info__close {
    position: fixed; z-index: 50;
    right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
    width: 52px; height: 52px; padding: 0; margin: 0;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--panel); color: var(--ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    outline: 1px solid rgba(242, 242, 242, .1);
    flex: none;
  }
  .info__close .x { display: block; }
  .info__close .close__txt { display: none; }
  .info__panel { padding-top: 44px; padding-bottom: 28px; gap: 40px; }
  .info__foot { padding-right: 72px; }                       /* room for the floating close button */
  .info__title { font-size: 13.5vw; line-height: .9; }
  .info__title em { display: block; font-size: 1.18em; line-height: .85; margin: .04em 0 .02em; }   /* SCREENS, / scenes / & STILLS. */
  .info__title br { display: none; }
}

/* =========================================================
   Reduced motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
