/* =====================================================================
   VALENTEC — Página Sobre (pages/sobre.html)
   ---------------------------------------------------------------------
   Todos os estilos exclusivos da página Sobre ficam neste arquivo.
   Estilos compartilhados (tokens, botões, cabeçalho, rodapé, .rv,
   .mute, .wrap) continuam em assets/css/main.css.

   Índice
     1. Títulos de seção (padrão compartilhado pelas seções 2 a 5)
     2. Hero — Quem somos ............... .qs
     3. Nossa história ................. .story
     4. Missão, visão e valores ........ .mvv
     5. Princípios ..................... .tenets
     6. Equipe ......................... .crew

   Convenções
     - Cada seção traz primeiro as regras base e, logo abaixo, as
       variações por breakpoint: 1024px (tablet) e 720px (celular).
     - Efeitos de hover ficam em @media (hover:hover) para não
       "grudarem" em telas de toque.
     - Comportamentos em JS (assets/js/pages/sobre.js): a classe .on
       nos capítulos da história, o preenchimento de .sl-track b e o
       clip-path/escala da foto da equipe.
   ===================================================================== */


/* =====================================================================
   1. Títulos de seção
   ===================================================================== */
.story-side h2,
.mvv-head h2,
.tn-head h2,
.crew-head h2 {
  margin-top: 0;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
}

@media (max-width: 720px) {
  .story-side h2,
  .mvv-head h2,
  .tn-head h2,
  .crew-head h2 {
    font-size: clamp(30px, 8.6vw, 38px);
  }
}


/* =====================================================================
   2. Hero — Quem somos
   Foto de fundo com camadas de gradiente; texto à esquerda.
   ===================================================================== */
.qs {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(700px, 100svh, 920px);
  padding: calc(var(--hh) + 48px) 0 80px;
  background: var(--navy);
  color: #fff;
}

/* modificador com foto: posição do recorte por breakpoint */
.qs--photo {
  --qs-pos: center center;
  --qs-pos-t: 60% center;
  --qs-pos-m: 42% center;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(2,11,28,.9) 0%, rgba(2,11,28,.74) 38%, rgba(2,11,28,.5) 68%, rgba(2,11,28,.38) 100%),
    linear-gradient(0deg, rgba(2,11,28,.55) 0%, rgba(2,11,28,0) 30%),
    linear-gradient(180deg, rgba(2,11,28,.55) 0%, rgba(2,11,28,0) 22%),
    url("../../images/sobre/hero-sobre.webp");
  background-size: cover;
  background-position: center, center, center, var(--qs-pos);
  background-repeat: no-repeat;
}

.qs-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  width: 100%;
}

.qs-copy {
  grid-column: 1 / span 6;
}

.qs--photo .qs-copy {
  grid-column: 1 / span 7;
}

.qs-copy h1 {
  max-width: 11em;
  margin-top: 0;
  font-size: clamp(2.7rem, 4.9vw, 5.1rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.qs--photo .qs-copy h1 {
  max-width: 12em;
}

.qs-lead {
  max-width: 33em;
  margin-top: 28px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
  color: rgba(226,234,255,.8);
}

.qs--photo .qs-lead {
  color: rgba(236,242,255,.86);
}

.qs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

/* link "Nossa história" */
.ab-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ab-link svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform .5s var(--ease);
}

.ab-link:hover svg {
  transform: rotate(90deg) translateX(4px);
}

@media (max-width: 1024px) {
  .qs {
    padding-bottom: 64px;
  }

  .qs--photo {
    background-position: center, center, center, var(--qs-pos-t);
  }

  .qs-copy,
  .qs--photo .qs-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .qs {
    padding-top: calc(var(--hh) + 32px);
  }

  .qs--photo {
    background-image:
      linear-gradient(180deg, rgba(2,11,28,.72) 0%, rgba(2,11,28,.8) 40%, rgba(2,11,28,.9) 100%),
      url("../../images/sobre/hero-sobre.webp");
    background-position: center, var(--qs-pos-m);
  }

  .qs-copy h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
    line-height: 1.06;
  }

  .qs-lead {
    font-size: 16px;
  }

  .qs-actions {
    gap: 20px;
  }

  .qs-actions .btn {
    width: 100%;
    justify-content: space-between;
  }
}


