/* =====================================================================
   TOM MORA — PORTFOLIO
   Direction : noir premium automobile · typographie large · code caméra
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --ink:      #0A0A0B;
  --ink-2:    #141417;
  --ink-3:    #1C1C20;
  --bone:     #EDEBE7;
  --grey:     #7C7C83;
  --grey-dim: #4A4A50;
  --brass:    #BE9A5A;
  --line:     rgba(237, 235, 231, .13);
  --line-str: rgba(237, 235, 231, .28);

  --gut:  clamp(20px, 5vw, 64px);
  --maxw: 1560px;
  --ease: cubic-bezier(.19, .78, .21, 1);

  --nav-h: 76px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- 3. TYPOGRAPHIE ---------- */

/* Display : Archivo en largeur étendue — le registre "constructeur premium" */
.display {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 118, "wght" 600;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .92;
  font-weight: 600;
}

/* Meta : monospace, le langage de l'appareil photo */
.meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 400;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.lead {
  font-size: clamp(18px, 1.4vw + 12px, 25px);
  line-height: 1.5;
  color: #C9C7C3;
  font-weight: 400;
}

.dim { color: var(--grey); }

/* ---------- 4. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: clamp(88px, 11vw, 168px); }
.band--tight { padding-block: clamp(60px, 7vw, 104px); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. NAVIGATION ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__mark {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 120, "wght" 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1;
}
.nav__mark span { color: var(--brass); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.nav__link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B6B4B0;
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--bone); }

.nav__cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--line-str);
  padding: 11px 20px;
  color: var(--bone);
  transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.nav__cta:hover { border-color: var(--brass); background: var(--brass); color: var(--ink); }

/* Burger */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 8px; width: 24px; height: 1px;
  background: var(--bone);
  transition: transform .4s var(--ease), opacity .25s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--gut) var(--gut);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__link {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 115, "wght" 600;
  text-transform: uppercase;
  font-size: clamp(34px, 11vw, 58px);
  line-height: 1.12;
  display: block;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.menu__link:hover { color: var(--brass); }
body.menu-open .menu__link { opacity: 1; transform: none; }
body.menu-open .menu__link:nth-child(1) { transition-delay: .18s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: .25s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: .32s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: .39s; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  animation: heroPush 2.6s var(--ease) .25s forwards;
  filter: saturate(.92) contrast(1.04);
}
@keyframes heroPush { to { transform: scale(1); } }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,10,11,.95) 0%, rgba(10,10,11,.35) 42%, rgba(10,10,11,.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(38px, 6vw, 74px);
}

.hero__eyebrow { margin-bottom: clamp(18px, 2.5vw, 30px); }

