/* ============================================
   MAXIMILIAN FILMS — monochrome, type-driven
   ============================================ */
:root {
  --bg: #0A0A0A;
  --bg-2: #131313;
  --white: #F5F5F3;
  --gray: #8A8A87;
  --gray-dim: #4E4E4C;
  --line: rgba(245, 245, 243, 0.14);

  --display: 'Archivo', 'Helvetica Neue', sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
nav a.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}
nav a.nav-link:hover { color: var(--white); }

.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.btn:hover { background: var(--white); color: var(--bg); }
.btn-solid {
  background: var(--white);
  color: var(--bg);
}
.btn-solid:hover { background: var(--gray); border-color: var(--gray); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 9vw, 100px);
}
.hero .mono-label { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 16ch;
  text-transform: uppercase;
}
.hero h1 .fade { color: var(--gray-dim); }
.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 46ch;
  margin: 0 0 40px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-quote {
  margin: clamp(28px, 4vw, 40px) 0 0;
  max-width: 42ch;
}
.hero-quote p {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray);
  margin: 0 0 10px;
}
.hero-quote cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

.hero-meta {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
}
.hero-meta div { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray-dim); }
.hero-meta div span { display: block; color: var(--white); font-size: 14px; margin-top: 6px; font-family: var(--sans); text-transform: none; letter-spacing: 0; }

/* ---------- Section shared ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
h2.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  max-width: 22ch;
  text-transform: uppercase;
}
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Client card ---------- */
.client-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s;
}
.client-card:hover { border-color: var(--gray); }
.client-card-media {
  position: relative;
  aspect-ratio: 4/5;
  background: #000;
  overflow: hidden;
}
.client-card-media img { width: 100%; height: 100%; object-fit: cover; }
.client-card-body {
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 12px;
}
.client-card-body h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.client-card-body p {
  color: var(--gray);
  margin: 0 0 30px;
  max-width: 40ch;
}
.stat-hero {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
  font-family: var(--mono);
}
.stat-hero .num {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--white);
  line-height: 1;
  font-weight: 500;
}
.stat-hero .lbl {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 18px;
}

.stat-row {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat { font-family: var(--mono); }
.stat .num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--white);
  line-height: 1;
  font-weight: 500;
}
.stat .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-top: 8px;
}
.case-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
}
.case-link .arrow { transition: transform 0.2s; }
.client-card:hover .case-link .arrow { transform: translateX(4px); }

/* ---------- Showreel ---------- */
.reel-frame {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--line);
}
.reel-frame video, .reel-frame img { width: 100%; height: 100%; object-fit: cover; }
.client-card-media video { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; pointer-events: none; }
.client-card-media video::-webkit-media-controls { display: none !important; }
.reel-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.reel-transport {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-dim);
}

/* ---------- Contact / footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vw, 120px) 0 40px;
}
.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
}
footer h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 12ch;
  margin: 0 0 28px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-links a { font-family: var(--sans); font-size: 15px; color: var(--gray); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
footer.footer-simple { padding: clamp(32px, 5vw, 48px) 0 40px; }
footer.footer-simple .footer-bottom { margin-top: 0; padding-top: 0; border-top: none; }

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-dim);
}

/* ---------- Contact page ---------- */
.contact-hero { padding: clamp(56px, 9vw, 100px) 0 clamp(40px, 6vw, 64px); }
.contact-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 18ch;
  margin: 0 0 24px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.contact-hero .lede { margin-bottom: 0; }

.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 72px);
}
.contact-form-col { flex: 1 1 520px; }
.contact-aside { flex: 0 1 280px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--white);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field textarea { resize: vertical; min-height: 140px; font-family: var(--sans); }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-dim); }
.hp-field { position: absolute; left: -9999px; }
.form-note { font-family: var(--mono); font-size: 11px; color: var(--gray-dim); margin-top: 16px; }

.ig-desktop-link { margin-bottom: 8px; }

/* ---------- Mobile menu ---------- */
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-family: var(--sans); font-size: 13px; }

@media (max-width: 760px) {
  .client-card { grid-template-columns: 1fr; }
  .client-card-media { aspect-ratio: 16/10; }
  .client-card-media video { object-position: center 55%; }
  nav.desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .cs-quote { max-width: 100%; padding: 0 32px; margin: 0 auto; }
  .cs-quote blockquote { font-size: 0.95rem; line-height: 1.5; }
  .cs-hero-bg img:not(:nth-child(3)) { display: none; }
  .contact-layout { flex-direction: column; }
  .ig-label-link { display: none; }
  .hero-quote { margin-top: clamp(48px, 12vw, 72px); }
}

/* ---------- Case study page ---------- */
.cs-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 64px); }
.cs-hero > .wrap { position: relative; z-index: 1; }
.cs-hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; }
.cs-hero-bg img { flex: 1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.5); }
.cs-hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, 0.82); }
.cs-back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}
.cs-back:hover { color: var(--white); }
.cs-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 18ch;
  margin: 0 0 24px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.cs-hero .lede { color: var(--gray); max-width: 52ch; font-size: 1.15rem; margin-bottom: 0; }

.cs-label-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; margin-bottom: 20px; }
a.ig-label-link { white-space: nowrap; transition: color 0.2s; }
a.ig-label-link:hover { color: var(--white); }

.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 52px 0;
}
.cs-stat-grid .cs-stat {
  padding: 28px clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--line);
}
.cs-stat-grid .cs-stat:last-child { border-right: none; }
.cs-stat-grid .num { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--white); }
.cs-stat-grid .lbl { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray-dim); margin-top: 10px; }

.cs-scroll-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.cs-reel-col { position: relative; }
.cs-reel-sticky { position: sticky; top: 100px; }
.reel-frame-vertical { aspect-ratio: 9/16; max-height: 78vh; margin: 0 auto; }

.cs-body { max-width: 68ch; }
.cs-block { padding: 44px 0; border-top: 1px solid var(--line); }
.cs-block:first-child { padding-top: 0; border-top: none; }
.cs-body h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.cs-body p { color: var(--gray); margin: 0 0 20px; font-size: 1.05rem; }
.cs-body p strong { color: var(--white); font-weight: 600; }
.cs-body p:last-child { margin-bottom: 0; }

.cs-pull-stat { margin-top: 28px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.cs-pull-stat .num { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
.cs-pull-stat .lbl { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray-dim); margin-top: 10px; }

.cs-quote-section { padding: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.cs-quote-section.cs-quote-top { padding-top: clamp(64px, 10vw, 96px); }
.cs-quote-section + section { padding-top: clamp(32px, 5vw, 48px); }
.cs-quote { max-width: min(900px, 100%); }
.cs-quote blockquote {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--white);
}
.cs-quote cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

@media (max-width: 700px) {
  .cs-hero .lede { font-size: 0.95rem; }
  .cs-stat-grid { grid-template-columns: repeat(2, 1fr); margin: 36px 0; }
  .cs-stat-grid .cs-stat { padding: 20px; }
  .cs-stat-grid .cs-stat:nth-child(2) { border-right: none; }
  .cs-stat-grid .cs-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cs-scroll-wrap { grid-template-columns: 1fr; }
  .cs-reel-sticky { position: static; top: auto; margin-bottom: 8px; }
  .reel-frame-vertical { max-height: 70vh; }
}
