/* Layout concept: a screening room. Black ground, crisp expanded sans titles
   like end-credit blocks, slate-style mono metadata, and one warm tungsten
   accent used sparingly. Interludes between rows tell Michael's story. */
/* Fonts are bundled with the site (SIL Open Font License): Archivo variable, IBM Plex Mono */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2-variations"), url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0a0b;          /* ground */
  --ink-2: #141416;        /* raised surfaces, frames before images load */
  --paper: #ece8e1;        /* off-white text */
  --white: #ffffff;        /* titles */
  --dim: #8d8a84;          /* secondary text */
  --dimmer: #6c6964;       /* brand / format after titles */
  --line: rgba(236, 232, 225, 0.12);
  --tungsten: #d9c592;     /* light gold accent */

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--tungsten); outline-offset: 3px; }
body.locked { overflow: hidden; }

.eyebrow, .label {
  font: 500 11px/1.3 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.sep { color: var(--tungsten); margin: 0 .55em; }

/* Scroll reveal: content stays visible unless JS confirms it can animate it in */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--pad-r) 20px var(--pad-l);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  background: rgba(10, 10, 11, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-block: calc(13px + env(safe-area-inset-top, 0px)) 13px;
}
.mark {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  font: 600 12px/1 var(--f-display); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
}
.mark-name { color: var(--paper); }
.mark-sep { color: var(--dimmer); font-weight: 300; }
.mark-role { color: var(--dim); font-weight: 400; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a {
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); transition: color .2s;
}
.nav a:hover { color: var(--paper); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--tungsten); transform-origin: 0 50%; transform: scaleX(0); opacity: .8;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 940px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-frames { position: absolute; inset: -6% 0 0; z-index: -2; background: var(--ink-2); will-change: transform; }
.hero-frames img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.8s var(--ease);
}
.hero-frames img.on { opacity: 1; animation: drift 7s linear forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 26%),
    linear-gradient(0deg, rgba(10,10,11,1) 0%, rgba(10,10,11,.72) 30%, rgba(10,10,11,.12) 68%);
}
.hero-inner {
  width: 100%;
  padding: 150px var(--pad-r) clamp(60px, 10vh, 104px) var(--pad-l);
  display: grid; gap: 22px;
  will-change: transform, opacity;
}
.hero-name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-stretch: 125%;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
  font-size: clamp(14px, 4.8vw, 92px);
  line-height: 1;
  letter-spacing: .01em;
}
.hero-line { margin: 0; color: var(--paper); opacity: .82; font-size: clamp(15px, 1.35vw, 19px); font-weight: 300; letter-spacing: .01em; }
@media (min-width: 700px) { .hero-line { white-space: nowrap; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 24px; border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: var(--tungsten); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-lg { padding: 22px 34px; font-size: 13px; }
.btn-lg span { transition: transform .3s var(--ease); }
.btn-lg:hover span { transform: translateX(4px); }
.hero-caption {
  position: absolute; right: var(--pad-r); bottom: clamp(60px, 10vh, 104px);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 400 11px/1.3 var(--f-mono); letter-spacing: .08em; color: var(--dim);
  transition: color .2s;
}
.hero-caption:hover { color: var(--paper); }
.tc { color: var(--tungsten); text-transform: uppercase; letter-spacing: .14em; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 38px; background: var(--line); overflow: hidden; }
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -38px; width: 1px; height: 38px; background: var(--paper);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 38px; } }
.hero .eyebrow, .hero-name, .hero-line, .hero-actions { animation: rise 1.1s var(--ease) both; }
.hero-name { animation-delay: .08s; }
.hero-line { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Section titles ---------- */
.section-title {
  margin: 0; display: flex; align-items: baseline; gap: 14px;
  font: 600 clamp(26px, 3.6vw, 52px)/1 var(--f-display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .02em; color: var(--white);
}
.count { font: 400 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--tungsten); }

/* ---------- Work ---------- */
.work { padding: clamp(72px, 10vw, 128px) var(--pad-r) clamp(64px, 10vw, 120px) var(--pad-l); }
.work-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.filters, .views { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button, .views button {
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); padding: 10px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.filters button:hover, .views button:hover { color: var(--paper); }
.filters button[aria-selected="true"], .views button[aria-pressed="true"] { color: var(--ink); background: var(--paper); }
.views { padding-left: 20px; border-left: 1px solid var(--line); }

/* Grid: one wide frame then two pairs, recalculated per filter */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4.6vw, 64px) clamp(16px, 2.4vw, 32px);
}
.card { grid-column: span 6; min-width: 0; }
.card.wide { grid-column: span 12; }
.card a { display: grid; gap: 16px; }
.frame { position: relative; overflow: hidden; background: var(--ink-2); aspect-ratio: 2.39 / 1; max-width: 100%; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .cover { transition: transform 1.4s var(--ease), opacity .5s var(--ease); }
.frame .hover-media { opacity: 0; transition: opacity .45s var(--ease); }
.card.playing .hover-media { opacity: 1; }
.card a:hover .cover, .card a:focus-visible .cover { transform: scale(1.04); }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(236,232,225,.06); }
.frame-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 999px;
  background: rgba(10,10,11,.62); color: var(--paper);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease);
}
.card a:hover .frame-tag, .card.playing .frame-tag { opacity: 1; transform: none; }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 16px; }
.meta .no { font: 400 11px/1 var(--f-mono); color: var(--tungsten); letter-spacing: .08em; white-space: nowrap; }
.card.featured .meta .no { text-transform: uppercase; letter-spacing: .16em; }
.meta .title { font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15; min-width: 0; }
.meta .title b { font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.meta .title .sub { font-weight: 400; font-size: .6em; color: var(--dimmer); letter-spacing: .02em; margin-left: .35em; }
.card.wide .meta .title { font-size: clamp(26px, 2.8vw, 42px); }
.meta .aw { grid-column: 2; font: 500 10px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tungsten); }

