/*
  FORMA — Barber Studio
  Tese: a comanda de barbearia levada a sério. Grotesca expandida e pesada para
  afirmar, monoespaçada para dados (preço, tempo, número). Cantos retos, blocos
  de cor chapados, nada de serifa. Navegação num dock flutuante embaixo.
  Assinatura: o picote da comanda (bordas serrilhadas) e os colchetes [ ] dos rótulos.
*/

:root {
  --charcoal: #1c1e1c;
  --olive: #363d34;
  --ivory: #f3f0e9;
  --stone: #e4dfd3;
  --tobacco: #785a45;
  --tobacco-2: #8a6850;
  --sand: #d9b89c;
  --steel: #a7a9a5;

  --paper: var(--ivory);
  --paper-2: var(--stone);
  --ink: var(--charcoal);
  --ink-soft: #4a4d49;
  --line: rgb(28 30 28 / 0.18);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --dock-space: 7rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #24231f;
    --paper-2: #2d2c27;
    --ink: var(--ivory);
    --ink-soft: #c9c6bd;
    --line: rgb(243 240 233 / 0.18);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tobacco-2); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ivory); color: var(--charcoal);
  transform: translateY(-200%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; text-transform: uppercase; }

.tag { display: inline-block; margin-bottom: 1.25rem; color: var(--tobacco); font-weight: 500; }
.tag--light { color: var(--sand); }
.tag--dark { color: var(--charcoal); }
@media (prefers-color-scheme: dark) { .manifesto .tag, .craft .tag, .journey .tag, .faq .tag { color: var(--sand); } }

.title {
  font-weight: 850; font-variation-settings: "wdth" 125;
  font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.title--light { color: var(--ivory); }

/* Botões: retangulares, sem raio */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  min-height: 54px; padding: 0 1.25rem;
  background: transparent; border: 2px solid transparent; border-radius: 0;
  font-weight: 700; font-variation-settings: "wdth" 110; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn::after { content: "→"; font-family: var(--mono); font-weight: 400; transition: transform 0.18s var(--ease); }
.btn--ivory { background: var(--ivory); color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--line-light { border-color: var(--ivory); color: var(--ivory); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 rgb(0 0 0 / 0.35); }
  .btn:hover::after { transform: translateX(4px); }
  .btn--line-light:hover { background: var(--ivory); color: var(--charcoal); }
}

.link-btn {
  min-height: 44px; padding: 0; background: none; border: 0;
  text-decoration: underline; text-underline-offset: 4px; text-align: left;
}
.link-btn--light { color: var(--ivory); }

.credit { margin-top: 1.25rem; color: var(--ink-soft); text-transform: none; }
.credit--light { color: var(--steel); }

/* Dock de navegação */
.dock {
  position: fixed; z-index: 40;
  left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem;
  background: rgb(28 30 28 / 0.92); color: var(--ivory);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgb(243 240 233 / 0.1), 0 24px 50px -20px rgb(0 0 0 / 0.6);
  animation: dock-in 0.8s 0.9s var(--ease-out) both;
}
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 24px); } }
.dock__mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--ivory); color: var(--charcoal);
  font-weight: 900; font-variation-settings: "wdth" 125; text-decoration: none;
}
.dock__links { display: flex; padding-inline: 0.5rem; }
.dock__links a {
  display: block; padding: 0.85rem 0.8rem;
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: rgb(243 240 233 / 0.75); transition: color 0.18s var(--ease);
}
.dock__links a[aria-current="true"] { color: var(--ivory); text-decoration: underline; text-underline-offset: 6px; }
@media (hover: hover) { .dock__links a:hover { color: var(--ivory); } }
.dock__btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 46px; padding: 0 1rem;
  background: transparent; border: 0;
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.18s var(--ease);
}
.dock__assistant { border-left: 1px solid rgb(243 240 233 / 0.16); }
.dock__pulse { width: 8px; height: 8px; background: var(--sand); animation: pulse 2.4s infinite var(--ease); }
@keyframes pulse { 50% { opacity: 0.3; } }
.dock__cta { background: var(--tobacco); color: #fff; font-weight: 500; }
.dock__menu { display: none; }
.dock__menu-icon { display: grid; gap: 4px; width: 16px; }
.dock__menu-icon i { height: 2px; background: currentColor; transition: transform 0.25s var(--ease); }
.dock__menu[aria-expanded="true"] .dock__menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.dock__menu[aria-expanded="true"] .dock__menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (hover: hover) {
  .dock__btn:hover { background: rgb(243 240 233 / 0.1); }
  .dock__cta:hover { background: var(--tobacco-2); }
}

@media (max-width: 1179px) {
  .dock__menu { display: inline-flex; }
  .dock__links {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 0.5rem);
    display: grid; padding: 0.5rem;
    background: var(--charcoal);
    box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.6);
    clip-path: inset(100% 0 0 0); visibility: hidden;
    transition: clip-path 0.4s var(--ease-out), visibility 0s 0.4s;
  }
  .menu-open .dock__links { clip-path: inset(0); visibility: visible; transition: clip-path 0.4s var(--ease-out); }
  .dock__links a {
    padding: 0.8rem 0.75rem; color: var(--ivory);
    font-family: var(--sans); font-weight: 850; font-variation-settings: "wdth" 125;
    font-size: 1.5rem; letter-spacing: -0.01em;
  }
}
@media (max-width: 599px) {
  .dock { left: 0.75rem; right: 0.75rem; transform: none; animation-name: dock-in-mobile; }
  @keyframes dock-in-mobile { from { opacity: 0; transform: translateY(24px); } }
  .dock__mark { display: none; }
  .dock__btn { flex: 1; justify-content: center; padding: 0 0.5rem; font-size: 0.6875rem; }
  .dock__cta { flex: 1.4; }
  .dock__assistant { border-left: 0; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr;
  min-height: 100svh;
  padding: var(--pad) var(--pad) calc(var(--dock-space) + 0.5rem);
  color: var(--ivory); background: var(--charcoal);
  overflow: hidden;
}
.hero__media, .hero__poster, .hero__poster img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -1; }
.hero__poster img, .hero__video { object-fit: cover; object-position: 60% 40%; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgb(18 19 18 / 0.92) 0%, rgb(18 19 18 / 0.5) 38%, transparent 62%),
    linear-gradient(180deg, rgb(18 19 18 / 0.55) 0%, transparent 20%);
}
@media (max-width: 699px) {
  .hero__poster img, .hero__video { object-position: 50% 25%; }
}

