/* =========================================================
   viagem.css · só a página projeto-viagem.html
   Carrega depois de style.css (repõe só o que difere do site)
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --or: #ff5f1a;
  --or-rgb: 255, 95, 26;
  --mute: rgba(244, 237, 228, .62);
  --line: rgba(244, 237, 228, .16);
  --bs-primary: var(--or);
  --bs-primary-rgb: var(--or-rgb);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--fg);
  --bs-body-font-family: "DM Sans", system-ui, sans-serif;
  --bs-link-color-rgb: var(--or-rgb);
  --bs-link-hover-color-rgb: 255, 122, 61;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
}

::selection {
  background: var(--or);
  color: #000;
}

:focus-visible {
  outline: 3px solid var(--or);
}

.hand {
  line-height: 1.05;
}

.text-primary {
  color: var(--or) !important;
}

.btn-primary {
  --bs-btn-bg: var(--or);
  --bs-btn-border-color: var(--or);
  --bs-btn-color: #0a0a0a;
  --bs-btn-hover-bg: #ff7a3d;
  --bs-btn-hover-border-color: #ff7a3d;
  --bs-btn-hover-color: #0a0a0a;
  --bs-btn-active-bg: #e0500f;
  --bs-btn-active-color: #0a0a0a;
  --bs-btn-active-border-color: #e0500f;
}

/* ---------- Tipografia ---------- */
.mega,
.mega-sm {
  font-family: "Barlow Condensed", "DM Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: .86;
  margin: 0;
}

.mega {
  font-size: clamp(4.5rem, 19vw, 19rem);
  letter-spacing: -.01em;
}

.mega-sm {
  font-size: clamp(3rem, 9vw, 8rem);
}

.lead-sm {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--mute);
  max-width: 46ch;
}

.topnote {
  color: var(--or);
  font: 500 .8rem "JetBrains Mono", monospace;
  letter-spacing: .14em;
}

.chap-label {
  display: flex;
  align-items: center;
  gap: .9rem;
  font: 500 .8rem "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.4rem;
}

.chap-label span {
  color: #0a0a0a;
  background: var(--or);
  padding: .15rem .55rem;
  border-radius: 2rem;
  font-weight: 700;
}

.mask {
  padding-top: 0;
  margin-top: 0;
}

.scene {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.grain {
  opacity: .07;
  mix-blend-mode: normal;
}

.progress-top {
  background: var(--or);
}

.cursor span {
  background: #fff;
}

.cursor.is-link span {
  transform: scale(3.4);
  background: #fff;
}

.has-cursor input {
  cursor: none;
}

.loader {
  background: var(--or);
  color: #0a0a0a;
}

.loader-line i {
  background: #0a0a0a;
}

.loader-title {
  font: 700 1.6rem "Barlow Condensed", sans-serif;
  letter-spacing: .06em;
}

/* Header + HUD */
.vnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  mix-blend-mode: difference;
  color: #fff;
}

.vlogo {
  width: 150px;
}

.vlogo img {
  opacity: .6;
}

.vmenu {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 2rem;
  padding: .45rem 1rem;
  font: 500 .75rem "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vmenu i {
  margin-left: .4rem;
}

.hud {
  position: fixed;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: 1.2rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}

.hud-bar {
  width: 70px;
  height: 2px;
  background: rgba(255, 255, 255, .3);
  display: block;
}

.hud-bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 575.98px) {
  .hud-bar {
    width: 36px;
  }
}

.vcanvas {
  background: var(--bg-2);
  color: var(--fg);
  z-index: 2010;
}

.vmap li a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font: 700 2.4rem "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s, padding .25s;
}

.vmap li a span {
  font: 500 .75rem "JetBrains Mono", monospace;
  color: var(--or);
}

.vmap li a:hover {
  color: var(--or);
  padding-left: .6rem;
}

.link-back {
  color: var(--mute);
  text-decoration: none;
  font: .8rem "JetBrains Mono", monospace;
  display: inline-block;
  margin-top: 2rem;
}

.link-back:hover {
  color: var(--or);
}

