@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300&family=Michroma&display=swap");

/* ============================================================
   Julien Cardeillac
   Minion Pro (serif) × Montserrat (sans). Froid, sobre.
   ============================================================ */

@font-face {
  font-family: "Decay";
  src: url("fonts/decay-white-std.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dream";
  src: url("fonts/dream-morish.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Diastema";
  src: url("fonts/Diastema\ Regular.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Diastema Italic";
  src: url("fonts/Diastema\ Italic.ttf") format ("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cronde";
  src: url("fonts/CRONDE.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cronde";
  src: url("fonts/CRONDE-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Raftwork";
  src: url("fonts/raftwork-font/Raftwork-Regular-BF6652aa9b424b2.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Machina";
  src: url("fonts/NeueMachina/NeueMachina-Light.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Acid";
  src: url("fonts/AcidGrotesk-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Neue";
  src: url("fonts/neuehaasgrotdispround-35thin-trial.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}


:root {
  --bg:    #000000;
  --ink:   #cdd0d2;
  --dim:   #74797b;
  --faint: #3b3f41;
  --line:  #1c1f21;

  --serif: "minion-pro", "Minion Pro", "Source Serif 4", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: #20262b; color: #e7eaec; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

.wrap { width: 100%; margin: 0; padding: 0 clamp(1.6rem, 6vw, 6rem); }

/* small sans labels */
.label,
.topbar,
.entry__meta .dur,
.film-meta,
.back,
.foot {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.6rem, 6vw, 6rem);
  color: var(--dim);
}
.topbar a { transition: color 0.3s ease; }
.topbar a:hover { color: var(--ink); }
.topbar .wordmark { color: var(--ink); letter-spacing: 0.22em; }

/* ---------- Home hero ---------- */
.hero {
  padding: clamp(4rem, 14vh, 10rem) 0 clamp(3rem, 8vh, 6rem);
}
.hero__name {
  font-family: "Neue55";
  font-weight: 200;
  font-size: clamp(3rem, 13vw, 11rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero__role {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 1.8rem;
}

/* ---------- Films index ---------- */
.index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 620px;
  padding-bottom: 7rem;
  border-top: 1px solid var(--line);
  padding-top: 4rem;
}
.entry { display: block; }
.entry__poster {
  overflow: hidden;
  background: #000;
}
.entry__poster img {
  transition: opacity 0.5s ease, transform 1.2s ease;
  opacity: 0.86;
}
.entry:hover .entry__poster img { opacity: 1; transform: scale(1.02); }
.entry__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
}
.entry__title {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 200;
}
.entry__meta .dur { color: var(--dim); white-space: nowrap; }

/* ---------- Film page ---------- */
.film-hero { padding: clamp(4.5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem); }
.film-kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--dim);
  margin-bottom: 1.4rem;
}
.film-title {
  font-family: var(--sans);
  font-weight: 100;
  font-size: clamp(2rem, 10vw, 2rem);
  line-height: 1;
}
.film-meta {
  color: var(--dim);
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
}
.film-meta b { color: var(--ink); font-weight: 400; }
.film-meta .sep { color: var(--faint); }
.film-logline {
  max-width: 42rem;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  color: white;
  opacity: 0.6;
}

.stills {
  margin: 5rem;
}

/* film stills — generous side margins, never full-bleed */
.plate { margin: clamp(3rem, 6vw, 6rem) clamp(2rem, 12vw, 16rem); }

/* contained frames (doc stills on black canvas) */
.frame { margin: clamp(2rem, 4vw, 4rem) clamp(2rem, 12vw, 16rem); }

/* poster on a film page */
.poster-lead { max-width: 440px; margin: 0 auto clamp(2rem,5vw,4rem); }
.poster-lead img { border: 1px solid var(--line); }

/* ---------- Infos page ---------- */
.topnav a + a { margin-left: 1.4rem; }
.info { max-width: 760px; padding-bottom: 2rem; }
.info__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.info__row:first-child { border-top: 1px solid var(--line); }
.info__label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--dim);
}
.info__val { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.info__val a { border-bottom: 1px solid var(--faint); transition: border-color 0.3s ease; }
.info__val a:hover { border-color: var(--dim); }
.info__mail {
  display: inline-block;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  border-bottom: 1px solid var(--faint);
  padding-bottom: 0.08em;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.info__mail:hover { color: #e7eaec; border-color: var(--dim); }

/* ---------- Back / footer ---------- */
.back { display: inline-block; color: var(--dim); transition: color 0.3s ease; }
.back:hover { color: var(--ink); }
.film-foot {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 3rem 0 5rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1.6rem, 6vw, 6rem) 4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  body { font-size: 17px; }
  .index { grid-template-columns: 1fr; gap: 3rem; }
  .foot { flex-direction: column; gap: 0.5rem; }
  .info__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .entry:hover .entry__poster img { transform: none; }
}

/* ============================================================
   HOME — mysterious / restrained
   Neue Haas Grotesk Display, thin feel, wide tracking.
   A near-empty void; films bloom a still on hover.
   ============================================================ */

:root {
  --display: "Neue55", "Helvetica Neue", Arial, sans-serif;
  --display-thin: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Minimal corners */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  padding: 2.2rem clamp(1.6rem, 5vw, 4rem);
  mix-blend-mode: difference;
}
.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.6rem;
  color: #cdd0d2;
  transition: opacity 0.5s ease;
  opacity: 0.7;
}
.nav a:hover { opacity: 1; }
.nav__group { display: flex; gap: 1.9rem; }
.home .nav {
  justify-content: flex-end;
}
.home .nav > a {
  display: none;
}

/* ---- HOME: minimal, fixed, permanent background ---- */
body.home {
  overflow: hidden;
  --home-move-x: 0px;
  --home-move-y: 0px;
  --home-role-x: 0px;
  --home-role-y: 0px;
  --home-tilt-x: 0deg;
  --home-tilt-y: 0deg;
}

.home-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.home-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: bgreveal 1.9s ease forwards;
  transform: translate3d(calc(var(--home-move-x) * -0.18), calc(var(--home-move-y) * -0.18), 0) scale(1.02);
  will-change: transform;
}
@keyframes bgreveal { to { opacity: 0.3; } }

.home-stage {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.1rem, 4vw, 3.4rem);
  transform-style: preserve-3d;
}

/* Name */
.signature-image {
  display: block;
  width: min(60vw, 1120px);
  max-width: 100%;
  height: auto;
  transform: translate3d(var(--home-move-x), var(--home-move-y), 0) rotateX(var(--home-tilt-x)) rotateY(var(--home-tilt-y));
  transform-origin: left center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.12));
  will-change: transform;
  opacity: .8;
}

/* Disciplines — floating on the RIGHT, deliberately off-aligned */
.discipline {
  position: absolute;
  right: clamp(1.4rem, 10vw, 5rem);
  bottom: clamp(2.5rem, 16vh, 8rem);
  text-align: right;
  font-family: "Michroma", var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  line-height: 2.9;
  color: white;
  opacity: 0.76;
  transform: translate3d(var(--home-role-x), var(--home-role-y), 0);
  will-change: transform;
}
.discipline span { display: block; }
.discipline span:nth-child(2) { margin-right: 2.6em; }
.discipline span:nth-child(3) { margin-right: 1em; }

/* ---- FILMS gallery ---- */
.gallery-stage {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 3rem;
}

.film-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  width: 100%;
}

.film-slide {
  display: block;
  flex: 0 0 min(26vw, 320px);
  opacity: 1;
  transform: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.film-slide--center {
  flex-basis: min(26vw, 320px);
}

.film-slide--left {
  transform-origin: right center;
}

.film-slide--right {
  transform-origin: left center;
}

.film-slide:hover {
  transform: translateY(-8px);
}

.film-slide__image {
  margin: 0;
}

.film-slide__image img {
  display: block;
  width: 100%;
  aspect-ratio: 0.71;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.film-slide:hover .film-slide__image img {
  transform: scale(1.012);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

/* ---- PHOTOGRAPHY ---- */
.photography-stage {
  min-height: 100vh;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 3rem;
}

.vfx-stage {
  min-height: 100vh;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 3rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-item {
  margin: 0;
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- VFX ---- */
.vfx-grid {
  display: grid;
  gap: clamp(1.2rem, 10vw, 2.6rem);
}

.vfx-item {
  margin: 0;
  width: min(78vw, 820px);
  position: relative;
  overflow: hidden;
}

.vfx-item:nth-child(odd) {
  justify-self: start;
}

.vfx-item:nth-child(even) {
  justify-self: end;
}

.vfx-item__video {
  display: block;
  width: 100%;
  background: #000;
  transition: opacity 1s ease;
}

.vfx-item__video--wireframe {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.vfx-item:hover .vfx-item__video--wireframe {
  opacity: 1;
}

.vfx-item:hover .vfx-item__video--base {
  opacity: 0;
}

/* ---- INFOS — elegant, artsy ---- */
.infos-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.4rem, 4vh, 2.2rem);
  padding: 7rem clamp(1.1rem, 4vw, 3.4rem) 5rem;
}
.infos-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  color: rgba(205, 208, 210, 0.54);
  line-height: 1.2;
}
.infos-panel {
  width: min(100%, 760px);
  display: grid;
  gap: 2.8rem;
}
.infos-mail {
  width: fit-content;
  font-family: "Montserrat";
  font-weight: 200;
  letter-spacing: -0.03em;
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.03em;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.infos-mail:hover { color: #fff; border-color: var(--dim); }
.infos-grid {
  display: grid;
  gap: 1.4rem;
}
.infos-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.infos-label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.52rem;
  color: rgba(205, 208, 210, 0.34);
  padding-top: 0.45rem;
}
.infos-value {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(237, 240, 243, 0.6);
}
.infos-value--stack {
  display: grid;
  gap: 0.5rem;
}
.infos-value a {
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.88;
}
.infos-value a:hover {
  color: #fff;
  opacity: 1;
}

/* Home / films responsive */
@media (max-width: 680px) {
  .signature-image { width: min(90vw, 1120px); }
  .discipline { right: clamp(1.4rem, 6vw, 4rem); bottom: 2.6rem; }
  .gallery-stage { padding-top: 6.8rem; }
  .film-carousel {
    flex-direction: column;
    gap: 1.2rem;
  }
  .film-slide,
  .film-slide--center {
    flex-basis: auto;
    width: min(72vw, 360px);
    transform: none;
    opacity: 1;
  }
  .photography-stage { padding-top: 5.8rem; }
  .vfx-stage { padding-top: 5.4rem; }
  .photo-grid { grid-template-columns: 1fr; }
  .infos-row { grid-template-columns: 1fr; gap: 0.45rem; }
  .vfx-item,
  .vfx-item:nth-child(odd),
  .vfx-item:nth-child(even) {
    width: 100%;
    justify-self: stretch;
  }
  .nav__group { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-bg img,
  .signature-image,
  .discipline {
    transform: none;
  }
  .film-slide,
  .film-slide__image img { transition: none; }
}
