/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  transition:
    background-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.site-header.is-scrolled,
html.menu-open .site-header {
  background: rgb(9 16 14 / 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 32px -20px rgb(0 0 0 / 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding-inline: var(--page-x);
}

/* Logo: bússola + nome */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--brand-cream);
  text-decoration: none;
  border-radius: 8px;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.brand__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-logo);
  line-height: 1;
  text-transform: uppercase;
}

.brand__kicker {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.28rem;
}

.brand__name {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Navegação desktop */
.site-nav,
.site-header__cta {
  display: none;
}

.site-nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.3vw, 2.5rem);
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Botão do menu (celular) */
.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  border-radius: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle__icon {
  position: relative;
  width: 1.375rem;
  height: 0.75rem;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.35s var(--ease-out),
    top 0.35s var(--ease-out),
    width 0.35s var(--ease-out);
}

.menu-toggle__icon::before {
  top: 0;
  width: 100%;
}

.menu-toggle__icon::after {
  top: calc(100% - 2px);
  width: 68%;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: calc(50% - 1px);
  width: 100%;
  transform: rotate(-45deg);
}

/* Menu do celular */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem var(--page-x) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgb(9 16 14 / 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.mobile-menu__list a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mobile-menu__footer {
  margin-top: auto;
}

.mobile-menu__note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-align: center;
}

@media (min-width: 1000px) {
  .site-header__inner {
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .site-header .brand {
    gap: 0.85rem;
  }

  .site-header .brand__mark {
    width: 3.6rem;
    height: 3.6rem;
  }

  /* Proporções do logo oficial: INSTITUTO a 68% do nome, mesma largura visual */
  .site-header .brand__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.32rem;
  }

  .site-header .brand__name {
    font-size: 1.03rem;
    line-height: 1.04;
  }

  .site-header .brand__name span {
    display: block;
  }

  .site-nav,
  .site-header__cta {
    display: block;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

@media (min-width: 1000px) and (max-height: 700px) {
  .site-header .brand__mark {
    width: 3.1rem;
    height: 3.1rem;
  }
}

/* ==========================================================================
   Hero — sempre 100% da altura da tela (100svh)
   Celular: foto em cima, texto preso embaixo; a foto é a parte elástica.
   ========================================================================== */

.hero {
  --overlap: clamp(5rem, 15svh, 9rem);
  --h1: clamp(1.75rem, min(7.9vw, 4.7svh), 2.9rem);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-photo);
}

.hero__photo {
  position: relative;
  z-index: -1;
  flex: 1 1 auto;
  min-height: 9rem;
  margin-top: calc(var(--nav-h) - 1rem);
  margin-bottom: calc(var(--overlap) * -1);
  overflow: hidden;
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 0%;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg-photo) 0%,
    rgb(7 15 14 / 0) 14%,
    rgb(7 15 14 / 0) 44%,
    rgb(7 15 14 / 0.8) 70%,
    var(--bg-photo) 90%
  );
}

.hero__shade {
  display: none;
}

.hero__inner {
  position: relative;
  padding: 0 var(--page-x) calc(1.5rem + env(safe-area-inset-bottom));
}

.hero__content {
  max-width: 36rem;
}

.hero__title {
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.hero__accent {
  color: var(--accent-text);
  font-weight: 600;
}

.hero__lead {
  margin-top: 0.85rem;
  max-width: 34em;
  font-size: clamp(0.9375rem, 3.9vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 1.35rem;
}

.hero__cta {
  width: 100%;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.8rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-subtle);
}

.hero__note svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.02rem;
  color: var(--accent);
}

/* Assinatura do Alan */
.hero__signature {
  position: absolute;
  z-index: 1;
  top: calc(var(--nav-h) + 0.6rem);
  left: var(--page-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--brand-cream);
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.6);
}

