/* KERVO / índice orbital — direção aprovada 01 */
.is-console-open {
  --orbit-gold: #d7a15e;
  --orbit-gold-hi: #ffd08b;
  --orbit-ivory: #fff9ef;
  --orbit-muted: #a99d8f;
  --orbit-line: rgba(221, 172, 107, .28);
}

html:has(body.is-console-open),
body.is-console-open {
  overflow: clip;
}

.is-console-open .spatial-console {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
}

.is-console-open .console-frame {
  overflow: clip;
  border-color: rgba(221, 172, 107, .26);
  background:
    radial-gradient(ellipse at 50% 49%, rgba(159, 98, 35, .13), transparent 35%),
    linear-gradient(180deg, rgba(6, 6, 5, .97), rgba(2, 2, 2, .995));
  box-shadow: inset 0 0 0 1px rgba(255, 241, 218, .025), 0 40px 120px rgba(0, 0, 0, .72);
}

.is-console-open .console-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -41% 11% auto;
  height: 61%;
  border: 1px solid rgba(209, 151, 82, .17);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(181, 115, 45, .035);
  pointer-events: none;
}

.is-console-open .console-frame::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 10% -45%;
  height: 66%;
  border: 1px solid rgba(209, 151, 82, .15);
  border-radius: 50%;
  pointer-events: none;
}

.index-header {
  height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(224, 191, 145, .15);
  background: rgba(3, 3, 3, .72);
}

.index-header .console-id span::before,
.index-header .console-id span::after {
  display: none;
}

.index-header .console-id small {
  color: #d2a36c;
  font: 500 12px/1 DM Mono, monospace;
  letter-spacing: .16em;
}

.index-header h2 {
  color: var(--orbit-ivory);
  font: 500 36px/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .12em;
  text-shadow: 0 0 24px rgba(255, 239, 213, .12);
}

.index-actions [data-console-close] {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #e8dfd3;
  font-size: 20px;
}

.index-actions [data-console-close]:hover,
.index-actions [data-console-close]:focus-visible {
  color: #fff;
}

.index-gallery {
  inset: 68px 0 40px;
  padding: 0;
  overflow: clip;
  background:
    radial-gradient(circle at 50% 45%, rgba(190, 123, 54, .07), transparent 23%),
    linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 22% 78%, rgba(0, 0, 0, .3));
}

.index-gallery::before,
.index-gallery::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 8%;
  width: 84%;
  height: 29%;
  border: 1px solid rgba(214, 155, 84, .18);
  border-radius: 50%;
  pointer-events: none;
}

.index-gallery::before { top: -22%; }
.index-gallery::after { bottom: -20%; }

.index-portal-intro {
  position: absolute;
  z-index: 30;
  top: 4.2%;
  left: 50%;
  width: min(92vw, 700px);
  transform: translateX(-50%);
  color: var(--orbit-ivory);
  text-align: center;
  pointer-events: none;
}

.index-portal-intro small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--orbit-gold-hi);
  font: 500 12px/1 DM Mono, monospace;
  letter-spacing: .2em;
}

.index-portal-intro small::before,
.index-portal-intro small::after {
  content: "";
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 171, 103, .75));
}

.index-portal-intro small::after { transform: scaleX(-1); }

.index-portal-intro h3 {
  margin: 10px 0 0;
  color: var(--orbit-ivory);
  font: 500 clamp(34px, 3vw, 50px)/.95 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.025em;
}

.index-editorial-window {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  width: min(86vw, 1180px);
  height: min(62vh, 580px);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 76px 90px -78px rgba(221, 151, 70, .46);
  pointer-events: none;
}

.index-editorial-window::before {
  content: "";
  position: absolute;
  inset: auto 0 1%;
  height: 42%;
  border-bottom: 1px solid rgba(220, 165, 96, .21);
  border-radius: 50%;
}

.index-editorial-window::after { display: none; }

