/* =================================================================
   TITA — Produtora Executiva
   Estética: dark editorial + acento coral · muito movimento
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #101013;
  --fg:        #f3efe6;   /* off-white quente */
  --muted:     #8c887e;
  --line:      rgba(243, 239, 230, 0.12);
  --accent:    #ff5436;   /* coral vibrante */
  --accent-2:  #f7a072;   /* coral claro p/ gradientes */
  --accent-3:  #ffd6a0;

  --ff-display: "Syne", sans-serif;
  --ff-body:    "Inter", sans-serif;
  --ff-mono:    "Space Mono", monospace;

  --pad: clamp(20px, 5vw, 90px);
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
mark { background: none; color: var(--accent); }
::selection { background: var(--accent); color: #0a0a0c; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =================================================================
   TEXTURA / GRÃO
   ================================================================= */
.grain {
  position: fixed; inset: -50%;
  z-index: 9998; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -2%); }
}

/* =================================================================
   CURSOR CUSTOMIZADO
   ================================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg); transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(243,239,230,0.6);
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(243,239,230,0.08); }
@media (max-width: 900px) { .cursor { display: none; } }

/* =================================================================
   PRELOADER
   ================================================================= */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loader__inner { text-align: center; }
.loader__label {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted);
}
.loader__word { display: flex; gap: .04em; justify-content: center; margin-top: 10px; }
.loader__word span {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(56px, 14vw, 150px); line-height: .9;
  transform: translateY(110%); display: inline-block;
}
.loader__count {
  position: absolute; bottom: var(--pad); right: var(--pad);
  font-family: var(--ff-mono); font-size: clamp(40px, 9vw, 110px);
  display: flex; align-items: baseline; line-height: 1;
}
.loader__pct { font-size: .3em; color: var(--muted); margin-left: .1em; }
.loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0%; background: var(--accent); }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
}
.nav__logo {
  font-family: var(--ff-display); font-weight: 800; font-size: 26px;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-bottom: -2px; }
.nav__links { display: flex; gap: 6px; }
.nav__link {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; padding: 8px 12px; overflow: hidden; position: relative;
}
.nav__link span { display: inline-block; transition: transform .4s var(--ease); }
.nav__link::after {
  content: attr(data-x); position: absolute; left: 12px; top: 8px;
}
.nav__link:hover span { transform: translateY(-2px); }
.nav__link::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::before { transform: scaleX(1); }

.nav__cta {
  font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; border: 1px solid var(--fg); border-radius: 40px;
  padding: 11px 20px; display: inline-flex; gap: 8px; align-items: center;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }
.nav__cta-arrow { transition: transform .4s var(--ease); }
.nav__cta:hover .nav__cta-arrow { transform: translateX(4px); }

.nav__lang { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .05em; margin-left: 18px; }
.nav__lang span { color: var(--muted); }
.nav__lang a { color: var(--muted); transition: color .3s var(--ease); }
.nav__lang a.is-active { color: var(--fg); }
.nav__lang a:hover { color: var(--accent); }