.hero__name {
  font-size: clamp(58px, 15.5vw, 250px);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hero__name em {
  font-style: normal;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero__name em > span {
  display: inline-block;
  transform: translateY(105%);
  animation: riseIn 1.15s var(--ease) forwards;
}
.hero__name em:nth-of-type(1) > span { animation-delay: .32s; }
.hero__name em:nth-of-type(2) > span { animation-delay: .44s; }
@keyframes riseIn { to { transform: translateY(0); } }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line-str);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.05s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__tag { max-width: 34ch; }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 34px;
  background: var(--line-str);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass);
  animation: trickle 2.1s var(--ease) infinite;
}
@keyframes trickle {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- 7. THÈSE ---------- */
.thesis__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.thesis__label { grid-column: 1 / 4; padding-top: 10px; }
.thesis__body  { grid-column: 4 / 12; }

.thesis__line {
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -.015em;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}
.thesis__line b { font-weight: 500; color: var(--brass); }

.thesis__para { max-width: 62ch; color: #A9A7A3; }
.thesis__para + .thesis__para { margin-top: 1.1em; }

/* ---------- 8. SÉLECTION (home) ---------- */
.selection { position: relative; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: clamp(28px, 3.4vw, 44px);
  margin-bottom: clamp(38px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}
.sec-head__title {
  font-size: clamp(30px, 4.2vw, 68px);
}

.frames {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(52px, 8vw, 130px) clamp(24px, 3vw, 48px);
}

.frame { position: relative; }
.frame--full  { grid-column: 1 / 13; }
.frame--left  { grid-column: 1 / 6; }
.frame--right { grid-column: 8 / 13; }
.frame--inset { grid-column: 4 / 10; }
.frame--offset-down { margin-top: clamp(40px, 6vw, 110px); }

.frame__shot {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.frame__shot img {
  width: 100%;
  transition: transform 1.5s var(--ease), filter 1.1s var(--ease);
  filter: saturate(.9) contrast(1.03);
}
.frame:hover .frame__shot img { filter: saturate(1) contrast(1.03); }

/* Voile qui se lève sur l'image au scroll — l'effet "obturateur" */
.frame__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  transition: transform 1.25s var(--ease);
}
.frame.is-in .frame__shot::after { transform: scaleY(0); }

.frame__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s var(--ease) .45s, transform .8s var(--ease) .45s;
}
.frame.is-in .frame__cap { opacity: 1; transform: none; }

.frame__title {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 112, "wght" 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .05em;
}
.frame__no { color: var(--brass); }

/* Compteur de vues, façon compteur de pose */
.counter {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.counter.is-live { opacity: 1; }
.counter__tick {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--grey-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  transition: color .4s var(--ease);
}
.counter__tick::after {
  content: "";
  width: 12px; height: 1px;
  background: currentColor;
  transition: width .45s var(--ease);
}
.counter__tick.is-on { color: var(--brass); }
.counter__tick.is-on::after { width: 26px; }

/* ---------- 9. TEASER À PROPOS ---------- */
.teaser__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}
.teaser__media { grid-column: 1 / 6; }
.teaser__media img { width: 100%; filter: saturate(.85) contrast(1.05); }
.teaser__body { grid-column: 7 / 13; }
.teaser__title {
  font-size: clamp(28px, 3.8vw, 58px);
  margin: 18px 0 22px;
}

/* ---------- 10. BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--line-str);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--bone);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--ink); border-color: var(--brass); }
.btn:hover::before { transform: translateY(0); }
.btn__arrow { transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ---------- 11. BANDEAU CTA ---------- */
.cta-band { border-top: 1px solid var(--line); }
.cta-band__title {
  font-size: clamp(38px, 8.5vw, 148px);
  margin-bottom: clamp(26px, 3.4vw, 44px);
}
.cta-band__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- 12. PIED DE PAGE ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 44px;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
}
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { transition: color .3s var(--ease); }
.foot__links a:hover { color: var(--brass); }

/* ---------- 13. EN-TÊTE DE PAGE INTÉRIEURE ---------- */
.phead {
  padding-top: calc(var(--nav-h) + clamp(60px, 9vw, 130px));
  padding-bottom: clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--line);
}
.phead__title {
  font-size: clamp(46px, 10vw, 148px);
  margin: 20px 0 0;
}
.phead__sub { margin-top: clamp(20px, 2.4vw, 30px); max-width: 56ch; }

/* ---------- 14. GRILLE PORTFOLIO ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: clamp(28px, 3.5vw, 44px);
}
.filter {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.filter:hover { color: var(--bone); border-color: var(--line-str); }
.filter[aria-pressed="true"] { color: var(--ink); background: var(--bone); border-color: var(--bone); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
  padding-bottom: clamp(70px, 9vw, 130px);
}

.shot {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.shot.is-in { opacity: 1; transform: none; }
.shot.is-hidden { display: none; }

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.88) contrast(1.04);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.shot--tall img { aspect-ratio: 4 / 6; }
.shot--wide { grid-column: span 2; }
.shot--wide img { aspect-ratio: 16 / 10; }
.shot:hover img { filter: saturate(1) contrast(1.04); }

.shot__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  text-align: left;
  background: linear-gradient(to top, rgba(10,10,11,.9), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.shot:hover .shot__info,
.shot:focus-visible .shot__info { opacity: 1; transform: none; }
.shot__info > span { display: block; }
.shot__name {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 112, "wght" 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

/* ---------- 15. VISIONNEUSE ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 8, 9, .97);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: clamp(52px, 7vw, 90px) clamp(16px, 5vw, 90px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
}
.viewer__cap {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.4vw, 40px);
  transform: translateX(-50%);
  text-align: center;
  width: min(90%, 640px);
}
.viewer__btn {
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.viewer__btn:hover { border-color: var(--brass); background: var(--brass); color: var(--ink); }
.viewer__btn--prev { left: clamp(12px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); }
.viewer__btn--next { right: clamp(12px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); }
.viewer__btn--close { right: clamp(12px, 2.4vw, 34px); top: clamp(14px, 2.4vw, 28px); }

/* ---------- 16. PAGE HISTOIRE ---------- */
.story__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: start;
}
.story__aside { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 40px); }
.story__aside img { width: 100%; filter: saturate(.85) contrast(1.05); }
.story__main { grid-column: 6 / 13; }