/* Interludes: full-width bands between rows of work */
.interlude { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 96px); }
.il-statement { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.il-statement blockquote {
  margin: 0; font: 300 clamp(26px, 3.6vw, 54px)/1.12 var(--f-display); letter-spacing: -.015em; color: var(--paper);
  text-wrap: balance;
}
.il-statement blockquote strong { font-weight: 700; color: var(--white); }
.il-side { display: grid; gap: 18px; align-content: end; }
.il-side p { margin: 0; color: var(--dim); font-size: 15px; max-width: 40ch; }
.il-link {
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper);
  display: inline-flex; gap: 10px; align-items: center; justify-self: start;
  padding-bottom: 6px; border-bottom: 1px solid var(--line); transition: border-color .25s, color .25s;
}
.il-link:hover { color: var(--tungsten); border-color: var(--tungsten); }
.il-stats { display: grid; gap: clamp(28px, 4vw, 48px); }
.il-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ink); padding: clamp(18px, 2.4vw, 34px); display: grid; gap: 10px; align-content: start; min-width: 0; }
.stat .num {
  font: 600 clamp(40px, 5.4vw, 84px)/.9 var(--f-display); font-stretch: 125%; color: var(--white);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat .num small { font-size: .45em; color: var(--tungsten); margin-left: .08em; }
.stat .what { font-size: 14px; color: var(--dim); line-height: 1.45; }
.il-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.il-marquee { overflow: hidden; padding-block: clamp(36px, 5vw, 64px); }
.il-marquee .label { margin-bottom: 22px; }
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font: 600 clamp(32px, 5vw, 76px)/1 var(--f-display); font-stretch: 125%; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(236,232,225,.35); padding-right: .9em; white-space: nowrap;
}
.marquee span:nth-child(3n+2) { color: var(--paper); -webkit-text-stroke: 0; }
.il-marquee:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.il-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.il-cta h3 {
  margin: 0; font: 600 clamp(28px, 4.2vw, 64px)/1 var(--f-display); font-stretch: 125%; text-transform: uppercase;
  letter-spacing: .01em; color: var(--white); max-width: 18ch; text-wrap: balance;
}
.il-cta p { margin: 12px 0 0; color: var(--dim); max-width: 46ch; }

