/* v5 "Travessia" — travel scenes over the v4 system (loaded after journey.css).
 * Contract kept from v4: without JS / with reduced motion the page is plain and complete (stacked plates);
 * html.v5-on (added by scenes.js when motion is allowed) turns the three scenes into pinned scroll sequences. */

/* ---------------------------------------------------------------- stage layers */
.stage__travel, .stage__worlds { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
html:not(.v5-on) .stage__travel, html:not(.v5-on) .stage__worlds { display: none; }

/* ---------------------------------------------------------------- flow sections: centred plates over the horizon */
@media (min-width: 1200px) and (orientation: landscape) {
  .sec[data-side="c"] > .wrap { width: min(72%, 1120px); margin-inline: auto; }
  .sec[data-side="c"] .about__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .sec[data-side="c"] .faq__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }
}

/* ================================================================ SERVIÇOS · três mundos */
.worlds { position: relative; z-index: var(--z-content); pointer-events: none; }
.worlds__pin { display: grid; gap: var(--s-7); max-width: var(--w-content); margin-inline: auto; padding: var(--section-y) var(--gutter); }
.worlds__head { display: grid; gap: var(--s-4); pointer-events: auto; }
/* not .sec-title on purpose: fx.js forms every .sec-title out of dust in place, and this one travels while pinned */
.worlds__title { font-weight: 500; font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: var(--ls-display); color: var(--c-text-hi); text-wrap: balance; }
.worlds__hint, .worlds__sats, .worlds__prog, .world__read, .worlds__map, .world__hint { display: none; }
.worlds__list { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.world { pointer-events: auto; padding: var(--plate-pad); background: var(--c-scrim); border-radius: 24px; }
/* v6: the world's label is plain text on the scene (no scrim chip) */
.world__n { font-weight: 500; font-size: var(--t-label); line-height: var(--lh-label); color: var(--c-text-dim); font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.world__t { margin: var(--s-4) 0; font-weight: 500; font-size: clamp(30px, 3.5vw, 56px); line-height: 1; letter-spacing: -.035em; color: var(--c-text-hi); text-wrap: balance; }
.world__d { max-width: 44ch; color: var(--c-text); }
.world__ticks { margin: var(--s-5) 0 var(--s-6); padding: 0; list-style: none; }
.world__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.world > .world__hint { --k: 5; }
html.v5-on .world__hint { display: block; margin-top: var(--s-4); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }

html.v5-on .worlds { height: calc(var(--worlds-len, 5.6) * 100vh); height: calc(var(--worlds-len, 5.6) * 100svh); }
html.v5-on .worlds__pin { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; max-width: none; padding: 0; overflow: hidden; overflow: clip; }
html.v5-on .worlds__head { position: absolute; inset: 57% var(--gutter) auto; justify-items: center; text-align: center; transform: translate3d(0, calc(-50% + var(--ty, 0) * 1px), 0); opacity: var(--o, 1); pointer-events: none; }
html.v5-on .worlds__title { max-width: 12ch; font-size: clamp(56px, 9.4vw, 168px); line-height: .9; letter-spacing: -.055em; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
html.v5-on .worlds__head .sec-intro { max-width: 42ch; text-shadow: 0 1px 16px rgba(0, 0, 0, .9); }
html.v5-on .worlds__head.is-off .worlds__map a { pointer-events: none; }
.worlds__kick { display: block; }
html.v5-on .worlds__kick { text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
/* the three worlds named on the title card: a small planet and its name, no boxes */
html.v5-on .worlds__map { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: var(--s-3) 0 0; padding: 0; list-style: none; }
html.v5-on .worlds__map a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 500; font-size: 16px; line-height: 1.2; color: var(--c-text-hi); text-decoration: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); pointer-events: auto; transition: color var(--d-fast) var(--ease-out); }
html.v5-on .worlds__map a:hover { color: var(--c-signal-hover); }
/* 24px renders of the same planets (lit like the scene), 72px files for sharp phones */
.pl { flex: none; display: block; width: 24px; height: 24px; border-radius: 50%; background: center / contain no-repeat; transition: transform var(--d-base) var(--ease-pop); }
.pl--terra { background-image: url("../../images/planets/mini-terra.webp"); }
.pl--marte { background-image: url("../../images/planets/mini-marte.webp"); }
.pl--jupiter { background-image: url("../../images/planets/mini-jupiter.webp"); }
html.v5-on .worlds__map a:hover .pl { transform: scale(1.18); }
html.v5-on .worlds__hint { display: block; margin-top: var(--s-2); }
html.v5-on .world { position: absolute; padding: 0; background: none; border: 0; pointer-events: none; }
html.v5-on .world.is-in > * { pointer-events: auto; }
html.v5-on .world > * { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .26s ease-out, transform .26s ease-out; }
html.v5-on .world.is-in > * { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms + 60ms); }
.world > :nth-child(2) { --k: 1; } .world > :nth-child(3) { --k: 2; } .world > :nth-child(4) { --k: 3; } .world > :nth-child(5) { --k: 4; }
/* the service list lights up as the world is built: unlit items stay readable (.72), a lit one turns white and its gold
   point comes on */
/* critic pass: every service reads at full contrast all the time (a dim item read as "not offered"); only its gold
   point comes on as the world is built */
html.v5-on .world__ticks li { color: var(--c-text-hi); }
html.v5-on .world__ticks li::before { opacity: .35; transform: translateY(-.22em) scale(.6); transition: opacity .3s var(--ease-out), transform .3s var(--ease-pop); }
html.v5-on .world__ticks li.is-on::before { opacity: 1; transform: translateY(-.22em); }

html.v5-on .worlds__sats { display: block; position: absolute; inset: 0; pointer-events: none; }
/* Jupiter's satellites: a name beside its own point, no box */
.sat { position: absolute; left: 0; top: 0; padding: 2px 4px; font-weight: 500; font-size: 13px; line-height: 1.2; white-space: nowrap; color: var(--c-text-hi); text-shadow: 0 0 10px #000, 0 1px 3px #000; opacity: 0; will-change: transform, opacity; }
html.v5-on .worlds__prog { display: flex; gap: 6px; position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%); opacity: var(--o, 0); transition: opacity .4s; }
.worlds__prog i { width: 34px; height: 2px; background: var(--c-line-strong); overflow: hidden; }
.worlds__prog i::after { content: ""; display: block; height: 100%; background: var(--c-signal); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }

@media (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .world { top: calc(50% + var(--header-h) / 2); translate: 0 -50%; width: min(37vw, 540px); }
  html.v5-on .world[data-side="l"] { left: max(var(--gutter), 7vw); }
  html.v5-on .world[data-side="r"] { right: max(var(--gutter), 7vw); }
}
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .world { left: 0; right: 0; bottom: 0; padding: 96px var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); }
  html.v5-on .world::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease-out;
    background: linear-gradient(to bottom, rgba(4, 4, 4, 0), rgba(4, 4, 4, .88) 104px, rgba(4, 4, 4, .97)); }
  html.v5-on .world.is-in::before { opacity: 1; }
  html.v5-on .world__t { margin-block: var(--s-3); font-size: clamp(28px, 8.4vw, 44px); }
  html.v5-on .world__d { font-size: 15px; line-height: 1.5; }
  html.v5-on .world__ticks { margin: var(--s-4) 0 var(--s-5); gap: 6px; font-size: 14px; line-height: 1.4; }
  html.v5-on .world__foot .btn { width: 100%; }
  html.v5-on .worlds__prog { left: var(--gutter); bottom: auto; top: calc(var(--header-h) + var(--s-3)); transform: none; }
  /* the drag hint shares the label's row, on the right, right under the planet */
  html.v5-on .world__hint { position: absolute; top: 96px; right: var(--gutter); margin: 0; line-height: var(--lh-label); }
  .sat { font-size: 12px; }
}
@media (max-width: 1023px) and (max-height: 720px) {
  html.v5-on .world__d { display: none; }
}

