/* ==========================================================================
   DAN ROCHA — site oficial
   ========================================================================== */

:root{
  --ink:        #0b0b0c;
  --ink-2:      #131315;
  --charcoal:   #1c1b1c;
  --paper:      #f3efe6;
  --paper-dim:  #d9d3c6;
  --crimson:    #c4291c;
  --crimson-2:  #e2432c;
  --stone:      #948f89;
  --stone-dark: #55524d;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-kicker: "Archivo Expanded", "Archivo", sans-serif;

  --container: 1360px;
  --pad: clamp(24px, 5vw, 72px);

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ background: var(--ink); }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }
button{ font-family: inherit; background:none; border:none; cursor:pointer; color:inherit; }

::selection{ background: var(--crimson); color: var(--paper); }

/* ---------- texture overlays ---------- */
.grain{
  position: fixed; inset:0; z-index: 300; pointer-events:none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette{
  position: fixed; inset:0; z-index: 299; pointer-events:none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 45%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}

/* ---------- progress rail ---------- */
.progress-rail{
  position: fixed; top:0; left:0; right:0; height:2px; z-index: 250;
  background: rgba(255,255,255,.08);
}
.progress-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-2));
}

/* ---------- chapter tag (shared) ---------- */
.chapter-tag{
  display:inline-block;
  font-family: var(--font-kicker);
  font-weight:600;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: clamp(28px, 6vw, 56px);
}
.chapter-tag--light{ color: rgba(255,255,255,.55); }

/* ---------- nav ---------- */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 200;
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px var(--pad);
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out), background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-visible{ transform: translateY(0); }
.nav.is-solid{
  background: rgba(11,11,12,.72);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav__mark{
  font-family: var(--font-display);
  font-weight:600; font-size: 22px;
  letter-spacing: .01em;
}
.nav__mark span{ color: var(--crimson-2); }

.nav__chapters{
  display:flex; gap: clamp(14px,2vw,32px);
  font-family: var(--font-ui); font-size: 13px; font-weight:500;
}
.nav__chapters a{
  display:flex; align-items:center; gap:6px;
  color: rgba(255,255,255,.55);
  transition: color .25s ease;
  white-space: nowrap;
}
.nav__chapters a:hover, .nav__chapters a.is-active{ color: var(--paper); }
.nav__num{ color: var(--crimson-2); font-family: var(--font-kicker); font-size:11px; }

.nav__cta{
  font-size: 13px; font-weight:600;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  transition: border-color .25s ease, background .25s ease;
}
.nav__cta:hover{ border-color: var(--crimson-2); background: rgba(196,41,28,.12); }

.nav__burger{
  display:none; width:34px; height:22px; position:relative; flex-direction:column; justify-content:space-between;
}
.nav__burger span{
  display:block; height:2px; width:100%; background: var(--paper);
  transition: transform .3s var(--ease-out), opacity .3s ease;
}
.nav__burger.is-open span:first-child{ transform: translateY(10px) rotate(45deg); }
.nav__burger.is-open span:last-child{ transform: translateY(-10px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset:0; z-index:190;
  background: var(--ink);
  display:flex; flex-direction:column; justify-content:center; gap: 22px;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform .5s var(--ease-in-out);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--font-display); font-size: clamp(28px,7vw,44px); font-weight:500;
  color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 14px;
}

/* ---------- chapter index dots ---------- */
.chapter-index{
  position: fixed; right: 28px; top:50%; transform: translateY(-50%);
  z-index: 200; display:flex; flex-direction:column; gap: 14px;
  opacity:0; transition: opacity .4s ease; pointer-events:none;
}
.chapter-index.is-visible{ opacity:1; }
.chapter-index span{
  width:7px; height:7px; border-radius:50%;
  background: rgba(255,255,255,.25);
  transition: background .3s ease, transform .3s ease;
}
.chapter-index span.is-active{ background: var(--crimson-2); transform: scale(1.5); }

/* ---------- generic buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-ui); font-weight:600; font-size: 15px;
  padding: 16px 30px; border-radius: 999px;
  transition: transform .3s var(--ease-out), background .3s ease, color .3s ease, border-color .3s ease;
}
.btn--primary{ background: var(--crimson); color: var(--paper); }
.btn--primary:hover{ background: var(--crimson-2); transform: translateY(-2px); }
.btn--light{ border: 1px solid rgba(243,239,230,.35); color: var(--paper); }
.btn--light:hover{ border-color: var(--paper); transform: translateY(-2px); }
.btn--lg{ padding: 20px 40px; font-size: 16px; }

/* ==========================================================================
   CHAPTER — shared
   ========================================================================== */
.chapter{ position: relative; width:100%; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ background: var(--ink); }
.hero__pin{
  height:100vh; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: 0 var(--pad);
}
.hero__bg{ position:absolute; inset:0; z-index:0; }
.hero__img{
  width:100%; height:100%; object-fit:cover; object-position: 50% 8%;
  transform: scale(1.12);
  opacity: .42;
  filter: grayscale(.15) contrast(1.05);
}
.hero__bg-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.75) 55%, var(--ink) 100%),
    radial-gradient(80% 60% at 50% 30%, rgba(196,41,28,.18), transparent 70%);
}

