/* ---------------------------------------------------------
   Juste Un Film — cinematic corporate video studio landing
--------------------------------------------------------- */

:root {
  --bg: #0b0a08;
  --bg-alt: #141210;
  --bg-card: #17140f;
  --fg: #f5efe4;
  --muted: #a89f8f;
  --muted-2: #746a5c;
  --accent: #ff3b1f;
  --accent-2: #d4a24e;
  --line: rgba(245, 239, 228, 0.12);
  --line-strong: rgba(245, 239, 228, 0.22);
  --font-display: "Anton", "Archivo Expanded", sans-serif;
  --font-body: "Archivo", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { display: block; }

/* ---------- texture layers ---------- */

.grain-overlay {
  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='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");
}

.letterbox {
  position: fixed;
  left: 0; right: 0;
  height: 14px;
  background: #000;
  z-index: 998;
  pointer-events: none;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

.cursor-dot {
  position: fixed;
  width: 22px; height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.15s var(--ease);
  opacity: 0;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  position: relative;
  z-index: 50;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.marquee-track span.dot { font-size: 8px; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-mark { width: 30px; height: 30px; color: var(--fg); flex-shrink: 0; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--fg); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-accent {
  background: var(--accent);
  color: #100b09;
}
.btn-accent:hover { background: #ff5a3d; transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--fg); background: rgba(245,239,228,0.05); }
.btn-small { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: 0.05s; }
.reveal-2.in-view { transition-delay: 0.15s; }
.reveal-3.in-view { transition-delay: 0.25s; }
.reveal-4.in-view { transition-delay: 0.38s; }
.reveal-5.in-view { transition-delay: 0.5s; }
.reveal-6.in-view { transition-delay: 0.6s; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(255,59,31,0.16) 0%, rgba(212,162,78,0.06) 45%, transparent 70%);
  filter: blur(10px);
  animation: pulse-glow 8s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}
.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(245,239,228,0.012) 3px,
    rgba(245,239,228,0.012) 4px
  );
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(255,59,31,0.35);
  background: rgba(255,59,31,0.06);
  padding: 7px 14px;
  border-radius: 30px;
  margin-bottom: 32px;
}
.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.timecode { color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero-title span { display: block; }
.hero-accent {
  color: var(--accent);
  position: relative;
  margin-top: 6px;
}

.hero-sub {
  margin-top: 32px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-slate {
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: 130px;
  opacity: 0.9;
  animation: slate-float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
@keyframes slate-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@media (max-width: 900px) { .hero-slate { display: none; } }

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 52px 32px;
}
.stat {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--accent-2);
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-2);
  margin-left: 2px;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- section head ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

/* ---------- services ---------- */

.services { padding: 130px 0; }
.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg-card);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s;
}
.service-card:hover { background: #1c1811; }
.service-num {
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted-2);
}
.service-icon {
  width: 42px; height: 42px;
  color: var(--accent-2);
  margin-bottom: 26px;
}
.service-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.service-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

.service-card-cta {
  background: var(--accent);
  color: #100b09;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-cta h3 { color: #100b09; }
.service-card-cta p { color: rgba(16,11,9,0.75); margin-bottom: 20px; }
.service-card-cta .btn-ghost {
  border-color: rgba(16,11,9,0.4);
  color: #100b09;
  align-self: flex-start;
}
.service-card-cta .btn-ghost:hover { background: rgba(16,11,9,0.08); border-color: #100b09; }

/* ---------- coulisses / gallery ---------- */

.coulisses { padding: 100px 0 40px; }
.coulisses .wrap { margin-bottom: 20px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 0 2px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  grid-column: span 2;
}
@media (min-width: 700px) {
  .gallery-1 { grid-column: span 3; }
  .gallery-2 { grid-column: span 3; }
  .gallery-3 { grid-column: span 2; }
  .gallery-4 { grid-column: span 2; }
  .gallery-5 { grid-column: span 2; }
  .gallery-6 { grid-column: span 6; aspect-ratio: 16/5; }
}

.gallery-frame {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-1 .gallery-frame { background: linear-gradient(135deg, #163832 0%, #0b0a08 70%); }
.gallery-2 .gallery-frame { background: linear-gradient(135deg, #3a2712 0%, #0b0a08 70%); }
.gallery-3 .gallery-frame { background: linear-gradient(135deg, #3a1512 0%, #0b0a08 70%); }
.gallery-4 .gallery-frame { background: linear-gradient(135deg, #16232f 0%, #0b0a08 70%); }
.gallery-5 .gallery-frame { background: linear-gradient(135deg, #2c1c38 0%, #0b0a08 70%); }
.gallery-6 .gallery-frame { background: linear-gradient(120deg, #163832 0%, #0b0a08 35%, #3a2712 100%); }

.gallery-icon {
  width: 46%;
  max-width: 130px;
  color: rgba(245,239,228,0.85);
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover .gallery-icon { transform: scale(1.08) translateY(-4px); }

.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.cap-num { color: var(--accent); }

/* ---------- process ---------- */

.process { padding: 130px 0; }
.process-list { margin-top: 60px; }
.process-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item:hover { padding-left: 12px; }
.process-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--muted-2);
  transition: color 0.3s;
}
.process-item:hover .process-num { color: var(--accent); }
.process-item h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.process-item p { color: var(--muted); max-width: 58ch; }

/* ---------- quote ---------- */

.quote {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote blockquote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote p {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.quote cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ---------- final cta / contact ---------- */

.final-cta { padding: 130px 0; }
.final-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.final-cta-text h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.final-cta-text p { color: var(--muted); max-width: 44ch; line-height: 1.65; }
.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-details a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-2);
}
.contact-details span { color: var(--muted-2); font-size: 0.88rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 4px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* ---------- footer ---------- */

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 24px; margin-left: auto; }
.footer-nav a { font-size: 0.88rem; color: var(--muted); }
.footer-nav a:hover { color: var(--fg); }
.footer-copy {
  width: 100%;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 32px;
    gap: 20px;
  }
  .site-header.nav-open .header-cta {
    display: inline-flex;
    position: absolute;
    top: 260px; left: 32px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-1, .gallery-2, .gallery-3, .gallery-4, .gallery-5 { grid-column: span 1 !important; aspect-ratio: 1/1 !important; }
  .gallery-6 { grid-column: span 2 !important; aspect-ratio: 16/9 !important; }
  .process-item { grid-template-columns: 56px 1fr; }
  .process-num { font-size: 1.8rem; }
  .final-cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 28px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stats-grid { padding: 40px 20px; }
}