/* ================================================================ PROCESSO · plano de voo */
.fplan { position: relative; z-index: var(--z-content); pointer-events: none; }
.fplan__pin { display: grid; gap: var(--s-7); max-width: var(--w-content); margin-inline: auto; padding: var(--section-y) var(--gutter); }
.fplan__head { display: grid; gap: var(--s-3); }
.fplan__chart { display: none; }
.fplan__steps { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.fstep { pointer-events: auto; padding: var(--s-5); background: var(--c-scrim); border-radius: 20px; }
.fstep__n { font-weight: 500; font-size: var(--t-label); color: var(--c-text-dim); }
.fstep__n b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-signal); }
.fstep__t { margin: var(--s-3) 0 var(--s-2); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; letter-spacing: -.025em; color: var(--c-text-hi); text-wrap: balance; }
.fstep__d { font-size: var(--t-small); line-height: 1.5; color: var(--c-text); }
@media (min-width: 1024px) { .fplan__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

html.v5-on .fplan { height: 330vh; height: 330svh; }
html.v5-on .fplan__pin { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; max-width: none; padding: 0; overflow: hidden; overflow: clip; }
html.v5-on .fplan__chart { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: var(--fo, 0); }
html.v5-on .fplan__steps { opacity: var(--fo, 0); }
html.v5-on .fplan__head { position: absolute; left: max(var(--gutter), 5vw); top: calc(var(--header-h) + var(--s-6)); }
html.v5-on .fplan__head .sec-title { font-size: clamp(44px, 5.2vw, 96px); line-height: .94; text-shadow: 0 2px 24px rgba(0, 0, 0, .85); }
html.v5-on .fplan__head .label { text-shadow: 0 2px 24px rgba(0, 0, 0, .85); }
/* v6: no drawn orbits, no dashed path, no leader ticks: only the gold trajectory already flown, behind the asteroid */
.fplan__orbits, .fplan__leads, .fplan__path { display: none; }
.fplan__done { fill: none; stroke: var(--c-signal); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(216, 182, 106, .65)); }
.fplan__nodes circle { fill: var(--c-void); stroke: rgba(244, 242, 238, .35); stroke-width: 1.5; transition: fill .4s var(--ease-out), stroke .4s var(--ease-out); }
.fplan__nodes circle.is-lit { fill: var(--c-signal); stroke: var(--c-signal); }
.fplan__ship path { fill: var(--c-photon); }
.fplan__halo { fill: rgba(216, 182, 106, .2); }
html.v5-on .fstep { opacity: .8; background: none; border-radius: 0; text-shadow: 0 1px 16px rgba(0, 0, 0, .9); transition: opacity .6s var(--ease-out); }
html.v5-on .fstep.is-lit { opacity: 1; }