.hero__kicker{
  position:relative; z-index:2;
  font-family: var(--font-kicker); font-size: clamp(11px,1.4vw,14px);
  letter-spacing:.2em; text-transform:uppercase; color: var(--stone);
  margin-bottom: clamp(18px,3vw,28px);
  opacity:0; transform: translateY(14px);
}

.hero__headline{
  position:relative; z-index:2;
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(30px, 6.4vw, 92px);
  line-height: 1.06;
  letter-spacing: -.01em;
  max-width: 16em;
}
.hero__headline .line{ display:block; overflow:hidden; padding: .08em 0; }
.hero__headline .word{
  display:inline-block; will-change: transform;
  transform: translateY(115%);
}
.word--accent{ color: var(--crimson-2); font-style: italic; }
.word--strike{ position:relative; color: var(--stone); }

.hero__name{
  position:relative; z-index:2;
  margin-top: clamp(24px,4vw,40px);
  font-family: var(--font-kicker); font-weight:700;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: .3em;
  color: rgba(243,239,230,.7);
  opacity:0;
}
.hero__name span{ color: var(--paper); }

.hero__scroll-cue{
  position:absolute; bottom: 40px; left:50%; transform: translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family: var(--font-kicker); font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color: var(--stone);
  opacity:0;
}
.hero__cue-line{ width:1px; height:38px; background: rgba(243,239,230,.25); position:relative; overflow:hidden; }
.hero__cue-dot{
  position:absolute; left:-1.5px; top:-10px; width:4px; height:10px; border-radius:2px;
  background: var(--crimson-2);
  animation: cue-fall 1.8s ease-in-out infinite;
}
@keyframes cue-fall{
  0%{ transform: translateY(-10px); opacity:0; }
  30%{ opacity:1; }
  100%{ transform: translateY(48px); opacity:0; }
}

/* ==========================================================================
   PROVOCAÇÃO
   ========================================================================== */
.provoke{ background: var(--ink); }
.provoke__pin{
  height:100vh;
  display:flex; flex-direction:column; justify-content:center;
  padding: var(--pad); max-width: var(--container); margin:0 auto;
}
.provoke__lines{ max-width: 15em; }
.pline{
  font-family: var(--font-display); font-weight:400;
  font-size: clamp(24px, 5vw, 56px);
  line-height:1.25; color: var(--stone-dark);
  margin-bottom: .1em;
  opacity: .18;
}
.pline--accent{ font-style: italic; color: var(--stone-dark); }
.pline--big{
  font-weight:500; margin-top:.4em;
}

/* ==========================================================================
   BIO
   ========================================================================== */
.bio{
  background: var(--paper); color: var(--ink);
  padding: clamp(90px,12vw,160px) var(--pad) clamp(60px,10vw,120px);
}
.bio .chapter-tag{ max-width: var(--container); margin-left:auto; margin-right:auto; display:block; }
.bio__grid{
  max-width: var(--container); margin:0 auto;
  display:grid; grid-template-columns: .8fr 1fr; gap: clamp(40px,6vw,90px);
  align-items:start;
}
.bio__media{
  position: sticky; top: 110px;
  aspect-ratio: 4/5; overflow:hidden; border-radius: 6px;
  background: var(--ink);
}
.bio__media img{ width:100%; height:100%; object-fit:cover; transform: scale(1.08); }

.bio__lead{
  font-family: var(--font-display); font-weight:400; font-style: italic;
  font-size: clamp(22px,2.6vw,32px); line-height:1.35;
  color: var(--ink); margin-bottom: 1.1em;
}
.bio__copy p{
  font-size: clamp(15px,1.15vw,17px); line-height:1.75;
  color: #3a372f; margin-bottom: 1.3em; max-width: 34em;
}
.bio__copy strong{ color: var(--crimson); font-weight:600; }

