/* ======================================================
   SOLARIS STUDIO — The Silent Gallery aesthetic
   Warm Japandi · Serif light · Generous space
   ====================================================== */

/* Polices chargées via fonts.css (non-bloquant) dans chaque HTML */

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

/* ─── Image protection ─── */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
.img-protect {
  position: relative;
  display: block;
  line-height: 0;
}
.img-protect::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: zoom-in;
}

:root {
  --bg:      #F5F3EF;
  --bg-card: #FAFAF8;
  --ink:     #2C2A27;
  --mid:     #5F5B57; /* Assombri pour WCAG AA 4.5:1 sur --bg (était #7A7570, ratio 3.7:1) */
  --warm:    #6B6258; /* Assombri pour WCAG AA 4.5:1 sur --bg (était #9B8E82, ratio 2.7:1) */
  --border:  #E2DDD7;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --max:  1160px;
  --pad:  clamp(1.5rem, 5vw, 4rem);
  --navh: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip; /* clip = même effet que hidden visuellement, mais ne crée PAS de scroll container → position:sticky fonctionne */
}

img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ─── Skip-to-main link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 0 0 4px 4px;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ─── Focus visible (accessibilité clavier) ─── */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Typography ─── */
h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}
h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
}

/* ─── Layout ─── */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--navh);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
}


.nav.scrolled {
  background: rgba(245,243,239,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.nav__logo {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
  transition: opacity 0.25s;
}
.nav__logo:hover { opacity: 0.5; }

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0 auto;
}

.nav__links a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--mid);
  transition: color 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.3rem;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 11px 12px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__burger span { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--ink);
  transition: opacity 0.2s;
}
.nav__mobile a:hover { opacity: 0.4; }

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

/* ─── HERO (project page style) ─── */
.project-intro {
  padding-top: calc(var(--navh) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.project-intro__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.project-intro__cat {
  margin-bottom: 1.2rem;
}

.project-intro__title {
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.project-intro__desc {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 44ch;
}

.project-intro__meta {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 0.3rem;
  flex-shrink: 0;
  min-width: 180px;
}

.meta-item__key { margin-bottom: 0.25rem; }
.meta-item__val {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
}

@media (max-width: 768px) {
  .project-intro__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─── FULL-BLEED IMAGE ─── */
.fullbleed {
  width: 100%;
  overflow: hidden;
  background: var(--border);
}

.fullbleed img {
  width: 100%;
  height: clamp(460px, 78vh, 920px); /* légèrement plus haut pour le parallaxe */
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.94) saturate(0.9);
  will-change: transform;
  transition: none; /* le parallaxe JS est géré via rAF, pas de transition */
}

/* ─── HOME HERO (full-viewport overlay) ─── */
.hero {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.85) saturate(0.9);
  will-change: transform;
  transition: none;
}

/* Light cream gradient at bottom for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(245,243,239,0.72) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: calc(var(--navh) + 2rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  color: var(--warm);
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero__rule {
  width: clamp(3rem, 8vw, 5rem);
  height: 1px;
  background: var(--border);
}

.hero__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
  text-align: left;
}

.hero__location {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--mid);
  line-height: 1.9;
  text-transform: uppercase;
}

.hero__cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  white-space: nowrap;
}

/* ─── HERO layout wrappers ─── */
/* hero__top : conteneur de l'eyebrow en haut du hero */
.hero__top {
  width: 100%;
}
/* hero__left : conteneur du titre et de la règle décorative */
.hero__left {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.8rem);
  }
}

/* ─── PORTFOLIO GRID (editorial) ─── */
.portfolio-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.portfolio-section__header {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.portfolio-section__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-top: 0.8rem;
}

.link-subtle {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--warm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, gap 0.2s;
  white-space: nowrap;
}
.link-subtle:hover { color: var(--ink); gap: 0.8rem; }

/* ─── Portfolio grid — asymmetric 2-col ─── */
.edit-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.2rem);
  row-gap: clamp(2rem, 4vw, 3rem);
}

/* Row 1: wide left (7) + narrow right (5) */
.edit-item:nth-child(1) { grid-column: span 7; }
.edit-item:nth-child(2) { grid-column: span 5; }
/* Row 2: narrow left (5) + wide right (7) */
.edit-item:nth-child(3) { grid-column: span 5; }
.edit-item:nth-child(4) { grid-column: span 7; }
/* Row 3: equal halves */
.edit-item:nth-child(5) { grid-column: span 6; }
.edit-item:nth-child(6) { grid-column: span 6; }
/* Extra */
.edit-item:nth-child(7) { grid-column: span 12; }

