/* ==========================================================================
   Cloud Nine — protótipo "Alinhamento da noite"
   Client palette: Deep Plum, Ivory Nude, Dusty Rose and Mauve.
   Títulos em Antonio (cartaz condensado), texto em Manrope, Federo só nos
   números dos atos. Fotos em formato de bilhete com cantos chanfrados.
   ========================================================================== */

/* --- Fontes self-hosted (funcionam em file://) --- */
@font-face { font-family: "Antonio"; src: url("../fonts/antonio-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Antonio"; src: url("../fonts/antonio-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Federo"; src: url("../fonts/federo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* --- Tokens --- */
:root {
  /* Client palette: keep these four source colors unchanged. */
  --brand-ivory: #e3d4ce;
  --brand-rose: #bb8d95;
  --brand-mauve: #856476;
  --brand-plum: #503845;

  /* Surface and text roles, with accessible supporting shades. */
  --night: var(--brand-plum);
  --night-2: #5c4351;
  --night-3: var(--brand-mauve);
  --plum: var(--brand-plum);
  --ornament: var(--brand-rose);
  --accent: #ddb5bd;
  --accent-hover: var(--brand-ivory);
  --text: var(--brand-ivory);
  --text-2: #d6bdc3;
  --paper: var(--brand-ivory);
  --paper-ink: #30212b;
  --button-ink: var(--paper-ink);
  --control-border: #bf9ba5;
  --error: #ffd0d0;
  --overlay-rgb: 48,33,43;
  --ivory-rgb: 227,212,206;
  --rose-rgb: 187,141,149;
  --mauve-rgb: 133,100,118;
  --plum-rgb: 80,56,69;
  --sweep: linear-gradient(90deg, transparent, rgba(var(--rose-rgb),.35) 50%, transparent);

  --f-display: "Antonio", "Arial Narrow", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-deco: "Federo", var(--f-display);
  /* Entrelinha mínima dos títulos em Antonio. Medido na fonte: acentos sobem até 1.14em
     acima da linha de base e a cedilha desce 0.32em. Com 1.16 o acento ainda tocava nas
     letras da linha de cima em telemóvel ("MOMENTOS" / "INESQUECÍVEIS"). Não baixar. */
  --lh-display: 1.22;

  --gutter: clamp(16px, 4vw, 64px);
  --cut: 18px;               /* tamanho do chanfro art déco */

  /* Escala de movimento (transitions-polish) */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--brand-ivory); color: var(--text);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
::selection { background: var(--plum); color: var(--text); }
/* Lenis controls smooth scrolling when motion is enabled. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; padding: .6rem 1rem; background: var(--accent); color: var(--night); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
.ph { color: var(--accent-hover); font-style: normal; }   /* placeholder [ ] à espera do cliente */
.ico, svg use { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* --- Etiqueta de ato: "Ato 01 · 16:00 · Nome" --- */
.act-tag { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.act-tag span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: .9rem; vertical-align: middle; background: currentColor; opacity: .6; }

/* --- Botões: retângulos chanfrados, nunca cápsula --- */
.btn {
  --c: 10px;
  display: inline-flex; align-items: center; gap: .7rem; min-height: 50px; padding: .8rem 1.4rem;
  font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; border: 0;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.btn .ico { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--brand-rose); color: var(--button-ink); }
.btn-primary:hover { background: var(--button-hover, var(--brand-ivory)); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--control-border); clip-path: none; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Link de texto com sublinhado que corre */
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; color: var(--accent-hover);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size var(--t-base) var(--ease-out); }
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }

/* --- Equalizador SVG-like (4 barras); para quando o movimento está pausado --- */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.eq i { display: block; width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 1.1s var(--ease-in-out) infinite; }
.eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.eq i:nth-child(4) { animation-duration: .95s; animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.motion-paused .eq i { animation-play-state: paused; transform: scaleY(.35); }

/* ==========================================================================
   Feixe de luz (transição entre páginas)
   ========================================================================== */
.beam { position: fixed; inset: 0; z-index: 400; pointer-events: none; visibility: hidden; overflow: hidden; }
.beam-night { position: absolute; inset: 0; background: var(--night); transform: scaleX(0); transform-origin: left; }
.beam-light { position: absolute; top: -20%; bottom: -20%; left: 0; width: 26vw; min-width: 160px; transform: translateX(-120%) skewX(-14deg);
  background: linear-gradient(90deg, rgba(var(--rose-rgb),0), rgba(var(--rose-rgb),.85) 45%, rgba(var(--ivory-rgb),.95) 50%, rgba(var(--rose-rgb),.85) 55%, rgba(var(--rose-rgb),0)); }
.beam-label { position: absolute; left: var(--gutter); bottom: 12vh; display: flex; align-items: baseline; gap: 1.2rem; opacity: 0; }
.beam-num { font: 400 clamp(4rem, 12vw, 10rem)/.8 var(--f-deco); color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.beam-name { font: 700 clamp(1.6rem, 4vw, 3.2rem)/var(--lh-display) var(--f-display); text-transform: uppercase; color: var(--text); }
/* A página nova abre já coberta pela noite, para não haver flash */
.beam-in .beam { visibility: visible; }
.beam-in .beam-night { transform: scaleX(1); }
.beam-in .beam-label { opacity: 1; }
/* Inglês por defeito: a página fica escondida até o js/i18n.js trocar os textos (sem flash do português).
   O feixe continua visível; só a legenda espera pela tradução. O <head> tem uma rede de segurança de 3 s. */
.i18n-pending body { visibility: hidden; }
.i18n-pending .beam-label { visibility: hidden; }

/* ==========================================================================
   Cabeçalho e menu
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; gap: 2rem;
  height: 72px; padding: 0 var(--gutter); background: var(--brand-plum); transition: background-color var(--t-base) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.site-header--hero:not(.is-scrolled) { background: transparent; }
.site-header.is-scrolled { background: rgba(var(--overlay-rgb),.94); box-shadow: 0 1px 0 var(--night-3); }
.site-header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
/* Logo, idiomas e CTA nunca encolhem; os itens do menu nunca partem linha */
.brand, .site-header > .lang-switch, .header-cta { flex-shrink: 0; }
.brand img { width: 88px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(1rem, 1.3vw, 1.6rem); }
.main-nav a { position: relative; white-space: nowrap; font: 600 .82rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color var(--t-fast); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease-out); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
/* Seletor de idioma PT / EN (js/i18n.js) */
.lang-switch { display: inline-flex; margin: 0 1rem; border: 1px solid var(--night-3); }
.lang-switch button { min-width: 40px; min-height: 40px; padding: 0 .55rem; background: none; border: 0; color: var(--text-2); font: 600 .78rem var(--f-body); letter-spacing: .08em; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--brand-rose); color: var(--button-ink); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"]:hover { color: var(--button-ink); }
.lang-switch-menu { margin: 0 0 .4rem; flex-basis: 100%; width: max-content; }
.header-cta { min-height: 42px; padding: .6rem 1rem; font-size: .85rem; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .4rem; background: none; border: 0; color: var(--text); font: 600 .85rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.menu-toggle .eq { color: var(--accent); }

.menu-panel { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; padding: 0 var(--gutter) 2rem; background: var(--night-2);
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path var(--t-slow) var(--ease-in-out), visibility 0s linear var(--t-slow); overflow-y: auto; }
.menu-open .menu-panel { visibility: visible; clip-path: inset(0); transition: clip-path var(--t-slow) var(--ease-in-out); }
/* Barra do menu (logo + Fechar) fica presa no topo enquanto a lista faz scroll */
.menu-top { position: sticky; top: 0; z-index: 2; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; height: 72px; background: var(--night-2); }
.menu-top img { width: 88px; height: auto; }
.menu-close { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; background: none; border: 0; color: var(--text); font: 600 .85rem var(--f-body); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.menu-close svg { width: 22px; height: 22px; }
.menu-links { margin: 2rem 0; }
.menu-links li { border-top: 1px solid var(--night-3); opacity: 0; transform: translateY(14px); transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.menu-open .menu-links li { opacity: 1; transform: none; }
.menu-open .menu-links li:nth-child(2) { transition-delay: 40ms; } .menu-open .menu-links li:nth-child(3) { transition-delay: 80ms; }
.menu-open .menu-links li:nth-child(4) { transition-delay: 120ms; } .menu-open .menu-links li:nth-child(5) { transition-delay: 160ms; }
.menu-open .menu-links li:nth-child(6) { transition-delay: 200ms; } .menu-open .menu-links li:nth-child(7) { transition-delay: 240ms; }
.menu-open .menu-links li:nth-child(8) { transition-delay: 280ms; }
.menu-links a { display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; font: 700 clamp(2rem, 8vw, 3.4rem)/var(--lh-display) var(--f-display); text-transform: uppercase; text-decoration: none; }
.menu-links .n { font: 400 .9rem var(--f-deco); color: var(--accent); min-width: 2ch; }
.menu-links a[aria-current] { color: var(--accent-hover); }
.menu-foot { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: auto; }
.menu-foot a { font-weight: 600; text-decoration: none; color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }

/* ==========================================================================
   Hero (Ato 00)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-media picture, .hero-media video { position: absolute; inset: 0; }
.hero-media video { opacity: 0; }
.hero-media video.is-playing { opacity: 1; }
/* Vídeo sem transform: reescalar um vídeo a cada frame do scroll deixava a página lenta */
.hero-media video { display: block; transform: translateZ(0); backface-visibility: hidden; }
/* Isola a pintura do hero: o resto da página não é repintado a cada frame do vídeo */
.hero-media { contain: strict; }
.hero-shade { transform: translateZ(0); pointer-events: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--overlay-rgb),.84) 0%, rgba(var(--overlay-rgb),.76) 35%, rgba(var(--overlay-rgb),.92) 78%, var(--night) 100%); }
.hero-inner { position: relative; width: 100%; padding: 120px var(--gutter) 5.5rem; }
.hero-title { margin: 1.2rem 0 2rem; max-width: 19ch; font: 700 clamp(3.1rem, min(7.6vw, 14vh), 9.2rem)/var(--lh-display) var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
.hero-title .line { display: block; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; gap: 2rem; }
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text); max-width: 34rem; }
.hero-note { position: absolute; top: 88px; right: var(--gutter); font-size: .75rem; color: var(--text-2); }

/* ==========================================================================
   Cloud Nine em números (linha de créditos de cartaz)
   ========================================================================== */
.billing { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); border-top: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3); }
.billing-title { font: 600 .78rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem; }
.billing-list { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; }
.billing-list li { padding: 0 1.4rem; border-left: 1px solid var(--night-3); }
.billing-list li:first-child { padding-left: 0; border-left: 0; }
.billing-list strong { display: block; font: 700 clamp(2rem, 4.2vw, 3.8rem)/var(--lh-display) var(--f-display); text-transform: uppercase; }
.billing-list li:first-child strong { color: var(--accent-hover); }
.billing-list li > span { color: var(--text-2); font-size: .95rem; }

/* ==========================================================================
   Atos (estrutura comum, sempre assimétrica)
   ========================================================================== */
.act { position: relative; padding: clamp(4rem, 7vw, 6.5rem) var(--gutter); }
.act-head { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: clamp(1rem, 3vw, 3rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.act-num { grid-row: span 2; width: clamp(110px, 16vw, 240px); height: auto; overflow: visible; }
.act-num text { font: 400 150px var(--f-deco); fill: none; stroke: var(--ornament); stroke-width: 1.2; }
.act-head .act-tag { margin-bottom: .8rem; }
.act-title { font: 700 clamp(2.6rem, 6.4vw, 6.6rem)/var(--lh-display) var(--f-display); text-transform: uppercase; max-width: 18ch; }
.act-head-right { grid-template-columns: 1fr auto; text-align: right; }
.act-head-right .act-num { grid-column: 2; grid-row: 1 / span 2; }
.act-head-right .act-tag { justify-content: flex-end; grid-column: 1; grid-row: 1; }
.act-head-right .act-title { grid-column: 1; grid-row: 2; justify-self: end; }

/* Bilhete: foto com cantos chanfrados art déco */
.ticket { position: relative; overflow: hidden;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.ticket > picture, .g-open > picture, .finale-media > picture { display: block; width: 100%; height: 100%; }
.ticket img { width: 100%; height: 100%; object-fit: cover; }
/* Luz do feixe a passar sobre a foto quando entra (animada pelo motion.js) */
.ticket[data-light]::after { content: ""; position: absolute; inset: -10% auto -10% 0; width: 40%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--ivory-rgb),.38), transparent); transform: translateX(var(--lx, -120%)) skewX(-14deg); }

/* --- Ato 01: Experience --- */
.xp-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); align-items: start; }
.ticket-lg { grid-column: 1 / 6; aspect-ratio: 4 / 5.4; }
.xp-copy { grid-column: 7 / 13; padding-top: 2rem; }
.ticket-sm { grid-column: 4 / 7; margin-top: -30%; aspect-ratio: 3 / 4; z-index: 1; box-shadow: 0 0 0 0 transparent; }
.xp-lede { font: 600 clamp(1.4rem, 2.3vw, 2rem)/1.25 var(--f-body); margin-bottom: 2.5rem; max-width: 30ch; }
.program { counter-reset: p; margin-bottom: 2.5rem; }
.program li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--night-3); }
.program-n { font: 400 1.1rem/1.5 var(--f-deco); color: var(--accent); }
.program h3 { font: 700 clamp(1.3rem, 1.8vw, 1.7rem)/var(--lh-display) var(--f-display); text-transform: uppercase; margin-bottom: .3rem; }
.program p { color: var(--text-2); }

