/* =========================
   TRAJETÓRIA — PROFUNDIDADE
========================= */

.trajetoria-page {
  margin: 0;
  overflow-x: hidden;
  background: #07111c;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 22px;
  right: clamp(20px, 4vw, 72px);
  z-index: 9999;

  transition:
    top 0.35s ease,
    right 0.35s ease;
}


/* =========================
   MENU
========================= */

.main-nav {
  position: relative;

  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);

  padding: 10px 16px;

  border: 1px solid transparent;
  border-radius: 4px;

  background: rgba(7, 17, 28, 0.54);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;

  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}


/* Quando a página começa a rolar */

.site-header.is-scrolled .main-nav {
  background: rgba(7, 17, 28, 0.88);

  border-color: rgba(198, 166, 107, 0.18);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14);
}


/* =========================
   LINKS
========================= */

.main-nav a {
  position: relative;

  color: var(--rr-beige);

  text-decoration: none;
  white-space: nowrap;

  padding: 7px 0;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}


/* Linha animada embaixo */

.main-nav a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  width: 0;
  height: 1px;

  background: var(--rr-gold-light);

  transform: translateX(-50%);

  transition:
    width 0.28s ease,
    opacity 0.28s ease;

  opacity: 0;
}


.main-nav a:hover {
  color: var(--rr-gold-light);
}


.main-nav a:hover::after {
  width: 100%;
  opacity: 1;
}


/* Página ativa */

.main-nav a.active {
  color: var(--rr-gold-light);
}

.main-nav a.active::after {
  width: 100%;
  opacity: 0.75;
}


/* Acessibilidade */

.main-nav a:focus-visible {
  outline: 1px solid var(--rr-gold-light);
  outline-offset: 5px;
}


/* Divisores */

.menu-divider {
  color: var(--rr-gold);
  opacity: 0.48;
  font-weight: 300;
}


/* =========================
   BOTÃO MOBILE
========================= */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(198, 166, 107, 0.3);
  border-radius: 4px;

  background: rgba(7, 17, 28, 0.88);

  cursor: pointer;

  align-items: center;
  justify-content: center;

  padding: 0;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


.menu-toggle-lines {
  position: relative;

  width: 19px;
  height: 12px;
}


.menu-toggle-lines::before,
.menu-toggle-lines::after,
.menu-toggle-lines span {
  content: "";

  position: absolute;
  left: 0;

  width: 100%;
  height: 1px;

  background: var(--rr-beige);

  transition:
    transform 0.3s ease,
    top 0.3s ease,
    opacity 0.3s ease;
}


.menu-toggle-lines::before {
  top: 0;
}


.menu-toggle-lines span {
  top: 5px;
}


.menu-toggle-lines::after {
  top: 10px;
}


/* Menu aberto */

.site-header.menu-open .menu-toggle-lines::before {
  top: 5px;
  transform: rotate(45deg);
}


.site-header.menu-open .menu-toggle-lines span {
  opacity: 0;
}


.site-header.menu-open .menu-toggle-lines::after {
  top: 5px;
  transform: rotate(-45deg);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

  body {
    font-size: 19px;
  }

  .site-header {
    top: 14px;
    right: 14px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;

    top: 54px;
    right: 0;

    width: min(260px, calc(100vw - 28px));

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 10px 18px;

    background: rgba(7, 17, 28, 0.96);

    border: 1px solid rgba(198, 166, 107, 0.22);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;

    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.18);
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;

    padding: 15px 4px;

    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .main-nav a::after {
    left: 4px;

    transform: none;
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 28px;
  }

  .menu-divider {
    display: none;
  }
}


.trajetoria-page .site-footer {
  margin-top: -255px;
  position: relative;
  z-index: 10;
}

.depth-journey {
  position: relative;
  height: 1000vh;
  background: #07111c;
}

.depth-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1250px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  background: #04090f;
}

.depth-vignette {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  box-shadow:
    inset 0 0 130px rgba(0,0,0,0.58),
    inset 0 0 250px rgba(0,0,0,0.34);
}



/* =========================
   GALERIA 3D / AMBIENTE
========================= */

.gallery-world {
  --gallery-scale: 1;
  --gallery-shift-y: 0px;
  --gallery-brightness: 0.82;

  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  transform-style: preserve-3d;
}