/* ─── Two-grid portfolio system ─── */
/* Featured grid: 1 per architect, always visible */
.edit-grid--featured .edit-item:nth-child(1) { grid-column: span 7; }
.edit-grid--featured .edit-item:nth-child(2) { grid-column: span 5; }
.edit-grid--featured .edit-item:nth-child(3) { grid-column: span 12; }
.edit-grid--featured .edit-item:nth-child(1) .edit-item__img { aspect-ratio: 4/3; }
.edit-grid--featured .edit-item:nth-child(2) .edit-item__img { aspect-ratio: 3/4; }
.edit-grid--featured .edit-item:nth-child(3) .edit-item__img { aspect-ratio: 16/9; }

/* Extra grid: hidden by default, revealed on click */
/* ─── All-projects page grid (10 items) ─── */
.edit-grid--all .edit-item:nth-child(1)  { grid-column: span 7; }
.edit-grid--all .edit-item:nth-child(2)  { grid-column: span 5; }
.edit-grid--all .edit-item:nth-child(3)  { grid-column: span 5; }
.edit-grid--all .edit-item:nth-child(4)  { grid-column: span 7; }
.edit-grid--all .edit-item:nth-child(5)  { grid-column: span 6; }
.edit-grid--all .edit-item:nth-child(6)  { grid-column: span 6; }
.edit-grid--all .edit-item:nth-child(7)  { grid-column: span 7; }
.edit-grid--all .edit-item:nth-child(8)  { grid-column: span 5; }
.edit-grid--all .edit-item:nth-child(9)  { grid-column: span 6; }
.edit-grid--all .edit-item:nth-child(10) { grid-column: span 6; }
.edit-grid--all .edit-item:nth-child(1) .edit-item__img,
.edit-grid--all .edit-item:nth-child(4) .edit-item__img,
.edit-grid--all .edit-item:nth-child(7) .edit-item__img { aspect-ratio: 4/3; }
.edit-grid--all .edit-item:nth-child(2) .edit-item__img,
.edit-grid--all .edit-item:nth-child(3) .edit-item__img,
.edit-grid--all .edit-item:nth-child(8) .edit-item__img { aspect-ratio: 3/4; }
.edit-grid--all .edit-item:nth-child(5) .edit-item__img,
.edit-grid--all .edit-item:nth-child(6) .edit-item__img,
.edit-grid--all .edit-item:nth-child(9) .edit-item__img,
.edit-grid--all .edit-item:nth-child(10) .edit-item__img { aspect-ratio: 5/4; }

.edit-grid--extra { display: none; margin-top: clamp(2rem, 4vw, 3rem); }
.edit-grid--extra.open { display: grid; animation: portfolioReveal 0.5s ease forwards; }
@keyframes portfolioReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.edit-grid--extra .edit-item:nth-child(1) { grid-column: span 5; }
.edit-grid--extra .edit-item:nth-child(2) { grid-column: span 7; }
.edit-grid--extra .edit-item:nth-child(3) { grid-column: span 7; }
.edit-grid--extra .edit-item:nth-child(4) { grid-column: span 5; }
.edit-grid--extra .edit-item:nth-child(5) { grid-column: span 6; }
.edit-grid--extra .edit-item:nth-child(6) { grid-column: span 6; }
.edit-grid--extra .edit-item:nth-child(7) { grid-column: span 12; }
.edit-grid--extra .edit-item:nth-child(1) .edit-item__img,
.edit-grid--extra .edit-item:nth-child(4) .edit-item__img { aspect-ratio: 3/4; }
.edit-grid--extra .edit-item:nth-child(2) .edit-item__img,
.edit-grid--extra .edit-item:nth-child(3) .edit-item__img { aspect-ratio: 4/3; }
.edit-grid--extra .edit-item:nth-child(5) .edit-item__img,
.edit-grid--extra .edit-item:nth-child(6) .edit-item__img { aspect-ratio: 5/4; }
.edit-grid--extra .edit-item:nth-child(7) .edit-item__img { aspect-ratio: 21/9; }

.edit-item { position: relative; overflow: hidden; cursor: pointer; display: block; }

/* Landscape images for wide items, portrait for narrow items */
.edit-item:nth-child(1) .edit-item__img,
.edit-item:nth-child(4) .edit-item__img { aspect-ratio: 4/3; }
.edit-item:nth-child(2) .edit-item__img,
.edit-item:nth-child(3) .edit-item__img { aspect-ratio: 3/4; }
.edit-item:nth-child(5) .edit-item__img,
.edit-item:nth-child(6) .edit-item__img { aspect-ratio: 5/4; }
.edit-item:nth-child(7) .edit-item__img { aspect-ratio: 21/9; }