.bio__stats{
  margin-top: clamp(40px,5vw,64px);
  display:grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  border-top: 1px solid var(--paper-dim); padding-top: 28px;
}
.stat{ display:flex; flex-direction:column; gap:6px; }
.stat__num, .stat__num-text{
  font-family: var(--font-display); font-weight:500; color: var(--crimson);
  font-size: clamp(24px,2.6vw,34px); line-height:1;
}
.stat__label{
  font-family: var(--font-ui); font-size: 12px; color: var(--stone-dark);
  letter-spacing: .02em; line-height:1.3;
}

/* reveal-lines used by JS (bio paragraphs) */
.reveal-lines, .reveal-up{ opacity:0; transform: translateY(24px); }

/* ==========================================================================
   THEMES — horizontal scroll
   ========================================================================== */
.themes{ background: var(--ink); }
.themes__pin{ height:100vh; overflow:hidden; }
.themes__pin .chapter-tag{ position:absolute; top: clamp(90px,12vh,120px); left: var(--pad); z-index:5; margin:0; }

.themes__track{
  position:absolute; top:0; left:0; height:100%;
  display:flex; align-items:center;
  will-change: transform;
}
.themes__panel{
  flex: 0 0 auto; width: 100vw; height:100%;
  display:flex; flex-direction:column; justify-content:center;
  padding: 0 var(--pad);
}
.themes__panel--intro h2{
  font-family: var(--font-display); font-weight:500; font-style:italic;
  font-size: clamp(34px,6vw,72px); line-height:1.1; color: var(--paper); max-width: 12em;
}
.themes__panel--intro p{
  margin-top: 26px; font-size: clamp(16px,1.3vw,19px); color: var(--stone);
  max-width: 28em; line-height:1.6;
}
.themes__panel--intro em{ color: var(--crimson-2); font-style:normal; }

.themes__panel--words{
  flex-direction:row; flex-wrap:wrap; align-content:center; gap: clamp(14px,2vw,26px);
  width: 130vw;
}
.tword{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(20px,3vw,40px);
  color: var(--stone); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 14px 28px;
  white-space: nowrap;
}
.tword:nth-child(4n+1){ color: var(--paper); border-color: var(--crimson); }

.talk-card{
  max-width: 720px;
  border-left: 2px solid var(--crimson);
  padding-left: clamp(24px,3vw,44px);
}
.talk-card__num{
  font-family: var(--font-kicker); font-weight:700; font-size:14px;
  color: var(--crimson-2); letter-spacing:.1em;
}
.talk-card h3{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(30px,4.6vw,58px); color: var(--paper);
  margin: 14px 0 20px; line-height:1.1;
}
.talk-card p{
  font-size: clamp(15px,1.2vw,18px); color: var(--stone); line-height:1.7; max-width: 32em;
}

.themes__panel--outro{ align-items:flex-start; }
.themes__outro-kicker{
  font-family: var(--font-display); font-style:italic; font-weight:400;
  font-size: clamp(22px,3vw,34px); color: var(--paper); margin-bottom: 30px; max-width: 12em; line-height:1.3;
}

/* ==========================================================================
   BOOK
   ========================================================================== */