.hero__sig-name {
  display: block;
  padding: 0.15em 0.25em 0 0;
  font-family: var(--font-signature);
  font-size: clamp(2.25rem, 10vw, 3rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.hero__sig-swash {
  width: 7.25rem;
  height: auto;
  margin: -0.35rem 0 0.6rem 0.9rem;
  color: var(--accent);
  overflow: visible;
}

.hero__sig-role {
  font-size: 0.5625rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll {
  display: none;
}

/* Celular baixo (ex.: iPhone SE dentro do Instagram): assinatura só com o nome */
@media (max-height: 639px) {
  .hero__sig-role {
    display: none;
  }

  .hero__sig-swash {
    margin-bottom: 0;
  }
}

@media (max-width: 999px) and (max-height: 579px) {
  .hero__note {
    display: none;
  }
}

/* Celular estreito: botão sem o ícone da prancheta para não vazar */
@media (max-width: 379px) {
  .hero__cta {
    padding-inline: 1.1rem;
    font-size: 1rem;
  }

  .hero__cta svg:first-child {
    display: none;
  }
}

/* Tablet em pé */
@media (min-width: 600px) {
  .hero__cta {
    width: auto;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }
}

/* --------------------------------------------------------------------------
   Hero — computador
   A foto sempre aparece inteira na altura (cabeça e mãos).
   Tela larga: foto encosta à direita e a parede se funde ao fundo.
   Tela mais quadrada: foto encosta à esquerda e perde só a lateral direita.
   -------------------------------------------------------------------------- */

@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .hero {
    --photo-top: max(0px, calc((var(--nav-h) + 12px - 11svh) / 0.89));
    --photo-h: calc(100svh - var(--photo-top));
    --photo-w: calc(var(--photo-h) * 1.7768);
    --h1: clamp(2.4rem, min(3.35vw, 6.8svh), 4.25rem);
    --content-w: calc(var(--h1) * 12);

    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 32rem;
  }

  .hero__photo {
    position: absolute;
    top: var(--photo-top);
    left: max(0px, calc(100% - var(--photo-w)));
    width: var(--photo-w);
    height: var(--photo-h);
    min-height: 0;
    margin: 0;
  }

  .hero__photo img {
    object-position: 50% 50%;
  }

  /* Funde a borda esquerda (janela clara) e o topo da foto ao fundo */
  .hero__photo::after {
    background:
      linear-gradient(90deg, var(--bg-photo) 0%, var(--bg-photo) 11%, rgb(7 15 14 / 0) 27%),
      linear-gradient(180deg, var(--bg-photo) 0%, rgb(7 15 14 / 0) 10%);
  }

  /* Véus da tela: atrás do texto, sob o menu e no rodapé do hero */
  .hero__shade {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgb(7 15 14 / 0.6) 0, rgb(7 15 14 / 0) calc(var(--nav-h) + 4rem)),
      linear-gradient(0deg, var(--bg) 0, rgb(10 18 16 / 0) 14%),
      linear-gradient(
        90deg,
        rgb(7 15 14 / 0.88) 0,
        rgb(7 15 14 / 0.62) calc(var(--page-x) + var(--content-w) * 0.7),
        rgb(7 15 14 / 0) calc(var(--page-x) + var(--content-w) + 8rem)
      );
  }

  .hero__inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: calc(var(--nav-h) + 1rem) var(--page-x) clamp(2.5rem, 7svh, 4.5rem);
  }

  .hero__content {
    width: var(--content-w);
    max-width: none;
  }

  .hero__title {
    line-height: 1.08;
    text-wrap: initial;
  }

  .hero__line {
    display: block;
  }

  .hero__lead {
    margin-top: clamp(1rem, 2.6svh, 1.75rem);
    max-width: none;
    font-size: clamp(1rem, 0.55rem + 0.6vw, 1.25rem);
  }

  .hero__actions {
    margin-top: clamp(1.5rem, 4.2svh, 2.75rem);
  }

  .hero__note {
    margin-top: 0.95rem;
    font-size: 0.875rem;
  }

  .hero__signature {
    top: calc(var(--photo-top) + var(--photo-h) * 0.15);
    left: auto;
    right: var(--page-x);
  }

  .hero__sig-name {
    font-size: clamp(3.25rem, 4.1vw, 5rem);
  }

  .hero__sig-swash {
    width: clamp(9.5rem, 12vw, 14rem);
    margin: -0.55rem 0 0.95rem 1.4rem;
  }

  .hero__sig-role {
    margin-left: 1.5rem;
    font-size: clamp(0.6875rem, 0.45rem + 0.3vw, 0.8125rem);
    letter-spacing: 0.26em;
  }
}

/* Telas quase quadradas: sem espaço à direita do rosto para a assinatura */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-aspect-ratio: 29/20) {
  .hero__signature {
    display: none;
  }
}

/* Indicador de rolagem: só em telas de computador com altura folgada */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (min-height: 760px) {
  .hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    color: var(--text-subtle);
    transform: translateX(-50%);
    transition: color 0.2s ease;
  }

  .hero__scroll:hover {
    color: var(--text);
  }
}

