/* ==========================================================================
   Rafa Gos — Title sequences / Entretenimento
   Identidade deliberadamente distinta do site de IA: serifada, centrada,
   enquadramento de cinema. Menos "estúdio técnico", mais "sala de projeção".
   ========================================================================== */

:root {
  --bg: #050506;
  --bg-elev: #0d0d0f;
  --fg: #ede9e3;
  --fg-dim: #9d9891;
  --fg-mute: #625e59;
  --line: rgba(237, 233, 227, 0.14);
  --line-soft: rgba(237, 233, 227, 0.07);
  --accent: #e8b44a;

  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

::selection { background: var(--accent); color: #050506; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* --- base ----------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap-narrow { max-width: 940px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

/* rótulo em versalete espaçado — a "tipografia de cartela" do site */
.label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 66px;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  /* a base preta existe desde o topo: sem ela o menu some sobre o vídeo do hero */
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.88);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2.1rem); }
.nav a {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a.lang {
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
  line-height: 1;
  color: var(--fg);
}
.nav a.lang:hover { background: var(--accent); border-color: var(--accent); color: #050506; }
@media (max-width: 680px) { .nav a.opt { display: none; } }

/* --- hero (composição de cartela) ----------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem var(--pad) 3rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video {
  /* os dois precisam ser absolutos e sobrepostos: em fluxo normal o vídeo
     era empurrado para baixo do poster, saía do quadro e nunca tocava */
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* o vídeo oscila de YAVG 42 a 141 — escurecer na fonte garante leitura
     em todos os frames, em vez de depender só do gradiente */
  filter: brightness(0.52) contrast(1.04) saturate(0.92);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 58% at 50% 46%, rgba(5, 5, 6, 0.55), rgba(5, 5, 6, 0.9) 76%),
    linear-gradient(to top, rgba(5, 5, 6, 0.96) 2%, transparent 42%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.8) 0%, transparent 26%);
}
.hero-bg video { z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 62rem;
  text-shadow: 0 1px 34px rgba(5, 5, 6, 0.85), 0 1px 3px rgba(5, 5, 6, 0.55);
}

.hero-eyebrow { color: #c9c4bd; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-title span { display: block; }
.hero-title span + span { color: #c3beb7; font-style: italic; }

.hero-lead {
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  max-width: 56ch;
  color: #cfcac3;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  transform: translateX(-50%);
  z-index: 1;
  color: var(--fg-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-cue i {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--fg-mute), transparent);
  display: block;
}

/* --- seções --------------------------------------------------------------- */

.section { padding-block: clamp(5rem, 11vw, 10rem); }

.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.section-head .label { color: var(--accent); display: block; margin-bottom: 1.25rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
}
.section-note { margin-top: 0.9rem; color: var(--fg-dim); font-size: 0.95rem; }

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* --- aberturas: entradas de catálogo -------------------------------------- */

.titles { display: grid; gap: clamp(4.5rem, 10vw, 9rem); }

.title-entry { display: block; position: relative; }
.title-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line-soft);
}
.title-frame img, .title-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s var(--ease);
}
.title-frame video { opacity: 0; }
.title-frame.playing video { opacity: 1; }
.title-frame.playing img { opacity: 0; }
.title-entry:hover .title-frame img,
.title-entry:hover .title-frame video { transform: scale(1.03); }
.title-frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 120px 20px rgba(5, 5, 6, 0.5);
  pointer-events: none;
}

.title-caption {
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.title-caption .label { color: var(--accent); display: block; margin-bottom: 0.9rem; }
.title-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  transition: color 0.35s var(--ease);
}
.title-entry:hover .title-name { color: var(--accent); }
.title-logline {
  margin-top: 0.75rem;
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  max-width: 46ch;
  margin-inline: auto;
}
.title-meta {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--fg-mute);
}

/* --- universos: grade ----------------------------------------------------- */

.worlds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.world { display: block; }
.world-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-soft);
}
.world-frame img, .world-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s var(--ease);
}
.world-frame video { opacity: 0; }
.world-frame.playing video { opacity: 1; }
.world-frame.playing img { opacity: 0; }
.world:hover .world-frame img, .world:hover .world-frame video { transform: scale(1.04); }