.edit-item__img {
  width: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88);
  transition: transform 0.8s cubic-bezier(0.25,0.1,0.25,1), filter 0.4s;
}
.edit-item:hover .edit-item__img { transform: scale(1.035); filter: saturate(1); }

.edit-item__caption {
  margin-top: 0.9rem;
}
.edit-item__caption-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.edit-item__caption-cat { color: var(--warm); }
.edit-item__caption-year { font-size: 0.67rem; font-weight: 400; letter-spacing: 0.12em; color: var(--mid); }
.edit-item__caption-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.15rem;
}
.edit-item__caption-loc {
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .edit-item:nth-child(n) { grid-column: span 12; }
  .edit-item:nth-child(n) .edit-item__img { aspect-ratio: 4/3; }
}

/* ─── Philosophy split ─── */
.philosophy-split {
  border-top: 1px solid var(--border);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.philosophy-split .about-split__img {
  aspect-ratio: 1/1;
  filter: brightness(0.75) saturate(0.7);
}

/* ─── Section béton brut — image style Tadao Ando ─── */
/* Remplace la section philosophie : image pleine largeur, très haute,
   avec parallaxe et fondu reveal — même langage visuel que le hero.  */
.ando-sect {
  position: relative;
  width: 100%;
  height: clamp(60vh, 75vw, 900px);  /* proportionnel au ratio 2048×1154 */
  overflow: hidden;
  background: #131210;
}

.ando-sect .img-protect {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ando-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* maison entière visible */
  object-position: center center;
  display: block;
  filter: saturate(0.18) brightness(0.90);
  transition: filter 0.6s ease;
}

.ando-sect:hover .ando-img {
  filter: saturate(0.25) brightness(0.98);
}

/* Fondu reveal — animation identique au hero */
.ando-sect.reveal {
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ando-sect.reveal.visible {
  opacity: 1;
}

@media (max-width: 700px) {
  .ando-sect {
    height: clamp(45vw, 56vw, 400px);  /* paysage : ~56vw de hauteur pour 100vw de large */
  }
}

@media (max-width: 860px) {
  .edit-grid { grid-template-columns: 1fr 1fr; }
  .edit-item { grid-column: span 1 !important; }
}
@media (max-width: 540px) {
  .edit-grid { grid-template-columns: 1fr; }
}

/* ─── SECTION DIVIDER TEXT ─── */
.divider-text {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
}

/* ─── CARD (Technical Execution style) ─── */
.card {
  background: var(--bg-card);
  border-radius: 2px;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 860px;
  margin-inline: auto;
}

.card__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.card__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.card__body {
  font-size: 0.87rem;
  color: var(--mid);
  line-height: 1.9;
}

.card__rows { display: flex; flex-direction: column; gap: 0; }

.card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  align-items: baseline;
}
.card__row:first-child { border-top: 1px solid var(--border); }

.card__row-key { }
.card__row-val { font-size: 0.92rem; font-weight: 400; text-align: right; }

@media (max-width: 640px) {
  .card__layout { grid-template-columns: 1fr; }
  .card__row-val { text-align: left; }
}

/* ─── ABOUT SPLIT ─── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.about-split__img {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.4s;
}
.about-split__img:hover { filter: saturate(1); }

.about-split__eyebrow { margin-bottom: 1.5rem; }
.about-split__title { margin-bottom: 1.5rem; }
.about-split__body {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.9;
  max-width: 44ch;
}
.about-split__body p + p { margin-top: 1rem; }
.about-split__sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--warm);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; }
}

/* ─── PREV/NEXT ─── */
.proj-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.proj-nav__item {
  padding-block: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.proj-nav__item:hover { opacity: 0.6; }
.proj-nav__item--next { text-align: right; border-left: 1px solid var(--border); padding-left: var(--pad); }

.proj-nav__dir {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--warm);
}
.proj-nav__item--next .proj-nav__dir { justify-content: flex-end; }
.proj-nav__label { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }

/* ─── PHILOSOPHY / PROCESS GRID ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.process-item__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.process-item__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.process-item__text {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.85;
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ─── CONTACT HERO ─── */
.contact-hero {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 380px;
  overflow: hidden;
}

.contact-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.92) saturate(0.7);
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(245,243,239,0.35);
}

.contact-hero__content {
  position: absolute;
  bottom: clamp(2.5rem, 5vw, 4rem);
  left: 0; right: 0;
  padding-inline: var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
}

.contact-hero__eyebrow {
  color: var(--warm);
  margin-bottom: 1rem;
}