/* --- Alinhamento da noite (linha do tempo com progresso) --- */
.lineup { padding: clamp(4rem, 7vw, 6.5rem) var(--gutter); background: var(--night-2); }
.lineup-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.lineup-head p { color: var(--text-2); max-width: 32rem; }
.lineup-body { position: relative; padding-left: clamp(2rem, 5vw, 5rem); }
.lineup-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--night-3); }
.lineup-rail span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.lineup-item { position: relative; display: grid; grid-template-columns: minmax(8rem, 1.1fr) 1.3fr 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--night-3); }
.lineup-item::before { content: ""; position: absolute; left: calc(-1 * clamp(2rem, 5vw, 5rem) - 5px); top: 50%; width: 11px; height: 11px; background: var(--night-2); border: 1px solid var(--accent); transform: translateY(-50%) rotate(45deg); transition: background-color var(--t-base); }
.lineup-item.is-lit::before { background: var(--accent); }
.lineup-time { font: 700 clamp(3rem, 7vw, 6.4rem)/.9 var(--f-display); color: var(--text-2); font-variant-numeric: tabular-nums; transition: color var(--t-slow) var(--ease-out); }
.lineup-item.is-lit .lineup-time { color: var(--accent-hover); }
.lineup-text h3 { font: 700 clamp(1.5rem, 2.4vw, 2.2rem)/var(--lh-display) var(--f-display); text-transform: uppercase; margin-bottom: .4rem; }
.lineup-text p { color: var(--text-2); max-width: 30rem; }
.lineup-item .ticket { aspect-ratio: 4 / 3; max-width: 340px; justify-self: end; width: 100%; }
.lineup-item:nth-child(even) .ticket { aspect-ratio: 3 / 4; max-width: 240px; }

