/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0d0c0b;
  --ink-2: #171513;
  --paper: #efe9df;
  --muted: #9a9286;
  --line: rgba(239, 233, 223, 0.14);
  --rec: #ff4b1f;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 6px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  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%); }
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: .6em 1em; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.rec { display: inline-flex; align-items: center; gap: .5em; color: var(--rec); }
.rec__dot {
  display: inline-block; width: .6em; height: .6em; border-radius: 50%;
  background: var(--rec); animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  mix-blend-mode: difference;
}
.bar__logo {
  font-weight: 900; font-stretch: 125%; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em;
  position: relative;
}
.bar__logo .dot {
  position: absolute; top: .1em; right: -.5em; width: .35em; height: .35em; border-radius: 50%; background: var(--paper);
}
.bar__nav { display: flex; gap: clamp(14px, 2.5vw, 34px); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.bar__nav a { text-decoration: none; padding: 6px 0; position: relative; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.bar__nav a:hover::after { transform: scaleX(1); }
.bar__lang { border: 1px solid currentColor; border-radius: 99px; padding: 5px 9px !important; line-height: 1; align-self: center; }
.bar__lang::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 88px var(--gutter) 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero__meta { display: flex; gap: 1.6em; color: var(--muted); }
.hero__meta #timecode { color: var(--paper); font-variant-numeric: tabular-nums; }
.hero__name {
  align-self: center;
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(5.5rem, 21vw, 24rem);
  line-height: .8;
  letter-spacing: -.025em;
  display: flex; flex-direction: column;
  margin: .25em 0;
  position: relative; z-index: 2;
  pointer-events: none;
}
.hero__line { display: block; }
.hero__line--indent { padding-left: 0; }
.hero__sticker {
  position: absolute; z-index: 1;
  width: clamp(170px, 21vw, 380px); height: auto;
  right: 7vw; top: 48%;
  transform: translateY(-46%) rotate(-4deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
  transition: transform .6s var(--ease);
}
.hero__sticker:hover { transform: translateY(-48%) rotate(2deg) scale(1.03); }
.hero__foot {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.hero__lede { max-width: 30ch; font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.25; font-weight: 500; }
.hero__scroll { text-decoration: none; display: inline-flex; gap: .6em; align-items: center; color: var(--muted); transition: color .2s; }
.hero__scroll:hover { color: var(--paper); }
.hero__scroll span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; display: flex; align-items: center; gap: 24px; }
.ticker__label { flex: none; padding-left: var(--gutter); color: var(--muted); }
.ticker__track { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__list {
  display: flex; flex: none; gap: 0; margin: 0; padding: 0; list-style: none;
  animation: marquee 38s linear infinite;
}
.ticker__list li {
  font-weight: 800; font-stretch: 110%; font-size: clamp(1.3rem, 2.6vw, 2.2rem); text-transform: uppercase; white-space: nowrap;
  letter-spacing: -.01em;
}
.ticker__list li::after { content: "✦"; color: var(--rec); font-size: .55em; margin: 0 .9em; vertical-align: .35em; }
.ticker:hover .ticker__list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 160px) var(--gutter) 0; }
.section__head {
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 14px; align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section__no { color: var(--rec); align-self: start; padding-top: .6em; }
.section__title {
  font-weight: 900; font-stretch: 80%; text-transform: uppercase;
  font-size: clamp(3.2rem, 10vw, 9rem); line-height: .85; letter-spacing: -.02em;
}
.section__intro { grid-column: 2; max-width: 46ch; color: var(--muted); }
.tap-hint { display: none; }
@media (hover: none) { .hover-hint { display: none; } .tap-hint { display: inline; } }

/* ---------- Film tiles ---------- */
.films { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.films--wide { grid-template-columns: repeat(3, 1fr); }
.film--feature { grid-column: 1 / -1; }
.films--tall { grid-template-columns: repeat(5, 1fr); }

.film { text-decoration: none; display: block; cursor: pointer; }
.film__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-2); aspect-ratio: 16 / 9;
}
.film--tall .film__media { aspect-ratio: 9 / 16; }
.film__media img, .film__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.film__media img, .film__media video { transition: transform .8s var(--ease); }
.film:hover .film__media img, .film:hover .film__media video { transform: scale(1.03); }

.film__badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(13,12,11,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .45em .7em; border-radius: 99px; font-size: .62rem;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease);
}
.film.is-playing .film__badge { opacity: 1; transform: none; }
.film__play {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--paper);
  transform: scale(.85); opacity: .92; transition: transform .35s var(--ease), background .2s;
}
.film__play::before {
  content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink);
}
.film--feature .film__play { width: 84px; height: 84px; right: 24px; bottom: 24px; }
.film--feature .film__play::before { border-width: 13px 0 13px 21px; }
.film:hover .film__play, .film:focus-visible .film__play { transform: scale(1); background: var(--rec); }

.film__info {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: baseline;
  padding-top: 12px;
}
.film__idx { color: var(--rec); }
.film__title { font-weight: 800; font-stretch: 90%; font-size: 1.15rem; line-height: 1.15; }
.film--feature .film__title { font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-stretch: 80%; text-transform: uppercase; }
.film__kind { grid-column: 2; color: var(--muted); font-size: .9rem; }
.film__desc { grid-column: 2; max-width: 56ch; margin-top: 6px; font-size: 1rem; color: var(--paper); opacity: .85; }
.film__meta { grid-column: 3; grid-row: 1; color: var(--muted); }
.film--tall .film__info { grid-template-columns: auto 1fr; }
.film--tall .film__meta { grid-column: 2; grid-row: auto; }

