/* =========================================================
   CASP — Convite da Inauguração e Apresentação Institucional
   Usa os tokens e componentes de style.css (Inter, azul, laranja)
   ========================================================= */

/* ---------- Barra superior do convite ---------- */
.ev-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.ev-top .container { display: flex; align-items: center; gap: 24px; height: 80px; }
.ev-top .brand img { height: 32px; width: auto; }
.ev-top nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ev-top nav a:not(.btn) { color: rgba(255,255,255,.82); font-size: 14.5px; transition: color .2s; }
.ev-top nav a:not(.btn):hover { color: var(--white); }
@media (max-width: 760px) { .ev-top nav a:not(.btn) { display: none; } .ev-top .container { height: 68px; } .ev-top .brand img { height: 28px; } }

/* ---------- Hero do convite ---------- */
.ev-hero { min-height: 100svh; padding: 120px 0 72px; }
.ev-hero .hero__inner { gap: 20px; max-width: 940px; }
.ev-hero h1 { font-size: clamp(36px, 5.6vw, 72px); }
.ev-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb0ff, #ffffff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ingresso: data · detalhes · contagem */
.ticket {
  position: relative; width: 100%; max-width: 820px; margin-top: 8px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  background: linear-gradient(135deg, rgba(0,10,60,.78), rgba(0,18,90,.62)); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: left; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.ticket__date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 30px; background: var(--white); color: var(--ink); min-width: 132px; }