/*
  Quando você tiver o fundo definitivo, salve como:
  assets/img/trajetoria-galeria.webp

  O CSS já está preparado para receber a imagem.
*/
.gallery-bg {
  position: absolute;
  inset: -8%;
  z-index: 0;

  background:
    linear-gradient(
      180deg,
      rgba(3, 8, 13, 0.15) 0%,
      rgba(3, 8, 13, 0.48) 62%,
      rgba(3, 8, 13, 0.78) 100%
    ),
    radial-gradient(
      ellipse at 50% 45%,
      rgba(19, 33, 48, 0.50) 0%,
      rgba(7, 17, 28, 0.70) 38%,
      rgba(2, 6, 10, 0.96) 78%
    ),
    url("../img/trajetoria-galeria.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform:
    translate3d(0, var(--gallery-shift-y), 0)
    scale(var(--gallery-scale));

  filter:
    brightness(var(--gallery-brightness))
    saturate(0.82);

  transform-origin: center center;
  will-change: transform, filter;
}

/* Paredes laterais: aparecem mesmo antes de você ter a imagem definitiva */
.gallery-left-wall,
.gallery-right-wall {
  position: absolute;
  top: -8vh;
  bottom: -10vh;
  width: 38vw;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 10, 0.98) 0%,
      rgba(7, 17, 28, 0.92) 55%,
      rgba(12, 24, 36, 0.20) 100%
    );

  opacity: 0.86;
  transform-origin: center;
}

.gallery-left-wall {
  left: -18vw;
  transform: perspective(900px) rotateY(56deg);
}

.gallery-right-wall {
  right: -18vw;
  transform:
    perspective(900px)
    rotateY(-56deg)
    scaleX(-1);
}

.gallery-ceiling {
  position: absolute;
  left: 10%;
  right: 10%;
  top: -20vh;
  height: 38vh;
  z-index: 2;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(7, 17, 28, 0.58) 62%,
      transparent 100%
    );

  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}

.gallery-floor {
  position: absolute;
  left: 50%;
  bottom: -22vh;
  width: 130vw;
  height: 58vh;
  z-index: 2;

  transform:
    translateX(-50%)
    rotateX(67deg);

  transform-origin: center bottom;

  background:
    linear-gradient(
      180deg,
      rgba(20, 31, 43, 0.08) 0%,
      rgba(7, 17, 28, 0.46) 52%,
      rgba(0, 0, 0, 0.88) 100%
    );

  border-top: 1px solid rgba(198,166,107,0.06);
}

.gallery-floor::before,
.gallery-floor::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;

  background:
    linear-gradient(
      180deg,
      rgba(198,166,107,0.28),
      rgba(198,166,107,0)
    );
}

.gallery-floor::before {
  left: 35%;
  transform: rotate(-8deg);
}

.gallery-floor::after {
  right: 35%;
  transform: rotate(8deg);
}

.gallery-horizon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  z-index: 3;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  box-shadow:
    0 0 90px 28px rgba(198,166,107,0.06),
    0 0 180px 65px rgba(75,98,124,0.04);
}

/* O conteúdo fica acima do cenário */
.depth-scene {
  z-index: 10;
}


/* SCENES */

.depth-scene {
  --scene-z: -5000px;
  --scene-opacity: 0;
  --scene-blur: 8px;

  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  transform-style: preserve-3d;
  transform: translate3d(0, 0, var(--scene-z));

  opacity: var(--scene-opacity);
  filter: blur(var(--scene-blur));

  will-change: transform, opacity, filter;
  pointer-events: none;
}

.depth-scene.is-current {
  pointer-events: auto;
}

.depth-scene-inner {
  position: relative;
  width: min(100%, 1360px);
  min-height: 100vh;
  padding: 86px clamp(52px, 6vw, 96px);
  transform-style: preserve-3d;
}

/* INTRO */

.depth-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.depth-kicker {
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--rr-gold-light);
}

.depth-center h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(66px, 8vw, 128px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--rr-beige);
}

.depth-subtitle {
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.74);
}

.depth-rule {
  display: block;
  width: 120px;
  height: 1px;
  margin: 28px 0 32px;
  background: var(--rr-gold);
}

.depth-scroll-hint {
  margin-top: 42px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(245,241,232,0.48);
}

.depth-scroll-hint span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}


/* =========================
   CENA 01 — PANORÂMICA
========================= */