.contact-hero__title {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

/* ─── CONTACT LAYOUT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  align-items: start;
}

.contact-meta { display: flex; flex-direction: column; gap: 2rem; }
.contact-meta__item {}
.contact-meta__key { margin-bottom: 0.3rem; }
.contact-meta__val { font-size: 0.9rem; color: var(--ink); }
.contact-meta__val a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); transition: text-decoration-color 0.2s; }
.contact-meta__val a:hover { text-decoration-color: var(--warm); }

/* ─── FORM ─── */
.form { display: flex; flex-direction: column; gap: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { }

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--warm); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--ink); }
.form-group textarea { resize: none; min-height: 110px; line-height: 1.7; }
.form-group select { -webkit-appearance: none; cursor: pointer; }

@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.95em 2em;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.25s, gap 0.25s;
  width: fit-content;
}
.btn:hover { background: #3e3a36; gap: 1rem; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* Contact presence links */
.contact-presence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}
.contact-presence a {
  font-size: 0.78rem;
  color: var(--mid);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.contact-presence a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ─── SERVICES LIST ─── */
.services-list { list-style: none; border-top: 1px solid var(--border); }
.services-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
  transition: padding-left 0.25s;
}
.services-list li:hover { padding-left: 0.5rem; }
.services-list li strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.services-list li span { font-size: 0.8rem; color: var(--mid); flex-shrink: 0; }

/* ─── GALLERY LAYOUTS ─── */
.gallery-row {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}
.gallery-row.cols-1 { grid-template-columns: 1fr; }
.gallery-row.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery-row.cols-offset { grid-template-columns: 2fr 3fr; }

.gallery-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: saturate(0.88);
  cursor: zoom-in;
  transition: filter 0.3s;
}
.gallery-row.cols-1 img { aspect-ratio: 16/9; }
.gallery-row img:hover { filter: saturate(1); }

/* Label overlay on image */
.img-label-wrap { position: relative; overflow: hidden; }
.img-label {
  position: absolute;
  bottom: 1.5rem; left: 2rem;
  background: rgba(44,42,39,0.75);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 300;
  backdrop-filter: blur(4px);
}

/* ─── MATERIAL NOTES (Tactile Silence style) ─── */
.material-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.material-notes { display: flex; flex-direction: column; gap: 0; }
.material-note {
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--border);
}
.material-note:first-child { border-top: 1px solid var(--border); }
.material-note__num { margin-bottom: 0.4rem; }
.material-note__text { font-size: 0.85rem; color: var(--mid); line-height: 1.8; }

@media (max-width: 700px) {
  .material-section { grid-template-columns: 1fr; }
}

/* ─── CLIENT AREA ─── */
.client-lock {
  min-height: calc(100svh - var(--navh));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.client-lock__box { width: 100%; max-width: 400px; text-align: center; }
.client-lock__icon { margin: 0 auto 2.5rem; opacity: 0.25; }

.client-lock__box h2 { margin-bottom: 0.8rem; }
.client-lock__box p { font-size: 0.87rem; color: var(--mid); margin-bottom: 2.5rem; line-height: 1.8; max-width: 30ch; margin-inline: auto; }

.lock-error { font-size: 0.77rem; color: #9b4040; margin-top: 0.5rem; display: none; }
.lock-error.show { display: block; }

.client-gallery { display: none; }
.client-gallery.show { display: block; }

.cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.cg-item { position: relative; overflow: hidden; cursor: pointer; }
.cg-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.5s, filter 0.3s;
}
.cg-item:hover img { transform: scale(1.04); filter: saturate(1); }

.cg-item__info {
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cg-item__name { font-size: 0.73rem; color: var(--mid); }
.cg-item__dl { font-size: 0.7rem; color: var(--warm); transition: color 0.2s; }
.cg-item__dl:hover { color: var(--ink); }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44,42,39,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90svh; object-fit: contain; }
.lightbox__img { transition: opacity 0.15s ease; }
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--bg);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.4rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  z-index: 201;
}
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; background: rgba(255,255,255,0.18); }

/* ─── CTA BAND ─── */
.cta-band {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem);
  background: var(--ink);
  color: var(--bg);
}
/* --warm (#6B6258) sur fond --ink (#2C2A27) = 2.48:1 ❌ → override avec couleur claire */
.cta-band__eyebrow { color: var(--border); margin-bottom: 1.5rem; display: block; } /* #E2DDD7 → 10.9:1 sur --ink ✅ */
.cta-band h2 { color: var(--bg); margin-bottom: 2.5rem; max-width: 20ch; margin-inline: auto; }
.btn-light { background: transparent; color: var(--bg); border: 1px solid rgba(245,243,239,0.35); }
.btn-light:hover { background: rgba(245,243,239,0.1); border-color: rgba(245,243,239,0.7); color: var(--bg); }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.footer__tagline { font-size: 0.8rem; color: var(--mid); max-width: 22ch; line-height: 1.7; }

