/* Screening room: full-bleed stills up top, then the work set like an end-credits sheet. */
/* Saira Extra Condensed's capital J is a stem with a stub for a hook. These files hold a
   replacement J cut from Saira's own U (left stem trimmed where it stops being straight), so
   stroke weight, curve and width match the other letters. Saira is SIL Open Font License. */
@font-face { font-family: "Display J"; src: url("/fonts/display-j-600.woff2") format("woff2"); font-weight: 100 650; unicode-range: U+004A; font-display: block; }
@font-face { font-family: "Display J"; src: url("/fonts/display-j-700.woff2") format("woff2"); font-weight: 651 750; unicode-range: U+004A; font-display: block; }
@font-face { font-family: "Display J"; src: url("/fonts/display-j-800.woff2") format("woff2"); font-weight: 751 1000; unicode-range: U+004A; font-display: block; }

:root {
  --ink: #0c0d0f;          /* page */
  --ink-raised: #16181b;   /* panels, placeholders */
  --rule: rgba(232, 228, 220, 0.14);
  --paper: #e8e4dc;        /* primary text */
  --muted: #8f9198;        /* secondary text */
  --tally: #ff4b3e;        /* camera tally light: "live" only */
  --ok: #6fd39a;           /* office hours */

  --display: "Display J", "Saira Extra Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-label: 0.75rem;
  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-card: clamp(1.6rem, 2.3vw, 2.25rem);
  --t-section: clamp(3.5rem, 10vw, 9rem);

  --gutter: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 2px; }

.label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.skip {
  position: fixed; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 14px;
  font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.08em;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85em 1.15em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; background: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 0.7em; height: 0.8em; }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border-color: var(--rule); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-sm { padding: 0.55em 0.9em; }
.btn-len { opacity: 0.6; }

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 18px;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.masthead.solid {
  background: rgba(12, 13, 15, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
  padding-block: calc(env(safe-area-inset-top, 0px) + 12px) 12px;
}
.mark { font-weight: 500; color: var(--paper); justify-self: start; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a { color: var(--paper); opacity: 0.75; transition: opacity 0.2s; }
.nav a:hover, .nav a.active { opacity: 1; }
.clocks { justify-self: end; display: flex; gap: 18px; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.clocks abbr { text-decoration: none; color: var(--paper); opacity: 0.75; }
.clocks time { color: var(--muted); }

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; }
  .clocks, .nav-wide { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(560px, min(94svh, 62vw), 1080px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-raised);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.slide.on img { animation: drift 9s ease-out forwards; }
@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(12,13,15,0.6) 0, rgba(12,13,15,0) 18%),
    linear-gradient(to top, var(--ink) 0, rgba(12,13,15,0.9) 22%, rgba(12,13,15,0.62) 44%, rgba(12,13,15,0.18) 64%, rgba(12,13,15,0) 80%);
}

.hero-foot {
  position: absolute; inset: auto 0 0 0;
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
}
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-intro { max-width: 34rem; display: grid; gap: 14px; }
.hero-role {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 0.88; letter-spacing: 0.005em; color: var(--paper);
}
.hero-line { margin: 0; max-width: 30ch; font-size: var(--t-lede); line-height: 1.35; text-wrap: balance; }

.now { width: min(100%, 380px); display: grid; gap: 8px; }
.now-head { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.now-idx { color: var(--paper); opacity: 0.7; }
.now-tc { margin-left: auto; color: var(--paper); opacity: 0.7; }
.tally {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tally);
  box-shadow: 0 0 0 3px rgba(255, 75, 62, 0.2);
  animation: blink 2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.now-client {
  margin: 4px 0 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 0.9; letter-spacing: 0.005em;
}
.now-sub { margin: 0; color: var(--paper); opacity: 0.75; font-size: var(--t-small); }
.now-actions { display: flex; gap: 8px; margin-top: 8px; }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 10px; }
.tick {
  position: relative; height: 18px; padding: 0; border: 0; background: none; cursor: pointer;
}
.tick::before, .tick i {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px;
}
.tick::before { background: rgba(232, 228, 220, 0.25); }
.tick i { background: var(--paper); transform-origin: left; transform: scaleX(0); }
.tick.done i { transform: scaleX(1); }
.tick.on i { animation: fill var(--slide-ms, 6000ms) linear forwards; }
.hero.paused .tick.on i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-name {
  margin: 0; display: flex; justify-content: space-between; gap: 0.12em;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 19.5vw; line-height: 0.74; letter-spacing: -0.012em;
  white-space: nowrap; color: var(--paper); min-width: 0;
  transform: translateY(0.035em);
}
.hero-name .w { display: block; flex: none; overflow: hidden; padding-top: 0.04em; }
.hero-name .w > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero-name .w + .w > span { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }

@media (max-width: 760px) {
  .hero { height: max(620px, 92svh); }
  .hero-row { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-intro { max-width: none; }
  .now { width: 100%; }
  .hero-line { font-size: 1.125rem; }
}

/* ---------- Client marquee ---------- */
.marquee {
  border-block: 1px solid var(--rule);
  overflow: hidden; padding-block: 18px;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  margin-top: clamp(28px, 4vw, 56px);
}
.marquee-track { display: flex; width: max-content; animation: crawl 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; }
.marquee a {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; color: var(--muted);
  padding-inline: 0.55em; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 1.1em;
}
.marquee a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.marquee a:hover { color: var(--paper); }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.work, .about, .brands { padding: clamp(72px, 10vw, 150px) var(--gutter) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 56px);
}
.section-title {
  margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--t-section); line-height: 0.8; letter-spacing: -0.01em;
}
.section-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.section-note { margin: 0; max-width: 38ch; color: var(--muted); }

.toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.toggle button {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  border: 0; background: none; padding: 0.55em 1em; border-radius: 999px; cursor: pointer; color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ---------- Work: grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(14px, 1.6vw, 24px);
}
.card { grid-column: span 4; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card.w2 { grid-column: span 6; }
.card-media {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink-raised); border-radius: 3px; max-width: 100%;
}
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s ease, filter 0.6s ease;
}
.card-media .alt { opacity: 0; }
.card-media .alt.on { opacity: 1; }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.05); }
.card-media .films-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(12, 13, 15, 0.7); padding: 5px 8px; border-radius: 3px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.card-client {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: var(--t-card); line-height: 0.95; letter-spacing: 0.005em;
}
.card.w2 .card-client { font-size: clamp(1.9rem, 3vw, 2.9rem); }
.card-len { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.card-sub { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--t-small); }
.card-sub em { color: var(--paper); font-style: italic; }

@media (max-width: 1000px) {
  .card, .card.w2 { grid-column: span 6; }
  .card.t-full { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .card, .card.w2, .card.t-full { grid-column: 1 / -1; }
}

/* ---------- Work: index ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row a {
  display: grid; align-items: baseline;
  grid-template-columns: 3.2rem minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1.25fr) 5.5rem;
  gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--rule);
  transition: padding 0.35s var(--ease), color 0.2s;
}
.row-no, .row-len { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.row-len { text-align: right; }
.row-client {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 0.95;
}
.row-title { font-style: italic; }
.row-dir { color: var(--muted); }
.index:hover .row a { color: var(--muted); }
.index .row a:hover, .index .row a:focus-visible { color: var(--paper); padding-left: 14px; }
@media (max-width: 760px) {
  .row a {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    grid-template-areas: "no client len" ". title title" ". dir dir";
  }
  .row-no { grid-area: no; } .row-client { grid-area: client; } .row-len { grid-area: len; }
  .row-title { grid-area: title; } .row-dir { grid-area: dir; }
}

/* Floating preview that follows the pointer in index view */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(240px, 24vw, 380px); aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden;
  opacity: 0; scale: 0.92; transform: translate3d(-9999px, 0, 0);
  transition: opacity 0.25s ease, scale 0.25s ease;
  background: var(--ink-raised);
}
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* "Play" badge on the still under the pointer */
.card-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.35s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: scale(1); }
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 120px); align-items: start;
}
.about-copy { display: grid; gap: 18px; }
.about-copy p { margin: 0; max-width: 46ch; color: var(--paper); opacity: 0.82; text-wrap: pretty; }
.hello {
  margin: 0 0 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--t-section); line-height: 0.82; letter-spacing: -0.01em; text-wrap: balance;
}
.about-copy .about-lede { max-width: 34ch; font-size: var(--t-lede); line-height: 1.4; opacity: 1; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: clamp(20px, 3vw, 40px) 0 0; padding-top: 24px; border-top: 1px solid var(--rule);
}
.facts div { display: grid; gap: 6px; min-width: 0; }
.facts dd {
  margin: 0; order: -1; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 0.9; font-variant-numeric: tabular-nums;
}
.facts dt { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.experience { display: grid; gap: 18px; padding-top: clamp(8px, 1.4vw, 22px); }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.role {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.role-years { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.role-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.role-company {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1;
}
.role-title { color: var(--muted); font-size: var(--t-small); }
.role-note { grid-column: 2; margin: 2px 0 0; font-size: var(--t-small); color: var(--paper); opacity: 0.72; max-width: 52ch; }
.role.current .role-company::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tally); margin-left: 10px; vertical-align: 0.3em;
}

/* ---------- Brands ---------- */
.brand-wall {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.16em 0.5em;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.2vw, 5rem); line-height: 0.95;
}
.brand {
  display: inline-flex; align-items: flex-start; gap: 0.18em;
  color: var(--paper); transition: color 0.25s;
}
.brand sup {
  font-family: var(--mono); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.06em;
  line-height: 1.3; color: var(--muted); margin-top: 0.45em; white-space: nowrap;
}
.brand-wall:hover a.brand { color: rgba(232, 228, 220, 0.35); }
.brand-wall a.brand:hover, .brand-wall a.brand:focus-visible { color: var(--paper); }
.brand-more { font-style: italic; font-weight: 500; color: rgba(232, 228, 220, 0.3); }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 32px clamp(48px, 7vw, 120px); align-items: end;
  padding: clamp(72px, 10vw, 150px) var(--gutter);
}
.contact-body { display: grid; gap: 22px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease); padding-bottom: 4px;
}
.email:hover { background-size: 100% 1px; }
.phones { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.phones li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.phones a { font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.phones a:hover { text-decoration: underline; text-underline-offset: 4px; }
.local { grid-column: 2; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.local::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.local.open::before { background: var(--ok); }

@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts { gap: 12px; }
  .role { grid-template-columns: 1fr; }
  .role-note { grid-column: 1; }
}
@media (max-width: 420px) {
  .phones li { grid-template-columns: 1fr; }
  .local { grid-column: 1; }
}

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 22px);
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.foot p { margin: 0; }
.foot a:hover { color: var(--paper); }

/* ---------- Player overlay ---------- */
.player {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: rgba(8, 9, 10, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: appear 0.3s ease both;
}
@keyframes appear { from { opacity: 0; } }
.player-bar { display: flex; align-items: center; gap: 20px; }
.player-meta { flex: 1; min-width: 0; }
.player-client {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1;
}
.player-sub { margin: 4px 0 0; color: var(--muted); font-size: var(--t-small); }
.player-sub em { color: var(--paper); }
.player-pos { font-variant-numeric: tabular-nums; }
.player-stage { display: grid; place-items: center; min-height: 0; }
.player-screen { width: min(100%, calc((100svh - var(--chrome, 250px)) * 16 / 9)); max-width: 100%; display: grid; gap: 12px; }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 3px; overflow: hidden; }

/* Our own minimal controls; Vimeo's are hidden with controls=0 */
.ctl-hit {
  position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.ctl-hit::after {
  content: ""; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(12, 13, 15, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1 0 12 7 1 14z' fill='%23e8e4dc'/%3E%3C/svg%3E") 54% 50% / 20px no-repeat;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 1; transition: opacity 0.25s;
}
.is-playing .ctl-hit::after { opacity: 0; }
.controls { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ctl-play {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
}
.ctl-play svg { width: 12px; height: 14px; }
.ctl-play .i-play { margin-left: 2px; }
.ctl-play .i-pause, .is-playing .ctl-play .i-play { display: none; }
.is-playing .ctl-play .i-pause { display: block; }
.ctl-track { --p: 0; --b: 0; position: relative; flex: 1; min-width: 0; height: 28px; cursor: pointer; touch-action: none; }
.ctl-track::before, .ctl-buffer, .ctl-fill {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
  transform-origin: left; transition: height 0.15s, margin-top 0.15s;
}
.ctl-track::before { content: ""; background: rgba(232, 228, 220, 0.16); }
.ctl-buffer { background: rgba(232, 228, 220, 0.28); transform: scaleX(var(--b)); }
.ctl-fill { background: var(--paper); transform: scaleX(var(--p)); }
.ctl-thumb {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: var(--paper); transform: scale(0); transition: transform 0.15s;
}
.ctl-track:hover::before, .ctl-track:hover .ctl-buffer, .ctl-track:hover .ctl-fill,
.is-scrubbing .ctl-track::before, .is-scrubbing .ctl-buffer, .is-scrubbing .ctl-fill { height: 5px; margin-top: -2.5px; }
.ctl-track:hover .ctl-thumb, .ctl-track:focus-visible .ctl-thumb, .is-scrubbing .ctl-thumb { transform: scale(1); }
.ctl-time { flex: none; font-family: var(--mono); font-size: var(--t-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.ctl-sound { flex: none; }
.native .controls, .native .ctl-hit { display: none; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-films {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; justify-content: center;
  scrollbar-width: thin;
}
.player-films:empty { display: none; }
.film {
  flex: 0 0 auto; width: 168px; display: grid; gap: 6px; text-align: left;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted);
}
.film img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px;
  outline: 2px solid transparent; outline-offset: 2px; opacity: 0.55; transition: opacity 0.2s, outline-color 0.2s;
}
.film:hover img { opacity: 0.9; }
.film[aria-current="true"] { color: var(--paper); }
.film[aria-current="true"] img { opacity: 1; outline-color: var(--paper); }
.film span { font-size: 0.8125rem; line-height: 1.3; display: flex; justify-content: space-between; gap: 8px; }
.film span b { font-family: var(--mono); font-weight: 400; font-size: 0.6875rem; color: var(--muted); }
.player-nav { display: flex; justify-content: space-between; gap: 12px; }
.player-nav .btn { max-width: 48%; }
.player-nav .btn span:not([aria-hidden]) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 620px) {
  .player-pos { display: none; }
  .film { width: 132px; }
  .player-films { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slide.on img, .hero-name .w > span, .tally, .player { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-set[aria-hidden="true"] { display: none; }
  .marquee-set { flex-wrap: wrap; row-gap: 12px; }
  .card-media img { transition: none; }
  .tick.on i { animation: none; transform: scaleX(1); }
}