.hero__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgb(243 240 233 / 0.3);
}
.hero__brand { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.35rem; letter-spacing: 0.08em; }
.hero__eyebrow { color: rgb(243 240 233 / 0.85); }
.hero__hours { justify-self: end; text-align: right; color: rgb(243 240 233 / 0.85); }

.hero__bottom { align-self: end; }
.hero__title {
  font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(2.6rem, 9.6vw, 10.5rem); line-height: 0.84; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line + .hero__line { padding-left: 0.6em; color: var(--sand); }
.hero__row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: 1.25rem;
  border-top: 1px solid rgb(243 240 233 / 0.3);
}
.hero__row p { max-width: 38ch; font-size: 1.125rem; color: rgb(243 240 233 / 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.video-toggle {
  position: absolute; right: var(--pad); top: calc(var(--pad) + 3.75rem);
  min-height: 44px; padding: 0 0.9rem;
  background: rgb(18 19 18 / 0.45); border: 1px solid rgb(243 240 233 / 0.4); color: var(--ivory);
}
@media (hover: hover) { .video-toggle:hover { background: rgb(18 19 18 / 0.75); } }

.js .hero [data-hero-line] { opacity: 0; transform: translateY(40px); }
.js .hero.is-ready [data-hero-line] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .hero.is-ready .hero__top { transition-delay: 0.05s; }
.js .hero.is-ready .hero__line:nth-child(1) { transition-delay: 0.18s; }
.js .hero.is-ready .hero__line:nth-child(2) { transition-delay: 0.32s; }
.js .hero.is-ready .hero__row { transition-delay: 0.55s; }

@media (max-width: 699px) {
  .hero__top { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .hero__eyebrow { display: none; }
  .hero__hours { display: none; }
  .hero__title { font-size: clamp(2.2rem, 11.2vw, 4.5rem); font-variation-settings: "wdth" 112; }
  .video-toggle { top: calc(var(--pad) - 0.4rem); }
  .hero__line + .hero__line { padding-left: 0; }
  .hero__actions, .hero__actions .btn { width: 100%; }
}

/* Manifesto */
.manifesto { padding-top: clamp(5rem, 11vw, 9rem); background: var(--paper); }
.manifesto__text {
  font-weight: 850; font-variation-settings: "wdth" 125;
  font-size: clamp(2rem, 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.inline-img {
  display: inline-block; vertical-align: middle;
  width: 1.9em; height: 0.82em; margin: -0.1em 0.06em 0; overflow: hidden;
  background: var(--paper-2);
}
.inline-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .manifesto__text:hover .inline-img img { transform: scale(1.12); } }
.manifesto__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 2px solid var(--ink);
  color: var(--ink-soft);
}
@media (max-width: 799px) { .manifesto__cols { grid-template-columns: 1fr; gap: 1rem; } }

.marquee {
  margin-top: clamp(4rem, 8vw, 6rem);
  overflow: hidden; background: var(--olive); color: var(--ivory);
  padding-block: 1.1rem;
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center;
  font-weight: 850; font-variation-settings: "wdth" 125; font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase; white-space: nowrap;
}
.marquee__track span::after { content: "/"; margin-inline: 1.5rem; color: var(--sand); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tabela de serviços */
.board { padding-block: clamp(5rem, 10vw, 8rem); background: var(--charcoal); color: var(--ivory); }
.board__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.board__note { margin-top: 1rem; color: var(--steel); text-transform: none; }
.board__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }

.board__labels, .board__row {
  display: grid; grid-template-columns: 3.5rem 1fr 6.5rem 6.5rem; align-items: center; column-gap: 1rem;
}
.board__labels { padding: 0 1rem 0.75rem; color: var(--steel); border-bottom: 2px solid var(--ivory); }
.board__labels span:nth-child(n + 3) { text-align: right; }
.board__row {
  width: 100%; min-height: 76px; padding: 0 1rem;
  background: transparent; border: 0; border-bottom: 1px solid rgb(243 240 233 / 0.16);
  text-align: left; color: inherit;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.board__row > span:nth-child(n + 3) { text-align: right; font-family: var(--mono); font-size: 0.9375rem; }
.board__num { font-family: var(--mono); font-size: 0.8125rem; color: var(--steel); }
.board__svc {
  font-weight: 800; font-variation-settings: "wdth" 115;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem); text-transform: uppercase; letter-spacing: -0.01em;
}
.board__row[aria-pressed="true"] { background: var(--ivory); color: var(--charcoal); }
.board__row[aria-pressed="true"] .board__num { color: var(--tobacco); }
@media (hover: hover) { .board__row[aria-pressed="false"]:hover { background: rgb(243 240 233 / 0.07); } }

.board__detail { position: sticky; top: 1.5rem; display: grid; background: var(--olive); }
.board__photo { aspect-ratio: 4 / 3; overflow: hidden; background: #2b3129; }
.board__photo img { width: 100%; height: 100%; object-fit: cover; }
.is-swapping { animation: swap 0.5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: scale(1.05); } }
.board__info { display: grid; gap: 0.9rem; padding: 1.5rem; }
.board__meta { color: var(--sand); }
.board__name { font-weight: 850; font-variation-settings: "wdth" 125; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.board__info p:not(.board__meta) { color: rgb(243 240 233 / 0.88); }
.board__info .btn { margin-top: 0.4rem; }
.board__info .link-btn { color: var(--ivory); justify-self: start; }

@media (max-width: 899px) {
  .board__grid { grid-template-columns: 1fr; }
  .board__labels, .board__row { grid-template-columns: 2.25rem 1fr 4.5rem; padding-inline: 0.75rem; }
  .board__labels span:nth-child(3), .board__row > span:nth-child(3) { display: none; }
  .board__detail { position: static; }
  .board__photo { aspect-ratio: 16 / 10; }
}

/* Técnica: tira horizontal */
.craft { padding-block: clamp(5rem, 10vw, 8rem); background: var(--paper-2); }
.craft__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.craft__head .tag { flex-basis: 100%; margin-bottom: 0; }
.craft__hint { color: var(--ink-soft); }
.craft__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 440px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: var(--pad); padding-bottom: 1rem; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.craft__card { scroll-snap-align: start; }
.craft__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.25) contrast(1.05); }
.craft__card p { display: flex; gap: 0.75rem; padding-top: 0.9rem; border-top: 2px solid var(--ink); margin-top: 0.9rem; font-weight: 700; font-variation-settings: "wdth" 105; }
.craft__card p .mono { color: var(--tobacco); padding-top: 0.2rem; }
.craft__card:nth-child(even) { margin-top: 3rem; }
.craft .credit { margin-top: 1.5rem; }
@media (max-width: 699px) { .craft__card:nth-child(even) { margin-top: 0; } .craft__strip { grid-auto-columns: 78vw; } }

/* Visor da galeria */
.viewer { padding-block: clamp(5rem, 10vw, 8rem); background: var(--olive); color: var(--ivory); }
.viewer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 4rem); }
.viewer__filters { display: flex; flex-direction: column; align-items: stretch; margin-top: 2rem; border-top: 1px solid rgb(243 240 233 / 0.25); }
.filter {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; padding: 0 0.25rem;
  background: transparent; border: 0; border-bottom: 1px solid rgb(243 240 233 / 0.25);
  font-weight: 800; font-variation-settings: "wdth" 120; font-size: 1.15rem; text-transform: uppercase; text-align: left;
  color: rgb(243 240 233 / 0.65); transition: color 0.18s var(--ease), padding 0.25s var(--ease);
}
.filter span { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; }
.filter[aria-pressed="true"] { color: var(--ivory); padding-left: 0.75rem; box-shadow: inset 4px 0 0 var(--sand); }
@media (hover: hover) { .filter:hover { color: var(--ivory); } }
.viewer__count { margin-top: 1.5rem; color: var(--sand); }
.viewer .title { font-size: clamp(2rem, 3vw, 2.9rem); font-variation-settings: "wdth" 100; }

