/* =====================================================================
   Página inicial
   ===================================================================== */

/* ---------- Secções de ecrã inteiro com viatura (hero + destaques) ---------- */
.fs {
  --wall: #f1f1f4;
  --floor: #5c5d62;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--wall);
  isolation: isolate;
}
.fs__media {
  --h: min(76%, calc(68vw / 1.5));
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(var(--wall) calc(94% - .28 * var(--h)), var(--floor) 0);
}
/* Prolonga a parede e o chão da foto para os lados (colunas das margens, lidas em home.js) */
.fs__edge { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; }
.fs:not(.fs--hero) .fs__media img {
  position: absolute; left: 50%; bottom: 6%;
  height: var(--h); width: auto; max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 30%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 30%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
.fs__top { position: relative; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px)); }
.fs__eyebrow { color: var(--ink-2); margin-bottom: 14px; }
.fs__title {
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.fs__title--hero { font-size: clamp(40px, 4.4vw, 68px); max-width: 17ch; text-wrap: balance; }
.fs__sub { margin-top: 16px; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-2); }
.fs__version { display: inline-block; max-width: 44ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.fs__meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-2); }
.fs__meta strong { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
/* Legibilidade do texto sobreposto às fotos (fotos de garagem, fundo variável) */
.fs__title, .fs__title--hero, .fs__sub, .fs__meta, .fs__eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.18), 0 2px 22px rgba(0,0,0,.22); }
.fs__meta strong { text-shadow: 0 1px 2px rgba(0,0,0,.2); }

