/* ============================================================
   ENHANCE — nav links, availability, clip reveals, cursor,
   tipografia TR1. Arquivo independente de style.css.
   ============================================================ */

/* ---------- fonte do título: Spray Letters ---------- */
@font-face {
  font-family: "Spray Letters";
  src: url("fonts/SprayLetters.woff2") format("woff2"),
       url("fonts/SprayLetters.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-graffiti: "Spray Letters", "Permanent Marker", cursive;
}

/* ---------- hero: fix de corte da fonte + coroa ---------- */
/* a Spray Letters tem respingos que vazam da caixa do glifo:
   sem overflow hidden e com folga interna pro ink não cortar */
.hero__title .split-wrap {
  overflow: visible;
  padding: 0.12em 0.16em;
  margin: -0.12em -0.16em;
}
.hero__title .spray-reveal {
  padding: 0.12em 0.16em;
  margin: -0.12em -0.16em;
}
/* coroa atrás do kicker (ficava por cima do texto) */
.hero__label { position: relative; z-index: 7 !important; transform: translateZ(0); }
.hero__title-wrapper .doodle--crown { z-index: 2; }
/* + espaço físico: o kicker sai da zona da coroa (top -45px do título),
   sem mexer na posição da coroa sobre o J */
.hero__label { margin-bottom: calc(var(--space-6, 1.5rem) + 34px) !important; }

/* hierarquia: nome +10%, subtítulo menor */
.hero__title { font-size: calc(var(--display) * 1.1); }
.hero__sub {
  font-size: clamp(1.02rem, 0.92rem + 0.6vw, 1.35rem);
  max-width: 46ch;
  /* respiro abaixo do RODRIGUES (os ajustes de overflow tinham
     comido o espaçamento natural) */
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

/* ---------- hero: orquestração da entrada ----------
   1. kicker (chars)  →  2. JONAS spray  →  3. RODRIGUES spray
   →  4. subtítulo  →  5. CTA */
.hero__sub .reveal-line {
  transition-delay: 1.75s !important; /* sobrepõe os delays inline */
}
.hero__sub .split-wrap:nth-of-type(2) .reveal-line,
.hero__sub .split-wrap + br + .split-wrap .reveal-line {
  transition-delay: 1.9s !important;
}
.hero__cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease, ease) 2.2s, transform 0.8s var(--ease, ease) 2.2s,
              gap 0.3s var(--ease, ease), color 0.3s ease, border-color 0.3s ease;
}
.is-loaded .hero__cta { opacity: 1; transform: translateY(0); }

/* canvas de partículas de spray sobre o título */
.spray-canvas {
  position: absolute;
  inset: -18% -10%;
  width: 120%;
  height: 136%;
  pointer-events: none;
  z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
  .hero__sub .reveal-line { transition-delay: 0s !important; }
  .hero__cta { opacity: 1; transform: none; transition: none; }
  .spray-canvas { display: none; }
}