.feed-head {
  display: flex; align-items: center; gap: .8em;
  margin: clamp(56px, 7vw, 96px) 0 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--paper);
}
.feed-head__fmt { margin-left: auto; color: var(--muted); }

/* ---------- Stills ---------- */
.shoot + .shoot { margin-top: clamp(40px, 5vw, 72px); }
.shoot__title { color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.shoot__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { --row: clamp(170px, 21vw, 360px); display: grid; gap: clamp(10px, 1.4vw, 20px); grid-template-rows: repeat(2, var(--row)); }
.grid--stages { grid-template-columns: .82fr .82fr 1.5fr; }
.grid--stages .t:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.grid--stages .t:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.grid--people { grid-template-columns: .8fr 1.35fr .8fr .95fr; }
.grid--people > :nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.grid--people > :nth-child(2) { grid-column: 2; grid-row: 1; }
.grid--people > :nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.grid--people > :nth-child(4) { grid-column: 4; grid-row: 1; }
.grid--people > :nth-child(5) { grid-column: 2; grid-row: 2; }
.grid--people > :nth-child(6) { grid-column: 4; grid-row: 2; }
.grid--away { grid-template-columns: 1fr 1fr 1fr; }
.grid--away > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.still {
  position: relative; display: block; min-height: 0;
  overflow: hidden; border-radius: var(--radius); background: var(--ink-2);
  cursor: zoom-in;
}
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.still:hover img { transform: scale(1.035); }
.still__cap {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(13,12,11,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .45em .7em; border-radius: 99px; font-size: .6rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.still:hover .still__cap, .still:focus-visible .still__cap { opacity: 1; transform: none; }
@media (hover: none) { .still__cap { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__big { font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.about__body > p { color: var(--muted); max-width: 52ch; }
.about__label { margin: 36px 0 12px; color: var(--rec); }
.about__body > p + p { margin-top: 1em; }
.services { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 32px; }
.services li { break-inside: avoid; padding: 4px 0 4px 1.1em; text-indent: -1.1em; font-size: 1.05rem; line-height: 1.4; }
.services li::before { content: "–"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--rec); }

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(96px, 13vw, 200px);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background: var(--paper); color: var(--ink);
  position: relative; overflow: hidden;
}
.contact__kicker { display: inline-flex; align-items: center; gap: .6em; color: var(--ink); }
.contact__title {
  margin: 18px 0 clamp(28px, 4vw, 48px);
  font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 9.5rem); line-height: .86; letter-spacing: -.02em;
  max-width: 13ch;
}
.contact__mail {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: clamp(1.25rem, 3.6vw, 3rem); letter-spacing: -.01em;
  text-decoration: none; border-bottom: 3px solid var(--rec); padding-bottom: .1em;
  word-break: break-all;
  transition: color .2s;
}
.contact__mail:hover { color: var(--rec); }
.contact__mail span { transition: transform .3s var(--ease); }
.contact__mail:hover span { transform: translateX(6px); }
.contact__note { margin-top: 28px; max-width: 46ch; color: #4a453f; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter); color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }

/* ---------- Modals ---------- */
.modal {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(8,7,6,.97); color: var(--paper);
}
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal[open] { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal__inner { height: 100%; display: grid; grid-template-rows: auto 1fr; padding: 16px var(--gutter) 24px; }
.modal__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 14px; }
.modal__idx { color: var(--rec); }
.modal__title { font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1; margin: 4px 0; }
.modal__meta { color: var(--muted); }
.modal__close, .modal__nav {
  font: inherit; color: var(--paper); background: rgba(239,233,223,.08); border: 1px solid var(--line);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; flex: none;
  display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, color .2s;
}
.modal__close:hover, .modal__nav:hover { background: var(--rec); color: var(--ink); }
.modal__stage { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.modal__stage video, .modal__stage img {
  width: 100%; height: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: var(--radius); background: #000;
}
.modal__stage img { background: transparent; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .films--tall { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .hero { padding-top: 76px; display: flex; flex-direction: column; min-height: 0; }
  .hero__name { font-size: 27vw; margin: .45em 0 0; }
  .hero__sticker {
    position: relative; right: auto; top: auto; align-self: flex-end;
    width: 46vw; max-width: 240px; margin: -12vw 4vw 28px 0; transform: rotate(-4deg);
  }
  .hero__sticker:hover { transform: rotate(2deg); }
  .hero__foot { margin-top: auto; }
  .hero__lede { max-width: 22ch; }
  .ticker__label { display: none; }
  .films--wide { grid-template-columns: 1fr; }
  /* vertical films become a swipeable rail */
  .films--tall {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .films--tall::-webkit-scrollbar { display: none; }
  .films--tall .film { scroll-snap-align: start; }
  .film__play { width: 44px; height: 44px; }
  .film--feature .film__play { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .film--feature .film__play::before { border-width: 9px 0 9px 15px; }
  .film__info { grid-template-columns: auto 1fr; }
  .film__meta { grid-column: 2; grid-row: auto; }
  .section__head { grid-template-columns: 1fr; }
  .section__intro { grid-column: 1; }
  .grid { grid-template-columns: 1fr 1fr !important; grid-template-rows: none; grid-auto-rows: 44vw; grid-auto-flow: dense; }
  .grid > * { grid-column: auto !important; grid-row: auto !important; }
  .grid > .t { grid-row: span 2 !important; }
  .grid > .w { grid-column: 1 / -1 !important; }
  .still__cap { display: none; }
  .bar__nav { gap: 12px; }
  .modal__stage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .modal__stage video, .modal__stage img { grid-column: 1 / -1; grid-row: 1; max-height: calc(100dvh - 190px); }
  .modal__nav--prev { grid-row: 2; justify-self: start; }
  .modal__nav--next { grid-row: 2; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