.hero__mouse {
  position: relative;
  width: 1.375rem;
  height: 2.125rem;
  border: 1.5px solid currentColor;
  border-radius: 0.75rem;
}

.hero__mouse::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 2px;
  height: 0.4rem;
  margin-left: -1px;
  border-radius: 2px;
  background: currentColor;
}

.hero__scroll svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Animações de entrada (só CSS; desligadas para quem prefere menos movimento)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__photo img {
    animation: hero-settle 2.6s var(--ease-soft) both;
  }

  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__signature {
    animation: hero-rise 1.2s var(--ease-soft) both;
  }

  .hero__title { animation-delay: 0.1s; }
  .hero__lead { animation-delay: 0.3s; }
  .hero__actions { animation-delay: 0.42s; }
  .hero__signature { animation-delay: 0.6s; }

  .hero__sig-swash path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: hero-draw 1.4s 1s var(--ease-soft) forwards;
  }

  .hero__mouse::after {
    animation: hero-wheel 2.2s ease-in-out 2s infinite;
  }

  @media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
    .hero__title {
      animation: none;
    }

    .hero__line {
      animation: hero-rise 1.2s var(--ease-soft) both;
    }

    .hero__line:nth-child(1) { animation-delay: 0.1s; }
    .hero__line:nth-child(2) { animation-delay: 0.17s; }
    .hero__line:nth-child(3) { animation-delay: 0.24s; }
    .hero__line:nth-child(4) { animation-delay: 0.31s; }
    .hero__line:nth-child(5) { animation-delay: 0.38s; }
    .hero__lead { animation-delay: 0.5s; }
    .hero__actions { animation-delay: 0.62s; }
    .hero__signature { animation-delay: 0.8s; }
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-settle {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@keyframes hero-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes hero-wheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  60% { opacity: 0; transform: translateY(0.45rem); }
  61% { opacity: 0; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Detalhes de entrada das seções (complementam o sistema do base.css)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Cabeçalho desce suavemente ao carregar */
  .site-header {
    animation: header-in 1.1s var(--ease-soft) 0.05s both;
  }

  /* Espaço seguro: estrela gira ao entrar */
  .js .safe__item:not(.is-visible) svg {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
  }

  .js .safe__item.is-visible svg {
    animation: star-in 1.2s var(--ease-soft) calc(var(--reveal-delay, 0s) + 0.2s) both;
  }

  /* Acompanhamento na prática: ícone sobe logo depois do texto */
  .js .help__item:not(.is-visible) svg {
    opacity: 0;
  }

  .js .help__item.is-visible svg {
    animation: reveal-up 1s var(--ease-soft) calc(var(--reveal-delay, 0s) + 0.15s) both;
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes star-in {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Para quem é
   ========================================================================== */

.audience {
  background: var(--bg);
}

.audience__cards {
  display: grid;
  gap: 1rem;
}

.audience-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.3s ease;
}

.audience-card:hover {
  border-color: var(--line-strong);
}

.audience-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.audience-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(17 27 23 / 0) 55%, var(--bg-raised) 100%);
}

.audience-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem 1.375rem 1.5rem;
}

.audience-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.audience-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.audience-card__list {
  display: grid;
  gap: 0.6rem;
  margin: 0.35rem 0 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.audience-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.audience-card__list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.audience-card .text-link {
  margin-top: 0.4rem;
}

.audience__closing {
  max-width: 40em;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  text-wrap: balance;
}

.audience__closing strong {
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 700px) {
  .audience__cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .audience-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* Título em coluna lateral (Equipe) */
@media (min-width: 1200px) {
  .team .section-title {
    font-size: clamp(2rem, 1rem + 1.6vw, 2.375rem);
  }
}

@media (min-width: 1200px) {
  .audience-card {
    grid-template-columns: 40% 1fr;
  }

  .audience-card__media {
    aspect-ratio: auto;
    min-height: 15.5rem;
  }

  .audience-card__media::after {
    background: linear-gradient(90deg, rgb(17 27 23 / 0) 50%, var(--bg-raised) 100%);
  }

  .audience-card__body {
    padding: 1.75rem 1.75rem 1.75rem 1.25rem;
  }

  .audience-card .text-link {
    margin-top: auto;
    padding-top: 0.6rem;
  }
}

/* ==========================================================================
   A história por trás do instituto
   ========================================================================== */

.story {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.story__grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

.story__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(180deg, rgb(13 22 19 / 0) 70%, rgb(13 22 19 / 0.45) 100%);
}

.story__title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.875rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.story__text {
  display: grid;
  gap: 1rem;
  max-width: 36em;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.story__sign {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2rem;
}

.story__sign-name {
  font-family: var(--font-signature);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--brand-cream);
}

.story__sign-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: minmax(0, 0.85fr) 1.15fr;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .story__media {
    aspect-ratio: 4 / 5;
  }
}

/* ==========================================================================
   Como é o acompanhamento na prática (faixa clara)
   ========================================================================== */

/* Faixa clara (usada em "na prática" e "como funciona") */
.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section--paper .section-title::after {
  background: var(--brand-dark);
}

.section--paper .section-head__text {
  color: var(--paper-muted);
  border-color: var(--paper-line);
}

.help__list {
  display: grid;
  border-top: 1px solid var(--paper-line);
}

.help__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--paper-line);
}