/* ---------- 00 Partida ---------- */
.hero {
  min-height: 100vh;
  padding: 7rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  perspective: 1400px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sun {
  position: absolute;
  right: 8%;
  top: 8%;
  width: min(52vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a3d, var(--or) 55%, #c43f08);
  box-shadow: 0 0 140px rgba(var(--or-rgb), .45);
}

.floor {
  position: absolute;
  left: -50%;
  bottom: -8%;
  width: 200%;
  height: 60%;
  background: linear-gradient(rgba(var(--or-rgb), .5) 1px, transparent 1px) 0 0 / 100% 70px,
    linear-gradient(90deg, rgba(var(--or-rgb), .5) 1px, transparent 1px) 0 0 / 70px 100%;
  transform: perspective(520px) rotateX(68deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
  mask-image: linear-gradient(transparent, #000 70%);
  animation: floor 2.4s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-top {
  margin-bottom: 1rem;
}

.hero-title {
  white-space: nowrap;
  margin-bottom: 2rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-top: .22em;
  margin-top: -.22em;
}

.hero-title .ch {
  display: inline-block;
  will-change: transform;
}

.hero-meta .btn {
  font-size: .9rem;
}

.chip {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: .55rem 1rem;
  border-radius: 2rem;
  font-size: .8rem;
}

.chip--or {
  border-color: var(--or);
  color: var(--or);
}

.facts dt {
  font: 500 .68rem "JetBrains Mono", monospace;
  color: var(--or);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.facts dd {
  margin: .2rem 0 0;
  font-size: .9rem;
  font-weight: 500;
}

.hero-frame {
  position: absolute;
  z-index: 3;
  right: 4%;
  top: 17%;
  width: min(44vw, 640px);
  transform-style: preserve-3d;
  will-change: transform;
}

@media (max-width: 991.98px) {
  .hero {
    justify-content: flex-start;
  }

  .hero-frame {
    position: relative;
    right: auto;
    top: auto;
    width: 88%;
    margin: 3rem auto 0;
    z-index: 3;
  }

  .sun {
    right: -20%;
    top: 6%;
    width: 80vw;
  }
}

.hero-cue {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-cue i {
  animation: bob 1.4s ease-in-out infinite;
  color: var(--or);
}

@media (max-width: 767.98px) {
  .hero-cue {
    display: none;
  }
}

/* Janela de browser */
.browser {
  background: #fff;
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem .9rem;
  background: #1a1a1a;
}

.dots {
  margin-bottom: 0;
}

.browser-url {
  font-size: .7rem;
  color: #bbb;
  background: #2b2b2b;
  border-radius: 2rem;
  padding: .25rem .9rem;
  flex: 0 1 320px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Placeholders */
.ph {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
}

.ph>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#ecras .ph>img {
    object-fit: fill;
}

.ph.is-empty {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 10px, transparent 10px 20px), linear-gradient(135deg, #2b2623, #1a1816);
}

.ph.is-empty::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 86%;
  font: 500 .7rem "JetBrains Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--or);
  padding: .4rem .8rem;
  border: 1px dashed rgba(var(--or-rgb), .6);
  border-radius: 2rem;
  background: rgba(0, 0, 0, .4);
}

.ph.is-empty>img {
  display: none;
}

/* ---------- 01 Briefing ---------- */
.chapter {
  overflow: hidden;
}

.float {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.float--ring {
  right: 6%;
  top: 12%;
  width: 180px;
  height: 180px;
  border: 2px solid var(--or);
  border-radius: 50%;
  opacity: .55;
}

.float--plus {
  left: 4%;
  bottom: 14%;
  font: 300 6rem "DM Sans", sans-serif;
  color: var(--or);
  line-height: 1;
  opacity: .6;
}

.chapter .container-xxl {
  position: relative;
  z-index: 1;
}

.statement {
  font-size: clamp(1.5rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  font-weight: 500;
  max-width: 24em;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  letter-spacing: -.01em;
}

.statement em {
  font-style: normal;
  color: var(--or);
}

.statement .w {
  display: inline-block;
}

.cards-row {
  perspective: 1200px;
}

.b-card {
  height: 100%;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  backdrop-filter: blur(4px);
  transform-style: preserve-3d;
}

.b-card h3 {
  font: 700 1.9rem "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  margin: 2rem 0 .6rem;
}

.b-card p {
  color: var(--mute);
  margin: 0;
  font-size: .95rem;
}

.b-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--or);
  color: #0a0a0a;
  font-weight: 800;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  align-items: center;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--or);
  font-style: normal;
}

/* ---------- 02 Cor ---------- */
.pal-scene {
  height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pal-top {
  padding: 6rem clamp(1rem, 3vw, 2.5rem) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pal-top .chap-label {
  color: inherit;
  opacity: .8;
}

.pal-items {
  position: absolute;
  inset: 0;
}

.pal-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: inherit;
}

.pal-role {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .75;
  margin-bottom: 1rem;
}

.pal-name {
  font: 700 clamp(5rem, 22vw, 22rem) "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: .85;
  margin: 0;
  letter-spacing: -.01em;
}

.pal-copy {
  margin-top: 1.5rem;
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  border-radius: 2rem;
  padding: .7rem 1.4rem;
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  font-size: 1rem;
}

.pal-copy:hover {
  background: currentColor;
}

.pal-copy:hover>* {
  color: var(--c);
}

.pal-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: .9rem;
  margin: 0;
  padding: 0 0 2.4rem;
}

.pal-dots button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid currentColor;
  padding: 0;
  opacity: .55;
  transition: transform .3s, opacity .3s;
}

.pal-dots li.on button {
  transform: scale(1.5);
  opacity: 1;
}

.pal-type {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 2rem;
  align-items: center;
  gap: 1rem;
}

.pal-type .aa {
  font: 800 4rem/1 "DM Sans", sans-serif;
}

/* ---------- 03 Obstáculos (scroll horizontal) ---------- */
.hs {
  padding: 0;
}

.hs-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(var(--or-rgb), .12), transparent 55%);
}

.hs-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.hs-panel {
  position: relative;
  flex: 0 0 auto;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 6rem clamp(1rem, 6vw, 6rem) 4rem;
}

.hs-intro {
  width: 70vw;
  justify-content: flex-start;
}

.bignum {
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  font: 700 clamp(14rem, 36vw, 36rem)/1 "Barlow Condensed", sans-serif;
  color: transparent;
  -webkit-text-stroke: 2px rgba(var(--or-rgb), .35);
  pointer-events: none;
}

.prob,
.sol {
  position: relative;
  z-index: 1;
  flex: 0 1 30rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 1.2rem;
}

.prob {
  border: 1.5px dashed rgba(244, 237, 228, .4);
  background: rgba(10, 10, 10, .65);
  backdrop-filter: blur(6px);
}

.prob h3 {
  text-decoration: line-through;
  text-decoration-color: rgba(var(--or-rgb), .7);
  text-decoration-thickness: 2px;
}

.sol {
  background: var(--or);
  color: #0a0a0a;
  box-shadow: 0 30px 70px rgba(var(--or-rgb), .35);
}

.prob .hand,
.sol .hand {
  font-size: 1.5rem;
  display: block;
}

.sol .hand {
  color: rgba(0, 0, 0, .65);
}

.prob h3,
.sol h3 {
  font: 700 clamp(1.8rem, 3vw, 2.6rem) "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 1;
  margin: .4rem 0 .8rem;
}

.prob p,
.sol p {
  margin: 0;
  font-size: .98rem;
}

.prob p {
  color: var(--mute);
}

.sol code {
  color: #0a0a0a;
  background: rgba(0, 0, 0, .12);
  padding: 0 .3rem;
  border-radius: .2rem;
}

.hs-arrow {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  color: var(--or);
  flex: 0 0 auto;
}

.hs-bar {
  position: absolute;
  left: clamp(1rem, 6vw, 6rem);
  right: clamp(1rem, 6vw, 6rem);
  bottom: 3.2rem;
  height: 2px;
  background: var(--line);
}

.hs-bar i {
  display: block;
  height: 100%;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 991.98px) {
  .hs-pin {
    height: auto;
    display: block;
    overflow: visible;
  }

  .hs-track {
    flex-direction: column;
    height: auto;
    align-items: stretch;
  }

  .hs-panel,
  .hs-intro {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 4rem 1.2rem;
  }

  .bignum {
    top: 1rem;
    transform: none;
    font-size: 12rem;
  }
}

/* ---------- 04 Autoria ---------- */
.passes {
  perspective: 1400px;
}

.pass-title {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.pass {
  position: relative;
  display: flex;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: visible;
  transform-origin: 50% 0;
}

.pass-main {
  flex: 1 1 auto;
  padding: 1.1rem 1.4rem;
  min-width: 0;
}

.pass-main small,
.pass-stub small {
  display: block;
  font: 500 .62rem "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.pass-main strong {
  display: block;
  font: 700 1.6rem/1.05 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  margin: .25rem 0;
}

.pass-main span {
  font-size: .8rem;
  opacity: .8;
}

.pass-stub {
  position: relative;
  flex: 0 0 112px;
  padding: 1.1rem 1rem;
  border-left: 2px dashed currentColor;
  border-left-color: rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pass-stub::before,
.pass-stub::after {
  content: "";
  position: absolute;
  left: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
}

.pass-stub::before {
  top: -10px;
}

.pass-stub::after {
  bottom: -10px;
}

.pass-stub b {
  font: 700 1.2rem "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.barcode {
  display: block;
  height: 22px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px);
  opacity: .8;
}

.pass--mine {
  background: var(--or);
  color: #0a0a0a;
  box-shadow: 0 18px 40px rgba(var(--or-rgb), .25);
}

.pass--other {
  background: transparent;
  color: var(--mute);
  border: 1.5px dashed rgba(244, 237, 228, .3);
}

.pass--other .pass-stub {
  border-left-color: rgba(244, 237, 228, .3);
}

.pass--other .pass-stub::before,
.pass--other .pass-stub::after {
  border: 1.5px dashed rgba(244, 237, 228, .3);
  background: var(--bg);
}

.pass--other .pass-main strong {
  text-decoration: line-through;
  text-decoration-color: rgba(244, 237, 228, .35);
}

@media (max-width: 575.98px) {
  .pass-stub {
    flex-basis: 84px;
  }

  .pass-main strong {
    font-size: 1.35rem;
  }
}

.share {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.share-ring {
  width: 130px;
  height: 130px;
  flex: 0 0 130px;
}

.ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
}

.ring-fg {
  fill: none;
  stroke: var(--or);
  stroke-width: 6;
  stroke-linecap: round;
}

.share-num {
  position: absolute;
  left: 0;
  width: 130px;
  text-align: center;
  font: 700 2.4rem "Barlow Condensed", sans-serif;
  line-height: 1;
}

.share-num small {
  font-size: 1rem;
  color: var(--or);
  margin-left: 2px;
}

/* ---------- 05 Túnel de ecrãs ---------- */
.tunnel {
  padding: 0;
}

.tunnel-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1b1109 0, var(--bg) 62%);
}

.tunnel-head {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.tunnel-world {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1000px;
}

.tunnel-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36vmin;
  aspect-ratio: 1;
  margin: -18vmin 0 0 -18vmin;
  border: 1.5px solid var(--or);
  border-radius: 50%;
  opacity: 0;
}

.t-item {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  width: clamp(280px, 44vw, 700px);
  aspect-ratio: 1728 / 911;;
  border-radius: .8rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
  will-change: transform;
}

.t-item--phone {
  width: clamp(150px, 17vw, 270px);
  aspect-ratio: 500 / 911;
  border-radius: 1.8rem;
  border: 6px solid #1c1c1c;
}

.t-item figcaption {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  z-index: 3;
  background: var(--or);
  color: #0a0a0a;
  padding: .3rem .7rem;
  font: 700 .68rem "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fullpage {
  padding: 0;
}

.fp-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
}

