:root {
  --black: #0a0a0a;
  --ink: #111;
  --white: #f2efe9;
  --dim: rgba(242, 239, 233, 0.55);
  --faint: rgba(242, 239, 233, 0.14);
  --red: #e0352b;
  --gutter: clamp(16px, 3vw, 40px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s 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%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;
}
.nav__mark img { display: block; height: 26px; width: auto; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links a:hover { opacity: 0.6; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__poster, .hero__video {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%); object-fit: cover;
}
.hero__poster { opacity: 0; transition: opacity 1s; }
.hero__poster.is-loaded { opacity: 1; }
.hero__video { pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.15) 60%, rgba(10,10,10,0.85) 100%); }
.hero__meta { position: absolute; top: 72px; z-index: 2; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.hero__meta--tl { left: var(--gutter); }
.hero__meta--tr { right: var(--gutter); font-variant-numeric: tabular-nums; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.hero__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(24px, 4vw, 48px); }
.wordmark { line-height: 0; width: clamp(200px, 36vw, 540px); }
.wordmark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 30px rgba(0,0,0,0.35)); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(16px, 2.5vw, 32px); flex-wrap: wrap; }
.hero__line { font-size: clamp(18px, 2vw, 28px); line-height: 1.3; color: var(--white); max-width: 30ch; }

.btn-play {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 22px 14px 16px; border: 1px solid var(--white); border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.btn-play__icon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 4px; }
.btn-play:hover { background: var(--white); color: var(--black); }

/* sections */
section:not(.hero) { padding: clamp(80px, 12vw, 180px) var(--gutter); position: relative; }
.section-label { font-weight: 400; color: var(--dim); margin-bottom: clamp(32px, 5vw, 64px); display: flex; gap: 16px; position: relative; z-index: 2; }
.section-label span { color: var(--white); }