/* --- Ato 02: Entretenimento --- */
.xp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.xp-item a { display: grid; grid-template-columns: 1fr; padding: 1.1rem 0; border-top: 1px solid var(--night-3); text-decoration: none; }
.xp-title { font: 700 clamp(2rem, 4.2vw, 4.2rem)/var(--lh-display) var(--f-display); text-transform: uppercase; color: var(--text-2); transition: color var(--t-fast); }
.xp-desc { max-height: 0; overflow: hidden; color: var(--text-2); opacity: 0; transition: max-height var(--t-slow) var(--ease-out), opacity var(--t-base), margin var(--t-base); }
.xp-item.is-active .xp-title, .xp-item a:hover .xp-title { color: var(--text); }
.xp-item.is-active .xp-desc { max-height: 4em; opacity: 1; margin-top: .4rem; }
.xp-stage { position: sticky; top: 100px; }
.stage-box { position: relative; aspect-ratio: 4 / 5; }
.stage-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity var(--t-slow) var(--ease-out), transform 900ms var(--ease-out); }
.stage-box img.is-active { opacity: 1; transform: none; }
.xp-stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 2.5rem 1.4rem 1.2rem; background: linear-gradient(transparent, rgba(var(--overlay-rgb),.9)); font-weight: 600; }