.depth-scene-01 {
  --scene01-image-scale: 1;

  --scene01-number-x: -360px;
  --scene01-era-x: -230px;
  --scene01-title-x: -430px;
  --scene01-rule-x: -170px;
  --scene01-body1-x: -300px;
  --scene01-body2-x: -150px;

  --scene01-number-y: -10px;
  --scene01-era-y: 8px;
  --scene01-title-y: -6px;
  --scene01-rule-y: 6px;
  --scene01-body1-y: 12px;
  --scene01-body2-y: -5px;

  --scene01-number-opacity: 0;
  --scene01-era-opacity: 0;
  --scene01-title-opacity: 0;
  --scene01-rule-opacity: 0;
  --scene01-body1-opacity: 0;
  --scene01-body2-opacity: 0;
}

.scene01-panorama {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 76vh;
  z-index: 1;
  overflow: hidden;

  transform:
    translateY(-50%)
    scale(var(--scene01-image-scale));

  transform-origin: center center;
  will-change: transform;
}

.scene01-panorama img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

.scene01-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(6,16,26,0.01) 0%,
      rgba(6,16,26,0.02) 38%,
      rgba(6,16,26,0.14) 55%,
      rgba(6,16,26,0.42) 72%,
      rgba(6,16,26,0.72) 100%
    );
}

.scene01-copy {
  position: absolute;
  top: 50%;
  right: 5.4vw;
  z-index: 5;

  width: min(40vw, 650px);

  transform: translateY(-50%);
  text-align: right;
}

.scene01-item {
  position: relative;
  will-change: transform, opacity;
  filter: none;
  text-shadow: 0 2px 16px rgba(0,0,0,0.46);
}

.scene01-number {
  opacity: var(--scene01-number-opacity);
  transform: translate3d(
    var(--scene01-number-x),
    var(--scene01-number-y),
    150px
  );
}

.scene01-era {
  opacity: var(--scene01-era-opacity);
  transform: translate3d(
    var(--scene01-era-x),
    var(--scene01-era-y),
    130px
  );
}

.scene01-title {
  opacity: var(--scene01-title-opacity);
  transform: translate3d(
    var(--scene01-title-x),
    var(--scene01-title-y),
    115px
  );
}

.scene01-rule {
  opacity: var(--scene01-rule-opacity);
  transform: translate3d(
    var(--scene01-rule-x),
    var(--scene01-rule-y),
    100px
  );
}

.scene01-body-1 {
  opacity: var(--scene01-body1-opacity);
  transform: translate3d(
    var(--scene01-body1-x),
    var(--scene01-body1-y),
    85px
  );
}

.scene01-body-2 {
  opacity: var(--scene01-body2-opacity);
  transform: translate3d(
    var(--scene01-body2-x),
    var(--scene01-body2-y),
    70px
  );
}

.scene01-copy .depth-number {
  margin-bottom: 10px;
  font-size: clamp(54px, 4vw, 72px);
}

.scene01-copy .depth-era {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.35;
}

.scene01-copy h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(40px, 3.2vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--rr-beige);
}

.scene01-copy .depth-rule {
  margin: 26px 0 28px auto;
}

.scene01-body {
  margin: 0;
  margin-left: auto;
  max-width: 590px;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.52;
  color: rgba(245,241,232,0.96);
}

.scene01-body + .scene01-body {
  margin-top: 22px;
}




/* =========================
   CENAS 02–11 — PANORÂMICA + ZOOM + FADE + STAGGER
   O BLOCO 01 NÃO É ALTERADO POR ESTAS REGRAS.
========================= */

.depth-scene-standard {
  --standard-scene-opacity: 0;
  --standard-image-scale: 1;

  /*
    A própria cena fica em Z=0.
    O "zoom" visual é feito pela fotografia e por cada
    pedaço de texto separadamente.
  */
}

.depth-scene-standard .standard-panorama {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 76vh;
  z-index: 1;
  overflow: hidden;

  opacity: var(--standard-scene-opacity);

  transform:
    translateY(-50%)
    scale(var(--standard-image-scale));

  transform-origin: center center;
  will-change: transform, opacity;
}

.depth-scene-standard .standard-panorama img,
.depth-scene-standard .standard-panorama video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;

  object-fit: cover;
  object-position: center center;

  filter: none;
}

.depth-scene-standard .standard-panorama video {
  background: #04090f;
}