.help__item svg {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  color: var(--brand-dark);
}

.help__item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.help__item p {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--paper-muted);
}

@media (min-width: 700px) {
  .help__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    border-top: 0;
  }

  .help__item {
    display: block;
    padding: 1.75rem 0;
    border-top: 1px solid var(--paper-line);
    border-bottom: 0;
  }

  .help__item svg {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1100px) {
  .help__list {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0;
  }

  .help__item {
    padding: 0.25rem clamp(1.25rem, 2.5vw, 2.25rem);
    border-top: 0;
    border-left: 1px solid var(--paper-line);
  }

  .help__item:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ==========================================================================
   Equipe
   ========================================================================== */

.team {
  background: var(--bg);
}

.team__grid {
  display: grid;
  gap: 2.5rem;
}

.team__people {
  display: grid;
}

.person {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: start;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.person:last-child {
  border-bottom: 1px solid var(--line);
}

.person__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.875rem;
  background: var(--bg-raised);
}

.person__photo--placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 30% 20%, #163a26 0%, var(--bg-raised) 70%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent-text);
}

.person__name {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent-text);
}

.person__role {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.person__bio {
  max-width: 30em;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.team__note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-subtle);
}

@media (min-width: 700px) {
  .team__people {
    grid-template-columns: 1fr 1fr;
  }

  .person {
    grid-template-columns: 7.5rem 1fr;
    padding-block: 0.25rem;
    border-top: 0;
  }

  .person:first-child {
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
  }

  .person:last-child {
    padding-left: clamp(1.5rem, 4vw, 3.5rem);
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .person__photo--placeholder {
    font-size: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .team__grid {
    grid-template-columns: minmax(20rem, 1fr) 2.4fr;
    align-items: center;
    column-gap: clamp(3rem, 5vw, 5rem);
    row-gap: 2.5rem;
  }

  .person {
    grid-template-columns: 8.5rem 1fr;
  }

  .team__note {
    grid-column: 2;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }
}

/* ==========================================================================
   Como funciona o primeiro passo (linha do tempo)
   A linha se preenche conforme a rolagem e cada etapa "acende" quando a
   linha chega nela. Computador: horizontal. Celular: vertical.
   ========================================================================== */

.timeline {
  --progress: 1;
  position: relative;
}

/* Trilho: posição e tamanho calculados pelo JS a partir dos números */
.timeline__track {
  position: absolute;
  display: none;
  border-radius: 2px;
  background: var(--paper-line);
}

.timeline.is-ready .timeline__track {
  display: block;
}

.timeline.is-horizontal .timeline__track {
  height: 2px;
  margin-top: -1px;
}

.timeline:not(.is-horizontal) .timeline__track {
  width: 2px;
  margin-left: -1px;
}

.timeline__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--brand-dark);
  transform-origin: left center;
  transform: scaleX(var(--progress));
  transition: transform 0.35s var(--ease-soft);
}

.timeline:not(.is-horizontal) .timeline__fill {
  transform-origin: center top;
  transform: scaleY(var(--progress));
}

.timeline__list {
  display: grid;
  gap: 2.5rem;
}

.timeline__step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1.25rem;
}

.timeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--brand-dark);
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-cream);
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px rgb(4 106 54 / 0.1);
  transition:
    background-color 0.6s var(--ease-soft),
    border-color 0.6s var(--ease-soft),
    color 0.6s var(--ease-soft),
    box-shadow 0.6s var(--ease-soft),
    transform 0.7s var(--ease-soft);
}

.timeline__body {
  padding-top: 0.35rem;
  transition: opacity 0.7s var(--ease-soft);
}

