/* ============================================================
   PACCINI FILMS — S3 "L'affiche" v3
   Monochrome ivoire sur noir : pas de couleur d'accent, des filets, de l'air.
   Type : Anton (le titre de l'affiche seulement) + Inter Tight (tout le reste, souvent en 300).
   ============================================================ */
:root {
  --bg: #0b0a09;
  --bg2: #15130f;
  --fg: #ede8df;
  --fg2: #d2ccc1;
  --mute: #8d877c;
  --acc: #ede8df;
  --line: rgba(237, 232, 223, 0.11);
  --gutter: 80px;
  --gap: 14px;
  --tfs: 18.5vh;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.is-intro { overflow: hidden; }
body { margin: 0; font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400; overflow-x: hidden; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 10px 14px; font-size: 13px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { margin: 0 0 22px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mute); }
.row-title { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg2); display: flex; align-items: center; gap: 22px; }
.row-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- NAV ---------- */
/* maison layout: menu left · wordmark centred · showreel + contact right */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 96px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before { content: ''; position: absolute; inset: 0 0 -28px 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 9, 0.66) 0%, rgba(11, 10, 9, 0.3) 55%, rgba(11, 10, 9, 0) 100%); }
.nav::after { content: ''; position: absolute; inset: 0 0 -44px 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: linear-gradient(180deg, rgba(11, 10, 9, 1) 0, rgba(11, 10, 9, 1) 96px, rgba(11, 10, 9, 0) 140px); }
.nav.is-scrolled::after { opacity: 1; }
.brand { justify-self: center; text-decoration: none; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 17px; letter-spacing: 0.42em; padding-left: 0.42em; text-transform: uppercase; color: var(--fg); line-height: 1; transition: opacity 0.7s, transform 0.7s var(--ease-out); }
.nav:not(.show-brand) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.menu { position: relative; display: flex; gap: 46px; }
.menu-r { justify-self: end; }
.menu a, .menu button {
  position: relative; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg2); text-decoration: none;
  background: none; border: 0; padding: 8px 0; cursor: pointer; transition: color 0.4s;
}
.menu a::after, .menu button::after { content: ''; position: absolute; left: 0; right: 0.3em; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease-out); }
.menu a:hover, .menu button:hover, .menu .is-active { color: var(--fg); }
.menu a:hover::after, .menu button:hover::after, .menu .is-active::after { transform: scaleX(1); }

/* ---------- HERO: the showreel, full bleed ---------- */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: var(--bg); isolation: isolate; }
.frame { position: absolute; inset: -12px -12px 0 -12px; z-index: 0; transform-origin: 50% 40%; will-change: transform; }
.frame-img, .frame-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-vid { opacity: 0; transition: opacity 1.1s ease; }
.frame-vid.is-on { opacity: 1; }
.frame-vid.is-front { z-index: 1; }

.veil { position: absolute; inset: -12px -12px 0 -12px; z-index: 1; pointer-events: none; }
.veil-top { background: linear-gradient(180deg, rgba(11, 10, 9, 0.5) 0%, rgba(11, 10, 9, 0) 20%); }
.veil-left { background: linear-gradient(92deg, rgba(11, 10, 9, 0.66) 0%, rgba(11, 10, 9, 0.42) 26%, rgba(11, 10, 9, 0.1) 48%, rgba(11, 10, 9, 0) 62%); }
.veil-bottom { background: linear-gradient(0deg, rgba(11, 10, 9, 1) 0%, rgba(11, 10, 9, 0.62) 18%, rgba(11, 10, 9, 0.16) 32%, rgba(11, 10, 9, 0) 46%); }

.hero-copy { position: absolute; left: var(--gutter); top: max(19vh, 140px); z-index: 3; width: min(66vw, 1280px); will-change: transform, opacity; }
.kicker { margin: 0 0 3.4vh; display: flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg2); }
.kicker i { font-style: normal; color: var(--mute); }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); margin-right: 6px; animation: live 3.2s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --tf (set by fitTitle, ≤ 1) scales the poster title to the copy box */
.title-wrap { position: relative; margin: 0; font-weight: 400; height: calc(var(--tfs) * var(--tf, 1) * 0.86); }
.title-word {
  position: absolute; left: 0; bottom: 0; margin: 0;
  font-family: 'Anton', Impact, 'Arial Narrow', sans-serif; font-weight: 400;
  font-size: calc(var(--tfs) * var(--tf, 1)); line-height: 0.86; letter-spacing: 0.012em; text-transform: uppercase; white-space: nowrap;
  color: var(--fg); transform: none; transform-origin: 0 100%;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}