.fp-view {
  height: min(62vh, 560px);
  overflow: hidden;
  background: #222;
}

.fp-shot {
  width: 100%;
  will-change: transform;
}

.fp-shot>img {
  height: auto;
}

.fp-shot.is-empty {
  height: 2000px;
}

.fp-shot.is-empty::after {
  top: 260px;
}

/* ---------- 06 Antes / Depois ---------- */
.cmp {
  padding: 0;
}

.cmp-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 3rem;
}

.pair-btn {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: .5rem 1.1rem;
  font: 500 .8rem "DM Sans", sans-serif;
  transition: background .25s, color .25s, border-color .25s;
}

.pair-btn:hover {
  border-color: var(--or);
}

.pair-btn.active {
  background: var(--or);
  color: #0a0a0a;
  border-color: var(--or);
}

.compare {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 1rem;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  --pos: 100%;
  max-height: 56vh;
  width: 100%;
}

@media (max-width: 767.98px) {
  .compare {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

.compare .pair {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s;
}

.compare .pair.active {
  opacity: 1;
  visibility: visible;
}

.compare .layer {
  position: absolute;
  inset: 0;
}

.compare .before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare .before.is-empty {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px), #3a3633;
  filter: grayscale(1);
}

.compare .after.is-empty {
  background: linear-gradient(135deg, #4a2410, #ff5f1a);
}

.compare .after.is-empty::after {
  color: #fff;
  border-color: #fff;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.compare-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--or);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

.compare-tag {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: .3rem .8rem;
  border-radius: 2rem;
  font: 700 .7rem "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  background: #0a0a0a;
  color: #fff;
}

.compare-tag--l {
  left: 1rem;
}

.compare-tag--r {
  right: 1rem;
  background: var(--or);
  color: #0a0a0a;
}

.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 4;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare:has(input:focus-visible) {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}

.delta {
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .9rem 1.2rem;
  background: rgba(255, 255, 255, .03);
}

.delta small {
  font: 500 .66rem "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mute);
}

.delta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  font: 700 2rem "Barlow Condensed", sans-serif;
}

.delta .was {
  color: var(--mute);
  text-decoration: line-through;
}

.delta i {
  color: var(--or);
  font-size: 1.2rem;
}

.delta strong {
  color: var(--or);
}

/* ---------- 07 Chegada ---------- */
.arrive {
  height: 100vh;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.arrive-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60vmin;
  aspect-ratio: 1;
  margin: -30vmin 0 0 -30vmin;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 160px rgba(var(--or-rgb), .6);
}

.arrive-content {
  position: relative;
  z-index: 2;
  --fg: #f4ede4;
  --btn: #0a0a0a;
  --btn-bg: #f4ede4;
  color: var(--fg);
  padding: 1rem;
}

.arrive-content .chap-label {
  color: inherit;
}

.live-btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--btn-bg);
  color: var(--btn);
  text-decoration: none;
  border-radius: 3rem;
  padding: 1.3rem 2.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  transition: box-shadow .3s;
}

