/* =========================================================
   JD Métallerie : feuille de style
   ========================================================= */

:root {
  --bg: #EDE8E1;          /* grège / crème chaud */
  --bg-2: #F4F1EC;        /* fond secondaire */
  --taupe: #8A837B;       /* filets, éléments décoratifs (pas pour du texte courant : contraste 3:1) */
  --taupe-text: #655E57;  /* texte secondaire lisible sur fonds clairs (≥ 5:1) */
  --ink: #1C1A18;         /* noir chaud */
  --cream: #EDE8E1;
  --cream-muted: #A9A198; /* texte secondaire sur fond noir (≥ 6:1) */
  --line: rgba(138, 131, 123, .45);

  --f-title: "Cormorant Garamond", "Times New Roman", serif;
  --f-text: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Herr Von Muellerhoff", cursive;

  --gutter: 16px;
  --max: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.1s;
}

@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 900px) { :root { --gutter: 48px; --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
:where(ul[role="list"], ol) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--cream); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--ink); color: var(--cream);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--f-text);
  font-weight: 500;
  font-size: .6875rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--taupe-text);
}
.eyebrow--strong { color: var(--ink); font-size: .75rem; }

.title {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.title--xl { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); letter-spacing: .14em; }

/* compense l'espacement des lettres pour un centrage optique */
.section__head:not(.section__head--left) .title { padding-left: .2em; }
.hero__title span { padding-left: .17em; }

.rule {
  display: block; width: 56px; height: 1px;
  background: var(--taupe);
  margin: 1.5rem auto;
}

.script {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  margin: 2rem 0 2.25rem;
}

