/* SeemoreLab — portfolio
   Mobile d'abord. Les réglages principaux sont dans :root. */

:root {
  --bg: #0b0b0c;
  --bg-2: #121213;
  --ink: #ece6da;          /* ivoire */
  --muted: #8e887d;
  --faint: #56524b;
  --line: rgba(236, 230, 218, .12);
  --sky: #a9bccd;          /* le ciel de Magritte, en touche */

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --gap: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (min-width: 768px)  { :root { --gutter: 48px; --gap: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 80px; --gap: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain de pellicule, très léger */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--sky); outline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  transition: background .6s var(--ease), padding .6s var(--ease), backdrop-filter .6s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 12px; color: var(--ink); }
.brand__word { font: 500 12px/1 var(--sans); letter-spacing: .32em; }
.brand__word span { font-weight: 300; margin-left: .35em; }
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: block; } .nav__links { gap: 36px; } }
@media (max-width: 380px) { .brand__word { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden; background: #000;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 22%),
    linear-gradient(0deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.35) 38%, rgba(11,11,12,0) 62%);
}
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(96px + env(safe-area-inset-bottom));
}
.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
  opacity: .8; margin-bottom: 18px;
}
.hero__title { font-family: var(--serif); font-weight: 400; }
.hero__title .line { display: block; }
.hero__title em {
  font-size: clamp(3.4rem, 15vw, 10.5rem); line-height: .9; letter-spacing: -.01em;
}
.hero__title .line--sub {
  font-size: clamp(1.25rem, 4.6vw, 2.4rem); line-height: 1.15; margin-top: 14px;
  max-width: 22ch; color: var(--ink); opacity: .9;
}
.hero__caption {
  position: absolute; right: var(--gutter); top: 50%;
  font: italic 400 15px/1 var(--serif); color: var(--ink); opacity: .55;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  letter-spacing: .04em;
}
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: calc(32px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
}
.hero__scroll i { display: block; width: 56px; height: 1px; background: var(--ink); opacity: .5; position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-100%); animation: sweep 2.8s var(--ease) infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
@media (min-width: 768px) {
  .hero__content { bottom: 120px; }
  .hero__title .line--sub { margin-top: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px var(--gutter); }
@media (min-width: 768px) { .section { padding: 160px var(--gutter); } }
.section__head { margin-bottom: 56px; display: grid; gap: 10px; }
@media (min-width: 768px) {
  .section__head { grid-template-columns: 80px 1fr auto; align-items: baseline; margin-bottom: 88px; }
}
.section__num { font: italic 400 18px/1 var(--serif); color: var(--muted); }
.section__title {
  font: 400 clamp(2.6rem, 9vw, 5.5rem)/1 var(--serif); letter-spacing: -.01em;
}
.section__lede { font: italic 400 1.2rem/1.4 var(--serif); color: var(--muted); max-width: 30ch; }

/* ---------- Projets ---------- */
.works { padding-top: 110px; }
.row { display: flex; flex-direction: column; gap: 72px; margin-bottom: 72px; }
.row:last-child { margin-bottom: 0; }

.work__media {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--ar); overflow: hidden; background: var(--bg-2);
  cursor: pointer;
}
/* les formats verticaux ne dépassent pas l'écran du téléphone */
.work[style*=".5625"] .work__media { width: min(100%, calc(78svh * .5625)); }
.work__media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform 1.6s var(--ease), opacity .8s;
}
.work__media::after { /* voile au survol */
  content: ""; position: absolute; inset: 0; background: rgba(11,11,12,.0);
  transition: background .8s var(--ease);
}
.work__play {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  display: flex; gap: 10px; align-items: baseline;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.work__play small { font-size: 10px; opacity: .7; letter-spacing: .12em; }

.work__meta { padding-top: 20px; max-width: 46ch; }
.work__tag {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.work__tag span { font: italic 400 14px/1 var(--serif); letter-spacing: 0; color: var(--ink); margin-right: 10px; }
.work__title { font: 400 clamp(1.9rem, 6vw, 2.6rem)/1.05 var(--serif); margin-bottom: 12px; }
.work__title em { display: block; font-size: .62em; color: var(--muted); margin-top: 4px; }
.work__desc { font-size: 15px; color: rgba(236,230,218,.82); }
.work__tools { font-size: 13px; color: var(--muted); margin-top: 8px; }
.work__keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.work__keys li {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.work__keys li::before { content: "— "; color: var(--faint); }

@media (hover: hover) {
  .work__media:hover video { transform: scale(1.035); }
  .work__media:hover::after { background: rgba(11,11,12,.12); }
}

/* Ordinateur : 16:9 et 9:16 côte à côte, même hauteur.
   flex-grow = ratio d'image → les hauteurs s'alignent. */
@media (min-width: 900px) {
  .row { flex-direction: row; align-items: flex-start; gap: var(--gap); margin-bottom: 140px; }
  .row .work { flex: var(--ar) 1 0; min-width: 0; }
  .work[style*=".5625"] .work__media { width: 100%; }
  .row + .row .work:first-child { margin-top: 0; }

  /* rangée solo : texte à gauche, film à droite */
  .work--aside { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: var(--gap); align-items: end; width: 100%; }
  .work--aside .work__meta { padding: 0 0 6px; }

  /* décalage éditorial */
  .row:nth-of-type(3) { padding-left: 6%; }
}

/* ---------- Fan films ---------- */
.fans { padding-top: 40px; }
.section__head--small { margin-bottom: 40px; }
@media (min-width: 768px) { .section__head--small { grid-template-columns: 80px auto 1fr; gap: 28px; } .section__head--small::before { content: ""; } }
.section__title--small { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.section__note { font: italic 400 1.05rem/1.4 var(--serif); color: var(--muted); }
.row--fans { max-width: 1040px; }
@media (min-width: 900px) { .row--fans { margin-left: 80px; } }
.work--fan .work__title { font-size: clamp(1.5rem, 4vw, 1.9rem); }
.work--fan .work__media video { filter: saturate(.85); }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.services__list { counter-reset: s; }
.services__list li {
  counter-increment: s;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 0;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.services__list li:last-child { border-bottom: 1px solid var(--line); }
.services__list li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font: italic 400 15px/2 var(--serif); color: var(--muted);
}
.services__list h3 { font: 400 clamp(1.5rem, 5vw, 2.4rem)/1.15 var(--serif); }
.services__list p { color: var(--muted); font-size: 15px; max-width: 52ch; }
@media (min-width: 900px) {
  .services__list { margin-left: 80px; }
  .services__list li { grid-template-columns: 80px 1.1fr 1fr; align-items: baseline; padding: 34px 0; }
  .services__list li::before { grid-row: auto; }
  .services__list li:hover h3 { font-style: italic; }
}

/* ---------- À propos ---------- */
.about { display: grid; gap: 48px; border-top: 1px solid var(--line); }
.about__photo { margin: 0; position: relative; max-width: 420px; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
/* détail Magritte : un cadre de ciel décalé derrière le portrait */
.about__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  background:
    radial-gradient(40% 22% at 30% 30%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(35% 18% at 72% 62%, rgba(255,255,255,.45), transparent 70%),
    linear-gradient(180deg, #7f98ae, #b7c6d3);
  opacity: .22;
}
.about__text .section__title { margin: 10px 0 28px; }
.about__body { font: 400 clamp(1.3rem, 4.2vw, 1.75rem)/1.45 var(--serif); max-width: 34ch; }
.about__sign { margin-top: 28px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(280px, 5fr) 7fr; gap: 10%; align-items: center; }
  .about__photo { margin-left: 80px; }
}

/* ---------- Contact ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); padding-bottom: 120px; }
.contact__mark { width: 74px; height: 26px; margin: 0 auto 36px; color: var(--ink); animation: blink 9s infinite; transform-origin: center; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.contact__title { font: italic 400 clamp(2.8rem, 11vw, 7rem)/1 var(--serif); margin-bottom: 36px; }
.contact__mail {
  display: inline-block; font: 400 clamp(1.1rem, 4.4vw, 1.7rem)/1.3 var(--serif);
  border-bottom: 1px solid var(--line); padding-bottom: 6px; word-break: break-all;
  transition: border-color .5s;
}
.contact__mail:hover { border-color: var(--ink); }
.contact__links { display: flex; justify-content: center; gap: 36px; margin-top: 40px; }
.contact__links a { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.contact__links a:hover { color: var(--ink); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .12em; color: var(--faint);
}
.footer__caption { font: italic 400 14px/1 var(--serif); letter-spacing: .02em; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(6,6,7,.97); color: var(--ink);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox__frame {
  width: calc(100vw - 2 * var(--gutter)); height: calc(100dvh - 150px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__frame video { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__title { margin-top: 18px; font: italic 400 1.2rem/1 var(--serif); color: var(--muted); }
.lightbox__close {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: var(--gutter);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; padding: 10px 0;
}

/* ---------- Curseur (souris) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(236,230,218,.92); color: var(--bg);
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor svg { width: 30px; height: 11px; }
.cursor span { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; margin-right: -.3em; }
.cursor.is-on { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: flex; }
  .work__media { cursor: none; }
  .work__media .work__play { opacity: 0; }
}

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.8s; }
.js .hero .line--sub { transition-delay: .25s; }
.js .hero__caption.reveal { transform: translateY(-50%) rotate(180deg); transition-delay: 1s; }
.js .hero__caption.reveal.is-in { opacity: .55; transform: translateY(-50%) rotate(180deg); }
.js .hero__scroll { transition-delay: .8s; }
.js .row .work.reveal:nth-child(2) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
