/* Halden Row Barbers (demo) · direction in ../DESIGN.md */
:root {
  --fundo: #141312;          /* SAME color used in the image prompts */
  --fundo-2: #1c1a18;
  --texto: #efe8dc;
  --texto-suave: #a99f92;
  --acento: #d9984a;         /* lamp amber */
  --acento-texto: #141312;
  --linha: rgb(239 232 220 / 0.14);
  --placa: rgb(20 19 18 / 0.86);
  --mistura: lighten;

  --fonte-titulo: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --fonte-texto: "Archivo", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --largura: 1240px;
  --ritmo: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 clamp(16px, 1.05vw, 18px)/1.6 var(--fonte-texto);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 1s steps(4) infinite;
}
@keyframes grao { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 800; line-height: .94; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.6vw, 100px); font-weight: 900; }
h2 { font-size: clamp(48px, 7vw, 112px); font-weight: 900; }
h3 { font-size: clamp(26px, 2.2vw, 34px); }
p { margin: 0 0 1em; color: var(--texto-suave); text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nota { font-size: 14px; color: var(--texto-suave); }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 2px; }
.pular { position: fixed; left: var(--gutter); top: 8px; z-index: 100; background: var(--acento); color: var(--acento-texto); padding: 12px 16px; font-weight: 600; transform: translateY(-150%); }
.pular:focus { transform: none; }