.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 6px; cursor: pointer; }
.nav__burger span { width: 28px; height: 2px; background: var(--fg); transition: transform .4s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 850; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0% 0); }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(36px, 11vw, 72px);
  line-height: 1.05; display: flex; align-items: baseline; gap: 14px;
}
.menu__links em { font-family: var(--ff-mono); font-size: 14px; font-style: normal; color: var(--accent); }
.menu__foot { display: flex; gap: 18px; margin-top: 40px; font-family: var(--ff-mono); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  min-height: 100svh; padding: 140px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: center; position: relative;
}
.hero__eyebrow {
  font-family: var(--ff-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.hero__eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero__title {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(90px, 30vw, 460px); line-height: .82;
  letter-spacing: -0.02em; margin-left: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .char { display: inline-block; will-change: transform; }

.hero__rotator {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(22px, 4.5vw, 56px); margin-top: 18px;
}
.hero__rotator-static { color: var(--muted); }
.hero__rotator-words { position: relative; height: 1.1em; overflow: hidden; display: inline-block; }
.hero__rotator-words em {
  display: block; font-style: italic; color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 560px; margin-top: 34px; font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(243,239,230,.78); font-weight: 300;
}

.hero__scroll {
  position: absolute; right: var(--pad); bottom: 40px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }
.hero__index { position: absolute; left: var(--pad); bottom: 42px; font-family: var(--ff-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 900px) { .hero__scroll, .hero__index { display: none; } }

/* =================================================================
   MARQUEE
   ================================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 34px; will-change: transform; }
.marquee__track span { font-family: var(--ff-display); font-weight: 700; font-size: clamp(26px, 4vw, 56px); text-transform: uppercase; }
.marquee__track i { color: var(--accent); font-size: 22px; font-style: normal; }

/* =================================================================
   SECTION HEAD (genérico)
   ================================================================= */
.section-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 30px; margin-bottom: 50px; border-bottom: 1px solid var(--line);
}
.section-index { font-family: var(--ff-mono); font-size: 13px; color: var(--accent); }
.section-name { font-family: var(--ff-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

section { padding: clamp(70px, 12vh, 150px) var(--pad); }

/* =================================================================
   SOBRE
   ================================================================= */
.sobre__statement {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(30px, 5.5vw, 92px); line-height: 1.02; letter-spacing: -0.02em;
  max-width: 16ch; margin-bottom: 80px;
}
.sobre__statement .word { display: inline-block; overflow: hidden; }
.sobre__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.sobre__text p { font-size: clamp(16px, 1.3vw, 19px); color: rgba(243,239,230,.8); margin-bottom: 22px; font-weight: 300; max-width: 50ch; }
.sobre__text strong { color: var(--fg); font-weight: 600; }
.sobre__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sobre__tags li { font-family: var(--ff-mono); font-size: 12px; border: 1px solid var(--line); padding: 8px 14px; border-radius: 30px; }
@media (max-width: 820px) { .sobre__grid { grid-template-columns: 1fr; } }

/* =================================================================
   MEDIA (placeholders de imagem)
   Troque o background por: background-image: url('...');
   ================================================================= */
.media {
  position: relative; overflow: hidden; border-radius: 4px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,84,54,.35), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(247,160,114,.28), transparent 55%),
    linear-gradient(135deg, #1a1a1f, #0d0d10);
  background-size: cover; background-position: center;
}
.media::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .06; mix-blend-mode: overlay;
}
.media__cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .05em;
  color: rgba(243,239,230,.7); background: rgba(10,10,12,.4);
  padding: 6px 10px; border-radius: 30px; backdrop-filter: blur(4px);
}
.media--portrait { aspect-ratio: 3/4; }
.media--wide { aspect-ratio: 16/10; margin-top: 24px; }
.media__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* =================================================================
   NÚMEROS
   ================================================================= */
.numeros__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { padding-top: 24px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(48px, 8vw, 120px); line-height: 1; display: flex; align-items: baseline; }
.stat__num i { color: var(--accent); font-size: .5em; font-style: normal; }
.stat__label { font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 14px; }
@media (max-width: 820px) { .numeros__grid { grid-template-columns: repeat(2, 1fr); } }

/* =================================================================
   DOIS LADOS
   ================================================================= */
.lados__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 60px); align-items: stretch; }
.lado { display: flex; flex-direction: column; }
.lado__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.lado__kicker { font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.lado__n { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); }
.lado h3 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.05; margin-bottom: 14px; letter-spacing: -.01em; }
.lado p { color: rgba(243,239,230,.78); font-weight: 300; max-width: 42ch; }
.lados__link { display: flex; align-items: center; }
.lados__link span {
  writing-mode: vertical-rl; font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted); white-space: nowrap;
}
@media (max-width: 820px) {
  .lados__row { grid-template-columns: 1fr; }
  .lados__link { display: none; }
  .lado--pro { margin-top: 50px; }
}

/* =================================================================
   PROJETOS (lista + preview)
   ================================================================= */
.proj-list { list-style: none; }
.proj {
  display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 20px;
  padding: clamp(20px, 3vw, 38px) 8px; border-top: 1px solid var(--line);
  position: relative; cursor: none;
}
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj__idx { font-family: var(--ff-mono); font-size: 13px; color: var(--muted); }
.proj__name {
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(26px, 5vw, 66px);
  line-height: 1; letter-spacing: -.02em; transition: transform .5s var(--ease), color .5s var(--ease);
}
.proj__role { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); text-align: right; }
.proj__arrow { font-size: 22px; opacity: 0; transform: translateX(-10px); transition: .5s var(--ease); }
.proj::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.proj:hover::before { transform: scaleY(1); }
.proj:hover .proj__name { transform: translateX(20px); color: var(--bg); }
.proj:hover .proj__idx, .proj:hover .proj__role { color: rgba(10,10,12,.7); }
.proj:hover .proj__arrow { opacity: 1; transform: translateX(0); color: var(--bg); }
@media (max-width: 700px) {
  .proj { grid-template-columns: 40px 1fr; }
  .proj__role, .proj__arrow { display: none; }
}

