/* ==========================================================================
   Portfolio photographe — style épuré, centré sur l'image
   ========================================================================== */

:root {
  --black: #111111;
  --white: #ffffff;
  --grey: #8a8a8a;
  --grey-light: #e2e2e2;
  --bg: #ffffff;
  --header-h: 84px;
  --gap: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

ul { list-style: none; margin: 0; padding: 0; }

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 48px);
  color: var(--white);
  mix-blend-mode: difference;
}

.logo {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: clamp(18px, 2.5vw, 40px);
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
  z-index: 110;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--black);
    mix-blend-mode: normal;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
  }

  .nav-links.is-open { transform: translateY(0); }

  .nav-links a { font-size: 16px; color: var(--white); }

  .site-header.menu-open { color: var(--white); mix-blend-mode: normal; }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 48px) 36px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.site-footer a:hover { color: var(--black); }

.footer-socials { display: flex; gap: 20px; }

/* ---------- Home: intro animation (photo grid assembles, then fades) ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--black);
  opacity: 1;
  animation: introFadeOut 0.9s ease forwards;
  animation-delay: 4.2s;
}

@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .intro-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(8, 1fr);
  }
}

.intro-cell {
  overflow: hidden;
  opacity: 0;
  transform: translate(var(--ix), var(--iy)) scale(0.92);
  animation: introCellIn 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes introCellIn {
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.intro-name {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  color: var(--white);
  font-size: clamp(36px, 7.5vw, 92px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  padding: 40px 8vw;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 75%);
  animation: introNameIn 3.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0s;
}

@keyframes introNameIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ---------- Home: split hero categories ---------- */

.split-hero {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.split-panel {
  position: relative;
  flex: 1 1 50%;
  min-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.split-panel:hover img { transform: scale(1.05); }

.split-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  transition: background 0.4s var(--ease);
  z-index: 1;
}

.split-panel:hover::before { background: rgba(0, 0, 0, 0.48); }

.split-label {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.split-label .num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.7;
  margin-bottom: 14px;
}

.split-label h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.split-label .cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.split-panel:hover .cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .split-hero { flex-direction: column; }
  .split-panel { min-height: 50vh; }
}

/* ---------- Gallery pages ---------- */

.page-intro {
  padding: calc(var(--header-h) + 4px) clamp(20px, 4vw, 48px) 16px;
  max-width: 760px;
}

.page-intro .eyebrow {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}

.page-intro .eyebrow a {
  color: inherit;
  transition: color 0.3s var(--ease);
}

.page-intro .eyebrow a:hover {
  color: var(--black);
}

.page-intro h1 {
  font-weight: 300;
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

/* Album detail pages (with the "← back" eyebrow) keep a smaller title so the
   carousel below fits on screen without scrolling. */
.page-intro:has(.eyebrow) h1 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 0 0 4px;
}

.page-intro p {
  font-size: 15px;
  color: #444;
  max-width: 56ch;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(40px, 6vw, 80px);
}

.gallery figure {
  margin: 0 0 var(--gap);
  position: relative;
  overflow: hidden;
}

/* Stacked gallery (Archive Queer album pages): each photo capped to viewport
   height so it's fully visible without scrolling, with a visible caption
   underneath and more breathing room between photos. */
.gallery--stacked figure {
  overflow: visible;
  margin: 0 0 60px;
}

.gallery--stacked figure img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 700px);
}

.gallery.gallery--stacked figcaption {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  height: auto;
  margin-top: 14px;
  margin-left: 15%;
  padding: 0;
  background: none;
  opacity: 1;
  text-align: left;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--black);
  pointer-events: auto;
}

.gallery figure img {
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.photo-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.gallery figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(ellipse 320px 130px at 50% 50%, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.32) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.gallery figure:hover figcaption {
  opacity: 1;
}

/* ---------- Carousel (horizontal album photo browsing) ---------- */

.carousel {
  position: relative;
}

.carousel:fullscreen,
.carousel:-webkit-full-screen {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel:fullscreen .carousel-track,
.carousel:-webkit-full-screen .carousel-track {
  width: 100%;
}

.carousel:fullscreen .carousel-track figure,
.carousel:-webkit-full-screen .carousel-track figure {
  height: 90vh;
  overflow: visible;
}

.carousel:fullscreen .carousel-track img,
.carousel:-webkit-full-screen .carousel-track img {
  transition: transform 0.15s ease-out;
  touch-action: none;
}

.carousel:fullscreen .carousel-track.is-zoomed,
.carousel:-webkit-full-screen .carousel-track.is-zoomed {
  cursor: grab;
}

.carousel:fullscreen .carousel-track.is-zoomed:active,
.carousel:-webkit-full-screen .carousel-track.is-zoomed:active {
  cursor: grabbing;
}

.carousel:fullscreen .carousel-dots,
.carousel:-webkit-full-screen .carousel-dots {
  margin-top: 16px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  height: min(70vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.carousel-track img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 700px);
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.carousel-arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.55);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: var(--grey-light);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.carousel-dot:hover {
  background: var(--grey);
}

.carousel-dot.is-active {
  background: var(--black);
  transform: scale(1.4);
}

/* ---------- Album index (category tiles linking to an album page) ---------- */

.albums {
  max-width: 563px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(40px, 6vw, 80px);
}

.album-tile {
  display: block;
  margin: 0 0 var(--gap);
  position: relative;
  overflow: hidden;
}

.album-tile img {
  transition: transform 0.7s var(--ease);
}

.album-tile:hover img {
  transform: scale(1.03);
}

.album-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.album-tile:hover .album-caption {
  opacity: 1;
}

.album-title {
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.album-subtitle {
  display: block;
  margin-top: -6px;
  margin-bottom: 10px;
  font-size: 13px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.album-cta {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Studio page only: presentation text on album tiles quadrupled in size. */
/* ---------- About page ---------- */

.about {
  padding: calc(var(--header-h) + 4px) clamp(20px, 4vw, 48px) clamp(50px, 8vw, 100px);
}

.about-content {
  max-width: 720px;
}

.about-content h1 {
  font-weight: 300;
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 28px;
}

.about-content p {
  font-size: 15px;
  color: #333;
  margin: 0 0 20px;
}

.about-content h2 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 36px 0 10px;
}

.about-content h2:first-of-type {
  margin-top: 8px;
}

/* ---------- Contact page ---------- */

.contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4px) clamp(20px, 4vw, 48px) 60px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  letter-spacing: 0.01em;
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.contact-row + .contact-row {
  margin-top: 28px;
}

.contact-row:hover {
  border-color: var(--black);
}

.contact-icon {
  width: clamp(20px, 3vw, 26px);
  height: clamp(20px, 3vw, 26px);
  flex-shrink: 0;
}
