.flow-hero {
  position: relative;
  /* Acima dos overlays fixed do hero legado (.hero__content z2, .projects-section z3,
     .hero__loading z50), que de outro modo vazariam sobre esta seção. */
  z-index: 60;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--calone-graphite);
}

.flow-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Véu preto sobre o vídeo — garante contraste do texto (§15) */
.flow-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.flow-hero__overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
}
@media (min-width: 768px) {
  .flow-hero__overlay { padding: 48px; }
}
@media (min-width: 1024px) {
  .flow-hero__overlay { padding: 64px; }
}

/* ── Zone A ─────────────────────────────── */
.flow-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
/* Libera a faixa do header fixo (§12) para o blurb não encostar no CTA */
@media (min-width: 640px) {
  .flow-hero__top { padding-top: 52px; }
}

/* A frase é quebrada à mão em 3 spans. A caixa tem folga sobrando de
   propósito: se a linha mais larga encostar no max-width, a fonte
   substituta (antes da Inter carregar) ou um tamanho mínimo de fonte do
   navegador fazem o texto transbordar e a frase deixa de ler como 3 linhas. */
.flow-hero__blurb {
  display: none;
  max-width: 290px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--calone-font-sans);
  font-size: 10px;
  line-height: 1.625;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}
.flow-hero__blurb-line {
  display: block;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .flow-hero__blurb { display: block; }
}
@media (min-width: 768px) {
  .flow-hero__blurb { max-width: 360px; font-size: 11px; }
}

/* ── Zone B ─────────────────────────────── */
.flow-hero__middle {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 768px;
  padding-top: 24px;
}
@media (min-width: 768px) {
  .flow-hero__middle { padding-top: 48px; }
}

.flow-hero__headline {
  margin: 0;
  color: #fff;
  font-family: var(--calone-font-sans);
  font-size: 48px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.flow-hero__ampersand {
  font-family: "Google Sans Flex", sans-serif;
}
@media (min-width: 768px) {
  .flow-hero__headline { font-size: 72px; }
}
@media (min-width: 1024px) {
  .flow-hero__headline { font-size: 96px; }
}
@media (min-width: 1280px) {
  .flow-hero__headline { font-size: 110px; }
}

.flow-hero__body {
  max-width: 448px;
  margin: 24px 0 0;
  color: var(--calone-on-dark-muted);
  font-family: var(--calone-font-sans);
  font-size: 12px;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .flow-hero__body { margin-top: 48px; font-size: 14px; }
}

.flow-hero__cta-wrap {
  position: relative;
  width: fit-content;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .flow-hero__cta-wrap { margin-top: 48px; }
}

/* Botão principal em fundo escuro: fundo branco, texto preto (§13) */
.flow-hero__cta {
  min-height: 44px;
  background: var(--calone-white);
  color: var(--calone-black);
  font-family: var(--calone-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: 1px solid var(--calone-white);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--motion-standard) var(--ease-calone),
    transform var(--motion-standard) var(--ease-calone);
}
.flow-hero__cta:hover {
  background: var(--calone-silver);
  transform: translateY(-2px);
}
.flow-hero__cta:active {
  transform: scale(0.95);
}

/* Corner brackets (shared by CTA + arrows) */
.flow-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.flow-bracket--tl {
  top: -8px;
  left: -8px;
  border-top: 2px solid rgba(255, 255, 255, 0.40);
  border-left: 2px solid rgba(255, 255, 255, 0.40);
}
.flow-bracket--tr {
  top: -8px;
  right: -8px;
  border-top: 2px solid rgba(255, 255, 255, 0.40);
  border-right: 2px solid rgba(255, 255, 255, 0.40);
}
.flow-bracket--bl {
  bottom: -8px;
  left: -8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.40);
  border-left: 2px solid rgba(255, 255, 255, 0.40);
}
.flow-bracket--br {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.40);
  border-right: 2px solid rgba(255, 255, 255, 0.40);
}

.flow-hero__arrow-wrap .flow-bracket {
  width: 12px;
  height: 12px;
}

/* ── Zone C ─────────────────────────────── */
.flow-hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .flow-hero__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.flow-hero__arrows {
  display: flex;
  gap: 16px;
}
@media (min-width: 768px) {
  .flow-hero__arrows { gap: 24px; }
}

.flow-hero__arrow-wrap {
  position: relative;
}