.proj-preview {
  position: fixed; top: 0; left: 0; z-index: 800; width: 300px; height: 380px;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  border-radius: 6px; overflow: hidden;
}
.proj-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.proj-preview__inner { width: 100%; height: 100%; transition: background .3s; }
.proj-preview__inner::after {
  content: attr(data-label); position: absolute; inset: auto 0 16px 16px;
  font-family: var(--ff-mono); font-size: 12px; color: #fff;
}
@media (max-width: 900px) { .proj-preview { display: none; } }

.pv-g1 { background: linear-gradient(135deg, #ff5436, #2b0d08); }
.pv-g2 { background: linear-gradient(135deg, #1f6feb, #07111f); }
.pv-g3 { background: linear-gradient(135deg, #f7a072, #2a1a12); }
.pv-g4 { background: linear-gradient(135deg, #19c37d, #06201a); }
.pv-g5 { background: linear-gradient(135deg, #c77dff, #1a0a26); }

/* =================================================================
   FAIXA APP
   ================================================================= */
.app-band { background: var(--accent); color: #140402; border-radius: 0; }
.app-band__tag { font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 24px; }
.app-band__title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(30px, 5.5vw, 86px); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; }
.app-band__title mark { color: #fff; }
.app-band__title .word { display: inline-block; overflow: hidden; }
.app-band__lead { font-size: clamp(16px, 1.4vw, 20px); max-width: 52ch; margin-top: 28px; font-weight: 400; }
.app-band ::selection { background: #140402; color: var(--accent); }

/* =================================================================
   TRAJETÓRIA
   ================================================================= */
.timeline { list-style: none; }
.tl { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: clamp(24px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__year { font-family: var(--ff-mono); font-size: 14px; color: var(--accent); padding-top: 6px; }
.tl__body h4 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(22px, 3vw, 38px); line-height: 1.05; margin-bottom: 8px; letter-spacing: -.01em; }
.tl__body p { color: rgba(243,239,230,.7); font-weight: 300; max-width: 46ch; }
@media (max-width: 700px) { .tl { grid-template-columns: 1fr; gap: 8px; } }

/* =================================================================
   CONTATO
   ================================================================= */
.contato { background: var(--bg-2); }
.section-head--light { border-color: rgba(243,239,230,.14); }
.contato__mail {
  display: block; font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(34px, 8vw, 130px); line-height: 1; letter-spacing: -.03em;
  margin: 20px 0 70px; overflow: hidden;
}
.contato__mail span { display: inline-block; transition: color .4s var(--ease); }
.contato__mail .char { display: inline-block; }
.contato__mail:hover span { color: var(--accent); }
.contato__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.contato__pitch { font-size: clamp(16px, 1.5vw, 22px); font-weight: 300; max-width: 40ch; }
.contato__socials { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contato__socials a { font-family: var(--ff-mono); font-size: 16px; display: inline-flex; gap: 8px; align-items: center; }
.contato__socials a i { color: var(--accent); transition: transform .3s var(--ease); }
.contato__socials a:hover i { transform: translate(3px, -3px); }
@media (max-width: 700px) { .contato__row { grid-template-columns: 1fr; } }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { padding: 0 var(--pad) 30px; overflow: hidden; }
.footer__big {
  font-family: var(--ff-display); font-weight: 800; line-height: .8;
  font-size: clamp(120px, 38vw, 600px); letter-spacing: -.03em;
  text-align: center; color: var(--fg);
  background: linear-gradient(180deg, var(--fg) 30%, transparent 110%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: -2vw;
}
.footer__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--ff-mono); font-size: 12px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }

/* =================================================================
   UTIL — estados de revelação (animados via JS)
   ================================================================= */
.reveal-up, .reveal-media { will-change: transform, opacity; }

/* Acessibilidade — respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}
