/* =========================================================
   Video portfolio — "gallery wall" browsing, "lights off" watching
   Type: Anybody (condensed display) · Geist (text)
   ========================================================= */

:root {
  --bg: #d9d8d4;
  --tile: #c8c7c2;
  --ink: #0e0e0d;
  --mute: #6f6e69;
  --line: rgba(14, 14, 13, 0.16);
  --accent: #ff3d1f;
  --live: #1fae5b;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --pad: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}
body.theme-dark {
  --bg: #0a0a09;
  --tile: #171715;
  --ink: #ecebe6;
  --mute: #85847e;
  --line: rgba(236, 235, 230, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: 1px; }
.mute { color: var(--mute); }

/* ---------- Top ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: max(18px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 14px max(var(--pad), env(safe-area-inset-left));
  transition: background .4s;
}
.brand {
  font-family: var(--display); font-weight: 800; font-stretch: 72%;
  font-size: clamp(20px, 1.8vw, 28px); text-transform: uppercase; letter-spacing: .005em; line-height: 1;
}
.top__nav { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; }
.link { position: relative; font-size: 14px; line-height: 1; padding: 6px 0; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.link:hover::after, .link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Modes ---------- */
body.mode-reel { overflow: hidden; height: 100svh; }
.index { display: none; }
body.mode-index .index { display: block; }
body.mode-index .reel { opacity: 0; visibility: hidden; pointer-events: none; }
body.mode-index .top, body.mode-index .bar {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   REEL — videos on the inside of a cylinder
   ========================================================= */
.reel { position: fixed; inset: 0; transition: opacity .6s, visibility .6s; }
.reel__stage {
  position: absolute; inset: 0; overflow: hidden;
  perspective: var(--persp, 1400px);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.reel__stage.is-dragging { cursor: grabbing; }
.reel__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.tile {
  position: absolute; left: 0; top: 0;
  width: var(--w); height: var(--h);
  margin: calc(var(--h) * -0.5) 0 0 calc(var(--w) * -0.5);
  background: var(--tile); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tile.is-off { visibility: hidden; }
.tile > img, .tile > video, .tile .ba-layer video, .tile .ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile video { opacity: 0; transition: opacity .6s; }
.tile.is-live video { opacity: 1; }
.tile__dim { position: absolute; inset: 0; background: var(--bg); opacity: .32; transition: opacity .6s; pointer-events: none; z-index: 2; }
.tile.is-active .tile__dim { opacity: 0; }
.tile__tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font-size: 11px; letter-spacing: .04em; color: #fff;
  padding: 4px 8px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
.tile.is-active .tile__tag { opacity: 1; }
.tile__play {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255,255,255,.92); color: #0e0e0d;
  display: grid; place-items: center; font-size: 15px; padding-left: 3px;
  opacity: 0; transform: scale(.8); transition: opacity .35s, transform .5s var(--ease);
}
.tile.is-active:hover .tile__play { opacity: 1; transform: none; }

/* caption under the reel */
.reel__caption {
  position: absolute; left: max(var(--pad), env(safe-area-inset-left)); right: 30%;
  bottom: calc(var(--bar-h, 56px) + 6px);
  pointer-events: none;
}
.reel__kicker { font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.reel__title {
  font-family: var(--display); font-weight: 800; font-stretch: 58%;
  text-transform: uppercase; line-height: .84; letter-spacing: 0;
  font-size: clamp(40px, 6.6vw, 124px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-top: .04em;
}
.reel__title span { display: inline-block; }
.reel__title span.out { animation: titleOut .28s var(--ease-io) forwards; }
.reel__title span.in { animation: titleIn .6s var(--ease) both; }
@keyframes titleOut { to { transform: translateY(-40%); opacity: 0; } }
@keyframes titleIn { from { transform: translateY(45%); opacity: 0; } }
.reel__meta { font-size: 13px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.reel__meta .res { color: var(--accent); }

.reel__side {
  position: absolute; right: max(var(--pad), env(safe-area-inset-right)); bottom: calc(var(--bar-h, 56px) + 10px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; pointer-events: none;
}
.reel__count { font-family: var(--display); font-weight: 700; font-stretch: 62%; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.reel__hint { font-size: 12px; color: var(--mute); line-height: 1.35; }

/* ---------- Bottom bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 14px max(var(--pad), env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
}
.cats { display: flex; gap: clamp(14px, 1.8vw, 28px); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.cats::-webkit-scrollbar { display: none; }
.cat { position: relative; flex: none; font-size: 14px; color: var(--mute); padding: 4px 0; white-space: nowrap; transition: color .3s; }
.cat sup { font-size: 9px; margin-left: 3px; font-variant-numeric: tabular-nums; }
.cat:hover, .cat.is-active { color: var(--ink); }
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.cat.is-active::after { transform: scaleX(1); }
.formats { display: flex; gap: 2px; flex: none; }
.fmt { font-size: 13px; color: var(--mute); padding: 5px 9px; border-radius: 100px; white-space: nowrap; transition: color .3s, background .3s, opacity .3s; }
.fmt:hover:not(:disabled) { color: var(--ink); }
.fmt.is-active { background: var(--ink); color: var(--bg); }
.fmt:disabled { opacity: .3; cursor: not-allowed; }

/* =========================================================
   INDEX — grid with captions under each frame
   ========================================================= */
.index { padding: calc(70px + env(safe-area-inset-top)) var(--pad) calc(var(--bar-h, 56px) + 50px); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(28px, 3vw, 44px) clamp(10px, 1.1vw, 18px); }
.card { cursor: pointer; opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.card.is-in { opacity: 1; transform: none; }
.card.is-hidden { display: none; }
.card--landscape { grid-column: span 3; }
.card__media { position: relative; overflow: hidden; background: var(--tile); aspect-ratio: 9 / 16; }
.card--landscape .card__media { aspect-ratio: 16 / 9; }
.media-scale { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.media-scale > img, .media-scale > video, .card .ba-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media video { opacity: 0; transition: opacity .5s; }
.card.is-playing video { opacity: 1; }
@media (hover: hover) { .card:hover .media-scale { transform: scale(1.035); } }
.card__fmt { position: absolute; left: 8px; top: 8px; z-index: 3; font-size: 10px; letter-spacing: .04em; color: #fff; padding: 3px 7px; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); }
.card__cap { padding-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.card__title { font-size: 14px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__dur { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.card__meta { grid-column: 1 / -1; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta .res { color: var(--accent); }
.empty { display: none; padding: 80px 0; text-align: center; color: var(--mute); }
.empty.is-shown { display: block; }

@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card--landscape { grid-column: 1 / -1; } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Placeholder frame (until real videos exist) ---------- */
.ph {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 55% at var(--x1, 35%) var(--y1, 30%), hsla(var(--h), 30%, 72%, .9), transparent 70%),
    radial-gradient(60% 50% at var(--x2, 70%) var(--y2, 75%), hsla(calc(var(--h) + 30), 26%, 34%, .9), transparent 70%),
    linear-gradient(170deg, hsl(var(--h), 14%, 56%), hsl(calc(var(--h) + 20), 16%, 30%));
}
.ph--flat { filter: saturate(.15) contrast(.7) brightness(1.12); }
.ph__label {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: 10px;
  font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.75);
}

/* ---------- Before / after (cards & tiles) ---------- */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer--after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 1.5px; background: #fff; z-index: 2; box-shadow: 0 0 10px rgba(0,0,0,.4); }
.ba-sweep { animation: baSweep 3.6s var(--ease-io) infinite alternate; }
@keyframes baSweep { from { --split: 20%; } to { --split: 80%; } }

/* =========================================================
   INFO panel
   ========================================================= */
.infopanel {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.infopanel.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.infopanel__top {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 14px; background: var(--bg);
}
.infopanel__body { padding: clamp(40px, 9vh, 110px) var(--pad) 80px; max-width: 1600px; }
.bio { font-size: clamp(26px, 3.3vw, 54px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 400; max-width: 24ch; }
.avail { margin-top: 26px; font-size: 14px; }
.cols { display: flex; gap: 40px; margin-top: clamp(60px, 10vh, 120px); padding-top: 22px; border-top: 1px solid var(--line); }
.col { flex: 1 1 0; min-width: 0; }
.col:first-child { flex-grow: 1.5; }
.col__h { font-size: 12px; font-weight: 400; color: var(--mute); margin-bottom: 18px; }
.services { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.services dt { font-weight: 500; }
.services dd { color: var(--mute); }
.plain { list-style: none; display: grid; gap: 6px; }
.plain a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bigmail {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--display); font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(26px, 2.7vw, 46px); line-height: .92; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease);
}
.bigmail:hover { background-size: 100% 2px; }
.col .mute { margin-top: 18px; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat__v { font-family: var(--display); font-weight: 800; font-stretch: 60%; font-size: clamp(56px, 7vw, 120px); line-height: .85; }
.stat__l { color: var(--mute); margin-top: 8px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 70px; }
.quote { padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.quote blockquote { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; }
.quote figcaption { font-size: 13px; color: var(--mute); }
.quote figcaption b { color: var(--ink); font-weight: 500; }

/* =========================================================
   THEATER — lights off
   ========================================================= */
.theater {
  --ink: #ecebe6; --mute: #8b8a84; --line: rgba(236,235,230,.14); --bg-3: #242422;
  position: fixed; inset: 0; z-index: 80;
  background: #070707; color: var(--ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.theater.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.theater__ambient { position: absolute; inset: -10%; width: 120%; height: 120%; filter: blur(70px) saturate(1.3); opacity: .38; pointer-events: none; }
.theater__top, .theater__body, .theater__bottom { position: relative; z-index: 1; }
.theater__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(16px, env(safe-area-inset-top)) var(--pad) 14px; }
.theater__counter { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.theater__actions { display: flex; gap: 8px; align-items: center; }
.t-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; white-space: nowrap; transition: border-color .3s, background .3s, color .3s; }
.t-btn:hover { border-color: var(--ink); }
.t-btn--cta { background: var(--ink); color: #0e0e0d; border-color: var(--ink); font-weight: 500; }
.t-btn--cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-btn--panel { display: none; }

.theater__body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 0; gap: clamp(12px, 2vw, 28px); padding: 0 var(--pad); }
.stage { position: relative; min-height: 0; container-type: size; display: grid; place-items: center; touch-action: pan-x; }
.stage__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.media { position: relative; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.media--vertical { height: min(100cqh, 100cqw * 16 / 9); aspect-ratio: 9 / 16; }
.media--landscape { width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.media.enter { animation: mediaIn .7s var(--ease) both; }
.media.enter-up { animation: mediaUp .6s var(--ease) both; }
.media.enter-down { animation: mediaDown .6s var(--ease) both; }
@keyframes mediaIn { from { opacity: 0; transform: scale(.95); } }
@keyframes mediaUp { from { opacity: 0; transform: translateY(10%); } }
@keyframes mediaDown { from { opacity: 0; transform: translateY(-10%); } }
.media__tap { position: absolute; inset: 0; z-index: 3; }

.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); z-index: 4; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; display: grid; place-items: center; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 16px rgba(0,0,0,.6); }
.ba__knob { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0e0e0d; display: grid; place-items: center; font-size: 12px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.ba__tag { position: absolute; top: 12px; z-index: 3; font-size: 11px; letter-spacing: .04em; padding: 5px 9px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.ba__tag--b { left: 12px; } .ba__tag--a { right: 12px; background: var(--accent); }
.ba-modes { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 2px; padding: 3px; border-radius: 100px; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); }
.ba-modes button { padding: 6px 12px; border-radius: 100px; font-size: 12px; color: var(--mute); }
.ba-modes button.is-active { background: #fff; color: #0e0e0d; }
.ba[data-mode="before"] .ba-layer--after, .ba[data-mode="before"] .ba__handle { opacity: 0; pointer-events: none; }
.ba[data-mode="after"] .ba-layer--after { clip-path: inset(0); }
.ba[data-mode="after"] .ba__handle { opacity: 0; pointer-events: none; }

.playlist { min-height: 0; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: clamp(12px, 1.6vw, 22px); }
.playlist__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; font-size: 12px; color: var(--mute); white-space: nowrap; }
.playlist__head > span { overflow: hidden; text-overflow: ellipsis; }
.playlist__head b { font-weight: 400; color: var(--ink); }
.autoplay { display: flex; gap: 8px; align-items: center; }
.autoplay input { appearance: none; width: 26px; height: 15px; border-radius: 20px; background: var(--bg-3); position: relative; transition: background .3s; cursor: pointer; }
.autoplay input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--mute); transition: transform .3s var(--ease), background .3s; }
.autoplay input:checked { background: var(--ink); }
.autoplay input:checked::after { transform: translateX(11px); background: #0e0e0d; }
.playlist__list { list-style: none; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.pl-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 6px; width: 100%; text-align: left; border-radius: 4px; transition: background .3s; }
.pl-item:hover { background: rgba(255,255,255,.05); }
.pl-item.is-active { background: rgba(255,255,255,.1); }
.pl-item__thumb { position: relative; width: 56px; height: 74px; overflow: hidden; background: var(--bg-3); }
.pl-item__thumb img, .pl-item__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-item__thumb .ph__label { display: none; }
.pl-item__title { font-size: 14px; font-weight: 500; line-height: 1.2; }
.pl-item__meta { font-size: 12px; color: var(--mute); margin-top: 3px; }

.theater__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; padding: 16px var(--pad) max(20px, env(safe-area-inset-bottom)); }
.info__meta { font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.info__title { font-family: var(--display); font-weight: 800; font-stretch: 60%; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 64px); line-height: .86; }
.info__result { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); }
.info__result:empty { display: none; }
.info__desc { color: var(--mute); max-width: 600px; margin-top: 8px; font-size: 14px; }
.controls { display: flex; align-items: center; gap: 6px; }
.c-btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line); font-size: 12px; white-space: nowrap; transition: border-color .3s; }
.c-btn:hover { border-color: var(--ink); }
.c-btn--play { background: var(--ink); color: #0e0e0d; width: 46px; height: 46px; border: 0; }
.progress { width: clamp(120px, 16vw, 260px); height: 3px; background: var(--bg-3); position: relative; cursor: pointer; margin: 0 8px; }
.progress::before { content: ""; position: absolute; inset: -10px 0; }
.progress__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.time { font-size: 12px; color: var(--mute); min-width: 74px; font-variant-numeric: tabular-nums; }
.theater__hint { position: absolute; right: var(--pad); bottom: 2px; z-index: 1; font-size: 11px; color: rgba(139,138,132,.55); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .theater__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding: 0 12px; gap: 12px; }
  .playlist { border-left: 0; padding-left: 0; }
  .playlist__head { display: none; }
  .playlist__list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; }
  .pl-item { grid-template-columns: 1fr; width: 56px; flex: none; padding: 0; }
  .pl-item__thumb + div { display: none; }
  .pl-item.is-active .pl-item__thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
  .theater__bottom { grid-template-columns: minmax(0, 1fr); padding: 10px 14px max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .info__desc, .theater__hint { display: none; }
  .controls { flex-wrap: wrap; }
  .progress { flex: 1; }
  .theater__top { padding: max(12px, env(safe-area-inset-top)) 14px 10px; }
  .t-btn--panel { display: inline-flex; }
  .theater.panel-hidden .playlist { display: none; }
}

@media (max-width: 760px) {
  .top__nav { gap: 16px; }
  .reel__caption { right: var(--pad); }
  .reel__side .reel__hint { display: none; }
  .reel__side { bottom: auto; top: calc(max(18px, env(safe-area-inset-top)) + 40px); }
  .reel__count { font-size: 22px; }
  .bar { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  body.mode-reel .formats { display: none; }
  .formats { overflow-x: auto; scrollbar-width: none; }
  .cols { flex-direction: column; gap: 36px; }
  .services { grid-template-columns: 1fr; gap: 2px; }
  .services dd { margin-bottom: 10px; }
  .t-btn { padding: 8px 13px; font-size: 13px; }
  .t-btn--cta { font-size: 0; }
  .t-btn--cta::before { content: "Hire me →"; font-size: 13px; }
  .c-btn { height: 34px; min-width: 34px; padding: 0 10px; }
  .c-btn--play { width: 42px; height: 42px; }
}

/* phone held sideways */
@media (max-height: 520px) and (orientation: landscape) {
  .reel__hint { display: none; }
  .theater__top { padding: max(8px, env(safe-area-inset-top)) 16px 6px; }
  .theater__body { grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr); }
  .playlist__list { flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .pl-item, .pl-item__thumb { width: 56px; }
  .pl-item__thumb { height: 56px; }
  .theater__bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 4px 16px max(8px, env(safe-area-inset-bottom)); }
  .info__meta, .info__desc { display: none; }
  .info__title { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .controls { flex-wrap: nowrap; }
  .progress { width: 18vw; flex: none; }
  .t-btn--panel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   IMMERSION
   ========================================================= */
/* light from the playing video spills onto the wall */
@property --spill { syntax: "<color>"; inherits: true; initial-value: transparent; }
.reel {
  background: radial-gradient(58% 52% at 50% var(--ring-y, 45%), color-mix(in srgb, var(--spill) 55%, transparent), transparent 100%);
  transition: opacity .6s, visibility .6s, --spill 1.8s ease;
}
/* fog at the edges: side frames fade into the wall, depth reads stronger */
.reel__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
  opacity: .9;
}
@media (max-width: 760px) {
  .reel__stage::after { background: linear-gradient(90deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%); }
}

/* sound toggle */
.sound { display: inline-flex; align-items: center; gap: 7px; }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound.is-on .sound__bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 11px; } }

/* the frame that flies from the wall into the player */
.fly { position: fixed; z-index: 90; transform-origin: 0 0; overflow: hidden; pointer-events: none; background: #000; will-change: transform; }
.fly > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 420px) { .sound { font-size: 0; gap: 0; padding: 6px 2px; } }

/* =========================================================
   CINEMA
   ========================================================= */
/* cold open: a title card before the lights come up */
.coldopen {
  position: fixed; inset: 0; z-index: 95; background: #000; color: #ecebe6;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 24px; cursor: pointer;
}
body.is-intro .coldopen { display: flex; }
body.is-intro { overflow: hidden; }
.coldopen.is-out { opacity: 0; transition: opacity 1.1s var(--ease-io); pointer-events: none; }
.coldopen__pre, .coldopen__post { font-size: 13px; letter-spacing: .02em; color: #85847e; opacity: 0; animation: coFade 1s var(--ease) forwards; }
.coldopen__pre { animation-delay: .35s; }
.coldopen__post { animation-delay: 1.25s; }
.coldopen__name {
  font-family: var(--display); font-weight: 800; font-stretch: 58%; text-transform: uppercase;
  font-size: clamp(56px, 13vw, 220px); line-height: .84; letter-spacing: 0;
}
.coldopen__name i { display: inline-block; font-style: normal; white-space: pre; opacity: 0; animation: letterIn 1.1s var(--ease) forwards; animation-delay: var(--d); }
@keyframes coFade { to { opacity: 1; } }

/* credit-style title: letters arrive one by one */
@keyframes letterIn { from { opacity: 0; transform: translateY(55%); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.reel__title span.in { animation: none; }
.reel__title span.in i { display: inline-block; font-style: normal; white-space: pre; animation: letterIn .75s var(--ease) both; animation-delay: var(--d); }

/* floor: the frames reflect on a dark, glossy floor */
.tile { -webkit-box-reflect: below 12px linear-gradient(transparent 84%, rgba(0, 0, 0, .28)); }
body:not(.theme-dark) .tile { -webkit-box-reflect: below 12px linear-gradient(transparent 88%, rgba(0, 0, 0, .14)); }

/* player: cuts dip through black instead of sliding */
@keyframes mediaUp { from { opacity: 0; transform: scale(1.015); filter: brightness(.2); } }
@keyframes mediaDown { from { opacity: 0; transform: scale(1.015); filter: brightness(.2); } }
.media.enter-up, .media.enter-down { animation-duration: .9s; animation-timing-function: cubic-bezier(.33, 0, .2, 1); }

/* =========================================================
   CONTACT — the one filled button in the header + its menu
   ========================================================= */
.cta {
  display: inline-flex; align-items: center; font-size: 14px; line-height: 1; font-weight: 500;
  padding: 9px 15px 9px 13px; border-radius: 100px;
  background: var(--ink); color: var(--bg);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.cta .dot { margin-right: 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }
.cta:hover, .cta[aria-expanded="true"] { background: var(--accent); color: #fff; }
.cta:active { transform: scale(.97); }

.cmenu { position: fixed; inset: 0; z-index: 96; pointer-events: none; visibility: hidden; transition: visibility 0s .38s; }
.cmenu.is-open { visibility: visible; transition-delay: 0s; }
.cmenu__scrim { position: absolute; inset: 0; display: none; }
.cmenu__box {
  position: absolute; width: 300px; padding: 8px; pointer-events: auto;
  background: color-mix(in srgb, var(--tile) 94%, var(--ink));
  border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .22s, transform .32s var(--ease);
}
.cmenu.is-open .cmenu__box { opacity: 1; transform: none; }
.cmenu__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 10px; font-size: 12px; color: var(--mute); }
.cmenu__x { font-size: 13px; color: var(--mute); padding: 2px 4px; margin-left: auto; }
.cmenu__x:hover { color: var(--ink); }
.cmenu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 12px 12px; border-radius: 10px; text-align: left; font-size: 14px;
  transition: background .2s;
}
.cmenu__item:hover, .cmenu__item:focus-visible { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.cmenu__item--main { flex-direction: column; align-items: flex-start; gap: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); margin-bottom: 4px; }
.cmenu__label { font-weight: 500; }
.cmenu__sub { font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.cmenu__arrow { color: var(--mute); }
.cmenu__item--main.is-done .cmenu__label, .copyhint.is-done { color: var(--live); }

/* About: the address copies itself */
button.bigmail { text-align: left; padding: 0; cursor: copy; }
.copyhint { font-size: 12px; color: var(--mute); margin: 6px 0 14px; transition: color .2s; }

@media (max-width: 760px) {
  .cta { font-size: 13px; padding: 8px 12px 8px 11px; }
  /* phones: a bottom sheet with a dimmed backdrop */
  .cmenu__scrim { display: block; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; pointer-events: auto; }
  .cmenu.is-open .cmenu__scrim { opacity: 1; }
  .cmenu:not(.is-open) .cmenu__scrim { pointer-events: none; }
  .cmenu__box {
    left: 0; right: 0; bottom: 0; top: auto; width: auto;
    padding: 10px 12px max(16px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-bottom: 0;
    transform: translateY(100%); transition: transform .38s var(--ease), opacity .2s;
  }
  .cmenu.is-open .cmenu__box { transform: none; }
  .cmenu__item { padding: 15px 12px; font-size: 15px; }
}
@media (max-width: 400px) {
  .top__nav { gap: 13px; }
  .cta .dot { display: none; }
}
@media (max-width: 360px) {
  .top { gap: 12px; }
  .brand { white-space: nowrap; font-size: 17px; }
  .top__nav { gap: 10px; }
  .top__nav .link:not(.sound) { font-size: 13px; }
  .cta { font-size: 12.5px; padding: 7px 10px; }
}

/* =========================================================
   SQUARE FRAMES + STILLS (thumbnail design, 1:1 logos)
   ========================================================= */
/* wide screens: a square spans two columns, about as tall as a 9:16 card beside it;
   3 columns: one column (two would leave the third empty); phones: full width */
.card--square { grid-column: span 2; }
.card--square .card__media { aspect-ratio: 1 / 1; }
@media (max-width: 1100px) { .card--square { grid-column: span 1; } }
@media (max-width: 760px) { .card--square { grid-column: 1 / -1; } }
.media--square { width: min(100cqw, 100cqh); aspect-ratio: 1 / 1; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* a still has no sound and no clock to scrub */
.theater.is-still #cMute { visibility: hidden; }
.theater.is-still .progress { pointer-events: none; }