.footer__col-title { margin-bottom: 1rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: 0.8rem; color: var(--mid); transition: color 0.2s; }
.footer__links a:hover { color: var(--ink); }

.footer__bottom {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.72rem; color: var(--mid); }
.footer__social { display: flex; gap: 2rem; list-style: none; }
.footer__social a { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); transition: color 0.2s; }
.footer__social a:hover { color: var(--ink); }

/* ─── Section padding helper ─── */
.section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ─── Reveal — général ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Cartes portfolio — Japandi ─── */
/* La carte se matérialise : scale doux + fade pur, sans mouvement vertical */
.edit-item.reveal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.edit-item.reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* Les galeries : fade seul, sans déplacement vertical */
.gallery-row.reveal {
  transform: none;
  transition: opacity 1.4s ease-out;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.20s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.28s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.36s; opacity:1; transform:none; }

/* ─── Image settle — galeries ─── */
/* Ken Burns très doux : l'image s'installe au repos, comme développée sous les yeux */
.img-protect { overflow: hidden; }

.gallery-row img {
  transform: scale(1.05);
  transition: transform 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}
.gallery-row.visible img {
  transform: scale(1.0);
}

/* L'image de droite s'installe 160ms après celle de gauche */
.gallery-row.cols-2 .img-protect:nth-child(2) img {
  transition-delay: 0.16s;
}

/* Accessibilité — fusionné en un seul bloc dans la section Motion Design ci-dessous */

/* Page fade supprimé — évite NO_FCP sur Lighthouse/PageSpeed */

/* ─── Philosophie sticky (Apple-style) ─── */
.philo-sticky {
  display: grid;
  grid-template-columns: 45% 55%;
  position: relative;
  /* NB : pas de overflow:hidden ici — ça casserait position:sticky sur l'enfant */
}

.philo-sticky__img-col {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  overflow: hidden;
}

.philo-sticky__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) brightness(0.92);
  will-change: transform;
  transition: none;
}

.philo-sticky__text-col {
  min-height: 160vh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(2.5rem, 5vw, 5rem);
}

.philo-sticky__content {
  max-width: 480px;
}

@media (max-width: 860px) {
  .philo-sticky {
    grid-template-columns: 1fr;
  }
  .philo-sticky__img-col {
    position: relative;
    height: 60vh;
    align-self: auto;
  }
  .philo-sticky__text-col {
    min-height: auto;
    padding: 3rem var(--pad) 4rem;
  }
}

/* ─── Manifeste — section mot à mot (Apple style) ─── */
.manifeste-sect {
  position: relative;
  height: 300vh;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.manifeste-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
}

.manifeste-text {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 4.2rem);
  font-weight: 400;
  text-align: center;
  max-width: 860px;
  line-height: 1.4;
  color: var(--ink);
}

.m-word {
  display: inline;
  opacity: 0.12;
  transition: opacity 0.35s ease;
}

@media (max-width: 700px) {
  .manifeste-sect { height: 250vh; }
}

/* ─── Curseur personnalisé (style agence design) ─── */
/* Activé uniquement sur les appareils avec une vraie souris */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease,
                background 0.25s ease, opacity 0.35s ease;
    will-change: left, top;
  }
  .cursor-dot.is-hover {
    width: 12px; height: 12px;
    background: var(--warm);
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--warm);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                opacity 0.35s ease;
    will-change: left, top;
    opacity: 0.65;
  }
  .cursor-ring.is-hover {
    width: 60px; height: 60px;
    border-color: var(--ink);
    opacity: 0.3;
  }
}

/* ─── Marquee ticker infini ─── */
.marquee-sect {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.marquee-dot {
  width: 4px; height: 4px;
  background: var(--warm);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Clip-path reveal sur les titres ─── */
/* Chaque titre se révèle en montant depuis le bas de son masque invisible */
.reveal-heading {
  overflow: hidden;
}
.reveal-heading > .rh-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-heading.visible > .rh-inner {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   MOTION DESIGN — Silent Gallery
   Animations subtiles, cinématiques, Japandi
   ═══════════════════════════════════════════════════ */

/* ─── Barre de progression de lecture ─── */
/* Ligne fine en haut de page — se remplit au fil du scroll */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--warm), var(--ink));
  z-index: 200;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}