.live-btn:hover {
  color: var(--btn);
  box-shadow: 0 0 0 8px rgba(var(--or-rgb), .35);
}

.next-projects {
  padding: 4rem 0;
  background: var(--bg);
  border-top: 3px solid var(--or);
  position: relative;
  z-index: 2;
}

.proj-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--fg);
  transition: background .3s, border-color .3s;
}

.proj-nav:hover {
  background: rgba(var(--or-rgb), .12);
  border-color: var(--or);
  color: var(--fg);
}

.proj-nav small {
  display: block;
  font: .68rem "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.proj-nav strong {
  font: 700 1.8rem "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.proj-nav i {
  color: var(--or);
  font-size: 1.8rem;
}

.foot {
  color: var(--mute);
  background: var(--bg);
  position: relative;
  z-index: 2;
}

/* =========================================================
   Fallback sem movimento (prefers-reduced-motion ou sem GSAP)
   ========================================================= */
.static .floor {
  display: none !important;
  animation: none;
}

.static .hero-cue i {
  animation: none;
}

.static .hero {
  perspective: none;
}

.static .pal-scene {
  height: auto;
  display: block;
  background: var(--bg) !important;
  color: var(--fg) !important;
}

.static .pal-items {
  position: static;
}

.static .pal-item {
  position: static;
  background: var(--c);
  color: var(--t);
  padding: 4rem 1rem;
}

