
/* Layout: a screening room. Full-bleed reel up top, a credits-style index below, everything on near-black. */
:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --line: rgba(236, 232, 225, 0.12);
  --paper: #ece8e1;
  --muted: #9a958d;
  --dim: #5f5b56;
  --red: #d42a2f;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.label {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(11,11,12,0.92), rgba(11,11,12,0));
}
.nav-name { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 15px; letter-spacing: 0.2em; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 36px); }
.nav-links a { font-family: var(--display); font-stretch: 110%; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--paper); }

/* Hero reel */
.hero {
  position: relative;
  margin-top: -66px;
  height: min(92vh, 900px);
  min-height: 560px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.reel { position: absolute; inset: 0; }
.reel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.0);
  transition: opacity 1.6s ease, transform 7s linear;
}
.reel img.on { opacity: 1; transform: scale(1.05); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.05) 30%, rgba(11,11,12,0.35) 62%, var(--ink) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.7) 0%, rgba(11,11,12,0) 60%);
}
.hero-copy { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); display: grid; gap: 22px; }
.hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  /* reduced to ~28% of the previous size so the reel images show through */
  font-size: clamp(22px, 3.1vw, 46px); line-height: 1; letter-spacing: 0.04em;
}
.rule { width: clamp(90px, 14vw, 200px); height: 3px; background: var(--red); }
.hero-roles { margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 600; font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 0.26em; text-transform: uppercase; }
.hero-line { margin: 0; max-width: 34ch; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.35; font-weight: 300; color: #ddd8d0; text-wrap: balance; }
.hero-line em { font-style: italic; color: var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(236,232,225,0.35); background: rgba(11,11,12,0.35); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { border-color: var(--paper); background: rgba(236,232,225,0.08); }
.btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-solid:hover { background: #fff; }
.play-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.reel-caption { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(40px, 7vh, 80px); text-align: right; max-width: 260px; }
.reel-caption .label { color: #c9c4bb; }
.reel-caption div { margin-top: 6px; font-size: 15px; font-style: italic; color: var(--paper); }

/* Credits strip */
.credits {
  padding: 34px var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center;
}
.networks { display: flex; flex-wrap: wrap; gap: 12px clamp(18px, 3.4vw, 46px); align-items: baseline; }
.networks span { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: clamp(15px, 1.7vw, 22px); letter-spacing: 0.06em; color: #cfcac2; }
.awards { grid-column: 2; margin: 0; font-size: 15px; color: var(--muted); font-style: italic; }

/* Section heads */
section { scroll-margin-top: 70px; }
.sec { padding: clamp(70px, 10vw, 130px) var(--gutter) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { margin: 10px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(30px, 4.4vw, 60px); line-height: 0.95; letter-spacing: -0.005em; text-transform: uppercase; }

/* Featured */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); text-align: left; cursor: pointer; overflow: hidden; }
.tile.lead { grid-column: 1 / -1; }
.tile-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.tile.lead .tile-media { aspect-ratio: 2.39 / 1; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(0.92); }
.tile:hover .tile-media img { transform: scale(1.045); filter: saturate(1.05); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0) 45%, rgba(11,11,12,0.88) 100%); }
.tile-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(16px, 2.2vw, 30px); display: grid; gap: 8px; }
.tile-info h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.tile.lead .tile-info h3 { font-size: clamp(28px, 4vw, 58px); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tile-meta .label { color: #d6d1c9; }
.tile-meta .label + .label::before { content: "/"; margin-right: 14px; color: var(--red); }
.tile-cta { position: absolute; z-index: 2; top: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; background: rgba(11,11,12,0.6); border: 1px solid rgba(236,232,225,0.3); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.tile:hover .tile-cta, .tile:focus-visible .tile-cta { opacity: 1; transform: none; }

/* Press */
.press-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.press-item { padding: 34px 34px 38px 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-width: 0; }
.press-item:nth-child(even) { padding-left: 34px; padding-right: 0; border-left: 1px solid var(--line); }
.press-item blockquote { margin: 0; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.22; font-weight: 300; text-wrap: balance; }
.press-item blockquote::before { content: "\201C"; color: var(--red); }
.press-item blockquote::after { content: "\201D"; color: var(--red); }
.press-item .outlet { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.press-item .about { font-size: 14px; color: var(--muted); font-style: italic; }

/* Filmography index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 8px 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--display); font-stretch: 110%; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.filters button:hover { color: var(--paper); border-color: rgba(236,232,225,0.4); }
.filters button[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.index { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 150px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 24px; align-items: center;
  width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer;
  transition: background .25s;
}
.row:hover { background: rgba(236,232,225,0.03); }
.row img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(0.6) brightness(0.85); transition: filter .4s; }
.row:hover img { filter: none; }
.row-title { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.15; min-width: 0; }
.row-title small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); font-style: italic; }
.row .label { color: #c2bdb4; min-width: 0; }
.row .role { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-photo .rule { position: absolute; left: 0; bottom: -10px; }
.about-copy { display: grid; gap: 22px; max-width: 62ch; }
.about-copy .lede { margin: 0; font-size: clamp(23px, 2.4vw, 33px); line-height: 1.3; font-weight: 300; text-wrap: balance; }
.about-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: #cdc8bf; }
.collab { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.collab-names { font-size: 19px; line-height: 1.5; }
.collab-names span + span::before { content: " · "; color: var(--red); }

/* Contact */
.contact { padding-bottom: clamp(70px, 9vw, 120px); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.contact-cell { padding: 34px 34px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.contact-cell + .contact-cell { padding-left: 34px; border-left: 1px solid var(--line); }
.contact-cell strong { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: 0.02em; }
.contact-cell .addr { font-size: 19px; overflow-wrap: anywhere; }
.contact-cell .hint { font-size: 14px; font-style: italic; color: var(--muted); }

footer { padding: 26px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; align-items: center; }
footer .nav-name { font-size: 13px; }

/* Case study overlay */
.case { position: fixed; inset: 0; z-index: 100; background: var(--ink); overflow-y: auto; }
.case-bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); background: rgba(11,11,12,0.9); border-bottom: 1px solid var(--line); }
.case-close { border: 1px solid var(--line); background: transparent; padding: 9px 14px; cursor: pointer; }
.case-player { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden; background: #000; }
.case-player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.case-player .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; gap: 14px; text-align: center;
}
.case-player .play i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(236,232,225,0.7); background: rgba(11,11,12,0.35); }
.case-player .play i::before { content: ""; margin-left: 5px; border-left: 20px solid var(--paper); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.case-body { padding: clamp(36px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(30px, 5vw, 80px); }
.case-body h1, .case-body h2 { margin: 0 0 18px; font-weight: 400; font-size: clamp(34px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.case-body .logline { margin: 0; max-width: 60ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: #d8d3cb; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.facts div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; font-size: 19px; }
.scenes { padding: 0 var(--gutter) clamp(40px, 6vw, 70px); }
.scenes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 18px; }
.scene { display: grid; gap: 10px; }
.scene img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scene div { font-size: 16px; }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px var(--gutter); border-top: 1px solid var(--line); background: transparent; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; text-align: left; }
.case-next strong { display: block; margin-top: 8px; font-weight: 400; font-size: clamp(24px, 3vw, 40px); }


/* Captions sit under the image so they never collide with title cards baked into the stills */
.tile { background: transparent; }
.tile:not(.lead) .tile-media::after { display: none; }
.tile:not(.lead) .tile-info { position: static; padding: 16px 0 6px; }
.tile:not(.lead) .tile-info h3 { font-size: clamp(22px, 2.2vw, 30px); }
.tile:not(.lead) .tile-meta .label { color: var(--muted); }
.tile-cta { display: none; }
.tile-watch { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.tile-watch .play-ico { border-left-color: var(--red); }
@media (max-width: 860px) {
  .tile.lead .tile-media::after { display: none; }
  .tile.lead .tile-info { position: static; padding: 16px 0 6px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0.2) 30%, rgba(11,11,12,0.75) 60%, var(--ink) 100%); }
}
@media (max-width: 860px) {
  .feature-grid, .press-list, .contact-grid, .about-grid, .case-body { grid-template-columns: 1fr; }
  .press-item, .press-item:nth-child(even) { padding: 28px 0; border-left: 0; }
  .contact-cell, .contact-cell + .contact-cell { padding: 28px 0 0; border-left: 0; }
  .credits { grid-template-columns: 1fr; }
  .awards { grid-column: 1; }
  .row { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; }
  .row img { width: 96px; grid-row: span 3; }
  .reel-caption { display: none; }
  .tile.lead .tile-media { aspect-ratio: 16 / 9; }
  .tile-cta { opacity: 1; transform: none; }
  .about-photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .nav-links a:not(.keep) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel img { transition: opacity .01s; transform: none !important; }
  .tile-media img { transition: none; }
}

/* ---------- Production additions ---------- */

/* Lead tile: caption under the image too (RapCaviar's still has its title card baked in) */
.tile.lead .tile-media::after { display: none; }
.tile.lead .tile-info { position: static; padding: 18px 0 6px; }
.tile.lead .tile-info h3 { font-size: clamp(28px, 3.6vw, 52px); }
.tile.lead .tile-meta .label { color: var(--muted); }
a.tile { color: inherit; }

/* Project pages reuse the case-study styles, in normal flow */
.case.page { position: static; overflow: visible; z-index: auto; }
.case-player { cursor: pointer; border: 0; padding: 0; display: block; }
.case-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-player:hover .play i { background: rgba(212, 42, 47, 0.85); border-color: var(--red); }
.case-player .play i { transition: background .25s, border-color .25s; }
.crumb { display: inline-flex; gap: 10px; margin-bottom: 14px; }
.crumb a { color: var(--paper); border-bottom: 1px solid rgba(236,232,225,0.3); }
.case-note { margin: 18px 0 0; font-style: italic; color: var(--muted); font-size: 16px; }
.scene { color: inherit; }
.scene img { transition: filter .4s; filter: brightness(0.9); }
.scene:hover img { filter: none; }
.project-press { padding: 0 var(--gutter) clamp(40px, 6vw, 70px); }
.case-next { color: inherit; }

/* Inner pages (bio, press, contact) */
.inner-head { padding: clamp(40px, 7vw, 100px) var(--gutter) 0; }
.inner-head h1 { margin: 12px 0 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(44px, 8vw, 120px); line-height: 0.9; text-transform: uppercase; }
.inner-head .rule { margin-top: 22px; }
.bio-full { display: grid; gap: 20px; max-width: 70ch; }
.bio-full p { margin: 0; font-size: 18px; line-height: 1.75; color: #d2cdc4; }
.more-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--red); padding-bottom: 4px; }
.press-all { border-top: 1px solid var(--line); }
.press-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .25s; }
.press-row:hover { background: rgba(236,232,225,0.03); }
.press-row .outlet { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.press-row .ttl { font-size: 19px; line-height: 1.35; }
.press-row .about { font-size: 14px; color: var(--muted); font-style: italic; text-align: right; }
a.press-item { color: inherit; transition: background .25s; }
a.press-item:hover blockquote { color: #fff; }
.contact-cell a { border-bottom: 1px solid rgba(236,232,225,0.25); }
.contact-cell a:hover { border-color: var(--red); }
.nav-links a[aria-current="page"] { color: var(--paper); }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding: 0 var(--gutter); }

@media (max-width: 860px) {
  .press-row { grid-template-columns: 1fr; gap: 6px; }
  .press-row .about { text-align: left; }
}
@media (max-width: 520px) {
  .nav-links a:not(.keep) { display: none; }
  .nav-links a.keep-sm { display: inline; }
}
/* width/height attributes are for layout stability; let CSS decide the box */
.row img, .scene img, .about-photo img { height: auto; }
/* Filtered-out rows: .row sets display:grid, which would otherwise beat the hidden attribute */
.index .row[hidden] { display: none; }
