/* Sorrismed: cores, fontes e medidas ficam nestas variáveis. */
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #1c211e;
  --ink-2: #434a46;
  --stone: #c5c9c6;
  --paper: #fff;
  --green-deep: #0c1f18;
  --on-dark: #fff;
  --on-dark-2: rgb(255 255 255 / .82);
  --line: rgb(28 33 30 / .14);

  --sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;

  --gut: clamp(16px, 4.6vw, 72px);
  --sec: clamp(88px, 10vw, 168px);
  --gap: 8px;
  --r: 10px;
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-2) var(--stone); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
/* Bodoni tem eixo de tamanho óptico: valor baixo engrossa os filetes em títulos menores */
em { font-family: var(--serif); font-style: italic; font-weight: 420; letter-spacing: -.015em; font-optical-sizing: none; font-variation-settings: "opsz" 11; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1360px, 100% - 2 * var(--gut)); margin-inline: auto; }

/* CTA: o parêntese é o desenho do botão e abre no hover */
.cta {
  display: inline-flex; align-items: center; gap: .32em;
  color: var(--on-dark); font-weight: 500; font-size: 1rem; line-height: 1; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; padding-block: .75em;
}
.cta__p { font-weight: 400; transition: transform .5s var(--ease); }
.cta:hover .cta__p:first-child, .tile--link:hover .cta__p:first-child { transform: translateX(-.35em); }
.cta:hover .cta__p:last-child, .tile--link:hover .cta__p:last-child { transform: translateX(.35em); }
.cta--lg { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.cta--dark { color: var(--ink); }

.dot { display: block; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; position: relative; background: var(--paper); }
.dot::after { content: ""; position: absolute; inset: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink); }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--on-dark); transition: background-color .3s linear; }
.nav.is-solid { background: var(--ink); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav__logo { font-size: 1.3rem; letter-spacing: .01em; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-left: auto; font-size: .97rem; font-weight: 500; }
.nav__links a { display: block; line-height: 1.1; text-decoration: none; opacity: .9; transition: opacity .2s; padding-block: 8px; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); background: var(--green-deep); color: var(--on-dark); overflow: hidden; display: flex; isolation: isolate; }
.hero__img { position: absolute; inset: 0 0 0 auto; width: 80%; z-index: -1; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 31 24 / .62) 0, transparent 130px), linear-gradient(90deg, rgb(12 31 24 / .62) 0, rgb(12 31 24 / .34) 42%, transparent 62%), linear-gradient(0deg, rgb(12 31 24 / .6) 0, transparent 34%); }
.hero__in { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) clamp(32px, 5vh, 60px); }
.hero__title { font-size: clamp(2.55rem, 7.1vw, 6rem); font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.hero__title em { letter-spacing: -.025em; font-size: 1.04em; font-weight: 400; font-variation-settings: "opsz" 24; }
.ln { display: block; overflow: clip; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > * { display: block; }
.hero__foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: end; }
.hero__act { grid-column: 2 / span 2; max-width: 27rem; }
.hero__act p { margin-bottom: 16px; color: var(--on-dark-2); }
.hero__act .cta { margin-left: 0; }

.rating { display: inline-flex; flex-direction: column; gap: 8px; font-size: .95rem; text-decoration: none; line-height: 1.3; padding-block: 6px; }
.rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* Sobre */
.about { padding-block: var(--sec); }
.statement { font-size: clamp(1.9rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; text-indent: 25%; max-width: 21em; text-wrap: pretty; }
.about__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(56px, 8vw, 120px); align-items: start; }
.about__fig { grid-column: 1 / span 2; max-width: 520px; }
.about__fig img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); }
.about__fig figcaption { margin-top: 12px; font-size: 1.05rem; }
.about__fig figcaption span { display: block; color: var(--ink-2); font-size: .92rem; }
.about__txt { grid-column: 3 / span 2; max-width: 30rem; display: grid; gap: 16px; align-self: end; color: var(--ink-2); }

/* Faixas cinza */
.band { background: var(--stone); padding-block: var(--sec) 0; }
.band:last-of-type { padding-bottom: 0; }
.band--flush { padding-top: var(--sec); }
#historias { padding-bottom: var(--sec); }
.head { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: clamp(44px, 6vw, 84px); }
.head h2, .head p { grid-column: 2 / -1; }
.head h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.head p { max-width: 28rem; margin-top: 16px; color: var(--ink-2); }