.static .pal-dots,
.static .pal-type {
  display: none !important;
}

.static .pal-top {
  padding-bottom: 2rem;
}

.static .hs-pin,
.static .tunnel-pin,
.static .fp-pin,
.static .cmp-pin {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.static .hs-pin {
  display: block;
}

.static .hs-track {
  flex-direction: column;
  height: auto;
  align-items: stretch;
}

.static .hs-panel,
.static .hs-intro {
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 3rem 1.2rem;
}

.static .hs-arrow {
  display: none !important;
}

.static .tunnel-pin {
  padding: 5rem 1rem;
  display: grid;
  gap: 2rem;
  background: var(--bg);
}

.static .tunnel-head,
.static .tunnel-world {
  position: static;
}

.static .tunnel-world {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  perspective: none;
}

.static .t-item {
  position: static;
  width: min(100%, 700px);
}

.static .t-item--phone {
  width: 220px;
}

.static .tunnel-rings {
  display: none;
}

.static .fp-view {
  height: auto;
  max-height: 70vh;
  overflow: auto;
}

.static .compare {
  max-height: none;
}

.static .arrive {
  height: auto;
  min-height: 70vh;
}

.static .arrive-sun {
  transform: scale(2);
}

.static .arrive-content {
  --fg: #0a0a0a;
  --btn: var(--or);
  --btn-bg: #0a0a0a;
}

.static .statement .w {
  opacity: 1 !important;
}

@keyframes floor {
  to {
    background-position: 0 70px, 0 0;
  }
}
