/* Reid & Reid — notreid.com, v2 "The Set"
   One black studio. The shaders are the lighting crew: they light the set, never the films.
   Everything here works without them; .lit marks a set whose shader is on. */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --ink: #f3f0ea;
  --ink-2: #bdb8af;
  --muted: #7a766f;
  --line: rgba(243, 240, 234, 0.12);
  --accent: #c8102e;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.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(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Film grain over everything, very quiet. */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 26px;
  border: 1px solid var(--ink);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }

.link {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s;
}
.link:hover { color: var(--ink); }

/* Shader canvases: invisible until their set is lit, so the CSS set underneath is the fallback. */
.set-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.lit > .set-canvas { opacity: 1; }

/* ---------- Intro: the mark opens like studio doors ---------- */

.intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .intro {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  cursor: pointer;
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: #000;
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.door.l { left: 0; }
.door.r { right: 0; }
.door svg {
  position: absolute; top: 50%;
  height: clamp(84px, 13vw, 140px); width: auto;
  aspect-ratio: 562 / 1040;
  fill: var(--ink);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.7s ease 0.05s;
}
.door.l svg { right: 0; }
.door.r svg { left: 0; }
.seam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.95) 50%, transparent);
  box-shadow: 0 0 18px 1px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%) scaleY(0);
  transition: transform 0.75s cubic-bezier(0.6, 0, 0.2, 1) 0.35s, opacity 0.5s ease;
}
.intro-go .door svg { opacity: 1; }
.intro-go .seam { transform: translateX(-50%) scaleY(1); }
.intro-open .door.l { transform: translateX(-100%); }
.intro-open .door.r { transform: translateX(100%); }
.intro-open .seam { opacity: 0; transition-delay: 0s; }
.slow .door { transition-duration: 5.75s; }
.slow .door svg { transition: opacity 3.5s ease 0.25s; }
.slow .seam { transition: transform 3.75s cubic-bezier(0.6, 0, 0.2, 1) 1.75s, opacity 2.5s ease; }

/* The light behind the doors (shader): sits under them, adds itself onto the reel. */
.burst {
  position: fixed; inset: 0; z-index: 199;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-top: 16px; padding-bottom: 16px;
  border-color: var(--line);
}
.wm { height: 19px; width: auto; aspect-ratio: 7934 / 1075; fill: currentColor; }
.wm .amp { fill: var(--accent); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav-links a {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(5,5,5,0.82) 0%, rgba(5,5,5,0.45) 28%, transparent 46%),
    linear-gradient(to top, rgba(5,5,5,0.85) 0%, transparent 34%),
    linear-gradient(to bottom, rgba(5,5,5,0.55), transparent 22%);
}
.hero-copy {
  position: absolute; left: var(--gutter);
  bottom: clamp(40px, 9vh, 96px);
  width: min(34vw, 560px);
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 96px);
  line-height: 0.95;
  margin: 18px 0 22px;
  font-variation-settings: "opsz" 96;
}
.hero h1 em { font-style: italic; }
.lede {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 34ch;
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 32px; }

.now {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  display: flex; align-items: baseline; gap: 8px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.now-n { color: var(--ink); }
.now-sep, .now-dot { color: var(--muted); }
.now-who { font: italic 400 15px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin-left: 6px; }
.now.swap .now-who, .now.swap .now-what, .now.swap .now-n { opacity: 0; }
.now-who, .now-what, .now-n { transition: opacity 0.35s ease; }

/* ---------- Sign: the position, read around the house sign ---------- */

.sign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  max-width: calc(1480px + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(100px, 13vw, 190px) var(--gutter) clamp(80px, 10vw, 150px);
}
.sign-line {
  font-family: var(--serif);
  font-size: clamp(32px, 3.7vw, 64px);
  line-height: 1.03;
  font-variation-settings: "opsz" 96;
  max-width: 11ch;
}
.sign-line:first-child { justify-self: end; text-align: right; }
.sign-line.em { font-style: italic; color: var(--ink-2); }

.sign-stage {
  position: relative;
  width: clamp(260px, 31vw, 500px);
  aspect-ratio: 1 / 1.12;
}
/* Fallback sign: the flat mark on a glossy floor. */
.sign-flat {
  position: absolute; left: 50%; top: 41%;
  width: 66%; height: auto;
  aspect-ratio: 1124 / 1040;
  transform: translate(-50%, -50%);
  fill: var(--ink);
  -webkit-box-reflect: below 6px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.18));
  transition: opacity 0.6s ease;
}
.sign-stage.lit .sign-flat { opacity: 0; }