@media (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .fplan__steps { display: block; }
  html.v5-on .fstep { position: absolute; left: 0; top: 0; width: min(25vw, 340px); padding: var(--s-3) 0 0;
    transform: translate3d(calc(var(--x, 0) * 1px), calc(var(--y, 0) * 1px), 0); }
}
/* how open each step's description is (0..1), on the same .5s ease-out the old max-height/margin transition ran on;
   registered so it can transition (without @property the steps just snap open and shut) */
@property --fd0 { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --fd1 { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --fd2 { syntax: '<number>'; inherits: true; initial-value: 0; }
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .fplan__head { left: var(--gutter); top: calc(var(--header-h) + var(--s-3)); gap: var(--s-2); }
  html.v5-on .fplan__head .sec-title { font-size: 40px; }
  /* the open description is out of the flow, so opening one never moves the list in the layout (it was a layout
     shift on every step change): it lies under its title, and its step and the ones above glide up by what it used to
     take, 6px + min(its height, 8em), on transforms. --fhN: the descriptions' heights; --fdN: the open one (scenes.js) */
  html.v5-on .fplan__steps { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); gap: var(--s-2);
    --fl0: calc(var(--fd0, 0) * 6px + min(var(--fh0, 0px), var(--fd0, 0) * 8 * var(--t-small)));
    --fl1: calc(var(--fd1, 0) * 6px + min(var(--fh1, 0px), var(--fd1, 0) * 8 * var(--t-small)));
    --fl2: calc(var(--fd2, 0) * 6px + min(var(--fh2, 0px), var(--fd2, 0) * 8 * var(--t-small)));
    transition: --fd0 .5s var(--ease-out), --fd1 .5s var(--ease-out), --fd2 .5s var(--ease-out); }
  html.v5-on .fstep { position: relative; padding: var(--s-3) 0; }
  html.v5-on .fstep:nth-child(1) { transform: translateY(calc(-1 * (var(--fl0) + var(--fl1) + var(--fl2)))); }
  html.v5-on .fstep:nth-child(2) { transform: translateY(calc(-1 * (var(--fl1) + var(--fl2)))); }
  html.v5-on .fstep:nth-child(3) { transform: translateY(calc(-1 * var(--fl2))); }
  html.v5-on .fstep:last-child { padding-right: calc(var(--mini-size) + var(--s-3)); }
  html.v5-on .fstep__t { margin: 4px 0 0; font-size: 18px; }
  html.v5-on .fstep__d { position: absolute; left: 0; right: 0; top: calc(100% - var(--s-3)); margin: 0; opacity: 0; transition: opacity .35s var(--ease-out); }
  html.v5-on .fstep:last-child .fstep__d { right: calc(var(--mini-size) + var(--s-3)); }
  html.v5-on .fstep:nth-child(1) .fstep__d { transform: translateY(calc(var(--fd0, 0) * 6px)); clip-path: inset(0 0 calc(var(--fh0, 0px) - min(var(--fh0, 0px), var(--fd0, 0) * 8 * var(--t-small))) 0); }
  html.v5-on .fstep:nth-child(2) .fstep__d { transform: translateY(calc(var(--fd1, 0) * 6px)); clip-path: inset(0 0 calc(var(--fh1, 0px) - min(var(--fh1, 0px), var(--fd1, 0) * 8 * var(--t-small))) 0); }
  html.v5-on .fstep:nth-child(3) .fstep__d { transform: translateY(calc(var(--fd2, 0) * 6px)); clip-path: inset(0 0 calc(var(--fh2, 0px) - min(var(--fh2, 0px), var(--fd2, 0) * 8 * var(--t-small))) 0); }
  html.v5-on .fstep.is-now .fstep__d { opacity: 1; }
}

