/* ============ BALDO — street/rock portfolio ============ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Permanent+Marker&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --ink-black: #0a0a0a;
  --dirty-white: #e8e4dc;
  --blood-red: #1c1c1c;
  --spray-yellow: #888888;
  --urban-blue: #666666;
  --concrete: #2a2a2a;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --marker: 'Permanent Marker', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink-black);
  color: var(--dirty-white);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  body { cursor: auto; }
}

a, button, input, textarea { cursor: none; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  a, button { cursor: pointer; }
  input, textarea { cursor: text; }
}

::selection { background: var(--blood-red); color: var(--dirty-white); }

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink-black);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
#splash .splash-logo {
  width: min(62vw, 500px);
  height: auto;
  opacity: 0;
  /* clip-path é definido só via JS para evitar conflito no onComplete */
  will-change: clip-path, opacity;
  filter: drop-shadow(0 0 40px rgba(178,34,34,0.35));
}
#splash .splash-sub {
  font-family: var(--marker);
  color: #b02222;
  font-size: clamp(13px, 2.4vw, 18px);
  opacity: 0;
  letter-spacing: 0.18em;
}
#splash .splash-stroke {
  position: absolute;
  left: 50%; top: 50%;
  width: min(70vw, 760px); height: 14px;
  transform: translate(-50%, 90px) rotate(-2deg) scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, #b02222 8%, #b02222 88%, transparent);
  border-radius: 50% 40% 60% 50% / 80% 60% 90% 70%;
  filter: blur(0.5px);
  will-change: transform;
}
.splat {
  position: absolute;
  border-radius: 47% 53% 58% 42% / 55% 44% 56% 45%;
  background: #555;
  opacity: 0;
  will-change: transform, opacity;
}

/* ---------- canvases / cursor ---------- */
#noise-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none; opacity: 0.07;
}
#ink-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 900; pointer-events: none;
}
#cursor-drop {
  position: fixed; left: 0; top: 0; z-index: 950;
  width: 18px; height: 18px;
  background: var(--dirty-white);
  border-radius: 65% 35% 60% 40% / 30% 60% 40% 70%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  mix-blend-mode: normal;
  transition: width .18s, height .18s, background .18s;
  will-change: transform;
}
#cursor-drop.cursor-hot {
  width: 34px; height: 34px;
  background: #aaaaaa;
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  #cursor-drop, #ink-canvas { display: none; }
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  mix-blend-mode: difference;
}
.site-nav .nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-nav .nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0;             /* JS revela via animação de pichação */
  will-change: clip-path;
  filter: drop-shadow(0 0 6px rgba(139,26,26,0.25));
  transition: filter .2s;
}
.site-nav .nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 12px rgba(178,34,34,0.5));
}
.site-nav ul {
  display: flex; gap: 22px; list-style: none;
}
.site-nav ul a {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dirty-white);
  text-decoration: none;
  position: relative;
}
.site-nav ul a::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--dirty-white);
  border-radius: 60% 40% 50% 50% / 90% 70% 80% 60%;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.6,-0.2,.3,1.4);
}
.site-nav ul a:hover::after { transform: scaleX(1); }
@media (max-width: 560px) {
  .site-nav ul { gap: 14px; }
  .site-nav ul a { font-size: 13px; }
}

/* ---------- shared section bits ---------- */
main { position: relative; z-index: 2; }
section { position: relative; overflow: hidden; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  min-height: 1em;
}
.section-title .tw-caret {
  display: inline-block;
  width: 0.08em; height: 0.85em;
  background: var(--dirty-white);
  vertical-align: -0.08em;
  animation: caret-blink 0.7s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.tag-scrawl {
  font-family: var(--marker);
  font-size: clamp(15px, 2.6vw, 22px);
  transform: rotate(-2deg);
  display: inline-block;
}

.bg-word {
  position: absolute;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 16vw, 200px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--concrete);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  will-change: transform;
}

.paint-btn {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.1em;
  color: var(--dirty-white);
  background: #222222;
  border: none;
  padding: 14px 36px 12px;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(2% 8%, 98% 0%, 100% 88%, 96% 100%, 3% 96%, 0% 70%);
  transition: transform .15s cubic-bezier(.5,-0.4,.4,1.6), background .2s;
  will-change: transform;
}
.paint-btn:hover {
  transform: scale(1.06) rotate(-1.5deg);
  background: #3a3a3a;
}
.paint-btn:active { transform: scale(0.96); }
.paint-btn.btn-ghost {
  background: transparent;
  color: var(--dirty-white);
  box-shadow: inset 0 0 0 3px var(--dirty-white);
}
.paint-btn.btn-ghost:hover { background: var(--concrete); }

/* ---------- hero ---------- */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 100px 6vw 60px;
}
/* Agrupa RODRIGO + logo BALDO centralizando os dois entre si */
.hero-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.hero-name .hero-line { display: block; white-space: nowrap; }
.hero-line-1 { font-size: clamp(32px, 6vw, 80px); color: var(--dirty-white); }

/* Logo BALDO no hero — substitui a segunda linha de texto */
.hero-logo {
  display: block;
  width: clamp(200px, 42vw, 500px);
  height: auto;
  margin-top: 2px;
  opacity: 0;
  will-change: transform, opacity, filter;
  filter:
    drop-shadow(4px 5px 0 rgba(10,10,10,0.9))
    drop-shadow(0 0 28px rgba(178,34,34,0.2));
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { opacity: 1; }
}
.hero-name .ltr {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.hero-tagline {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(15px, 2.4vw, 19px);
  color: #b8b4ac;
  opacity: 0;
}
.hero-tagline .tag-scrawl { color: #aaaaaa; }
.hero-cta { margin-top: 36px; opacity: 0; }
.hero-marks {
  position: absolute; right: 4vw; bottom: 8vh;
  font-family: var(--marker);
  color: #777;
  font-size: clamp(14px, 2.4vw, 22px);
  transform: rotate(6deg);
  opacity: 0.7;
}
.hero-scroll-hint {
  position: absolute; left: 6vw; bottom: 4vh;
  font-family: var(--display);
  font-size: 13px; letter-spacing: 0.3em;
  color: #777;
  animation: hint-bob 1.6s ease-in-out infinite;
}
@keyframes hint-bob { 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
  .hero-name .ltr, .hero-tagline, .hero-cta { opacity: 1; }
}