.timeline__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.timeline__title {
  margin-top: 0.4rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.timeline__text {
  max-width: 30em;
  margin-top: 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-muted);
  text-wrap: pretty;
}

/* Etapas ainda não alcançadas pela linha (só quando o JS está ativo) */
.timeline.is-ready .timeline__step:not(.is-active) .timeline__node {
  border-color: rgb(14 26 21 / 0.22);
  background: var(--paper);
  color: var(--paper-muted);
  box-shadow: 0 0 0 6px rgb(14 26 21 / 0);
  transform: scale(0.86);
}

.timeline.is-ready .timeline__step:not(.is-active) .timeline__body {
  opacity: 0.42;
}

.journey__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.text-link--ink {
  color: var(--brand-dark);
}

@media (min-width: 900px) {
  .timeline__list {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .timeline__step {
    display: block;
  }

  .timeline__node {
    margin-bottom: 1.75rem;
  }
}

/* ==========================================================================
   Um espaço seguro
   ========================================================================== */

.safe {
  background: var(--bg);
}

.safe__grid {
  display: grid;
  gap: 2.5rem;
}

.safe__list {
  display: grid;
  border-top: 1px solid var(--line);
}

.safe__item {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  column-gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.safe__item svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  color: var(--accent);
}

.safe__item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.safe__item p {
  max-width: 40em;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (min-width: 1000px) {
  .safe__grid {
    grid-template-columns: minmax(18rem, 1fr) 1.45fr;
    align-items: start;
    column-gap: clamp(3rem, 7vw, 7rem);
  }

  .safe__head {
    position: sticky;
    top: calc(var(--nav-h) + 2.5rem);
  }

  .safe__item {
    padding: 1.6rem 0;
  }

  .safe__item > div {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    gap: 1.5rem;
  }

  .safe__item p {
    margin-top: 0;
  }
}

/* ==========================================================================
   Chamada final
   ========================================================================== */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-photo);
}

.cta__media {
  position: relative;
  z-index: -1;
  aspect-ratio: 16 / 10;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 60%;
}

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-photo) 0%, rgb(7 15 14 / 0) 22%, rgb(7 15 14 / 0.25) 60%, var(--bg-photo) 100%);
}

.cta__grid {
  margin-top: -2rem;
  padding-bottom: var(--section-y);
}

.cta__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.cta__title em {
  padding-right: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-text);
}

.cta__text {
  max-width: 30em;
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.cta__btn {
  width: 100%;
  margin-top: 1.75rem;
  padding-block: 0.85rem;
  font-size: clamp(0.9375rem, 3.9vw, 1.0625rem);
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.cta__safety {
  max-width: 36em;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-subtle);
}

.cta__safety a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 479px) {
  .cta__btn {
    gap: 0.5rem;
    padding-inline: 1rem;
    font-size: 0.9375rem;
  }

  .cta__btn svg:first-child {
    display: none;
  }
}

@media (min-width: 600px) {
  .cta__btn {
    width: auto;
  }
}

@media (min-width: 1000px) {
  .cta {
    display: flex;
    align-items: center;
    min-height: 36rem;
  }

  .cta__media {
    position: absolute;
    inset: 0 auto 0 0;
    width: 60%;
    aspect-ratio: auto;
  }

  .cta__media img {
    object-position: 50% 55%;
  }

  .cta__media::after {
    background:
      linear-gradient(90deg, rgb(7 15 14 / 0) 35%, var(--bg-photo) 98%),
      linear-gradient(180deg, var(--bg-photo) 0%, rgb(7 15 14 / 0) 16%, rgb(7 15 14 / 0) 84%, var(--bg-photo) 100%);
  }

  .cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    padding-block: var(--section-y);
  }

  .cta__content {
    grid-column: 2;
  }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
  padding-top: 3rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.site-footer__top {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.site-footer .brand {
  justify-self: start;
  margin-right: 0;
}

.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.site-footer__nav a,
.site-footer__bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__nav a {
  font-size: 0.9375rem;
}

.site-footer__nav a:hover,
.site-footer__bottom a:hover {
  color: var(--text);
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.site-footer__social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

@media (min-width: 1000px) {
  .site-footer__top {
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    column-gap: 2.5rem;
  }

  .site-footer__tagline {
    padding-left: 2.5rem;
    border-left: 1px solid var(--line);
  }

  .site-footer__nav ul {
    justify-content: flex-end;
  }
}