/* ---------- Sections ---------- */

.work, .talent { padding: 0 var(--gutter) clamp(110px, 14vw, 200px); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head h2, .soon-head h2, .contact h2 {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  margin: 16px 0 20px;
  font-variation-settings: "opsz" 96;
}
.sec-lede { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); max-width: 52ch; }

/* ---------- Films: screens standing on the studio's black glass floor ---------- */

.film {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(96px, 12vw, 170px);
}
.film.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.film.flip .film-media { order: 2; }

.film-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
}
.film-screen {
  position: absolute; inset: 0;
  background: #000;
  overflow: hidden;
  -webkit-box-reflect: below 3px linear-gradient(transparent 74%, rgba(255, 255, 255, 0.13));
}
.film-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s;
}
.film-media:hover video { transform: scale(1.025); }

.film-n { font: italic 400 15px/1 var(--serif); color: var(--muted); }
.film-brand {
  margin-top: 22px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
}
.film h3 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.02;
  margin: 10px 0 16px;
  font-variation-settings: "opsz" 72;
}
.film-meta > p:not([class]) { color: var(--ink-2); max-width: 34ch; }
.film-rt {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Coming soon: empty plinths under real light ---------- */

.soon { margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.soon-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }

.slot {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  background: #070707;
  border: 1px solid var(--line);
  overflow: hidden;
}
.slot .cone, .contact .cone {
  position: absolute; left: 50%; top: -4%;
  width: 90%; height: 84%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255,255,255,0.16), rgba(255,255,255,0.05) 60%, rgba(255,255,255,0));
  clip-path: polygon(44% 0, 56% 0, 88% 100%, 12% 100%);
  filter: blur(10px);
  animation: breathe 8s ease-in-out infinite;
}
.slot .pool, .contact .pool {
  position: absolute; left: 50%; bottom: 13%;
  width: 84%; height: 16%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 60%, transparent);
  animation: breathe 8s ease-in-out infinite;
}
.slot .plinth {
  position: absolute; left: 50%; bottom: 19%;
  width: 30%; height: 28%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #1c1c1c, #0d0d0d 30%, #080808);
  box-shadow: 0 18px 30px -10px rgba(0,0,0,0.9);
}
.slot .plinth::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7%;
  background: linear-gradient(to bottom, #3a3a3a, #202020);
}
.slot .cone, .slot .pool, .slot .plinth, .contact .cone, .contact .pool { transition: opacity 0.8s ease; }
.slot.lit .cone, .slot.lit .pool, .slot.lit .plinth,
.contact.lit .cone, .contact.lit .pool { opacity: 0; animation: none; }
.slot-n {
  position: absolute; top: 16px; left: 18px; z-index: 1;
  font: italic 400 14px/1 var(--serif); color: var(--muted);
}
.slot-label {
  position: absolute; left: 0; right: 0; bottom: 6%; z-index: 1;
  text-align: center;
  font: italic 400 clamp(16px, 1.7vw, 22px)/1 var(--serif);
  color: var(--ink-2);
  transition: color 0.3s;
}
.slot:nth-child(2) .cone, .slot:nth-child(2) .pool { animation-delay: -2.6s; }
.slot:nth-child(3) .cone, .slot:nth-child(3) .pool { animation-delay: -5.2s; }
.slot.open .slot-label { color: var(--ink); }
.slot.open:not(.lit):hover .cone, .slot.open:not(.lit):hover .pool { animation: none; opacity: 1; filter: blur(10px) brightness(1.7); }
.slot.open:not(.lit):hover .pool { filter: brightness(1.7); }
.slot.open:not(.lit):hover .slot-label, .slot.open:not(.lit):focus-visible .slot-label { color: var(--accent); }