/* ── Header ────────────────────────────────────────────────────────────── */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s var(--ease); background: linear-gradient(to bottom, rgb(20 19 18 / .85), transparent); }
.topo.rolou { background: rgb(20 19 18 / .96); }
.faixa-demo { margin: 0; padding: 6px var(--gutter); font-size: 12.5px; line-height: 1.4; color: var(--texto); background: #2a2420; text-align: center; }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); }
.marca { text-decoration: none; }
.marca-texto { font-family: var(--fonte-titulo); font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.marca-texto span { color: var(--acento); }
.menu { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.menu a:not(.botao) { text-decoration: none; padding: 10px 0; opacity: .82; transition: opacity .3s; }
.menu a:not(.botao):hover { opacity: 1; }
@media (max-width: 760px) { .menu a:not(.botao) { display: none; } .marca-texto { font-size: 22px; } }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font: 600 16px/1 var(--fonte-texto); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  color: var(--acento-texto); background: var(--acento); border: 2px solid var(--acento); border-radius: 4px;
  padding: 14px 26px; transition: background .25s, color .25s, transform .3s var(--ease);
}
.botao:hover { background: #e7aa61; border-color: #e7aa61; }
.botao--pequeno { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.botao--grande { min-height: 58px; padding: 18px 40px; font-size: 18px; }
.botao--contorno { background: transparent; color: var(--texto); border-color: var(--linha); }
.botao--contorno:hover { background: transparent; border-color: var(--texto); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.acoes--centro { justify-content: center; }

/* ── Opening ───────────────────────────────────────────────────────────── */
.cine { position: relative; height: var(--altura, 400vh); }
.cine-palco {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--fundo) url("assets/frames/desktop/f_0001.webp") center / cover no-repeat; /* still frame: no JS, reduced motion, slow load */
}
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .45) 100%),
    linear-gradient(to bottom, transparent 70%, var(--fundo) 100%);
}
.momento {
  position: absolute; left: var(--gutter); right: auto; bottom: 11vh; max-width: 620px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.momento.ativo { opacity: 1; transform: none; pointer-events: auto; }
.momento--direita { left: auto; right: var(--gutter); max-width: 460px; }
.placa { background: var(--placa); padding: clamp(22px, 2.8vw, 40px); border-radius: 4px; }
.placa > :last-child { margin-bottom: 0; }
.titulo-abertura { margin-bottom: .3em; }
.apoio { font-size: clamp(17px, 1.3vw, 20px); color: var(--texto); margin: 0 0 22px; }
.hoje { margin: 0; font-size: 15px; color: var(--texto); }
.hoje strong { color: var(--acento); font-weight: 600; }
.destaque { font-family: var(--fonte-titulo); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; color: var(--texto); margin: 0 0 .6em; }
.destaque:last-child { margin: 0; }
.selo-ilustrativo { position: absolute; right: var(--gutter); bottom: 16px; margin: 0; font-size: 12px; color: var(--texto-suave); background: rgb(20 19 18 / .7); padding: 3px 8px; }
.cine-dica {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; transition: opacity .5s;
}
.cine-dica span { width: 1px; height: 38px; background: linear-gradient(var(--texto), transparent); animation: dica 2s var(--ease) infinite; }
@keyframes dica { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cine.andou .cine-dica { opacity: 0; }
/* Without JS the frames never load: keep the first moment readable over the still frame */
.no-js .cine { height: 100svh; }
.no-js .momento:first-of-type { opacity: 1; transform: none; pointer-events: auto; }
.no-js .momento:not(:first-of-type), .no-js .cine-dica { display: none; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.secao { position: relative; isolation: isolate; overflow: clip; padding: var(--ritmo) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); }

/* Services: price board */
.secao--servicos { min-height: 100vh; align-content: center; }
/* Art sits low on the left, under the sticky title, so the intro text never lands on the steam */
.secao--servicos .arte--esquerda { top: auto; bottom: 0; height: 58%; width: 46vw; opacity: .7;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 98%), linear-gradient(to bottom, transparent, #000 40%, #000 85%, transparent);
          mask-image: linear-gradient(to right, #000 45%, transparent 98%), linear-gradient(to bottom, transparent, #000 40%, #000 85%, transparent); }
.quadro { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quadro-titulo { position: sticky; top: 140px; }
.quadro-titulo p { max-width: 36ch; }
.tabela { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); }
.tabela li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: baseline; gap: 6px 22px; padding: 22px 0; border-bottom: 1px solid var(--linha); }
.tabela h3 { margin: 0 0 6px; }
.tabela-nome p { margin: 0; font-size: 15px; }
.tabela-tempo { font-size: 15px; color: var(--texto-suave); white-space: nowrap; }
.tabela-preco { font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(30px, 2.4vw, 38px); line-height: 1; }
.tabela-link { color: var(--acento); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0 12px 4px; }
.tabela-link:hover { color: #e7aa61; }

/* Styles: guard ladder */
.secao--estilos { background: var(--fundo-2); }
.estilos { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.estilos-texto > p:first-of-type { max-width: 40ch; }
.estilos-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 20px; }
.estilo {
  min-height: 46px; padding: 10px 18px; cursor: pointer; border-radius: 4px;
  font: 600 15px/1 var(--fonte-texto); color: var(--texto); background: transparent; border: 1px solid var(--linha);
  transition: background .25s, color .25s, border-color .25s;
}
.estilo:hover { border-color: var(--texto-suave); }
.estilo[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.estilo-descricao { color: var(--texto); min-height: 4.8em; max-width: 44ch; margin: 0; }
.escada { margin: 0; }
.escada-guias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); align-items: end; }
.escada-guias li { display: grid; justify-items: center; gap: 6px; text-align: center; }
.guia {
  --k: 0;
  width: 100%; max-width: 46px; height: calc(10px + var(--mm) * clamp(6px, .75vw, 10px));
  background: rgb(239 232 220 / .1); border-radius: 3px 3px 0 0;
  box-shadow: inset 0 0 0 1px var(--linha);
  transition: background .35s var(--ease) calc(var(--k) * 70ms), box-shadow .35s var(--ease) calc(var(--k) * 70ms);
}
.escada-guias li.aceso .guia { background: var(--acento); box-shadow: none; }
.escada-guias strong { font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(18px, 1.8vw, 26px); line-height: 1; color: var(--texto-suave); transition: color .35s calc(var(--k) * 70ms); }
.escada-guias li.aceso strong { color: var(--texto); }
.escada-guias small { font-size: 12px; color: var(--texto-suave); white-space: nowrap; }
.escada figcaption { margin-top: 22px; font-size: 14px; color: var(--texto-suave); border-top: 1px solid var(--linha); padding-top: 14px; }

/* Team: roster */
.equipe { width: 100%; max-width: var(--largura); margin: 0 auto; }
.lista-equipe { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--linha); }
.lista-equipe li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--linha); }
.lista-equipe h3 { font-size: clamp(48px, 8vw, 128px); font-weight: 900; margin: 0; }
.lista-equipe p { margin: 0; display: grid; gap: 4px; text-align: right; font-size: 16px; }
.lista-equipe p span:first-child { color: var(--texto); }

/* Visit */
.secao--visita { padding-top: 0; }
.faixa-foto { position: relative; height: clamp(300px, 62vh, 640px); margin: 0 calc(-1 * var(--gutter)); isolation: isolate; }
.arte--faixa { opacity: .9; }
.faixa-foto .selo-ilustrativo { bottom: 24px; }
.visita { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: 24px; }
address { font-style: normal; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.45; margin-bottom: 20px; }
address .nota { font-size: 14px; }
.link { color: var(--acento); font-weight: 600; font-size: 20px; text-underline-offset: 4px; display: inline-block; padding: 8px 0; }
.horas { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.horas th, .horas td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--linha); font-weight: 400; }
.horas td { text-align: right; color: var(--texto-suave); }
.horas tr.hoje-linha th, .horas tr.hoje-linha td { color: var(--acento); font-weight: 600; }

