/* Kyrio Barber · barber.css — a página do produto dentro da Labs (/barber/). NESTA fase, só o topo.
   Pele "cinema silencioso" da LP da barbearia (kyrio-vitrine `8e1699d`,
   src/components/barber-landing/landing.module.css): quase preto, creme, um dourado discreto;
   Archivo largura 125 em caixa alta nos títulos e na marca, Inter Tight leve no texto.
   Movimento só em prefers-reduced-motion: no-preference (zoom lento da foto, texto subindo em
   sequência). Fora dele nada nasce invisível. No portal (html.portal-espera, portal.js), o texto
   espera o círculo abrir. */

@font-face {
  font-family: "Archivo Kyrio";
  src: url("/assets/fonts/archivo-expanded.v25.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* métrica calculada do próprio arquivo (largura 125), a mesma da LP: a troca não empurra a página */
  font-family: "Archivo Kyrio Fallback";
  src: local("Arial");
  ascent-override: 66.53%;
  descent-override: 15.91%;
  line-gap-override: 0%;
  size-adjust: 131.98%;
}
@font-face {
  font-family: "Inter Tight Kyrio";
  src: url("/assets/fonts/inter-tight.v9.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight Kyrio Fallback";
  src: local("Arial");
  ascent-override: 100.51%;
  descent-override: 25.03%;
  line-gap-override: 0%;
  size-adjust: 96.39%;
}

:root {
  color-scheme: dark;
  --bg: #0A0807;
  --fg: #EFE7DC;
  --fg-mut: #9C9287;
  --ouro: #C9A46A;
  --linha: rgba(239, 231, 220, .14);
  --f-titulo: "Archivo Kyrio", "Archivo Kyrio Fallback", Arial, system-ui, sans-serif;
  --f-texto: "Inter Tight Kyrio", "Inter Tight Kyrio Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-texto); font-size: 17px; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
h1, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
::selection { background: var(--ouro); color: #14100B; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pular {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ouro); color: #14100B; text-decoration: none; font-weight: 600;
}
.pular:focus { top: 12px; }
.bb-wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .bb-wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1200px) { .bb-wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }

/* ---------- nav: a marca escrita e a porta de volta para a Labs ---------- */
.bb-nav { position: absolute; z-index: 3; inset: 0 0 auto; }
.bb-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.bb-marca {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-family: var(--f-titulo); font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.bb-marca span { font-weight: 300; color: var(--ouro); }
.bb-nav .voltar-labs {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--linha); text-underline-offset: 8px;
  transition: text-decoration-color .3s;
}
@media (hover: hover) and (pointer: fine) { .bb-nav .voltar-labs:hover { text-decoration-color: var(--ouro); } }

/* ---------- topo ---------- */
/* Celular: o recorte em pé da cadeira ocupa o alto e o texto entra por cima do pé dela, sobre o
   degradê. Computador (≥ 900px): a foto é o fundo inteiro, a cadeira no terço direito, e o título
   na metade esquerda vazia, com o véu da esquerda para a direita. */
.bb-hero {
  --foto-h: min(74svh, 128vw);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100svh;
}
.bb-hero__foto, .bb-hero__veu { position: absolute; left: 0; right: 0; top: 0; height: var(--foto-h); }
.bb-hero__foto { z-index: -2; overflow: hidden; background: var(--bg); transform-origin: 60% 55%; }
.bb-hero__foto picture { width: 100%; height: 100%; }
.bb-hero__foto img {
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: 55% 50%; transform-origin: 60% 55%;
}
.bb-hero__veu {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 8, 7, .72) 0%, rgba(10, 8, 7, 0) 20%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 8, 7, .88) 16%, rgba(10, 8, 7, 0) 50%);
}
.bb-hero__corpo { position: relative; padding-top: max(112px, calc(var(--foto-h) - 128px)); padding-bottom: 72px; }
.bb-hero__copy { min-width: 0; max-width: 780px; }
.bb-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; line-height: 1.4;
  color: var(--ouro);
}
.bb-kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; flex: none; }
.bb-h1 {
  margin-top: 22px;
  font-family: var(--f-titulo); font-size: clamp(2rem, .9rem + 4.4vw, 3.9rem); font-weight: 800;
  line-height: 1.04; letter-spacing: .01em; text-transform: uppercase;
}
.bb-h1 .hl { font-weight: 300; color: var(--ouro); white-space: nowrap; }
.bb-sub {
  margin-top: 22px; max-width: 50ch;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.12rem); font-weight: 300; line-height: 1.7;
  color: rgba(239, 231, 220, .8); text-wrap: pretty;
}
.bb-nota { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 13.5px; font-weight: 300; color: var(--fg-mut); }
.bb-nota svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ouro); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bb-hero .previa-construcao { color: var(--fg-mut); }

@media (min-width: 900px) {
  .bb-hero { min-height: clamp(640px, 100svh, 940px); }
  .bb-hero__foto, .bb-hero__veu { height: auto; bottom: 0; }
  .bb-hero__foto { transform-origin: 72% 50%; }
  .bb-hero__foto img { object-position: 72% 50%; transform-origin: 72% 50%; }
  .bb-hero__veu {
    background:
      linear-gradient(90deg, rgba(10, 8, 7, .96) 0%, rgba(10, 8, 7, .82) 30%, rgba(10, 8, 7, .25) 58%, rgba(10, 8, 7, 0) 75%),
      linear-gradient(0deg, var(--bg) 0%, rgba(10, 8, 7, 0) 26%),
      linear-gradient(180deg, rgba(10, 8, 7, .6) 0%, rgba(10, 8, 7, 0) 18%);
  }
  .bb-hero__corpo { margin-top: auto; padding-top: 48px; padding-bottom: clamp(72px, 10vh, 112px); }
}

/* ---------- movimento (só quem não pediu menos movimento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bb-hero__foto img { animation: bbZoom 22s cubic-bezier(.22, .61, .36, 1) both; }
  .sobe { animation: bbSobe 1.3s var(--ease) both; animation-delay: calc(.3s + var(--i, 0) * .28s); }
  /* no portal o texto espera o círculo abrir (o portal.js tira a classe); a demora longa é a rede de segurança */
  html.portal-espera .sobe { animation-name: bbSobePortal; animation-delay: calc(3s + var(--i, 0) * .14s); }
}
@keyframes bbZoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes bbSobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bbSobePortal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.s1 { --i: 1; }
.s2 { --i: 2; }
.s3 { --i: 3; }
.s4 { --i: 4; }
