/* ============================================================
   4WaTT — HOME (layout editorial) · CLARO · sobre theme-4watt.css
   Ritmo variado: split · manifesto plum · linhas · mosaico ·
   colagem · timeline · CTA plum. Fotos limpas.
   ============================================================ */

/* ====================== 01 · HERO (full-bleed cinematográfico) ====================== */
.hero-h { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: clamp(40px, 8vh, 90px); color: #fff; }
.hero-h__media { position: absolute; inset: 0; z-index: 0; }
.hero-h__media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-h.is-ready .hero-h__media video { opacity: 1; }
.hero-h__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.42) 40%, rgba(0,0,0,0.6) 75%, rgba(10,4,9,0.9) 100%), rgba(0,0,0,0.34); }
.hero-h__inner { position: relative; z-index: 2; width: 100%; }
.hero-h__top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 5vh, 40px); }
.hero-h__top .kicker { color: #fff; }
.hero-h__top .kicker::before { background: var(--teal); }
.hero-h h1 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 5.2vw, 72px); line-height: 1.0; letter-spacing: -0.03em; max-width: none; color: #fff; }
.hero-h h1 em { font-style: normal; color: #5fe9cf; }
.hero-h__sub { margin-top: 26px; max-width: 56ch; font-size: clamp(16px, 1.8vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.82); }
.hero-h__sub strong { color: #fff; font-weight: 600; }
.hero-h__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-h__cta .btn--ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.hero-h__cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-h__meta { margin-top: clamp(34px, 6vh, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.hero-h__meta b { color: #fff; font-weight: 500; }
.hero-h__scroll { position: absolute; right: var(--gutter); bottom: 34px; z-index: 2; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 12px; }
.hero-h__scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--teal), transparent); }
@media (max-width: 760px) { .hero-h__scroll { display: none; } }

/* ====================== 02 · PROVA (split assimétrico) ====================== */
.proof__grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.proof__head .h2 { margin: 18px 0 22px; }
.pillar-list { margin-top: 30px; display: flex; flex-direction: column; }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); align-items: start; transition: padding-left .3s var(--ease); }
.pillar:last-child { border-bottom: 1px solid var(--border); }
.pillar:hover { padding-left: 8px; }
.pillar__n { font-family: var(--mono); font-size: 13px; color: var(--accent-light); padding-top: 4px; }
.pillar h3 { font-size: 19px; font-weight: 700; margin-bottom: 5px; }
.pillar h3 i { color: var(--accent-light); margin-right: 10px; font-size: .92em; }
.pillar p { color: var(--dim); font-size: 14.5px; line-height: 1.55; }
.proof__media { position: relative; }
.proof__media .ph { aspect-ratio: 4/5; border-radius: 18px; }
.proof__stat { position: absolute; left: -28px; bottom: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; box-shadow: var(--shadow-lg); max-width: 260px; }
.proof__stat .v { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; color: var(--roxo); }
.proof__stat .v small { font-size: .5em; color: var(--teal-ink); }
.proof__stat .l { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; line-height: 1.4; }
@media (max-width: 880px) {
  .proof__grid { grid-template-columns: 1fr; }
  .proof__media { order: -1; }
  .proof__media .ph { aspect-ratio: 16/11; }
  .proof__stat { left: auto; right: 16px; bottom: 16px; }
}

