/* Página inicial do fundo */

/* ---------- Abertura: a jornada do fio de luz ---------- */
/* Uma tela só: a abertura anda por partes, a cada gesto, sem rolar a página (home.js) */
.journey { position: relative; height: 100vh; height: 100svh; background: var(--room); }
.journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey__films, .journey__films > * { position: absolute; inset: 0; }
.journey__clip { width: 100%; height: 100%; object-fit: cover; display: block; }
.journey__clips { transform-origin: 50% 50%; will-change: transform; }
.journey__clip { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.journey__clip.is-active { opacity: 1; visibility: visible; }
.journey__vignette { pointer-events: none; background:
  radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%),
  linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 38%); }

/* Flashes: a história de cada trecho aparece ao fundo quando o pulso passa por ele */
.journey__flashes { display: grid; place-items: center; }
.journey__flashes img {
  grid-area: 1 / 1; width: min(62vw, 880px); aspect-ratio: 16 / 9; object-fit: cover; opacity: 0;
  filter: blur(2px) saturate(1.05) brightness(.9); transform: translateY(-6vh) scale(.96);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.journey.is-travelling .journey__flashes { opacity: 0; transition: opacity .6s; }

/* O fio desenhado em código: as cinco formas da entrada e a luz de projeção que abre o filme */
.journey__thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.journey__labels { position: absolute; inset: 0; z-index: 2; margin: 0; pointer-events: none; }
.journey__labels span { position: absolute; transform: translate(-50%, 6px); font: 500 clamp(.62rem, 1.1vw, .82rem)/1.2 var(--font-fund, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--light); opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); white-space: nowrap; text-shadow: 0 0 12px rgba(0,0,0,.9); }
.journey__labels span.is-visible { opacity: .85; transform: translate(-50%, 0); }
@media (max-width: 760px) { .journey__labels span { white-space: normal; width: 17vw; text-align: center; font-size: .56rem; } }

/* Chamada para rolar */
.journey__cue { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--light); }
.journey__cue-line { position: relative; width: 2px; height: 72px; background: linear-gradient(to bottom, rgba(255,246,223,.05), rgba(255,246,223,.45)); border-radius: 2px; overflow: visible; }
.journey__cue-line i { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(255,190,110,.9), 0 0 42px 12px rgba(255,150,60,.45); animation: journey-cue 2.2s var(--ease) infinite; }
@keyframes journey-cue { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(72px); opacity: 0; } }
.journey__cue > span:last-child { animation: journey-cue-glow 2.2s ease-in-out infinite; }
@keyframes journey-cue-glow { 50% { text-shadow: 0 0 18px rgba(255,190,110,.85); } }

