/* ===========================================================
   VALEN — Growth & Strategy
   Design system: editorial premium, preto/branco/dourado
   =========================================================== */

:root {
  --white: #FFFFFF;
  --black: #0B0B0B;
  --charcoal: #333533;
  --gold: #B8935F;
  --gold-light: #CBAA6F;
  --hairline: #EAEAEA;
  --hairline-dark: rgba(255, 255, 255, 0.14);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1600px;
  --pad: clamp(40px, 4.6vw, 96px);

  --ease: cubic-bezier(.16, .74, .24, 1);
  --dur: .9s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- typography helpers ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}
.eyebrow--dark { color: var(--gold-light); }
.eyebrow__rule { width: 32px; height: 1px; background: currentColor; display: inline-block; }

.rule-mini {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 10px;
}

.tag-line {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.6;
}

.foot-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: .04em;
  color: #9a9a94;
  line-height: 1.6;
}

.link-underline {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--black);
  transition: color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.link-underline:hover { color: var(--gold); border-color: var(--gold); }
.link-underline--dark { color: var(--white); border-color: var(--hairline-dark); }
.link-underline--dark:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn svg { transition: transform .35s var(--ease); flex-shrink: 0; }

.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: var(--gold); color: var(--black); }
.btn--dark:hover svg { transform: translateX(4px); }

.btn--lg { padding: 19px 34px; font-size: 13px; }

/* ===========================================================
   INTRO
   =========================================================== */

#valen-intro {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 2147483647;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    transition: opacity 800ms ease;
}

#valen-intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #FFFFFF;
}

#valen-intro.is-leaving {
    opacity: 0;
    pointer-events: none;
}

/* ===========================================================
   HEADER
   =========================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  color: var(--black);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), color .4s var(--ease);
  padding: 30px 0;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline);
  padding: 16px 0;
}
.header.is-dark { color: var(--white); }
.header.is-dark .header__nav a::after { background: var(--gold-light); }
.header.is-dark .header__burger span { background: var(--white); }
.header.is-dark .btn--dark { background: var(--white); color: var(--black); }
.header.is-dark .btn--dark:hover { background: var(--gold); color: var(--black); }
.header.is-dark.is-scrolled {
  background: rgba(11, 11, 11, 0.82);
  box-shadow: 0 1px 0 var(--hairline-dark);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__logo-icon {
  height: 34px;
  width: auto;
  transition: height .4s var(--ease);
}
.header.is-scrolled .header__logo-icon { height: 27px; }

.header__logo-text {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.1;
}
.header__logo-text small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
  margin-top: 3px;
}

.header__nav {
  display: flex;
  gap: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-left: auto;
  margin-right: 40px;
}
.header__nav a { position: relative; padding-bottom: 4px; }
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.header__nav a:hover::after { width: 100%; }

.header__cta { padding: 13px 22px; font-size: 12px; }

.header__burger {
  display: none;
  width: 32px; height: 22px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.header__burger span {
  display: block; height: 1px; width: 100%;
  background: var(--black);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(10.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-10.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.mobile-nav.is-open { max-height: 420px; }
.mobile-nav a {
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 500;
}
.mobile-nav .btn { margin: 20px var(--pad); justify-content: center; }

/* ===========================================================
   REVEAL ANIMATION (shared)
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Invisible IntersectionObserver anchor — marks where a section's timed
   sequence should trigger from. Zero footprint: takes no space, affects
   no layout. */
.section-trigger { position: relative; height: 0; margin: 0; padding: 0; pointer-events: none; }

/* ===========================================================
   HERO
   =========================================================== */

.hero {
  position: relative;
  padding: 176px 0 96px;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  align-items: center;
}

.hero__ghost {
  position: absolute;
  top: 4%;
  right: -8%;
  width: 52%;
  color: #F6F4EF;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}

.hero__content { max-width: 700px; }

.hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 30px;
  color: var(--black);
  max-width: 660px;
}
.hero__headline em { font-size: 1.02em; }

.hero__sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 500px;
  margin: 0 0 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 96px;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a8a8a2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--gold), transparent);
  display: inline-block;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 620 / 640;
  max-height: 660px;
  margin: 0 auto;
}
.hero__chart { width: 100%; height: 100%; overflow: visible; display: block; }

