/* Página do Fausto: usa as cores e fontes do site (site.css) e só acrescenta o que é dela.
   Destaque: a credencial da competição, pendurada (cai ao abrir a página e balança ao arrastar).
   Movimento só onde explica algo: a linha da trajetória acende com a rolagem e os vídeos
   tocam apenas quando estão na tela. Tudo para com "reduzir movimento". */

/* ----- barra do topo ----- */
.fz-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad-r) 14px var(--pad-l);
  border-bottom: 1px solid var(--line);
}
.fz-bar__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(244,234,216,.35);
}
@media (hover: hover) { .fz-bar__cta:hover { border-color: var(--cream); } }

/* ----- mídia (vídeo ou foto) com botão de pausa ----- */
.fz-media { position: relative; margin: 0; }
.fz-media video, .fz-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; background: var(--oven);
}
.fz-media figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--cream-dim); }
/* o botão de pausa (.vid-btn) vem do site.css */

/* ----- abertura ----- */
.fz-hero { position: relative; display: grid; }
.fz-hero__text { padding: clamp(28px, 7vw, 56px) var(--pad-r) clamp(24px, 6vw, 40px) var(--pad-l); }
.fz-hero__name {
  font-family: Fraunces, serif; font-weight: 700;
  font-size: clamp(48px, 13.5vw, 92px); line-height: .9; letter-spacing: -.035em;
}
.fz-hero__name span { display: block; white-space: nowrap; }
.fz-hero__role { margin-top: 18px; max-width: 34ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--cream-dim); text-wrap: pretty; }

/* no celular o vídeo ocupa a largura toda; a credencial pende da borda de baixo dele */
.fz-hero__media video { border-radius: 0; }
.fz-hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 48px var(--pad-r) 14px var(--pad-l);
  background: linear-gradient(transparent, rgba(13,9,7,.8));
  font-size: 13px; pointer-events: none;
}

/* credencial: cartão claro de papel, preso por um cordão, como o crachá da competição.
   O giro acontece no alto do cordão, então ela balança como pêndulo. */