/* ---------- nav: quick links + lang switch ---------- */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6, 1.5rem);
}
.nav__link {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.nav__link:hover { opacity: 1; }
.nav__link--cv {
  border: 1px solid currentColor;
  padding: 0.45em 1em;
  border-radius: 999px;
  opacity: 1;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.nav__link--cv:hover { background: #fff; color: #000; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.lang-switch .lang-option { color: #fff; opacity: 0.45; text-decoration: none; transition: opacity 0.3s ease; }
.lang-switch .lang-option:hover { opacity: 1; }
.lang-switch .lang-option.is-active { opacity: 1; }
.lang-switch .lang-sep { opacity: 0.3; color: #fff; }

@media (max-width: 680px) {
  /* style.css esconde .nav__links no mobile — reexibe compacto:
     só o CV (ação mais valiosa pra recrutador) + idioma */
  .nav__links {
    display: flex !important;
    justify-content: center;
    gap: var(--space-5, 1.25rem);
    margin-top: 0.5rem;
    width: 100%;
  }
  .nav__link { display: none; }
  .nav__link--cv { display: inline-block; font-size: 0.65rem; }

  /* coroa menor pra não brigar com o kicker em tela estreita */
  .hero__title-wrapper .doodle--crown { width: 42px; }

  /* setas dos carrosséis: alvo de toque maior */
  .proj-swiper .swiper-button-prev,
  .proj-swiper .swiper-button-next { padding: 14px; }

  /* box de disponibilidade respira menos no mobile */
  .about__availability { padding: 1rem 1.1rem; }
}

/* ---------- about: availability ---------- */
.about__availability {
  margin-top: var(--space-6, 1.5rem);
  padding: var(--space-5, 1.25rem) var(--space-6, 1.5rem);
  border: 1px solid var(--bg-line, #222);
  border-left: 3px solid var(--accent-2, #1fd6dd);
  border-radius: 6px;
  background: var(--bg-soft, #111);
}
.about__availability a {
  color: var(--accent-2, #1fd6dd);
  text-decoration: none;
  font-weight: 600;
}
.about__availability a:hover { text-decoration: underline; }

/* ---------- clip reveal nas mídias dos capítulos ---------- */
.clipfx img,
.clipfx video {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--clip-delay, 0s);
}
.clipfx.clip-in img,
.clipfx.clip-in video {
  clip-path: inset(0 0 0 0);
}

/* ---------- cursor custom ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--accent, #ff2bd6);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, #fff 35%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.35s cubic-bezier(0.22,1,0.36,1),
                height 0.35s cubic-bezier(0.22,1,0.36,1), margin 0.35s cubic-bezier(0.22,1,0.36,1),
                background 0.3s ease, border-color 0.3s ease;
  }
  body.has-cursor .cursor,
  body.has-cursor .cursor-follower { opacity: 1; }
  .cursor-follower.is-play,
  .cursor-follower.is-view {
    width: 72px; height: 72px;
    margin: -36px 0 0 -36px;
    background: color-mix(in srgb, var(--bg, #0a0a0a) 72%, transparent);
    border-color: var(--accent-2, #1fd6dd);
    backdrop-filter: blur(2px);
  }
  .cursor-follower.is-play { border-color: var(--accent, #ff2bd6); }
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
}

/* ---------- tipografia TR1 (antes inline) ---------- */
.chapter__title--stacked { display: flex; flex-direction: column; }
.chapter__title--stacked .ttl-big {
  font-size: 3.2em;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin-bottom: 0.05em;
}

/* ---------- hire strip (atalho pro recrutador) ---------- */
.hire-strip {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter, 2rem);
  text-align: center;
  border-top: 1px solid var(--bg-line, #222);
  border-bottom: 1px solid var(--bg-line, #222);
}
.hire-strip__title {
  font-family: var(--font-display, Inter, sans-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0.6em 0 1.2em;
}
.hire-strip__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hire-btn {
  display: inline-block;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--bg-line, #333);
  border-radius: 999px;
  padding: 0.9em 1.8em;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.hire-btn:hover { border-color: var(--accent-2, #1fd6dd); color: var(--accent-2, #1fd6dd); transform: translateY(-2px); }
.hire-btn--solid {
  background: var(--accent, #ff2bd6);
  border-color: var(--accent, #ff2bd6);
  color: #0a0a0a;
}
.hire-btn--solid:hover { background: #fff; border-color: #fff; color: #0a0a0a; }
.hire-strip__note {
  margin-top: 1.6em;
  font-size: var(--text-xs, 0.75rem);
  letter-spacing: 0.08em;
  color: var(--fg-muted, #999);
}

/* ---------- marquee de clientes ---------- */
.clients__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.clients__list.is-marquee {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content;
  gap: 3rem;
  animation: clientsScroll 45s linear infinite;
}
.clients__list.is-marquee li { white-space: nowrap; }
.clients__viewport:hover .clients__list.is-marquee { animation-play-state: paused; }
@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- luz ambiente por capítulo ---------- */
#ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease, background 1.4s ease;
}
#ambient.is-on { opacity: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .clipfx img, .clipfx video { clip-path: none; transition: none; }
  .cursor, .cursor-follower { display: none; }
  .clients__list.is-marquee { animation: none; flex-wrap: wrap !important; }
  #ambient { display: none; }
}