/* ================================================================ SOBRE · quem pilota */
.pilot { position: relative; z-index: var(--z-content); pointer-events: none; }
.pilot__pin { padding: var(--section-y) var(--gutter) 0; }
.pilot__grid { display: grid; gap: var(--s-6); width: 100%; max-width: 1280px; margin-inline: auto; pointer-events: auto; }
/* v6: a real portrait, not a game HUD: rounded, warm black and white, no brackets, no chips */
.pilot__kick { grid-area: kick; }
.pilot__photo { grid-area: photo; position: relative; aspect-ratio: 540 / 600; width: 100%; max-width: 440px; overflow: hidden; border-radius: 16px; background: var(--c-panel); }
.pilot__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.pilot__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) sepia(.24) contrast(1.07) brightness(.97); }
.pilot__id { grid-area: id; }
.pilot__grid { grid-template-areas: "kick" "photo" "id"; }
.pilot__name { margin: 0 0 var(--s-5); font-weight: 600; font-size: clamp(72px, 10.4vw, 168px); line-height: .84; letter-spacing: -.055em; color: var(--c-text-hi); }
.pilot__name span { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.pilot__name i { display: block; font-style: normal; }
.pilot__role { font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--c-signal); }
.pilot__since { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--c-text-dim); }
.pilot__line { margin-top: var(--s-4); max-width: 24ch; font-size: var(--t-lead); line-height: 1.3; letter-spacing: var(--ls-lead); color: var(--c-text-hi); text-wrap: balance; }
.pilot__sig { width: min(220px, 56%); margin-top: var(--s-7); opacity: .92; }
.pilot__logt { margin-bottom: var(--s-2); color: var(--c-signal); }
.pilot__log .about__bio { margin-top: 0; max-width: 40em; }
@media (min-width: 1024px) and (orientation: landscape) {
  .pilot__grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "photo ." "photo kick" "photo id" "photo ."; column-gap: clamp(28px, 4vw, 64px); row-gap: var(--s-3); align-items: center; max-width: 1000px; }
  .pilot__kick { align-self: end; }
  .pilot__id { align-self: start; }
  .pilot__photo { justify-self: end; width: auto; max-width: none; height: min(54vh, 520px); }
}

html.v5-on .pilot__stage { height: 220vh; height: 220svh; }
html.v5-on .pilot__pin { position: sticky; top: 0; display: grid; align-items: center; height: 100vh; height: 100svh; padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-5); overflow: hidden; overflow: clip; }
html.v5-on .pilot__photo { clip-path: circle(0% at 50% 44%); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }
html.v5-on .pilot.is-in .pilot__photo { clip-path: circle(120% at 50% 44%); }
html.v5-on .pilot__photo > img { transform: scale(calc(1.14 - .14 * var(--p, 0))); }
html.v5-on .pilot__name i { transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--ease-out) .15s; }
html.v5-on .pilot__name span + span i { transition-delay: .28s; }
html.v5-on .pilot.is-in .pilot__name i { transform: none; }
html.v5-on .pilot__kick, html.v5-on .pilot__role, html.v5-on .pilot__since, html.v5-on .pilot__line { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
html.v5-on .pilot.is-in .pilot__kick { opacity: 1; transform: none; transition-delay: .05s; }
html.v5-on .pilot.is-in .pilot__role { opacity: 1; transform: none; transition-delay: .55s; }
html.v5-on .pilot.is-in .pilot__since { opacity: 1; transform: none; transition-delay: .62s; }
html.v5-on .pilot.is-in .pilot__line { opacity: 1; transform: none; transition-delay: .7s; }
html.v5-on .pilot__log { padding-top: var(--s-6); }
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .pilot__grid { gap: 0; justify-items: start; }
  html.v5-on .pilot__kick { margin-bottom: var(--s-3); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
  html.v5-on .pilot__photo { width: auto; height: min(38vh, 340px); height: min(38svh, 340px); }
  /* the ring is bright behind the text on phones: a soft fade (not a box) from the photo's foot down */
  html.v5-on .pilot__id { position: relative; justify-self: stretch; margin: 0 calc(-1 * var(--gutter)); padding: var(--s-4) var(--gutter) var(--s-5);
    background: linear-gradient(to bottom, rgba(4, 4, 4, 0), rgba(4, 4, 4, .84) 56px, rgba(4, 4, 4, .9)); }
  html.v5-on .pilot__pin { align-items: start; padding-bottom: 0; }
  html.v5-on .pilot__grid { height: 100%; grid-template-rows: auto auto 1fr; }
  .pilot__name { font-size: clamp(64px, 20vw, 120px); margin: 0 0 var(--s-3); text-shadow: 0 2px 24px rgba(4, 4, 4, .7); }
  .pilot__line { font-size: 19px; text-shadow: 0 1px 16px rgba(0, 0, 0, .9); }
  .pilot__role, .pilot__since { text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
}

/* ================================================================ HUD · telemetria da travessia */
.hud { display: none; }
/* v6: one instrument, one quiet line (distance to the horizon); it pays off in the footer as "0 km · você atravessou".
   Desktop only: on phones the planets and the text own the screen. */
@media (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .hud { display: block; position: fixed; z-index: var(--z-fx); left: max(var(--s-5), 2vw); bottom: var(--s-5); pointer-events: none;
    opacity: calc(var(--hud-o, 0) * .6); transition: opacity .6s var(--ease-out); text-shadow: 0 0 6px #000, 0 0 2px #000;
    font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: .02em; color: var(--c-text-hi); }
  .hud__line b { font-weight: 500; font-variant-numeric: tabular-nums; }
}

/* ================================================================ CONTATO: centred like everything else on the way in */
@media (min-width: 1024px) and (orientation: landscape) {
  .contact__plate { grid-column: 2 / span 10; }
}

/* large desktops: the reading blocks grow with the screen */
@media (min-width: 1600px) and (orientation: landscape) {
  html.v5-on .world { width: min(34vw, 660px); }
  html.v5-on .world__d, html.v5-on .world__ticks { font-size: 19px; }
  html.v5-on .world__t { font-size: clamp(56px, 3.4vw, 76px); }
  html.v5-on .fstep { width: min(23vw, 420px); }
  html.v5-on .fstep__d { font-size: 16px; }
  html.v5-on .fstep__t { font-size: 28px; }
  .pilot__grid { max-width: 1180px; }
}

/* plain mode (no JS / reduced motion / "pausar animações"): every block of the three scenes sits on its own plate */
html:not(.v5-on) .worlds__head, html:not(.v5-on) .fplan__head, html:not(.v5-on) .pilot__grid {
  padding: var(--plate-pad); background: var(--c-scrim); border-radius: 24px;
}
html:not(.v5-on) .pilot__pin { padding-bottom: var(--s-6); }
/* no engine (reduced motion, "Pausar animações", no WebGL): the fixed hero poster would sit behind the form; the
   contact gets its own void with the dim CSS stars instead */
html:not(.v5-on) .contact { background: var(--c-void); }
html:not(.v5-on) .contact__sky { opacity: .55; }

/* QA 7: a menu link lands on the pinned scenes exactly (the page's scroll-padding would leave the stage 68px low,
   heading on the disk and the stage not yet pinned) */
html.v5-on .worlds, html.v5-on .fplan, html.v5-on .pilot { scroll-margin-top: calc(-1 * (var(--header-h) + var(--s-3))); }

/* QA 2: short laptops (1366x650, 1280x600): the service block fits under the header and the HUD steps aside */
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 740px) {
  html.v5-on .world { top: calc(50% + var(--header-h) / 2); }
  html.v5-on .world__t { margin: var(--s-2) 0 var(--s-3); font-size: clamp(26px, 5.6vh, 40px); }
  html.v5-on .world__d { font-size: 15px; line-height: 1.45; }
  html.v5-on .world__ticks { margin: var(--s-3) 0 var(--s-4); gap: 4px; font-size: 15px; }
  html.v5-on .worlds__title { font-size: clamp(56px, 17vh, 132px); }
  html.v5-on .hud { display: none; }
}
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 620px) {
  html.v5-on .world__d { display: none; }
  html.v5-on .worlds__head .sec-intro { display: none; }
}