.world-body { padding-top: 1.25rem; }
.world-body .label { color: var(--accent); display: block; margin-bottom: 0.7rem; }
.world-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  transition: color 0.35s var(--ease);
}
.world:hover .world-name { color: var(--accent); }
.world-logline { margin-top: 0.6rem; color: var(--fg-dim); font-size: 0.95rem; }

.world.upcoming .world-frame {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
}
.world.upcoming .world-frame span {
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}

/* --- método --------------------------------------------------------------- */

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.method-step { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.method-n { color: var(--accent); display: block; margin-bottom: 0.9rem; }
.method-label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  margin-bottom: 0.7rem;
}
.method-text { color: var(--fg-dim); font-size: 0.95rem; }
@media (max-width: 900px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .method { grid-template-columns: 1fr; } }

/* --- sobre ---------------------------------------------------------------- */

.about-body p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.46;
  color: var(--fg);
}
.about-body p + p { margin-top: 1.5rem; }
.about-body p:not(:first-child) { font-family: var(--font-sans); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.62; color: var(--fg-dim); }

.aside-block { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.aside-block .label { color: var(--fg-mute); display: block; margin-bottom: 1rem; }
.aside-block p { color: var(--fg-dim); max-width: 68ch; }
.inline-link {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease);
}
.inline-link:hover { color: var(--accent); }

.credit-list li {
  color: var(--fg-dim);
  font-size: 0.95rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}
.credit-list li:last-child { border-bottom: 0; }
.credit-list strong { color: var(--fg); font-weight: 500; }

/* --- contato -------------------------------------------------------------- */

.contact { border-top: 1px solid var(--line); text-align: center; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 5rem);
  max-width: 18ch;
  margin-inline: auto;
}
.contact-lead { margin: 1.5rem auto 0; max-width: 50ch; color: var(--fg-dim); }
.contact-links {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}
.contact-links a {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }

.site-footer { border-top: 1px solid var(--line-soft); padding-block: 2rem 2.5rem; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--fg-mute);
}

/* --- página de projeto ---------------------------------------------------- */

.p-hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--pad) 3rem;
  overflow: hidden;
}
.p-hero-bg { position: absolute; inset: 0; }
.p-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 65% at 50% 50%, rgba(5, 5, 6, 0.4), rgba(5, 5, 6, 0.9) 80%),
    linear-gradient(to top, rgba(5, 5, 6, 0.96), transparent 42%);
}
.p-hero-inner { position: relative; z-index: 1; max-width: 54rem; }
.p-kicker { color: var(--accent); display: block; margin-bottom: 1.5rem; }
.p-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.03;
}
.p-logline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  color: var(--fg-dim);
  max-width: 34ch;
  margin-inline: auto;
  line-height: 1.38;
}

.ficha {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.ficha div { background: var(--bg); padding: 1.4rem 1.25rem 1.6rem; }
.ficha dt {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.6rem;
}
.ficha dd { margin: 0; font-size: 0.94rem; line-height: 1.45; }

.p-intro {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  line-height: 1.42;
  text-align: center;
  max-width: 34ch;
  margin-inline: auto;
}

.spec-note {
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  max-width: 52ch;
  font-size: 0.8125rem;
  color: var(--fg-mute);
  text-align: center;
  line-height: 1.6;
}

/* etapas */
.steps { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.step { border-top: 1px solid var(--line-soft); padding-top: clamp(1.75rem, 3vw, 2.5rem); }
.step-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
}
.step-n { color: var(--accent); display: block; }
.step-label { color: var(--fg-dim); display: block; margin-top: 0.4rem; }
.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  max-width: 22ch;
}
.step-text {
  margin-top: 1.1rem;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 64ch;
}
.step-media { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 820px) {
  .step-head { grid-template-columns: 1fr; gap: 0.85rem; }
  .step-label { margin-top: 0; }
}

