/* Layout: a barbearia como um quadro de serviços — letreiro condensado
   em cima do chão escuro da loja, latão como acento e leituras em mono
   como a voz técnica da casa. Tema único escuro, por escolha. */
:root {
  --ink: #0c0b0a;
  --coal: #151311;
  --coal-2: #1e1b18;
  --bone: #ece5d8;
  --mute: #a69e92;
  --dim: #6f685f;
  --brass: #d3a35c;
  --brass-2: #f0c98a;
  --pole: #c23b2e;
  --pole-blue: #2f4d7c;
  --ok: #8cc79a;
  --white: #ffffff;
  --line: rgba(236, 229, 216, 0.12);
  --line-2: rgba(236, 229, 216, 0.22);
  --glass: rgba(12, 11, 10, 0.72);

  --f-display: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --cut: 12px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--ink); }
body {
  margin: 0;
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after {
  /* grão de filme bem sutil */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.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");
}
img, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografia de seção ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  color: var(--brass);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 7.2vw, 108px); line-height: 0.88; letter-spacing: 0.005em;
  text-wrap: balance;
}
.h2 em, .h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--brass);
}
.lede { margin: 24px 0 0; max-width: 58ch; color: var(--mute); font-size: clamp(16px, 1.3vw, 18px); }
.section { padding-block: clamp(88px, 12vw, 168px); position: relative; }