.badge-card {
  --drop: 56px;
  position: relative; z-index: 2; width: min(270px, calc(100vw - 2 * var(--gutter)));
  margin: -2px 0 0 var(--pad-l);
  transform-origin: 50% 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.badge-card.is-dragging { cursor: grabbing; }
.badge-card__cord {
  display: block; width: 2px; height: var(--drop); margin: 0 auto -6px;
  background: linear-gradient(var(--ember), #c98a35);
  border-radius: 2px;
}
.badge-card__body {
  position: relative; padding: 32px 22px 20px; border-radius: 16px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 34px 60px -24px rgba(0,0,0,.75), 0 2px 0 rgba(255,255,255,.4) inset;
}
/* furo do crachá */
.badge-card__body::before {
  content: ""; position: absolute; top: 12px; left: 50%; width: 42px; height: 8px; transform: translateX(-50%);
  border-radius: 8px; background: var(--ink);
}
.badge-card__event { font-size: 14px; font-weight: 600; color: var(--red); }
.badge-card__rank { margin-top: 8px; font-family: Fraunces, serif; font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: -.015em; }
.badge-card__rank span { display: block; font-size: 78px; line-height: .86; letter-spacing: -.05em; }
.badge-card__who {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(13,9,7,.28);
  font-size: 13px; line-height: 1.5; color: rgba(13,9,7,.68);
}

/* abertura orquestrada: o nome sobe e a credencial cai e balança (o fausto.js assume depois) */
@media (prefers-reduced-motion: no-preference) {
  .fz-hero__name span { animation: fz-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .fz-hero__name span + span { animation-delay: .08s; }
  .fz-hero__role { animation: fz-rise .7s cubic-bezier(.2,.7,.2,1) .16s both; }
  .badge-card { animation: badge-drop 1.8s cubic-bezier(.3,.7,.3,1) .45s both; }
}
@keyframes fz-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes badge-drop {
  0%   { transform: translateY(-34px) rotate(-10deg); opacity: 0; }
  18%  { opacity: 1; }
  38%  { transform: translateY(0) rotate(6deg); }
  60%  { transform: rotate(-2.6deg); }
  80%  { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

@media (min-width: 960px) {
  /* tudo dentro da largura do site: nome à esquerda, vídeo 4:5 como cartão inteiro à direita
     (cabe na tela junto com a barra de capítulos). A credencial pende do alto sobre o fundo escuro
     e se apoia na borda esquerda do vídeo, sem cobrir o rosto do Fausto. */
  .fz-hero {
    --side: max(var(--pad-l), calc((100vw - 1180px) / 2 + var(--pad-l)));
    --mh: clamp(440px, calc(100svh - 236px), 700px);
    --mw: calc(var(--mh) * .8);
    grid-template-columns: minmax(0, 1fr) var(--mw); column-gap: clamp(48px, 6vw, 96px); align-items: center;
    min-height: calc(100svh - 136px); padding: 44px var(--side) 52px;
  }
  .fz-hero__text { grid-column: 1; grid-row: 1; padding: 0 0 8px; }
  .fz-hero__name { font-size: clamp(60px, 6.4vw, 88px); }
  .fz-hero__role { max-width: 31ch; margin-top: 22px; }
  .fz-hero__media {
    grid-column: 2; grid-row: 1; height: var(--mh); border-radius: 18px; overflow: hidden;
    box-shadow: 0 50px 90px -40px rgba(0,0,0,.85);
  }
  .fz-hero__media video { height: 100%; aspect-ratio: auto; }
  .fz-hero__media figcaption { padding: 56px 24px 18px; }
  .badge-card {
    /* presa no canto de cima do vídeo (onde só aparece o fundo da cozinha), longe do nome */
    --drop: calc((100svh - 136px - var(--mh)) / 2 + 36px);
    position: absolute; top: 0; width: 240px; margin: 0;
    /* cobre só 56 px da borda do vídeo (o rosto fica livre); o cordão desce no escuro, fora do vídeo */
    left: calc(100% - var(--side) - var(--mw) + 56px - 240px);
  }
  .badge-card__body { padding: 30px 20px 18px; }
  .badge-card__event { font-size: 13px; }
  .badge-card__rank { font-size: 21px; }
  .badge-card__rank span { font-size: 66px; }
  .badge-card__who { margin-top: 14px; font-size: 12px; }
}

/* ----- seções ----- */
.fz-sec { padding: clamp(72px, 11vw, 136px) 0; }
.fz-sec--oven { background: var(--oven); }
.fz-title {
  font-family: Fraunces, serif; font-weight: 700;
  font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.025em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ----- navegação por capítulos: gruda no topo depois da abertura; a barra laranja mostra onde a pessoa está ----- */
.fz-chapters {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--pad-r) 0 var(--pad-l);
  background: rgba(13,9,7,.9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.fz-chapters::-webkit-scrollbar { display: none; }
.fz-chapters a {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--cream-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s ease;
}
.fz-chapters a:first-of-type { margin-left: -12px; }
.fz-chapters a[aria-current="true"] { color: var(--cream); }
@media (hover: hover) { .fz-chapters a:hover { color: var(--cream); } }
.fz-chapters__bar {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w, 0); background: var(--ember);
  transform: translateX(var(--x, 0)); transition: transform .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1);
}
/* a âncora para abaixo da barra grudada */
#historia, #conquistas, #bancada, #clientes { scroll-margin-top: 49px; }
@media (min-width: 960px) {
  .fz-chapters { justify-content: center; gap: 12px; }
  .fz-chapters a:first-of-type { margin-left: 0; }
}

/* ----- história: a frase do Fausto com as três partes tocáveis; cada uma abre o seu capítulo ----- */
.manifesto { margin: 0; }
.manifesto p {
  max-width: 24ch; font-family: Fraunces, serif; font-weight: 500;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -.02em; text-wrap: balance;
}
.manifesto__part {
  color: inherit; text-decoration: none; cursor: pointer;
  padding: 0 .08em; border-radius: .14em;
  background: linear-gradient(rgba(242,165,65,.35), rgba(242,165,65,.35)) 0 100% / 100% .08em no-repeat;
  transition: background-size .35s cubic-bezier(.2,.7,.2,1), color .2s ease;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.manifesto__part[aria-current="true"] { color: var(--ink); background: linear-gradient(var(--ember), var(--ember)) 0 100% / 100% 100% no-repeat; }
@media (hover: hover) { .manifesto__part:not([aria-current="true"]):hover { background-size: 100% .2em; } }
.manifesto__part:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.manifesto__who { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--cream-dim); }
.manifesto__hint { margin-top: 6px; font-size: 14px; color: var(--cream-dim); }

.chapters { margin-top: clamp(32px, 5vw, 56px); }
.chapter { display: grid; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.chapter + .chapter { margin-top: 40px; }
.fz-js .chapter + .chapter { margin-top: 0; }
.chapter[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .chapter.is-in { animation: fz-rise .5s cubic-bezier(.2,.7,.2,1) both; }
}
.chapter h3 { font-family: Fraunces, serif; font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.01em; }
.chapter__text > p { margin-top: 12px; max-width: 52ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.65; color: var(--cream-dim); text-wrap: pretty; }
/* trecho na voz dele: Fraunces, com a aspa em laranja */
.chapter__quote { margin: 18px 0 4px; padding-left: 18px; border-left: 2px solid var(--ember); }
.chapter__quote p { font-family: Fraunces, serif; font-style: italic; font-weight: 500; font-size: clamp(19px, 2vw, 23px); line-height: 1.38; color: var(--cream); text-wrap: pretty; }
.chapter__media { width: min(100%, 420px); }
@media (min-width: 960px) {
  .chapter { grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
  .chapter__media { width: 100%; }
}

/* ----- conquistas: escada de colocações; o marcador sobe de 7º (2025) para 5º (2026) ----- */
.podium__switch {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(244,234,216,.06); border: 1px solid var(--line);
}
.podium__switch[hidden] { display: none; }
.podium__switch button {
  min-width: 88px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--cream-dim); font: 600 15px Inter, sans-serif; font-variant-numeric: tabular-nums;
  transition: background-color .25s ease, color .25s ease;
}
.podium__switch button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.podium__body { margin-top: 28px; display: grid; grid-template-columns: 92px 1fr; gap: 0 20px; align-items: start; }

/* escada: 7 degraus, 1º no alto */
.ladder { --row: 40px; position: relative; }
.ladder ol { list-style: none; padding: 0; margin: 0; }
.ladder li {
  height: var(--row); display: flex; align-items: center; gap: 8px;
  font: 600 13px Inter, sans-serif; color: rgba(244,234,216,.42); font-variant-numeric: tabular-nums;
}
.ladder li::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ladder li:first-child { color: var(--ember); }
/* rastro da subida entre 7º e 5º */
.ladder__trail {
  position: absolute; right: 13px; width: 2px; border-radius: 2px;
  top: calc(var(--row) * 4.5); height: calc(var(--row) * 2);
  background: linear-gradient(var(--ember), rgba(242,165,65,.15));
  transform-origin: bottom; transform: scaleY(var(--t, 1)); transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.ladder__mark {
  position: absolute; right: 2px; top: 0; width: 24px; height: 24px; margin-top: calc((var(--row) - 24px) / 2);
  border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(242,165,65,.18), 0 6px 18px rgba(242,165,65,.4);
  transform: translateY(calc(var(--row) * (var(--pos, 5) - 1)));
  transition: transform .9s cubic-bezier(.3,1.2,.4,1);
}
.ladder__ghost {
  position: absolute; right: 7px; top: 0; width: 14px; height: 14px; margin-top: calc((var(--row) - 14px) / 2);
  border-radius: 50%; border: 2px solid rgba(242,165,65,.55);
  transform: translateY(calc(var(--row) * (var(--pos, 7) - 1)));
  transition: transform .9s cubic-bezier(.3,1.2,.4,1), opacity .3s ease;
}

.podium__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .podium__panel.is-in { animation: fz-rise .5s cubic-bezier(.2,.7,.2,1) both; }
}
.podium__rank { font-family: Fraunces, serif; font-weight: 700; font-size: 20px; line-height: 1; }
.podium__rank span { display: block; font-size: clamp(88px, 14vw, 150px); line-height: .82; letter-spacing: -.05em; color: var(--ember); }
.podium__panel h3 { margin-top: 18px; font-family: Fraunces, serif; font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.podium__panel > p { margin-top: 8px; max-width: 48ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: var(--cream-dim); text-wrap: pretty; }
.podium__media { grid-column: 1 / -1; margin-top: 28px; width: min(100%, 420px); }
/* celular: escada e texto lado a lado; a mídia ocupa a largura toda embaixo */
@media (max-width: 959px) {
  .podium__panels, .podium__panel:not([hidden]) { display: contents; }
  .ladder { grid-column: 1; grid-row: 1 / span 4; }
  .podium__panel > :not(.podium__media) { grid-column: 2; }
}
.fz-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
  color: var(--cream); font-size: 15px; font-weight: 600;
  text-decoration: underline 2px var(--ember); text-underline-offset: 6px;
}
@media (hover: hover) { .fz-link:hover { color: var(--ember); } }
/* sem JS os dois anos aparecem um embaixo do outro */
.podium__panel + .podium__panel { margin-top: 40px; }
.fz-js .podium__panel + .podium__panel { margin-top: 0; }
@media (min-width: 960px) {
  .podium__body { grid-template-columns: 120px minmax(0, 1fr) 380px; gap: 0 56px; }
  .ladder { --row: 52px; }
  .podium__panels { display: contents; }
  .podium__panel { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 56px; grid-column: 2 / 4; align-items: start; }
  .podium__panel > :not(.podium__media) { grid-column: 1; }
  .podium__media { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; width: 100%; }
}

/* ----- formação: lista com datas (só onde há data no certificado) ----- */
.fz-sub { margin-top: clamp(56px, 8vw, 88px); font-family: Fraunces, serif; font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.studies { list-style: none; padding: 0; margin-top: 20px; }
.studies li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.studies__when { font-family: Fraunces, serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--ember); font-variant-numeric: tabular-nums; }
.studies strong { display: block; font-family: Fraunces, serif; font-weight: 500; font-size: clamp(19px, 2vw, 23px); line-height: 1.25; }
.studies span:not(.studies__when) { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--cream-dim); }
.fz-craft { margin-top: 24px; }
@media (min-width: 960px) {
  .fz-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
  .fz-learn .fz-sub { grid-column: 1 / -1; }
  .fz-craft { margin-top: 20px; }
}

/* ----- compartilhar ----- */
.fz-share {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 24px; padding: 0; border: 0; cursor: pointer;
  background: none; color: var(--cream); font: 600 15px Inter, sans-serif;
}
.fz-share[hidden] { display: none; }
.fz-share svg { width: 20px; height: 20px; }
@media (hover: hover) { .fz-share:hover { color: var(--ember); } }
.fz-share__status { margin-left: 4px; font-weight: 500; color: var(--ember); }

/* ----- nas palavras dele: frase grande que acende com a rolagem ----- */
.fz-quote { padding: clamp(24px, 6vw, 64px) 0 clamp(72px, 11vw, 136px); }
.fz-quote__text { margin: 0; }
.fz-quote__text p {
  max-width: 22ch; font-family: Fraunces, serif; font-weight: 500;
  font-size: clamp(32px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.fz-quote__text p::before { content: "\201C"; display: block; height: .5em; margin-bottom: 8px; font-size: 1.8em; line-height: 1; font-weight: 700; color: var(--ember); }
.fz-quote__text .word { transition: opacity .25s linear; }
.fz-quote__who { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--cream-dim); }

/* ----- da bancada: no celular, carrossel com pontos; no desktop, grade 3 x 2 ----- */
.plates {
  list-style: none; padding: 0 var(--pad-r) 4px var(--pad-l); margin: 0 calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-l); scrollbar-width: none;
}
.plates::-webkit-scrollbar { display: none; }
.plates__item { scroll-snap-align: start; }
.plates__dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.plates__dots button {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.plates__dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(244,234,216,.3);
  transition: width .3s cubic-bezier(.2,.7,.2,1), background-color .3s ease;
}
.plates__dots button[aria-current="true"]::before { width: 22px; background: var(--ember); }
@media (min-width: 960px) {
  .plates {
    margin: 0; padding: 0; overflow: visible; grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr); gap: 32px 24px;
  }
  .plates__dots { display: none; }
}

/* ----- ofício: lista de definições em duas colunas ----- */
.craft { display: grid; gap: 0 48px; }
.craft div { padding: 20px 0; border-top: 1px solid var(--line); }
.craft dt { font-size: 14px; font-weight: 500; color: var(--cream-dim); }
.craft dd { margin-top: 6px; font-family: Fraunces, serif; font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; text-wrap: balance; }
@media (min-width: 760px) { .craft { grid-template-columns: 1fr 1fr; } }

/* ----- fechamento ----- */
.fz-end { padding: clamp(72px, 11vw, 136px) 0; background: var(--oven); border-top: 1px solid var(--line); }
.fz-end__title { max-width: 16ch; font-family: Fraunces, serif; font-weight: 700; font-size: clamp(38px, 6.4vw, 84px); line-height: .95; letter-spacing: -.03em; text-wrap: balance; }
.fz-end__text { margin-top: 18px; max-width: 42ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--cream-dim); }
.fz-end__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
/* o site esconde botões secundários em celulares baixos; aqui o Instagram continua */
@media (max-width: 767px) and (max-height: 720px) { .fz-end .btn--ghost { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) {
  .plates__dots button::before, .fz-chapters__bar, .ladder__mark, .chapter, .podium__panel { transition: none; animation: none; }
}
