/* Home v2 · hero em tela cheia, mapa real da rota e soluções empilhadas. */

/* ---------- hero: a porta do baú sobe e revela a estrada */
.h2o { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #05061c; color: #fff; padding: 0 !important; display: flex; flex-direction: column; }
.h2o__media { position: absolute; inset: 0; will-change: transform; }
.h2o__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.18); }
.is-in .h2o__media img { transform: scale(1.04); transition: transform 2600ms var(--ease-out) 300ms; }
.h2o__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 28, .7) 0%, rgba(5, 6, 28, 0) 26%),
    linear-gradient(0deg, rgba(8, 9, 40, .96) 0%, rgba(8, 9, 40, .55) 38%, rgba(8, 9, 40, 0) 62%),
    linear-gradient(90deg, rgba(8, 9, 40, .4), rgba(8, 9, 40, 0) 60%);
}
.h2o__door {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(180deg, #15174a 0 54px, #0c0d33 54px 58px, #1c1f5c 58px 60px);
  box-shadow: inset 0 -6px 0 var(--orange);
  transform: translateY(0); transition: transform 1300ms var(--ease-in-out) 150ms;
}
.is-in .h2o__door { transform: translateY(-101%); }
.no-js .h2o__door, .h2o__door[hidden] { display: none; }
.h2o__top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding-top: 104px; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .08em; }
.h2o__live { display: inline-flex; align-items: center; gap: 10px; }
.h2o__live b { color: #fff; font-weight: 400; }
.h2o__title {
  position: relative; z-index: 2; margin-top: auto; padding-inline: calc(var(--gut) - .04em);
  font-size: clamp(3.6rem, 13.2vw, 15rem); line-height: .84; letter-spacing: -.06em; font-weight: 800;
}
.h2o__title .line { padding-bottom: .08em; margin-bottom: -.08em; }
.h2o__l2 { text-align: right; }
.h2o__title em { font-style: italic; font-weight: 500; color: var(--orange); letter-spacing: -.045em; }
.ch { display: inline-block; transform: translateY(108%); }
.is-in .ch { transform: none; transition: transform 1100ms var(--ease-out); transition-delay: calc(900ms + var(--c) * 28ms); }
.h2o__foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr auto auto; gap: 28px; align-items: end; padding-block: 34px calc(var(--plate) + 30px); }
.h2o__foot p { max-width: 46ch; color: rgba(255, 255, 255, .74); font-size: 1.02rem; }
.h2o__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.h2o__cue { display: grid; justify-items: center; gap: 10px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .08em; }
.h2o__cue i { width: 1px; height: 46px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.h2o__cue i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(-100%); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 60%, 100% { transform: translateY(100%); } }
/* intro do hero na v2 entra depois da porta */
.js .home2 [data-intro] { transition-delay: calc(var(--d) + 900ms) !important; }