.chapter + .chapter { margin-top: clamp(48px, 6vw, 84px); }
.chapter__title {
  font-size: clamp(22px, 2.3vw, 34px);
  margin: 14px 0 18px;
}
.chapter p { color: #A9A7A3; max-width: 64ch; }
.chapter p + p { margin-top: 1.1em; }

.pull {
  margin: clamp(38px, 5vw, 60px) 0;
  padding: clamp(26px, 3vw, 38px) 0;
  border-block: 1px solid var(--line);
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.36;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--bone);
}

.specs { margin-top: clamp(40px, 5vw, 62px); }
.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.specs__row dt { color: var(--grey); }
.specs__row dd {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
}

/* ---------- 17. CONTACT ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}
.contact__form { grid-column: 1 / 8; }
.contact__side { grid-column: 9 / 13; }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-str);
  padding: 12px 0;
  color: var(--bone);
  transition: border-color .35s var(--ease);
}
.field select { color: var(--bone); }
.field select option { background: var(--ink-2); color: var(--bone); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--brass); }
.field input::placeholder,
.field textarea::placeholder { color: var(--grey-dim); }

.contact__block + .contact__block { margin-top: 34px; }
.contact__block h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.contact__block a { transition: color .3s var(--ease); }
.contact__block a:hover { color: var(--brass); }

.formnote {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  display: none;
}
.formnote.is-shown { display: block; }

/* ---------- 18. RÉVÉLATIONS AU SCROLL ---------- */
.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.rise.is-in { opacity: 1; transform: none; }
.rise[data-delay="1"] { transition-delay: .1s; }
.rise[data-delay="2"] { transition-delay: .2s; }
.rise[data-delay="3"] { transition-delay: .3s; }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .thesis__label { grid-column: 1 / 13; }
  .thesis__body  { grid-column: 1 / 13; }
  .teaser__media { grid-column: 1 / 13; }
  .teaser__body  { grid-column: 1 / 13; }
  .story__aside  { grid-column: 1 / 13; position: static; }
  .story__aside img { max-height: 60vh; object-fit: cover; }
  .story__main   { grid-column: 1 / 13; }
  .contact__form { grid-column: 1 / 13; }
  .contact__side { grid-column: 1 / 13; }
  .counter { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .frame--full, .frame--left, .frame--right, .frame--inset { grid-column: 1 / 13; }
  .frame--offset-down { margin-top: 0; }
  .frames { gap: clamp(44px, 10vw, 70px) 0; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
  .shot--wide img { aspect-ratio: 4 / 5; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
}

/* ---------- 20. MOUVEMENT RÉDUIT ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__media img { transform: none; }
  .hero__name em > span { transform: none; }
  .hero__foot { opacity: 1; }
  .rise, .shot { opacity: 1; transform: none; }
  .frame__shot::after { transform: scaleY(0); }
  .frame__cap { opacity: 1; transform: none; }
}

/* =====================================================================
   21. PROFONDEUR 3D
   Les images entrent en perspective, puis s'inclinent au passage du curseur.
   Tout est piloté par les variables --rx / --ry / --mx / --my posées en JS.
   ===================================================================== */

.viewer__name {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 112, "wght" 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  margin-bottom: 6px;
}

/* ---- Scène ---- */
.gallery { perspective: 1500px; perspective-origin: 50% 40%; }
.frames  { perspective: 1900px; perspective-origin: 50% 45%; }

/* ---- Entrée de la grille portfolio ---- */
.shot {
  transform: translateY(52px) rotateX(11deg) scale(.94);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
}
.shot.is-in { transform: translateZ(0); }

/* La vignette reste immobile au survol : seule la légende apparaît. */
.shot.is-ready { transition: opacity .4s var(--ease); }
.shot__info { z-index: 2; }

/* ---- Sortie / entrée au filtrage ---- */
.shot.is-leaving {
  opacity: 0;
  transform: translateY(-18px) rotateX(-10deg) scale(.93);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
  pointer-events: none;
}

/* ---- Accueil : la sélection prend la même profondeur ---- */
.frame { transform-style: preserve-3d; }
.frame__shot {
  transform: rotateX(7deg) translateZ(-70px);
  transform-origin: 50% 100%;
  transition: transform 1.35s var(--ease);
  will-change: transform;
}
.frame.is-in .frame__shot { transform: translateZ(0); }
.frame.is-ready .frame__shot { transition: transform .6s var(--ease); }

/* ---- Visionneuse : ouverture en profondeur ---- */
.viewer { perspective: 1400px; }
.viewer__img {
  transform: rotateX(9deg) scale(.9);
  opacity: 0;
  transition: transform .65s var(--ease), opacity .5s var(--ease);
}
.viewer.is-open .viewer__img { transform: none; opacity: 1; }
.viewer__cap {
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .5s var(--ease) .2s, transform .5s var(--ease) .2s;
}
.viewer.is-open .viewer__cap { opacity: 1; transform: translate(-50%, 0); }

/* ---- Filtres : le fond glisse au lieu de sauter ---- */
.filter { position: relative; overflow: hidden; z-index: 0; }
.filter::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.filter[aria-pressed="true"]::before { transform: translateY(0); }
.filter[aria-pressed="true"] { background: transparent; }

/* ---- Pas de 3D sur écran tactile : ça ne sert à rien et ça coûte cher ---- */


@media (prefers-reduced-motion: reduce) {
  .shot, .shot.is-in, .frame__shot, .frame.is-in .frame__shot { transform: none !important; }
  .viewer__img, .viewer__cap { transform: none !important; opacity: 1 !important; }
}

/* =====================================================================
   22. HERO SANS IMAGE
   Fond noir plein. Sans photo à équilibrer, le bloc se centre :
   le vide au-dessus et en dessous devient une composition, pas un manque.
   Pour revenir à un ancrage bas, remplacer `center` par `flex-end`.
   ===================================================================== */
.hero--plain {
  align-items: center;
  background: var(--ink);
}
.hero--plain .hero__inner {
  padding-bottom: 0;
}
.hero--plain .hero__scroll {
  position: absolute;
  right: var(--gut);
  bottom: clamp(28px, 4vw, 52px);
}
@media (max-width: 560px) {
  .hero--plain .hero__scroll { position: static; }
}

/* =====================================================================
   23. PORTFOLIO EN TROIS ZONES
   Chaque série a sa propre grammaire de mise en page :
   — grille régulière pour les portraits, la répétition sert la comparaison
   — composition éclatée pour l'événementiel, elle restitue le désordre d'une soirée
   — rangées justifiées pour la série Chinatown, elle se lit comme une planche contact
   ===================================================================== */

.zone + .zone { margin-top: clamp(80px, 11vw, 170px); }

.zone__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: clamp(20px, 2.4vw, 32px);
  margin-bottom: clamp(26px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.zone__title { font-size: clamp(24px, 3.2vw, 48px); }
.zone__note { max-width: 46ch; color: var(--grey); font-size: 15px; }

/* ---- Zone 1 : grille régulière ---- */
.grid-uniform {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.1vw, 18px);
}
.grid-uniform .shot img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  /* Le peu qui dépasse est pris en bas, jamais sur les visages. */
  object-position: 50% 18%;
}

/* ---- Zone 2 : composition éclatée ---- */
.scatter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.2vw, 44px);
  align-items: start;
}
/* `height: auto` n'annule pas `aspect-ratio` : sans ce `auto`, la règle de
   base recadrait encore en 4/5 et mangeait le haut des visages. */
