:root {
  color-scheme: dark;
  --night: #0a1426;
  --navy: #112445;
  --page: #0d1220;
  --paper: #f6f1e5;
  --muted: #b9bccb;
  --gold: #d8ba7d;
  --peach: #f1c9a8;
  --line: #2b3550;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--paper);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { margin: 0; min-width: 280px; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, dd { font-family: var(--serif); font-weight: 400; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 30; left: 12px; top: -60px; background: var(--gold); color: #202219; padding: 10px 14px; border-radius: 3px; }
.skip:focus { top: 10px; }
.eyebrow { margin: 0; color: var(--gold); font-size: .8rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }

/* Cabeçalho */
.masthead { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: linear-gradient(#0a1426eb, #0a142600); pointer-events: none; }
.masthead > * { pointer-events: auto; }
.identity { display: block; padding: 6px 10px; background: #f2ebda; border-radius: 3px; }
.identity img { display: block; width: 118px; height: auto; }
.masthead nav { display: flex; gap: clamp(2px, 1.4vw, 18px); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .9rem; color: #e6e8f0; text-shadow: 0 1px 8px #0a1426; border-bottom: 1px solid transparent; }
.masthead nav a:hover { color: var(--gold); border-color: var(--gold); }

/* Palco rolável */
.scroller { position: relative; height: 780svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: var(--night); }
.sky { position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 80% at 70% 30%, #1d3f78 0%, #112445 45%, #0a1426 100%); }
.posters, .gl { position: absolute; inset: 0; z-index: 0; }
.posters img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.gl { opacity: 0; }
.gl canvas { display: block; width: 100%; height: 100%; }

.tower { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.half { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform-origin: 50% 52%; transform: translate3d(calc(-50% + var(--tx, 0px)), var(--ty, 0px), 0) scale(var(--sc, 1)); opacity: var(--to, 1); will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(180deg, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(180deg, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.half.top { clip-path: inset(0 0 48% 0); --ty: var(--ty-top, 0px); }
.half.bottom { clip-path: inset(52% 0 0 0); --ty: var(--ty-bottom, 0px); }
.veil { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 55%, #f9e2cc, #eebb97 70%, #d99a75); }

/* Legendas */
.cap { position: absolute; z-index: 4; left: clamp(20px, 6vw, 88px); bottom: clamp(48px, 11svh, 120px); max-width: 520px; opacity: 0; visibility: hidden; transform: translate3d(0, var(--cy, 0px), 0); text-shadow: 0 2px 22px #060c1acc; }
.cap h2 { font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin-top: 12px; }
.cap p { color: #e3e6f0; line-height: 1.6; margin: 14px 0 0; max-width: 440px; }
.cap .note { color: var(--muted); font-size: .8rem; }
.cap.room { color: #3a2418; text-shadow: none; padding: 22px 26px 24px; background: #fbf0e4e6; border-radius: 6px; box-shadow: 0 14px 44px #5a2f1830; }
.cap.room .eyebrow { color: #8b6a2d; }
.cap.room p { color: #5a4333; }
.hero { top: 50%; bottom: auto; transform: translate3d(0, calc(-50% + var(--cy, 0px)), 0); }
.hero h1 { font-size: clamp(3.9rem, 9.6vw, 9rem); line-height: .86; letter-spacing: -.065em; margin: 20px 0 24px; }
.hero h1 span { color: var(--gold); }
.hero .lede { max-width: 400px; font-size: 1.04rem; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 26px; padding-block: 18px; margin: 26px 0 0; max-width: 480px; border-block: 1px solid #ffffff2e; }
.facts dt { color: var(--muted); font-size: .78rem; }
.facts dd { margin-top: 6px; font-size: clamp(1.05rem, 2vw, 1.45rem); }
.scroll-hint { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: .85rem; color: var(--muted); }
.scroll-hint span { position: relative; width: 22px; height: 36px; border: 1.5px solid #ffffff80; border-radius: 12px; }
.scroll-hint span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Pontos na maquete */
.hotspots button { position: absolute; z-index: 4; left: 0; top: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; white-space: nowrap; font-size: .85rem; background: #101a2eeb; border: 1px solid #e5c98ca0; border-radius: 4px; transform: translate(-50%, -120%); opacity: 0; visibility: hidden; }
.hotspots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #d8ba7d33; }
.hotspots button:hover { background: #2b2a24; border-color: var(--gold); }

/* Trilho de etapas */
.rail { position: absolute; z-index: 5; right: clamp(10px, 2.4vw, 32px); top: 50%; display: flex; flex-direction: column; gap: 2px; transform: translateY(-50%); }
.rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; padding: 0 6px; background: none; border: 0; color: #fff; }
.rail button::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; transition: background .2s, transform .2s; }
.rail span { padding: 3px 8px; border-radius: 3px; background: #0a1426d9; font-size: .78rem; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.rail button::after { box-shadow: 0 0 0 2px #0a142699; }
.rail button:hover span, .rail button:focus-visible span, .rail button[aria-current] span { opacity: .95; transform: none; }
.rail button[aria-current]::after { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.gl-status { position: absolute; z-index: 5; right: 16px; bottom: 14px; margin: 0; padding: 6px 10px; font-size: .78rem; background: #0a1426d9; border-radius: 3px; }

/* Blocos de conteúdo */
.block { width: min(100% - clamp(32px, 8vw, 128px), 1240px); margin-inline: auto; padding-block: clamp(64px, 11vw, 140px); }
.block h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.04em; margin-top: 14px; }
.block p { color: var(--muted); line-height: 1.7; }
.plant { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.spec { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.spec li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.spec strong { display: inline-block; min-width: 9.5ch; margin-right: 8px; color: var(--paper); font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.plan-card { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #f6efe1; overflow: hidden; }
.plan-card img { display: block; width: 100%; height: auto; }
.plan-card span { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 3px; background: #0a1426e6; font-size: .82rem; }
.plan-card:hover { border-color: var(--gold); }
.track { list-style: none; display: flex; gap: 16px; margin: 36px calc(-1 * clamp(16px, 4vw, 64px)) 0 0; padding: 0 clamp(16px, 4vw, 64px) 14px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--gold) var(--line); }
.track li { position: relative; flex: 0 0 min(78vw, 520px); scroll-snap-align: start; border-radius: 6px; overflow: hidden; background: #1a2238; }
.track img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.track span { position: absolute; left: 0; bottom: 0; padding: 26px 18px 14px; width: 100%; font-family: var(--serif); font-size: 1.3rem; background: linear-gradient(transparent, #060b16e0); }
.fineprint { font-size: .8rem; }
.contact { text-align: center; }
.contact p { max-width: 460px; margin-inline: auto; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 18px; padding: 0 24px; background: var(--gold); color: #1d1f17; font-weight: 700; border-radius: 3px; }
.primary:hover { background: #e7cb94; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px clamp(16px, 4vw, 48px) 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
dialog { width: min(1050px, 96vw); max-height: 95svh; background: #161d33; color: var(--paper); border: 1px solid var(--line); padding: 12px; border-radius: 6px; }
dialog::backdrop { background: #04070ee6; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; }
.dialog-head h2 { font-size: 1.4rem; }
.dialog-head button { min-height: 44px; padding: 0 14px; border: 1px solid #777a8a; border-radius: 3px; background: transparent; }
dialog img { display: block; width: 100%; height: auto; background: #f6efe1; }

@media (max-width: 800px) {
  .masthead { padding-block: 8px; }
  .masthead nav { display: none; }
  .identity img { width: 104px; }
  .cap { left: 16px; right: 56px; bottom: clamp(24px, 6svh, 60px); max-width: none; }
  .cap.room { padding: 16px 18px 18px; }
  .hero { top: auto; left: 0; right: 0; bottom: 0; padding: 120px 56px clamp(24px, 6svh, 60px) 16px; transform: translate3d(0, var(--cy, 0px), 0); background: linear-gradient(#0a142600, #0a1426e6 34%); }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5.4rem); margin-block: 12px 14px; }
  .hero .lede { font-size: .95rem; }
  .facts { gap: 6px 16px; margin-top: 16px; padding-block: 12px; }
  .scroll-hint { margin-top: 16px; }
  .rail span { display: none; }
  .plant { grid-template-columns: 1fr; }
}
@media (max-width: 800px) and (max-height: 700px) { .facts { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span::after { animation: none; opacity: 1; } .rail *, .rail *::after { transition: none; } }