.index-gallery .niche-orbit {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: auto;
  height: auto;
  display: block;
  transform: none;
  perspective: 1450px;
  perspective-origin: 50% 44%;
  pointer-events: none;
}

.index-gallery .niche-orbit button,
.index-gallery .niche-orbit button:nth-child(n) {
  --orbit-x: 0px;
  --orbit-y: 0px;
  --orbit-z: 0px;
  --orbit-scale: 1;
  --orbit-yaw: 0deg;
  --orbit-opacity: 1;
  position: absolute;
  inset: auto;
  left: 50%;
  top: 47%;
  width: clamp(230px, 21.5vw, 348px);
  height: clamp(390px, 57vh, 560px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 162, 98, .3);
  border-radius: 18px;
  background-color: #0a0806;
  background-image:
    linear-gradient(180deg, rgba(3, 3, 3, .05), rgba(4, 3, 2, .22) 48%, rgba(2, 2, 2, .96)),
    url("assets/posters/archive-final.webp?v=20260804-0350");
  background-repeat: no-repeat;
  background-size: auto, cover;
  color: #cfc4b6;
  opacity: var(--orbit-opacity);
  box-shadow: 0 25px 55px rgba(0, 0, 0, .56), inset 0 0 45px rgba(0, 0, 0, .28);
  transform:
    translate(-50%, -50%)
    translate3d(var(--orbit-x), var(--orbit-y), var(--orbit-z))
    rotateY(var(--orbit-yaw))
    scale(var(--orbit-scale));
  transform-origin: 50% 88%;
  transition: transform .76s cubic-bezier(.2, .78, .18, 1), opacity .54s ease, border-color .42s ease, box-shadow .42s ease, filter .42s ease;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
}

.index-gallery .niche-orbit button:nth-child(1) { background-position: center, 8% center; }
.index-gallery .niche-orbit button:nth-child(2) { background-position: center, 27% center; }
.index-gallery .niche-orbit button:nth-child(3) { background-position: center, 43% center; }
.index-gallery .niche-orbit button:nth-child(4) { background-position: center, 59% center; }
.index-gallery .niche-orbit button:nth-child(5) { background-position: center, 75% center; }
.index-gallery .niche-orbit button:nth-child(6) { background-position: center, 92% center; }

.index-gallery .niche-orbit button::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--category-accent) 24%, transparent), transparent 29%),
    linear-gradient(180deg, transparent 47%, rgba(0, 0, 0, .9) 89%);
  pointer-events: none;
}

.index-gallery .niche-orbit button::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 10px;
  width: auto;
  height: auto;
  display: block;
  border: 1px solid rgba(240, 192, 130, .12);
  border-radius: 12px;
  background: none;
  pointer-events: none;
}

.index-gallery .niche-orbit button > .orbit-card-label,
.index-gallery .niche-orbit button.active > .orbit-card-label {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  min-height: 136px;
  padding: 42px 20px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: end;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(2, 2, 2, .96) 44%);
  transition: opacity .24s ease, transform .42s ease;
}

.index-gallery .niche-orbit button > .orbit-card-label > b {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 5px;
  color: var(--orbit-gold-hi);
  font: 500 13px/1 DM Mono, monospace;
  letter-spacing: .1em;
}

.index-gallery .niche-orbit button > .orbit-card-label > strong {
  color: #f5eee4;
  font: 500 clamp(21px, 1.7vw, 29px)/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.01em;
}

.index-gallery .niche-orbit button > .orbit-card-label > small {
  margin-top: 8px;
  color: #b2a698;
  font: 500 11px/1.25 DM Mono, monospace;
  letter-spacing: .08em;
}

.index-gallery .niche-orbit button:hover,
.index-gallery .niche-orbit button:focus-visible {
  border-color: rgba(244, 190, 119, .74);
  box-shadow: 0 28px 68px rgba(0, 0, 0, .68), 0 0 34px color-mix(in srgb, var(--category-accent) 15%, transparent);
  color: inherit;
  outline: none;
}