/* =====================================================================
   3. Nossa história
   Coluna fixa com o título + linha do tempo que se preenche com a
   rolagem (.sl-track b e .st.on controlados por sobre.js).
   ===================================================================== */
.story {
  padding-block: clamp(96px, 10vw, 150px);
  background: #fff;
  scroll-margin-top: var(--hh);
}

.story-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}

.story-side {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--hh) + 48px);
}

.story-side > p:last-child {
  max-width: 28ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tx-2);
}

/* linha do tempo */
.story-line {
  grid-column: 6 / -1;
  position: relative;
  padding-left: 64px;
}

.sl-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 17px;
  width: 2px;
  background: var(--line);
}

.sl-track b {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transform: scaleY(0);
  transform-origin: top;
}

/* capítulo */
.st {
  position: relative;
  padding-bottom: clamp(64px, 7vw, 110px);
}

.st:last-child {
  padding-bottom: 0;
}

.st-dot {
  position: absolute;
  top: 0;
  left: -64px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  transition: background .5s, border-color .5s, box-shadow .5s;
}

.st-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background .5s;
}

.st.on .st-dot {
  border-color: var(--brand);
  box-shadow: 0 0 0 8px rgba(62,139,255,.14);
}

.st.on .st-dot::after {
  background: var(--brand-2);
}

.st-n {
  display: block;
  padding-top: 8px;
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-2);
}

.st h3 {
  margin-top: 14px;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--navy);
}

.st p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--tx-2);
}

.st-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.st-tags li {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--navy);
}

/* último capítulo: logo no marcador + frase de fechamento */
.st--end .st-dot::after {
  display: none;
}

.st--end .st-dot svg {
  width: 20px;
  height: 20px;
  color: var(--tx-3);
  transition: color .5s;
}

.st--end.on .st-dot {
  border-color: var(--navy);
  background: var(--navy);
}

.st--end.on .st-dot svg {
  color: #fff;
}

.st-quote {
  max-width: 18em;
  margin: 16px 0 0;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.035em;
}

/* palavras geradas por main.js ([data-highlight]); aqui ficam sempre acesas */
.st-quote .w {
  opacity: 1;
  color: var(--navy);
}

@media (max-width: 1024px) {
  .story-side {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 48px;
  }

  .story-line {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .story {
    padding-block: 72px;
  }

  .story-line {
    padding-left: 48px;
  }

  .sl-track {
    left: 13px;
  }

  .st-dot {
    left: -48px;
    width: 28px;
    height: 28px;
  }

  .st--end .st-dot svg {
    width: 16px;
    height: 16px;
  }

  .st-n {
    padding-top: 5px;
  }

  .st p {
    font-size: 16px;
  }

  .st-quote {
    font-size: clamp(24px, 7.4vw, 30px);
  }
}


/* =====================================================================
   4. Missão, visão e valores
   Cartões com foto no alto que se funde no marinho.
   ===================================================================== */
.mvv {
  padding-block: clamp(96px, 10vw, 150px);
  background: var(--navy);
  color: #fff;
}

.mvv-head {
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.mv {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 42vw, 600px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #04112a;
  transition: border-color .5s;
}

.mv > img {
  position: absolute;
  inset: 0;
  bottom: auto;
  z-index: -2;
  width: 100%;
  height: 66%;
  object-fit: cover;
  object-position: center top;
}

/* fusão da foto com o fundo do cartão */
.mv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4,17,42,0) 0%, rgba(4,17,42,0) 34%, rgba(4,17,42,.75) 56%, #04112a 68%, #04112a 100%);
}