/* --- Ato 03: galeria arrastável --- */
.act-reel { padding-left: 0; padding-right: 0; }
.act-reel .act-head { padding: 0 var(--gutter); grid-template-columns: auto 1fr auto; }
.act-reel .act-num { grid-row: span 2; }
.reel-controls { grid-column: 3; grid-row: 2; display: flex; gap: .5rem; }
.reel-btn { display: grid; place-items: center; width: 52px; height: 52px; background: none; border: 1px solid var(--control-border); color: var(--text); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.reel-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.reel-btn:disabled { opacity: .35; cursor: default; }
.reel-btn svg { width: 22px; height: 22px; }
.reel-btn.prev svg { transform: scaleX(-1); }
.reel-track { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); overflow-x: auto; padding: 0 var(--gutter) 1rem; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-track.is-dragging img { pointer-events: none; }
.reel-track figure { flex: none; width: clamp(240px, 26vw, 400px); aspect-ratio: 3 / 4; scroll-snap-align: start; }
.reel-track figure:nth-child(3n+1) { width: clamp(300px, 38vw, 580px); aspect-ratio: 4 / 3.4; align-self: end; }
.reel-track figcaption { position: absolute; left: 1rem; bottom: 1rem; font: 700 1.05rem/var(--lh-display) var(--f-display); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.reel-foot { display: flex; align-items: center; gap: 2rem; padding: 1.5rem var(--gutter) 0; }
.reel-progress { flex: 1; height: 1px; background: var(--night-3); }
.reel-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, .2)); }