.index-gallery .niche-orbit button.active {
  border-color: var(--orbit-gold-hi);
  color: #fff;
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .72), 0 0 32px rgba(219, 153, 76, .19), inset 0 0 0 1px rgba(255, 216, 161, .16);
}

.index-gallery .niche-orbit button.active > .orbit-card-label {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.index-gallery .niche-orbit button > .orbit-card-content {
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  color: var(--orbit-ivory);
  text-align: left;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .24s ease, transform .48s cubic-bezier(.2, .78, .18, 1);
  pointer-events: none;
}

.index-gallery .niche-orbit button.active > .orbit-card-content {
  inset: auto 0 0;
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  text-align: left;
  opacity: 1;
  transform: translateY(0);
  transition-delay: .16s;
}

.index-gallery .niche-orbit button > .orbit-card-content > small {
  display: block;
  color: var(--orbit-gold-hi);
  font: 500 12px/1.35 DM Mono, monospace;
  letter-spacing: .13em;
  text-shadow: 0 2px 10px #000;
}

.index-gallery .niche-orbit button > .orbit-card-content > strong {
  display: block;
  max-width: 100%;
  margin: 10px 0 7px;
  color: #fffaf2;
  font: 500 clamp(35px, 3.3vw, 51px)/.88 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
  text-shadow: 0 3px 18px #000;
}

.index-gallery .niche-orbit button.active > .orbit-card-content > strong {
  margin: 10px 0 7px;
  color: #fffaf2;
  font: 500 clamp(35px, 3.3vw, 51px)/.88 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
}

.index-gallery .niche-orbit button > .orbit-card-content > span {
  display: block;
  width: 100%;
  margin: 0;
  color: #d5cabd;
  font: 400 16px/1.4 Manrope, sans-serif;
  letter-spacing: 0;
  text-shadow: 0 2px 9px #000;
}

.index-gallery .niche-orbit button > .orbit-card-content > em {
  width: 100%;
  min-height: 46px;
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--orbit-gold);
  color: var(--orbit-gold-hi);
  font: 600 15px/1 Manrope, sans-serif;
  font-style: normal;
  letter-spacing: .04em;
}

.index-gallery .niche-orbit button > .orbit-card-content > em i {
  font-size: 21px;
  font-style: normal;
}

.index-editorial-feature {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 47%;
  width: clamp(230px, 21.5vw, 348px);
  height: clamp(390px, 57vh, 560px);
  padding: 0 24px 26px;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  transform: translate(-50%, -50%);
  color: var(--orbit-ivory);
  text-align: left;
  pointer-events: none;
}

.index-editorial-feature > small {
  display: block;
  color: var(--orbit-gold-hi);
  font: 500 12px/1.35 DM Mono, monospace;
  letter-spacing: .13em;
  text-shadow: 0 2px 10px #000;
}

.index-editorial-feature h3 {
  max-width: 100%;
  margin: 10px 0 7px;
  color: #fffaf2;
  font: 500 clamp(35px, 3.3vw, 51px)/.88 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
  text-shadow: 0 3px 18px #000;
}

.index-editorial-feature p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #d5cabd;
  font: 400 16px/1.4 Manrope, sans-serif;
  text-shadow: 0 2px 9px #000;
}

.index-editorial-feature button {
  width: 100%;
  min-height: 46px;
  margin: 17px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--orbit-gold);
  background: transparent;
  color: var(--orbit-gold-hi);
  font: 600 15px/1 Manrope, sans-serif;
  letter-spacing: .04em;
  text-align: left;
  pointer-events: auto;
}

.index-editorial-feature button span {
  font-size: 21px;
  transition: transform .25s ease;
}

.index-editorial-feature button:hover span,
.index-editorial-feature button:focus-visible span { transform: translateX(6px); }