/* Botão secundário em fundo escuro (§13) */
.flow-hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--calone-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--motion-standard) var(--ease-calone),
    border-color var(--motion-standard) var(--ease-calone);
}
.flow-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.flow-hero__arrow:active {
  transform: scale(0.95);
}
.flow-hero__arrow svg {
  width: 18px;
  height: 18px;
}

.flow-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  gap: 12px;
}
@media (min-width: 768px) {
  .flow-hero__right { align-items: flex-end; gap: 16px; }
}

.flow-experience {
  width: min(234px, calc(100vw - 40px));
  color: #d8d8d8;
  font-family: var(--calone-font-sans);
  text-transform: uppercase;
}

.flow-experience__card {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 72px;
  overflow: hidden;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid #2f323b;
  border-radius: 4px;
}

.flow-experience__established,
.flow-experience__statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-experience__established {
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-right: 1px solid #2f323b;
  text-align: center;
}

.flow-experience__globe {
  display: block;
  width: 34px;
  height: auto;
}

.flow-experience__date,
.flow-experience__statement span {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.flow-experience__statement {
  align-items: flex-start;
  padding: 12px 15px;
}

@media (max-width: 520px) {
  .flow-experience__card {
    grid-template-columns: 40% 60%;
    min-height: 72px;
  }

  .flow-experience__established {
    gap: 6px;
    padding: 10px;
  }

  .flow-experience__globe { width: 34px; }
  .flow-experience__date,
  .flow-experience__statement span { font-size: 11.5px; }
  .flow-experience__statement { padding: 12px 15px; }
}

.flow-hero__counter {
  color: #fff;
  font-family: var(--calone-font-sans);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}
@media (min-width: 768px) {
  .flow-hero__counter { font-size: 72px; }
}
@media (min-width: 1024px) {
  .flow-hero__counter { font-size: 96px; }
}
@media (min-width: 1280px) {
  .flow-hero__counter { font-size: 110px; }
}

.flow-hero__thumbs {
  display: flex;
  gap: 8px;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.flow-hero__thumbs::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .flow-hero__thumbs { gap: 10px; }
}

.flow-thumb {
  position: relative;
  display: block;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: all var(--motion-standard) var(--ease-calone);
}

.flow-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .flow-thumb img { width: 80px; height: 80px; }
}
@media (min-width: 1024px) {
  .flow-thumb img { width: 96px; height: 96px; }
}

.flow-thumb__chrome {
  display: none;
}
.flow-thumb.is-active .flow-thumb__chrome {
  display: block;
}

.flow-thumb__frame {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 2px solid #fff;
  pointer-events: none;
}

.flow-thumb__dot {
  position: absolute;
  z-index: 20;
  width: 8px;
  height: 8px;
  background: #fff;
  pointer-events: none;
}
.flow-thumb__dot--tl { top: -4px; left: -4px; }
.flow-thumb__dot--tr { top: -4px; right: -4px; }
.flow-thumb__dot--bl { bottom: -4px; left: -4px; }
.flow-thumb__dot--br { bottom: -4px; right: -4px; }
.flow-thumb__dot--t { top: -4px; left: 50%; transform: translateX(-50%); }
.flow-thumb__dot--b { bottom: -4px; left: 50%; transform: translateX(-50%); }
.flow-thumb__dot--l { left: -4px; top: 50%; transform: translateY(-50%); }
.flow-thumb__dot--r { right: -4px; top: 50%; transform: translateY(-50%); }

/* ── Mobile: composição centrada e legível ─────────────── */
@media (max-width: 767px) {
  /* Véu mais denso: no mobile o texto cobre a maior parte do vídeo */
  .flow-hero::after {
    background: rgba(0, 0, 0, 0.68);
  }

  .flow-hero__overlay {
    padding: 24px 24px 32px;
  }

  /* Bloco central: centralizado na tela, livre da faixa do header fixo */
  .flow-hero__middle {
    justify-content: center;
    align-items: center;
    padding-top: 72px;
    text-align: center;
  }

  .flow-hero__headline {
    font-size: 44px;
  }

  .flow-hero__body {
    margin: 20px auto 0;
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.7;
  }

  .flow-hero__cta-wrap {
    margin: 28px auto 0;
  }

  /* Rodapé centralizado — sobrescreve o alinhamento à direita do desktop */
  .flow-hero__bottom {
    align-items: center;
  }

  .flow-hero__right {
    margin-left: 0;
    align-items: center;
  }

  .flow-experience {
    margin: 0 auto;
  }
}
