:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --text: #ece8e1;
  --muted: #8f8a82;
  --line: #262420;
  --accent: #c9a46a;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(10,10,10,.92), rgba(10,10,10,0));
}
.brand { font: 600 15px var(--body); letter-spacing: .28em; text-transform: uppercase; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav nav a {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav nav a:hover { color: var(--text); }

/* Reel */
.reel { padding-top: 64px; background: #000; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.frame iframe, .frame img, .frame .empty {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.reel .frame { max-height: calc(100vh - 64px); max-width: calc((100vh - 64px) * 16 / 9); margin: 0 auto; }

/* Click-to-play poster */
.poster { cursor: pointer; }
.poster img { object-fit: cover; transition: transform .6s ease, opacity .3s; opacity: .85; }
.poster:hover img { transform: scale(1.03); opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.play::after {
  content: ""; margin-left: 5px;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.poster:hover .play { background: rgba(201,164,106,.35); transform: translate(-50%, -50%) scale(1.06); }
.empty {
  display: grid; place-items: center; background: var(--bg-2);
  color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}

/* Title */
.title { text-align: center; padding: clamp(56px, 9vw, 120px) var(--pad) clamp(24px, 4vw, 48px); }
h1 {
  font: 500 clamp(44px, 8vw, 104px)/1 var(--display); margin: 0; letter-spacing: .01em;
}
.kicker {
  margin: 18px 0 0; color: var(--muted);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
}
.dot { color: var(--accent); padding: 0 .4em; }

/* Sections */
.section { scroll-margin-top: 40px; padding: clamp(48px, 8vw, 110px) var(--pad); max-width: 1400px; margin: 0 auto; }
.label {
  font: 500 12px var(--body); letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 clamp(28px, 4vw, 48px);
  display: flex; align-items: center; gap: 18px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.project:first-child { grid-column: 1 / -1; }
.project:first-child h3 { font-size: clamp(26px, 3.2vw, 40px); }
.project h3 { font: 500 clamp(22px, 2.4vw, 30px)/1.2 var(--display); margin: 18px 0 4px; }
.project p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.project .frame { border-radius: 2px; }

/* About */
.about-inner { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-inner:has(.portrait[hidden]) { grid-template-columns: 1fr; max-width: 820px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.15); display: block; }
.bio p { font: 400 clamp(21px, 2.2vw, 28px)/1.5 var(--display); margin: 0 0 1em; }
.bio p:first-child::first-letter { color: var(--accent); }
.bio .greeting {
  font: italic 500 clamp(40px, 5vw, 64px)/1 var(--display);
  color: var(--accent); margin-bottom: .45em;
}
.bio .greeting::first-letter { color: inherit; }

/* Gear */
.gear-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.gear-group h3 {
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font: 500 11px var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.gear-group ul { list-style: none; margin: 0; padding: 0; }
.gear-group li { font: 500 clamp(18px, 1.6vw, 22px)/1.35 var(--display); margin-bottom: .55em; }

/* Clients */
.clients ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 0;
}
.clients li {
  font: 500 clamp(20px, 2.4vw, 30px) var(--display); color: var(--text);
}
.clients li a { border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.clients li a:hover { color: var(--accent); border-color: var(--accent); }
.clients li:not(:last-child)::after { content: "/"; color: var(--line); margin: 0 .7em; }

/* Contact */
.contact { text-align: center; }
.contact .label::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.lede { font: 500 clamp(32px, 5vw, 60px)/1.15 var(--display); margin: 0 0 32px; }
#contact-links { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.email {
  font-size: clamp(16px, 2vw, 20px); letter-spacing: .06em;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
}
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.socials a, .phone {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.socials a:hover, .email:hover { color: var(--accent); }

.footer {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 28px var(--pad); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

/* Film burns: a fixed, page-wide light-leak layer behind everything.
   Three of your real film burns drift and breathe slowly; content scrolls over them. */
body { overflow-x: hidden; }
.filmbg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: var(--bg);
}
.filmbg .leak {
  position: absolute; width: 85vmax; height: 85vmax;
  background-size: cover; background-position: center;
  mix-blend-mode: screen; filter: blur(48px) saturate(1.25);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  will-change: transform, opacity;
  translate: 0 var(--shift, 0);
}
.leak-orange { background-image: url("images/burn-orange.jpg"); top: -30vmax; right: -38vmax; animation: leakA 26s ease-in-out infinite; }
.leak-violet { background-image: url("images/burn-violet.jpg"); bottom: -40vmax; left: -42vmax; animation: leakB 32s ease-in-out infinite; }
.leak-haze   { background-image: url("images/burn-haze.jpg");   top: 25vh; left: 20vw; width: 70vmax; height: 70vmax; animation: leakC 40s ease-in-out infinite; }
@keyframes leakA {
  0%, 100% { opacity: .42; transform: translate(0, 0) rotate(0deg); }
  30% { opacity: .20; transform: translate(-6vw, 8vh) rotate(8deg); }
  55% { opacity: .55; transform: translate(-12vw, 2vh) rotate(-4deg); }
  58% { opacity: .30; }
  80% { opacity: .48; transform: translate(-4vw, -4vh) rotate(3deg); }
}
@keyframes leakB {
  0%, 100% { opacity: .28; transform: translate(0, 0) rotate(0deg); }
  40% { opacity: .45; transform: translate(10vw, -10vh) rotate(-10deg); }
  70% { opacity: .14; transform: translate(4vw, -4vh) rotate(5deg); }
}
@keyframes leakC {
  0%, 100% { opacity: .00; transform: translate(0, 0) scale(.9); }
  45% { opacity: .22; transform: translate(-14vw, 10vh) scale(1.1); }
  60% { opacity: .30; }
  85% { opacity: .05; transform: translate(10vw, -8vh) scale(1); }
}
/* fine film grain over the whole page */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .filmbg .leak, .grain { animation: none; } }

/* About: portrait + BTS */
.portrait { position: relative; }
.portrait::after {
  /* thin film-frame edge */
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.bts {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid; gap: clamp(10px, 1.4vw, 18px);
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.bts figure { margin: 0; position: relative; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.bts figure:first-child { grid-row: span 2; }
.bts figure:nth-child(2) { grid-column: span 2; }
.bts img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.bts figure:hover img { transform: scale(1.03); }
.bts figcaption {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.8);
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.bts { aspect-ratio: 16 / 7; }

/* Stills strip */
.stills-wrap { padding-bottom: clamp(48px, 8vw, 110px); }
.stills-head { padding-bottom: 0; }
.stills-head .label { margin-bottom: 10px; }
.stills-note { margin: 0 0 clamp(24px, 3vw, 36px); color: var(--muted); font-size: 14px; }
.stills {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 var(--pad) 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.stills img {
  height: clamp(220px, 34vw, 420px); width: auto; flex: none; display: block;
  scroll-snap-align: start; cursor: zoom-in; background: var(--bg-2);
  transition: opacity .3s;
}
.stills:hover img { opacity: .75; }
.stills img:hover { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(5,5,5,.94);
  display: grid; place-items: center; padding: 4vmin; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .reel { padding-top: 56px; }
  .nav { padding: 16px var(--pad); }
  .brand { font-size: 12px; letter-spacing: .2em; }
  .nav nav a { font-size: 11px; letter-spacing: .16em; }
  .grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .gear-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .bts { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .bts figure, .bts figure:first-child, .bts figure:nth-child(2) { grid-row: auto; grid-column: auto; aspect-ratio: 4 / 5; }
  .bts figure:first-child, .bts figure:nth-child(4) { grid-column: span 2; aspect-ratio: 3 / 2; }
  .filmbg .leak { filter: blur(32px) saturate(1.25); }
  .filmbg { opacity: .75; }
  .clients ul { flex-direction: column; }
  .clients li::after { display: none; }
  .play { width: 60px; height: 60px; }
  .footer { flex-direction: column; text-align: center; }
}