@keyframes breathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ---------- Talent: comp cards, grey until you look ---------- */

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.card-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 5; overflow: hidden; background: #000;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.9);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.card-media:hover img, .card-media:focus-visible img { transform: scale(1.04); filter: none; }
.card-media .set-canvas { z-index: 1; filter: grayscale(1) brightness(0.9); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 0.6s var(--ease); }
.card-media:hover .set-canvas, .card-media:focus-visible .set-canvas { filter: none; }
.card-media.lit img { visibility: hidden; }
.card-media.lit:hover .set-canvas, .card-media.lit:focus-visible .set-canvas { transform: scale(1.04); }
.card-hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 9px 12px;
  background: rgba(5, 5, 5, 0.7);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.card-media:hover .card-hint, .card-media:focus-visible .card-hint { opacity: 1; transform: none; }
.card-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 9px;
  border: 1px solid rgba(243, 240, 234, 0.55);
  background: rgba(5, 5, 5, 0.35);
}
.card h3 { font-size: clamp(24px, 2.2vw, 32px); margin: 20px 0 14px; font-variation-settings: "opsz" 48; }
.stats { margin: 0; border-top: 1px solid var(--line); }
.stats div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.stats dt {
  font: 500 10.5px/1.9 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin: 0; color: var(--ink-2); }
.stats dd.no { color: var(--accent); font-weight: 500; }
.gpu .stats .real { cursor: help; }
.handle {
  display: inline-block; margin-top: 14px;
  font-size: 13px; color: var(--muted);
  transition: color 0.2s;
}
.handle:hover { color: var(--ink); }

/* ---------- Contact: the spot is open, and it finds you ---------- */

.contact {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--gutter);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, #0f0f0f, var(--bg) 60%);
  text-align: center;
}
.contact .cone { width: min(1100px, 150vw); height: 88%; top: 0; }
.contact .pool { width: min(900px, 130vw); height: 22%; bottom: 4%; }
.contact-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.contact .sec-lede { margin: 0 auto 36px; }
.contact-alt { margin-top: 22px; font-size: 13px; color: var(--muted); }
.contact-alt a { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.contact-alt a:hover { color: var(--ink); }

/* ---------- Footer ---------- */

.foot {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 72px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot-mark { height: 40px; width: auto; aspect-ratio: 1124 / 1040; fill: var(--ink); margin-bottom: 8px; }
.foot-line { font: italic 400 clamp(20px, 2.2vw, 26px)/1.2 var(--serif); }
.foot-small { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Theater ---------- */

.theater {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--ink);
}
.theater::backdrop { background: rgba(0, 0, 0, 0.85); }
.theater[open] { display: grid; place-items: center; animation: fade 0.35s var(--ease); }
.theater-inner { width: min(92vw, calc((100vh - 140px) * 16 / 9)); }
.theater video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.theater-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; }
.theater-title { font: italic 400 20px/1.2 var(--serif); }
.theater-close {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); padding: 10px 0;
}
.theater-close:hover { color: var(--ink); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Reveal on scroll (JS only) ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.slots [data-reveal]:nth-child(2), .cards [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.slots [data-reveal]:nth-child(3), .cards [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.cards [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.sign-line.em[data-reveal] { transition-delay: 0.25s; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sign { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .sign-line, .sign-line:first-child { justify-self: center; text-align: center; max-width: 14ch; }
  .sign-stage { width: min(80vw, 420px); }
}

@media (max-width: 760px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .wm { height: 14px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.16em; }

  .hero-video { object-position: 58% 50%; }
  .hero-copy { bottom: 92px; width: auto; right: var(--gutter); }
  .hero-shade {
    background:
      linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.6) 40%, transparent 65%),
      linear-gradient(to bottom, rgba(5,5,5,0.55), transparent 22%);
  }
  .now { left: var(--gutter); right: auto; bottom: 36px; }

  .film, .film.flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(72px, 10vw, 140px); }
  .film.flip .film-media { order: 0; }
  .film-screen { -webkit-box-reflect: none; }

  .slots { grid-template-columns: 1fr 1fr; }
  .slot.open { grid-column: span 2; aspect-ratio: 8 / 5; }
  .slot.open .plinth { width: 16%; }

  .card-hint { opacity: 1; transform: none; }
  .theater-inner { width: 100vw; }
  .theater-bar { padding: 14px var(--gutter); }
}

@media (max-width: 400px) {
  .cards { gap: 12px; }
  .card h3 { font-size: 21px; }
  .stats div { font-size: 12px; }
  .stats dt { font-size: 9.5px; letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .slot .cone, .slot .pool, .contact .cone, .contact .pool { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