.viewer__stage { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 0.75rem; }
.viewer__main { position: relative; overflow: hidden; background: #2b3129; aspect-ratio: 5 / 6; max-height: 78svh; width: 100%; }
.viewer__main img { width: 100%; height: 100%; object-fit: cover; }
.viewer__main figcaption { position: absolute; left: 0; bottom: 0; padding: 0.6rem 0.8rem; background: var(--charcoal); color: var(--ivory); }
.viewer__thumbs { display: grid; align-content: start; gap: 0.5rem; }
.thumb {
  display: block; width: 100%; padding: 0; aspect-ratio: 1; overflow: hidden;
  background: none; border: 0; opacity: 0.55; transition: opacity 0.2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--sand); }
@media (hover: hover) { .thumb:hover { opacity: 1; } }

@media (max-width: 899px) {
  .viewer__grid { grid-template-columns: 1fr; }
  .viewer__filters { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; border: 0; }
  .filter { flex: 1 1 auto; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 0.85rem; border: 1px solid rgb(243 240 233 / 0.3); font-size: 0.875rem; }
  .filter[aria-pressed="true"] { padding-left: 0.85rem; box-shadow: none; background: var(--ivory); color: var(--charcoal); }
  .viewer__stage { grid-template-columns: 1fr; }
  .viewer__thumbs { grid-auto-flow: column; grid-auto-columns: 72px; overflow-x: auto; padding: 3px; }
}