/* Tratamentos */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.tile { background: var(--paper); border-radius: var(--r); min-height: clamp(190px, 16vw, 240px); }
.tile--gap { background: none; }
.tile--img { overflow: hidden; }
.tile--img img { width: 100%; height: 100%; object-fit: cover; }
.tile--link { display: flex; flex-direction: column; gap: 10px; padding: 16px; text-decoration: none; transition: background-color .3s linear, color .3s linear, transform .5s var(--ease); }
.tile--img { transition: transform .5s var(--ease); }
.tile--img img { transition: transform 1.1s var(--ease); }
.tile--img:hover img { transform: scale(1.04); }
.tile--link:hover { transform: scale(.985); }
.tile h3 { font-size: clamp(1.45rem, 2.1vw, 1.875rem); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
.tile--link p { font-size: .97rem; line-height: 1.42; color: var(--ink-2); transition: color .3s linear; }
.tile__ask { margin-top: auto; padding-top: 14px; font-size: .95rem; font-weight: 500; display: flex; align-items: center; gap: .32em; }
.only-narrow { display: none; }
.tile--link:hover { background: var(--ink); color: var(--paper); }
.tile--link:hover p { color: rgb(255 255 255 / .8); }

/* Por que aqui: cartões que empilham na rolagem */
.stack__view { display: grid; gap: 28px; }
.stack.is-pinned { height: calc(var(--view-h) + 3 * 90svh); --view-h: min(740px, calc(100svh - var(--nav-h) - 24px)); }
.stack.is-pinned .stack__view { display: block; position: sticky; top: calc(var(--nav-h) + 12px); height: var(--view-h); perspective: 100vw; perspective-origin: 50% -50%; }
.stack.is-pinned .scard { position: absolute; inset: 0; min-height: 0; box-shadow: 0 -10px 30px rgb(28 33 30 / .08); transform-style: flat; will-change: transform; }
.stack.is-pinned .scard__side { min-height: 0; }
.stack.is-pinned .scard__img { flex: 1; min-height: 0; aspect-ratio: auto; }
.scard {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 24px 32px;
  min-height: min(620px, calc(100svh - var(--nav-h) - 72px));
  background: var(--paper); border-radius: var(--r); padding: clamp(20px, 3vw, 40px); overflow: hidden;
  box-shadow: 0 -10px 30px rgb(28 33 30 / .07);
}
.scard__ghost { position: absolute; top: clamp(10px, 1.6vw, 22px); left: clamp(16px, 2.4vw, 32px); font-size: clamp(3.5rem, 8.4vw, 7.6rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; white-space: nowrap; color: rgb(28 33 30 / .055); pointer-events: none; }
.scard__txt { position: relative; grid-column: 1; padding-top: clamp(26px, 3vw, 46px); }
.scard h3 { font-size: clamp(1.8rem, 3vw, 2.875rem); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; max-width: 15em; }
.scard__txt p { margin-top: 18px; max-width: 29rem; color: var(--ink-2); }
.scard blockquote { grid-column: 1; align-self: end; font-family: var(--serif); font-style: italic; font-weight: 420; font-optical-sizing: none; font-variation-settings: "opsz" 11; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.16; letter-spacing: -.015em; max-width: 21em; }
.scard cite { display: block; margin-top: 8px; font: 500 .92rem/1.3 var(--sans); letter-spacing: 0; }
.scard__side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 28px; position: relative; }
.scard__tag { font-size: .95rem; color: var(--ink-2); }
.scard__img { position: relative; width: min(100%, 520px); aspect-ratio: 5 / 3.7; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: var(--r); }
.scard__img .dot { position: absolute; top: -22px; right: 22px; z-index: 1; }
.mid-cta { text-align: center; padding-top: clamp(40px, 5vw, 72px); }

/* Histórias */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.q { background: var(--paper); border-radius: var(--r); padding: 18px; min-height: clamp(280px, 24vw, 340px); display: flex; flex-direction: column; gap: 16px; }
.q .stars svg { width: 19px; height: 19px; }
.q blockquote { font-size: 1.0625rem; line-height: 1.38; letter-spacing: -.005em; flex: 1; }
.q figcaption { font-weight: 500; line-height: 1.25; }
.q figcaption span { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-2); }
.q--img { padding: 0; overflow: hidden; position: relative; }
.q--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.q--w2 { grid-column: span 2; }
.quotes__more { margin-top: 24px; text-align: right; }
.quotes__more a { display: inline-block; padding-block: 8px; font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Equipe */
.team { padding-block: var(--sec); }
.statement--team { text-indent: 25%; margin-bottom: clamp(48px, 6vw, 88px); }
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.slide > img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; border-radius: var(--r); background: var(--stone); }
.slide__who { display: flex; flex-direction: column; }
.slide__who h3 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 500; line-height: .95; letter-spacing: -.03em; }
.slide__who > p { margin-top: 10px; }
.slide__who dl { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 500; }
.slide__who dt { flex-basis: 100%; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.slide__txt { color: var(--ink-2); max-width: 26rem; padding-bottom: 72px; }
.slider.is-fade .slider__track { display: grid; overflow: visible; }
.slider.is-fade .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.slider.is-fade .slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slider__nav { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; }
.slider__count { margin-right: 14px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.slider__nav button { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .25s, color .25s; }
.slider__nav button:hover { background: var(--ink); color: var(--paper); }
.slider__nav button:disabled { opacity: .35; pointer-events: none; }
.slider__nav svg { width: 22px; height: 22px; }
.flip { transform: rotate(180deg); }

/* Chamada final */
.final { position: relative; color: var(--on-dark); min-height: max(620px, 92svh); display: flex; overflow: hidden; isolation: isolate; background: var(--green-deep); }
.final__img { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1; }
.final__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(12 31 24 / .5) 0, transparent 30%); }
.final__in { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: clamp(56px, 8vw, 104px) clamp(36px, 5vw, 64px); }
.final h2 { font-size: clamp(2.55rem, 6.4vw, 6rem); font-weight: 500; line-height: .96; letter-spacing: -.04em; }
.final h2 em { letter-spacing: -.025em; font-size: 1.04em; font-weight: 400; font-variation-settings: "opsz" 24; }
.final__act { max-width: 26rem; }
.final__act p { margin-bottom: 14px; color: var(--on-dark-2); }

