/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #000000;
  --bg-raised: #111111;
  --text: #ffffff;
  --text-dim: #8f8f8f;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: #ffffff;

  --display: "Archivo", -apple-system, Helvetica, Arial, sans-serif;
  --body: "Archivo", -apple-system, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --nav-h: 76px;
  --edge: clamp(24px, 6vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* subtle film-grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.nav__mark img {
  height: 34px;
  width: 34px;
  display: block;
}

.nav__menu {
  display: flex;
  gap: 2.5rem;
}
.nav__menu a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav__menu a:hover { color: var(--text); border-color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--edge);
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero__mark {
  position: absolute;
  right: clamp(-120px, -4vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 42vw, 620px);
  height: auto;
  opacity: 0.14;
  pointer-events: none;
}

.hero__tally {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.tally__dot {
  width: 9px; height: 9px;
  background: var(--text);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 10.5vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero__tagline {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 34ch;
}

.hero__cue {
  position: absolute;
  bottom: 3rem;
  left: var(--edge);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__cue-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}

/* =========================================================
   SECTIONS / SLATE HEADER
   ========================================================= */
.section {
  padding: 7rem var(--edge);
  border-top: 1px solid var(--line);
}

.slate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.section__heading {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 0 0 3rem;
}

/* =========================================================
   FILMS / REELS
   ========================================================= */
.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3.5rem 2.5rem;
}

.reel__frame {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--line-strong);
}

.reel__embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}
.reel__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
}
.reel__meta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}
.reel__year { font-size: 0.68rem; }

.reel__logline {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about {
  max-width: 62ch;
}
.about p {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 1.3rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.section--contact { padding-bottom: 8rem; }

.contact__lead {
  color: var(--text-dim);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

.contact__email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
  border-bottom: 2px solid var(--text-dim);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.contact__email:hover {
  border-color: var(--text);
  opacity: 0.8;
}

.contact__socials {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contact__socials a { transition: opacity 0.2s ease; }
.contact__socials a:hover { opacity: 0.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 2.5rem var(--edge);
  border-top: 1px solid var(--line);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,10,0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu.is-open { max-height: 260px; }
  .nav__menu a {
    padding: 1.1rem var(--edge);
    border-top: 1px solid var(--line);
  }
  .section { padding: 4.5rem var(--edge); }
}

/* =========================================================
   HERO — video background + layered wordmark
   ========================================================= */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* =========================================================
   EDITORIAL STATEMENT (About lead paragraph)
   ========================================================= */
.statement__lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0 0 1.8rem;
}
.about__photo {
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  margin-left: auto;
}
.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .about__photo {
    max-width: 420px;
    margin-left: 0;
  }
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 55ch;
  margin: 0 0 1rem;
}
.section__sub:last-child {
  margin-bottom: 0;
}

/* =========================================================
   FILM CARDS — hover-preview + lightbox trigger
   ========================================================= */
.reel__media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.reel__poster,
.reel__media iframe.reel__preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.reel__media iframe.reel__preview-frame { pointer-events: none; }

.reel__overlay-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.reel__media:hover .reel__overlay-meta,
.reel__media:focus-visible .reel__overlay-meta,
.reel__media.is-previewing .reel__overlay-meta {
  opacity: 1;
  transform: translateY(0);
}
.reel__overlay-meta .reel__frame {
  border: 1.5px solid var(--line-strong);
  padding: 0.2rem 0.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.reel__overlay-meta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
}

.reel__logline {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.reel__watch {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.reel__watch-label {
  display: block;
  margin-bottom: 0.6rem;
}
.reel__watch-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.reel__watch-links a {
  display: block;
  line-height: 0;
}
.watch-logo {
  display: block;
  height: 20px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.reel__watch-links a:hover .watch-logo {
  opacity: 0.6;
}
.watch-logo--prime {
  height: 30px; /* square icon reads smaller than the wordmarks at equal height */
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}
.lightbox.is-open { display: flex; }

.lightbox__frame-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}
.lightbox__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--text); color: var(--bg); }