.book{
  background: var(--paper); color: var(--ink);
  padding: clamp(90px,12vw,160px) var(--pad);
}
.book .chapter-tag{ max-width: var(--container); margin: 0 auto; display:block; }
.book__grid{
  max-width: var(--container); margin: 0 auto;
  display:grid; grid-template-columns: .75fr 1fr; gap: clamp(50px,7vw,100px);
  align-items:center;
}
.book__cover-wrap{ perspective: 1400px; }
.book__cover{
  position:relative;
  aspect-ratio: 16/23;
  max-width: 380px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(226,67,44,.35), transparent 55%),
    linear-gradient(150deg, #1c1b1c 0%, #0b0b0c 60%);
  border-radius: 3px;
  padding: clamp(28px,4vw,44px);
  display:flex; flex-direction:column;
  box-shadow: 30px 40px 80px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.05);
  transform: rotateY(-8deg) rotateX(2deg);
}
.book__cover-kicker{
  font-family: var(--font-kicker); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color: var(--crimson-2);
}
.book__cover-title{
  font-family: var(--font-display); font-weight:600; font-style:italic;
  font-size: clamp(34px,4.2vw,50px); color: var(--paper); line-height:1.05;
  margin-top: 20px;
}
.book__cover-sub{
  font-family: var(--font-ui); font-size: 13px; color: rgba(243,239,230,.6);
  margin-top: 18px; line-height:1.5;
}
.book__cover-author{
  margin-top: auto; font-family: var(--font-kicker); font-weight:600;
  font-size: 13px; letter-spacing:.14em; text-transform:uppercase; color: var(--paper);
}
.book__cover-spine{
  position:absolute; left:0; top:0; bottom:0; width: 10px;
  background: linear-gradient(180deg, var(--crimson), #7a160e);
  border-radius: 3px 0 0 3px;
}

.book__copy h2{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(30px,4vw,50px); line-height:1.15; color: var(--ink); margin-bottom: 26px;
}
.book__copy p{
  font-size: clamp(15px,1.15vw,18px); line-height:1.75; color:#3a372f;
  margin-bottom: 1.2em; max-width: 34em;
}
.book__cta-row{ margin-top: 30px; display:flex; align-items:center; gap: 22px; flex-wrap:wrap; }
.book__cta-note{ font-size:13px; color: var(--stone-dark); }
.book__cta-link{ font-weight:600; color: var(--crimson); border-bottom:1px solid transparent; transition:border-color .25s ease; }
.book__cta-link:hover{ border-color: var(--crimson); }

/* ==========================================================================
   STAGE / MEDIA
   ========================================================================== */
.stage{ background: var(--ink); padding: clamp(90px,12vw,160px) var(--pad) clamp(60px,10vw,120px); }
.stage .chapter-tag{ max-width: var(--container); margin:0 auto; display:block; }
.stage__grid{
  max-width: var(--container); margin:0 auto;
  display:grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 22px;
}
.stage__item{ position:relative; overflow:hidden; border-radius: 6px; background: var(--charcoal); }
.stage__item img{ width:100%; height:100%; object-fit:cover; }
.stage__item--tall{ grid-row: span 2; aspect-ratio: 3/4.2; }
.stage__item:not(.stage__item--tall):not(.stage__item--text){ aspect-ratio: 4/3.4; }
.stage__item figcaption{
  position:absolute; left:0; right:0; bottom:0; padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  display:flex; flex-direction:column; gap:4px;
}
.stage__item figcaption strong{ font-family: var(--font-display); font-size: 19px; color: var(--paper); font-weight:500; }
.stage__item figcaption span{ font-size: 12.5px; color: var(--stone); }

.stage__item--text{
  padding: 28px; display:flex; flex-direction:column; justify-content:center; gap: 22px;
  border: 1px solid rgba(255,255,255,.08);
}
.stage__item--text p{ font-size: 15px; line-height:1.7; color: var(--stone); }
.stage__list{ display:flex; flex-direction:column; gap:10px; }
.stage__list li{
  font-family: var(--font-ui); font-size:14px; font-weight:600; color: var(--paper);
  padding-left: 18px; position:relative;
}
.stage__list li::before{
  content:""; position:absolute; left:0; top:.5em; width:8px; height:1px; background: var(--crimson-2);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact{
  min-height: 100vh; background: var(--ink);
  display:flex; flex-direction:column; justify-content:center;
  padding: clamp(90px,14vw,160px) var(--pad) 0;
}
.contact__inner{ max-width: var(--container); margin:0 auto; width:100%; }
.contact h2{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(38px,7vw,84px); line-height:1.05; color: var(--paper); margin-bottom: 28px;
}
.contact > .contact__inner > p{
  font-size: clamp(16px,1.4vw,20px); color: var(--stone); max-width: 32em; line-height:1.6;
}
.contact__actions{ margin-top: 44px; display:flex; align-items:center; gap: 28px; flex-wrap:wrap; }
.contact__email{ font-size:14px; color: var(--stone); border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px; }
.contact__email:hover{ color: var(--paper); border-color: var(--paper); }

.contact__social{ margin-top: 60px; display:flex; gap: 26px; }
.contact__social a{
  font-family: var(--font-kicker); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--stone);
}
.contact__social a:hover{ color: var(--crimson-2); }

.footer{
  max-width: var(--container); margin: 90px auto 0; width:100%;
  padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between;
  font-size: 12.5px; color: var(--stone);
}
.footer a:hover{ color: var(--paper); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .nav__chapters{ display:none; }
  .nav__cta{ display:none; }
  .nav__burger{ display:flex; }
  .chapter-index{ display:none; }

  .bio__grid{ grid-template-columns: 1fr; }
  .bio__media{ position:relative; top:0; aspect-ratio: 16/11; margin-bottom: 20px; }
  .bio__stats{ grid-template-columns: repeat(2,1fr); row-gap: 26px; }

  .book__grid{ grid-template-columns: 1fr; }
  .book__cover-wrap{ display:flex; justify-content:center; margin-bottom: 20px; }
  .book__cover{ transform:none; }

  .stage__grid{ grid-template-columns: 1fr; }
  .stage__item--tall{ aspect-ratio: 4/3; }
}

@media (max-width: 640px){
  .hero__headline{ max-width: 100%; }
  .provoke__lines{ max-width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