/* Index view */
.index { position: relative; }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.index-head { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding-top: 0; }
.index-list a.index-row { transition: padding .35s var(--ease); }
.index-list .no { font: 400 11px/1 var(--f-mono); color: var(--tungsten); white-space: nowrap; }
.index-list .t { font: 700 clamp(18px, 1.8vw, 24px)/1.15 var(--f-display); color: var(--white); }
.index-list .c, .index-list .f, .index-list .r { font-size: 14px; color: var(--dim); }
.index-list a.index-row:hover { padding-left: 12px; }
.index-list a.index-row:hover .t { color: var(--tungsten); }
.index-peek {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: min(380px, 32vw); aspect-ratio: 2.39 / 1; background: var(--ink-2); overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.94);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.index-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-peek img, .index-peek video { width: 100%; height: 100%; object-fit: cover; }

/* Title card for projects without a still */
.title-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: clamp(14px, 2vw, 28px);
  background: radial-gradient(120% 90% at 85% 10%, rgba(217,197,146,.14), transparent 60%), linear-gradient(160deg, #19191c, var(--ink-2) 60%);
}
.title-card .tc-client { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tungsten); }
.title-card .tc-title { font: 700 clamp(22px, 3vw, 46px)/1 var(--f-display); color: var(--white); }

/* ---------- Awards ---------- */
.awards { padding: clamp(72px, 10vw, 140px) var(--pad-r) clamp(64px, 10vw, 120px) var(--pad-l); border-top: 1px solid var(--line); }
.awards-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.awards-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }
.hl { background: var(--ink); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; min-width: 0; transition: background .25s; }
.hl .hl-prize { font: 700 clamp(22px, 2.2vw, 34px)/1.05 var(--f-display); color: var(--white); }
.hl .hl-prize em { font-style: normal; color: var(--tungsten); }
.hl .hl-for { font-size: 14px; color: var(--dim); }
a.hl:hover { background: var(--ink-2); }
.awards-list { list-style: none; margin: 0; padding: 0; }
.aw-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.aw-row .y { font: 400 12px/1 var(--f-mono); color: var(--tungsten); font-variant-numeric: tabular-nums; }
.aw-row .y.repeat { color: transparent; }
.aw-row .e { color: var(--dim); }
.aw-row .w { font-weight: 600; color: var(--white); }
.aw-row a.w:hover { color: var(--tungsten); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(72px, 10vw, 140px) var(--pad-r) clamp(72px, 10vw, 140px) var(--pad-l);
  border-top: 1px solid var(--line);
}
.about-media { position: relative; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; max-width: 100%; }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.about-copy { display: grid; gap: 26px; min-width: 0; }
.about-title {
  margin: 0; font: 600 clamp(22px, 3.4vw, 50px)/1.05 var(--f-display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .01em; color: var(--white); max-width: 18ch; text-wrap: balance;
}
.about-bio { display: grid; gap: 14px; max-width: 62ch; color: var(--paper); opacity: .86; font-size: 17px; font-weight: 300; }
.about-bio p { margin: 0; }
.about-bio a { border-bottom: 1px solid var(--line); }
.about-bio a:hover { color: var(--tungsten); border-color: var(--tungsten); }
.clients { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.clients li { font: 600 15px/1.4 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Contact ---------- */
.contact {
  display: grid; gap: 26px; justify-items: start;
  padding: clamp(80px, 12vw, 160px) var(--pad-r) clamp(72px, 10vw, 128px) var(--pad-l);
  border-top: 1px solid var(--line);
}
.contact-title {
  margin: 0; font: 600 clamp(32px, 8.4vw, 136px)/.95 var(--f-display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -.005em; color: var(--white);
}
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.contact-note { margin: 0; color: var(--dim); font-size: 14px; }
.contact-note a { color: var(--paper); border-bottom: 1px solid var(--line); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 26px var(--pad-r) calc(26px + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  border-top: 1px solid var(--line);
  font: 400 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.foot a:hover { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Project viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: var(--ink); display: flex; flex-direction: column; animation: viewerIn .45s var(--ease) both; }
.viewer:focus { outline: none; }
@keyframes viewerIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.viewer-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--pad-r) 14px var(--pad-l);
  border-bottom: 1px solid var(--line);
}
.viewer-pos { font: 400 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--tungsten); white-space: pre; }
.viewer-nav { display: flex; gap: 6px; }
.viewer-nav button {
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); padding: 10px 12px; border-radius: 999px; transition: color .2s;
}
.viewer-nav button:hover { color: var(--paper); }
.viewer-nav .viewer-close { color: var(--paper); border: 1px solid var(--line); }
.viewer-scroll { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.viewer-media {
  position: relative; width: 100%; max-width: 1600px; margin: 0 auto;
  aspect-ratio: 2.39 / 1; background: #000; max-height: calc(100vh - 220px);
}
.viewer-media iframe, .viewer-media img, .viewer-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.viewer-media .title-card .tc-title { font-size: clamp(36px, 6vw, 96px); }
.play-vimeo {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(0deg, rgba(10,10,11,.55), rgba(10,10,11,.15));
  transition: background .3s;
}
.play-vimeo:hover { background: linear-gradient(0deg, rgba(10,10,11,.4), rgba(10,10,11,.05)); }
.play-vimeo .pv {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: var(--paper); padding: 18px 26px; border-radius: 999px; transition: background .25s, transform .3s var(--ease);
}
.play-vimeo:hover .pv { background: var(--tungsten); transform: scale(1.04); }
.viewer-tabs {
  max-width: 1600px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px var(--pad-r) 0 var(--pad-l);
}
.viewer-tabs a {
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); padding: 11px 15px; border-radius: 999px; border: 1px solid var(--line);
  transition: color .2s, background .2s, border-color .2s;
}
.viewer-tabs a:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.viewer-body {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px);
  padding: clamp(36px, 5vw, 72px) var(--pad-r) clamp(32px, 4vw, 56px) var(--pad-l);
}
.viewer-head { grid-column: 1 / -1; display: grid; gap: 12px; }
.viewer-client { margin: 0; font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tungsten); }
.viewer-title { margin: 0; font: 700 clamp(36px, 6vw, 96px)/.95 var(--f-display); color: var(--white); letter-spacing: -.02em; text-wrap: balance; }
.credits { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; align-content: start; }
.credits dt { font: 500 10px/1.6 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.credits dd { margin: 0; font-size: 15px; }
.viewer-synopsis { margin: 0; font: 300 clamp(18px, 1.6vw, 22px)/1.55 var(--f-body); max-width: 54ch; }
.viewer-award { grid-column: 1 / -1; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.viewer-award b { display: block; margin-bottom: 4px; font: 500 10px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tungsten); }
.stills {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px);
  padding: 0 var(--pad-r) 0 var(--pad-l);
}
.stills figure { margin: 0; aspect-ratio: 16 / 9; background: var(--ink-2); overflow: hidden; max-width: 100%; }
.stills figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 2.39 / 1; }
.stills img { width: 100%; height: 100%; object-fit: cover; }
.viewer-next {
  display: grid; gap: 12px; justify-items: start; text-align: left; width: 100%;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 80px) var(--pad-r) calc(clamp(40px, 6vw, 80px) + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  border-top: 1px solid var(--line);
}
.viewer-next-title { font: 700 clamp(32px, 5vw, 80px)/1 var(--f-display); color: var(--white); transition: color .25s; }
.viewer-next:hover .viewer-next-title { color: var(--tungsten); }