.fs__bottom {
  position: absolute; inset: auto 0 0 0;
  padding: 0 var(--gutter) clamp(24px, 5vh, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.fs__actions { display: flex; gap: 12px; justify-content: center; }
.fs__actions .btn { min-width: 220px; }
.fs__caption {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 5vh, 48px);
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 13px; color: rgba(255, 255, 255, .86);
}
.fs[data-floor="light"] .fs__caption { color: var(--ink-2); }
.fs__caption:hover { text-decoration: underline; text-underline-offset: 4px; }

/* =====================================================================
   Hero: montra rotativa com entrada cinematográfica
   ===================================================================== */
@property --wall { syntax: '<color>'; inherits: true; initial-value: #f1f1f4; }
@property --floor { syntax: '<color>'; inherits: true; initial-value: #5c5d62; }
.fs--hero { transition: --wall 1.1s var(--ease), --floor 1.1s var(--ease); }
.fs--hero .fs__media { --h: min(66%, calc(64vw / 1.5)); background: none; will-change: translate; }

.hs__slide {
  position: absolute; inset: 0;
  background: linear-gradient(var(--wall) 50%, var(--floor) 0);
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hs__slide.is-active { opacity: 1; z-index: 1; }
.hs__pos {
  position: absolute; left: 54%; bottom: 6%; height: var(--h);
  transform: translateX(-50%); transform-origin: 50% 85%;
  scale: 1; transition: scale 0s linear 1.2s;
}
/* Ken Burns: aproximação lenta enquanto a foto está ativa */
.hs__slide.is-kb .hs__pos { scale: 1.06; transition: scale 9s linear; }
.hs__pos img {
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 30%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 30%, #000 86%, transparent 100%);
          mask-composite: intersect;
}

/* Entrada: estado inicial (só com JS e sem movimento reduzido) */
.fs--hero.is-pre .hs-in,
.fs--hero.is-pre .hs-w,
.fs--hero.is-pre .hs__slide.is-active img,
.fs--hero.is-pre .hs__slide.is-active .fs__edge { opacity: 0; }
.hs-w { display: inline-block; }
.fs--hero.is-intro .hs-in { animation: hs-up .9s var(--ease) var(--d, 0s) both; }
.fs--hero.is-intro .hs-w { animation: hs-word .85s cubic-bezier(.2, .8, .2, 1) calc(.08s + var(--i) * .055s) both; }
.fs--hero.is-intro .hs__slide.is-active img { animation: hs-car 1.3s cubic-bezier(.16, .8, .24, 1) .05s both; }
.fs--hero.is-intro .hs__slide.is-active .fs__edge { animation: hs-fade .9s var(--ease) both; }
@keyframes hs-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hs-word { from { opacity: 0; transform: translateY(.42em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hs-car { from { opacity: 0; translate: 7% 0; scale: 1.06; filter: blur(16px); } 55% { filter: blur(0); } to { opacity: 1; translate: 0 0; scale: 1; filter: none; } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }

/* Legenda (muda com a foto) */
.fs--hero .fs__caption { gap: 8px; max-width: calc(50% - 260px); transition: opacity .3s var(--ease), color .6s var(--ease); }
.fs--hero .fs__caption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs--hero .fs__caption .icon { transition: transform .25s var(--ease); }
.fs--hero .fs__caption:hover .icon { transform: translateX(3px); }
.fs__caption.is-swap { opacity: 0; }

/* Progresso em segmentos */
.hs-ctrl {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 5vh, 48px);
  display: flex; align-items: center; gap: 4px;
  --seg: rgba(255, 255, 255, .34); --seg-on: #fff;
}
.fs--hero[data-floor="light"] .hs-ctrl { --seg: rgba(5, 20, 31, .2); --seg-on: var(--ink); }
.hs-prog { display: flex; }
.hs-prog button { width: 30px; height: 44px; display: grid; align-items: center; padding: 0 3px; }
.hs-prog i { display: block; height: 2px; background: var(--seg); overflow: hidden; transition: background-color .6s var(--ease); }
.hs-prog b { display: block; height: 100%; background: var(--seg-on); transform: scaleX(0); transform-origin: 0 50%; }
.hs-prog button.is-done b, .hs-prog button[aria-current="true"].is-static b { transform: scaleX(1); }
.hs-prog button:hover i { background: var(--seg-on); }
.hs-pause { width: 44px; height: 44px; display: grid; place-items: center; color: var(--seg-on); }
.hs-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hs-pause .hs-pause__on, .hs-pause[aria-pressed="true"] .hs-pause__off { display: none; }
.hs-pause[aria-pressed="true"] .hs-pause__on { display: block; }
.hs-pause:hover { background: rgba(255, 255, 255, .12); }
.fs--hero[data-floor="light"] .hs-pause:hover { background: rgba(5, 20, 31, .06); }

/* Desktop: deslize por secções (só com rato e ecrã largo) */
@media (min-width: 1081px) and (hover: hover) and (orientation: landscape) {
  html:has(body.page-home) { scroll-snap-type: y proximity; }
  .fs { scroll-snap-align: start; }
}

/* Indicador lateral */
.fs-dots {
  position: fixed; right: 14px; top: 50%; z-index: 30;
  display: flex; flex-direction: column;
  transform: translate(8px, -50%); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.fs-dots.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.fs-dots button { width: 44px; height: 32px; display: grid; place-items: center; }
.fs-dots span { width: 2px; height: 16px; background: rgba(5, 20, 31, .22); transition: background-color .3s var(--ease), height .3s var(--ease); }
.fs-dots button:hover span { background: rgba(5, 20, 31, .5); }
.fs-dots button[aria-current="true"] span { height: 28px; background: var(--ink); }
@media (max-width: 1080px), (hover: none) { .fs-dots { display: none; } }

/* Retrato (telemóvel / tablet ao alto): viatura inteira, texto em cima, botões no chão */
@media (orientation: portrait), (max-width: 700px) {
  .fs { display: flex; flex-direction: column; min-height: 560px; }
  .fs__top { order: 1; flex: none; padding-top: calc(var(--nav-h) + clamp(16px, 7vh, 72px)); }
  .fs__eyebrow { margin-bottom: 10px; font-size: 11px; }
  .fs__title, .fs__title--hero { font-size: clamp(36px, 10.4vw, 64px); }
  .fs__sub { margin-top: 12px; font-size: 15px; }
  .fs__version { max-width: 100%; }
  .fs__meta { font-size: 15px; gap: 2px 14px; }
  .fs__meta strong { font-size: 18px; }

  .fs__media { order: 2; position: relative; inset: auto; z-index: 0; flex: 1 1 auto; min-height: 0; overflow: visible; }
  .fs__edge { display: none; }
  .fs__media { background: var(--wall); }
  .fs:not(.fs--hero) .fs__media img {
    position: absolute; left: 50%; bottom: 0;
    width: 114%; max-width: none; height: auto;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }

  .fs__bottom {
    order: 3; position: relative; inset: auto; flex: none; z-index: 1;
    background: var(--floor);
    padding: 6px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .fs__bottom::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px;
    background: linear-gradient(to bottom, transparent, var(--floor));
    pointer-events: none;
  }
  .fs__actions { width: 100%; max-width: 480px; flex-direction: column; gap: 10px; }
  .fs__actions .btn { min-width: 0; width: 100%; min-height: 50px; }
  .fs__caption { position: static; font-size: 12px; min-height: 40px; }

  .fs--hero .fs__media { will-change: auto; }
  .hs__slide { background: none; }
  .hs__pos { left: 50%; bottom: 0; height: auto; width: 114%; transform-origin: 50% 100%; }
  .hs__pos img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
  .fs--hero .fs__caption { max-width: 100%; order: -2; }
  .hs-ctrl { position: static; order: -1; width: 100%; max-width: 480px; margin: -6px 0 4px; }
  .hs-prog { flex: 1; }
  .hs-prog button { flex: 1; width: auto; }

  /* Chão escuro: botões claros */
  .fs:not([data-floor="light"]) .fs__actions .btn-dark { background: #fff; color: var(--ink); }
  .fs:not([data-floor="light"]) .fs__actions .btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); backdrop-filter: none; }
  .fs:not([data-floor="light"]) .fs__actions .btn-light:hover { background: #fff; color: var(--ink); }
  /* Chão claro: botões escuros */
  .fs[data-floor="light"] .fs__actions .btn-light { background: transparent; border-color: var(--ink); }
}
/* Telemóveis baixos: compacta */
@media (orientation: portrait) and (max-height: 700px) {
  .fs__title, .fs__title--hero { font-size: 32px; }
  .fs__sub { margin-top: 8px; }
  .fs__actions { flex-direction: row; }
  .fs__actions .btn { flex: 1; padding: 0 12px; }
}

/* ---------- Pesquisa rápida ---------- */
.quick { padding-bottom: clamp(32px, 4vw, 56px); }
.quick__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.quick__groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px 64px; }
.quick__group h3 { margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font-size: 14px; font-weight: 500; border: 1px solid var(--line-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip small { font-size: 12px; font-weight: 400; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip--ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 0 10px; }
@media (max-width: 900px) { .quick__groups { grid-template-columns: 1fr; } }

/* ---------- Acabados de chegar (carrossel) ---------- */
.latest { padding-top: clamp(48px, 6vw, 96px); }
.latest__nav { display: flex; gap: 8px; }
.latest__arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .2s var(--ease), opacity .2s var(--ease); }
.latest__arrow:hover { border-color: var(--ink); }
.latest__arrow[disabled] { opacity: .3; pointer-events: none; }
.rail {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - 3 * 24px) / 4);
  gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 0 var(--edge) 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; min-width: 0; }
.rail .car-card { height: 100%; }
.latest__all { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1080px) { .rail { grid-auto-columns: calc((100vw - 2 * var(--gutter) - 2 * 20px) / 2.4); gap: 20px; } }
@media (max-width: 640px) {
  .rail { grid-auto-columns: 80vw; gap: 16px; }
  .latest__nav { display: none; }
  .latest__all { width: 100%; }
}

/* ---------- Porquê a Aguiar ---------- */
.why__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.why__head .eyebrow { grid-column: 1 / -1; }
.why__head .h1 { max-width: 16ch; }
.why__more { margin-top: 32px; }
@media (max-width: 900px) { .why__head { grid-template-columns: 1fr; } }

/* ---------- Histórias ---------- */
.stories { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 112px) 0; }
.stories__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end; }
.stories .eyebrow { color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.stories .h2 { max-width: 22ch; }
.stories__side p { color: rgba(255, 255, 255, .72); font-size: 16px; margin-bottom: 24px; max-width: 42ch; }
@media (max-width: 900px) { .stories__inner { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stories__side .btn { width: 100%; } }

/* ---------- Retoma + Financiamento ---------- */
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__card {
  display: flex; flex-direction: column; min-height: clamp(320px, 34vw, 460px);
  padding: clamp(28px, 4vw, 56px); background: var(--soft);
  transition: background-color .3s var(--ease);
}
.duo__card:hover { background: var(--soft-2); }
.duo__card > .icon { margin-bottom: auto; stroke-width: 1.3; }
.duo__card .eyebrow { margin: 40px 0 12px; }
.duo__card .h2 { max-width: 16ch; }
.duo__text { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.duo__card .link-arrow { margin-top: 28px; }
.duo__card:hover .link-arrow .icon { transform: translateX(4px); }
@media (max-width: 760px) { .duo__grid { grid-template-columns: 1fr; } .duo__card { min-height: 0; } }

/* ---------- Visite-nos ---------- */
.visit { padding-top: 0; }
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px clamp(40px, 6vw, 96px); align-items: stretch; }
.visit__info .eyebrow { margin-bottom: 14px; }
.visit__info .h1 { max-width: 14ch; }
.visit__list { margin: 36px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.visit__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit__list dt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); align-self: start; padding-top: 2px; }
.visit__list dt .icon { color: var(--muted); }
.visit__list dd { margin: 0; color: var(--ink-2); }
.visit__list dd a { color: var(--ink); font-weight: 500; }
.visit__list dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit__list .muted { font-size: 12px; }
.visit__hour { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.visit__hour + .visit__hour { margin-top: 4px; }
.visit__hour span:first-child { color: var(--ink); }
.visit__map { position: relative; min-height: 440px; background: var(--soft); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit__map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center; color: var(--ink-2); }
.visit__map-ph .icon { color: var(--ink); stroke-width: 1.3; }
.visit__map-ph strong { color: var(--ink); font-weight: 600; }
.visit__map-note { font-size: 12px; color: var(--muted); }
.visit__map.is-loaded .visit__map-ph { display: none; }
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { min-height: 340px; }
}
@media (max-width: 520px) {
  .visit__list > div { grid-template-columns: 1fr; }
  .visit .btn-row .btn { flex: 1 1 100%; }
}

/* =========================================================
   Hero "showroom": nome gigante, viatura recortada, ficha e pesquisa rápida
   ========================================================= */
.sh { position: relative; --sh-bg: #eef0f1; --sh-h: max(680px, min(100svh, 940px)); }
.sh__stage { position: relative; height: var(--sh-h); overflow: hidden; background: var(--sh-bg); transition: background-color 1s var(--ease); isolation: isolate; }

/* viatura: moldura 2:1 que corta o topo da foto (marca de água) e funde as margens com o fundo */
.sh__cars { position: absolute; z-index: 1; right: max(0px, calc((100vw - 1600px) / 2)); bottom: 128px; width: min(68vw, calc((var(--sh-h) - 300px) * 2)); aspect-ratio: 2 / 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 92%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 92%, transparent 100%); mask-composite: intersect; }
.sh__car { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; max-width: none; opacity: 0; transform: translateX(5%) scale(.985); transform-origin: 50% 80%; transition: opacity .8s var(--ease), transform 1.2s cubic-bezier(.16, .8, .24, 1); }
.sh__car.is-on { opacity: 1; transform: none; }
.sh__car.is-out { opacity: 0; transform: translateX(-5%) scale(.985); }

/* nome do modelo em letra gigante, por cima mas "em multiply": nota-se no fundo, some-se na carroçaria */
.sh__words { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.sh__word { position: absolute; right: max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter))); top: calc(var(--nav-h) + 4vh); font-family: var(--font-display); font-weight: 600; font-size: clamp(110px, 15vw, 250px); line-height: .82; letter-spacing: -0.06em; color: rgb(214, 218, 223); mix-blend-mode: multiply; white-space: nowrap; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.sh__word.is-long { font-size: clamp(84px, 11vw, 190px); }
.sh__word.is-on { opacity: 1; transform: none; }
.sh__word.is-out { opacity: 0; transform: translateY(-20px); }

.sh__top { position: relative; z-index: 3; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 64px)); }
.sh__top .eyebrow { color: var(--ink-2); margin-bottom: 14px; }
.sh__title { font-size: clamp(36px, 3.7vw, 58px); line-height: 1.03; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance; }

.sh__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 92px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; pointer-events: none; }
.sh__bottom > * { pointer-events: auto; }
.sh__info { min-width: 0; max-width: 440px; }
.sh__card[hidden] { display: none; }
.sh__card { animation: sh-card .6s var(--ease) both; }
@keyframes sh-card { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sh__brand { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sh__name { margin-top: 6px; font-family: var(--font-display); font-size: clamp(24px, 2.1vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.sh__name a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.sh__specs { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.sh__row { margin-top: 18px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sh__price { font-family: var(--font-display); font-size: clamp(24px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }

.sh__nav { display: flex; align-items: center; gap: 4px; }
.sh__thumb { position: relative; display: grid; gap: 8px; padding: 6px 4px; min-width: 64px; text-align: left; color: var(--muted); transition: color .3s var(--ease); }
.sh__thumb img { display: none; }
.sh__thumb span { font-size: 13px; font-weight: 500; white-space: nowrap; }
.sh__thumb:hover, .sh__thumb[aria-current="true"] { color: var(--ink); }
.sh__thumb i { display: block; height: 2px; background: rgba(5, 20, 31, .14); overflow: hidden; }
.sh__thumb b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.sh__pause { width: 40px; height: 40px; display: grid; place-items: center; margin-left: 10px; border: 1px solid rgba(5, 20, 31, .18); }
.sh__pause svg { width: 14px; height: 14px; fill: var(--ink); }
.sh__pause .sh__p-on, .sh__pause.is-paused .sh__p-off { display: none; }
.sh__pause.is-paused .sh__p-on { display: block; }

/* Pesquisa rápida */
.sh__find { position: relative; z-index: 4; margin-top: -48px; }
.sh-find { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; align-items: stretch; background: #fff; box-shadow: 0 24px 60px -30px rgba(5, 20, 31, .4); border: 1px solid var(--line); }
.sh-find__label { display: flex; align-items: center; padding: 0 28px; font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; border-right: 1px solid var(--line); white-space: nowrap; }
.sh-find__f { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 12px 24px; border-right: 1px solid var(--line); cursor: pointer; min-height: 76px; }
.sh-find__f span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sh-find__f select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2305141f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center no-repeat; padding: 4px 22px 0 0; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; width: 100%; }
.sh-find__f select:focus { outline: none; }
.sh-find__f:focus-within { background: var(--soft); }
.sh-find__go { border-radius: 0; min-height: 76px; padding: 0 32px; gap: 10px; white-space: nowrap; }
.sh-find__go:disabled { opacity: .5; cursor: not-allowed; }

/* entrada */
.sh.is-pre .sh-in, .sh.is-pre .sh__car.is-on, .sh.is-pre .sh__word.is-on, .sh.is-pre .sh__card.is-on { opacity: 0; }
.sh.is-intro .sh-in { animation: hs-up .9s var(--ease) var(--d, 0s) both; }
.sh.is-intro .sh__word.is-on { animation: sh-word 1.2s cubic-bezier(.16, .8, .24, 1) .1s both; }
.sh.is-intro .sh__car.is-on { animation: sh-car 1.4s cubic-bezier(.16, .8, .24, 1) .25s both; }
.sh.is-intro .sh__card.is-on { animation: sh-card .8s var(--ease) .55s both; }
@keyframes sh-word { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sh-car { from { opacity: 0; transform: translateX(8%) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .sh__cars { width: 76vw; bottom: 150px; }
  .sh-find { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .sh-find__label { display: none; }
  .sh__nav .sh__thumb span { font-size: 12px; }
}
@media (max-width: 760px) {
  .sh { --sh-h: auto; }
  .sh__stage { display: flex; flex-direction: column; }
  .sh__top { order: 1; padding-top: calc(var(--nav-h) + 20px); }
  .sh__title { font-size: clamp(30px, 8.6vw, 40px); max-width: 13ch; }
  .sh__words { position: relative; order: 2; height: 0; }
  .sh__word, .sh__word.is-long { right: auto; left: var(--gutter); top: 20px; font-size: clamp(64px, 21vw, 110px); }
  .sh__word.is-long { font-size: clamp(48px, 15vw, 84px); }
  .sh__cars { position: relative; order: 3; right: auto; bottom: auto; width: 116vw; margin: 28px 0 0 -8vw; }
  .sh__bottom { position: relative; order: 4; bottom: auto; flex-direction: column; align-items: stretch; gap: 18px; padding-top: 0; padding-bottom: 72px; }
  .sh__info { max-width: none; }
  .sh__nav { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .sh__nav::-webkit-scrollbar { display: none; }
  .sh__thumb { flex: none; }
  .sh__row .btn { flex: 1; justify-content: center; }
  .sh__find { margin-top: -44px; }
  .sh-find { grid-template-columns: 1fr 1fr; }
  .sh-find__f { min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .sh-find__f:nth-child(3) { border-right: 0; }
  .sh-find__f:nth-child(4) { grid-column: 1 / -1; border-right: 0; }
  .sh-find__go { grid-column: 1 / -1; min-height: 60px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sh__car, .sh__word { transition: opacity .3s linear; }
}
