/* austen.video */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #131315;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  --text: #f3f0ea;
  --muted: #8f8b85;
  --dim: #5f5c58;
  --accent: #ff4530;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
html.lock { overflow: hidden; }
body {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
em, .serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

main, .foot { position: relative; z-index: 1; }

/* film grain, on the background only */
.grain {
  position: fixed;
  inset: -120px;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-40px, 24px); }
  40%  { transform: translate(28px, -36px); }
  60%  { transform: translate(-18px, 44px); }
  80%  { transform: translate(38px, 12px); }
  100% { transform: translate(0, 0); }
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10, 10, 11, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
}
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.wordmark i { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .25s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links .nav-cta {
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: background .25s, border-color .25s;
}
.nav-links .nav-cta:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ── hero / reel ─────────────────────────────────── */
.hero { padding: calc(var(--nav-h) + 4px) var(--gutter) 0; }
.reel-wrap {
  position: relative;
  margin: 0 auto;
  width: min(100%, calc((100svh - var(--nav-h) - 28px) * 16 / 9));
  min-width: min(100%, 640px);
}
.reel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 100% at 28% 18%, #1f1d22 0%, #0f0f11 62%);
  box-shadow: 0 0 0 1px var(--line), 0 50px 140px -50px rgba(0, 0, 0, .9);
}
.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 2s var(--ease);
}
.reel-poster.ready { opacity: 1; }
.reel:hover .reel-poster.ready { transform: scale(1.055); }
.reel-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .3) 0%, rgba(10, 10, 11, 0) 20%, rgba(10, 10, 11, 0) 62%, rgba(10, 10, 11, .72) 100%),
    radial-gradient(60% 50% at 0% 100%, rgba(10, 10, 11, .45), rgba(10, 10, 11, 0) 70%);
}
.reel-hit { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; border-radius: var(--radius); }
.reel-hit:focus-visible { outline-offset: -4px; }
.reel-play {
  position: relative;
  width: clamp(78px, 8.6vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .6s var(--ease), background .35s, border-color .35s;
}
.reel-play::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  animation: ring 3s var(--ease) infinite;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
.reel-play svg { width: 30%; margin-left: 6%; fill: #fff; transition: fill .35s; }
.reel-hit:hover .reel-play, .reel-hit:focus-visible .reel-play {
  transform: scale(1.08);
  background: #fff;
  border-color: #fff;
}
.reel-hit:hover .reel-play svg, .reel-hit:focus-visible .reel-play svg { fill: var(--bg); }
.reel-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(56px, 6vw, 90px));
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  z-index: 3;
}
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.reel-meta {
  position: absolute;
  left: clamp(20px, 3.2vw, 52px);
  bottom: clamp(18px, 2.8vw, 44px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: clamp(22px, 2.5vw, 42px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
  pointer-events: none;
  transition: opacity .5s;
}
.reel-meta #reel-length { font-weight: 400; color: rgba(243, 240, 234, .65); }
.reel-meta #reel-length:not(:empty)::before { content: "·"; margin-right: .5em; }
.rec {
  flex: none;
  width: .34em;
  height: .34em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .5em .1em rgba(255, 69, 48, .65), 0 0 1.4em .2em rgba(255, 69, 48, .3);
  animation: rec 2.2s ease-in-out infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.reel-wrap.playing .reel-meta { opacity: 0; }
.reel-wrap.playing .reel-shade,
.reel-wrap.playing .reel-hit,
.reel-wrap.playing .reel-hint { display: none; }

/* ── past clients ────────────────────────────────── */
.clients {
  max-width: var(--max);
  margin: clamp(96px, 11vw, 170px) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.clients .eyebrow { margin-bottom: clamp(40px, 4.6vw, 70px); }
.logo-wall {
  --k: clamp(32px, 3.8vw, 60px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: clamp(40px, 4.4vw, 70px);
}
.logo-wall li {
  flex: 0 0 calc(100% / var(--cols, 7));
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(8px, 1.1vw, 18px);
}
.logo-wall img {
  width: calc(var(--k) * var(--s, 2));
  max-width: 100%;
  height: auto;
  opacity: .8;
  transition: opacity .35s;
}
.logo-wall li:hover img { opacity: 1; }

/* ── section index ───────────────────────────────── */
.index-wrap {
  max-width: var(--max);
  margin: clamp(90px, 10vw, 150px) auto 0;
  padding: 0 var(--gutter);
}
.index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.index li + li { border-left: 1px solid var(--line); }
.index a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(20px, 2vw, 28px) clamp(16px, 1.8vw, 28px);
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -.015em;
  transition: background .35s, color .3s;
}
.index li:first-child a { padding-left: 2px; }
.index .n { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: var(--accent); font-size: .95em; }
.index .c { margin-left: auto; font-size: 13px; color: var(--dim); letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.index .arr { flex: none; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; color: var(--dim); transition: transform .45s var(--ease), color .3s; align-self: center; }
.index a:hover .arr { transform: translateY(3px); color: var(--text); }
.index a:hover .c { color: var(--muted); }

/* ── work sections ───────────────────────────────── */
.work {
  max-width: var(--max);
  margin: clamp(120px, 14vw, 210px) auto 0;
  padding: 0 var(--gutter);
}
.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 20px clamp(32px, 5vw, 90px);
  align-items: end;
  padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(30px, 4vw, 56px);
}
.work-title {
  display: flex;
  align-items: flex-start;
  gap: .22em;
  font-size: clamp(44px, 7.2vw, 112px);
  line-height: .9;
  font-weight: 550;
  letter-spacing: -.05em;
}
.work-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: .34em;
  letter-spacing: 0;
  color: var(--accent);
  margin-top: .14em;
}
.work-blurb { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 40ch; }
.work-count {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.grid { display: grid; gap: clamp(30px, 3.2vw, 48px) clamp(14px, 1.6vw, 24px); }
.grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--tall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid:not(.all) > .extra { display: none; }

.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; text-align: left; }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s;
}
.grid--tall .thumb { aspect-ratio: 9 / 16; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.9);
  transition: transform 1s var(--ease), filter .5s;
}
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.05); filter: none; }
.card:focus-visible { outline: none; }
.card:focus-visible .thumb { box-shadow: 0 0 0 2px var(--accent); }
.thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: rgba(10, 10, 11, .38);
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s, transform .5s var(--ease), background .3s;
}
.thumb-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 18px;
  margin: -9px 0 0 -5px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.card:hover .thumb-play, .card:focus-visible .thumb-play { opacity: 1; transform: none; }