/* --- Ato 04: venues --- */
.venues-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.venue-bill { display: flex; flex-wrap: wrap; gap: .1rem 0; }
.venue-bill li { display: inline-flex; align-items: center; }
.venue-bill li + li::before { content: ""; width: 9px; height: 9px; margin: 0 clamp(.6rem, 1.4vw, 1.2rem); border: 1px solid var(--accent); transform: rotate(45deg); }
.venue-bill a { font: 700 clamp(1.9rem, 3.9vw, 3.9rem)/var(--lh-display) var(--f-display); text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color var(--t-fast); }
.venue-bill a:hover { color: var(--accent-hover); }
.venues-side .ticket { aspect-ratio: 3 / 4; margin-bottom: 1.5rem; }
.venues-side p { color: var(--text-2); margin-bottom: 1.2rem; }

/* --- Ato 05: testemunho --- */
.act-review { text-align: left; border-top: 1px solid var(--night-3); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.review-quote { margin: 1.5rem 0 1rem; font: 700 clamp(2rem, 5vw, 4.6rem)/var(--lh-display) var(--f-display); text-transform: uppercase; max-width: 22ch; }
.review-cite { color: var(--text-2); margin-bottom: 1.5rem; }

/* --- Final --- */
.finale { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
.finale-media { position: absolute; inset: 0; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--overlay-rgb),.94) 0%, rgba(var(--overlay-rgb),.86) 55%, rgba(var(--overlay-rgb),.8) 100%); }
.finale-inner { position: relative; z-index: 2; padding: 6rem var(--gutter); max-width: 62rem; }
.finale-title { margin: 1rem 0 1.4rem; font: 700 clamp(3rem, 8vw, 8rem)/var(--lh-display) var(--f-display); text-transform: uppercase; }
.finale-inner > p:not(.act-tag) { max-width: 30rem; margin-bottom: 2rem; color: var(--text); }

/* --- Rodapé --- */
.site-footer { background: var(--brand-plum); padding: clamp(4rem, 8vw, 6rem) var(--gutter) 6rem; border-top: 1px solid var(--night-3); }
.footer-sign { font: 700 clamp(3.5rem, 13vw, 13rem)/.85 var(--f-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--ornament); margin-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid img { width: 112px; height: auto; margin-bottom: 1rem; }
.footer-grid p { color: var(--text-2); font-size: .92rem; max-width: 28rem; }
.footer-grid h2 { font: 600 .78rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-grid li a { display: inline-block; padding: .3rem 0; color: var(--text-2); text-decoration: none; }
.footer-grid li a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--night-3); font-size: .8rem; color: var(--text-2); }
/* Links legais do rodapé (privacidade e termos) */
.footer-legal { display: inline-flex; gap: 1.2rem; margin-left: 1.2rem; }
.footer-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: .2em; }
.footer-legal a:hover { color: var(--accent-hover); }
@media (max-width: 600px) { .footer-legal { display: flex; margin: .6rem 0 0; } }