.hero__chart-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawChart 2.2s var(--ease) .5s forwards;
}
@keyframes drawChart { to { stroke-dashoffset: 0; } }

.hero__chart-node {
  opacity: 0;
  animation: nodeIn .6s var(--ease) forwards;
  animation-delay: calc(.9s + var(--d) * .3s);
}
@keyframes nodeIn { to { opacity: 1; } }

.hero__chart-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  fill: var(--charcoal);
}
.hero__chart-label--strong { fill: var(--gold); font-size: 13px; }

.hero__side-note {
  position: absolute;
  right: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.9;
  text-align: right;
}
.hero__side-note--top { top: -4%; }
.hero__side-note--bottom { bottom: 2%; }
.hero__side-note .rule-mini { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero__chart-path, .hero__chart-node { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

/* ===========================================================
   ECOSSISTEMA
   =========================================================== */

.ecossistema { padding: 170px 0; }

.ecossistema__grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 110px;
}

.ecossistema__intro h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 3.9vw, 50px);
  line-height: 1.14;
  margin: 0 0 26px;
}

.ecossistema__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 400px;
  margin: 0 0 36px;
}

.pillars { display: flex; flex-direction: column; }

.pillar {
  border-bottom: 1px solid var(--hairline);
  padding: 42px 0;
  transition: padding .4s var(--ease);
}
.pillar:first-child { border-top: 1px solid var(--hairline); }

.pillar__top {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 32px;
  align-items: start;
}

.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}

.pillar__body h3 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.pillar__body p {
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 640px;
}

.pillar__tags {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a8a8a2;
}

.pillar__arrow {
  color: var(--gold);
  transition: transform .4s var(--ease);
  margin-top: 6px;
}

.pillar:hover { padding-left: 10px; }
.pillar:hover .pillar__arrow { transform: translateX(6px); }

/* ===========================================================
   ESTRUTURA (fundo preto)
   =========================================================== */

.estrutura {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 160px 0 150px;
  text-align: center;
  overflow: hidden;
}

.estrutura__ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64%;
  min-width: 900px;
  transform: translate(-50%, -50%);
  color: #ffffff;
  opacity: .035;
  z-index: 0;
  pointer-events: none;
}

.estrutura .wrap { position: relative; z-index: 1; }

.estrutura__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  margin: 0 auto 26px;
  color: var(--white);
}

.estrutura__sub {
  font-size: 17px;
  line-height: 1.7;
  color: #b9b9b5;
  max-width: 620px;
  margin: 0 auto 88px;
}

.flow { max-width: 1240px; margin: 0 auto 64px; position: relative; }

.flow__line {
  position: relative;
  height: 2px;
  background: var(--hairline-dark);
  margin: 0 20px 50px;
}
.flow__line-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .7s var(--ease);
}

.flow__steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
  opacity: .35;
  transition: opacity .7s var(--ease);
}
.flow__step.is-active { opacity: 1; }

.flow__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--hairline-dark);
  margin-top: -55.5px;
  transition: background .7s var(--ease), box-shadow .7s var(--ease), transform .7s var(--ease);
}
.flow__step.is-active .flow__dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(184, 147, 95, .18);
  transform: scale(1.15);
}

.flow__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ===========================================================
   PROCESSO (Como trabalhamos)
   =========================================================== */

.processo { position: relative; padding: 150px 0 90px; overflow: hidden; }

.processo__watermark {
  position: absolute;
  right: 4%;
  top: 12%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1;
  color: #F7F6F2;
  text-align: right;
  z-index: 0;
  pointer-events: none;
}

.processo__meta {
  position: absolute;
  right: var(--pad);
  top: 58px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.8;
  text-align: right;
}
.processo__meta .rule-mini { margin-left: auto; }

.processo .wrap { position: relative; z-index: 1; }

.processo__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.1;
  margin: 0 0 26px;
  max-width: 840px;
}

.processo__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 0 110px;
}

.steps { position: relative; margin-bottom: 70px; }

.steps__line {
  position: relative;
  height: 2px;
  background: var(--hairline);
}
.steps__line-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--gold);
  transition: width .7s var(--ease);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  text-align: left;
  margin-top: 56px;
}

