/* Mundo: The Last of the Tribe. Breu da mata, névoa, uma única brasa. */
.world--tr {
  --w-bg: #090C0D;
  --w-ink: #E8E6DE;
  --w-accent: #7BA2A1;
  --w-accent-2: #9C2A26;
  --w-display: "Bebas Neue", Impact, sans-serif;
  --w-body: "Helvetica Neue", "Inter Tight", Arial, sans-serif;
  --thread: #65A474;
  --marker-bg: #090C0D;
  font-weight: 300;
}
.world--tr b, .world--tr strong { font-weight: 700; }
.tr-h2 { font-family: var(--w-display); font-weight: 400; letter-spacing: .34em; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1; margin: 0 0 36px; color: #fff; text-transform: uppercase; }
.tr-h3 { font-family: var(--w-display); font-weight: 400; letter-spacing: .2em; font-size: var(--s-2); margin: 0 0 12px; }

/* Abertura: sobrevoo que desce até o olho da floresta */
.tr-opening { position: relative; height: 230vh; }
html.reduced-motion .tr-opening { height: auto; }
.tr-opening__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.reduced-motion .tr-opening__stage { position: relative; }
.tr-opening__image { position: absolute; inset: 0; transform-origin: 23% 70%; will-change: transform; }
.tr-opening__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.tr-mist { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tr-opening__stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(9,12,13,0) 30%, rgba(9,12,13,.75) 100%); pointer-events: none; }
.tr-opening__text { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; padding: 96px var(--gutter) 8vh calc(var(--gutter) + var(--rail)); opacity: var(--text-opacity, 1); }
.tr-cast-top { display: flex; gap: clamp(18px, 5vw, 72px); flex-wrap: wrap; justify-content: center; margin: 0; font-family: "Anton", Impact, sans-serif; text-transform: uppercase; color: var(--tr-bone); font-size: clamp(.9rem, 1.8vw, 1.5rem); letter-spacing: .02em; }
.tr-title { align-self: center; font-family: "Anton", Impact, sans-serif; text-transform: uppercase; color: var(--tr-bone); font-weight: 400; line-height: .9; margin: 0; font-size: clamp(3.6rem, 13vw, 12rem); text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.tr-title__small { display: block; font-size: .36em; line-height: 1.2; }
.tr-director { margin: 0; font-family: "Anton", Impact, sans-serif; text-transform: uppercase; color: var(--tr-bone); letter-spacing: .12em; font-size: clamp(.9rem, 1.6vw, 1.25rem); }
.tr-watching { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-family: var(--w-display); letter-spacing: .5em; font-size: clamp(1.6rem, 4vw, 3.4rem); color: #fff; opacity: var(--watching-opacity, 0); white-space: nowrap; }

/* Logline */
.tr-logline p { font-weight: 300; max-width: 30ch; }

/* Na mata: lanterna */
.tr-lantern-section { padding-bottom: 60px; }
.tr-instruction { max-width: 56ch; opacity: .8; margin: -12px 0 16px; }
.tr-light-all { margin-bottom: 28px; }
.tr-jungle { position: relative; margin: 0 var(--gutter) 0 calc(var(--gutter) + var(--rail)); aspect-ratio: 1.85 / 1; overflow: hidden; background: #000; cursor: crosshair; }
.tr-jungle__dark { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.12) saturate(.5); }
.tr-jungle__light { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle var(--radius, 210px) at var(--mx, -500px) var(--my, -500px), #000 0 35%, rgba(0,0,0,.6) 60%, transparent 100%); mask-image: radial-gradient(circle var(--radius, 210px) at var(--mx, -500px) var(--my, -500px), #000 0 35%, rgba(0,0,0,.6) 60%, transparent 100%); }
.tr-jungle.is-all-revealed .tr-jungle__light { -webkit-mask-image: none; mask-image: none; }
html.reduced-motion .tr-jungle__light { -webkit-mask-image: none; mask-image: none; }
.tr-jungle__light img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.05) contrast(1.1); }
.tr-clues { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.tr-clues li { position: absolute; left: var(--x); top: var(--y); max-width: 30ch; background: rgba(9,12,13,.72); padding: 14px 16px; outline-offset: 4px; }
.tr-clues b { display: block; font-family: var(--w-display); font-weight: 400; letter-spacing: .22em; font-size: 1.3rem; margin-bottom: 6px; color: #fff; }
.tr-clues span { font-size: .98rem; line-height: 1.45; }
@media (max-width: 760px) {
  .tr-jungle { aspect-ratio: auto; min-height: 900px; }
  .tr-clues li { left: 5% !important; right: 5%; max-width: none; }
  .tr-clues li:nth-child(1) { top: 4% !important; } .tr-clues li:nth-child(2) { top: 28% !important; } .tr-clues li:nth-child(3) { top: 52% !important; } .tr-clues li:nth-child(4) { top: 76% !important; }
}

/* O rio */
.tr-river { position: relative; height: 220vh; background: #090c0d; }
html.reduced-motion .tr-river { height: auto; }
.tr-river__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.reduced-motion .tr-river__stage { position: relative; }
/* A foto começa aproximada e se abre com a rolagem até aparecer inteira (world-tribe.js
   calcula --fit-w, --fit-h e --zoom); as bordas se desfazem no fundo escuro */
.tr-river__stage > img {
  position: absolute; left: 50%; top: 50%; width: var(--fit-w, 100%); height: var(--fit-h, 100%);
  object-fit: cover; filter: saturate(.85); transform: translate(-50%, -50%) scale(var(--zoom, 1)); will-change: transform;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.tr-river__text { position: absolute; left: calc(var(--gutter) + var(--rail)); bottom: 9vh; max-width: 46ch; background: linear-gradient(to right, rgba(9,12,13,.85), rgba(9,12,13,.4)); padding: 22px 26px; }
.tr-river__text .tr-h2 { margin-bottom: 16px; }
.tr-river__text p { margin: 0; }

/* Elenco */
.tr-cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tr-cast li { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.tr-cast img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.tr-cast li:hover img { filter: brightness(.95) saturate(1); transform: scale(1.03); }
.tr-name { position: absolute; left: 16px; right: 16px; bottom: 44px; font-family: var(--w-display); letter-spacing: .22em; font-size: clamp(1.4rem, 2.2vw, 2rem); color: #fff; line-height: 1; }
.tr-role { position: absolute; left: 16px; bottom: 18px; font-family: var(--w-display); letter-spacing: .18em; font-size: 1rem; color: var(--tr-bone); }
.tr-to-confirm { position: absolute; top: 14px; left: 16px; font-size: .75rem; background: rgba(156,42,38,.9); color: #fff; padding: 3px 8px; }

/* Carta do diretor */
.tr-letter { position: relative; isolation: isolate; }
.tr-letter__background { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: -1; }
.tr-letter__background img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); }
.tr-subtitles { padding: 30vh 0; gap: 34vh !important; }
.tr-subtitles p { font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.2; max-width: 24ch; text-align: center; margin: 0 auto !important; text-shadow: 0 2px 20px rgba(0,0,0,.7); font-weight: 400; }

/* Comparáveis */
.tr-comps { margin: 36px 0 0; display: grid; gap: 16px; }
.tr-comps__row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 70px; gap: 16px; align-items: center; }
.tr-comps__name { font-family: var(--w-display); letter-spacing: .12em; font-size: 1.3rem; }
.tr-comps__name small { font-family: var(--w-body); letter-spacing: 0; font-size: .8rem; opacity: .7; margin-left: 6px; }
.tr-comps__bar { position: relative; height: 22px; background: rgba(255,255,255,.05); }
.tr-comps__bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--worldwide) / 180 * 100% * var(--grow, 1)); background: var(--w-accent); transition: width 1.2s var(--ease); }
.tr-comps__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--domestic) / 180 * 100% * var(--grow, 1)); background: var(--tr-bone); transition: width 1.2s var(--ease); }
.tr-comps__value { text-align: right; font-variant-numeric: tabular-nums; }
.tr-comps:not(.is-visible) { --grow: 0; }
html.reduced-motion .tr-comps { --grow: 1; }

/* Produção */
.tr-production { display: grid; gap: 48px; }
@media (min-width: 980px) { .tr-production { grid-template-columns: 1fr 1fr; } }
.tr-producers { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.tr-producers li { font-family: var(--w-display); letter-spacing: .24em; font-size: 1.5rem; }

.tr-next__name { display: block; font-family: "Michroma", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.6rem, 4.6vw, 4rem); color: rgba(188,207,190,.18); -webkit-text-stroke: 1px #EAF6EF; text-shadow: 0 0 16px rgba(188,207,190,.9); }