/* QA 13: plain mode on desktop: the portrait stays inside its plate */
@media (min-width: 1024px) and (orientation: landscape) {
  html:not(.v5-on) .pilot__photo { justify-self: start; width: 100%; max-width: 420px; height: auto; }
}

/* second verification (2026-11-25) */
@media not all and (min-width: 1024px) and (orientation: landscape) {
  /* the floating WhatsApp button never covers pinned text */
  html.v5-on .pilot__line { max-width: min(24ch, calc(100% - var(--mini-size) - var(--s-3))); }
}
/* short phones (an iPhone SE with the browser bars): the whole "quem pilota" stage fits */
@media (max-width: 1023px) and (max-height: 700px) {
  html.v5-on .pilot__photo { height: 30vh; height: 30svh; }
  html.v5-on .pilot__name { margin: var(--s-1) 0 var(--s-3); font-size: clamp(52px, 16vw, 88px); }
  html.v5-on .pilot__line { margin-top: var(--s-3); font-size: 17px; }
}

/* second round (2026-11-25): the immersive-site offer, the texture credit, the asteroid */
.world__price { display: grid; margin: var(--s-5) 0 0; border-top: 1px solid var(--c-line-strong); }
.world__price > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.world__price dt { font-weight: 500; color: var(--c-text-hi); }
.world__price dd { margin: 0; font-family: var(--font-brand); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--c-text-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.v5-on .world__price + .world__ticks { margin-top: var(--s-4); }
@media not all and (min-width: 1024px) and (orientation: landscape) {
  /* phones: the prices matter more than the list (the planet keeps the top of the screen) */
  html.v5-on .world[data-world="1"] .world__ticks { display: none; }
  html.v5-on .world__price { margin-top: var(--s-4); }
  html.v5-on .world__price > div { padding: 8px 0; }
  html.v5-on .world__price dt { font-size: 15px; }
  html.v5-on .world__price dd { font-size: 17px; }
}
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 740px) {
  html.v5-on .world__price { margin-top: var(--s-3); }
  html.v5-on .world__price > div { padding: 6px 0; }
}
html.v5-on .fplan__ship { display: none; }
.ftr__credit { margin: 0; font-size: 12px; line-height: 1.5; color: var(--c-text-dim); }
.ftr__credit a { color: var(--c-text-dim); text-decoration: underline; text-underline-offset: 2px; }
.ftr__credit a:hover { color: var(--c-text-hi); }