.ticket__date small { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.ticket__date b { font-size: 58px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--blue); }
.ticket__date span { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.ticket__info { padding: 20px 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-right: 1px dashed rgba(255,255,255,.28); }
.ticket__info p { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; text-shadow: none; max-width: none; }
.ticket__info svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #9cc0ff; }
.ticket__info strong { font-weight: 700; }
.ticket__count { padding: 18px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-width: 220px; }
.ticket__count > small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.count { display: flex; gap: 8px; }
.count div { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.count b { font-size: 28px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.count span { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 820px) {
  .ticket { grid-template-columns: auto 1fr; }
  .ticket__info { border-right: 0; padding: 18px 20px; }
  .ticket__count { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-top: 1px dashed rgba(255,255,255,.28); padding: 14px 20px; min-width: 0; }
  .ticket__date { padding: 18px 20px; min-width: 104px; }
  .ticket__date b { font-size: 46px; }
}
@media (max-width: 480px) {
  .ticket__info p { font-size: 14px; }
  .ticket__count > small { display: none; }
  .ticket__count { justify-content: center; }
  .count { gap: 4px; }
}
.ev-cal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.ev-cal a { color: var(--white); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .2s; }
.ev-cal a:hover { border-color: var(--white); }
.ev-cal svg { width: 15px; height: 15px; }
.ev-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 2; translate: -50% 0; width: 26px; height: 40px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.ev-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 760px) { .ev-scroll { display: none; } }

/* ---------- Programação ---------- */
.agenda { max-width: 860px; margin: 0 auto; list-style: none; padding: 0; position: relative; }
.agenda::before { content: ""; position: absolute; left: 104px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--blue-soft), #c9d8ff 12%, #c9d8ff 88%, var(--blue-soft)); }
.agenda li { display: grid; grid-template-columns: 80px 48px 1fr; align-items: center; padding: 10px 0; }
.agenda time { font-weight: 700; font-size: 17px; color: var(--blue); font-variant-numeric: tabular-nums; text-align: right; }
.agenda i { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue-2); position: relative; z-index: 1; }
.agenda .agenda__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 20px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.agenda .agenda__card:hover { transform: translateX(4px); border-color: #c9d8ff; }
.agenda h3 { font-size: 17px; margin: 0 0 2px; }
.agenda p { margin: 0; color: var(--muted); font-size: 14.5px; }
.agenda li.is-key i { width: 20px; height: 20px; border: 0; background: var(--orange); box-shadow: 0 0 0 6px rgba(253,70,1,.15); }
.agenda li.is-key time { color: var(--orange); }
.agenda li.is-key .agenda__card { background: var(--navy); border-color: var(--navy); color: var(--white); }
.agenda li.is-key .agenda__card p { color: rgba(255,255,255,.75); }
@media (max-width: 560px) {
  .agenda::before { left: 7px; }
  .agenda li { grid-template-columns: 16px 1fr; column-gap: 14px; row-gap: 4px; }
  .agenda time { grid-column: 2; text-align: left; font-size: 15px; }
  .agenda i { grid-row: 1 / span 2; grid-column: 1; align-self: start; margin-top: 4px; }
  .agenda .agenda__card { grid-column: 2; padding: 12px 16px; }
  .agenda li.is-key i { width: 16px; height: 16px; }
}

/* ---------- Instalações (mosaico) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 220px); gap: 12px; }
.mosaic figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: #dfe7f7; }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(4), .mosaic figure:nth-child(5), .mosaic figure:nth-child(6) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(0,10,46,.62); backdrop-filter: blur(6px); color: var(--white); font-size: 13px; font-weight: 500; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic figure:nth-child(4), .mosaic figure:nth-child(6) { grid-column: span 1; }
  .mosaic figure:nth-child(n+6) { display: none; }
  .mosaic figure:nth-child(5) { grid-column: span 2; }
}

/* ---------- Chamada para a apresentação ---------- */
.deck-cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: var(--white);
  background: radial-gradient(110% 80% at 50% 105%, #2765ff 0%, #0b2cf0 32%, #0010a8 58%, #000a5e 80%, #00061f 100%);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 5vw, 64px);
}
.deck-cta > * { position: relative; z-index: 2; }
.deck-cta h2 { color: var(--white); margin: 14px 0 12px; }
.deck-cta p { color: rgba(255,255,255,.8); max-width: 46ch; }
.deck-cta .btns { justify-content: flex-start; margin-top: 22px; }
.deck-cta__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.deck-cta__meta span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.deck-peek { position: relative; aspect-ratio: 16 / 10; display: block; perspective: 1200px; }
.deck-peek > div {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: var(--white); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .6s var(--ease);
}
.deck-peek > div:nth-child(1) { transform: translate(8%, -8%) scale(.86); opacity: .55; }
.deck-peek > div:nth-child(2) { transform: translate(4%, -4%) scale(.93); opacity: .8; }
.deck-peek:hover > div:nth-child(1) { transform: translate(12%, -12%) scale(.86) rotate(2deg); }
.deck-peek:hover > div:nth-child(2) { transform: translate(6%, -6%) scale(.93) rotate(1deg); }
.deck-peek:hover > div:nth-child(3) { transform: translateY(-4px); }
.peek { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.peek__txt { padding: 8% 7%; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.peek__txt small { font-size: 11px; font-weight: 600; color: var(--blue-2); letter-spacing: .08em; text-transform: uppercase; }
.peek__txt b { font-size: clamp(15px, 1.7vw, 22px); line-height: 1.15; letter-spacing: -.02em; }
.peek__txt span { font-size: 12px; color: var(--muted); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek img.peek__cut { object-fit: contain; padding: 8% 6%; background: linear-gradient(160deg, #eef3ff, #dbe6ff); }
.peek__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(253,70,1,.2); transition: transform .3s var(--ease); }
.peek__play svg { width: 24px; height: 24px; margin-left: 3px; }
.deck-peek:hover .peek__play { transform: scale(1.08); }
@media (max-width: 860px) { .deck-cta { grid-template-columns: 1fr; } .deck-peek { order: -1; margin: 6% 6% 0 0; } }

/* ---------- Confirmação de presença ---------- */
.rsvp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.rsvp__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.rsvp__form .badge { align-self: flex-start; }
.rsvp__form h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 12px 0 6px; }
.rsvp__form > p { color: var(--muted); margin-bottom: 22px; }
.rsvp .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .rsvp .row2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 13.5px; font-weight: 500; color: #374151; margin-bottom: 6px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.chips span:hover { border-color: var(--blue-2); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.rsvp .opt { font-weight: 400; color: var(--muted); }
.rsvp__err { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 14px; }
.rsvp__link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rsvp__link:disabled { opacity: .6; cursor: default; }
.rsvp__done { text-align: center; padding: 12px 0 4px; }
.rsvp__done .tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #e8f8ee; color: var(--green); }
.rsvp__done .tick svg { width: 30px; height: 30px; }
.rsvp__done h2 { margin: 0 0 8px; outline: none; }
.rsvp__done p { color: var(--muted); }
.rsvp__done .btns { margin-top: 18px; }
.rsvp__side { display: flex; flex-direction: column; gap: 16px; }
.place { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.place .map { margin: 0; border: 0; border-radius: 0; aspect-ratio: 16 / 11; }
.place__body { padding: 20px 22px 22px; }
.place__body h3 { margin-bottom: 6px; }
.place__body p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.place__body .btns { justify-content: flex-start; }
.help { background: var(--blue-soft); border-radius: var(--r-lg); padding: 20px 22px; display: flex; align-items: center; gap: 14px; }
.help p { margin: 0; font-size: 14.5px; color: #374151; }
.help a { font-weight: 600; color: var(--blue); }
@media (max-width: 900px) { .rsvp { grid-template-columns: 1fr; } }

/* ---------- Rodapé simples ---------- */
.ev-foot { background: var(--night); color: rgba(255,255,255,.75); padding: 40px 0; font-size: 14px; }
.ev-foot .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ev-foot img { height: 30px; width: auto; }
.ev-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ev-foot a:hover { color: var(--white); }

/* Barra fixa no celular: confirmar sempre à mão */
.ev-bar { display: none; }
@media (max-width: 760px) {
  .ev-bar {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 8px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px -12px rgba(0,10,46,.35); border: 1px solid var(--line);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .ev-bar.is-on { transform: none; }
  .ev-bar .btn { flex: 1; height: 46px; }
  body[data-page="convite"] { padding-bottom: 76px; }
}

/* =========================================================
   APRESENTAÇÃO
   ========================================================= */
body.deck { overflow: hidden; background: var(--night); height: 100dvh; }
.deck__top {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(12px, 2.4vw, 28px); color: var(--white); transition: background .4s, color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.deck.is-light .deck__top { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); border-bottom-color: var(--line); }
.deck__top .brand { display: grid; }
.deck__top .brand img { height: 28px; width: auto; grid-area: 1 / 1; transition: opacity .3s; }
.deck__top .brand .on-light { opacity: 0; }
.deck.is-light .deck__top .brand .on-light { opacity: 1; }
.deck.is-light .deck__top .brand .on-dark { opacity: 0; }
.deck__where { display: flex; flex-direction: column; line-height: 1.2; padding-left: 14px; border-left: 1px solid currentColor; border-color: rgba(127,127,127,.35); min-width: 0; }
.deck__where small { font-size: 11.5px; opacity: .65; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.deck__where b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ibtn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: inherit; transition: background .2s, border-color .2s; }
.ibtn:hover { background: rgba(255,255,255,.18); }
.ibtn svg { width: 18px; height: 18px; }
.deck.is-light .ibtn { border-color: var(--line); background: var(--white); }
.deck.is-light .ibtn:hover { border-color: var(--ink); }
.deck__actions .btn { height: 40px; }
.deck__actions .btn--ghost { --bg: transparent; --fg: currentColor; --bd: rgba(255,255,255,.3); color: inherit; font-weight: 500; }
.deck.is-light .deck__actions .btn--ghost { --bd: var(--line); }
@media (max-width: 760px) {
  .deck__where, .deck__actions .btn--ghost, .deck__actions .hide-sm { display: none; }
  .deck__top { height: 58px; }
}

.deck__stage { position: fixed; inset: 0; overflow: hidden; touch-action: pan-y; }
.deck__track { display: flex; height: 100%; transition: transform .7s var(--ease); will-change: transform; }
.slide {
  flex: 0 0 100%; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--bg); color: var(--ink); position: relative;
  padding: 96px clamp(16px, 5vw, 72px) 104px; display: flex; flex-direction: column; justify-content: center;
  scrollbar-width: thin;
}
.slide--white { background: var(--white); }
.slide--dark { background: radial-gradient(110% 80% at 50% 105%, #2765ff 0%, #0b2cf0 32%, #0010a8 58%, #000a5e 80%, #00061f 100%); color: var(--white); }
.slide--dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,6,30,.35), rgba(0,6,30,0) 45%, rgba(0,153,255,.16)); pointer-events: none; }
.slide--blue { background: radial-gradient(80% 90% at 78% 45%, #3f7bff 0%, #2765ff 45%, #1d4fd6 100%); color: var(--white); }
.slide > .wrap { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: auto; }
@media (max-height: 700px), (max-width: 760px) { .slide { justify-content: flex-start; padding-top: 84px; } }

/* Entrada do conteúdo do slide ativo */
.js .slide .wrap > *, .js .slide [data-in] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .slide.is-active .wrap > *, .js .slide.is-active [data-in] > * { opacity: 1; transform: none; }
.js .slide.is-active .wrap > :nth-child(2), .js .slide.is-active [data-in] > :nth-child(2) { transition-delay: .1s; }
.js .slide.is-active .wrap > :nth-child(3), .js .slide.is-active [data-in] > :nth-child(3) { transition-delay: .18s; }
.js .slide.is-active .wrap > :nth-child(4), .js .slide.is-active [data-in] > :nth-child(4) { transition-delay: .26s; }
.js .slide.is-active [data-in] > :nth-child(5) { transition-delay: .32s; }
.js .slide.is-active [data-in] > :nth-child(6) { transition-delay: .38s; }
.js .slide.is-active [data-in] > :nth-child(n+7) { transition-delay: .44s; }
@media (prefers-reduced-motion: reduce) { .deck__track { transition: none; } .js .slide .wrap > *, .js .slide [data-in] > * { opacity: 1; transform: none; } }

/* Tipografia dos slides */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; }
.kicker b { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 12px; letter-spacing: 0; }
.slide--dark .kicker, .slide--blue .kicker { color: #9cc0ff; }
.slide--blue .kicker b { background: var(--white); color: var(--blue); }
.slide h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; text-wrap: balance; }
.slide .lead { font-size: clamp(16px, 1.35vw, 19px); color: #4b5563; max-width: 62ch; }
.slide--dark .lead, .slide--blue .lead { color: rgba(255,255,255,.82); }
.slide .sm { font-size: 14.5px; color: var(--muted); }

/* Layouts */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.two--wide { grid-template-columns: 1.15fr .85fr; }
.two__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 30px 60px -30px rgba(0,10,46,.45); }
.two__img img { width: 100%; height: 100%; object-fit: cover; }
.two__img--free { border-radius: 0; overflow: visible; box-shadow: none; aspect-ratio: auto; display: grid; place-items: center; }
.two__img--free img { width: auto; max-width: 100%; max-height: min(60vh, 520px); object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,10,46,.25)); }
.two__img--blue { position: relative; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(120% 90% at 50% 100%, #2765ff 0%, #0000ff 55%, #000a8a 100%); }
.two__img--blue::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 45%, rgba(255,255,255,.22), transparent 70%); }
.two__img--blue img { position: relative; width: auto; height: 94%; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 30px rgba(0,0,60,.45)); }
.two__img--fade img {
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 72%, transparent 98%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 860px) { .two, .two--wide { grid-template-columns: 1fr; } .two__img { order: -1; aspect-ratio: 16 / 9; } .two__img--free img { max-height: 240px; } }

.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.slide--white .card { background: var(--bg); box-shadow: none; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .num { display: block; font-size: 14px; font-weight: 700; color: var(--blue-2); margin-bottom: 18px; }
.card--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--white); box-shadow: none; backdrop-filter: blur(8px); }
.card--glass p { color: rgba(255,255,255,.75); }

/* Cartão com imagem */
.pic { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pic__img { position: relative; aspect-ratio: 16 / 10; max-height: 27vh; background: linear-gradient(160deg, #eef3ff, #dbe6ff); overflow: hidden; }
.pic__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic__img--contain img { object-fit: contain; padding: 12px; }
.pic__img--contain { aspect-ratio: 16 / 8.5; }
.pic__img--top img { object-position: 50% 12%; }
.pic__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pic__body h3 { font-size: 17px; }
.pic__body p { margin: 0; color: var(--muted); font-size: 14px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.tag--orange { background: #fff0e9; color: var(--orange-2); }
.tag--navy { background: var(--navy); color: var(--white); }

/* Lista de verificação */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.slide--dark .ticks li::before, .slide--blue .ticks li::before { background-color: var(--orange); }

/* Números */
.figs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.figs div { padding: 14px 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); min-width: 120px; }
.figs b { display: block; font-size: 30px; line-height: 1; font-weight: 700; color: var(--blue); letter-spacing: -.02em; }
.figs span { font-size: 13px; color: var(--muted); }
.slide--blue .figs div, .slide--dark .figs div { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.slide--blue .figs b, .slide--dark .figs b { color: var(--white); }
.slide--blue .figs span, .slide--dark .figs span { color: rgba(255,255,255,.75); }

/* Capa */
.cover { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cover img.logo { height: clamp(52px, 7vw, 84px); width: auto; }
.cover h1 { font-size: clamp(28px, 4.2vw, 54px); max-width: 26ch; text-wrap: balance; }
@media (max-width: 520px) { .cover h1 { font-size: 25px; max-width: none; } }
.cover .lead { margin: 0 auto; }
.cover .hint { font-size: 13.5px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 10px; }
@media (hover: none) { .cover .hint .k { display: none; } }
@media (hover: hover) { .cover .hint .t { display: none; } }
.cover .hint kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); font: 600 12px var(--font); }

/* Níveis */
.lvl { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #eef3ff 0%, #dfe8ff 100%); display: flex; flex-direction: column; }
.lvl img { height: clamp(150px, 26vh, 240px); width: 100%; object-fit: contain; object-position: 50% 100%; margin-top: 12px; }
.lvl__body { background: var(--white); padding: 18px 20px 20px; flex: 1; border-top: 1px solid var(--line); }
.lvl__body h3 { font-size: 21px; margin: 8px 0 4px; }
.lvl__body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lvl--top { background: linear-gradient(180deg, var(--blue-2), var(--blue)); }
.lvl--top .lvl__body { background: var(--navy); color: var(--white); border-color: var(--navy); }
.lvl--top .lvl__body p { color: rgba(255,255,255,.75); }

/* Divisor de capítulo */
.chapter { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: end; margin-bottom: 8px; }
.chapter span { font-size: clamp(56px, 8vw, 104px); font-weight: 700; line-height: .85; letter-spacing: -.05em; color: var(--blue); grid-row: span 2; }
.chapter .kicker { margin: 0; }
.chapter h2 { margin: 0; }
@media (max-width: 560px) { .chapter { grid-template-columns: 1fr; } .chapter span { grid-row: auto; font-size: 48px; } }

/* Programa de níveis 12h */
.steps { display: flex; gap: 4px; margin-top: 10px; }
.steps i { flex: 1; font-style: normal; font-size: 11.5px; font-weight: 600; text-align: center; padding: 5px 4px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.steps i:nth-child(2) { background: #d6e2ff; } .steps i:nth-child(3) { background: var(--blue); color: var(--white); }

/* Galeria de instalações */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(100px, 16vh, 180px); gap: 10px; margin-top: 24px; }
.gal button { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #dfe7f7; cursor: zoom-in; }
.gal button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal button:hover img { transform: scale(1.05); }
.gal span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,10,46,.62); color: var(--white); font-size: 12.5px; font-weight: 500; text-align: left; }
@media (max-width: 760px) { .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; } .gal button:nth-child(1) { grid-row: span 1; } }

/* Lista de módulos */
.mods { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; counter-reset: m; }
.mods li { counter-increment: m; display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.mods li::before { content: counter(m, decimal-leading-zero); font-weight: 700; color: var(--blue-2); font-size: 13px; }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; } }

/* Encerramento */
.end { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.end h2 { font-size: clamp(32px, 5vw, 60px); max-width: 18ch; }
.end .ticket { max-width: 640px; grid-template-columns: auto 1fr; }
.end .ticket__info { border-right: 0; }
.end .contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14.5px; color: rgba(255,255,255,.8); }
.end .contacts a:hover { color: var(--white); }

/* Controles inferiores */
.deck__nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.deck__nav > * { pointer-events: auto; }
.deck__pill { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px -12px rgba(0,10,46,.45); border: 1px solid rgba(17,24,39,.08); }
.deck__pill button.arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blue); color: var(--white); transition: background .2s, opacity .2s, transform .2s var(--ease); }
.deck__pill button.arrow:hover { background: #1a1aff; transform: scale(1.05); }
.deck__pill button.arrow:disabled { background: #e5e7eb; color: #9ca3af; transform: none; cursor: default; }
.deck__pill button.arrow svg { width: 20px; height: 20px; }
.dots { display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c7d2fe; transition: width .35s var(--ease), background .3s; }
.dots button:hover { background: var(--blue-2); }
.dots button[aria-current="true"] { width: 26px; background: var(--blue); }
.deck__count { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0 10px; display: none; }
@media (max-width: 860px) { .dots { display: none; } .deck__count { display: block; } }
.deck__bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 31; background: transparent; }
.deck__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-2), var(--orange)); transition: width .6s var(--ease); }
.deck__hint { position: fixed; left: 50%; bottom: 86px; z-index: 30; translate: -50% 0; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: rgba(0,10,46,.78); color: var(--white); white-space: nowrap; transition: opacity .5s, translate .5s var(--ease); pointer-events: none; }
.deck__hint.is-off { opacity: 0; translate: -50% 10px; }

/* Índice (sumário) */
.toc { position: fixed; inset: 0; z-index: 60; background: rgba(0,8,30,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: flex-end; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.toc.is-open { opacity: 1; visibility: visible; }
.toc__panel { width: min(440px, 100%); height: 100%; background: var(--white); color: var(--ink); padding: 22px 20px 28px; overflow-y: auto; transform: translateX(30px); transition: transform .4s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.toc.is-open .toc__panel { transform: none; }
.toc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.toc__head h2 { font-size: 20px; }
.toc__head .ibtn { border-color: var(--line); background: var(--white); }
.toc__panel a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; transition: background .2s; }
.toc__panel a:hover { background: var(--bg); }
.toc__panel a b { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc__panel a span { font-weight: 500; font-size: 15px; line-height: 1.3; }
.toc__panel a small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.toc__panel a[aria-current="true"] { background: var(--blue-soft); }
.toc__panel a[aria-current="true"] b { color: var(--blue); }
.toc__foot { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }

/* Cartão horizontal (lista de cursos) */
.pic--row { flex-direction: row; align-items: stretch; }
.pic--row .pic__img { flex: 0 0 104px; aspect-ratio: auto; }
.pic--row .pic__body { padding: 14px 16px; gap: 4px; }
.pic--row .pic__body h3 { font-size: 15.5px; line-height: 1.25; }
.pic--row .pic__body p { font-size: 13.5px; line-height: 1.45; }
@media (max-width: 1000px) { .grid--3:has(.pic--row) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3:has(.pic--row) { grid-template-columns: 1fr; } }

/* Imagem em frame no topo do convite */
.ev-frame {
  position: relative; margin: 0 0 8px; width: min(760px, 100%); aspect-ratio: 16 / 8.2;
  border-radius: 28px; padding: 8px; isolation: isolate;
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(127,176,255,.25) 40%, rgba(253,70,1,.45));
  box-shadow: 0 40px 90px -30px rgba(0,60,255,.75), 0 0 0 1px rgba(255,255,255,.12);
  animation: ev-frame-in 1.1s var(--ease) both, ev-frame-float 7s ease-in-out 1.1s infinite alternate;
}
.ev-frame::before {
  content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(39,101,255,.55), transparent); filter: blur(30px);
}
.ev-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 21px; }
.ev-frame figcaption {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: rgba(0,10,46,.72); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600;
}
.ev-frame__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: sc-ping 1.8s ease-out infinite; }
@keyframes sc-ping { 0% { box-shadow: 0 0 0 0 rgba(253,70,1,.6); } 100% { box-shadow: 0 0 0 9px rgba(253,70,1,0); } }
@keyframes ev-frame-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ev-frame-float { to { translate: 0 -8px; } }
@media (max-width: 600px) {
  .ev-frame { border-radius: 22px; padding: 6px; }
  .ev-frame img { border-radius: 17px; }
  .ev-frame figcaption { bottom: 10px; font-size: 11.5px; height: 28px; padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .ev-frame, .ev-frame__dot { animation: none; } }

/* =========================================================
   Convite enxuto: faixa compacta da apresentação + formulário
   ========================================================= */
.ev-rsvp-sec { padding-top: clamp(28px, 4vw, 44px); }
.deck-mini {
  display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto clamp(20px, 3vw, 28px);
  padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--night, #000a2e); color: var(--white);
  box-shadow: 0 18px 40px -24px rgba(0,10,46,.6); transition: transform .3s var(--ease), box-shadow .3s;
}
.deck-mini:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -22px rgba(0,0,255,.55); }
.deck-mini__thumb { position: relative; flex: none; width: 92px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.deck-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.deck-mini__thumb i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,10,46,.35); }
.deck-mini__thumb svg { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: var(--orange); color: var(--white); box-sizing: border-box; }
.deck-mini__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deck-mini__txt b { font-size: 15.5px; font-weight: 700; }
.deck-mini__txt small { font-size: 13px; color: rgba(255,255,255,.7); }
.deck-mini__go { margin-left: auto; flex: none; gap: 6px; }
.deck-mini__go svg { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .deck-mini { gap: 12px; }
  .deck-mini__thumb { width: 64px; }
  .deck-mini__txt b { font-size: 14.5px; }
  .deck-mini__txt small { font-size: 12px; }
  .deck-mini__go { padding: 0 12px; }
  .deck-mini__go { font-size: 0; width: 40px; padding: 0; justify-content: center; }
  .deck-mini__go svg { width: 18px; height: 18px; }
}

/* Rede 3D (assets/js/hero3d.js) no topo do convite */
.hero__net { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.hero__net.is-on { opacity: 1; }