/* Showreel */
.reel { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-left, 0px)); }
.reel-frame { position: relative; width: min(100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; max-width: 100%; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-close {
  position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px));
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) { .mark-sep, .mark-role { display: none; } }
@media (max-width: 900px) {
  .index-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, .8fr); }
  .index-row > :nth-child(4), .index-row > :nth-child(5) { display: none; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-media { aspect-ratio: 3 / 2; }
  .viewer-body { grid-template-columns: 1fr; }
  .index-peek { display: none; }
  .awards-highlights, .il-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-row { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; }
  .aw-row > :nth-child(n+2) { grid-column: 2; }
  .aw-row .y.repeat { display: none; }
  .il-statement { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .mark { font-size: 11px; letter-spacing: .12em; }
  .nav { gap: 14px; }
  .nav a[data-scroll="about"], .nav a[data-scroll="awards"] { display: none; }
  .card, .card.wide { grid-column: 1 / -1; }
  .frame-tag { opacity: 1; transform: none; }
  .meta .title .sub { display: block; font-size: .66em; margin: 3px 0 0; }
  .views { padding-left: 0; border-left: 0; }
  .hero-caption, .scroll-cue { display: none; }
  .hero { min-height: 86vh; }
  .stills { grid-template-columns: 1fr; }
  .stills figure:first-child:nth-last-child(odd) { aspect-ratio: 16 / 9; }
  .viewer-nav button:not(.viewer-close) { padding-inline: 8px; }
}
@media (max-width: 400px) { .mark { font-size: 9.5px; letter-spacing: .08em; } .nav { gap: 10px; } .nav a { font-size: 10px; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
}

/* ---------- Project page (v5): hero still, Watch Now, numbered panels ---------- */
.pv-hero {
  position: relative; min-height: min(78vh, 820px); display: flex; align-items: center;
  overflow: hidden; isolation: isolate; background: #000;
}
.pv-hero-media { position: absolute; inset: 0; z-index: -2; }
.pv-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: drift 9s linear forwards; }
.pv-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,11,.78) 0%, rgba(10,10,11,.45) 45%, rgba(10,10,11,.1) 100%),
              linear-gradient(0deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,0) 35%);
}
.pv-hero-inner {
  width: 100%; max-width: 1600px; margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-r) clamp(64px, 10vh, 120px) var(--pad-l);
  display: grid; gap: 18px; justify-items: start; text-align: left;
}
.pv-title {
  margin: 0; color: var(--white); text-transform: uppercase;
  font: 800 clamp(34px, 6.4vw, 108px)/.95 var(--f-display); letter-spacing: -.01em;
  max-width: 16ch; text-wrap: balance;
  animation: rise 1s var(--ease) both;
}
.pv-brand { margin: 0; font-size: clamp(15px, 1.3vw, 19px); color: var(--paper); animation: rise 1s var(--ease) .1s both; }
.pv-brand b { font-weight: 700; color: var(--white); }
.pv-brand .bar-sep { margin: 0 .55em; color: var(--dim); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; animation: rise 1s var(--ease) .2s both; }
.btn-watch {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 16px/1 var(--f-display); letter-spacing: .01em; color: var(--white);
  padding: 15px 24px; border: 1.5px solid var(--white); border-radius: 4px;
  background: rgba(10,10,11,.15); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .25s, color .25s, border-color .25s;
}
.btn-watch:hover, .btn-watch:focus-visible { background: var(--white); color: var(--ink); }
.btn-watch svg { transition: transform .25s var(--ease); }
.btn-watch:hover svg { transform: scale(1.15); }