/* ---------- manifesto com a marca se desenhando (o efeito saiu do hero) */
.mf { padding-bottom: clamp(80px, 10vw, 140px) !important; }
.mf__pin { min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mf__mark { color: var(--orange); width: 100%; max-width: 520px; justify-self: end; }
.mf__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mf .manifesto { max-width: 18ch; }

/* ---------- a viagem: mapa real, câmera seguindo o pacote */
.trip { position: relative; background: #070822; color: #fff; padding: 0 !important; }
.trip__stage { position: relative; height: 100svh; overflow: hidden; }
.trip__map { position: absolute; inset: 0; background: #070822; }
.trip__map canvas { outline: none; }
.trip__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 8, 34, .92) 0%, rgba(7, 8, 34, .6) 30%, rgba(7, 8, 34, 0) 55%), linear-gradient(0deg, rgba(7, 8, 34, .85), rgba(7, 8, 34, 0) 26%), linear-gradient(180deg, rgba(7, 8, 34, .7), rgba(7, 8, 34, 0) 22%); }
.trip__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; grid-template-columns: minmax(280px, 440px) 1fr; grid-template-rows: auto 1fr auto auto; padding-block: 116px 34px; column-gap: 40px; }
.trip__head { grid-column: 1; }
.trip__head .h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.trip__steps { grid-column: 1; grid-row: 2; align-self: center; display: grid; min-height: 170px; }
.trip__steps li { grid-area: 1 / 1; display: grid; gap: 8px; align-content: start; opacity: 0; filter: blur(4px); transform: translateY(12px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), filter 320ms var(--ease-out); }
.trip__steps li.is-on { opacity: 1; filter: none; transform: none; }
.trip__steps .mono { color: var(--orange); }
.trip__steps h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.035em; line-height: 1.05; }
.trip__steps p { color: rgba(255, 255, 255, .7); max-width: 36ch; }
.trip__hud { grid-column: 1 / -1; grid-row: 3; display: flex; gap: clamp(20px, 4vw, 56px); margin-bottom: 18px; }
.trip__hud div { display: grid; gap: 4px; }
.trip__hud div > span { color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }
.trip__hud b { font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.7rem); color: #fff; letter-spacing: -.02em; }
.trip__bar { grid-column: 1 / -1; grid-row: 4; position: relative; height: 2px; background: rgba(255, 255, 255, .16); }
.trip__bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.trip__bar span { position: absolute; top: 50%; left: calc(var(--f) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #070822; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); transition: background-color 250ms, box-shadow 250ms; }
.trip__bar span.is-on { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.trip__credit { position: absolute; z-index: 2; right: var(--gut); bottom: 46px; color: rgba(255, 255, 255, .35); font-size: .58rem; }
/* marcadores no mapa */
.pkg { width: 46px; height: 46px; border-radius: 14px; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 91, 31, .22), 0 0 40px 6px rgba(255, 91, 31, .55); }
.pkg svg { width: 26px; height: 26px; color: #fff; }
.stopm { display: flex; align-items: center; gap: 10px; pointer-events: none; }
.stopm i { width: 14px; height: 14px; border-radius: 50%; background: #070822; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); transition: background-color 300ms, box-shadow 300ms; }
.stopm span { font: 400 .7rem var(--fm); color: rgba(255, 255, 255, .6); background: rgba(7, 8, 34, .7); padding: 5px 8px; border-radius: 6px; white-space: nowrap; transition: color 300ms; }
.stopm.is-on i { background: var(--orange); box-shadow: 0 0 0 3px var(--orange), 0 0 0 9px rgba(255, 91, 31, .2); }
.stopm.is-on span { color: #fff; }
.stopm--hub span { color: var(--orange-2); }
.maplibregl-ctrl-attrib { display: none !important; }

/* ---------- soluções empilhadas */
.stack { padding-bottom: 0 !important; }
.stack .card:first-of-type { margin-top: 0; }
.card__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%); pointer-events: none; }
.stack__head { margin-bottom: clamp(40px, 6vw, 80px); }
.card { position: sticky; top: 0; height: 100svh; display: flex; }
/* cada placa segura a tela por um tempo antes da próxima subir */
.card:not(:last-of-type) { margin-bottom: 60svh; }
.card__in { flex: 1; width: 100%; border-radius: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; transform-origin: 50% 0; will-change: transform; }
.card--paper .card__in { background: var(--paper); color: var(--ink); }
.card--orange .card__in { background: var(--orange); color: var(--ink); }
.card--ink2 .card__in { background: var(--ink-3); color: #fff; }
.card__copy p, .card__copy li { color: inherit; }
.card__copy { padding: 120px var(--gut) clamp(40px, 6vh, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; align-items: flex-start; }
.card__idx { font-size: .9rem; color: var(--orange); }
.card--orange .card__idx { color: var(--ink); }
.card__idx i { font-style: normal; opacity: .45; }
.card__title { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin-top: auto; }
.card__lead { font-size: clamp(1.08rem, 1.5vw, 1.35rem); line-height: 1.35; max-width: 30ch; font-weight: 500; }
.card__list { display: grid; width: 100%; max-width: 440px; }
.card__list li { padding: 11px 0; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); font-size: .96rem; }
.card__img { position: relative; overflow: hidden; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- motorista em tela cheia */
.drv { position: relative; min-height: 100svh; overflow: hidden; color: #fff; background: var(--ink); display: flex; align-items: flex-end; padding: 0 !important; }
.drv__media { position: absolute; inset: 0; clip-path: inset(10% 8% 10% 8% round var(--r)); will-change: clip-path; }
.drv__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transform: scale(1.15); }
.drv__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 13, 51, .92), rgba(12, 13, 51, .2) 55%, rgba(12, 13, 51, 0)), linear-gradient(270deg, rgba(12, 13, 51, .65), rgba(12, 13, 51, 0) 55%); }
.drv__copy { position: relative; z-index: 2; padding-block: 0 clamp(60px, 9vw, 120px); display: grid; justify-items: end; text-align: right; }
.drv__title { font-size: clamp(3rem, 8vw, 8rem); line-height: .88; letter-spacing: -.055em; font-weight: 800; margin-bottom: 30px; }
.drv__title em { font-style: italic; font-weight: 500; color: var(--orange); }
.drv__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 30px; }
.drv__list li { padding: 9px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-l); }
.drv .eyebrow { color: var(--orange); }

@media (max-width: 1080px) {
  .h2o__foot { grid-template-columns: 1fr; gap: 20px; }
  .h2o__cue { display: none; }
  .mf__pin { grid-template-columns: 1fr; min-height: 0; padding-block: 40px; }
  .mf__mark { max-width: 220px; justify-self: start; order: -1; }
  .card__in { grid-template-columns: 1fr; grid-template-rows: 1fr 38%; }
  .card__img { order: 2; }
}
@media (max-width: 760px) {
  .h2o__top { padding-top: 92px; flex-direction: column; gap: 6px; font-size: .62rem; }
  .h2o__title { font-size: 17.4vw; }
  .h2o__l2 { text-align: left; }
  .h2o__foot { padding-bottom: 24px; }
  .h2o__foot p { font-size: .95rem; }
  .h2o__ctas .btn { flex: 1; }
  .h2o__ctas .btn--ghost-l { display: none; }
  .trip__shade { background: linear-gradient(180deg, rgba(7, 8, 34, .9) 0%, rgba(7, 8, 34, 0) 34%), linear-gradient(0deg, rgba(7, 8, 34, .96) 0%, rgba(7, 8, 34, .7) 34%, rgba(7, 8, 34, 0) 58%); }
  .trip__ui { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto auto; padding-block: 96px 20px; }
  .trip__head .h2 { font-size: 2rem; }
  .trip__steps { grid-row: 3; min-height: 150px; }
  .trip__steps h3 { font-size: 1.35rem; }
  .trip__steps p { font-size: .92rem; }
  .trip__hud { grid-row: 4; margin: 10px 0 14px; }
  .trip__bar { grid-row: 5; }
  .trip__credit { top: auto; bottom: 6px; }
  .card__copy p, .card__copy li { color: inherit; }
  .card__copy { padding: 96px 20px 24px; gap: 14px; }
  .card__list { display: none; }
  .card__title { font-size: 2.7rem; }
  .drv__copy { justify-items: start; text-align: left; }
  .drv__list { justify-content: flex-start; }
  .drv__media { clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .h2o__door { display: none; }
  .ch { transform: none; }
  .mf__mark path { stroke-dashoffset: 0; }
  .drv__media { clip-path: none; }
}