.ch { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.02em 0.03em 0.08em 0.01em; margin: -0.02em -0.05em -0.08em -0.01em; }
.ch.sp { width: 0.26em; }
.ch > i { display: inline-block; font-style: normal; transform: translateY(115%); will-change: transform; }

.headline { margin: 3vh 0 3.6vh; max-width: 640px; font-size: clamp(18px, 1.25vw, 24px); font-weight: 300; line-height: 1.35; color: var(--fg); letter-spacing: -0.005em; }
.hero-actions { display: flex; align-items: center; gap: 40px; }
.cta { display: inline-flex; align-items: center; gap: 18px; padding: 0; background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--fg); }
/* the play disc: a hairline ring that fills on hover */
.cta-disc { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(237, 232, 223, 0.7); color: var(--fg); display: grid; place-items: center; transition: background 0.45s var(--ease-out), color 0.45s, border-color 0.45s, transform 0.6s var(--ease-out); flex: none; }
.cta-disc svg { margin-left: 2px; }
.cta-txt { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.cta-txt em { font-style: normal; font-size: 10px; letter-spacing: 0.26em; color: var(--mute); }
.cta:hover .cta-disc, .cta:focus-visible .cta-disc { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: scale(1.04); }
.ghost { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg); text-decoration: none; padding: 15px 26px; border: 1px solid rgba(237, 232, 223, 0.3); border-radius: 999px; background: none; cursor: pointer; transition: border-color 0.35s, background 0.35s, color 0.35s; }
.ghost:hover, .ghost:focus-visible { border-color: var(--fg); background: rgba(237, 232, 223, 0.06); }
.ghost-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ghost[hidden], .cta[hidden] { display: none; }
.ghost-solid:hover, .ghost-solid:focus-visible { background: #fff; color: var(--bg); }

/* strip at the bottom of the hero = the selection */
.strip-block { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; z-index: 3; }
.strip-head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.strip-head .row-title { flex: 1; }
.scroll-hint { display: flex; align-items: center; gap: 16px; font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg2); white-space: nowrap; }
.scroll-hint i { display: block; width: 54px; height: 1px; background: rgba(237, 232, 223, 0.55); transform-origin: 0 50%; animation: hintline 3s var(--ease-out) infinite; }
@keyframes hintline { 0% { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.strip { margin: 0; padding: 0; list-style: none; }

/* ---------- CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; margin: 0; padding: 0; list-style: none; min-width: 0; }
.card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 4px; }
.card-media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--bg2);
  transform: translateZ(0);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
  box-shadow: 0 0 0 1px rgba(237, 232, 223, 0);
}
.card.v .card-media { aspect-ratio: 9 / 16; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease-out), opacity 0.6s; }
.card.is-hover .card-media img, .card.is-hover .card-media video { transform: scale(1.045); }
.card-media video { opacity: 0; transition: opacity 0.5s; }
.card.is-hover .card-media video.is-playing { opacity: 1; }
.card-open { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; }
.card-open-txt { display: none !important; } /* the caption under the frame carries the title: the frame stays clean */
.card-open-grad { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, rgba(8, 7, 6, 0) 40%, rgba(8, 7, 6, 0.45) 100%); }
.card-open-txt { position: absolute; left: 16px; right: 64px; bottom: 15px; display: flex; flex-direction: column; gap: 6px; }
.card-open strong { font-weight: 400; font-size: 15px; line-height: 1.25; color: #fff; letter-spacing: -0.005em; }
.card-open small { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(237, 232, 223, 0.7); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-disc { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(237, 232, 223, 0.85); display: grid; place-items: center; transform: scale(0.7); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.35s; }
.play-disc::before { content: ''; width: 0; height: 0; border-left: 9px solid var(--fg); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.card.is-hover .card-media { box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.85); }
.card.is-hover .card-open { opacity: 1; }
.card.is-hover .play-disc { transform: scale(1); opacity: 1; }
.card-cap { margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.card.is-hover .cap-t { color: #fff; }
.cap-t { font-size: 13.5px; line-height: 1.3; letter-spacing: -0.005em; color: var(--fg2); transition: color 0.5s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap-c { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- SECTION TITLES ---------- */
.sec-title { margin: 0; font-weight: 300; font-size: clamp(40px, 3.9vw, 74px); line-height: 1; letter-spacing: -0.035em; color: var(--fg); }

/* ---------- FORMATS VERTICAUX ---------- */
.verticals { position: relative; padding: 150px var(--gutter) 40px; }
.v-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.v-sub { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.vgrid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--vcols, 7), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.vgrid .card:nth-child(even) { margin-top: 56px; }
.vgrid .card-open-txt { right: 16px; bottom: 18px; }
.vgrid .play-disc { right: 50%; bottom: auto; top: 50%; transform: translate(50%, -50%) scale(0.7); }
.vgrid .card.is-hover .play-disc { transform: translate(50%, -50%) scale(1); }

/* ---------- AUTRES FILMS ---------- */
.catalogue { padding: 140px 0 40px; display: flex; flex-direction: column; gap: 80px; }
.catalogue:empty { display: none; }
.row { padding: 0 var(--gutter); }
.row .sec-title { margin-bottom: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.row ul { margin: 0; padding: 0; list-style: none; }

/* ---------- CLIENTS ---------- */
.clients { margin: 110px var(--gutter) 0; padding: 70px 0 74px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.clients-eyebrow { margin-bottom: 30px; }
.clients-line { margin: 0 auto; max-width: 1300px; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 0; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--fg); }
.clients-line span { white-space: nowrap; }
.clients-line span + span::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 28px; }

/* ---------- STUDIO: text + two behind-the-scenes frames from the reel ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 100px; align-items: center; padding: 180px var(--gutter) 130px; }
.studio-p { margin: 0; font-size: clamp(24px, 1.75vw, 34px); font-weight: 300; line-height: 1.34; letter-spacing: -0.015em; color: var(--fg); max-width: 600px; }
.studio-visual { position: relative; height: 560px; }
.bts { position: absolute; margin: 0; overflow: hidden; border-radius: 4px; background: var(--bg2); box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.85); }
.bts img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bts-1 { left: 0; top: 0; width: 82%; aspect-ratio: 1920 / 800; }
.bts-2 { right: 0; bottom: 0; width: 56%; aspect-ratio: 1920 / 800; z-index: 1; box-shadow: 0 0 0 10px var(--bg), 0 40px 70px -30px rgba(0, 0, 0, 0.9); }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 100px; align-items: center; padding: 140px 0 150px; border-top: 1px solid var(--line); margin: 0 var(--gutter); }
.contact-title { margin: 0 0 48px; font-weight: 300; font-size: clamp(46px, 4.4vw, 86px); line-height: 1.02; letter-spacing: -0.04em; color: var(--fg); max-width: 11em; }
.contact-actions { display: flex; align-items: center; gap: 44px; }
.insta { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color 0.4s, border-color 0.4s; }
.insta:hover { color: var(--fg); border-color: var(--fg); }
.reel-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--bg2); cursor: pointer; text-align: left; transform: translateZ(0); color: var(--fg);
  box-shadow: 0 0 0 1px rgba(237, 232, 223, 0.08), 0 40px 70px -30px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.6s var(--ease-out);
}
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.reel-card-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 6, 0.9) 0%, rgba(8, 7, 6, 0.5) 30%, rgba(8, 7, 6, 0.1) 60%, rgba(8, 7, 6, 0) 80%); }
.reel-card-ui { position: absolute; left: 34px; right: 34px; bottom: 30px; display: flex; align-items: center; gap: 22px; }
.reel-card-txt { display: flex; flex-direction: column; gap: 8px; }
.reel-card-txt strong { font-weight: 300; font-size: 30px; line-height: 1; letter-spacing: -0.03em; color: var(--fg); }
.reel-card-txt small { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg2); }
.reel-card:hover img, .reel-card:focus-visible img { transform: scale(1.025); }
.reel-card:hover, .reel-card:focus-visible { box-shadow: 0 0 0 1px rgba(237, 232, 223, 0.35), 0 40px 70px -30px rgba(0, 0, 0, 0.8); }
.reel-card:hover .cta-disc, .reel-card:focus-visible .cta-disc { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- FOOTER ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); }
.footer-nav { display: flex; gap: 32px; }
.footer-nav a, .footer-nav button { color: var(--fg2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; }

/* ---------- OVERLAYS ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 8, 0.97); display: grid; place-items: center; }
.overlay[hidden] { display: none; }
.overlay-close { position: absolute; top: 30px; right: var(--gutter); z-index: 2; background: none; border: 0; color: var(--fg); cursor: pointer; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.overlay-close span { font-size: 24px; line-height: 1; font-weight: 300; }
.reel-box { width: min(86vw, 1600px); aspect-ratio: 16 / 9; background: #000; }
.reel-box.v { width: auto; height: 86vh; aspect-ratio: 9 / 16; }
.reel-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.detail { grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; padding: 0 var(--gutter); }
.detail-media { position: relative; width: 100%; max-width: 1360px; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; justify-self: end; }
.detail-media.v { aspect-ratio: 9 / 16; width: auto; height: 82vh; }
.detail-media img, .detail-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.detail-media video { opacity: 0; transition: opacity 0.6s; }
.detail-media video.is-on { opacity: 1; }
.detail-side { justify-self: start; }
.detail-title { margin: 0 0 16px; font-size: 34px; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.detail-client { margin: 0 0 40px; font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); }

/* ---------- MAISON DETAILS: numbering, vignette, grain, curtain, cursor, signature ---------- */
.cap-n { display: block; font-size: 9.5px; letter-spacing: 0.3em; color: var(--mute); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(140% 110% at 50% 45%, rgba(11, 10, 9, 0) 55%, rgba(11, 10, 9, 0.55) 100%); }
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

.curtain { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.curtain-mark { font-family: 'Anton', Impact, sans-serif; font-size: 15px; letter-spacing: 0.62em; padding-left: 0.62em; text-transform: uppercase; color: var(--fg); opacity: 0; }
html.has-curtain .curtain { visibility: visible; }

.cursor { position: fixed; left: 0; top: 0; z-index: 110; width: 0; height: 0; pointer-events: none; will-change: transform; }
.cursor-dot { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; transform: scale(0); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.45s; }
.cursor-dot span { font-size: 10px; letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; font-weight: 600; }
.cursor.is-on .cursor-dot { transform: scale(1); opacity: 1; }
html.has-cursor .play-disc { display: none; }
html.has-cursor .card-btn { cursor: none; }

.signature { padding: 50px var(--gutter) 14px; overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.signature-word { margin: 0; font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; white-space: nowrap; line-height: 0.82; letter-spacing: 0.012em; color: var(--fg); font-size: 12vw; display: inline-block; }
.signature-word .sl { display: inline-block; }

/* ---------- VIRTUAL SCROLL (headless capture mode) ---------- */
html.is-virtual, html.is-virtual body { overflow: hidden; height: 100%; }
html.is-virtual #page { position: fixed; inset: 0; overflow: hidden; }
html.is-virtual #pageInner { position: relative; }
html.is-virtual .nav::after, html.is-virtual .brand, html.is-virtual .frame-vid { transition: none; }

/* ---------- INITIAL (pre-intro) STATES ---------- */
.js .nav, .js .kicker, .js .headline, .js .hero-actions, .js .scroll-hint, .js .frame { opacity: 0; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint i, .live { animation: none; }
  .card-media, .play-disc, .card-open, .cta-disc, .brand { transition-duration: 0.01s; }
}

/* ---------- 1440 ---------- */
@media (max-width: 1500px) {
  :root { --gutter: 56px; }
  .vgrid .card:nth-child(even) { margin-top: 44px; }
  .studio-visual { height: 460px; }
  .contact { gap: 56px; }
}

/* ---------- PHONE-ONLY ELEMENTS (hidden on desktop) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.hero-screen { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; visibility: hidden; }
.menu-btn, .v-nav { display: none; }
.mnav { display: none; }

/* ============================================================
   PHONE / NARROW (≤ 899 px) — written for the phone, not shrunk from the desktop:
   one film per line, generous air (24 px margins, 100+ px between chapters), nothing cut at the screen edge
   except the 9:16 carousel, which shows one large film at a time with a counter.
   ============================================================ */
@media (max-width: 899px) {
  :root { --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); --gap: 14px; --tfs: 22vw; --navh: 64px; }

  /* nav: wordmark left, MENU right */
  .nav { height: calc(var(--navh) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0; grid-template-columns: 1fr auto; }
  .nav::before { inset: 0 0 -36px 0; background: linear-gradient(180deg, rgba(11, 10, 9, 0.62) 0%, rgba(11, 10, 9, 0.22) 60%, rgba(11, 10, 9, 0) 100%); }
  .nav::after { inset: 0; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  html.menu-open .nav::before, html.menu-open .nav::after { opacity: 0; }
  .menu-l, .menu-r { display: none; }
  /* the small wordmark appears once the big title has left the screen (never two names at once) */
  .brand { justify-self: start; font-size: 12.5px; letter-spacing: 0.38em; padding-left: 0; }
  html.menu-open .nav .brand { opacity: 1; transform: none; pointer-events: auto; }
  .menu-btn { display: inline-flex; align-items: center; gap: 14px; justify-self: end; margin-right: -4px; padding: 12px 4px; background: none; border: 0; color: var(--fg); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; cursor: pointer; }
  .menu-btn-ico { position: relative; width: 22px; height: 7px; flex: none; }
  .menu-btn-ico i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.55s var(--ease-out), top 0.55s var(--ease-out); }
  .menu-btn-ico i:first-child { top: 0; }
  .menu-btn-ico i:last-child { top: 6px; }
  html.menu-open .menu-btn-ico i:first-child { top: 3px; transform: rotate(35deg); }
  html.menu-open .menu-btn-ico i:last-child { top: 3px; transform: rotate(-35deg); }

  /* the menu: a quiet full-screen index */
  .mnav { position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow-y: auto; background: var(--bg); padding: calc(var(--navh) + env(safe-area-inset-top) + 36px) var(--gutter) calc(34px + env(safe-area-inset-bottom)); }
  .mnav[hidden] { display: none; }
  html.menu-open { overflow: hidden; }
  .mnav-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .mnav-links a, .mnav-links button { display: flex; align-items: baseline; gap: 20px; width: 100%; padding: 18px 0 17px; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; cursor: pointer; color: var(--fg); font-size: 32px; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
  .mnav-links small { flex: none; width: 24px; font-size: 10px; font-weight: 400; letter-spacing: 0.3em; color: var(--mute); transform: translateY(-3px); }
  .mnav-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg2); }
  .mnav-foot a { color: inherit; text-decoration: none; padding: 8px 0; }
  .mnav-foot a:first-child { text-transform: none; letter-spacing: 0.04em; font-size: 13px; }

  /* hero: the first screen is the film; the copy sits at the bottom of it */
  .hero { height: auto; min-height: 0; padding: 0; overflow: visible; }
  .hero-screen, .frame, .veil, .hero::after { height: 100vh; height: 100svh; }
  .hero-screen { bottom: auto; }
  .frame { inset: 0 0 auto 0; overflow: hidden; }
  .veil { inset: 0 0 auto 0; }
  .hero::after { bottom: auto; background: radial-gradient(150% 100% at 50% 40%, rgba(11, 10, 9, 0) 55%, rgba(11, 10, 9, 0.5) 100%); }
  .veil-top { background: linear-gradient(180deg, rgba(11, 10, 9, 0.45) 0%, rgba(11, 10, 9, 0) 22%); }
  .veil-left { background: linear-gradient(0deg, rgba(11, 10, 9, 0.9) 0%, rgba(11, 10, 9, 0.6) 26%, rgba(11, 10, 9, 0.16) 54%, rgba(11, 10, 9, 0) 72%); }
  .veil-bottom { background: linear-gradient(0deg, rgba(11, 10, 9, 1) 0%, rgba(11, 10, 9, 0) 14%); }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; z-index: 3; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--navh) + 40px) var(--gutter) calc(44px + env(safe-area-inset-bottom)); }
  .kicker { margin: 0 0 20px; gap: 10px; font-size: 9.5px; letter-spacing: 0.34em; }
  .headline { margin: 20px 0 34px; max-width: none; font-size: 16px; line-height: 1.45; color: var(--fg2); text-wrap: balance; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta { gap: 16px; }
  .cta-disc { width: 52px; height: 52px; }
  .cta-txt { font-size: 10px; letter-spacing: 0.28em; gap: 6px; white-space: nowrap; }
  .cta-txt em { font-size: 9.5px; letter-spacing: 0.24em; }
  .hero-actions .ghost { margin-left: 0; padding: 0 0 5px; border: 0; border-bottom: 1px solid rgba(237, 232, 223, 0.35); border-radius: 0; background: none; font-size: 9.5px; letter-spacing: 0.28em; white-space: nowrap; color: var(--fg2); }
  .scroll-hint { display: none; }

  /* selection: one film per line, full width */
  .strip-block { position: relative; left: auto; right: auto; bottom: auto; z-index: 3; margin: 0; padding: 64px var(--gutter) 0; }
  .strip-head { margin-bottom: 30px; }
  .row-title { font-size: 10px; letter-spacing: 0.34em; gap: 18px; }
  .strip.grid { display: flex; flex-direction: column; gap: 56px; }

  /* cards on a phone: no hover chrome, the loop plays when the card reaches the middle of the screen */
  .card-media, .card-btn, .reel-card, .bts { border-radius: 2px; }
  .card.is-hover .card-media img, .card.is-hover .card-media video { transform: none; }
  .card.is-hover .card-open { opacity: 0; }
  .card.is-hover .card-media { box-shadow: none; }
  .card-cap { margin-top: 18px; gap: 8px; }
  .cap-n { font-size: 10px; margin-bottom: 2px; }
  .cap-t { font-size: 17px; font-weight: 300; line-height: 1.32; color: var(--fg); -webkit-line-clamp: 3; }
  .cap-c { font-size: 9.5px; line-height: 1.6; letter-spacing: 0.24em; white-space: normal; overflow: visible; }

  /* formats verticaux: one large 9:16 at a time, a counter and a hairline */
  .verticals { --vw: min(68vw, 300px, 45vh); padding: 120px 0 0; }
  .v-head { align-items: flex-end; gap: 20px; margin: 0 var(--gutter) 30px; padding-bottom: 22px; }
  .sec-title { font-size: 38px; letter-spacing: -0.035em; }
  .v-sub { margin-bottom: 4px; font-size: 10px; }
  .vgrid { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vgrid::-webkit-scrollbar { display: none; }
  .vgrid::before, .vgrid::after { content: ''; flex: 0 0 calc((100vw - var(--vw)) / 2 - 14px); }
  .vgrid .card { flex: 0 0 var(--vw); scroll-snap-align: center; }
  .vgrid .card:nth-child(even) { margin-top: 0; }
  .vgrid .cap-t { font-size: 15px; }
  .v-nav { display: flex; align-items: center; gap: 18px; margin: 30px calc((100vw - var(--vw)) / 2) 0; }
  .v-count { flex: none; font-size: 10px; letter-spacing: 0.3em; color: var(--fg2); font-variant-numeric: tabular-nums; }
  .v-track { position: relative; flex: 1; height: 1px; overflow: hidden; background: var(--line); }
  .v-track i { position: absolute; left: 0; top: 0; height: 1px; width: 10%; background: var(--fg); transition: transform 0.3s var(--ease-out); }

  /* autres films: an index, frame left, title right, a hairline between */
  .catalogue { padding: 120px 0 0; gap: 0; }
  .row { padding: 0 var(--gutter); }
  .row .sec-title { margin: 0; padding-bottom: 22px; }
  .row-more .grid { display: flex; flex-direction: column; gap: 0; }
  .row-more .card { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .row-more .card.v { grid-template-columns: 26% minmax(0, 1fr); }
  .row-more .card-cap { margin: 0; gap: 7px; }
  .row-more .cap-t { font-size: 15px; -webkit-line-clamp: 3; }
  .row-more .cap-c { font-size: 9px; letter-spacing: 0.22em; }

  /* clients: a credit roll */
  .clients { margin: 120px var(--gutter) 0; padding: 60px 0 64px; }
  .clients-eyebrow { margin-bottom: 30px; font-size: 10px; }
  .clients-line { flex-direction: column; align-items: center; gap: 0; font-size: 11px; line-height: 2.7; letter-spacing: 0.32em; }
  .clients-line span + span::before { display: none; }

  /* studio: words, then the two set photos stacked */
  .studio { grid-template-columns: 1fr; gap: 44px; padding: 120px var(--gutter) 30px; }
  .studio-p { font-size: 22px; line-height: 1.42; letter-spacing: -0.012em; }
  .studio-visual { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .bts { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none !important; box-shadow: none; }
  .bts-1, .bts-2 { width: 100%; margin: 0; box-shadow: none; }

  /* contact */
  .contact { margin: 90px var(--gutter) 0; padding: 100px 0 90px; grid-template-columns: 1fr; gap: 56px; }
  .contact-title { margin-bottom: 38px; font-size: clamp(38px, 11.5vw, 54px); line-height: 1.04; }
  .contact-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .contact-actions .ghost-solid, .insta { justify-content: center; text-align: center; padding: 19px 24px; font-size: 10.5px; letter-spacing: 0.3em; border-radius: 999px; }
  .insta { display: flex; align-items: center; color: var(--fg); border: 1px solid rgba(237, 232, 223, 0.3); }
  .reel-card-ui { left: 18px; right: 18px; bottom: 18px; gap: 14px; }
  .reel-card .cta-disc { width: 46px; height: 46px; }
  .reel-card-txt strong { font-size: 22px; }

  /* signature + footer */
  .signature { padding: 46px var(--gutter) 10px; }
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 34px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 14px 24px; }

  /* overlays */
  .overlay-close { right: var(--gutter); top: calc(14px + env(safe-area-inset-top)); }
  .reel-box, .reel-box.v { width: 100vw; height: auto; max-height: calc(100svh - 116px - 2 * env(safe-area-inset-top)); }
  .overlay { background: var(--bg); }
  .detail { grid-template-columns: 1fr; gap: 26px; padding: calc(72px + env(safe-area-inset-top)) var(--gutter) calc(30px + env(safe-area-inset-bottom)); align-content: center; overflow-y: auto; }
  .detail-media { justify-self: stretch; border-radius: 2px; }
  .detail-media.v { height: 56vh; height: min(56svh, calc(100svh - 310px)); justify-self: center; }
  .detail-title { font-size: 26px; }
  .detail-client { margin-bottom: 30px; }
  .detail-side { justify-self: stretch; }
  .detail-side .ghost-solid { width: 100%; justify-content: center; padding: 18px 24px; }
  .overlay-close span { font-size: 20px; font-weight: 300; }

  /* review pass: calmer type, one header style, no floating rules, square buttons */
  .kicker { font-size: 10.5px; letter-spacing: 0.26em; }
  .cap-c, .row-more .cap-c { font-size: 10px; letter-spacing: 0.16em; }
  .cta-txt { font-size: 11px; letter-spacing: 0.22em; }
  .cta-txt em, .hero-actions .ghost { font-size: 10px; letter-spacing: 0.2em; }
  .row-title, .v-sub, .v-count, .eyebrow, .clients-eyebrow, .footer, .footer-nav a, .footer-nav button { font-size: 10.5px; letter-spacing: 0.24em; }
  #stripTitle { font-size: 38px; font-weight: 300; line-height: 1; letter-spacing: -0.035em; text-transform: none; color: var(--fg); }
  #stripTitle::after { display: none; }
  .strip-head { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .row-more .cap-cat { display: none; }
  .row-more .cap-t { text-wrap: balance; }
  .row-more .cap-c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clients { margin-top: 64px; border-top: 0; }
  .contact { margin-top: 60px; border-top: 0; }
  .signature { border-top: 0; }
  .footer > span:first-child { display: none; }
  .contact-actions .ghost-solid, .detail-side .ghost-solid { border-radius: 2px; }
  .insta { align-self: flex-start; justify-content: flex-start; padding: 12px 0 6px; border: 0; border-bottom: 1px solid rgba(237, 232, 223, 0.3); border-radius: 0; }
}

@media (max-width: 370px) {
  :root { --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .mnav-links a, .mnav-links button { font-size: 28px; }
  .hero-actions { gap: 16px; }
  .cta-txt em { display: none; }
}

/* tablet portrait / phone held sideways: two films per line in the selection */
@media (min-width: 600px) and (max-width: 899px) {
  .strip.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 18px; }
}
/* phone held sideways: a short screen, the whole hero copy must sit inside the film */
@media (max-width: 899px) and (max-height: 520px) and (orientation: landscape) {
  .hero-copy { padding-top: calc(var(--navh) + 12px); padding-bottom: calc(26px + env(safe-area-inset-bottom)); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .kicker { margin-bottom: 12px; }
  .headline { margin: 12px 0 18px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 34px; }
  .hero-actions .ghost { margin-left: 0; }
  .cta-disc { width: 46px; height: 46px; }
  .nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .veil-left { background: linear-gradient(92deg, rgba(11, 10, 9, 0.72) 0%, rgba(11, 10, 9, 0.46) 42%, rgba(11, 10, 9, 0.1) 72%, rgba(11, 10, 9, 0) 88%), linear-gradient(0deg, rgba(11, 10, 9, 0.85) 0%, rgba(11, 10, 9, 0) 55%); }
  /* film sheet: film left, words right, all inside the short screen */
  .detail { grid-template-columns: minmax(0, 1fr) minmax(220px, 32%); gap: 32px; padding: 16px var(--gutter); }
  .detail-media { width: min(100%, calc((100svh - 32px) * 16 / 9)); justify-self: center; }
  .detail-media.v { height: calc(100svh - 32px); width: auto; }
  .detail-client { margin-bottom: 22px; }
  /* menu: two columns so every entry fits */
  .mnav { padding-top: calc(var(--navh) + 8px); gap: 18px; }
  .mnav-links { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 40px; }
  .mnav-links a, .mnav-links button { font-size: 24px; padding: 12px 0 11px; }
}

/* ============================================================
   PHONE SCALE (v4) — Paul: "tout est encore trop gros". A finer scale on phones: smaller type, the selection
   as a 2-column mosaic, the 9:16 films as a 3-column grid, more black around everything.
   ============================================================ */
@media (max-width: 899px) {
  :root { --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); --navh: 56px; }
  .brand { font-size: 11px; letter-spacing: 0.36em; }
  .menu-btn { font-size: 9px; gap: 12px; }
  .menu-btn-ico { width: 18px; }

  .kicker { margin-bottom: 14px; font-size: 9px; letter-spacing: 0.26em; }
  .headline { margin: 14px 0 24px; font-size: 14px; }
  .cta { gap: 14px; }
  .cta-disc { width: 42px; height: 42px; }
  .cta-disc svg { width: 13px; height: 13px; }
  .cta-txt { font-size: 9.5px; letter-spacing: 0.22em; gap: 5px; }
  .cta-txt em, .hero-actions .ghost { font-size: 9px; letter-spacing: 0.2em; }
  .hero-actions { gap: 18px; }
  .hero-copy { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }

  .sec-title, #stripTitle { font-size: 26px; letter-spacing: -0.03em; }
  .strip-block { padding-top: 56px; }
  .strip-head, .v-head { margin-bottom: 22px; padding-bottom: 16px; }

  /* selection: a 2-column mosaic */
  .strip.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .card-cap { margin-top: 10px; gap: 5px; }
  .cap-n { font-size: 8.5px; margin-bottom: 0; }
  .cap-t { font-size: 12.5px; line-height: 1.3; -webkit-line-clamp: 2; text-wrap: balance; }
  .cap-c { font-size: 8.5px; letter-spacing: 0.14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cap-cat { display: none; }

  /* formats verticaux: a 3-column grid, frames only (the title is in the film sheet) */
  .verticals { padding-top: 96px; }
  .v-head { margin: 0 var(--gutter) 22px; }
  .vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; scroll-snap-type: none; padding: 0 var(--gutter); }
  .vgrid::before, .vgrid::after { display: none; }
  .vgrid .card { flex: none; }
  .vgrid .card-cap { display: none; }
  .v-nav { display: none; }

  /* autres films: the index, finer */
  .catalogue { padding-top: 96px; }
  .row .sec-title { padding-bottom: 16px; }
  .row-more .card { grid-template-columns: 38% minmax(0, 1fr); gap: 14px; padding: 14px 0; }
  .row-more .cap-t { font-size: 13px; }
  .row-more .cap-c { font-size: 8.5px; }

  .clients { margin-top: 56px; padding: 44px 0 46px; }
  .clients-eyebrow { margin-bottom: 22px; font-size: 9px; }
  .clients-line { font-size: 9.5px; line-height: 2.5; letter-spacing: 0.28em; }

  .studio { gap: 32px; padding: 96px var(--gutter) 24px; }
  .studio-p { font-size: 17px; line-height: 1.45; }
  .eyebrow { font-size: 9px; margin-bottom: 16px; }

  .contact { margin-top: 48px; padding: 80px 0 72px; gap: 40px; }
  .contact-title { margin-bottom: 26px; font-size: 30px; line-height: 1.08; text-wrap: balance; }
  .contact-actions .ghost-solid { padding: 15px 20px; font-size: 9.5px; }
  .insta { font-size: 9.5px; }
  .reel-card-ui { left: 14px; right: 14px; bottom: 14px; gap: 12px; }
  .reel-card .cta-disc { width: 38px; height: 38px; }
  .reel-card-txt strong { font-size: 17px; }
  .reel-card-txt small { font-size: 8.5px; }

  .signature { padding: 36px var(--gutter) 6px; }
  .footer { gap: 16px; padding-top: 26px; }
  .footer, .footer-nav a, .footer-nav button { font-size: 9px; }

  .mnav { padding-top: calc(var(--navh) + env(safe-area-inset-top) + 28px); }
  .mnav-links a, .mnav-links button { font-size: 22px; padding: 15px 0 14px; gap: 16px; }
  .mnav-links small { font-size: 9px; width: 20px; transform: translateY(-2px); }
  .mnav-foot { font-size: 9px; }
  .mnav-foot a:first-child { font-size: 12px; }

  .detail-title { font-size: 20px; }
  .detail-client { font-size: 9px; margin-bottom: 24px; }
  .detail-side .ghost-solid { padding: 15px 20px; font-size: 9.5px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .strip.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 899px) and (max-height: 520px) and (orientation: landscape) {
  .strip.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mnav-links a, .mnav-links button { font-size: 19px; padding: 10px 0 9px; }
}
