/* ==========================================================================
   Matt Production — style.css
   Mobile-first. Palette: black / white / brand orange (#FF6D4D from logo).
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --white: #f7f5f2;
  --grey: #9b978f;
  --orange: #ff6d4d;
  --orange-deep: #e8552f;

  /* three voices, no defaults: Anton = poster titles, Instrument Serif
     italic = editorial accents, Space Grotesk = everything else */
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: "Montserrat", var(--font-body); /* mirrors the logo wordmark */
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-ui: var(--font-body);

  --pad-x: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--black); }

/* film-grain overlay — the whole site reads like a graded frame */
body::after {
  content: "";
  position: fixed;
  inset: -80px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: grain-shift 0.9s steps(4) infinite;
}

/* the jitter is what makes it read as film, not a dirty screen */
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-38px, 24px); }
  50%  { transform: translate(22px, -44px); }
  75%  { transform: translate(-16px, -28px); }
  100% { transform: translate(0, 0); }
}

a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), transparent);
}

.nav__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
}

.nav__brand-matt { color: var(--white); }
.nav__brand-production { color: var(--orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
  display: none; /* hidden on mobile, shown ≥640px */
}

.nav__link:hover { opacity: 1; color: var(--orange); }

.nav__cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(247, 245, 242, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.nav__cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

@media (min-width: 640px) {
  .nav__link { display: inline; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 15px 30px;
  transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--orange);
  color: var(--black);
}

.btn--primary:hover { background: var(--orange-deep); }

.btn--ghost {
  border: 1px solid rgba(247, 245, 242, 0.35);
  color: var(--white);
}

.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
  /* some clips have letterbox bars baked into the file (largest: 6.7%
     top/bottom). One uniform zoom hides them all, so framing never
     jumps between takes. 1 / (1 - 2*0.067) ≈ 1.16 */
  transform: scale(1.16);
}

.hero__video.is-active { opacity: 1; }

/* darken video so type stays readable, heavier at the bottom */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(88px, 14svh, 140px);
  max-width: 900px;
  animation: hero-rise 1s var(--ease-out) 0.2s both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, 13vw, 148px);
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.hero__title-line { display: block; }

.hero__title em {
  font-style: normal;
  color: var(--orange);
}

.hero__sub {
  margin-top: 20px;
  max-width: 44ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: rgba(247, 245, 242, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* thin animated line hinting to scroll */
.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  width: 24px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero__scroll-line {
  width: 1px;
  height: 100%;
  background: rgba(247, 245, 242, 0.55);
  animation: scroll-drop 2.2s var(--ease-out) infinite;
}

@keyframes scroll-drop {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (min-width: 768px) {
  .hero__content { padding-bottom: clamp(96px, 16svh, 160px); }
}

/* ============ SECTION BASICS ============ */

/* every section block centers as one 1200px column, like the hero */
.work__head,
.reviews__head,
.reviews__featured,
.reviews__grid,
.process__head,
.process__grid,
.booking__head,
.booking__grid,
.booking__calendar {
  max-width: 1200px;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

/* scroll-reveal helper (toggled by IntersectionObserver in main.js) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ WORK ============ */

.work {
  padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px);
  background: var(--black);
}

.work__head {
  padding: 0 var(--pad-x);
  margin-bottom: clamp(24px, 3.5vw, 38px);
}

.work__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.work__title em { font-style: normal; color: var(--orange); }

.work__hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--grey);
}

/* horizontal snap track — vertical 9:16 cards, Stories style */
.work__track {
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  overflow-x: auto;
  padding: 4px var(--pad-x) 22px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-x);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.work__track::-webkit-scrollbar { display: none; }

.work-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 62vw, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--black-soft);
  transition: transform 0.45s var(--ease-out);
}

.work-card:hover { transform: translateY(-6px); }

.work-card__poster,
.work-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hover preview video gets injected by JS */
.work-card__preview {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card__preview.is-playing { opacity: 1; }

/* small play chip, turns orange on hover */
.work-card__play {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}

.work-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--white);
}

.work-card:hover .work-card__play { background: var(--orange); }
.work-card:hover .work-card__play::before { border-left-color: var(--black); }

/* ============ CLIENTS (logo marquee) ============ */

.clients {
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-top: 1px solid rgba(247, 245, 242, 0.08);
  border-bottom: 1px solid rgba(247, 245, 242, 0.08);
  background: var(--black);
  overflow: hidden;
}

.clients__label {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0 var(--pad-x);
  margin-bottom: 34px;
}