.scatter .shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
}

.sc-1 { grid-column: 1 / 4;   margin-top: clamp(28px, 4.5vw, 80px); }
.sc-2 { grid-column: 5 / 10; }
.sc-3 { grid-column: 10 / 13; margin-top: clamp(55px, 8.5vw, 155px); }
.sc-4 { grid-column: 2 / 6; }
.sc-5 { grid-column: 7 / 12;  margin-top: clamp(38px, 6vw, 105px); }
.sc-6 { grid-column: 1 / 5;   margin-top: clamp(46px, 7vw, 125px); }
.sc-7 { grid-column: 6 / 9; }
.sc-8 { grid-column: 10 / 13; margin-top: clamp(24px, 3.6vw, 65px); }
.sc-9  { grid-column: 2 / 6;   margin-top: clamp(40px, 6vw, 110px); }
.sc-10 { grid-column: 7 / 10; }
.sc-11 { grid-column: 10 / 13; margin-top: clamp(50px, 7.5vw, 140px); }
.sc-12 { grid-column: 1 / 4;   margin-top: clamp(30px, 4.5vw, 85px); }
.sc-13 { grid-column: 5 / 9;   margin-top: clamp(60px, 9vw, 165px); }
.sc-14 { grid-column: 9 / 12; }
.sc-15 { grid-column: 2 / 6;   margin-top: clamp(36px, 5.5vw, 100px); }
.sc-16 { grid-column: 8 / 11;  margin-top: clamp(70px, 10vw, 180px); }