.depth-scene-standard .standard-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Texto à esquerda: escurece mais o lado esquerdo */
.depth-scene-standard .standard-shade-left {
  background:
    linear-gradient(
      90deg,
      rgba(6,16,26,0.76) 0%,
      rgba(6,16,26,0.52) 22%,
      rgba(6,16,26,0.18) 48%,
      rgba(6,16,26,0.03) 72%,
      rgba(6,16,26,0.01) 100%
    );
}

/* Texto à direita: escurece mais o lado direito */
.depth-scene-standard .standard-shade-right {
  background:
    linear-gradient(
      90deg,
      rgba(6,16,26,0.01) 0%,
      rgba(6,16,26,0.03) 28%,
      rgba(6,16,26,0.18) 52%,
      rgba(6,16,26,0.52) 78%,
      rgba(6,16,26,0.76) 100%
    );
}

.depth-scene-standard .standard-copy {
  position: absolute;
  top: 50%;
  z-index: 5;

  width: min(55vw, 780px);
  padding: 0;

  transform: translateY(-50%);
}

.depth-scene-standard .standard-copy-left {
  left: clamp(54px, 7vw, 132px);
  right: auto;
  text-align: left;
}

.depth-scene-standard .standard-copy-right {
  right: clamp(54px, 7vw, 132px);
  left: auto;
  text-align: right;
}

/*
  Cada filho direto do bloco de texto recebe sua própria
  animação via variáveis escritas pelo JS.
*/
.depth-scene-standard .standard-copy > * {
  opacity: var(--item-opacity, 0);

  transform:
    translate3d(
      var(--item-x, 0px),
      var(--item-y, 0px),
      0
    )
    scale(var(--item-scale, 0.82));

  transform-origin: center center;

  filter: blur(var(--item-blur, 7px));

  will-change:
    transform,
    opacity,
    filter;

  text-shadow:
    0 2px 16px rgba(0,0,0,0.42);
}

/* Mantém o alinhamento visual da régua conforme o lado */
.depth-scene-standard .standard-copy-right .depth-rule {
  margin-left: auto;
}

.depth-scene-standard .standard-copy-left .depth-rule {
  margin-right: auto;
}




/* =========================
   SISTEMA GENÉRICO DE MÍDIA
   IMAGEM / VÍDEO / SEQUÊNCIA PNG
   Pode ser usado em qualquer cena padrão (02–11).
========================= */

.standard-media {
  position: relative;
}

/* Imagem e frame atual de sequência */
.standard-media > img,
.standard-media > .sequence-frame,
.standard-media > video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;

  object-fit: cover;
  object-position: center center;

  filter: none;
}

/* Vídeos nunca exibem controles na composição */
.standard-media > video {
  background: #04090f;
}

/* Sequência PNG: somente o frame atual fica visível. */
.standard-media.scroll-frame-sequence > .sequence-frame {
  position: absolute;
  inset: 0;
}

/* O primeiro frame precisa ocupar o container mesmo antes do JS atualizar. */
.standard-media.scroll-frame-sequence {
  background: #04090f;
}


/* =========================
   MOBILE — CENAS 02–11
========================= */

@media (max-width: 1050px) {

  .depth-scene-standard {
    display: block;
    min-height: 100vh;
  }

  .depth-scene-standard .standard-panorama {
    position: relative;
    top: auto;
    height: 52vh;
    margin-top: 78px;

    opacity: 1 !important;
    transform: none !important;
  }

  .depth-scene-standard .standard-copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;

    width: auto;
    max-width: 720px;

    margin: 34px auto 72px;
    padding: 0 42px;

    transform: none !important;
    text-align: left;
  }

  .depth-scene-standard .standard-copy > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .depth-scene-standard .standard-copy-right .depth-rule,
  .depth-scene-standard .standard-copy-left .depth-rule {
    margin-left: 0;
    margin-right: auto;
  }
}


/* CHAPTERS — more centered horizontally */

.depth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(34px, 4vw, 66px);
  align-items: center;
}

.depth-copy {
  position: relative;
  z-index: 5;
  width: min(100%, 560px);
  transform: translateZ(110px);
}

.depth-copy-left {
  grid-column: 1;
  justify-self: end;
  padding-right: clamp(6px, 1.6vw, 28px);
}

.depth-copy-right {
  grid-column: 2;
  justify-self: start;
  padding-left: clamp(6px, 1.6vw, 28px);
}