/* galeria de style frames */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  align-items: start;
}
.gallery.single { grid-template-columns: 1fr; max-width: 1100px; margin-inline: auto; }
.gallery.portrait { grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); }
.shot { margin: 0; }
.shot button {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--line-soft);
  background: #000;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.shot img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.shot button:hover img { transform: scale(1.025); }
.shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.5;
}

/* player */
.player { position: relative; background: #000; border: 1px solid var(--line-soft); overflow: hidden; }
.player.is-small { max-width: 620px; margin-inline: auto; }
.player.is-vertical { max-width: 420px; margin-inline: auto; }
.player video { width: 100%; height: auto; }
.player-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
}
.player.playing .player-poster, .player.playing .player-btn { opacity: 0; pointer-events: none; }
.player-btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--fg);
  transition: opacity 0.5s var(--ease);
}
.player-btn i {
  width: clamp(56px, 6.5vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(237, 233, 227, 0.5);
  background: rgba(5, 5, 6, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.player-btn:hover i { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.player-btn i::after {
  content: "";
  width: 0; height: 0; margin-left: 4px;
  border-left: 13px solid currentColor;
  border-top: 8.5px solid transparent;
  border-bottom: 8.5px solid transparent;
}
.player-btn:hover i::after { color: #050506; }
.media-caption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* citação */
.pull { padding-block: clamp(4rem, 9vw, 8rem); border-block: 1px solid var(--line-soft); text-align: center; }
.pull blockquote {
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 2.6rem);
  line-height: 1.32;
  max-width: 24ch;
}

/* próximo */
.next {
  display: block;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  text-align: center;
  transition: background 0.5s var(--ease);
}
.next:hover { background: var(--bg-elev); }
.next .label { color: var(--fg-mute); display: block; margin-bottom: 1rem; }
.next-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  transition: color 0.35s var(--ease);
}
.next:hover .next-title { color: var(--accent); }


/* --- hero de projeto como player -------------------------------------------
   O filme e a primeira coisa da pagina: o hero deixa de ser imagem estatica e
   vira o proprio player. Ao tocar, o texto e o scrim saem da frente.          */

.p-hero.is-player { cursor: pointer; }
.p-hero .p-hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s var(--ease);
}
.p-hero.playing .p-hero-bg video {
  opacity: 1;
  pointer-events: auto;
  object-fit: contain;
  background: #000;
}
.p-hero .p-hero-bg .player-poster { z-index: 0; transition: opacity 0.5s var(--ease); }
.p-hero.playing .p-hero-bg .player-poster { opacity: 0; }
.p-hero .p-hero-bg::after { z-index: 2; transition: opacity 0.5s var(--ease); }
.p-hero.playing .p-hero-bg::after { opacity: 0; }
.p-hero-copy, .p-hero .p-hero-inner { z-index: 3; transition: opacity 0.45s var(--ease); }
.p-hero.playing .p-hero-copy,
.p-hero.playing .p-hero-inner { opacity: 0; pointer-events: none; }
.p-hero .player-btn { z-index: 4; }
.p-hero.playing .player-btn { opacity: 0; pointer-events: none; }
.p-hero.is-vertical.playing .p-hero-bg video { object-fit: contain; }

/* --- header some enquanto o vídeo toca ------------------------------------
   O menu ficava por cima do filme. Enquanto toca, ele recolhe; volta ao mexer
   o mouse (ou tocar, no celular) e ao rolar a página.                        */
body.video-playing .site-header {
  transform: translateY(-100%);
  pointer-events: none;
}
body.video-playing.peek .site-header {
  transform: none;
  pointer-events: auto;
}
.site-header { transition: transform 0.45s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease); }

/* o scrim é decorativo: sem isso ele engolia o clique e impedia pausar */
.p-hero-bg::after, .hero-bg::after { pointer-events: none; }
.p-hero.playing .p-hero-bg::after { opacity: 0; }

/* --- lightbox ------------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 3, 4, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3.5rem);
}
.lightbox[open] { display: flex; }
.lightbox img { max-width: 100%; max-height: 84svh; width: auto; object-fit: contain; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem);
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-inline: 2rem;
}
.lb-btn {
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.1rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #050506; }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --- reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