/* ---- Zone 3 : rangées à tailles variables, sans recadrage ----
   Toutes les images de la série ont le même format vertical. Une rangée
   justifiée à hauteur commune obligerait donc à rogner — et sur un portrait,
   ce qui saute en premier c'est le haut du crâne. On fait varier le NOMBRE
   d'images par rangée plutôt que leurs proportions : les rangées restent
   pleines, les images gardent leur cadrage intégral. */
.rows {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.1vw, 18px);
  align-items: start;
}
.rows .shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
}

.pj-lg { grid-column: span 6; }   /* 2 par rangée */
.pj-sm { grid-column: span 3; }   /* 4 par rangée */
.pj-md { grid-column: span 4; }   /* 3 par rangée */

/* ---- Adaptation ---- */
@media (max-width: 1080px) {
  .grid-uniform { grid-template-columns: repeat(3, 1fr); }
  .sc-1 { grid-column: 1 / 6; }
  .sc-2 { grid-column: 7 / 13; }
  .sc-3 { grid-column: 2 / 7; }
  .sc-4 { grid-column: 8 / 13; }
  .sc-5 { grid-column: 1 / 7; }
  .sc-6 { grid-column: 8 / 13; }
  .sc-7 { grid-column: 2 / 7; }
  .sc-8 { grid-column: 8 / 13; }
  .sc-9  { grid-column: 1 / 6; }
  .sc-10 { grid-column: 7 / 13; }
  .sc-11 { grid-column: 2 / 7; }
  .sc-12 { grid-column: 8 / 13; }
  .sc-13 { grid-column: 1 / 7; }
  .sc-14 { grid-column: 8 / 13; }
  .sc-15 { grid-column: 2 / 7; }
  .sc-16 { grid-column: 8 / 13; }
}

@media (max-width: 700px) {
  .grid-uniform { grid-template-columns: repeat(2, 1fr); }
  .scatter { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 34px); }
  .scatter .shot { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .pj-lg, .pj-sm, .pj-md { grid-column: span 6; }
}

@media (max-width: 460px) {
  .grid-uniform { grid-template-columns: 1fr; }
  .pj-lg, .pj-sm, .pj-md { grid-column: span 12; }
}

/* =====================================================================
   24. ZONE VIDÉO
   Quatre formats verticaux. Rien ne se télécharge tant que le visiteur
   ne lance pas la lecture : seule l'affiche est chargée au départ.
   ===================================================================== */
.reels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 24px);
}

.reel {
  position: relative;
  background: var(--ink-2);
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
.reel video {
  width: 100%;
  height: 100%;
  /* `contain` et pas `cover` : les vidéos sont déjà en 9/16, donc aucun écart
     dans la grille, mais en plein écran l'image n'est plus rognée pour remplir
     un écran horizontal — elle garde son format, avec des bandes sur les côtés. */
  object-fit: contain;
  background: #000;
  display: block;
}

.reel video:fullscreen,
.reel video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Bouton de lecture posé sur l'affiche */
.reel__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(to top, rgba(10,10,11,.75), rgba(10,10,11,.05) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 20px;
  text-align: left;
  transition: opacity .4s var(--ease);
}
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }

.reel__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border: 1px solid var(--line-str);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 11, .35);
  backdrop-filter: blur(6px);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.reel__icon::before {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 13px solid var(--bone);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transition: border-left-color .35s var(--ease);
}
.reel__play:hover .reel__icon { background: var(--brass); border-color: var(--brass); }
.reel__play:hover .reel__icon::before { border-left-color: var(--ink); }

.reel__name {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 112, "wght" 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--bone);
  line-height: 1.2;
}

@media (max-width: 1080px) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .reels { grid-template-columns: 1fr; } }

/* =====================================================================
   25. SOUS-SECTIONS (Food & drinks)
   Une zone peut contenir plusieurs séries. Le sous-titre reste discret
   pour que la hiérarchie avec le titre de zone se lise d'un coup d'œil.
   ===================================================================== */
.subzone + .subzone { margin-top: clamp(48px, 6vw, 90px); }

.subzone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.subzone__title {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 115, "wght" 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(15px, 1.3vw, 19px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.subzone__title::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--brass);
  flex: none;
}
/* Mention de crédit : qui a pris la photo, qui l'a retouchée. */
.subzone__credit { color: var(--grey); font-size: 14px; max-width: 52ch; }