.index-gallery .gallery-arrow {
  position: absolute;
  z-index: 40;
  top: 49%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 163, 91, .7);
  border-radius: 50%;
  background: rgba(6, 5, 4, .76);
  color: var(--orbit-gold-hi);
  font-size: 29px;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.index-gallery .gallery-arrow--prev { left: 3.3%; }
.index-gallery .gallery-arrow--next { right: 3.3%; }

.index-gallery .gallery-arrow:hover,
.index-gallery .gallery-arrow:focus-visible {
  border-color: var(--orbit-gold-hi);
  background: rgba(25, 18, 10, .92);
  color: #fff;
  outline: none;
  box-shadow: 0 0 24px rgba(218, 154, 78, .14);
}

.index-pagination {
  position: absolute;
  z-index: 42;
  left: 50%;
  bottom: 3.8%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.index-pagination button {
  position: relative;
  width: 48px;
  height: 54px;
  display: grid;
  place-items: end center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a8b7a;
  font: 500 16px/1 DM Mono, monospace;
  transition: width .35s ease, height .35s ease, color .3s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.index-pagination button::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(218, 164, 97, .78);
  border-radius: 50%;
  transform: translateX(-50%);
}

.index-pagination button:hover,
.index-pagination button:focus-visible {
  color: #fff;
  outline: none;
}

.index-pagination button.active {
  width: 60px;
  height: 60px;
  padding-bottom: 17px;
  border: 1px solid var(--orbit-gold-hi);
  background: radial-gradient(circle, rgba(198, 128, 49, .2), rgba(11, 8, 5, .8));
  color: var(--orbit-ivory);
  box-shadow: 0 0 26px rgba(218, 151, 73, .2);
}

.index-pagination button.active::before {
  top: -5px;
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--orbit-gold-hi);
  box-shadow: 0 0 12px var(--orbit-gold);
}

.index-editorial-instruction {
  position: absolute;
  z-index: 8;
  right: 2.6%;
  bottom: 2.5%;
  margin: 0;
  color: #817466;
  font: 500 10px/1 DM Mono, monospace;
  letter-spacing: .12em;
}

.index-footer {
  height: 40px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(224, 191, 145, .14);
  background: #040403;
  color: #a98a65;
}

.index-footer span,
.index-footer small {
  font: 500 11px/1 DM Mono, monospace;
  letter-spacing: .13em;
}

.index-footer small b { color: var(--orbit-gold-hi); }

@media (max-width: 1100px) and (min-width: 761px) {
  .index-gallery .niche-orbit button,
  .index-editorial-feature {
    width: clamp(224px, 29vw, 310px);
    height: min(55vh, 500px);
  }

  .index-editorial-feature { padding: 0 21px 22px; }
  .index-editorial-feature h3 { font-size: clamp(32px, 4vw, 45px); }
  .index-editorial-instruction { display: none; }
}