.processo__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 90px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.tag-line--right { text-align: right; color: #a8a8a2; font-weight: 500; letter-spacing: .06em; }

.step { opacity: .4; transition: opacity .7s var(--ease); }
.step.is-active { opacity: 1; }

.step__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  color: var(--gold);
  margin-bottom: 18px;
  transition: transform .7s var(--ease);
}
.step.is-active .step__num { transform: scale(1.08); }

.step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 13px;
}

.step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0;
}

/* ===========================================================
   POR QUE VALEN
   =========================================================== */

.por-que { padding: 170px 0; background: #FBFBF9; }

.por-que__grid {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: 110px;
}

.por-que__intro h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 3.9vw, 50px);
  line-height: 1.14;
  margin: 0 0 26px;
}

.por-que__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 400px;
  margin: 0 0 36px;
}

.diferenciais { display: flex; flex-direction: column; }

.diferencial {
  display: grid;
  grid-template-columns: 52px 1px 1fr 1fr;
  gap: 40px;
  padding: 42px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.diferencial:first-child { border-top: 1px solid var(--hairline); }

.diferencial__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 29px;
  color: var(--gold);
}

.diferencial__rule { width: 1px; align-self: stretch; background: var(--hairline); }

.diferencial__body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 11px;
}
.diferencial__body p {
  font-size: 15.5px;
  color: var(--black);
  line-height: 1.6;
  margin: 0;
}

.diferencial__extra {
  font-size: 14.5px;
  line-height: 1.65;
  color: #8c8c87;
  margin: 4px 0 0;
}

/* ===========================================================
   CTA FINAL
   =========================================================== */

.cta-final { padding: 200px 0 130px; text-align: center; }

.cta-final__inner { max-width: 1140px; margin: 0 auto; }

.cta-final .eyebrow { justify-content: center; }

.cta-final__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.12;
  margin: 0 0 32px;
}

.cta-final__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 620px;
  margin: 0 auto 48px;
}

.microtext {
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #a8a8a2;
}

.brand-mark { margin-top: 140px; }
.brand-mark img { height: 84px; width: auto; margin: 0 auto; opacity: .92; }

/* ===========================================================
   FOOTER
   =========================================================== */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #a8a8a2;
  letter-spacing: .02em;
}

.footer__links { display: flex; gap: 26px; }
.footer__links a { transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--gold); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1080px) {
  .ecossistema__grid,
  .por-que__grid { grid-template-columns: 1fr; gap: 56px; }
  .ecossistema__text, .por-que__text { max-width: none; }
  .steps__grid { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { max-height: 460px; order: -1; margin-bottom: 20px; }
  .hero { padding-top: 140px; }
  .hero__ghost { width: 60%; opacity: .6; }
}

@media (max-width: 720px) {
  :root { --pad: 6.5vw; }

  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
  .mobile-nav { display: flex; }

  .hero { min-height: auto; padding: 130px 0 60px; }
  .hero__headline { font-size: 38px; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 60px; }
  .hero__visual { max-height: 340px; }
  .hero__side-note { display: none; }

  .ecossistema, .estrutura, .processo, .por-que, .cta-final { padding: 100px 0; }

  .pillar__top { grid-template-columns: 40px 1fr; }
  .pillar__arrow { display: none; }

  .flow__line { display: none; }
  .flow__steps { flex-wrap: wrap; row-gap: 34px; }
  .flow__step { flex: 0 0 33.33%; }
  .flow__dot { margin-top: 0; }

  .steps__grid { grid-template-columns: 1fr 1fr; }

  .diferencial { grid-template-columns: 36px 1fr; row-gap: 12px; }
  .diferencial__rule { display: none; }
  .diferencial__extra { grid-column: 2; }

  .brand-mark { margin-top: 80px; }

  .processo__watermark, .processo__meta { display: none; }
  .processo { padding-top: 100px; }
  .processo__footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tag-line--right { text-align: left; }
}

@media (max-width: 460px) {
  .steps__grid { grid-template-columns: 1fr; }
  .flow__step { flex: 0 0 50%; }
}