/* barra azul que cresce no hover */
.mv::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}

.mv-body {
  padding: clamp(24px, 2.4vw, 32px);
}

.mv-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(4,17,42,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--fm);
  font-size: 11.5px;
}

.mv-k svg {
  width: 15px;
  height: 15px;
  color: #8cbcff;
}

.mv h3 {
  margin-top: 18px;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.mv p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(222,233,255,.8);
}

.mv-vals {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.mv-vals li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,.92);
}

.mv-vals li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

@media (hover: hover) {
  .mv:hover {
    border-color: rgba(62,139,255,.45);
  }

  .mv:hover::after {
    transform: scaleX(1);
  }
}

@media (max-width: 1024px) {
  .mvv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mv:last-child {
    grid-column: 1 / -1;
    min-height: 440px;
  }
}

@media (max-width: 720px) {
  .mvv {
    padding-block: 72px;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .mv,
  .mv:last-child {
    min-height: 460px;
  }

  .mv > img {
    height: 62%;
  }
}


/* =====================================================================
   5. Princípios
   Lista editorial; no hover a linha é preenchida de marinho.
   ===================================================================== */
.tenets {
  padding-block: clamp(88px, 9vw, 140px);
  background: var(--bg-2);
}

.tn-list {
  margin-top: clamp(40px, 4.5vw, 64px);
  border-top: 1px solid var(--navy);
}

.tn {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 56px;
  gap: 24px;
  align-items: center;
  padding: 34px 20px 34px 8px;
  border-bottom: 1px solid var(--line-2);
  transition: color .5s, padding .6s var(--ease);
}

/* fundo marinho que sobe no hover */
.tn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease);
}

.tn h3 {
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.tn p {
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tx-2);
  transition: color .5s;
}

.tn-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--navy);
  transition: background .5s, color .5s, border-color .5s, transform .7s var(--ease);
}

.tn-ic svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .tn:hover {
    padding-left: 28px;
    color: #fff;
  }

  .tn:hover::before {
    transform: scaleY(1);
    transform-origin: top;
  }

  .tn:hover p {
    color: rgba(222,233,255,.78);
  }

  .tn:hover .tn-ic {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    transform: rotate(-20deg);
  }
}

/* tablet e celular: título e texto empilhados, ícone à direita */
@media (max-width: 1024px) {
  .tn {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .tn h3,
  .tn p {
    grid-column: 1;
  }

  .tn-ic {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .tenets {
    padding-block: 72px;
  }

  .tn {
    gap: 10px 16px;
    padding: 26px 4px;
  }

  .tn-ic {
    align-self: start;
    width: 44px;
    height: 44px;
  }
}


/* =====================================================================
   6. Equipe
   Foto que "abre" com a rolagem (clip-path e escala em sobre.js)
   + cartão com as áreas do time.
   ===================================================================== */
.crew {
  padding-block: clamp(88px, 9vw, 140px);
  background: #fff;
}

.crew-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.crew-head h2 {
  max-width: 13em;
}

.crew-head p {
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tx-2);
}

.crew-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1837 / 856;
  margin: 0;
  border-radius: 14px;
  background: #0a1630;
  clip-path: inset(0 round 14px);
}

.crew-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center;
}

.crew-card {
  position: absolute;
  bottom: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  max-width: 330px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
  color: var(--navy);
}

.crew-card b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--fm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tx-3);
}

.crew-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
}

.crew-card svg {
  width: 16px;
  height: 16px;
  color: var(--brand-2);
}

@media (max-width: 1024px) {
  .crew-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* celular: foto em 4:3 e cartão abaixo dela */
@media (max-width: 720px) {
  .crew {
    padding-block: 72px;
  }

  .crew-media {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    background: var(--bg-2);
  }

  .crew-media img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: 58% center;
  }

  .crew-card {
    position: static;
    max-width: none;
    padding: 20px;
    border-radius: 0;
    background: var(--bg-2);
    box-shadow: none;
  }
}