.pv-detail { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.pv-side { position: absolute; inset: 0 0 0 auto; width: 52%; z-index: -1; }
.pv-side img, .pv-side video { width: 100%; height: 100%; object-fit: cover; }
.pv-side::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(10,10,11,.72) 30%, rgba(10,10,11,.35) 100%);
}
.pv-main {
  max-width: 1600px; margin: 0 auto; display: grid; gap: 34px; justify-items: start;
  padding: clamp(56px, 8vw, 110px) var(--pad-r) clamp(56px, 8vw, 110px) var(--pad-l);
}
.pv-main > * { width: min(100%, 760px); }
.pv-subtitle { margin: 0; font: 800 clamp(28px, 3.2vw, 48px)/1 var(--f-display); color: var(--white); letter-spacing: -.01em; }
.pv-credits { margin: 0; display: grid; gap: 6px; }
.pv-credits div { font-size: 14px; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; }
.pv-credits dt { display: inline; font-weight: 700; color: var(--white); }
.pv-credits dd { display: inline; margin: 0; color: var(--paper); opacity: .86; }
.pv-acc { display: grid; }
.acc-item { border-bottom: 1px solid rgba(236,232,225,.35); }
.acc-item:first-child { border-top: 1px solid rgba(236,232,225,.35); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 2px; text-align: left; font: 500 14px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--white);
}
.acc-head i { position: relative; width: 14px; height: 14px; flex: none; }
.acc-head i::before, .acc-head i::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.acc-head i::after { transform: rotate(90deg); }
.acc-item.open .acc-head i::after { transform: rotate(0deg); }
.acc-item.open .acc-head { border: 1.5px solid var(--white); padding-inline: 14px; margin-inline: -1px; }
.acc-body { padding: 18px 2px 22px; display: grid; gap: 12px; }
.acc-body p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--paper); opacity: .9; max-width: 68ch; }
.pv-main .viewer-award { border-top: 0; padding: 0; }