/* ─── Entrée cinématique du contenu hero ─── */
/* Le contenu textuel du hero flotte depuis le bas au chargement de la page */
@keyframes heroFloat {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  animation: heroFloat 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero__left {
  animation: heroFloat 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero__right {
  animation: heroFloat 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

/* ─── Reveal horizontal — pour sections about/philosophy ─── */
/* Les images du split entrent depuis la gauche */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: none; }

/* ─── Ligne de séparation animée ─── */
/* Les bordures horizontales se dessinent de gauche à droite au scroll */
.reveal-line {
  position: relative;
  border-top: none !important; /* remplacé par le ::before animé */
}
.reveal-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-line.visible::before {
  transform: scaleX(1);
}

/* ─── Galerie cinématique — pages projet (réf. ottografie.nl) ─── */
/* Titre de projet FIXE au centre du viewport pendant tout le scroll.
   Photos petites (~35% de largeur), dispersées gauche/droite/centre,
   grand espacement vertical (~42vh) pour toujours voir le titre.
   Les photos scrollent AU-DESSUS du titre (z-index supérieur).       */

.cine-gallery {
  position: relative;
}

/* ── Titre fixed au centre du viewport ── */
/* Créé par JS et appendé au <body>. Visible seulement quand la galerie est visible. */
.cine-fixed-title {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* Sous les photos (z-index: 20) mais au-dessus du reste */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  text-align: center;
  width: 90vw;
  white-space: nowrap;
}
.cine-fixed-title.active { opacity: 1; }

.cine-fixed-title__text {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
  user-select: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.cine-fixed-title__count {
  font-family: var(--sans);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  letter-spacing: 0.2em;
  color: var(--warm);
  vertical-align: super;
  margin-left: 0.5em;
}

/* ── Zone de scroll des photos ── */
.cine-photos {
  position: relative;
  z-index: 20;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

/* ── Chaque bloc photo ── */
.cine-block {
  position: relative;
  margin-bottom: 10vh;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.cine-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Numéro discret */
.cine-block__num {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--warm);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0;
  transition: opacity 0.6s 0.35s ease;
}
.cine-block.visible .cine-block__num { opacity: 1; }

/* ── Frame image ── */
.cine-frame {
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  background: var(--border);
}
/* Ratio naturel : aucun forçage — paysage reste paysage, portrait reste portrait */
.cine-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.04) translateY(0px);
  will-change: transform;
  pointer-events: none;
}

/* ── Layouts — petites photos dispersées (en vw pour être indépendant du conteneur) ── */

/* Gauche : 30vw, décalage de 5vw depuis le bord */
.cine-block--left {
  width: 30vw;
  margin-left: 5vw;
}

/* Droite : 30vw, décalage de 5vw depuis le bord droit */
.cine-block--right {
  width: 30vw;
  margin-left: auto;
  margin-right: 5vw;
}

/* Centre : 30vw, centré */
.cine-block--center {
  width: 30vw;
  margin-left: auto;
  margin-right: auto;
}

/* Duo : deux photos côte à côte */
.cine-block--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 2vw, 2rem);
  width: 54vw;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.cine-block--duo .cine-block__num { grid-column: 1 / -1; }
.cine-block--duo .cine-frame:nth-of-type(2) {
  margin-top: clamp(2rem, 4vw, 4rem);
}

/* ── Séparateur entre projets chaînés — espace pur, aucun élément visuel ── */
.cine-chain-sep {
  height: 10vh;
  position: relative;
  pointer-events: none;
}
.cine-chain-sentinel {
  height: 1px;
}

/* ── Navigation projets fixe en bas ── */
.cine-proj-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: stretch;
  background: rgba(44, 42, 39, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 243, 239, 0.1);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.cine-proj-nav.active {
  opacity: 1;
  pointer-events: auto;
}
.cine-proj-nav__btn {
  background: none;
  border: none;
  color: rgba(245, 243, 239, 0.45);
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  flex-shrink: 0;
}
.cine-proj-nav__btn:hover { color: var(--bg); }
.cine-proj-nav__name {
  background: none;
  border: none;
  border-left: 1px solid rgba(245, 243, 239, 0.1);
  border-right: 1px solid rgba(245, 243, 239, 0.1);
  color: var(--bg);
  cursor: pointer;
  padding: 0.75rem 1.4rem;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  transition: background 0.2s;
}
.cine-proj-nav__name:hover { background: rgba(245, 243, 239, 0.06); }

/* ── Liste déroulante des projets ── */
.cine-proj-list {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  z-index: 199;
  background: rgba(44, 42, 39, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 243, 239, 0.1);
  border-radius: 3px;
  padding: 0.4rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  min-width: 220px;
}
.cine-proj-list.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cine-proj-list__item {
  display: block;
  padding: 0.55rem 1.4rem;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.55);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.cine-proj-list__item:hover,
.cine-proj-list__item.current {
  color: var(--bg);
  background: rgba(245, 243, 239, 0.05);
}

/* Mobile : colonnes uniques, largeurs adaptées */
@media (max-width: 700px) {
  .cine-fixed-title__text { font-size: clamp(2rem, 10vw, 3.5rem); }
  .cine-fixed-title { white-space: normal; }
  .cine-block--left,
  .cine-block--right,
  .cine-block--center { width: 75vw; margin-left: 0; margin-right: 0; }
  .cine-block--right { margin-left: auto; }
  .cine-block--duo { width: 90vw; grid-template-columns: 1fr; }
  .cine-block--duo .cine-frame:nth-of-type(2) { margin-top: 0; }
  .cine-photos { padding-top: 8vh; padding-bottom: 8vh; }
  .cine-block { margin-bottom: 7vh; }
  .cine-proj-nav { bottom: 1rem; }
  .cine-proj-nav__name { font-size: 0.8rem; padding: 0.7rem 1rem; }
}

/* ─── Motion Design — Portfolio numéroté & décalé (réf. vidéo 15.58.24) ─── */
/* Effet : 3 grandes images portrait en escalier très marqué,
   chaque colonne bougera à vitesse différente via JS parallax.         */

/* Grille featured : 3 colonnes égales, gap généreux, items alignés en haut */
.edit-grid--featured {
  counter-reset: portfolio-featured;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
  /* Padding bas : compense la carte la plus basse (carte 3 ~22rem de décalage) */
  padding-bottom: clamp(16rem, 30vw, 26rem);
}

/* Compteur auto sur chaque carte */
.edit-grid--featured .edit-item {
  counter-increment: portfolio-featured;
  overflow: hidden; /* requis pour parallaxe image dans container */
}

/* ── Numéro + ligne horizontale au-dessus de chaque image (comme dans la vidéo) ── */
.edit-grid--featured .edit-item::before {
  content: counter(portfolio-featured, decimal-leading-zero);
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 0.6rem;
}

/* Ligne sous le numéro */
.edit-grid--featured .edit-item::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink);
  margin-bottom: 1.2rem;
  opacity: 0.5;
  transition: width 0.4s ease;
}
.edit-grid--featured .edit-item:hover::after {
  width: 4rem;
  opacity: 0.9;
}