@media (hover: none) {
  .thumb-play { opacity: .95; transform: scale(.75); }
}
.card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-title { font-size: 16px; font-weight: 500; letter-spacing: -.012em; }
.card-client { font-size: 13px; color: var(--muted); }
.card-title, .card-client { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card--empty .thumb {
  background:
    radial-gradient(130% 120% at 18% 8%, hsl(var(--h, 20) 32% 20%) 0%, hsl(calc(var(--h, 20) + 50) 26% 9%) 58%, #0d0d0f 100%);
}
.thumb-empty {
  position: absolute;
  left: 12px;
  bottom: 11px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}

.more {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(36px, 4vw, 52px) auto 0;
  padding: 13px 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .4s var(--ease); }
.more:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── contact + footer ────────────────────────────── */
.contact {
  max-width: var(--max);
  margin: clamp(150px, 17vw, 260px) auto 0;
  padding: clamp(24px, 2.6vw, 34px) var(--gutter) clamp(90px, 10vw, 140px);
}
.contact h2 {
  margin-top: 18px;
  font-size: clamp(52px, 9.6vw, 164px);
  line-height: .9;
  font-weight: 550;
  letter-spacing: -.055em;
}
.contact h2 em { letter-spacing: -.02em; padding-right: .04em; }
.contact-lines { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(28px, 4vw, 64px); margin-top: clamp(36px, 4vw, 56px); }
.contact-lines a {
  font-size: clamp(20px, 2.3vw, 32px);
  letter-spacing: -.02em;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .3s, color .3s;
}
.contact-lines a:hover { border-color: var(--accent); }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}
.foot a { transition: color .25s; }
.foot a:hover { color: var(--text); }

/* ── lightbox ────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; --side: 104px; }
.lb[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, .9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .35s;
}
.lb.open .lb-backdrop { opacity: 1; }
.lb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .35s, transform .5s var(--ease);
}
.lb.open .lb-stage { opacity: 1; transform: none; }
.lb-frame {
  width: min(calc(100vw - var(--side) * 2), calc((100svh - 150px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 140px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
}
.lb-frame.vertical {
  width: min(calc(100vw - var(--side) * 2), calc((100svh - 150px) * 9 / 16));
  aspect-ratio: 9 / 16;
}
.lb-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lb-caption { display: flex; align-items: baseline; gap: 12px; font-size: 15px; min-width: 0; }
.lb-caption .muted { color: var(--muted); }
.lb-caption .count { margin-left: auto; font-size: 12px; color: var(--dim); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  transition: background .25s, border-color .25s;
}
.lb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 26px; top: 50%; margin-top: -25px; }
.lb-next { right: 26px; top: 50%; margin-top: -25px; }

/* ── reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

.noscript { position: fixed; inset: auto 0 0 0; padding: 14px; text-align: center; background: var(--bg-2); color: var(--muted); font-size: 14px; z-index: 300; }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 1080px) {
  .grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-wall { --cols: 5 !important; --k: clamp(30px, 4.4vw, 44px); }
}
@media (max-width: 860px) {
  .work-head { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .index li + li { border-left: 0; border-top: 1px solid var(--line); }
  .index a, .index li:first-child a { padding-left: 2px; padding-right: 2px; }
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .reel-wrap { min-width: 0; }
  .reel-meta { left: 14px; bottom: 12px; font-size: 18px; }
  .logo-wall { --cols: 3 !important; --k: 31px; row-gap: 36px; }
  .logo-wall li { padding: 0 8px; }
  .lb { --side: 14px; }
  .lb-frame, .lb-frame.vertical { max-height: calc(100svh - 230px); }
  .lb-frame { width: calc(100vw - 28px); }
  .lb-frame.vertical { width: min(calc(100vw - 28px), calc((100svh - 230px) * 9 / 16)); }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); margin-top: 0; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .lb-stage { margin-top: -24px; }
}
@media (max-width: 560px) {
  .grid--wide { grid-template-columns: 1fr; }
  .grid--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .reel-play::before, .rec { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