/* ---------- botões com canto "cortado" ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding-inline: 26px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--brass); color: var(--ink); }
.btn-solid:hover { background: var(--brass-2); }
.btn-ghost { background: rgba(236, 229, 216, 0.07); color: var(--bone); }
.btn-ghost:hover { background: rgba(236, 229, 216, 0.14); }
.btn-sm { --h: 42px; padding-inline: 18px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled='true'], .btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; animation: plFailsafe 0.01s linear 7s forwards; }
.preloader.is-gone { display: none; }
.pl-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transition: transform 1.1s var(--ease-io); }
.pl-top { top: 0; }
.pl-bottom { bottom: 0; }
.preloader.is-open { pointer-events: none; }
.preloader.is-open .pl-top { transform: translateY(-101%); }
.preloader.is-open .pl-bottom { transform: translateY(101%); }
.pl-meta {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.pl-count { font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 15vw, 200px); line-height: 0.8; font-variant-numeric: tabular-nums; }
.pl-label { color: var(--mute); text-align: right; }
.pl-label b { color: var(--brass); font-weight: 500; }
.pl-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); z-index: 2; transition: opacity 0.4s; }
.pl-line i { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.3s linear; }
.preloader.is-open .pl-line { opacity: 0; }
.pl-scissors { position: absolute; top: 50%; left: 0; z-index: 3; width: 70px; color: var(--bone); transform: translate(-120%, -50%); }
.snip .blade-a, .snip .blade-b { transform-box: view-box; transform-origin: 40px 24px; }
@keyframes plFailsafe { to { visibility: hidden; pointer-events: none; } }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; mix-blend-mode: difference; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--white); }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid var(--white);
    display: grid; place-items: center;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.35s;
  }
  .cursor-ring span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.2s; }
  .cursor.is-hover .cursor-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: var(--white); }
  .cursor.is-hover .cursor-ring span { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark { width: 28px; height: 28px; color: var(--brass); }
.logo-word { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: 0.08em; line-height: 1; }
.logo-word em { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--brass); margin-left: 4px; font-size: 1.05em; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { position: relative; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); transition: color 0.3s; padding-block: 6px; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(140, 199, 154, 0.15); animation: pulse 2s infinite; }
.status.is-closed::before { background: var(--pole); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(140, 199, 154, 0); } }
.nav-burger { display: none; width: 44px; height: 44px; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 26px; }
.nav-burger[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 11vw, 64px); text-transform: uppercase; line-height: 1.05; border-bottom: 1px solid var(--line); padding-block: 8px; }
.mobile-menu .btn { margin-top: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(640px, 94svh, 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 48px);
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(211, 163, 92, 0.16), transparent 70%),
    radial-gradient(40% 50% at 20% 100%, rgba(194, 59, 46, 0.10), transparent 70%),
    var(--ink);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { position: relative; padding-bottom: clamp(28px, 5vw, 56px); pointer-events: none; }
.hero-grid a, .hero-grid button { pointer-events: auto; }
.hero-title {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 15vw, 230px); line-height: 0.8; letter-spacing: -0.005em;
}
.ht-line { display: block; position: relative; }
.ht-cut { position: relative; display: inline-block; color: transparent; }
.ht-cut::before, .ht-cut::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--bone);
  transition: transform 1s var(--ease);
}
.ht-cut::before { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 60%); }
.ht-cut::after { clip-path: polygon(0 60%, 100% 40%, 100% 100%, 0 100%); }
.is-cut .ht-cut::before { transform: translate(-0.03em, -0.025em); }
.is-cut .ht-cut::after { transform: translate(0.03em, 0.025em); color: var(--brass-2); }
.ht-slash {
  position: absolute; left: -3%; top: 50%; width: 106%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--brass-2) 15%, var(--white) 50%, var(--brass-2) 85%, transparent);
  transform: rotate(var(--slash, -4deg)) scaleX(0); transform-origin: left center;
  box-shadow: 0 0 18px rgba(240, 201, 138, 0.8);
  opacity: 0;
}
.is-cut .ht-slash { animation: slash 1.1s var(--ease) forwards; }
@keyframes slash {
  0% { transform: rotate(var(--slash, -4deg)) scaleX(0); opacity: 1; }
  45% { transform: rotate(var(--slash, -4deg)) scaleX(1); opacity: 1; }
  100% { transform: rotate(var(--slash, -4deg)) scaleX(1); opacity: 0; }
}
.ht-serif {
  font-family: var(--f-serif); font-weight: 400; font-style: italic; text-transform: none;
  color: var(--brass); font-size: 0.6em; line-height: 0.9; letter-spacing: -0.01em;
  margin: -0.02em 0 0 0.9em;
}
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: 28px; }
.hero-lede { margin: 0; max-width: 44ch; color: var(--mute); font-size: clamp(16px, 1.35vw, 19px); }
.hero-lede strong { color: var(--bone); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hud {
  position: absolute; z-index: 2; top: calc(var(--nav-h) + 24px); left: max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid; grid-auto-flow: column; grid-template-rows: auto auto; gap: 2px 28px;
  color: var(--dim); font-size: 11px; pointer-events: none;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.hero-hud b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 9ch; }
.hero-hud .hud-key { grid-row: 1 / span 2; align-self: center; color: var(--brass); }
.hero-foot { border-top: 1px solid var(--line); }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 64px; padding-block: 14px; color: var(--mute); }
.hero-facts span { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts span b { color: var(--bone); font-weight: 500; }
.hero-facts .scroll-cue { margin-left: auto; color: var(--brass); }
.scroll-cue i { display: inline-block; width: 1px; height: 22px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- letreiro corrido ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--coal); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-inline: 18px; padding-block: 22px; }
.marquee-group span { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 60px); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.marquee-group span:nth-child(4n + 3) { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }
.pole {
  flex: none; width: 54px; height: 16px; border-radius: 8px;
  background: repeating-linear-gradient(-55deg, var(--pole) 0 6px, var(--bone) 6px 12px, var(--pole-blue) 12px 18px, var(--bone) 18px 24px);
  background-size: 200% 100%;
  animation: pole 1.4s linear infinite;
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}
@keyframes pole { to { background-position: -58.6px 0; } }

/* ---------- revelação ao rolar ---------- */
.js .reveal.pre { opacity: 0; transform: translateY(32px); }
.js .reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }

@media (max-width: 1180px) {
  .nav .status { display: none; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .hero-hud { display: none; }
}
@media (max-width: 960px) {
  .nav-links, .nav .status { display: none; }
  .nav-burger { display: block; }
  .nav-inner > .btn { display: none; }
  .hero-hud { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .hide-sm { display: none; }
  .hero { min-height: clamp(640px, 96svh, 860px); }
  .hero-lede { text-shadow: 0 1px 12px var(--ink), 0 0 2px var(--ink); }
  .hero-facts .scroll-cue { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .ht-serif { margin-left: 0.4em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal.pre { opacity: 1; transform: none; }
}