/* third round (2026-11-26) */
/* laptops and narrow desktops: the service blocks (Terra now carries the prices) stay compact enough for the band
   between the header and the bottom of the screen */
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 860px) {
  html.v5-on .world__t { margin: var(--s-3) 0; }
  html.v5-on .world__ticks { margin: var(--s-4) 0 var(--s-5); gap: 4px; }
  html.v5-on .world__price { margin-top: var(--s-4); }
  html.v5-on .world__price > div { padding: 7px 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) and (orientation: landscape) {
  html.v5-on .world__read { display: none; }
  html.v5-on .world__t { font-size: clamp(28px, 3.4vw, 40px); }
  html.v5-on .world__d { font-size: 15px; line-height: 1.5; }
  html.v5-on .world__ticks { font-size: 15px; gap: 4px; margin: var(--s-4) 0 var(--s-5); }
  html.v5-on .world__price dt { font-size: 15px; }
  html.v5-on .world__price dd { font-size: 17px; }
}
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .world[data-world="1"] .world__foot { margin-top: var(--s-4); }
}
/* narrow phones: the service buttons keep to one line */
@media (max-width: 389px) {
  html.v5-on .world__foot .btn { font-size: 14px; padding-inline: 14px; gap: 6px; }
}

/* ================================================================ v6 "o universo que você toca": glass, not slabs */
/* Dense content (FAQ, Robô, the diary) floats on one frosted panel; the hole shows around it as a far glow.
   Only one of these is on screen at a time (backdrop-filter is costly on low-end phones). */
.sec[data-side] > .wrap {
  background: rgba(6, 6, 6, .6);
  border: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(244, 242, 238, .05);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sec[data-side] > .wrap { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sec[data-side] > .wrap { background: rgba(6, 6, 6, .9); }
}
@media (max-width: 767px) {
  /* on phones the ring crosses the whole panel: a denser glass keeps the text at 4.5:1 */
  .sec[data-side] > .wrap { width: auto; margin-inline: 8px; border-radius: 20px; background: rgba(6, 6, 6, .76); }
}
/* critic pass, with the scenes on: no panel edges at all. In Sobre, Robô and FAQ the camera is inside the shadow and the
   ring is dimmed to a far glow (site.js 'hole'), so the text already sits on the dark; a soft darkening that reaches
   zero inside its own box replaces the glass (no side, no corner, no seam). Phones: the same darkening, full-bleed,
   fading in and out at the top and bottom instead of a box with 8px slivers of ring beside it. */
html.v5-on .sec[data-side] > .wrap {
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: radial-gradient(closest-side, rgba(4, 4, 4, .78), rgba(4, 4, 4, .62) 64%, rgba(4, 4, 4, 0));
}
@media (max-width: 767px) {
  html.v5-on .sec[data-side] > .wrap {
    margin-inline: 0;
    padding-block: var(--s-9);
    background: linear-gradient(to bottom, rgba(4, 4, 4, 0), rgba(4, 4, 4, .84) var(--s-9), rgba(4, 4, 4, .84) calc(100% - var(--s-9)), rgba(4, 4, 4, 0));
  }
}
/* the diary under the portrait: no seam, it rises out of the dark under the name */
.pilot__log > .wrap { padding-top: var(--s-7); }
html:not(.v5-on) .pilot__log > .wrap {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px);
  mask-image: linear-gradient(to bottom, transparent, #000 120px);
  padding-top: calc(var(--s-7) + 64px);
}
/* the fall plays over open sky: a runway with no text between the last FAQ answer and the contact (site.js dives
   while the contact's top climbs from the bottom of the screen to 62% of it) */
html.v5-on .faq { padding-bottom: calc(var(--section-y) + 44vh); padding-bottom: calc(var(--section-y) + 44svh); }
.faq__head .sec-title, .show__titles .sec-title { text-wrap: balance; }
.faq__list { padding-bottom: var(--s-2); }
@media (max-width: 767px) {
  .faq__list { padding-bottom: calc(var(--mini-size) + 24px); }
}
.show__titles { gap: var(--s-3); }

/* contact: no box after the fall, the form lies on the new sky */
.contact__plate { background: none; border: 0; padding: 0; }

/* services title card on phones: left-aligned like the rest of the phone page; the three worlds are three rows */
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .worlds__head { justify-items: start; text-align: left; }
  html.v5-on .worlds__title { font-size: clamp(48px, 14vw, 84px); }
  html.v5-on .worlds__map { flex-direction: column; align-items: flex-start; gap: 0; margin-top: var(--s-2); }
  html.v5-on .worlds__map a { font-size: 18px; min-height: 44px; }
}