.depth-number {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(56px, 4.7vw, 82px);
  font-weight: 400;
  line-height: 1;

  background: linear-gradient(
    180deg,
    #d8bb72 0%,
    #b28a48 54%,
    #755026 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.depth-era {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.15em;
  color: var(--rr-gold-light);
}

.depth-copy h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(34px, 2.7vw, 49px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--rr-beige);
}

.depth-copy p:not(.depth-number):not(.depth-era):not(.depth-closing) {
  margin: 0;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.56;
  color: rgba(245,241,232,0.88);
}

.depth-copy p + p {
  margin-top: 22px !important;
}

.depth-closing {
  margin-top: 34px !important;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.45;
  color: var(--rr-gold-light);
}


/* Moldura de galeria para fotos e vídeos */
.depth-frame {
  padding: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(198,166,107,0.26),
      rgba(154,122,71,0.08)
    );

  border: 1px solid rgba(198,166,107,0.26);

  box-shadow:
    0 28px 75px rgba(0,0,0,0.48),
    0 0 0 1px rgba(245,241,232,0.025),
    0 0 46px rgba(198,166,107,0.05);

  border-radius: 2px;
}

.depth-frame img,
.depth-frame video {
  background: #050a10;
}


/* OBJECTS */

.depth-object {
  --object-rotate-y: 0deg;
  --object-rotate-x: 0deg;
  --object-shift-x: 0px;
  --object-z: 45px;
  --object-scale: 1;

  position: relative;
  z-index: 4;
  width: min(100%, 500px);
  justify-self: center;

  transform-style: preserve-3d;
  backface-visibility: hidden;

  transform:
    translate3d(var(--object-shift-x), 0, var(--object-z))
    rotateY(var(--object-rotate-y))
    rotateX(var(--object-rotate-x))
    scale(var(--object-scale));

  transform-origin: center center;
  will-change: transform;
}

.depth-object-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  padding-right: clamp(6px, 1.6vw, 28px);
  --object-z: 45px;
  --object-turn: 1;
}

.depth-object-right {
  grid-column: 2;
  justify-self: start;
  padding-left: clamp(6px, 1.6vw, 28px);
  --object-z: 45px;
  --object-turn: -1;
}

.depth-object-gavel {
  width: min(100%, 560px);
}

.depth-object img,
.depth-object video {
  display: block;
  max-width: 100%;
  max-height: 66vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;

  filter:
    drop-shadow(0 30px 50px rgba(0,0,0,0.36))
    drop-shadow(0 0 22px rgba(198,166,107,0.05));
}

/* Painel-piloto do capítulo 06 */
.depth-object-featured {
  width: min(100%, 700px);
}

.depth-object-featured img,
.depth-object-featured video {
  width: 100%;
  max-height: 70vh;
  border-radius: 3px;
  box-shadow:
    0 34px 70px rgba(0,0,0,0.34),
    0 0 0 1px rgba(198,166,107,0.12);
}

/* Quando substituirmos uma foto por vídeo, ele herda o mesmo comportamento 3D */
.depth-object video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.depth-object::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36vw;
  height: 54vh;
  transform: translate(-50%, -50%) translateZ(-80px);

  background:
    radial-gradient(
      ellipse at center,
      rgba(198,166,107,0.10) 0%,
      rgba(245,241,232,0.045) 30%,
      transparent 72%
    );

  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

/* END */

.journey-end {
  position: relative;
  overflow: hidden;
  background: #06101A;
}

.journey-end::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(
      circle at center,
      rgba(6, 16, 26, 0) 30%,
      rgba(6, 16, 26, 0.12) 46%,
      rgba(6, 16, 26, 0.42) 64%,
      rgba(2, 7, 13, 0.82) 82%,
      rgba(0, 2, 6, 0.96) 100%
    );
}

.journey-end-stage {
  position: sticky;
  top: 0;
  height: 90vh;
  overflow: hidden;

  display: grid;
  place-items: center;

  background-color: #07111c;
  background-image: url("../img/trajetoria-final.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.journey-end-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(7,17,28,0.08) 0%,
      rgba(7,17,28,0.30) 58%,
      rgba(7,17,28,0.62) 100%
    );
}

.journey-end-inner {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 0 24px;
  text-align: center;
}

.journey-end-kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--rr-gold);
}

.journey-end h2 {
  margin-top: 20px;
  font-family: var(--font-title);
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: #F5F1E8;
}