/* ====================== 03 · MANIFESTO (faixa plum) ====================== */
.manifesto { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(72px, 12vh, 150px) 0; background: var(--plum-2); color: #fff; }
.manifesto::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(3,165,137,0.18), transparent 70%); pointer-events: none; }
.manifesto__inner { position: relative; z-index: 3; }
.manifesto blockquote { margin: 0; max-width: 900px; }
.manifesto .kicker { color: #5fe9cf; }
.manifesto .kicker::before { background: var(--teal); }
.manifesto .pull { margin: 22px 0 0; max-width: 24ch; color: #fff; }
.manifesto .pull em { font-style: normal; color: #5fe9cf; }
.manifesto cite { display: block; margin-top: 28px; max-width: 64ch; font-style: normal; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
@media (max-width: 760px) { .manifesto .pull, .manifesto cite { max-width: 100%; } }

/* ====================== 04 · ECOSSISTEMA (linhas) ====================== */
.eco__top { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: end; margin-bottom: 56px; }
.eco__top .h2 { margin: 18px 0 20px; }
.eco__visual { position: relative; }
.eco__visual .ph { aspect-ratio: 16/10; border-radius: 16px; }
.eco__visual .tag { position: absolute; left: 14px; bottom: 14px; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: rgba(252,251,248,0.92); padding: 7px 12px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.eco-group + .eco-group { margin-top: 12px; }
.eco-group__label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; margin: 30px 0 6px; }
.eco-group__label span { height: 1px; flex: 1; background: var(--border); }
.eco-row {
  display: grid; grid-template-columns: 40px 1.1fr 1.5fr auto; gap: 24px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--border); position: relative;
  transition: padding-left .35s var(--ease), background .35s;
}
.eco-row::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--row-accent, var(--teal)); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.eco-row:hover { padding-left: 18px; background: linear-gradient(90deg, var(--surface-2), transparent 70%); }
.eco-row:hover::before { transform: scaleY(1); }
.eco-row__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.eco-row__name { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 23px); color: var(--ink); }
.eco-row__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--row-accent, var(--teal-ink)); display: block; margin-top: 4px; }
.eco-row__benefit { color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.eco-row__arrow { color: var(--row-accent, var(--teal-ink)); font-size: 14px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.eco-row:hover .eco-row__arrow { opacity: 1; transform: none; }
@media (max-width: 880px) {
  .eco__top { grid-template-columns: 1fr; }
  .eco-row { grid-template-columns: 28px 1fr; gap: 6px 16px; padding: 18px 4px; }
  .eco-row__benefit { grid-column: 2; }
  .eco-row__arrow { display: none; }
}

/* ====================== 05 · MATRIZ (mosaico, foto + texto) ====================== */
.matrix__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.matrix__head .h2 { margin-top: 16px; max-width: 18ch; }
.matrix-m { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 14px; }
.feed { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); color: #fff; }
.feed .ph { position: absolute; inset: 0; }
.feed .ph::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,8,18,0.0) 30%, rgba(20,8,18,0.82) 100%); }
.feed__body { position: relative; z-index: 3; padding: 22px; width: 100%; }
.feed__name { font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; }
.feed__desc { color: rgba(255,255,255,0.82); font-size: 13px; line-height: 1.5; margin-top: 6px; max-width: 32ch; opacity: 0; max-height: 0; overflow: hidden; transform: translateY(8px); transition: opacity .4s, max-height .5s var(--ease), transform .4s, margin-top .4s; }
.feed:hover .feed__desc { opacity: 1; max-height: 120px; transform: none; margin-top: 10px; }
.feed__metric { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #f3ce5b; text-transform: uppercase; }
.feed--lg { grid-column: span 3; }
.feed--md { grid-column: span 2; }
.feed--sm { grid-column: span 2; }
.feed--w  { grid-column: span 4; }
.feed--full { grid-column: span 6; }
.matrix__note { margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.matrix__note i { color: var(--gold-ink); }
@media (max-width: 880px) {
  .matrix-m { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .feed--lg, .feed--md, .feed--sm, .feed--w, .feed--full { grid-column: span 1; }
  .feed__desc { opacity: 1; max-height: none; transform: none; margin-top: 8px; }
}

/* ====================== 06 · MACHINE (colagem) ====================== */
.machine__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.machine__collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; gap: 14px; height: clamp(420px, 56vw, 620px); }
.machine__collage .ph { border-radius: 14px; box-shadow: var(--shadow); }
.machine__collage .c1 { grid-row: 1 / span 2; }
.machine__head .h2 { margin: 16px 0; }
.machine__list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.m-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.m-item:hover { transform: translateX(6px); border-color: var(--border-hi); box-shadow: var(--shadow); }
.m-item__n { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); padding-top: 2px; }
.m-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.m-item p { color: var(--dim); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 880px) {
  .machine__grid { grid-template-columns: 1fr; }
  .machine__collage { height: 360px; }
}

/* ====================== 07 · FUNIL (timeline) ====================== */
.funnel__head { max-width: 720px; margin-bottom: 56px; }
.funnel__head .h2 { margin: 16px 0; }
.funnel-t { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.funnel-t::before { content: ""; position: absolute; top: 13px; left: 6%; right: 6%; height: 2px; background: var(--border); }
.funnel-t::after { content: ""; position: absolute; top: 13px; left: 6%; height: 2px; background: linear-gradient(90deg, var(--teal), var(--gold)); width: calc((100% - 12%) * var(--fill, 0)); transition: width .5s var(--ease); }
.step { position: relative; padding: 0 12px; text-align: left; }
.step__node { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-hi); position: relative; z-index: 2; transition: background .4s, border-color .4s, box-shadow .4s; }
.step.is-active .step__node { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px rgba(3,165,137,.16); }
.step__stage { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.step.is-active .step__stage { color: var(--teal-ink); }
.step__name { font-family: var(--display); font-weight: 700; font-size: 16px; margin-top: 6px; }
.step__desc { color: var(--dim); font-size: 12.5px; line-height: 1.45; margin-top: 8px; max-width: 18ch; }
@media (max-width: 880px) {
  .funnel-t { grid-template-columns: 1fr; gap: 0; }
  .funnel-t::before { left: 13px; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; }
  .step { padding: 0 0 28px 40px; }
  .step__node { position: absolute; left: 7px; top: 4px; }
  .step__desc { max-width: none; }
}

/* ====================== 08 · AUTORIDADE ====================== */
.authority__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }
.authority__head .h2 { margin-top: 16px; }
.cases { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.case-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; min-height: 360px; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); color: #fff; transition: transform .4s var(--ease), box-shadow .4s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card .ph { position: absolute; inset: 0; }
.case-card .ph::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,8,18,0.0) 28%, rgba(20,8,18,0.9) 100%); }
.case-card__body { position: relative; z-index: 3; padding: 26px; }
.case-card__loc { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #5fe9cf; text-transform: uppercase; }
.case-card__title { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); margin: 8px 0 6px; color: #fff; }
.case-card__stat { color: rgba(255,255,255,0.8); font-size: 13.5px; line-height: 1.45; }
.case-card__more { margin-top: 14px; font-size: 12px; color: #5fe9cf; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 880px) { .cases { grid-template-columns: 1fr; } }

.partners { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.partners__label { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 88px; width: max-content; align-items: center; animation: marq 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 52px; max-height: 52px; width: auto; max-width: 200px; object-fit: contain; opacity: .6; filter: grayscale(1) contrast(1.1); transition: opacity .3s, filter .3s, transform .3s; }
.marquee__track img:hover { opacity: 1; filter: none; transform: scale(1.06); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ====================== 09 · CTA FINAL (faixa plum) ====================== */
.cta-final { position: relative; overflow: hidden; background: var(--plum-2); color: #fff; }
.cta-final .ph { position: absolute; inset: 0; z-index: 0; }
.cta-final .ph::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(120deg, rgba(42,7,32,0.92), rgba(58,9,64,0.8)); }
.cta-final::before { content: ""; position: absolute; left: -8%; bottom: -40%; width: 50%; height: 150%; z-index: 1; background: radial-gradient(closest-side, rgba(3,165,137,0.18), transparent 70%); pointer-events: none; }
.cta-final__inner { position: relative; z-index: 3; padding: clamp(60px, 9vw, 120px) 0; }
.cta-final .kicker { color: #5fe9cf; }
.cta-final .kicker::before { background: var(--teal); }
.cta-final h2 { max-width: 20ch; margin: 18px 0 0; color: #fff; }
.cta-final__lead { color: rgba(255,255,255,0.78); margin-top: 18px; max-width: 52ch; font-size: 17px; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.door { border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; padding: 26px 24px; background: rgba(255,255,255,0.04); transition: transform .3s var(--ease), border-color .3s, background .3s; display: block; }
.door:hover { transform: translateY(-5px); border-color: var(--teal); background: rgba(3,165,137,0.12); }
.door__ic { font-size: 22px; color: #5fe9cf; margin-bottom: 14px; }
.door h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.door p { font-size: 13.5px; color: rgba(255,255,255,0.72); }
.door__link { margin-top: 14px; font-size: 12px; color: #5fe9cf; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* ====================== CASES MODAL (claro) ====================== */
.cases-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.cases-modal.open { display: block; }
.cases-modal__backdrop { position: absolute; inset: 0; background: rgba(20,8,18,.55); backdrop-filter: blur(5px); }
.cases-modal__dialog { position: relative; z-index: 1; max-width: 640px; margin: 8vh auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); animation: t4-pop .4s var(--ease); }
.cases-modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); border: 1px solid var(--border); color: var(--ink); cursor: pointer; font-size: 18px; }
.cases-modal__media { height: 240px; position: relative; }
.cases-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.cases-modal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--surface)); }
.cases-modal__content { padding: 28px 30px 34px; }
.cases-modal__content .loc { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--teal-ink); text-transform: uppercase; }
.cases-modal__content h3 { font-size: 26px; margin: 8px 0 14px; color: var(--roxo); }
.cases-modal__content .desc { color: var(--dim); line-height: 1.6; font-size: 15px; }
.cases-modal__content .stat { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(3,165,137,.08); border: 1px solid rgba(3,165,137,.2); font-family: var(--mono); font-size: 14px; color: var(--teal-ink); }