/* Book */
.secao--agendar { min-height: 90vh; align-content: center; justify-items: center; text-align: center; }
.agendar { max-width: 760px; }
.agendar > p { max-width: 46ch; margin-inline: auto; color: var(--texto); }
.agendar .acoes { margin-top: 30px; }
.aviso-demo { display: none; margin: 26px auto 0; padding: 16px 20px; max-width: 52ch; font-size: 15px; color: var(--texto); background: #2a2420; border-radius: 4px; }
.sem-agenda .aviso-demo { display: block; }

/* ── Art fused into the background (never a framed rectangle) ──────────── */
.arte { position: absolute; z-index: -1; pointer-events: none; object-fit: cover; mix-blend-mode: var(--mistura); -webkit-mask-composite: source-in; mask-composite: intersect; }
.arte--direita, .arte--esquerda { top: 0; bottom: 0; width: 60vw; height: 100%; opacity: .75; }
.arte--direita {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.arte--esquerda {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.arte--fundo {
  inset: 0; width: 100%; height: 100%; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.arte--faixa { -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(70% 80% at 50% 50%, #000 40%, transparent 100%); }
.arte--suave { opacity: .3; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.rodape { max-width: var(--largura); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--texto-suave); border-top: 1px solid var(--linha); }

/* ── Sticky Book bar (phones) ──────────────────────────────────────────── */
.barra-agendar { display: none; }
@media (max-width: 760px) {
  .barra-agendar {
    display: block; position: fixed; inset: auto 0 0; z-index: 60;
    padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
    background: rgb(20 19 18 / .96); border-top: 1px solid var(--linha);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .barra-agendar.visivel { transform: none; }
  .barra-agendar .botao { width: 100%; }
  .rodape { padding-bottom: 96px; }
}

/* ── Reveal on scroll (only when JS runs) ──────────────────────────────── */
.js .revelar { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .revelar.visto { opacity: 1; transform: none; }

/* ── Phones and tablets ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .quadro, .estilos, .visita { grid-template-columns: minmax(0, 1fr); }
  .quadro-titulo { position: static; }
  .arte--direita, .arte--esquerda { left: 0; right: 0; width: 100%; height: 55%; opacity: .5;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent); }
  .momento, .momento--direita { left: var(--gutter); right: var(--gutter); bottom: calc(5vh + 76px); max-width: none; } /* clears the sticky Book bar */
  .selo-ilustrativo { bottom: auto; top: 108px; }
  .faixa-foto .selo-ilustrativo { top: auto; bottom: 16px; }
}
@media (max-width: 560px) {
  .tabela li { grid-template-columns: minmax(0, 1fr) auto; }
  .tabela-nome { grid-column: 1 / -1; }
  .tabela-tempo { grid-column: 1; }
  .tabela-preco { grid-column: 2; grid-row: 2; }
  .tabela-link { grid-column: 1 / -1; padding: 10px 0 0; }
  .lista-equipe li { grid-template-columns: minmax(0, 1fr); }
  .lista-equipe p { text-align: left; }
  .escada-guias small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .revelar { opacity: 1; transform: none; }
  .cine { height: 100svh; }
  .momento:first-of-type { opacity: 1; transform: none; pointer-events: auto; }
  .momento:not(:first-of-type), .cine-dica { display: none; }
}