.clients__band {
  position: relative;
  /* fade the edges so logos slide in/out of nothing */
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.clients__track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.clients__band:hover .clients__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clients__list {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  padding: 0 clamp(22px, 3vw, 42px);
  list-style: none;
}

/* logos are pre-processed to white-on-transparent (assets/logos/w/),
   so they only need opacity here — no blend modes or inversion */
.clients__logo {
  height: clamp(30px, 4.5vw, 42px);
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.3s, filter 0.3s;
}

.clients__logo:hover {
  opacity: 1;
  /* white -> brand orange */
  filter: sepia(1) saturate(4) hue-rotate(-22deg) brightness(0.98);
}

/* ============ SECTION HEAD (shared pattern) ============ */

.process__title, .booking__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.process__title em, .booking__title em {
  font-style: normal;
  color: var(--orange);
}

/* ============ REVIEWS ============ */

.reviews {
  padding: clamp(48px, 7vw, 84px) var(--pad-x);
  background: var(--black);
}

.reviews__head {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.reviews__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.reviews__title em { font-style: normal; color: var(--orange); }

.stars {
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--orange);
}

/* featured pull-quote (this is Max Garibay's review) */
.reviews__featured {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.reviews__featured .reviews__quote {
  max-width: 20ch;
  margin-inline: auto;
}

.reviews__quote {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--white);
}

.reviews__source {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.reviews__grid {
  display: grid;
  gap: 18px;
  max-width: 1200px;
}

@media (min-width: 720px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

.review-card {
  background: var(--black-soft);
  border: 1px solid rgba(247, 245, 242, 0.09);
  border-radius: 18px;
  padding: 26px 26px 22px;
  transition: border-color 0.35s;
}

.review-card:hover { border-color: rgba(255, 109, 77, 0.45); }

.review-card__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(247, 245, 242, 0.86);
}

.review-card__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 245, 242, 0.08);
}

.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--orange);
  flex-shrink: 0;
}

.review-card__name { font-size: 13.5px; font-weight: 600; }

.review-card__meta {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

/* ============ PROCESS ============ */

.process {
  padding: clamp(48px, 7vw, 84px) var(--pad-x);
  background: var(--black-soft);
  border-top: 1px solid rgba(247, 245, 242, 0.06);
}

.process__head { margin-bottom: clamp(24px, 4vw, 40px); }

.process__grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  max-width: 1200px;
}

@media (min-width: 720px) {
  .process__grid { grid-template-columns: repeat(3, 1fr); }
}

.process__num {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 14px;
}

.process__item {
  padding-top: 18px;
  border-top: 1px solid rgba(247, 245, 242, 0.14);
}

.process__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.process__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(247, 245, 242, 0.72);
}

/* ============ BOOKING ============ */

.booking {
  padding: clamp(48px, 7vw, 84px) var(--pad-x);
  background: var(--black);
}

.booking__head { margin-bottom: clamp(24px, 3.5vw, 38px); }

.booking__sub {
  margin-top: 16px;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.35;
  color: rgba(247, 245, 242, 0.85);
}

.booking__grid {
  display: grid;
  gap: 16px;
  max-width: 880px; /* two plans read better as a tighter centered pair */
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

@media (min-width: 720px) {
  .booking__grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid rgba(247, 245, 242, 0.12);
  border-radius: 18px;
  background: var(--black-soft);
}

.plan--featured { border-color: var(--orange); }

.plan__flag {
  font-family: var(--font-ui);
  position: absolute;
  top: -11px;
  left: 22px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  border-radius: 999px;
  padding: 4px 12px;
}

.plan__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 10px 0 16px;
}

.plan__price span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

.plan__price--talk { font-size: 34px; }

.plan__note {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--grey);
}

.plan__cta {
  margin-top: 22px;
  align-self: flex-start;
}

.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: rgba(247, 245, 242, 0.78);
}

.plan__list li::before {
  content: "—";
  color: var(--orange);
  margin-right: 9px;
}

.booking__calendar {
  max-width: 1200px;
  border: 1px dashed rgba(247, 245, 242, 0.22);
  border-radius: 18px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking__placeholder { text-align: center; padding: 44px 24px; }

.booking__placeholder-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 10px;
}

.booking__placeholder-text {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 22px;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(247, 245, 242, 0.06);
  padding: clamp(48px, 7vw, 84px) var(--pad-x) 0;
}

.footer__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
}

.footer__sub {
  margin: 16px 0 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.1vw, 22px);
  color: rgba(247, 245, 242, 0.8);
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer__base {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(247, 245, 242, 0.08);
  font-size: 12.5px;
  color: var(--grey);
}

.footer__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__brand em { font-style: normal; color: var(--orange); }

@media (min-width: 720px) {
  .footer__base {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.94);
  animation: lightbox-in 0.3s ease;
}

.lightbox[hidden] { display: none; }

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__video {
  max-width: min(94vw, 480px);
  max-height: 84svh;
  border-radius: 12px;
  outline: none;
  background: var(--black);
}


.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  font-size: 34px;
  line-height: 1;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.25s, color 0.25s;
}

.lightbox__close:hover { opacity: 1; color: var(--orange); }

/* ============ MOTION PREFERENCES ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__content { animation: none; }
  .hero__scroll-line { animation: none; }
  .hero__video { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-card { transition: none; }
  body::after { animation: none; }
}