/* v6: eyebrows no longer type themselves with a gold "_" caret (the logo keeps the page's only cursor): a calm fade */
html.motion-ok .j-type.j-in { animation: v6-eyebrow .7s var(--ease-out) both; }
html.motion-ok .j-type.j-in::after { content: none; }
@keyframes v6-eyebrow { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* Processo: the title keeps to two lines, clear of the hole */
@media (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .fplan__head .sec-title { max-width: 9.5ch; }
}

/* critic pass: the arrival. The fields are lines on the new sky, not boxes; focus draws the line in gold. */
.contact .input { padding-inline: 2px; border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 rgba(244, 242, 238, .24); }
.contact .input:hover { background: transparent; box-shadow: inset 0 -1px 0 rgba(244, 242, 238, .42); }
.contact .input:focus { background: transparent; box-shadow: inset 0 -2px 0 var(--c-signal), 0 10px 24px -18px rgba(216, 182, 106, .9); }
.contact .input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--c-error); }
.contact textarea.input { min-height: 96px; padding-top: 14px; }
.contact select.input { padding-right: 32px; background-position: right 0 center; }
.contact select.input option { background: #0a0a09; }
.contact .field label { color: var(--c-text-dim); }
@media (min-width: 768px) {
  .contact .form__grid { gap: var(--s-6) var(--s-7); }
}

/* The portrait is a presence in the dark, not a pasted card: warm monochrome, no frame, no ring. The owner asked to see
   the whole photo (2026-12-03: "tá cortando demais"), so it is shown whole and large; only a soft fade at the very edges
   melts it into the void (opaque over ~85% of the box, no circular vignette, no zoom on the face). */
.pilot__photo { aspect-ratio: 540 / 600; border-radius: 0; background: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 86%, transparent);
  mask-composite: intersect; }
.pilot__photo::after { box-shadow: none; border-radius: 0; background: none; }
.pilot__photo > img { object-position: 50% 40%; transform-origin: 50% 40%; transform: none;
  filter: grayscale(1) sepia(.3) contrast(1.04) brightness(.92); }
html.v5-on .pilot__photo > img { transform: scale(calc(1.05 - .05 * var(--p, 0))); }
@media (min-width: 1024px) and (orientation: landscape) {
  .pilot__photo { height: min(72vh, 660px); height: min(72svh, 660px); }
  /* the diary rises under the intro: the pin's empty foot is not a gap of its own */
  html.v5-on .pilot__log { margin-top: -16vh; margin-top: -16svh; }
}
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .pilot__photo { height: min(46vh, 440px); height: min(46svh, 440px); }
}

/* critic pass, Processo on phones: every burn keeps its description (the current one at full strength), so the
   list fills the screen under the trajectory instead of leaving a gap above S1. Short phones keep the one-open list. */
@media not all and (min-width: 1024px) and (orientation: landscape) {
  @media (min-height: 801px) {
    html.v5-on .fplan__steps { gap: 0; }
    html.v5-on .fplan__steps > .fstep { transform: none; padding-block: 10px; }
    html.v5-on .fplan__steps > .fstep > .fstep__d { position: static; margin-top: 4px; opacity: .74; transform: none; clip-path: none;
      font-size: 14px; line-height: 1.45; }
    html.v5-on .fplan__steps > .fstep.is-now > .fstep__d { opacity: 1; }
  }
}

/* phones: the diary continues the dark under the name (the pin's text already sits on a fade): no bright seam of ring
   between them */
@media (max-width: 767px) {
  html.v5-on .pilot__log { padding-top: 0; }
  /* -1px: the section's transparent 1px top border; the wrap then starts exactly where the pin's fade ends */
  html.v5-on .sec.pilot__log[data-side] > .wrap { margin-top: -1px; padding-top: calc(var(--s-7) + 1px);
    background: linear-gradient(to bottom, rgba(4, 4, 4, .9), rgba(4, 4, 4, .9) calc(100% - var(--s-9)), rgba(4, 4, 4, 0)); }
}
/* phones: the projects fill their screen, the hole in the free top band and the carousel resting on the bottom (no
   dead sky under it) */
@media (max-width: 767px) {
  html.v5-on .projects { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding-block: calc(var(--header-h) + var(--s-3)) var(--s-4); }
}

/* FAQ: the smallest title step (dense content), two balanced lines in its column */
.faq__head .sec-title { font-size: clamp(30px, 2.6vw, 48px); }

/* the diary reads inside the ring: a narrower centred column keeps its lines off the photon ring's inner edge */
@media (min-width: 1200px) and (orientation: landscape) {
  html.v5-on .sec.pilot__log[data-side] > .wrap { width: min(56%, 820px); }
}

