/* ===========================================================
   JUSTE LE FILM — cinematic corporate video landing page
   =========================================================== */

:root{
  --bg:        #0b0a08;
  --bg-alt:    #131110;
  --bg-card:   #17140f;
  --ink:       #f4efe4;
  --muted:     #a89e8d;
  --muted-2:   #766c5e;
  --accent:    #e8ab3f;
  --accent-2:  #c23b2e;
  --line:      rgba(244,239,228,0.12);
  --line-soft: rgba(244,239,228,0.07);

  --display: "Anton", "Archivo", sans-serif;
  --serif:   "Fraunces", serif;
  --body:    "Archivo", sans-serif;

  --wrap: 1220px;
  --header-h: 84px;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ol, ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p{ margin: 0; }

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

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0b0a08; padding: 12px 18px; z-index: 999;
  font-weight: 700;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* -----------------------------------------------------------
   Grain + letterbox
----------------------------------------------------------- */
.grain{
  position: fixed; inset: 0; z-index: 500; 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");
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift{
  0%{ transform: translate(0,0); } 25%{ transform: translate(-2%,1%); }
  50%{ transform: translate(1%,-2%); } 75%{ transform: translate(-1%,-1%); }
  100%{ transform: translate(0,0); }
}

.letterbox{
  position: fixed; left: 0; right: 0; height: 12vh; background: #000; z-index: 600;
  pointer-events: none;
  transition: transform 1.1s cubic-bezier(.76,0,.24,1);
}
.letterbox--top{ top: 0; }
.letterbox--bottom{ bottom: 0; }
body.loaded .letterbox--top{ transform: translateY(-100%); }
body.loaded .letterbox--bottom{ transform: translateY(100%); }

/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.site-header.scrolled{
  background: rgba(11,10,8,0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  height: 68px;
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

.logo{ display: flex; align-items: center; gap: 10px; }
.logo-mark{
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.logo-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.logo-text{
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-text em{ font-style: normal; color: var(--accent); }

.main-nav{ display: flex; gap: 34px; }
.main-nav a{
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a:hover::after{ width: 100%; }

.header-right{ display: flex; align-items: center; gap: 22px; }
.timecode{
  font-family: "Archivo", monospace; font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 3px;
}

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span{ display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }

/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 13px 26px; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary{ background: var(--accent); color: #150f06; }
.btn--primary:hover{ transform: translateY(-2px); background: #f2bb58; }
.btn--outline{ border-color: var(--line); color: var(--ink); }
.btn--outline:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost{ border-color: var(--line); color: var(--muted); }
.btn--ghost:hover{ color: var(--ink); border-color: var(--accent); }
.btn--sm{ padding: 9px 16px; font-size: 12px; }
.btn--lg{ padding: 17px 32px; font-size: 15px; }

.play-icon{
  width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hero{
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 60px;
  background:
    radial-gradient(ellipse 900px 500px at 18% -10%, rgba(232,171,63,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(194,59,46,0.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-frame{
  position: absolute; inset: 20px; pointer-events: none; z-index: 1;
}
.frame-tag{
  position: absolute; font-family: "Archivo", monospace; font-size: 11px;
  letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase;
}
.frame-tag--tl{ top: 0; left: 0; }
.frame-tag--tr{ top: 0; right: 0; }
.frame-tag--bl{ bottom: 0; left: 0; }
.frame-tag--br{ bottom: 0; right: 0; color: var(--accent-2); animation: rec-blink 1.6s ease-in-out infinite; }
@keyframes rec-blink{ 0%,100%{ opacity: 1; } 50%{ opacity: 0.25; } }

.hero-inner{ position: relative; z-index: 2; text-align: center; max-width: 900px; }

.eyebrow{
  font-family: var(--body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}

.hero-title{
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero-title span{ display: block; }
.hero-title__accent{ font-family: var(--serif); text-transform: none; font-weight: 500; font-style: normal; }
.hero-title__accent em{ font-style: italic; color: var(--accent); font-weight: 600; }

.hero-sub{
  margin: 30px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions{
  margin-top: 40px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}

.hero-strip{
  margin-top: 90px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.hero-strip__track{
  display: inline-flex; gap: 22px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  animation: marquee 26s linear infinite;
}
.hero-strip__track span:nth-child(odd){ color: var(--muted-2); }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* -----------------------------------------------------------
   Stats
----------------------------------------------------------- */
.stats{
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.stats-grid{
  display: grid; grid-template-columns: repeat(4,1fr);
  padding: 46px 32px;
}
.stat{
  text-align: center; padding: 0 16px;
  border-left: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:first-child{ border-left: none; }
.stat-num{
  font-family: var(--display); font-size: clamp(30px,4vw,44px); color: var(--ink);
}
.stat-num small{ font-family: var(--body); font-size: 15px; color: var(--accent); margin-left: 4px; font-weight: 700; }
.stat-label{ font-size: 13px; color: var(--muted); letter-spacing: 0.03em; }

/* -----------------------------------------------------------
   Section head (shared)
----------------------------------------------------------- */
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-title{
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 48px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 10px;
}
.section-note{ margin-top: 14px; color: var(--muted-2); font-size: 14px; font-style: italic; }

/* -----------------------------------------------------------
   Services
----------------------------------------------------------- */
.services{ padding: 120px 0; }
.services-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.service-card{
  background: var(--bg);
  padding: 40px 34px;
  transition: background .3s ease;
  position: relative;
}
.service-card:hover{ background: var(--bg-card); }
.service-num{
  display: block; font-family: var(--display); font-size: 14px; color: var(--accent-2);
  letter-spacing: 0.1em; margin-bottom: 22px;
}
.service-card h3{
  font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 12px;
}
.service-card p{ color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* -----------------------------------------------------------
   Gallery
----------------------------------------------------------- */
.gallery{ padding: 0 0 120px; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}
.gphoto{ position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line-soft); }
.gphoto--lights{ grid-column: span 3; grid-row: span 3; }
.gphoto--camera{ grid-column: span 3; grid-row: span 2; }
.gphoto--clap{ grid-column: span 3; grid-row: span 2; }
.gphoto--interview{ grid-column: span 2; grid-row: span 2; }
.gphoto--reel{ grid-column: span 2; grid-row: span 2; }
.gphoto--set{ grid-column: span 2; grid-row: span 2; }

.gphoto-surface{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.gphoto--lights .gphoto-surface{ background: radial-gradient(circle at 35% 30%, #3a2c14, #0e0b06 70%); }
.gphoto--camera .gphoto-surface{ background: radial-gradient(circle at 65% 70%, #2c1210, #0d0a08 70%); color: var(--accent-2); }
.gphoto--clap .gphoto-surface{ background: radial-gradient(circle at 30% 70%, #23201a, #0b0a08 70%); }
.gphoto--interview .gphoto-surface{ background: radial-gradient(circle at 60% 30%, #33210f, #0b0a08 70%); }
.gphoto--reel .gphoto-surface{ background: radial-gradient(circle at 40% 60%, #241d10, #0b0a08 70%); }
.gphoto--set .gphoto-surface{ background: radial-gradient(circle at 70% 30%, #2a140f, #0b0a08 70%); color: var(--accent-2); }

.gphoto-icon{ width: 30%; max-width: 76px; opacity: 0.85; transition: transform .4s ease; }
.gphoto-icon svg{ width: 100%; height: auto; }
.gphoto:hover .gphoto-icon{ transform: scale(1.12) rotate(-3deg); }

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

.gphoto figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  transform: translateY(6px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.gphoto figcaption span{ font-family: var(--display); color: var(--accent); font-size: 12px; }
.gphoto:hover figcaption{ transform: translateY(0); opacity: 1; }

@media (max-width: 720px){
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; }
  .gphoto--lights, .gphoto--camera, .gphoto--clap, .gphoto--interview, .gphoto--reel, .gphoto--set{
    grid-column: span 1; grid-row: span 2;
  }
  .gphoto figcaption{ transform: translateY(0); opacity: 1; }
}

/* -----------------------------------------------------------
   Process
----------------------------------------------------------- */
.process{ padding: 120px 0; background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.process-list{ display: flex; flex-direction: column; }
.process-item{
  display: grid; grid-template-columns: 140px 1fr; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--line-soft);
  gap: 24px;
}
.process-item:last-child{ border-bottom: 1px solid var(--line-soft); }
.process-num{
  font-family: var(--display); font-size: 46px; color: var(--muted-2);
  transition: color .3s ease;
}
.process-item:hover .process-num{ color: var(--accent); }
.process-body h3{
  font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 8px;
}
.process-body p{ color: var(--muted); font-size: 15px; max-width: 560px; }

@media (max-width: 640px){
  .process-item{ grid-template-columns: 1fr; gap: 8px; }
}

/* -----------------------------------------------------------
   Why
----------------------------------------------------------- */
.why{ padding: 120px 0; }
.why-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.why-lead p{ margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 420px; }
.why-list{ display: flex; flex-direction: column; gap: 34px; }
.why-item{ padding-left: 22px; border-left: 2px solid var(--line); }
.why-item h3{ font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.why-item p{ color: var(--muted); font-size: 14.5px; line-height: 1.65; }

@media (max-width: 820px){
  .why-grid{ grid-template-columns: 1fr; gap: 40px; }
}

/* -----------------------------------------------------------
   CTA final
----------------------------------------------------------- */
.cta-final{
  padding: 140px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(232,171,63,0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.cta-title{
  font-family: var(--display);
  font-size: clamp(38px, 6.5vw, 74px);
  text-transform: uppercase;
  line-height: 1.02;
  margin-top: 14px;
}
.cta-sub{ margin: 24px auto 0; max-width: 480px; color: var(--muted); font-size: 16px; }
.cta-actions{ margin-top: 42px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.site-footer{ padding: 70px 0 26px; background: var(--bg-alt); }
.footer-inner{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid var(--line-soft);
}
.footer-brand p{ margin-top: 12px; color: var(--muted-2); font-size: 13.5px; line-height: 1.6; }
.footer-nav{ display: flex; flex-direction: column; gap: 12px; }
.footer-nav a{ color: var(--muted); font-size: 14px; }
.footer-nav a:hover{ color: var(--accent); }
.footer-social{ display: flex; flex-direction: column; gap: 12px; }
.footer-social a{ color: var(--muted); font-size: 14px; }
.footer-social a:hover{ color: var(--accent); }

.footer-bottom{
  padding-top: 24px; display: flex; justify-content: space-between;
  color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.03em;
}

@media (max-width: 640px){
  .footer-bottom{ flex-direction: column; gap: 6px; }
}

/* -----------------------------------------------------------
   Reveal-on-scroll
----------------------------------------------------------- */
.reveal{
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 900px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .timecode{ display: none; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .stats-grid{ grid-template-columns: repeat(2,1fr); row-gap: 30px; }
  .stat:nth-child(3){ border-left: none; }

  .main-nav.open{
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-h); left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 24px 32px 30px; gap: 20px;
  }
}

@media (max-width: 600px){
  .wrap{ padding: 0 20px; }
  .services-grid{ grid-template-columns: 1fr; }
  .hero{ padding-top: calc(var(--header-h) + 60px); }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .cta-actions{ flex-direction: column; align-items: stretch; }
  .cta-actions .btn{ width: 100%; }
  .header-right .btn--ghost{ display: none; }
}