/* ── Décalages verticaux très marqués — gauche bas, centre haut, droite très bas ── */
.edit-grid--featured .edit-item:nth-child(1) {
  grid-column: span 1 !important;
  margin-top: clamp(9rem, 17vw, 15rem);
}
.edit-grid--featured .edit-item:nth-child(2) {
  grid-column: span 1 !important;
  margin-top: 0;
}
.edit-grid--featured .edit-item:nth-child(3) {
  grid-column: span 1 !important;
  margin-top: clamp(16rem, 28vw, 24rem);
}

/* ── Images très grandes — format portrait, hauteur basée sur viewport ── */
.edit-grid--featured .edit-item:nth-child(1) .edit-item__img,
.edit-grid--featured .edit-item:nth-child(2) .edit-item__img,
.edit-grid--featured .edit-item:nth-child(3) .edit-item__img {
  aspect-ratio: unset !important;
  height: clamp(380px, 64vh, 660px) !important;
  width: 100%;
  object-fit: cover;
  object-position: center;
  /* Image légèrement surdimensionnée pour absorber le mouvement parallaxe */
  transform-origin: center center;
}

/* ── Révélation : fondu simple (sans scale) pour ne pas conflits avec la parallaxe ── */
.edit-grid--featured .edit-item.reveal {
  opacity: 0;
  transform: none !important; /* override le scale général */
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.edit-grid--featured .edit-item.reveal:nth-child(1) { transition-delay: 0s !important; }
.edit-grid--featured .edit-item.reveal:nth-child(2) { transition-delay: 0.18s !important; }
.edit-grid--featured .edit-item.reveal:nth-child(3) { transition-delay: 0.36s !important; }
.edit-grid--featured .edit-item.reveal.visible {
  opacity: 1;
  transform: none !important;
}

/* ── Image zoom au survol (transform sur l'img, pas le container) ── */
.edit-grid--featured .edit-item:hover .edit-item__img {
  /* La parallaxe JS sur l'img gère le hover scale dynamiquement */
}

/* ── Caption sous l'image : numéro + titre ── */
.edit-grid--featured .edit-item__caption {
  margin-top: 1.2rem;
}

/* ── Mobile : empiler sans décalages ── */
@media (max-width: 700px) {
  .edit-grid--featured {
    padding-bottom: clamp(2rem, 6vw, 4rem);
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  .edit-grid--featured .edit-item:nth-child(n) {
    margin-top: 0 !important;
    grid-column: span 1 !important;
  }
  .edit-grid--featured .edit-item:nth-child(n) .edit-item__img {
    height: clamp(260px, 65vw, 420px) !important;
  }
}

/* ─── Accessibilité : désactiver les animations si l'utilisateur le préfère ─── */
@media (prefers-reduced-motion: reduce) {
  /* Anciennes animations */
  .reveal, .gallery-row.reveal, .reveal-stagger > * { transition: opacity 0.3s ease; transform: none; }
  .gallery-row img { transition: none; transform: none; }
  /* Nouvelles animations Motion Design */
  #scrollProgress { display: none; }
  .hero__eyebrow, .hero__left, .hero__right { animation: none; opacity: 1; transform: none; }
  .reveal-left, .reveal-right { transition: opacity 0.3s ease; transform: none; }
  .reveal-line::before { transition: none; transform: scaleX(1); }
  .fullbleed img, .hero__img { will-change: auto; }
  /* Agence design — nouveaux effets */
  .cursor-dot, .cursor-ring { display: none; }
  .marquee-track { animation: none; }
  .reveal-heading > .rh-inner { transform: none; transition: opacity 0.3s ease; }
  /* Portfolio numéroté */
  .edit-grid--featured .edit-item.reveal:nth-child(1),
  .edit-grid--featured .edit-item.reveal:nth-child(3) { transform: translateY(0); transition-delay: 0s; }
  .edit-grid--featured .edit-item::before { transition: none; }
  /* Galerie cinématique */
  .cine-block { opacity: 1 !important; transform: none !important; transition: none; }
  .cine-block__num { opacity: 1 !important; transition: none; }
  .cine-frame img { transform: none !important; }
  .cine-fixed-title { transition: none; }
  /* Services v2 — layout statique (pas d'animation de scroll) */
  .svc2 { height: auto; }
  .svc2__pin { position: static; height: 100svh; }
  .svc2__slide:not(.svc2__slide--active) { display: none; }
  .svc2__slide--active { clip-path: none !important; }
  .svc2__slide--active img { transform: none !important; }
  .svc2__meta-inner { transform: none !important; opacity: 1 !important; }
}

/* ═══════════════════════════════════════════════════════
   SERVICES V2 — style Exo Ape, fond blanc, marges latérales
   ═══════════════════════════════════════════════════════ */

/* Section : 5 × 100svh — ScrollTrigger gère le snap entre services */
.svc2 {
  position: relative;
  height: calc(5 * 100svh);
  background: var(--bg);
}

/* Conteneur sticky */
.svc2__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 3vh, 2.8rem);
  overflow: hidden;
}