/* --- Botões fixos: pausar movimento e WhatsApp --- */
.motion-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
  background: var(--night-2); border: 1px solid var(--night-3); color: var(--text); font: 600 .78rem var(--f-body); cursor: pointer; }
.motion-toggle .eq { color: var(--accent); }
.motion-toggle:hover { border-color: var(--accent); }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.1rem;
  background: var(--brand-rose); color: var(--button-ink); font-weight: 600; text-decoration: none; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { background: var(--accent-hover); }

/* ==========================================================================
   Responsivo: 1440 (menu), 900 (tablet), 600 (telemóvel)
   O menu tem 8 itens: abaixo de 1440px não cabem numa linha com logo, idiomas e CTA.
   ========================================================================== */
@media (max-width: 1440px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: .4rem; }
  .site-header > .lang-switch { margin: 0 0 0 auto; }
}
@media (max-width: 900px) {
  :root { --cut: 12px; }
  .hero-foot { grid-template-columns: 1fr; }
  .billing-list { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .billing-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .xp-grid { grid-template-columns: repeat(6, 1fr); }
  .ticket-lg { grid-column: 1 / 5; }
  .ticket-sm { grid-column: 4 / 7; margin-top: -40%; }
  .xp-copy { grid-column: 1 / -1; padding-top: 1rem; }
  .lineup-head { grid-template-columns: 1fr; }
  .lineup-item { grid-template-columns: 1fr 1fr; }
  .lineup-time { grid-column: 1 / -1; }
  .xp { grid-template-columns: 1fr; }
  .xp-stage { position: relative; top: 0; order: -1; }
  .stage-box { aspect-ratio: 4 / 3; }
  .venues-grid { grid-template-columns: 1fr; }
  .venues-side { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: end; }
  .venues-side .ticket { margin: 0; grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-header { height: 64px; }
  .site-header { gap: .55rem; }
  .site-header > .lang-switch button { min-height: 44px; }
  .hero-title { font-size: clamp(2.25rem, 12vw, 4rem); }
  .hero-inner { padding-bottom: 5.5rem; }
  .hero-note { top: 72px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .billing-list strong { font-size: 1.8rem; }
  .act-head, .act-head-right, .act-reel .act-head { grid-template-columns: 1fr; text-align: left; }
  .act-num, .act-head-right .act-num { grid-column: 1; grid-row: auto; width: 96px; margin-bottom: .6rem; }
  .act-head-right .act-tag, .act-head-right .act-title { grid-column: 1; grid-row: auto; justify-self: start; justify-content: flex-start; }
  .reel-controls { display: none; }
  .ticket-lg { grid-column: 1 / 6; }
  .ticket-sm { grid-column: 4 / 7; margin-top: -45%; }
  .lineup-item { grid-template-columns: 1fr; gap: .8rem; }
  .lineup-item .ticket, .lineup-item:nth-child(even) .ticket { justify-self: start; max-width: 70%; }
  .reel-track figure, .reel-track figure:nth-child(3n+1) { width: 72vw; aspect-ratio: 3 / 4; }
  .venues-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .motion-toggle [data-motion-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .motion-toggle { padding: 0 14px; }
  .wa-float { display: none; }
}

/* Ajustes após capturas: grelha do cabeçalho da galeria e separadores das venues */
.act-reel .act-head .act-tag { grid-column: 2; grid-row: 1; }
.act-reel .act-head .act-title { grid-column: 2; grid-row: 2; }
.act-reel .act-head .act-num { grid-column: 1; grid-row: 1 / span 2; }
.venue-bill li + li::before { content: none; }
.venue-bill li:not(:last-child)::after { content: ""; width: 9px; height: 9px; margin: 0 clamp(.6rem, 1.4vw, 1.2rem); border: 1px solid var(--accent); transform: rotate(45deg); }
@media (max-width: 600px) {
  .act-reel .act-head .act-tag, .act-reel .act-head .act-title, .act-reel .act-head .act-num { grid-column: 1; grid-row: auto; }
}
/* Máscara das linhas (SplitText cria .line-mask com overflow: clip). A folga fica na
   máscara, não na linha: em cima para os acentos (Á, Ê), em baixo para a cedilha (Ç)
   e para a base das letras. As margens negativas mantêm o espaçamento do título. */
[data-split] .line-mask { padding: .12em 0 .36em; margin: -.12em 0 -.36em; }
/* Decisão do Diogo (2026-10-08): sem botão "Pausar movimento"; o movimento fica sempre ativo */
.motion-toggle { display: none; }
/* Botão "Copiar pedido" criado pelo script.js */
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--control-border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-hover); }

/* --- Light editorial surfaces: shared roles adapt all nested components. --- */
main, section.surface-ivory {
  --night: var(--brand-ivory);
  --night-2: #d8c1c2;
  --control-border: #856476;
  --error: #8b303d;
  --button-hover: #d8b1b7;
  --text: var(--brand-plum);
  --text-2: #604854;
  --accent: var(--brand-plum);
  --accent-hover: var(--paper-ink);
  --ornament: var(--brand-mauve);
  --night-3: rgba(var(--plum-rgb),.24);
  background: var(--brand-ivory); color: var(--text);
}
section.surface-rose {
  --text: var(--paper-ink);
  --text-2: var(--paper-ink);
  --accent: var(--paper-ink);
  --accent-hover: var(--brand-plum);
  --ornament: var(--brand-plum);
  --night-3: rgba(var(--plum-rgb),.35);
  background: var(--brand-rose); color: var(--text);
}
.surface-ivory :focus-visible, .surface-rose :focus-visible,
.faq-paper :focus-visible, .legal-paper :focus-visible, .iv-paper :focus-visible {
  outline-color: var(--brand-plum);
}
::selection { background: var(--brand-rose); color: var(--paper-ink); }
.btn:active, .wa-float:active { transform: translateY(1px); }
/* Inset rings stay visible inside the clipped button shape. */
.btn:focus-visible, .wa-float:focus-visible { outline: none; box-shadow: inset 0 0 0 3px currentColor; }
.hero-sweep { background: var(--sweep); }
/* Captions keep their own dark surface when a parent uses an ivory surface. */
.reel-track figcaption { color: var(--brand-ivory); background: rgba(var(--overlay-rgb),.86); padding: .3rem .55rem; }

/* Ivory labels stay legible across the changing video frames. */
.hero .act-tag { color: var(--brand-ivory); }

/* Client films share the existing ticket frame. */
.ticket video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-toggle { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--brand-ivory); background: rgba(var(--overlay-rgb),.9); color: var(--brand-ivory); font: 600 .875rem/1.4 var(--f-body); cursor: pointer; }
.media-toggle:hover { background: var(--brand-plum); }
.media-toggle:focus-visible { outline: 2px solid var(--brand-ivory); outline-offset: -5px; }

/* Dark bands and media overlays use ivory text. */
.hero, .finale, .xp-stage figcaption {
  --night: var(--brand-plum);
  --text: var(--brand-ivory);
  --text-2: #d6bdc3;
  --accent: #ddb5bd;
  --accent-hover: var(--brand-ivory);
  --control-border: #bf9ba5;
  color: var(--text);
}
.hero { background: var(--brand-plum); }
.hero-video-toggle { right: auto; left: var(--gutter); bottom: max(1rem, env(safe-area-inset-bottom)); }
.media-toggle[hidden] { display: none; }
.wa-float { bottom: max(16px, env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: no-preference) {
  .ticket.is-revealing > picture > img, .ticket.is-revealing > img, .ticket.is-revealing > video, .ticket.is-revealing .g-open img, .ticket.is-revealing .stage-box img {
    animation: ticket-reveal 650ms var(--ease-out) both;
  }
  .ticket.is-revealing::after { animation: ticket-sweep 850ms var(--ease-in-out) 140ms both; }
  .ticket.is-revealing:focus-within img, .ticket.is-revealing:focus-within video { animation: none; }
}
@keyframes ticket-reveal {
  from { clip-path: inset(0 85% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes ticket-sweep {
  0% { opacity: 0; transform: translateX(-120%) skewX(-14deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(320%) skewX(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .i18n-pending .beam, .beam { display: none; }
}
