/* =========================================================
   Pierre-Emmanuel Hinault — Portfolio étalonnage
   ========================================================= */

:root {
  --bg: #0c0c0b;
  --bg-soft: #121210;
  --ink: #ece7dd;
  --ink-soft: #c7c0b4;
  --muted: #8f897d;
  --line: rgba(236, 231, 221, 0.14);
  --line-strong: rgba(236, 231, 221, 0.32);
  --accent: #c3ac85;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", "IBM Plex Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --wrap: 1440px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(var(--wrap), 100% - (var(--pad) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 26px 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  justify-self: start;
  white-space: nowrap;
}

.wordmark em {
  font-style: italic;
  color: var(--muted);
}

.masthead-meta {
  justify-self: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.site-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 4px;
  transition: color 0.25s ease;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

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

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(30px, 5vw, 88px);
  padding-block: clamp(46px, 8vh, 104px) clamp(56px, 9vh, 112px);
}

.hero-copy {
  padding-bottom: 6px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line-strong);
  flex: none;
}

.hero h1 {
  margin: clamp(22px, 3vw, 34px) 0 clamp(24px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.lede {
  max-width: 42ch;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.text-link span {
  transition: transform 0.35s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.hero-figure {
  position: relative;
}

.hero-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1), filter 1.4s ease;
  filter: saturate(0.96) contrast(1.02);
}

.hero-figure:hover .hero-frame img {
  transform: scale(1.045);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-caption a {
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.hero-caption a:hover {
  color: var(--accent);
}

/* ---------- Accueil — hero plein écran ---------- */

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-slideshow,
.hero-slide,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-slideshow {
  --hero-effect-duration: 12s;
  --hero-transition-duration: 2.8s;
}

.hero-slide {
  opacity: 0;
  transition: opacity var(--hero-transition-duration, 2.8s) ease;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slideshow.transition-slide .hero-slide.is-active {
  animation: hero-slide-in var(--hero-transition-duration, 2.8s) cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes hero-slide-in {
  from {
    opacity: 0;
    transform: translateX(6%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.94) contrast(1.03);
  transition: transform var(--hero-effect-duration, 12s) linear;
  will-change: transform;
}

.hero-slideshow.effect-zoom-in .hero-slide img {
  transform: scale(1.03);
}

.hero-slideshow.effect-zoom-in .hero-slide.is-zoomed img {
  transform: scale(1.12);
}

.hero-slideshow.effect-zoom-out .hero-slide img {
  transform: scale(1.12);
}

.hero-slideshow.effect-zoom-out .hero-slide.is-zoomed img {
  transform: scale(1.03);
}

.hero-slideshow.effect-pan-left .hero-slide img {
  transform: scale(1.06) translateX(3%);
}

.hero-slideshow.effect-pan-left .hero-slide.is-zoomed img {
  transform: scale(1.06) translateX(-3%);
}

.hero-slideshow.effect-pan-right .hero-slide img {
  transform: scale(1.06) translateX(-3%);
}

.hero-slideshow.effect-pan-right .hero-slide.is-zoomed img {
  transform: scale(1.06) translateX(3%);
}

.hero-slideshow.effect-none .hero-slide img,
.hero-slideshow.effect-none .hero-slide.is-zoomed img {
  transform: scale(1.04);
}

.hero-slide.is-resetting img {
  transition: none;
}

.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.68) 0%, rgba(8, 8, 7, 0.08) 28%, rgba(8, 8, 7, 0.2) 55%, rgba(8, 8, 7, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.52) 0%, rgba(8, 8, 7, 0.08) 62%, rgba(8, 8, 7, 0.2) 100%);
}

.masthead-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: min(var(--wrap), 100% - (var(--pad) * 2));
  transform: translateX(-50%);
  border-bottom-color: rgba(236, 231, 221, 0.2);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(150px, 23vh, 250px) clamp(44px, 9vh, 108px);
}

.home-hero-copy {
  max-width: min(100%, 980px);
}

.home-hero-title {
  max-width: 12ch;
  margin: clamp(18px, 2.4vw, 30px) 0 clamp(20px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(4rem, 10.5vw, 10.5rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.home-hero-lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.scroll-cue-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 231, 221, 0.42);
  border-radius: 50%;
  transition: border-color 0.25s ease, transform 0.35s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue:hover .scroll-cue-arrow {
  border-color: var(--accent);
  transform: translateY(4px);
}

/* ---------- Accueil — carrousel des projets ---------- */

.carousel-section {
  padding-block: clamp(56px, 8vw, 112px) clamp(54px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}

.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.carousel-head .label {
  display: block;
  margin-bottom: 16px;
}

.carousel-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.carousel-tools {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding-bottom: 6px;
}

.carousel-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.project-carousel {
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.project-carousel:focus-visible {
  outline-offset: 8px;
}

.carousel-card {
  flex: 0 0 clamp(270px, 30vw, 440px);
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.carousel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.4s ease;
}

.carousel-card:hover .carousel-figure img {
  transform: scale(1.035);
  filter: saturate(1);
}

.carousel-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.carousel-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.carousel-kicker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.carousel-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.carousel-role {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.2;
  color: var(--accent);
}

.carousel-role::before {
  content: '·';
  margin-right: 10px;
  font-style: normal;
  color: var(--muted);
}

.carousel-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.carousel-arrow {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.35s ease, color 0.25s ease;
}

.carousel-card:hover .carousel-title {
  color: var(--accent);
}

.carousel-card:hover .carousel-arrow {
  transform: translate(4px, -4px);
  color: var(--ink);
}

/* ---------- Accueil — grille projets ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.8vw, 56px) clamp(16px, 2.1vw, 30px);
  align-items: start;
}

.project-grid .carousel-card {
  width: 100%;
  min-width: 0;
}

.project-grid .carousel-figure {
  border: 0;
  border-radius: clamp(18px, 2.2vw, 30px);
  background: transparent;
  box-shadow: none;
}

.project-grid .carousel-figure img {
  border-radius: clamp(18px, 2.2vw, 30px);
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel-arrow {
    display: none;
  }
}

/* ---------- Accueil — profil ---------- */

.profile-section {
  padding-block: clamp(58px, 9vw, 124px) clamp(64px, 10vw, 136px);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
}

.profile-main .label {
  display: block;
  margin-bottom: 16px;
}

.profile-main h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.profile-text {
  max-width: 58ch;
  margin-top: clamp(24px, 3.4vw, 40px);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: pre-line;
}

.profile-main .text-link {
  margin-top: clamp(26px, 3.4vw, 40px);
}

.profile-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  column-gap: clamp(22px, 3.5vw, 52px);
  align-content: start;
}

.profile-contact div {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.profile-contact div:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.profile-contact dt {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-contact dd {
  font-size: 1rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-contact a {
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.profile-contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.profile-contact a[data-site-instagram] {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.15;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 9vw, 118px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 4vw, 52px);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ---------- Work index ---------- */

.index-list {
  border-top: 1px solid var(--line);
}

.index-row a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 190px 24px;
  align-items: baseline;
  gap: clamp(12px, 2.4vw, 32px);
  padding-block: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
}

.row-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.row-thumb {
  display: none;
  width: 58px;
  height: 42px;
  overflow: hidden;
  background: var(--bg-soft);
  align-self: center;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.row-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1), color 0.3s ease;
}

.row-kind {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.row-arrow {
  justify-self: end;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.4s ease, color 0.3s ease;
}

.index-row a:hover .row-title,
.index-row a:focus-visible .row-title {
  transform: translateX(10px);
  color: var(--accent);
}

.index-row a:hover .row-arrow,
.index-row a:focus-visible .row-arrow {
  transform: translate(4px, -4px);
  color: var(--ink);
}

.index-list.is-large .row-title {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 44px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.more-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hover preview */

.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(220px, 23vw, 340px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: var(--bg-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.28s ease;
  will-change: transform;
}

.hover-preview.is-on {
  opacity: 1;
}

.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Portfolio par thème ---------- */

.portfolio-head {
  padding-block: clamp(50px, 9vh, 110px) clamp(32px, 5vw, 58px);
}

.theme-nav-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 12, 11, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-block: 15px;
}

.theme-nav a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.theme-nav a:hover {
  color: var(--accent);
}

.theme-nav .sep {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--line-strong);
}

.theme-section {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 88px);
  padding-block: clamp(50px, 8vw, 100px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}

.theme-head {
  position: sticky;
  top: 78px;
  align-self: start;
}

.theme-head h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.theme-desc {
  max-width: 30ch;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.theme-count {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-list {
  border-top: 1px solid var(--line);
}

.theme-row {
  border-bottom: 1px solid var(--line);
}

.theme-row a {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 20px;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  padding-block: clamp(16px, 2vw, 24px);
}

.theme-thumb {
  width: 116px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.theme-row a:hover .theme-thumb img {
  transform: scale(1.05);
}

.theme-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.theme-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1), color 0.3s ease;
}

.theme-row a:hover .theme-title {
  transform: translateX(8px);
  color: var(--accent);
}

.theme-work-desc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.theme-arrow {
  justify-self: end;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.4s ease, color 0.3s ease;
}

.theme-row a:hover .theme-arrow {
  transform: translate(4px, -4px);
  color: var(--ink);
}

.theme-empty {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.theme-outro {
  padding-block: clamp(40px, 6vw, 70px) clamp(56px, 9vw, 110px);
  border-top: 1px solid var(--line);
}

/* ---------- Galeries d’accueil ---------- */

.home-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: end;
  padding-block: clamp(56px, 10vh, 128px) clamp(48px, 8vw, 96px);
}

.home-head h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.home-head h1 em {
  font-style: italic;
  color: var(--accent);
}

.home-intro {
  max-width: 48ch;
}

.home-lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.home-intro .text-link {
  margin-top: 26px;
}

.gallery-section {
  padding-block: clamp(48px, 7vw, 92px);
  border-top: 1px solid var(--line);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.gallery-head .label {
  display: block;
  margin-bottom: 16px;
}

.gallery-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.gallery-count {
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.project-gallery {
  display: grid;
  gap: clamp(22px, 3.2vw, 46px) clamp(18px, 2.6vw, 38px);
}

.project-gallery.is-video {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery.is-photo {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  display: block;
  min-width: 0;
}

.project-card-figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.is-video .project-card-figure {
  aspect-ratio: 16 / 9;
}

.is-photo .project-card-figure {
  aspect-ratio: 4 / 5;
}

.project-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.4s ease;
}

.project-card:hover .project-card-figure img {
  transform: scale(1.025);
  filter: saturate(1);
}

.project-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 7px 16px;
  padding-top: 14px;
}

.project-card-meta {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.is-photo .project-card-title {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}

.project-card-arrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.35s ease, color 0.25s ease;
}

.project-card:hover .project-card-title {
  color: var(--accent);
}

.project-card:hover .project-card-arrow {
  transform: translate(4px, -4px);
  color: var(--ink);
}

.project-card:focus-visible {
  outline-offset: 6px;
}

/* ---------- Statement ---------- */

.statement-grid {
  display: grid;
  grid-template-columns: minmax(150px, 3fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
}

.statement {
  max-width: 21ch;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.1vw, 2.9rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

.statement-meta {
  margin-top: clamp(28px, 4vw, 46px);
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Full-bleed strip ---------- */

.strip {
  position: relative;
  background: var(--bg-soft);
}

.strip-frame {
  height: clamp(320px, 58vh, 700px);
  overflow: hidden;
}

.strip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98);
}

.strip-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(46px, 7vw, 86px) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.footer-cta .label {
  display: block;
  margin-bottom: 20px;
}

.footer-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.2vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  transition: color 0.3s ease, border-color 0.3s ease;
  overflow-wrap: anywhere;
}

.footer-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-top .more-link {
  margin-top: 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  gap: 16px;
  padding-bottom: 8px;
  border-bottom-color: var(--line-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid a {
  transition: color 0.25s ease;
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-grid span:last-child {
  text-align: right;
}

/* ---------- Page header (Travaux / Contact) ---------- */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 6vw, 100px);
  align-items: end;
  padding-block: clamp(50px, 9vh, 110px) clamp(44px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.page-head h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-intro {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.page-intro .count {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Project ---------- */

.project-head {
  padding-block: clamp(44px, 8vh, 96px) clamp(36px, 6vw, 70px);
}

.project-head h1 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.project-lede {
  max-width: 58ch;
  margin-top: clamp(22px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

.project-hero {
  position: relative;
  isolation: isolate;
}

.project-hero.has-cover {
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 92vh, 900px);
  overflow: hidden;
}

.project-hero.has-cover .project-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}

.project-hero.has-cover .project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 12, 11, 0.6) 0%,
    rgba(12, 12, 11, 0.28) 34%,
    rgba(12, 12, 11, 0.78) 74%,
    rgba(12, 12, 11, 0.96) 100%);
}

.project-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.project-cover {
  height: clamp(320px, 74vh, 820px);
  overflow: hidden;
  background: var(--bg-soft);
}

.project-cover img,
.project-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 4fr);
  gap: clamp(30px, 6vw, 90px);
  padding-block: clamp(44px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.project-description {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
}

.project-description p + p {
  margin-top: 1.1em;
}

.credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  align-content: start;
}

.credits div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.credits dt {
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.credits dd {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.video-section {
  padding-block: clamp(44px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.video-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.video-head .label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
}

.video-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.video-source {
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(195, 172, 133, 0.16), 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 1.2s ease;
}

.video-facade:hover img {
  opacity: 0.68;
  transform: scale(1.02);
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play span {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(236, 231, 221, 0.85);
  border-radius: 50%;
  background: rgba(12, 12, 11, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.video-facade:hover .play span,
.video-facade:focus-visible .play span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.05);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stills-section {
  padding-block: clamp(44px, 7vw, 90px);
}

.stills {
  column-count: 3;
  column-gap: clamp(12px, 1.6vw, 22px);
}

.stills[data-count="1"] {
  column-count: 1;
}

.stills[data-count="2"] {
  column-count: 2;
}

.still {
  position: relative;
  margin: 0 0 clamp(12px, 1.6vw, 22px);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  break-inside: avoid;
}

.still::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.35s ease;
}

.still:hover::after,
.still:focus-within::after {
  border-color: rgba(195, 172, 133, 0.55);
}

.still button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.still img,
.still video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--bg-soft);
}

.still img {
  aspect-ratio: 4 / 3;
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.4s ease;
}

.still:nth-child(5n + 1) img {
  aspect-ratio: 4 / 5;
}

.still:nth-child(5n + 2) img {
  aspect-ratio: 3 / 2;
}

.still:nth-child(5n + 3) img {
  aspect-ratio: 1 / 1;
}

.still:nth-child(5n + 4) img {
  aspect-ratio: 4 / 3;
}

.still:nth-child(5n) img {
  aspect-ratio: 16 / 9;
}

.still:hover img,
.still:focus-within img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.still--video video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.still figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 14px 12px;
  background: linear-gradient(to top, rgba(12, 12, 11, 0.88), rgba(12, 12, 11, 0));
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.still figcaption span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.still:hover figcaption,
.still:focus-within figcaption {
  opacity: 1;
  transform: none;
}

.still--video figcaption {
  position: static;
  padding: 10px 12px;
  background: var(--bg-soft);
  opacity: 1;
  transform: none;
}

.stills[data-count="1"] .still img {
  aspect-ratio: auto;
}

@media (max-width: 1024px) {
  .stills {
    column-count: 2;
  }

  .stills[data-count="1"] {
    column-count: 1;
  }
}

@media (max-width: 640px) {
  .stills,
  .stills[data-count="2"] {
    column-count: 1;
  }

  .stills .still img {
    aspect-ratio: auto;
  }
}

.project-extra-carousel {
  padding-block: clamp(44px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.project-extra-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.project-extra-head .label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
}

.project-extra-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.project-extra-intro {
  max-width: 65ch;
  margin-bottom: clamp(22px, 3.5vw, 40px);
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

.project-extra-intro p + p {
  margin-top: 1em;
}

.extra-carousel {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.extra-carousel:focus-visible {
  outline-offset: 8px;
}

.extra-slide {
  flex: 0 0 clamp(260px, 34vw, 460px);
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.extra-slide button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.extra-slide img,
.extra-slide video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.extra-slide--video video {
  object-fit: contain;
  background: #000;
}

.project-extra-legend {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-extra-text {
  padding-block: clamp(44px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.project-extra-text h2 {
  margin-bottom: clamp(18px, 2.5vw, 28px);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.project-extra-copy {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
}

.project-extra-copy p + p {
  margin-top: 1.1em;
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-block: clamp(36px, 6vw, 70px);
  border-top: 1px solid var(--line);
}

.project-nav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-nav .next {
  text-align: right;
  align-items: flex-end;
}

.project-nav .title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 300;
  line-height: 1;
  transition: color 0.25s ease;
}

.project-nav a:hover .title {
  color: var(--accent);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(260px, 4fr);
  gap: clamp(30px, 6vw, 100px);
  padding-block: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.contact-bio {
  max-width: 58ch;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink-soft);
}

.contact-details {
  display: grid;
  gap: 22px;
  align-content: start;
}

.contact-details div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details dd {
  font-size: 1rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-details a {
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-details a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.services-section {
  display: grid;
  grid-template-columns: minmax(150px, 3fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(44px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.services li {
  display: flex;
  gap: 18px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.2;
}

.services li span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 6px;
}

.contact-image {
  height: clamp(300px, 55vh, 640px);
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(8, 8, 7, 0.97);
  padding: clamp(18px, 4vw, 48px);
}

.lightbox.is-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-bar button {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lightbox-bar button:hover {
  color: var(--accent);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(12, 12, 11, 0.6);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.lightbox-nav:hover {
  border-color: var(--ink);
}

.lightbox-nav.prev {
  left: 0;
}

.lightbox-nav.next {
  right: 0;
}

.lightbox-foot {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
}

/* ---------- Empty / error ---------- */

.empty-state {
  padding: 48px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-contact {
    max-width: 640px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 11vw, 6.4rem);
  }

  .hero-figure {
    margin-top: 8px;
  }

  .page-head,
  .contact-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-body {
    grid-template-columns: 1fr;
  }

  .credits {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .home-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 28px;
    padding-block: 170px 42px;
  }

  .home-hero-title {
    max-width: 10ch;
    font-size: clamp(3.4rem, 14vw, 6rem);
  }

  .home-hero-lede {
    max-width: 40ch;
  }

  .carousel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .carousel-tools {
    width: 100%;
    justify-content: space-between;
  }

  .carousel-card {
    flex-basis: min(78vw, 360px);
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
  }

  .play span {
    width: clamp(72px, 22vw, 92px);
    height: clamp(72px, 22vw, 92px);
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
    padding-block: 20px 16px;
  }

  .masthead-meta {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
    gap: 10px 22px;
  }

  .site-nav a {
    font-size: 9px;
  }

  .wordmark {
    font-size: 18px;
  }

  .eyebrow {
    display: block;
    line-height: 1.65;
    letter-spacing: 0.16em;
  }

  .eyebrow::before {
    display: none;
  }

  .hero {
    padding-block: 34px 54px;
    gap: 34px;
  }

  .hero-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .hero h1 {
    margin-block: 20px 22px;
  }

  .hero-frame {
    aspect-ratio: 4 / 3;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .index-row a {
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    grid-template-areas:
      "thumb title arrow"
      "thumb kind arrow";
    align-items: center;
    column-gap: 14px;
    row-gap: 6px;
    padding-block: 16px;
  }

  .row-year {
    display: none;
  }

  .row-thumb {
    display: block;
    grid-area: thumb;
    width: 58px;
    height: 44px;
  }

  .row-title {
    grid-area: title;
    font-size: 1.45rem;
  }

  .row-kind {
    grid-area: kind;
  }

  .row-arrow {
    grid-area: arrow;
  }

  .index-row a:hover .row-title,
  .index-row a:focus-visible .row-title {
    transform: none;
  }

  .statement-grid,
  .services-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .statement {
    max-width: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .footer-grid span:last-child {
    text-align: left;
  }

  .page-head {
    padding-block: 40px 46px;
  }

  .contact-grid {
    padding-block: 42px 54px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .project-hero.has-cover {
    min-height: 78vh;
  }

  .project-nav {
    gap: 16px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .home-hero-title {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .carousel-card {
    flex-basis: 82vw;
  }

  .carousel-count {
    font-size: 8px;
  }

  .credits {
    grid-template-columns: 1fr;
  }

  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-nav .next {
    text-align: left;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .theme-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .theme-head {
    position: static;
  }

  .theme-desc {
    max-width: 60ch;
  }
}

@media (max-width: 760px) {
  .theme-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 13px;
    scrollbar-width: none;
  }

  .theme-nav::-webkit-scrollbar {
    display: none;
  }

  .theme-nav a,
  .theme-nav .sep {
    flex: none;
    white-space: nowrap;
  }

  .theme-row a {
    grid-template-columns: 84px minmax(0, 1fr) 18px;
    gap: 14px;
  }

  .theme-thumb {
    width: 84px;
  }

  .theme-title {
    font-size: 1.35rem;
  }

  .theme-row a:hover .theme-title {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .home-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .home-head {
    padding-block: 34px 52px;
    gap: 28px;
  }

  .home-head h1 {
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

  .gallery-section {
    padding-block: 40px 54px;
  }

  .gallery-head {
    align-items: baseline;
  }

  .gallery-head h2 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .project-gallery.is-video,
  .project-gallery.is-photo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gallery-head {
    gap: 12px;
  }

  .gallery-count {
    font-size: 8px;
  }
}

@media (hover: none), (pointer: coarse) {
  .hover-preview {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