/* work: still frame + details, always visible */
.work__list { list-style: none; border-top: 1px solid var(--faint); }
.work__item { border-bottom: 1px solid var(--faint); }
.work__btn {
  width: 100%; text-align: left; display: grid; align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto auto 1fr;
  grid-template-areas: "thumb ." "thumb num" "thumb title" "thumb info" "thumb desc" "thumb .";
  column-gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 40px) 0;
}
.work__thumb { grid-area: thumb; display: block; aspect-ratio: 16 / 9; width: 100%; background: var(--ink); overflow: hidden; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.6s; }
.work__num { grid-area: num; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.work__title {
  grid-area: title;
  font-weight: 500; font-variation-settings: "wdth" 100;
  font-size: clamp(28px, 3.4vw, 58px); line-height: 1; letter-spacing: -0.03em;
}
.work__title .x { font-weight: 300; color: var(--dim); padding: 0 0.15em; }
.work__info { grid-area: info; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.work__info b { color: var(--white); font-weight: 500; }
.work__desc { grid-area: desc; max-width: 44ch; margin-top: 14px; color: var(--dim); font-size: 15px; line-height: 1.5; }

@media (hover: hover) {
  .work__btn:hover .work__thumb img { transform: scale(1.035); }
  .work__btn:hover .work__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
}

/* narrow: stack the still above the details */
@media (max-width: 720px) {
  .work__btn { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "thumb" "title" "info" "desc"; }
  .work__thumb { margin-bottom: 16px; }
  .work__num { display: none; }
  .work__info { margin-top: 10px; }
}

/* about */
.about__pillars { list-style: none; font-weight: 500; letter-spacing: -0.04em; font-size: clamp(40px, 7vw, 116px); line-height: 1; border-bottom: 1px solid var(--faint); }
.about__pillars li { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 48px); padding: clamp(18px, 2.6vw, 36px) 0; border-top: 1px solid var(--faint); }
.about__pillars .mono { color: var(--dim); letter-spacing: 0.08em; flex-shrink: 0; }
.about__body { display: grid; grid-template-columns: minmax(0, 52ch); gap: clamp(32px, 5vw, 96px); margin-top: clamp(56px, 8vw, 120px); }
.about__block h3 { color: var(--white); font-weight: 500; margin-bottom: 18px; }
.about__block p { color: var(--dim); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.about__block .about__identity { color: var(--white); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.about__lead {
  font-weight: 500; font-variation-settings: "wdth" 100;
  font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; max-width: 18ch; letter-spacing: -0.03em;
  margin-top: clamp(72px, 10vw, 150px); text-wrap: balance;
}
@media (max-width: 720px) { .about__body { grid-template-columns: 1fr; } }
.about__clients { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--faint); color: var(--dim); }

/* contact */
.contact { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
.contact__prompt { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.contact__email {
  font-weight: 500; font-variation-settings: "wdth" 100;
  font-size: clamp(24px, 5vw, 88px); line-height: 1; letter-spacing: -0.03em;
  overflow-wrap: anywhere; width: fit-content; max-width: 100%;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size 0.5s;
  padding-bottom: 6px;
}
.contact__email:hover { background-size: 100% 3px; }
.contact__links { display: flex; gap: 32px; margin-top: clamp(32px, 4vw, 56px); }
.contact__links a:hover { color: var(--dim); }

.footer { display: flex; justify-content: space-between; padding: 24px var(--gutter); border-top: 1px solid var(--faint); color: var(--dim); gap: 16px; flex-wrap: wrap; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,0.97); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px var(--gutter) 40px; opacity: 0; transition: opacity 0.35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__frame { width: min(100%, calc((100svh - 160px) * var(--ar, 1.7778))); aspect-ratio: var(--ar, 16 / 9); background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; transition: opacity 0.45s ease-in; }
.lightbox__frame.is-ending iframe { opacity: 0; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); color: var(--dim); }
.lightbox__close:hover { color: var(--white); }
.lightbox__caption { margin-top: 20px; color: var(--dim); text-align: center; }
.lightbox__caption b { color: var(--white); font-weight: 500; }

/* "see all work" link under the featured list */
.more-link {
  display: inline-flex; align-items: baseline; gap: 0.3em; margin-top: clamp(32px, 4vw, 56px);
  font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(26px, 3vw, 44px); line-height: 1;
}
.more-link span { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.more-link:hover span { transform: translateX(0.3em); }

/* ---------- all work page ---------- */
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.archive__head { padding: clamp(110px, 13vw, 170px) var(--gutter) 0; text-align: center; }
.archive__title { font-weight: 500; letter-spacing: -0.04em; font-size: clamp(56px, 10vw, 160px); line-height: 0.9; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(16px, 2vw, 28px); margin-top: clamp(20px, 2.5vw, 36px); }
.filters button {
  font-weight: 500; letter-spacing: -0.02em; font-size: clamp(18px, 2vw, 30px); line-height: 1.2;
  color: var(--dim); padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s;
}
.filters button:hover { color: var(--white); }
.filters button[aria-pressed="true"] { color: var(--white); border-color: var(--white); }
.archive .archive__section { padding-top: clamp(48px, 6vw, 88px); padding-bottom: 0; }
.contact--short { min-height: 0; }

.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(12px, 1.4vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--tall { grid-template-columns: repeat(auto-fill, minmax(min(45%, 200px), 1fr)); }
@media (max-width: 720px) { .grid--wide { grid-template-columns: 1fr; } }

.tile { position: relative; display: block; width: 100%; text-align: left; cursor: pointer; }
.tile[hidden] { display: none; }
.tile__media { display: block; position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.grid--tall .tile__media { aspect-ratio: 9 / 16; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.6s, transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.5s; }
.tile.is-loaded .tile__media img { opacity: 1; }
.tile__desc {
  position: absolute; inset: auto 0 0 0; padding: 56px 20px 18px; font-size: 15px; line-height: 1.45; max-width: 52ch;
  background: linear-gradient(to top, rgba(5,5,5,0.85), rgba(5,5,5,0));
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s;
}
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; }
.tile__title { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.15; }
.tile__title .x { color: var(--dim); padding: 0 0.2em; }
.tile__type { color: var(--dim); font-size: 14px; white-space: nowrap; }

/* "View" label that follows the cursor over a still */
.tile__view {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10,10,10,0.75); color: var(--white); padding: 7px 10px;
  opacity: 0; transition: opacity 0.2s;
}

@media (hover: hover) {
  .tile:hover .tile__media img { transform: scale(1.03); filter: brightness(0.8); }
  .tile:hover .tile__desc, .tile:focus-visible .tile__desc { opacity: 1; transform: none; }
  .tile:hover .tile__view { opacity: 1; }
}
.tile__note { display: none; color: var(--dim); font-size: 15px; line-height: 1.45; padding-top: 6px; }
/* touch screens: no hover, so show the description under the title instead */
@media (hover: none) {
  .tile__desc, .tile__view { display: none; }
  .tile__note { display: block; }
}

/* about page: clear the fixed nav */
.about--page { padding-top: clamp(110px, 13vw, 170px) !important; }

/* contact page */
.contact-page { padding-top: clamp(110px, 13vw, 170px) !important; min-height: 80svh; }
.contact-page__title { font-weight: 500; letter-spacing: -0.04em; font-size: clamp(56px, 10vw, 160px); line-height: 0.9; }
.contact-page__title span { color: var(--dim); }
.contact-page__intro { color: var(--dim); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 46ch; margin: clamp(24px, 3vw, 40px) 0 clamp(28px, 3.5vw, 48px); }
.contact-page__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 8vw, 110px); padding-top: 24px; border-top: 1px solid var(--faint); }
.contact-page__grid h2 { font-weight: 400; color: var(--dim); margin-bottom: 12px; }
.contact-page__grid p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.contact-page__grid a:hover { color: var(--dim); }
@media (max-width: 720px) { .contact-page__grid { grid-template-columns: 1fr; } }