/* Equipe: tríptico */
.team { padding-top: clamp(5rem, 10vw, 8rem); background: var(--charcoal); color: var(--ivory); }
.team__head { margin-bottom: 2.5rem; }
.team__panels { display: flex; height: min(82svh, 760px); }
.panel { position: relative; flex: 1; overflow: hidden; transition: flex-grow 0.7s var(--ease-out); }
.panel + .panel { border-left: 2px solid var(--charcoal); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter 0.6s var(--ease), transform 0.9s var(--ease-out); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(18 19 18 / 0.95) 0%, rgb(18 19 18 / 0.4) 50%, rgb(18 19 18 / 0.1) 100%); }
.panel__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: 0.6rem; }
.panel__num { color: var(--sand); }
.panel__name { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.03em; }
.panel__role { color: var(--steel); }
.panel__more { display: grid; gap: 0.8rem; max-width: 42ch; }
.panel__more p { color: rgb(243 240 233 / 0.9); }
.panel__focus { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.panel__focus li { padding: 0.3rem 0.5rem; border: 1px solid rgb(243 240 233 / 0.35); }
.panel__book { justify-self: start; }

@media (min-width: 900px) {
  .panel__more { opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s; }
  .panel.is-active { flex-grow: 2.2; }
  .panel.is-active img { filter: grayscale(0) contrast(1.05); transform: scale(1.03); }
  .panel.is-active .panel__more { opacity: 1; transform: none; visibility: visible; transition: opacity 0.4s 0.2s var(--ease), transform 0.4s 0.2s var(--ease); }
}
@media (max-width: 899px) {
  .team__panels { display: grid; height: auto; }
  .panel { min-height: min(82svh, 620px); }
  .panel + .panel { border-left: 0; border-top: 2px solid var(--charcoal); }
  .panel img { filter: grayscale(0.2); }
}

/* Assistente: roteiro tipográfico */
.talk { padding-block: clamp(5rem, 10vw, 8rem); background: var(--tobacco); color: #fff; }
.talk .title { color: #fff; }
.talk__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.talk__desc { margin-block: 1.5rem 2rem; font-size: 1.1875rem; max-width: 40ch; }
.talk__small { margin-top: 1.25rem; max-width: 46ch; text-transform: none; color: rgb(255 255 255 / 0.85); }
.transcript { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--charcoal); color: var(--ivory); min-height: 420px; align-content: start; }
.transcript li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; font-size: 1.0625rem; line-height: 1.45; }
.transcript li::before { content: attr(data-who); font-family: var(--mono); font-size: 0.75rem; padding-top: 0.2rem; color: var(--steel); text-transform: uppercase; }
.transcript li.is-bot::before { color: var(--sand); }
.transcript li.is-pending { opacity: 0; transform: translateX(-10px); }
.transcript li.is-shown { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.talk__try { margin-top: 1.75rem; margin-bottom: 0.75rem; color: rgb(255 255 255 / 0.85); }
.talk__suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggestion {
  min-height: 44px; padding: 0.5rem 0.9rem;
  background: transparent; border: 1px solid rgb(255 255 255 / 0.65); color: #fff;
  font-size: 0.9375rem; text-align: left;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
@media (hover: hover) { .suggestion:hover { background: #fff; color: var(--charcoal); } }
@media (max-width: 899px) {
  .talk__grid { grid-template-columns: 1fr; }
  .transcript { min-height: 0; }
  .transcript li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Comanda: picote nas bordas */
.journey { padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 4rem); background: var(--paper); }
.journey .title { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.comanda {
  --tooth: 10px;
  position: relative; background: #fbf9f4; color: var(--charcoal);
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem) 2rem;
  -webkit-mask:
    radial-gradient(circle at 50% 0, transparent 6px, #000 6.5px) top / 18px var(--tooth) repeat-x,
    radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 18px var(--tooth) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--tooth)) no-repeat;
  mask:
    radial-gradient(circle at 50% 0, transparent 6px, #000 6.5px) top / 18px var(--tooth) repeat-x,
    radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 18px var(--tooth) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--tooth)) no-repeat;
}
@media (prefers-color-scheme: dark) { .comanda { background: var(--stone); } }
.comanda__top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.75rem 1rem; border-bottom: 2px dashed rgb(28 30 28 / 0.35); color: #4a4d49; }
.comanda__fields { display: grid; grid-template-columns: repeat(4, 1fr); }
.comanda__fields li { position: relative; display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem 1.25rem 0.5rem 0; }
.comanda__fields li + li { padding-left: 1.25rem; border-left: 1px dashed rgb(28 30 28 / 0.35); }
.comanda__num { font-size: 0.875rem; color: var(--tobacco); }
.comanda__fields h3 { font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.2rem; line-height: 1.15; text-transform: uppercase; }
.comanda__fields p { color: #4a4d49; font-size: 0.9375rem; }
.comanda__fill { margin-top: 0.75rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--charcoal); font-size: 0.875rem; text-transform: none; }
.comanda__stamp {
  justify-self: start; margin-top: 0.75rem; padding: 0.4rem 0.6rem;
  border: 2px solid var(--tobacco); color: var(--tobacco); font-weight: 500;
  transform: rotate(-4deg); transform-origin: left;
}
.comanda.is-visible .comanda__stamp { animation: stamp 0.5s 0.7s var(--ease-out) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } }
@media (max-width: 899px) {
  .comanda__fields { grid-template-columns: 1fr 1fr; }
  .comanda__fields li:nth-child(3) { padding-left: 0; border-left: 0; }
  .comanda__fields li:nth-child(n + 3) { border-top: 1px dashed rgb(28 30 28 / 0.35); }
}
@media (max-width: 519px) {
  .comanda__fields { grid-template-columns: 1fr; }
  .comanda__fields li + li { padding-left: 0; border-left: 0; border-top: 1px dashed rgb(28 30 28 / 0.35); }
}

/* FAQ */
.faq { padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem); background: var(--paper); }
.faq .title { margin-bottom: 2.5rem; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 4rem); align-items: start; border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: 0.5rem;
  min-height: 44px; padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 750; font-variation-settings: "wdth" 108; font-size: 1.125rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { font-family: var(--mono); font-size: 0.75rem; color: var(--tobacco); font-weight: 400; }
@media (prefers-color-scheme: dark) { .faq__num { color: var(--sand); } }
.faq__item summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 0 1.4rem 3rem; color: var(--ink-soft); max-width: 56ch; }
.faq__item[open] p { animation: faq-in 0.35s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) { .faq__item summary:hover { color: var(--tobacco); } }
@media (max-width: 799px) { .faq__list { grid-template-columns: 1fr; } }