/* Rodapé */
.foot { padding-block: clamp(48px, 5vw, 72px) 28px; }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1.35fr 1fr; gap: 40px var(--gap); }
.foot__mark { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.01em; margin-bottom: 8px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot__col h3 { margin: 0 0 12px; font-size: .92rem; font-weight: 400; color: var(--ink-2); }
.foot__col a { text-decoration: none; padding-block: 3px; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot__col p + p { margin-top: 12px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: clamp(40px, 5vw, 72px); font-size: .9rem; color: var(--ink-2); }


/* Movimento: estado inicial dos elementos que o main.js revela.
   A classe .js só existe com JavaScript ativo e sem pedido de movimento reduzido. */
.js .nav__logo, .js .nav__links a:not(.is-in), .js .nav .cta:not(.is-in) { opacity: 0; transform: translateY(-.75rem); }
.js .hero__title, .js .final h2, .js .statement, .js .head h2 { opacity: 0; }
.js .hero__img img { transform: scale(1.12); will-change: transform; }
.js .final__img img { transform: scale(1.12); }
.js .rating, .js .hero__act p, .js .final__act p, .js .hero__act .cta:not(.is-in), .js .final__act .cta:not(.is-in) { opacity: 0; transform: translateY(1.25rem); }
.js .cta:not(.is-in) .cta__p { transition: none; }
.js .about__fig img { transform: scale(.8); }
.js .about__fig figcaption, .js .about__txt p, .js .head p { opacity: 0; transform: translateY(1rem); }
.js .about__txt .dot { opacity: 0; transform: scale(.6); }
.js .tile:not(.is-in), .js .q:not(.is-in) { opacity: 0; transform: translateY(2.5rem) scale(.96); transition: none; }
.js .slider { opacity: 0; transform: translateY(2rem); }
.about__fig { overflow: hidden; }

/* A máscara das linhas não pode cortar as descendentes do itálico */
.split-lines-mask { padding-bottom: .14em; margin-bottom: -.14em; }

/* Letras que rolam: a sombra é a cópia que entra por baixo */
[data-roll] { display: inline-block; overflow: clip; line-height: 1.1; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: bottom; }
.split-word { white-space: nowrap; }
.split-char { text-shadow: 0 1.3em 0 currentColor; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__act { grid-column: 2; }
  .slider__nav { left: 0; right: auto; }
  .head h2, .head p { grid-column: 1 / -1; }
  .bento, .quotes { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-auto-flow: dense; }
  .tile--gap { display: none; }
  .tile--img { aspect-ratio: 4 / 3; min-height: 0; }
  .quotes .q--w2 { grid-column: 1 / -1; aspect-ratio: 16 / 10; min-height: 0; }
  .scard { min-height: 0; grid-template-columns: 1fr; grid-template-rows: none; box-shadow: none; }
  .scard__side, .scard blockquote { grid-column: 1; grid-row: auto; }
  .scard__side { align-items: stretch; gap: 10px; order: 2; }
  .scard__tag { text-align: right; }
  .scard__img { width: 100%; margin-top: 18px; }
  .final__img { width: 82%; }
  .scard blockquote { order: 3; }
  .slide { grid-template-columns: 1fr 1fr; }
  .slide__who { grid-column: 1; }
  .slide > img { grid-column: 2; grid-row: 1 / span 2; }
  .slide__txt { grid-column: 1; padding-bottom: 72px; }
  .foot__top { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* Hero em retrato: celular e tablet em pé */
@media (max-width: 760px), (max-width: 1040px) and (orientation: portrait) {
  .nav { background: var(--ink); }
  .hero__img { width: 100%; }
  .hero__img img { -webkit-mask-image: none; mask-image: none; object-position: 50% 0; }
  .hero::after { background: linear-gradient(0deg, rgb(12 31 24 / .96) 0, rgb(12 31 24 / .82) 34%, transparent 50%); }
  .hero__in { justify-content: flex-end; gap: 22px; padding-block: 90px 24px; }
  .hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Celular */
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  body { font-size: 1rem; }
  .nav__logo { font-size: 1.15rem; }
  .nav { background: var(--ink); }
  .slider__nav { left: auto; right: 0; }
  .rating { flex-direction: row; align-items: center; gap: 10px; font-size: .88rem; flex-wrap: wrap; }
  .statement, .statement--team { text-indent: 0; }
  .about__row { grid-template-columns: 1fr; gap: 28px; }
  .about__fig, .about__txt { grid-column: 1; max-width: none; }
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile--img { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .scard { padding: 18px; }
  .scard__ghost { font-size: 3.2rem; }
  .stack.is-pinned { --view-h: calc(100svh - var(--nav-h) - 20px); }
  .stack.is-pinned .stack__view { top: calc(var(--nav-h) + 8px); }
  .stack.is-pinned .scard { display: flex; flex-direction: column; gap: 12px; }
  .stack.is-pinned .scard__txt { padding-top: 14px; }
  .stack.is-pinned .scard h3 { font-size: 1.6rem; }
  .stack.is-pinned .scard__txt p { margin-top: 10px; font-size: .95rem; }
  .stack.is-pinned .scard__side { flex: 1; order: 2; }
  .stack.is-pinned .scard__tag { display: none; }
  .stack.is-pinned .scard__img { margin-top: 12px; }
  .stack.is-pinned .scard blockquote { order: 3; font-size: 1.15rem; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .quotes { grid-template-columns: 1fr; }
  .q { min-height: 0; }
  .q blockquote { margin-bottom: 8px; }
  .quotes__more { text-align: left; }
  .slide { grid-template-columns: 1fr; }
  .slide__who, .slide > img, .slide__txt { grid-column: 1; grid-row: auto; }
  .slide > img { order: -1; aspect-ratio: 1 / 1; }
  .slide__who dl { margin-top: 0; padding-top: 16px; }
  .slide__txt { padding-bottom: 76px; }
  .final { min-height: 700px; }
  .final__img { width: 100%; }
  .final__img img { -webkit-mask-image: none; mask-image: none; object-position: 50% 0; }
  .final::after { background: linear-gradient(0deg, rgb(12 31 24 / .97) 0, rgb(12 31 24 / .86) 40%, transparent 54%); }
  .final__in { justify-content: flex-end; gap: 18px; padding-block: 200px 32px; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__col:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
}