@media (max-width: 760px) {
  .is-console-open .spatial-console {
    width: 100vw;
    height: 100dvh;
  }

  .is-console-open .console-frame {
    border: 0;
    background:
      radial-gradient(circle at 50% 42%, rgba(159, 98, 35, .14), transparent 34%),
      #040403;
  }

  .index-header {
    height: 58px;
    padding: 0 16px;
    grid-template-columns: 1fr auto 1fr;
  }

  .index-header .console-id small {
    font-size: 10px;
    letter-spacing: .11em;
  }

  .index-header h2 {
    display: block;
    justify-self: center;
    font-size: 27px;
    letter-spacing: .08em;
  }

  .index-header .index-actions { justify-self: end; }

  .index-actions [data-console-close] {
    width: 42px;
    height: 42px;
  }

  .index-gallery { inset: 58px 0 38px; }

  .index-gallery::before,
  .index-gallery::after {
    left: -26%;
    width: 152%;
  }

  .index-portal-intro {
    top: 3.2%;
    width: 92vw;
  }

  .index-portal-intro small {
    gap: 10px;
    font-size: 10px;
  }

  .index-portal-intro small::before,
  .index-portal-intro small::after { width: 28px; }

  .index-portal-intro h3 {
    margin-top: 8px;
    font-size: 30px;
  }

  .index-editorial-window {
    top: 43%;
    width: 128vw;
    height: 58vh;
  }

  .index-gallery .niche-orbit { perspective-origin: 50% 41%; }

  .index-gallery .niche-orbit button,
  .index-gallery .niche-orbit button:nth-child(n) {
    top: 43%;
    width: min(68vw, 286px);
    height: min(54vh, 468px);
    border-radius: 16px;
  }

  .index-gallery .niche-orbit button::after {
    inset: 8px;
    border-radius: 10px;
  }

  .index-gallery .niche-orbit button > .orbit-card-label,
  .index-gallery .niche-orbit button.active > .orbit-card-label {
    min-height: 126px;
    padding: 38px 15px 17px;
  }

  .index-gallery .niche-orbit button > .orbit-card-label > strong { font-size: 22px; }

  .index-gallery .niche-orbit button > .orbit-card-content {
    padding: 0 20px 20px;
  }

  .index-gallery .niche-orbit button.active > .orbit-card-content {
    inset: auto 0 0;
    padding: 0 20px 20px;
    align-items: stretch;
    justify-content: flex-end;
    text-align: left;
  }

  .index-gallery .niche-orbit button > .orbit-card-content > small { font-size: 10px; }

  .index-gallery .niche-orbit button > .orbit-card-content > strong {
    margin: 9px 0 6px;
    font-size: clamp(33px, 10.5vw, 42px);
  }

  .index-gallery .niche-orbit button.active > .orbit-card-content > strong {
    margin: 9px 0 6px;
    font-size: clamp(33px, 10.5vw, 42px);
  }

  .index-gallery .niche-orbit button > .orbit-card-content > span {
    font-size: 16px;
    line-height: 1.35;
  }

  .index-gallery .niche-orbit button > .orbit-card-content > em {
    min-height: 44px;
    margin-top: 12px;
    font-size: 16px;
  }

  .index-editorial-feature {
    top: 43%;
    width: min(68vw, 286px);
    height: min(54vh, 468px);
    padding: 0 20px 20px;
  }

  .index-editorial-feature > small { font-size: 10px; }

  .index-editorial-feature h3 {
    margin: 9px 0 6px;
    font-size: clamp(33px, 10.5vw, 42px);
  }

  .index-editorial-feature p {
    font-size: 16px;
    line-height: 1.35;
  }

  .index-editorial-feature button {
    min-height: 44px;
    margin-top: 12px;
    font-size: 16px;
  }

  .index-gallery .gallery-arrow {
    top: auto;
    bottom: 4.7%;
    width: 46px;
    height: 46px;
    font-size: 24px;
    transform: none;
  }

  .index-gallery .gallery-arrow--prev { left: 12px; }
  .index-gallery .gallery-arrow--next { right: 12px; }

  .index-pagination {
    bottom: 4.1%;
    gap: 1px;
  }

  .index-pagination button {
    width: 40px;
    height: 48px;
    font-size: 16px;
  }

  .index-pagination button.active {
    width: 52px;
    height: 52px;
    padding-bottom: 14px;
  }

  .index-editorial-instruction { display: none; }

  .index-footer {
    height: 38px;
    padding: 0 16px;
  }

  .index-footer span,
  .index-footer small { font-size: 9px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .index-portal-intro h3 { display: none; }

  .index-gallery .niche-orbit button,
  .index-gallery .niche-orbit button:nth-child(n),
  .index-editorial-feature {
    top: 40%;
    height: min(51vh, 360px);
  }

  .index-editorial-feature h3 { font-size: 32px; }
  .index-editorial-feature p { line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .index-gallery .niche-orbit button,
  .index-pagination button,
  .index-editorial-feature button span {
    transition-duration: .01ms !important;
  }
}