.journey-end-gavel {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.journey-end-gavel img {
  position: absolute;
  left: 50%;
  top: calc(50% - 275px);

  width: clamp(150px, 13vw, 250px);
  height: auto;

  transform: translate(-50%, -50%);

  transform-origin: center center;
  will-change: transform;
  user-select: none;
}

/* TABLET / MOBILE */

@media (max-width: 1050px) {

  .gallery-left-wall,
  .gallery-right-wall,
  .gallery-ceiling,
  .gallery-floor,
  .gallery-horizon {
    display: none;
  }

  .gallery-world {
    position: fixed;
    inset: 0;
  }

  .gallery-bg {
    inset: 0;
    transform: none !important;
  }

  .depth-journey {
    height: auto;
  }

  .depth-stage {
    position: relative;
    top: auto;
    height: auto;
    perspective: none;
    overflow: visible;
  }

  .depth-floor,
  .depth-vignette {
    display: none;
  }

  .depth-scene {
    position: relative;
    inset: auto;
    min-height: 100vh;

    opacity: 1 !important;
    filter: none !important;
    transform: none !important;

    border-bottom: 1px solid rgba(198,166,107,0.10);
  }

  .depth-scene-inner {
    min-height: 100vh;
    padding: 90px 42px;
  }

  .depth-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .depth-copy-left,
  .depth-copy-right {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    padding: 0;
  }

  .depth-object-left,
  .depth-object-right {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    padding: 0;
  }

  .depth-copy,
  .depth-object {
    max-width: 700px;
    transform: none;
  }

  .depth-object-featured {
    width: min(100%, 700px);
  }

  .depth-scene-01 {
    display: block;
    min-height: 100vh;
  }

  .scene01-panorama {
    position: relative;
    top: auto;
    height: 52vh;
    margin-top: 78px;
    transform: none !important;
  }

  .scene01-copy {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    max-width: 720px;
    margin: 34px auto 72px;
    padding: 0 42px;
    transform: none;
    text-align: left;
  }

  .scene01-copy .scene01-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .scene01-copy .depth-rule {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .depth-scene-inner {
    padding: 76px 20px;
  }

  .depth-center h1 {
    font-size: 58px;
  }

  .depth-subtitle br {
    display: none;
  }

  .depth-copy h2 {
    font-size: 34px;
  }

  .depth-copy p:not(.depth-number):not(.depth-era):not(.depth-closing) {
    font-size: 19px;
  }

  .depth-number {
    font-size: 54px;
  }
}


@media (max-width: 760px) {
  .journey-end {
    height: 118vh;
  }

  .journey-end-gavel img {
    width: min(78vw, 520px);
  }

  .journey-end-kicker {
    font-size: 18px;
  }

  .journey-end h2 {
    font-size: 42px;
  }
}

@media (max-height: 940px) {
  .trajetoria-page .site-footer {
    margin-top: 0;
  }
}

/* =========================================================
   MOBILE PASS V1 — TRAJETÓRIA
   Apenas composição mobile; o comportamento desktop/scroll permanece.
========================================================= */

@media (max-width: 760px) {
  .trajetoria-page {
    overflow-x: hidden;
  }

  .site-header {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .main-nav {
    top: 56px;
    width: min(286px, calc(100vw - 24px));
    max-height: calc(100svh - 84px);
    overflow-y: auto;
  }

  .depth-scene-inner {
    min-height: 100svh;
    padding: 82px 20px 64px;
  }

  .depth-center h1 {
    font-size: clamp(46px, 14vw, 62px);
    line-height: 0.98;
  }

  .depth-kicker {
    font-size: 15px;
  }

  .depth-subtitle {
    font-size: 13px;
  }

  .scene01-panorama,
  .depth-scene-standard .standard-panorama {
    height: 44svh;
    min-height: 300px;
    margin-top: 74px;
  }

  .scene01-copy,
  .depth-scene-standard .standard-copy {
    margin: 30px auto 62px;
    padding: 0 20px;
  }

  .scene01-copy h2,
  .depth-copy h2 {
    font-size: clamp(31px, 8vw, 36px);
  }

  .scene01-copy .depth-era,
  .depth-era {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .scene01-body,
  .depth-copy p:not(.depth-number):not(.depth-era):not(.depth-closing) {
    font-size: 19px;
    line-height: 1.52;
  }

  .depth-number,
  .scene01-copy .depth-number {
    font-size: 52px;
  }

  .journey-end-kicker {
    font-size: 16px;
  }

  .journey-end h2 {
    font-size: clamp(36px, 10vw, 44px);
  }
}