/* Fechamento: a palavra é o botão */
.closing { padding-block: clamp(4rem, 9vw, 7rem); background: var(--charcoal); color: var(--ivory); overflow: hidden; }
.closing__word {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: 100%; padding: 0; margin-block: 0.5rem 2rem;
  background: none; border: 0; border-bottom: 3px solid var(--ivory); color: var(--ivory);
  text-align: left;
}
.closing__text {
  font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(2.8rem, 12.4vw, 14rem); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.closing__arrow { flex: none; font-family: var(--mono); font-size: clamp(2rem, 7vw, 7rem); transition: transform 0.35s var(--ease-out); }
@media (hover: hover) {
  .closing__word:hover .closing__text { color: var(--sand); }
  .closing__word:hover .closing__arrow { transform: translateX(1.5rem); }
}
.closing__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.closing__row p { max-width: 44ch; color: rgb(243 240 233 / 0.85); }

/* Rodapé */
.footer { padding-top: clamp(3.5rem, 7vw, 5rem); background: var(--paper-2); color: var(--ink); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 2rem; }
.footer__h { margin-bottom: 1rem; color: var(--tobacco); }
@media (prefers-color-scheme: dark) { .footer__h { color: var(--sand); } }
.footer__demo { margin-left: 0.4rem; padding: 0.1rem 0.4rem; border: 1px solid currentColor; }
.footer__hours { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; font-size: 0.9375rem; }
.footer__hours dt { color: var(--ink-soft); }
.footer__list { display: grid; gap: 0.3rem; font-size: 0.9375rem; }
.footer__grid p { font-size: 0.9375rem; }
.footer__velour { display: grid; gap: 0.75rem; align-content: start; color: var(--ink-soft); }
.footer__velour a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.footer__word {
  margin-top: 2.5rem; padding-bottom: var(--dock-space);
  font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: 21vw; line-height: 0.75; letter-spacing: -0.05em; text-align: center;
  color: var(--ink); white-space: nowrap;
}
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .footer__grid { grid-template-columns: 1fr; } }