.prose p + p { margin-top: 1.1em; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 1rem 2.4rem;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font-family: var(--f-text); font-weight: 500;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; padding-bottom: .35rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .7s var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
}
/* Fond flouté sur un calque séparé : un backdrop-filter sur .header lui-même
   enfermerait le menu mobile (position: fixed) dans la hauteur de la barre. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(237, 232, 225, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(138, 131, 123, .2);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.menu-open .header::before { opacity: 0; }
.header__inner {
  height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.header__brand { position: relative; z-index: 2; display: block; }
.header__brand img { width: auto; height: 40px; }
@media (min-width: 900px) { .header__brand img { height: 52px; } }

.header__toggle {
  position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.header__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.header__toggle span:first-child { top: 18px; }
.header__toggle span:last-child { top: 26px; }
.header__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.header__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav li + li { margin-top: 1.6rem; }
.nav ul a {
  font-family: var(--f-title); font-size: 1.6rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.nav__phone {
  font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-decoration: none; color: var(--taupe-text);
}

@media (min-width: 900px) {
  .header__toggle { display: none; }
  .nav {
    position: static; flex-direction: row; gap: 0;
    background: none; opacity: 1; visibility: visible;
  }
  .nav ul { display: flex; gap: 2.75rem; }
  .nav li + li { margin-top: 0; }
  .nav ul a {
    font-family: var(--f-text); font-size: .6875rem; letter-spacing: .3em;
    padding: .5rem 0;
    background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
    transition: background-size .7s var(--ease);
  }
  .nav ul a:hover, .nav ul a[aria-current="true"] { background-size: 100% 1px; }
  .nav__phone { display: none; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(5rem, 4rem + 6vw, 9.5rem) var(--gutter);
}
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto clamp(3rem, 2rem + 4vw, 5.5rem); }
.section__head .eyebrow { margin-bottom: 1.1rem; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head--left .rule { margin-left: 0; }
.section__intro { color: var(--taupe-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 3rem;
}
/* Image plein écran (équivalent background-size: cover), cadrée sur l'escalier */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg::before {
  /* léger voile clair sur toute l'image, un peu plus présent en haut pour la navigation */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(244, 241, 236, .5) 0%,
    rgba(244, 241, 236, .25) 35%,
    rgba(244, 241, 236, .15) 100%);
  pointer-events: none;
}
.hero__bg::after {
  /* voile crème : renforcé en haut sur mobile, derrière le texte */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(237, 232, 225, .92) 0%,
    rgba(237, 232, 225, .86) 52%,
    rgba(237, 232, 225, 0) 80%);
}
.hero__img {
  width: 100%; height: 110%; max-width: none;
  object-fit: cover; object-position: 80% 50%;
  will-change: transform;
}
.hero__text {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 34rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title {
  margin-top: 1.4rem;
  font-family: var(--f-title); font-weight: 500;
  font-size: clamp(1.75rem, .9rem + 2.6vw, 3.1rem);
  line-height: 1.15; letter-spacing: .17em; text-transform: uppercase;
  white-space: nowrap;
}
.hero__title span { display: block; }
.hero__title span + span { font-weight: 600; }
.hero__specialty {
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .95rem; font-weight: 400;
}
.hero__lead { max-width: 26rem; margin-top: 1.4rem; color: var(--taupe-text); }
.hero .rule { margin: 1.75rem auto; }

@media (min-width: 900px) {
  .hero {
    align-items: center; justify-content: flex-start;
    padding: var(--header-h) var(--gutter) 2rem;
    padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  }
  .hero__bg::after {
    background: linear-gradient(90deg,
      rgba(237, 232, 225, .6) 0%,
      rgba(237, 232, 225, .4) 30%,
      rgba(237, 232, 225, 0) 55%);
  }
  .hero__img { object-position: 70% 50%; }
  .hero__text { width: min(36rem, 46vw); max-width: none; }
}

/* ---------- Matériaux ---------- */
.materials__grid {
  display: grid; gap: 3rem;
  max-width: var(--max); margin: 0 auto;
}
.material { text-align: center; max-width: 22rem; margin: 0 auto; }
.material__name {
  font-family: var(--f-title); font-weight: 500;
  font-size: 1.5rem; letter-spacing: .26em; padding-left: .26em; text-transform: uppercase;
}
.material__name::after {
  content: ""; display: block; width: 28px; height: 1px; background: var(--taupe); margin: 1.1rem auto 1.25rem;
}
.material p { color: var(--taupe-text); font-size: .95rem; }

@media (min-width: 760px) {
  .materials__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .material { padding: 0 clamp(1.5rem, 3vw, 3.5rem); max-width: none; }
  .material + .material { border-left: 1px solid var(--line); }
}

/* ---------- Prestations ---------- */
.services__inner { max-width: var(--max); margin: 0 auto; }

/* Mobile : carrousel discret */
.services__list {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.services__list::-webkit-scrollbar { display: none; }
.service {
  flex: 0 0 78%; scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.service__media { order: -1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__btn {
  display: flex; align-items: center; gap: .8rem;
  width: 100%; padding: 1.1rem 0 0; text-align: left;
  background: none; border: 0; cursor: default;
  font-family: var(--f-title); font-size: 1.15rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.3;
}
.service__btn .icon { width: 1.4rem; height: 1.4rem; color: var(--ink); }

.services__progress { height: 1px; background: var(--line); margin-top: 2rem; overflow: hidden; }
.services__progress span {
  display: block; height: 100%; width: 100%; background: var(--ink);
  transform-origin: left; transform: scaleX(.14);
  transition: transform .4s var(--ease);
}

/* Desktop : liste + image en fondu au survol */
@media (min-width: 900px) {
  .services__inner {
    --svc-gap: clamp(3rem, 7vw, 7rem);
    position: relative;
    display: grid; grid-template-columns: 5fr 6fr; column-gap: var(--svc-gap);
    align-items: start;
    min-height: min(46rem, 82vh);
  }
  .services__inner .section__head { grid-column: 1; margin-bottom: 3rem; }
  .services__list {
    grid-column: 1; grid-row: 2;
    display: block; overflow: visible; margin: 0; padding: 0;
    position: static;
  }
  .service { display: block; }
  .service__btn {
    position: relative;
    padding: 1.15rem 0; cursor: pointer;
    border-bottom: 1px solid var(--line);
    color: var(--taupe-text);
    transition: color .6s var(--ease), padding-left .6s var(--ease);
  }
  .service:first-child .service__btn { border-top: 1px solid var(--line); }
  .service__btn .icon { color: var(--taupe); transition: color .6s var(--ease); }
  .service.is-active .service__btn, .service__btn:hover { color: var(--ink); padding-left: .6rem; }
  .service.is-active .service__btn .icon { color: var(--ink); }

  /* les images occupent la colonne de droite, superposées */
  .service__media {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: calc((100% - var(--svc-gap)) * 6 / 11);
    aspect-ratio: auto;
    opacity: 0; transition: opacity 1.1s var(--ease);
  }
  .service.is-active .service__media { opacity: 1; }
  .services__progress { display: none; }
}

/* ---------- Réalisations ---------- */
.gallery__grid {
  max-width: var(--max); margin: 0 auto;
  columns: 1; column-gap: clamp(1.25rem, 3vw, 2.75rem);
}
@media (min-width: 600px) { .gallery__grid { columns: 2; } }
@media (min-width: 1100px) { .gallery__grid { columns: 3; } }

.gallery__item { break-inside: avoid; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.gallery__item button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2);
  cursor: zoom-in; overflow: hidden;
}
.gallery__item img {
  width: 100%;
  transition: transform 1.6s var(--ease), filter 1.2s var(--ease);
  filter: saturate(.92);
}
.gallery__item button:hover img { transform: scale(1.03); filter: saturate(1); }
.gallery__item figcaption {
  margin-top: 1rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--taupe-text);
}
.gallery__more { text-align: center; margin-top: 1.5rem; }

/* ---------- À propos ---------- */
.about__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 3.5rem; }
.about__media { aspect-ratio: 4 / 3; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text { max-width: 34rem; }
.about .section__head { margin-bottom: 2rem; }
.about .prose { color: #3B3732; }

.steps {
  display: flex; margin-top: 2.75rem; border-top: 1px solid var(--line);
}
.steps li { flex: 1; padding-top: 1.1rem; }
.steps li + li { padding-left: 1.25rem; }
.steps__num { display: block; font-family: var(--f-title); font-size: 1.05rem; color: var(--taupe-text); }
.steps__label { font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }

@media (min-width: 900px) {
  .about__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
  .about__media { aspect-ratio: 4 / 5; }
  .about__media img { object-position: 50% 50%; }
}

/* ---------- Identité ---------- */
.identity { padding-top: clamp(5rem, 4rem + 4vw, 7.5rem); padding-bottom: clamp(5rem, 4rem + 4vw, 7.5rem); }
.identity__inner {
  max-width: 54rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.identity__logo img { width: min(280px, 72vw); }
.identity__sep { width: 56px; height: 1px; background: var(--taupe); }
.identity__list li {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--f-title); font-size: 1.1rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}
.identity__list li + li { margin-top: .85rem; }
.identity__list .icon { width: 1.35rem; height: 1.35rem; }

@media (min-width: 760px) {
  .identity__inner { flex-direction: row; justify-content: center; gap: clamp(2.5rem, 6vw, 5rem); }
  .identity__sep { width: 1px; height: auto; align-self: stretch; }
  .identity__logo img { width: 300px; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink); color: var(--cream);
  padding: clamp(5rem, 4rem + 6vw, 9rem) var(--gutter);
}
.contact__inner { max-width: 60rem; margin: 0 auto; }
.contact .eyebrow, .contact .section__intro { color: var(--cream-muted); }
.contact .rule { background: var(--cream-muted); }

.contact__links {
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.contact__links a {
  display: inline-flex; align-items: center; gap: .85rem;
  font-size: 1rem; font-weight: 400; letter-spacing: .06em; text-decoration: none;
  padding: .4rem 0;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size .7s var(--ease);
}
.contact__links a:hover { background-size: 100% 1px; }
.contact__links .icon { width: 1.4rem; height: 1.4rem; }
@media (min-width: 900px) {
  .contact__links { flex-direction: row; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); }
}

.form { border-top: 1px solid rgba(169, 161, 152, .35); padding-top: clamp(2.5rem, 5vw, 4rem); }
.form__row { display: grid; gap: 0 2rem; }
@media (min-width: 760px) { .form__row { grid-template-columns: repeat(3, 1fr); } }
.field { display: flex; flex-direction: column; margin-bottom: 1.75rem; }
.field label {
  font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream-muted); margin-bottom: .5rem;
}
.field__opt { letter-spacing: .08em; text-transform: none; font-weight: 300; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid rgba(169, 161, 152, .55); border-radius: 0;
  padding: .6rem 0; resize: vertical;
  transition: border-color .5s var(--ease);
}
.field textarea::placeholder { color: rgba(169, 161, 152, .7); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cream); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--cream); }
.field [aria-invalid="true"] { border-bottom-color: #D9B8A0; }
.form__error { color: #E3C6B1; font-size: .9rem; margin-bottom: 1.25rem; }
.form__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: .5rem; }
.form__note { font-size: .8rem; color: var(--cream-muted); }
@media (min-width: 760px) { .form__actions { flex-direction: row; align-items: center; gap: 2rem; } }

.contact :focus-visible { outline-color: var(--cream); }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--cream-muted); padding: 0 var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid rgba(169, 161, 152, .3);
  padding-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.footer ul { display: flex; gap: 2rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer :focus-visible { outline-color: var(--cream); }
@media (min-width: 760px) { .footer__inner { flex-direction: row; justify-content: space-between; } }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.call-fab {
  position: fixed; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 48px; padding: 0 1.15rem;
  background: var(--ink); color: var(--cream);
  font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s;
}
.call-fab .icon { width: 1.15rem; height: 1.15rem; }
.call-fab.is-hidden { opacity: 0; transform: translateY(12px); visibility: hidden; transition-delay: 0s, 0s, .6s; }
.call-fab:focus-visible { outline-color: var(--ink); }
@media (min-width: 900px) { .call-fab { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(28, 26, 24, .96); color: var(--cream);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure {
  display: flex; flex-direction: column; align-items: center;
  padding: 4.5rem var(--gutter) 5rem; width: 100%; height: 100%; justify-content: center;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100% - 3rem); width: auto; height: auto; object-fit: contain;
  transition: opacity .4s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption {
  margin-top: 1.25rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-muted);
  text-align: center;
}
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid transparent; color: var(--cream); cursor: pointer;
  transition: border-color .5s var(--ease);
}
.lightbox__btn:hover { border-color: rgba(237, 232, 225, .4); }
.lightbox__btn .icon { width: 1.5rem; height: 1.5rem; }
.lightbox__close { top: 1rem; right: calc(var(--gutter) - 12px); }
.lightbox__prev, .lightbox__next { bottom: 1rem; }
.lightbox__prev { left: calc(var(--gutter) - 12px); }
.lightbox__next { right: calc(var(--gutter) - 12px); }
@media (min-width: 900px) {
  .lightbox__prev, .lightbox__next { bottom: auto; top: 50%; transform: translateY(-50%); }
}
.lightbox__count {
  position: absolute; top: 1.75rem; left: var(--gutter);
  font-size: .6875rem; letter-spacing: .24em; color: var(--cream-muted);
}
.lightbox :focus-visible { outline-color: var(--cream); }
body.has-lightbox { overflow: hidden; }

/* ---------- Animations ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__img { transform: none !important; }
}