/* Mapa final, em pé, com as cinco paisagens */
.journey__map { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.journey__map-box { position: relative; height: min(82svh, 132vw); aspect-ratio: 1000 / 1025; transform-origin: 50% 50%; will-change: transform; }
.journey__map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__map-svg .territory-dot { fill: rgba(255,246,223,.26); }
.journey__map-svg .outline { fill: none; stroke: rgba(255,246,223,.55); stroke-width: 2; }
.journey__map-svg .thread { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.journey__map-svg .thread--trail { stroke: #FDDA3B; stroke-dasharray: 14 10; filter: drop-shadow(0 0 5px rgba(253,218,59,.8)); }
.journey__map-svg .thread--river { stroke: #65A474; filter: drop-shadow(0 0 8px rgba(101,164,116,.95)); }
.journey__map-svg .thread--streak { stroke: #86B6CF; stroke-width: 5.5; filter: drop-shadow(0 0 8px rgba(134,182,207,.95)); }
.journey__map-svg .thread--wave { stroke: #F38247; stroke-width: 3.5; filter: drop-shadow(0 0 5px rgba(243,130,71,.85)); }
.journey__map-svg .thread--pulse { stroke: #FF2BD6; stroke-width: 3.5; filter: drop-shadow(0 0 7px rgba(255,43,214,.95)); }
.journey__map-svg .place { fill: #000; stroke-width: 4; }
.journey__tile { position: absolute; margin: 0; width: clamp(92px, 15vmin, 190px); left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); transform: translate(var(--dx, -50%), var(--dy, -50%)) scale(.6); opacity: 0; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.journey__tile.is-visible { opacity: 1; transform: translate(var(--dx, -50%), var(--dy, -50%)) scale(1); }
.journey__tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 14px 40px rgba(0,0,0,.6), 0 0 34px var(--glow, rgba(255,200,140,.35)); }
.journey__tile figcaption { margin-top: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--light); opacity: .8; }
.journey__tile--sertao { --dx: -10%; --dy: -118%; --glow: rgba(253,218,59,.45); }
.journey__tile--amazonia { --dx: -80%; --dy: -120%; --glow: rgba(123,162,161,.5); }
.journey__tile--luminosa { --dx: -118%; --dy: -70%; --glow: rgba(188,207,190,.55); }
.journey__tile--rio { --dx: 12%; --dy: -40%; --glow: rgba(243,130,71,.5); }
.journey__tile--sao-paulo { --dx: -86%; --dy: 16%; --glow: rgba(255,43,214,.55); }
/* São Paulo recebe o último quadro do vídeo: sem escala, para o alvo não se mover */
.journey__tile--sao-paulo, .journey__tile--sao-paulo.is-visible { transform: translate(var(--dx), var(--dy)); transition: opacity .35s linear; }

.title-card, .opening__final {
  position: absolute; z-index: 2; opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
  transform: translateY(18px);
}
.title-card.is-visible, .opening__final.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.title-card--start { left: 50%; top: 64%; transform: translate(-50%, 18px); text-align: center; }
.title-card--start.is-visible { transform: translate(-50%, 0); }
.title-card__pre { font-size: var(--s-2); font-stretch: 112%; font-weight: 500; margin: 0 0 26px; color: var(--light); text-shadow: 0 0 24px rgba(0,0,0,.8); }

.title-card--mb, .title-card--tr, .title-card--vg, .title-card--el, .title-card--jc {
  left: calc(var(--gutter) + var(--rail)); bottom: 12vh; max-width: min(820px, 88vw);
}
.title-card--mb::before, .title-card--tr::before, .title-card--vg::before, .title-card--el::before, .title-card--jc::before, .opening__final::before {
  content: ""; position: absolute; inset: -18% -30% -30% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,0));
}
.title-card__mb-title {
  font-family: "Anton", Impact, sans-serif; text-transform: uppercase; color: #fff;
  font-size: clamp(3rem, 9vw, 8.4rem); line-height: 1.14; padding-top: .14em; margin: 0 0 10px; letter-spacing: .005em;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -8 5.6'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -8 5.6'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}
.title-card__mb-line { font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--s-1); color: var(--mb-yellow); margin: 0; max-width: 34ch; }

.title-card__tr-title { font-family: "Bebas Neue", Impact, sans-serif; color: var(--tr-bone); font-size: clamp(2.6rem, 7vw, 6.4rem); letter-spacing: .32em; line-height: 1; margin: 0 0 16px; }
.title-card__tr-line { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: var(--s-1); color: #E8E6DE; margin: 0; max-width: 40ch; }

.title-card__vg-title { text-transform: uppercase; font-family: "Michroma", "Eurostile Extended", sans-serif; color: rgba(188,207,190,.18); -webkit-text-stroke: 1px #EAF6EF; font-size: clamp(2rem, 5.6vw, 5.2rem); letter-spacing: .12em; margin: 0 0 18px; text-shadow: 0 0 18px rgba(188,207,190,.85), 0 0 42px rgba(120,230,170,.35); line-height: 1.1; }
.title-card__vg-line { font-family: Optima, Candara, "Segoe UI", sans-serif; font-style: italic; font-size: var(--s-2); color: #E4E9EC; margin: 0; }

.title-card__el-logo { width: clamp(200px, 30vw, 400px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 0 30px rgba(243,130,71,.35)); }
.title-card__jc-logo { width: clamp(220px, 32vw, 460px); height: auto; margin: -6% 0 0 -5%; display: block; filter: drop-shadow(0 0 18px rgba(255,43,214,.55)); }
.title-card__jc-line { font-family: "Jost", "Futura", "Avenir Next", sans-serif; font-weight: 500; font-size: var(--s-2); color: var(--jc-white); margin: 0; max-width: 30ch; }
.title-card__el-line { font-family: "Avenir Next", Avenir, "Figtree", sans-serif; font-weight: 700; font-size: var(--s-2); color: var(--el-paper); margin: 0; }


.opening__final { left: calc(var(--gutter) + var(--rail)); right: var(--gutter); bottom: 10vh; }
@media (min-width: 900px) { .opening__final { left: 52%; right: var(--gutter); bottom: auto; top: 50%; transform: translateY(-40%); } .opening__final.is-visible { transform: translateY(-50%); } }
.opening__title {
  font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; color: var(--light);
  font-size: var(--s-6); line-height: .92; margin: 0 0 24px;
}
@media (min-width: 900px) { .opening__title { font-size: clamp(3rem, 6vw, 6.6rem); } }
.opening__title span { display: block; }
.opening__lead { font-size: var(--s-1); max-width: 44ch; color: color-mix(in srgb, var(--light) 86%, transparent); margin: 0 0 28px; }
.opening__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.opening__skip { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; font-size: .85rem; color: var(--light); opacity: .75; }
.journey__loading { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 120px; height: 2px; margin: 0 0 0 -60px; background: rgba(255,246,223,.15); opacity: 0; transition: opacity .4s; }
.journey__loading { overflow: hidden; }
.journey__loading span { display: block; height: 100%; width: 40%; background: var(--light); animation: journey-loading 1.1s linear infinite; }
@keyframes journey-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.journey.is-buffering .journey__loading { opacity: 1; }
/* Convite para seguir, no plano de fechamento de cada obra */
.journey__next { position: absolute; z-index: 3; left: 50%; bottom: 22px; margin: 0; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.journey__next.is-visible { opacity: .9; transform: translate(-50%, 0); }
.journey__next .journey__cue { gap: 10px; font-size: .72rem; }
.journey__next .journey__cue-line { height: 34px; }
.journey__next .journey__cue-line i { width: 8px; height: 8px; margin-left: -4px; animation-name: journey-next; }
@keyframes journey-next { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
.journey.is-buffering .journey__next { opacity: 0; }

/* Trilho de capítulos: o fio como navegação entre as cinco cenas, só enquanto elas passam.
   Uma marca por obra, na cor do mundo; a linha abaixo dela enche com o progresso da cena. */
.journey__chapters {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  height: min(44svh, 360px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.journey.is-in-scenes .journey__chapters { opacity: 1; visibility: visible; transition-delay: 0s; }
.journey__chapters ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column; }
.journey__chapters li { --scene: var(--light); --mark: 28px; position: relative; flex: 1; }
.journey__chapters [data-thread="trail"] { --scene: #FDDA3B; }
.journey__chapters [data-thread="river"] { --scene: #65A474; }
.journey__chapters [data-thread="streak"] { --scene: #86B6CF; }
.journey__chapters [data-thread="wave"] { --scene: #F38247; }
.journey__chapters [data-thread="pulse"] { --scene: #FF2BD6; }
.journey__chapters li::before, .journey__chapters li::after {
  content: ""; position: absolute; right: calc(var(--mark) / 2 - 1px); top: calc(var(--mark) - 3px); width: 2px; border-radius: 2px; pointer-events: none;
}
.journey__chapters li::before { bottom: 3px; background: color-mix(in srgb, var(--scene) 32%, transparent); }
.journey__chapters li::after { height: calc((100% - var(--mark)) * var(--progress, 0)); background: var(--scene); box-shadow: 0 0 8px var(--scene); }
/* Motoboys: a trilha tracejada */
.journey__chapters [data-thread="trail"]::before { background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--scene) 40%, transparent) 0 5px, transparent 5px 9px); }
.journey__chapters [data-thread="trail"]::after { background: repeating-linear-gradient(to bottom, var(--scene) 0 5px, transparent 5px 9px); box-shadow: none; filter: drop-shadow(0 0 4px var(--scene)); }
.journey__chapters button {
  position: relative; display: block; width: var(--mark); height: var(--mark); margin-left: auto; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--scene); cursor: pointer;
}
.journey__chapters button::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid var(--scene); background: rgba(0,0,0,.45); box-shadow: 0 0 10px color-mix(in srgb, var(--scene) 55%, transparent);
  transition: background-color .3s, transform .3s var(--ease);
}
.journey__chapters button[aria-current="true"]::before { background: var(--scene); transform: scale(1.2); }
.journey__chapters button span {
  position: absolute; right: calc(100% + 4px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font: 500 .72rem/1.2 var(--font-fund, inherit); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 2px; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s;
}
.journey__chapters button[aria-current="true"] span, .journey__chapters button:hover span, .journey__chapters button:focus-visible span { opacity: 1; }
@media (min-width: 900px) { .journey__chapters button span { opacity: .62; } }

/* Movimento reduzido: sem rolagem guiada; um quadro, as cartelas e o mapa estático */
html.reduced-motion .journey { height: auto; }
html.reduced-motion .journey__stage { position: relative; height: auto; min-height: 100svh; display: grid; gap: 48px; padding: 120px var(--gutter) 80px calc(var(--gutter) + var(--rail)); }
html.reduced-motion .journey__films { opacity: .45; }
html.reduced-motion .journey__clips, html.reduced-motion .journey__flashes, html.reduced-motion .opening__skip, html.reduced-motion .journey__cue-line { display: none; }
html.reduced-motion .journey__thread { position: relative; order: -1; height: 38svh; }
html.reduced-motion .journey__labels { display: none; }
html.reduced-motion .title-card, html.reduced-motion .opening__final { position: relative; opacity: 1; transform: none; pointer-events: auto; left: auto; right: auto; top: auto; bottom: auto; }
html.reduced-motion .title-card--start { text-align: left; }
html.reduced-motion .journey__map { position: relative; opacity: 1; order: 8; }
html.reduced-motion .opening__final { order: 9; }
html.reduced-motion .journey__map-box { height: min(70svh, 110vw); }
html.reduced-motion .journey__tile { opacity: 1; transform: translate(var(--dx, -50%), var(--dy, -50%)); }
html.reduced-motion .journey__chapters, html.reduced-motion .journey__next { display: none; }

/* ---------- A parceria ---------- */
.meeting__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .meeting__grid { grid-template-columns: 1.05fr .95fr; } }
.meeting__threads { margin: 0; }
.meeting__threads svg { width: 100%; height: auto; overflow: visible; }
.thread { fill: none; stroke-width: 3; stroke-linecap: round; }
.thread--o2 { stroke: var(--ink); }
.thread--riza { stroke: var(--riza, #1E3A5C); }
.thread--union { stroke: var(--ink); stroke-width: 7; }
.meeting__threads text { font-size: 17px; font-weight: 600; fill: var(--graphite); font-family: var(--font-fund); }
.meeting__partners { display: grid; gap: 28px; margin-top: 72px; }
@media (min-width: 900px) { .meeting__partners { grid-template-columns: repeat(3, 1fr); } }
.meeting__partners article { border-top: 2px solid var(--ink); padding-top: 16px; }
.meeting__partners h3 { font-size: var(--s-1); font-stretch: 112%; margin: 0 0 8px; }
.meeting__partners p { margin: 0; color: var(--graphite); }

.press { margin-top: 88px; }
.press__title { font-size: var(--s-2); font-stretch: 112%; margin: 0 0 16px; }
.press__gallery { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.press__item { position: relative; overflow: hidden; background: var(--ink); min-width: 0; }
.press__item a { position: relative; display: block; height: clamp(280px, 72vw, 380px); color: #fff; text-decoration: none; }
.press__item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.4) brightness(.78); transition: filter .6s var(--ease), transform 1s var(--ease);
}
.press__img--top { object-position: center 20%; }
.press__item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 62%); }
.press__caption { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: grid; gap: 8px; }
.press__outlet { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.press__date { margin-left: .8em; font-weight: 400; opacity: .72; }
.press__headline { max-width: 24ch; font-size: var(--s-2); font-weight: 700; font-stretch: 112%; line-height: 1.12; }
.press__credit { position: absolute; top: 12px; right: 14px; z-index: 1; font-size: .72rem; opacity: .72; }
.press__item a:focus-visible { outline: 2px solid var(--riza-brand); outline-offset: -4px; }
@media (min-width: 800px) {
  .press__gallery { flex-direction: row; height: clamp(360px, 36vw, 460px); }
  .press__item { flex: 1 1 0; transition: flex-grow .7s var(--ease); }
  .press__item a { height: 100%; }
  .press__item:focus-within { flex-grow: 2.2; }
  .press__item:focus-within img { filter: none; }
}
@media (min-width: 800px) and (hover: hover) {
  .press__item:hover { flex-grow: 2.2; }
  .press__item:hover img { filter: none; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .press__item, .press__item img { transition: none; } }
html.reduced-motion .press__item, html.reduced-motion .press__item img { transition: none; }

/* Destaques do título da parceria: quem escreve (tinta) e quem cuida do capital (dourado da Riza) */
.hl { padding: 0 .12em; color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--ink { background: var(--ink); color: var(--screen); }
.hl--riza { background: var(--riza-brand); color: var(--ink); }

/* ---------- FUNCINE ---------- */
.funcine { background: var(--screen-2); }
.mechanism { margin: 64px 0 0; }
.mechanism__svg { width: 100%; height: auto; overflow: visible; display: none; }
@media (min-width: 900px) { .mechanism__svg { display: block; } }
.mechanism__thread { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.mechanism__node { fill: var(--screen-2); stroke: var(--ink); stroke-width: 2.5; }
.mechanism__steps { list-style: none; margin: 18px 0 16px; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .mechanism__steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.mechanism__steps li { display: grid; gap: 4px; }
.mechanism__steps b { font-stretch: 112%; font-size: var(--s-1); }
.mechanism__steps span { color: var(--graphite); font-size: .95rem; }
.funcine__cards { display: grid; gap: 28px; margin-top: 64px; }
@media (min-width: 900px) { .funcine__cards { grid-template-columns: repeat(3, 1fr); } }
.rule-card { border-top: 2px solid var(--ink); padding-top: 14px; }
.rule-card h3 { margin: 0 0 6px; font-size: var(--s-1); font-stretch: 112%; }
.rule-card p { margin: 0; color: var(--graphite); }
.incentive-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 12px; }
.incentive-figures div { display: grid; gap: 2px; }
.incentive-figures dt { font-size: .85rem; color: var(--graphite); }
.incentive-figures dd { margin: 0; font-size: .85rem; color: var(--graphite); }
.incentive-figures b { display: block; font-size: var(--s-5); font-stretch: 125%; font-weight: 800; line-height: 1; color: var(--ink); }

/* ---------- Estratégia ---------- */
.strategy__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .strategy__grid { grid-template-columns: 1fr 1fr; } }
.criteria { list-style: none; padding: 0; margin: 32px 0 20px; display: grid; gap: 18px; counter-reset: criteria; }
.criteria li { counter-increment: criteria; border-left: 1px solid color-mix(in srgb, var(--light) 40%, transparent); padding-left: 16px; color: color-mix(in srgb, var(--light) 82%, transparent); }
.criteria li::before { content: counter(criteria, decimal-leading-zero); display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--riza-brand); }
.criteria b { color: var(--light); font-weight: 650; }
.map { margin: 0; }
.map__svg { width: 100%; height: auto; max-height: 78vh; overflow: visible; }
.map__svg .outline { fill: none; stroke: color-mix(in srgb, var(--light) 45%, transparent); stroke-width: 1.2; }
.map__svg .territory-dot { fill: color-mix(in srgb, var(--light) 26%, transparent); }
.map__svg .route { fill: none; stroke: var(--mb-yellow); stroke-width: 3; stroke-dasharray: 10 8; }
.map__svg .river { fill: none; stroke: var(--tr-mist); stroke-width: 3.5; }
.map__svg .pulse { fill: none; stroke: var(--jc-magenta); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--jc-magenta)); }
.map__svg .label--jc { fill: var(--jc-magenta); }
.map__svg .label { font-family: var(--font-fund); font-size: 24px; fill: var(--light); font-weight: 600; }
.map__svg .label-sub { font-family: var(--font-fund); font-size: 18px; fill: color-mix(in srgb, var(--light) 65%, transparent); }

.matrix { margin-top: 110px; }
.matrix__title { font-size: var(--s-2); font-stretch: 112%; margin: 0 0 24px; }
.matrix__plane {
  position: relative; aspect-ratio: 2.39 / 1; min-height: 320px;
  border: 1px solid color-mix(in srgb, var(--light) 35%, transparent);
  background:
    linear-gradient(color-mix(in srgb, var(--light) 25%, transparent), color-mix(in srgb, var(--light) 25%, transparent)) center / 1px 100% no-repeat,
    linear-gradient(color-mix(in srgb, var(--light) 25%, transparent), color-mix(in srgb, var(--light) 25%, transparent)) center / 100% 1px no-repeat;
}
/* Cada quadrante tem nome no seu canto externo, para não parecer rótulo de eixo */
.matrix__quadrant {
  position: absolute; max-width: 44%; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--light) 70%, transparent);
}
.matrix__quadrant small { display: block; margin-top: 4px; font-size: .75rem; letter-spacing: 0; text-transform: none; color: color-mix(in srgb, var(--light) 50%, transparent); }
.matrix__quadrant--tl { left: 14px; top: 12px; }
.matrix__quadrant--tr { right: 14px; top: 12px; text-align: right; }
.matrix__quadrant--bl { left: 14px; bottom: 12px; }
.matrix__quadrant--br { right: 14px; bottom: 12px; text-align: right; }
.matrix__point {
  position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  transform: translate(-7px, -7px); display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; white-space: nowrap;
}
.matrix__point i { width: 14px; height: 14px; border-radius: 50%; background: var(--color); box-shadow: 0 0 0 6px color-mix(in srgb, var(--color) 22%, transparent), 0 0 26px var(--color); }
.matrix__point--mb { --color: var(--mb-yellow); }
.matrix__point--tr { --color: var(--tr-mist); flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }
.matrix__point--vg { --color: var(--vg-phosphor); }
.matrix__point--el { --color: var(--el-orange); }
.matrix__point--jc { --color: var(--jc-magenta); }
.matrix__point:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Obras: galeria com os cinco portais lado a lado ----------
   A obra ativa se expande; a vez passa sozinha (home.js) e o cursor, o foco
   ou o toque escolhem a obra. O quadro ocupa a altura visível da janela. */
.works .wrap:first-child { margin-bottom: 40px; }
.works__gallery {
  --works-interval: 6s; --works-gap: 4px; --works-grow: 5;
  container-type: inline-size;
  position: relative; display: flex; gap: var(--works-gap);
  height: calc(100svh - var(--header-h)); min-height: 460px;
  margin: 0 calc(-1 * var(--gutter));
}
.portal {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #000;
  display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: minmax(0, 1fr);
  transition: flex-grow .9s var(--ease);
}
.portal.is-active { flex-grow: var(--works-grow); }
.portal .portal__frame {
  grid-area: 1 / 1 / 4 / 2; aspect-ratio: auto;
  display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr);
  text-decoration: none; color: #fff;
}
.portal__frame > img:first-child { position: absolute; inset: 0; }
.portal__frame img { transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.portal__frame:hover img, .portal__frame:focus-visible img { transform: scale(1.035); }
/* véu nos painéis recolhidos e sombra sob a ficha do painel ativo, no alto */
.portal::before, .portal::after { content: ""; position: absolute; pointer-events: none; transition: opacity .6s var(--ease); }
.portal::before { inset: 0 0 40%; z-index: 2; background: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,0)); opacity: 0; }
.portal::after { inset: 0; z-index: 1; background: rgba(0,0,0,.38); }
.portal.is-active::before { opacity: 1; }
.portal.is-active::after { opacity: 0; }
.portal__name { position: relative; z-index: 2; grid-row: 1; align-self: start; margin: clamp(40px, 8svh, 72px) 4% 18px; max-width: 92%; text-wrap: balance; animation: portal-name-in .7s var(--ease) .25s both; }
.portal:not(.is-active) .portal__name {
  position: absolute; left: 50%; top: 28px; margin: 0; max-width: none; max-height: calc(100% - 56px);
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap;
  font-size: clamp(1.1rem, 2cqi, 2rem); line-height: 1; letter-spacing: .06em;
  animation: portal-name-in-collapsed .5s var(--ease) .3s both;
}
@keyframes portal-name-in { from { opacity: 0; translate: 0 14px; } }
@keyframes portal-name-in-collapsed { from { opacity: 0; } }
.portal__info {
  grid-area: 2 / 1; z-index: 3; display: grid; gap: 18px; padding: 0 4%;
  /* largura fixa do painel aberto: o texto não reflui enquanto o painel cresce */
  width: calc((100cqi - 4 * var(--works-gap)) * var(--works-grow) / (var(--works-grow) + 4));
  box-sizing: border-box;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
  /* recolhido, sai do fluxo: a linha da ficha não empurra o quadro para fora do painel */
  position: absolute; left: 0; top: 0;
}
.portal.is-active .portal__info { position: relative; opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .35s, visibility 0s; }
.portal__sheet { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.portal__sheet div { display: grid; }
.portal__sheet dt { font-size: .78rem; opacity: .6; }
.portal__sheet dd { margin: 0; font-weight: 600; }
.portal__enter { justify-self: start; }
.portal__progress { position: absolute; inset: 0 0 auto; height: 3px; z-index: 4; background: var(--color, var(--light)); transform-origin: left; transform: scaleX(0); }
.portal.is-active .portal__progress { animation: works-progress var(--works-interval) linear forwards; }
.works__gallery.is-paused .portal__progress { animation-play-state: paused; }
@keyframes works-progress { to { transform: scaleX(1); } }
.portal--mb { --color: var(--mb-yellow); }
.portal--tr { --color: var(--tr-mist); }
.portal--vg { --color: var(--vg-phosphor); }
.portal--el { --color: var(--el-orange); }
.portal--jc { --color: var(--jc-magenta); }
.works__pause {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  font: inherit; font-size: .8rem; color: #fff; cursor: pointer;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
}
.works__pause:hover { background: rgba(0,0,0,.75); }
html.reduced-motion .portal__progress, html.reduced-motion .works__pause { display: none; }
.portal:not(.is-active) .portal__jc-logo { opacity: 0; }
/* a ficha ocupa o alto do painel: monograma e OSD vão para baixo */
.portal .portal__osd { top: auto; bottom: 8%; }
.portal .scope img.portal__jc-logo { top: auto; bottom: 4%; }
@media (max-width: 760px) {
  .works__gallery { flex-direction: column; --works-grow: 7; }
  .portal:not(.is-active) .portal__name { left: 16px; top: 50%; bottom: auto; writing-mode: horizontal-tb; transform: translateY(-50%); max-width: calc(100% - 32px); font-size: 1.1rem; }
  .portal__info { width: 100cqi; gap: 12px; }
  .portal__sheet { gap: 8px 24px; font-size: .9rem; }
}

.portal--mb .portal__name { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: clamp(2rem, 4.6cqi, 5rem); line-height: .9; text-shadow: 0 4px 30px rgba(0,0,0,.45); }

.portal--tr .portal__name { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .3em; color: var(--tr-bone); font-size: clamp(1.6rem, 3.4cqi, 3.6rem); }

.portal--vg .portal__name { font-family: "Michroma", sans-serif; letter-spacing: .12em; font-size: clamp(1.3rem, 2.8cqi, 2.8rem); color: rgba(188,207,190,.2); -webkit-text-stroke: 1px #EAF6EF; text-shadow: 0 0 16px rgba(188,207,190,.9); }
.portal--vg .portal__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,0) 1px 3px);
}
.portal__osd { position: absolute; left: 4%; top: 8%; z-index: 2; display: flex; flex-direction: column; gap: 4px; font-family: "Courier New", monospace; font-size: clamp(.9rem, 1.5vw, 1.25rem); color: #fff; opacity: 0; text-shadow: 2px 0 rgba(255,0,60,.6), -2px 0 rgba(0,200,255,.6); transition: opacity .3s; }
.portal--vg .portal__frame:hover::before, .portal--vg .portal__frame:hover .portal__osd,
.portal--vg .portal__frame:focus-visible::before, .portal--vg .portal__frame:focus-visible .portal__osd { opacity: 1; }
.portal--vg .portal__frame:hover img { filter: saturate(.8) contrast(1.1) hue-rotate(-8deg); }

.portal--el .portal__name { font-family: "Figtree", "Avenir Next", sans-serif; font-weight: 900; color: var(--el-orange); font-size: clamp(2.6rem, 6cqi, 6rem); letter-spacing: .02em; line-height: .9; }
.portal--el .portal__frame { background: var(--el-paper); }
/* Julia Cenne: sem rosto; a sombra contra a luz e a assinatura JCN */
.portal--jc .portal__frame { background: radial-gradient(120% 90% at 85% 110%, rgba(242,184,134,.18), transparent 55%), var(--jc-black); overflow: hidden; }
.scope img.portal__jc-photo { position: absolute; inset: 0; opacity: .72; }
.portal--jc .portal__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,10,10,.85), rgba(10,10,10,0) 55%); pointer-events: none; }
.scope img.portal__jc-logo { position: absolute; right: 3%; top: 2%; width: min(40%, 460px); height: auto; aspect-ratio: 16 / 9; object-fit: contain; z-index: 2; opacity: .9; transition: filter .6s var(--ease); }
.portal--jc .portal__frame:hover img.portal__jc-logo, .portal--jc .portal__frame:focus-visible img.portal__jc-logo { filter: drop-shadow(0 0 14px var(--jc-magenta)); }
.portal--jc .portal__name { font-family: "Jost", "Futura", "Avenir Next", sans-serif; font-weight: 600; color: var(--jc-white); font-size: clamp(2.2rem, 4.8cqi, 5rem); letter-spacing: -.01em; line-height: .95; }
.portal--el .portal__frame img { filter: sepia(.25) contrast(1.05); mix-blend-mode: multiply; }
/* Elza fica à direita da foto: o recorte do painel segue o rosto dela */
.portal--el .portal__frame > img:first-child { object-position: 72% 25%; }
.portal--el .portal__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .0; transition: opacity .5s;
  background: radial-gradient(circle, rgba(20,18,16,.55) 1.1px, transparent 1.6px) 0 0 / 6px 6px;
  mix-blend-mode: multiply;
}
.portal--el .portal__frame:hover::after, .portal--el .portal__frame:focus-visible::after { opacity: 1; }

/* ---------- Como investir ---------- */
.steps { list-style: none; counter-reset: step; margin: 56px 0 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-stretch: 125%; font-size: var(--s-4); line-height: 1; margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font-size: var(--s-1); font-stretch: 112%; line-height: 1.25; }
.steps p { margin: 0; color: var(--graphite); }

.simulator { margin-top: 110px; display: grid; gap: 40px; padding-top: 40px; border-top: 1px solid var(--silver); }
@media (min-width: 980px) { .simulator { grid-template-columns: 1fr 1fr; } }
.simulator h3 { font-size: var(--s-3); font-stretch: 118%; line-height: 1.05; margin: 0 0 14px; }
.simulator__form { display: grid; gap: 22px; align-content: start; }
.simulator__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.simulator__form legend { font-weight: 650; margin-bottom: 8px; }
.simulator__form label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.simulator__field { display: grid !important; gap: 8px; font-weight: 650; }
.simulator__field input { font: inherit; font-size: var(--s-2); font-stretch: 112%; padding: 10px 14px; border: 2px solid var(--ink); background: transparent; max-width: 320px; }
.simulator__output { display: grid; gap: 6px; padding: 22px 0 0; border-top: 2px solid var(--ink); }
.simulator__value { font-weight: 800; font-stretch: 125%; font-size: var(--s-5); line-height: 1; }
.simulator__explain { color: var(--graphite); }

.faq { margin-top: 96px; max-width: 860px; }
.faq h3 { font-size: var(--s-2); font-stretch: 112%; margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--silver); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--silver); }
.faq summary { cursor: pointer; font-weight: 650; font-size: var(--s-1); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--graphite); margin: 10px 0 0; max-width: 64ch; }