/* Stage — cadre image avec ~1cm de marge de chaque côté */
.svc2__stage {
  position: relative;
  width: calc(100% - 2cm);
  height: clamp(240px, 68vh, 780px);
  overflow: hidden;
  flex-shrink: 0;
}

/* Chaque slide empilée */
.svc2__slide {
  position: absolute;
  inset: 0;
  will-change: clip-path;
}
.svc2__slide--active {
  clip-path: inset(0% 0 0% 0);
}
.svc2__slide:not(.svc2__slide--active) {
  clip-path: inset(100% 0 0% 0);
}

.svc2__slide img {
  width: 100%;
  height: 115%;
  margin-top: -7.5%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

/* Méta texte sous l'image */
.svc2__meta {
  width: calc(100% - 2cm);
  pointer-events: none;
}

.svc2__meta-inner {
  will-change: transform, opacity;
}

.svc2__num {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.75rem;
}

.svc2__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.svc2__sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--mid);
  margin: 0;
}

/* Curseur custom */
.cursor-follow {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}
.cursor-follow.is-hovering {
  width: 76px;
  height: 76px;
  background: rgba(245, 243, 239, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 243, 239, 0.28);
}

/* Mobile */
@media (max-width: 768px) {
  .svc-item__info  { max-width: 55vw; }
  .svc-item__title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .svc-card-fixed  {
    width: clamp(140px, 42vw, 220px);
    height: clamp(200px, 44vh, 320px);
    left: 65%;
  }
  .cursor-follow { display: none; }
}