/* ================================================================ v6 round 2 (layout and polish) */
/* Services title card. The Earth is born at the hole's rim and flies down and to the right to its berth, so on
   desktops the card sits bottom-left, in the same column the Terra text takes next: the words and the planet never
   cross. Crisp white on a soft local dark (no box); it leaves quickly instead of lingering as grey over the planet. */
html.v5-on .worlds__head { isolation: isolate; }
html.v5-on .worlds__head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -12% -22%;
  background: radial-gradient(closest-side, rgba(4, 4, 4, .62), rgba(4, 4, 4, .38) 60%, rgba(4, 4, 4, 0));
  pointer-events: none;
}
html.v5-on .worlds__title { color: var(--c-text-hi); text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
html.v5-on .worlds__head .sec-intro { color: var(--c-text-hi); }
html.v5-on .worlds__hint { display: none; }
@media (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .worlds__head {
    inset: auto auto calc(8vh + var(--s-5)) max(var(--gutter), 7vw);
    width: min(62vw, 1040px);
    justify-items: start;
    text-align: left;
    transform: translate3d(0, calc(var(--ty, 0) * 1px), 0);
    /* --o (scenes.js) runs 1 -> 0 over a third of a screen: full strength until .9, gone at .35 */
    opacity: clamp(0, calc((var(--o, 1) - .35) / .55), 1);
  }
  html.v5-on .worlds__title { max-width: none; font-size: clamp(64px, 7.8vw, 160px); line-height: .9; }
  html.v5-on .worlds__title em { display: block; }
  html.v5-on .worlds__head .sec-intro { max-width: 40ch; }
  html.v5-on .worlds__map { justify-content: flex-start; }
}
/* phones: the Earth is born right under the hole and grows down into the band above the card, so the card sits a
   little lower than the hole's foot (its top stays clear of the planet for as long as the card can be seen) and
   leaves on the same quick fade as on desktops */
@media not all and (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .worlds__head { inset: 50% var(--gutter) auto; opacity: clamp(0, calc((var(--o, 1) - .35) / .55), 1); }
  /* the eyebrow would sit on the lensed glow at the hole's foot (1.6:1): the title names the section */
  html.v5-on .worlds__kick { display: none; }
}
/* once the card has faded its links take no taps (a drag on the planet must not land on an invisible link): a 0/1
   step on the same --o, ahead of scenes.js's own .is-off */
html.v5-on .worlds__map { scale: clamp(0, calc((var(--o, 1) - .35) * 100), 1); }

/* Contato, the arrival: one calm screen after the fall. Desktop: the heading holds the left half, the form is a narrow
   column on the new sky at the right; one WhatsApp call (the gold pill), the direct number as a quiet line under it.
   Fields stay lines, but lines you can see (3.6:1 on the void) under labels at full text strength. */
.contact .field label { color: var(--c-text); }
.contact .input { box-shadow: inset 0 -1px 0 var(--c-line-ui); }
.contact .input:hover:not(:focus):not([aria-invalid="true"]) { box-shadow: inset 0 -1px 0 var(--c-text-dim); }
.contact .form { gap: var(--s-6); }
.contact .form__grid { row-gap: var(--s-6); }
/* a soft pool of dark under the form (zero at its own edge): the labels keep their contrast wherever the sky blooms */
.contact__plate > .form { position: relative; isolation: isolate; }
.contact__plate > .form::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -48px -56px;
  background: radial-gradient(closest-side, rgba(4, 4, 4, .6), rgba(4, 4, 4, .42) 62%, rgba(4, 4, 4, 0));
  pointer-events: none;
}
@media (min-width: 1024px) and (orientation: landscape) {
  .contact__plate { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .contact__head { grid-column: 1 / span 6; }
  .contact__plate > .form { grid-column: 8 / span 5; margin-top: 0; }
  .contact .form__grid { grid-template-columns: minmax(0, 1fr); }
  .contact .form__actions { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .contact .form__note { max-width: 46ch; }
  .contact__lead { margin-top: var(--s-2); }
}

/* desktop: each world's text and each burn of the flight plan can sit on the bright band of the Milky Way; a soft local
   dark under them (zero at its own edge, no box) keeps the dim lines at 4.5:1. It comes and goes with the text. */
@media (min-width: 1024px) and (orientation: landscape) {
  html.v5-on .world { isolation: isolate; }
  html.v5-on .world::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -12% -16%;
    background: radial-gradient(closest-side, rgba(4, 4, 4, .62), rgba(4, 4, 4, .44) 62%, rgba(4, 4, 4, 0));
    opacity: 0;
    transition: opacity .5s var(--ease-out);
    pointer-events: none;
  }
  html.v5-on .world.is-in::before { opacity: 1; }
  html.v5-on .fstep { isolation: isolate; }
  html.v5-on .fstep::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -24% -18%;
    background: radial-gradient(closest-side, rgba(4, 4, 4, .6), rgba(4, 4, 4, .4) 62%, rgba(4, 4, 4, 0));
    pointer-events: none;
  }
}