/* Video lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(5,5,6,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: max(16px, env(safe-area-inset-left, 0px)); animation: fadeIn .3s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-frame {
  position: relative; width: min(100%, 1400px, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; max-width: 100%;
  background: #000; box-shadow: 0 30px 120px rgba(0,0,0,.7); animation: rise .45s var(--ease) both;
}
.lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px));
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10,10,11,.6);
}
.lightbox-close:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 900px) {
  .pv-side { width: 100%; opacity: .35; }
  .pv-side::after { background: linear-gradient(0deg, var(--ink), rgba(10,10,11,.6)); }
}
@media (max-width: 680px) {
  .pv-hero { min-height: 72vh; align-items: flex-end; }
  .pv-hero::after { background: linear-gradient(0deg, rgba(10,10,11,.95) 0%, rgba(10,10,11,.35) 60%, rgba(10,10,11,.15) 100%); }
}
.viewer-nav button { white-space: nowrap; }
@media (max-width: 480px) { .viewer-pos { display: none; } .viewer-bar { justify-content: flex-end; } }

/* ---------- v6: gold accent, quieter section titles, refined name ---------- */
.section-title {
  font: 500 clamp(13px, 1.05vw, 16px)/1.2 var(--f-mono); font-stretch: normal;
  letter-spacing: .26em; text-transform: uppercase; color: var(--paper); gap: 16px;
}
.section-title .count { font-size: 11px; letter-spacing: .14em; }
.hero-name {
  font-weight: 600; font-stretch: 100%; letter-spacing: .035em;
  font-size: clamp(18px, 5.4vw, 98px);
  background: linear-gradient(176deg, #ffffff 0%, #f3eee4 38%, #ddd2b6 72%, #bfa877 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.35));
}
.pv-summary { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(236,232,225,.35); }
.pv-summary-label { margin: 0; font: 500 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--tungsten); }
.pv-summary p:not(.pv-summary-label) { margin: 0; font: 300 clamp(17px, 1.35vw, 20px)/1.65 var(--f-body); color: var(--paper); max-width: 62ch; }

/* ---------- v7: top-left lockup matches the hero title (smaller, gold gradient) ---------- */
.mark { gap: 10px; font: 600 10.5px/1 var(--f-display); font-stretch: 100%; letter-spacing: .14em; }
.mark-name, .mark-role {
  background: linear-gradient(176deg, #ffffff 0%, #f3eee4 38%, #ddd2b6 72%, #bfa877 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mark-role { font-weight: 400; opacity: .85; }
.mark-sep { color: rgba(217,197,146,.5); }
@media (max-width: 680px) { .mark { font-size: 10px; letter-spacing: .12em; } }
@media (max-width: 400px) { .mark { font-size: 9px; letter-spacing: .08em; } }

/* ---------- v8: About + Contact use the name typeface (no wide type), gold gradient ---------- */
.about-heading, .clients li, .contact-title {
  font-family: var(--f-display); font-stretch: 100%;
  background: linear-gradient(176deg, #ffffff 0%, #f3eee4 38%, #ddd2b6 72%, #bfa877 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.about-heading {
  margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(36px, 4.6vw, 72px); line-height: 1;
}
.about-copy { gap: 30px; }
.about-bio { font-family: var(--f-body); }
.clients .label { font-size: 11px; }
.clients ul { gap: 10px 26px; }
.clients li { font-weight: 600; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.contact-title {
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(24px, 2.8vw, 42px); line-height: 1.05;
}
.contact { gap: 22px; padding-block: clamp(64px, 9vw, 120px) clamp(64px, 9vw, 112px); }

/* v9: video lightbox. Frame follows each film's aspect ratio; iframe keeps its own colour scheme so Chrome
   doesn't paint a white backdrop behind the Vimeo player on this dark site */
.lightbox-frame {
  --ar: 1.7778;
  aspect-ratio: var(--ar);
  width: min(100%, 1400px, calc((100vh - 140px) * var(--ar)));
  width: min(100%, 1400px, calc((100dvh - 140px) * var(--ar)));
  transition: width .35s var(--ease);
}
.lightbox-frame iframe { color-scheme: normal; background: #000; }