/* ---------- Oferta ---------- */
.offer__grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .offer__grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.offer__docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--light) 30%, transparent); }
.offer__docs li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--light) 30%, transparent); }
.offer__docs em { font-style: normal; opacity: .6; font-size: .88rem; }

/* ---------- Fases do site: institucional (antes da oferta) e oferta ---------- */
html[data-phase="institutional"] [data-phase-only="offer"], html[data-phase="offer"] [data-phase-only="institutional"] { display: none !important; }
.toggle--phase[aria-pressed="true"] { border-color: currentColor; }
.phase-badge { display: inline-block; font-size: .8rem; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; margin: 0 0 18px; opacity: .75; }
.incentive { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 900px) { .incentive { grid-template-columns: repeat(3, 1fr); } }
.incentive article { border-top: 2px solid var(--ink); padding-top: 14px; }
.incentive h3 { margin: 0 0 8px; font-size: var(--s-1); font-stretch: 112%; }
.incentive p { margin: 0; color: var(--graphite); }
.funcine__cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
/* Riza: dourado da marca no fio da joint venture */
.meeting { --riza: #B07A04; }

@media (max-width: 700px) {
  .matrix__plane { aspect-ratio: 1 / 1.35; min-height: 0; }
  /* O nome quebra em linhas antes de cruzar a linha central ou a moldura:
     a largura máxima vai do ponto até a borda do próprio quadrante */
  .matrix__point { font-size: clamp(.7rem, 3.5vw, .82rem); gap: 6px; white-space: normal; width: max-content; max-width: calc((.5 - var(--x)) * 100%); }
  .matrix__point--tr { max-width: calc((var(--x) - .5) * 100%); text-align: right; }
  .matrix__point--vg { max-width: calc((1 - var(--x)) * 100% - 8px); }
  .matrix__quadrant { font-size: .68rem; letter-spacing: .02em; }
  .matrix__quadrant small { font-size: .68rem; }
}

.matrix__point i { flex: none; }

@media (max-width: 760px) {
  .title-card--start { top: 60%; width: min(88vw, 420px); }
  .journey__cue { font-size: .78rem; white-space: nowrap; }
  .journey__cue-line { height: 56px; }
  .opening__skip { bottom: auto; top: 76px; font-size: .78rem; }
  .journey__map-box { height: min(58svh, 96vw); }
  .journey__tile { width: clamp(64px, 21vw, 104px); }
  .journey__tile figcaption { font-size: .6rem; }
  .opening__final { bottom: 6vh; }
  /* acima das cartelas, que ficam embaixo à esquerda */
  .journey__chapters { top: 40%; height: min(36svh, 300px); right: 10px; }
  .journey__chapters button span { font-size: .62rem; }
}