/* Chat: gaveta lateral */
.chat {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  display: none; flex-direction: column;
  width: min(460px, 100vw); height: 100%; max-height: none; max-width: none;
  background: var(--ivory); color: var(--charcoal);
  border: 0; border-left: 2px solid var(--charcoal);
  overflow: hidden;
}
.chat[open] { display: flex; animation: drawer-in 0.45s var(--ease-out) both; }
.chat.is-closing { animation: drawer-out 0.25s var(--ease) both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.chat::backdrop { background: rgb(18 19 18 / 0.55); }

.chat__header { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 0.75rem 1rem 1.25rem; background: var(--charcoal); color: var(--ivory); }
.chat__heading { flex: 1; min-width: 0; }
.chat__heading h2 { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.01em; }
.chat__heading p { color: var(--sand); text-transform: none; }
.chat__icon-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid rgb(243 240 233 / 0.25); color: inherit; }
@media (hover: hover) { .chat__icon-btn:hover { background: rgb(243 240 233 / 0.1); } }

.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem; }
.chat__log:focus-visible { outline-offset: -3px; }
.chat__msg { display: flex; }
.chat__msg--user { justify-content: flex-end; }
.bubble { max-width: 88%; padding: 0.7rem 0.9rem; font-size: 0.9375rem; line-height: 1.45; white-space: pre-line; animation: bubble-in 0.3s var(--ease-out) both; }
.bubble--bot { background: #fff; border-left: 3px solid var(--tobacco); }
.bubble--user { background: var(--charcoal); color: var(--ivory); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-bottom: 0.3rem; }
.chip {
  min-height: 40px; padding: 0.45rem 0.8rem;
  background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal);
  font-size: 0.8125rem; text-align: left;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
@media (hover: hover) { .chip:hover { background: var(--charcoal); color: var(--ivory); } }
.chat__chips[data-used="true"] { pointer-events: none; }
.chat__chips[data-used="true"] .chip { opacity: 0.4; }

.chat__card {
  position: relative; padding: 1.1rem 1rem 1.2rem; background: #fff; font-size: 0.875rem;
  border-top: 2px dashed rgb(28 30 28 / 0.35); border-bottom: 2px dashed rgb(28 30 28 / 0.35);
}
.chat__card h3 { margin-bottom: 0.7rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; color: var(--tobacco); }
.chat__card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; }
.chat__card dt { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; color: #5b5e59; padding-top: 0.1rem; }
.chat__card dd { font-weight: 650; }
.chat__card p + p { margin-top: 0.5rem; }
.chat__card--done { background: #eef0ea; }
.chat__card--error { border-color: #9b3d2e; background: #fbefec; color: #7a2b1f; }
.chat__status {
  display: inline-block; margin-top: 0.8rem; padding: 0.3rem 0.5rem;
  border: 2px solid var(--tobacco); color: var(--tobacco);
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase;
  transform: rotate(-2deg);
}

.chat__typing { padding: 0 1.25rem 0.5rem; }
.chat__typing-dots { display: inline-flex; gap: 4px; padding: 0.75rem 0.9rem; background: #fff; border-left: 3px solid var(--tobacco); }
.chat__typing-dots i { width: 6px; height: 6px; background: #6b6e69; animation: typing 1.1s infinite ease-in-out; }
.chat__typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat__form { display: flex; border-top: 2px solid var(--charcoal); }
.chat__form input { flex: 1; min-width: 0; min-height: 56px; padding: 0 1.25rem; background: #fff; border: 0; border-radius: 0; font-size: 1rem; }
.chat__form input:focus-visible { outline-offset: -3px; }
.chat__form input[aria-invalid="true"] { box-shadow: inset 0 -3px 0 #9b3d2e; }
.chat__send { display: grid; place-items: center; width: 60px; background: var(--charcoal); color: var(--ivory); border: 0; }
.chat__form[aria-busy="true"] .chat__send { opacity: 0.5; }
.chat__footnote { padding: 0.6rem 1.25rem calc(0.6rem + env(safe-area-inset-bottom)); color: #5b5e59; text-transform: none; background: var(--ivory); }

/* Revelações ao rolar */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity 0.62s var(--ease) var(--reveal-delay, 0ms), transform 0.62s var(--ease) var(--reveal-delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal], .js .hero [data-hero-line] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .hero__video { display: none; }
}
