/* =========================================================================
   Viva Eventos · minisite de baile
   A página é a noite: começa no roxo Viva e termina no laranja Viva,
   quando o céu clareia. Uma família só (Mona Sans), em três vozes:
   pesada e larga para lugar e identidade, pesada e estreita para o
   tempo, leve e larga para os momentos de emoção.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --noite: #120A1F;
  --noite-2: #1C1030;
  --roxo: #3B1D64;
  --lua: #F5F0FA;
  --lilas: #BDAED6;
  --laranja: #F47720;
  --aurora: #FFC08A;
  --linha: rgb(245 240 250 / .12);
  --linha-forte: rgb(245 240 250 / .26);

  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-body: clamp(1rem, .95rem + .2vw, 1.125rem);
  --t-small: .875rem;
  --t-label: .75rem;
  --t-lede: clamp(1.3rem, 1.1rem + .95vw, 2rem);
  --t-h2: clamp(2.5rem, 1.4rem + 4.6vw, 5.75rem);
  --t-h3: clamp(1.125rem, 1rem + .5vw, 1.5rem);

  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --wrap: min(100vw - 2 * var(--gutter), 1360px);
  --section: clamp(5.5rem, 3.5rem + 9vw, 12rem);
  --radius: 18px;
  --topbar-h: 76px;
  --tabbar-h: 0px;
  --anchor-offset: var(--topbar-h);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* sol do amanhecer: mesmo desenho no céu da noite e no rodapé */
  --sun-d: max(120vw, 120vh);
  --sun-glow: rgb(255 222 184 / .95) 0%, rgb(255 176 110 / .78) 22%, rgb(244 119 32 / .5) 48%, rgb(244 119 32 / 0) 100%;
}

@media (max-width: 899px) {
  :root { --topbar-h: 68px; --tabbar-h: 64px; }
  :root { --anchor-offset: 0px; } /* no celular o topo não é fixo */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  background: var(--noite);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--noite);
  color: var(--lua);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, iframe, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--laranja); color: var(--noite); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .75rem 1rem; border-radius: 999px;
  background: var(--lua); color: var(--noite);
  font-weight: 600; text-decoration: none;
  transform: translateY(-150%);
  transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.i {
  width: 1.125em; height: 1.125em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.wrap { width: var(--wrap); margin-inline: auto; }

.section { position: relative; padding-top: var(--section); }

.label {
  font-size: var(--t-label);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--laranja);
}

.section__head {
  display: grid;
  gap: 1.25rem;
  max-width: 62rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.section__title {
  font-size: var(--t-h2);
  font-weight: 760;
  font-stretch: 125%;
  line-height: .96;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section__lede {
  font-size: var(--t-lede);
  font-weight: 340;
  font-stretch: 116%;
  line-height: 1.28;
  letter-spacing: -.012em;
  max-width: 34ch;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .section__head--split {
    max-width: none;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(2rem, 5vw, 6rem);
  }
  .section__head--split .section__lede { justify-self: end; max-width: 24ch; }
}

.link {
  color: var(--lua);
  text-decoration: underline;
  text-decoration-color: var(--laranja);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: color .2s;
}
.link:hover { color: var(--aurora); }

/* ---------- Botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  height: var(--h);
  padding-inline: 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 620;
  font-stretch: 106%;
  letter-spacing: .005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }

.btn--primary { background: var(--laranja); color: var(--noite); }
.btn--primary:hover { background: var(--aurora); }

.btn--ghost {
  border-color: var(--linha-forte);
  background: rgb(18 10 31 / .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--lua); background: rgb(245 240 250 / .1); }

.btn--dark { background: var(--noite); color: var(--lua); }
.btn--dark:hover { background: var(--roxo); }

.btn--line { border-color: rgb(18 10 31 / .35); color: var(--noite); background: transparent; }
.btn--line:hover { border-color: var(--noite); background: rgb(18 10 31 / .06); }

.btn--sm { --h: 42px; padding-inline: 1.1rem; font-size: .875rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--linha-forte);
  border-radius: 999px;
  background: transparent;
  font-size: .875rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.chip:hover { border-color: var(--laranja); color: var(--aurora); }
.chip .i { width: 17px; height: 17px; }

/* ---------- Marca Viva (monotraço redesenhado do logo) ---------- */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--lua);
  text-decoration: none;
}
.brand__mark {
  width: 78px;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--laranja);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand__word {
  font-size: 10.5px;
  font-weight: 380;
  font-stretch: 112%;
  letter-spacing: .34em;
  margin-right: -.34em;
  line-height: 1;
}
.brand--dark { color: var(--noite); }
.brand--dark .brand__mark { stroke: var(--noite); width: 104px; }
.brand--dark .brand__word { font-size: 13px; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.brand__mark--draw path {
  stroke-dasharray: 1 2;
  animation: draw 1.1s var(--ease-io) both;
}
.brand__mark--draw path:nth-child(2) { animation-delay: .12s; }
.brand__mark--draw path:nth-child(3) { animation-delay: .24s; }
.brand__mark--draw path:nth-child(4) { animation-delay: .36s; }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.topbar.is-solid {
  background: rgb(18 10 31 / .8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--linha);
}
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.topbar__nav { display: none; }
.topbar .cal { margin-left: auto; }

@media (min-width: 900px) {
  .topbar__nav { display: flex; gap: 2.25rem; margin-left: auto; }
  .topbar .cal { margin-left: 0; }
  .topbar__nav a {
    position: relative;
    padding-block: .5rem;
    font-size: .875rem;
    font-weight: 560;
    color: var(--lilas);
    text-decoration: none;
    transition: color .2s var(--ease-out);
  }
  .topbar__nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--laranja);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-out);
  }
  .topbar__nav a:hover, .topbar__nav a.is-active { color: var(--lua); }
  .topbar__nav a.is-active::after { transform: scaleX(1); }
}

@media (max-width: 899px) {
  /* no celular a navegação fica na barra inferior; o topo rola junto */
  .topbar { position: absolute; }
}

/* ---------- Menu "Salvar a data" ---------- */
.cal { position: relative; }
.cal__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 250px;
  padding: .4rem;
  border: 1px solid var(--linha-forte);
  border-radius: 14px;
  background: #22143A;
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / .65);
  transform-origin: top right;
  animation: menu-in .22s var(--ease-out);
}
.cal__menu[hidden] { display: none; }
.cal--left .cal__menu { right: auto; left: 0; transform-origin: top left; }
.cal--up .cal__menu { top: auto; bottom: calc(100% + .5rem); transform-origin: bottom left; }
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

.cal__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 46px;
  padding: 0 .9rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--lua);
  font-size: .9375rem;
  font-weight: 540;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.cal__item:hover, .cal__item:focus-visible { background: rgb(245 240 250 / .09); }
.cal__item .i { color: var(--laranja); }

/* ---------- Abertura (vídeo) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: var(--roxo);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  container-type: size;
  background: var(--roxo);
}
.hero__poster,
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster {
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.92);
  transform: scale(1.04);
}
.hero__video { opacity: 0; transition: opacity 1.6s var(--ease-out); }
.hero.is-playing .hero__video { opacity: 1; }
.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  border: 0;
  transform: translate(-50%, -50%) scale(1.2);
  filter: grayscale(1) contrast(1.12) brightness(.92);
  pointer-events: none;
}

/* duotone Viva: sombras roxas, luzes alaranjadas. Qualquer vídeo fica "da marca". */
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__media::before { z-index: 2; background: #F59A5A; mix-blend-mode: multiply; }
.hero__media::after { z-index: 3; background: var(--roxo); mix-blend-mode: lighten; }

/* véu para leitura do texto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(18 10 31 / .6) 0%, rgb(18 10 31 / 0) 20%),
    linear-gradient(0deg, var(--noite) 0%, rgb(18 10 31 / .88) 26%, rgb(18 10 31 / .35) 52%, rgb(18 10 31 / 0) 72%);
}

.hero__content {
  position: relative;
  display: grid;
  gap: clamp(1rem, .6rem + 1.2vw, 1.75rem);
  padding-top: calc(var(--topbar-h) + 3rem);
  padding-bottom: calc(clamp(1.5rem, 1rem + 1.5vw, 2.5rem) + var(--tabbar-h));
}

.hero__eyebrow { color: var(--lua); }

.hero__title {
  /* recorta só embaixo (a palavra sobe de trás da linha); acentos como À e Ê ficam livres */
  clip-path: inset(-.6em -.2em 0 -.2em);
  padding-bottom: .02em;
  font-size: calc(var(--wrap) / 5.33);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .8;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.hero__word { display: block; margin-left: -.05em; }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.hero__tagline {
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  font-weight: 340;
  font-stretch: 116%;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--aurora);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linha-forte);
}
.hero__meta dt {
  font-size: var(--t-label);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lilas);
}
.hero__meta dd {
  margin-top: .3rem;
  font-size: clamp(.9375rem, .88rem + .3vw, 1.125rem);
  font-weight: 620;
}

@media (min-width: 900px) {
  .hero__meta { grid-template-columns: 1fr 1fr 1.5fr 1fr; gap: 0; }
  .hero__meta > div + div { padding-left: 1.5rem; border-left: 1px solid var(--linha); }
}

@media (max-width: 899px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* abertura orquestrada */
@keyframes rise { from { transform: translateY(102%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
.hero__word { animation: rise 1.15s var(--ease-out) .12s both; }
.hero__eyebrow { animation: fade-up .8s var(--ease-out) both; }
.hero__row { animation: fade-up .9s var(--ease-out) .5s both; }
.hero__meta { animation: fade-up .9s var(--ease-out) .65s both; }

/* ---------- Convite ---------- */
/* sem overflow: hidden aqui, senão o menu "Salvar na agenda" é cortado;
   os divisores são bordas dos próprios cards */
.facts {
  display: grid;
  border: 1px solid var(--linha);
  border-radius: var(--radius);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.fact + .fact { border-top: 1px solid var(--linha); }
.fact__main {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.fact__sub { color: var(--lilas); max-width: 36ch; }
.fact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
@media (min-width: 900px) {
  .facts { grid-template-columns: 1fr 1.2fr 1fr; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--linha); }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: clamp(1rem, .6rem + 1.2vw, 1.75rem);
}
.countdown span {
  display: block;
  min-width: 1.08em;
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  font-weight: 780;
  font-stretch: 75%;
  line-height: .9;
}
.countdown small {
  display: block;
  margin-top: .45rem;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lilas);
}
.countdown[hidden] { display: none; }

.map {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 6;
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  background: var(--noite-2);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.92);
  pointer-events: none;
}
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(59 29 100 / .35), rgb(59 29 100 / 0) 60%);
  mix-blend-mode: multiply;
}
.map__open {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--lua);
  color: var(--noite);
  font-size: .875rem;
  font-weight: 620;
  text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.map__open:hover { background: var(--aurora); }
@media (max-width: 639px) {
  .map { aspect-ratio: 4 / 3.2; }
}

.info { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.info__title { margin-bottom: 1.25rem; }
.info__grid {
  display: grid;
  border-top: 1px solid var(--linha);
}
.info__item {
  display: grid;
  gap: .4rem;
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--linha);
}
.info__item dt {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 650;
  font-stretch: 110%;
}
.info__item dt .i { color: var(--laranja); width: 20px; height: 20px; }
.info__item dd { color: var(--lilas); padding-left: calc(20px + .65rem); }
@media (min-width: 640px) {
  .info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 1100px) {
  .info__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Cardápio ---------- */
.menu {
  display: grid;
  gap: clamp(2.75rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1rem + 5vw, 6rem);
}
@media (min-width: 900px) {
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.course__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--linha-forte);
}
.course__head h3 {
  font-size: var(--t-h3);
  font-weight: 720;
  font-stretch: 122%;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.course__head p {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--laranja);
  white-space: nowrap;
}
.course__list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--linha);
  color: var(--lua);
}

/* ---------- Drinks ---------- */
.bar {
  display: grid;
  gap: 2.75rem 2rem;
}
@media (min-width: 640px) { .bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bar__col .label {
  padding-bottom: 1rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--linha-forte);
  color: var(--lilas);
}
.bar__col li {
  padding-block: .6rem;
  font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem);
  font-weight: 380;
  font-stretch: 112%;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.bar__col li small {
  display: block;
  margin-top: .3rem;
  font-size: .8125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--lilas);
}
.bar__col--feature .label { color: var(--laranja); border-bottom-color: var(--laranja); }
.bar__col--feature li:first-child { color: var(--aurora); }

.legal {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  font-size: var(--t-small);
  color: var(--lilas);
}

/* ---------- A noite ---------- */
.noite {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--noite);
  color: var(--lua);
  --sky-a: #120A1F;
  --sky-b: #3B1D64;
  --sun: 0;
}

/* céu: acompanha a tela enquanto a seção passa; as cores vêm do horário */
.noite__sky {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 100%);
  pointer-events: none;
}
/* o conteúdo sobe por cima do céu; a margem negativa fica aqui, nunca no sticky,
   senão o céu vaza para fora da seção e cobre o rodapé */
.noite__sky + * { margin-top: -100vh; margin-top: -100svh; }
.noite__sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--sun-d);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sun-glow));
  opacity: var(--sun);
  transform: translate(-50%, calc(78% - var(--sun) * 26%));
  will-change: transform, opacity;
}

.noite__head { padding-top: var(--section); margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }

.noite__grid { position: relative; }

.noite__clock { pointer-events: none; }
.clock {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  font-stretch: 75%;
  line-height: .82;
  letter-spacing: -.02em;
  transition: color .6s var(--ease-out);
}
.clock__d { display: inline-block; width: .53em; text-align: center; }
.clock__sep { margin-inline: .02em; animation: tick 2s steps(1, end) infinite; }
@keyframes tick { 50% { opacity: .25; } }
.clock__now {
  margin-top: 1.25rem;
  font-size: var(--t-label);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aurora);
  transition: color .6s var(--ease-out);
}

.moment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding-block: 2.5rem;
  transition: opacity .6s var(--ease-out), color .6s var(--ease-out);
}
.js .moment { opacity: .36; }
.js .moment.is-active { opacity: 1; }

.moment__time {
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: .04em;
  color: var(--laranja);
}
.moment__title {
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.moment--rito .moment__title {
  font-weight: 300;
  letter-spacing: -.035em;
  text-transform: none;
}
.moment__tag {
  padding: .35rem .75rem;
  border: 1px solid var(--linha-forte);
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lilas);
}
.moment__desc { max-width: 34ch; color: var(--lilas); }

.moment__live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--laranja);
  color: var(--noite);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.moment__live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: tick 1.4s steps(1, end) infinite;
}

.noite__note {
  padding-block: 2rem calc(3rem + var(--tabbar-h));
  font-size: var(--t-small);
  color: var(--lilas);
  transition: color .6s var(--ease-out);
}

/* amanhecer: o texto escurece quando o céu fica laranja */
.noite.is-dawn .clock,
.noite.is-dawn .moment--fim .moment__title,
.noite.is-dawn .moment--fim .moment__time { color: var(--noite); }
.noite.is-dawn .clock__now,
.noite.is-dawn .moment--fim .moment__desc,
.noite.is-dawn .noite__note { color: rgb(18 10 31 / .78); }

@media (min-width: 900px) {
  .noite__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 6rem);
  }
  .noite__clock {
    position: sticky;
    top: calc(50vh - 8.5rem);
    align-self: start;
    padding-top: 12vh;
  }
  .clock { font-size: clamp(8rem, 3rem + 13vw, 17rem); }
  .moment {
    min-height: 64vh;
    justify-content: center;
  }
}

@media (max-width: 899px) {
  .noite__clock {
    position: sticky;
    top: .75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .9rem;
    width: fit-content;
    margin-inline: auto;
    padding: .55rem 1.1rem .55rem .95rem;
    border: 1px solid var(--linha);
    border-radius: 999px;
    background: rgb(18 10 31 / .55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .clock { font-size: 1.75rem; line-height: 1; }
  .clock__now { margin: 0; }
  .noite.is-dawn .noite__clock { background: rgb(255 214 170 / .5); border-color: rgb(18 10 31 / .15); }
  .moment { min-height: 58svh; justify-content: center; }
}

/* ---------- Amanhecer (rodapé) ---------- */
.dawn {
  background:
    radial-gradient(circle calc(var(--sun-d) / 2) at 50% calc(var(--sun-d) * .02), var(--sun-glow)),
    linear-gradient(180deg, var(--laranja) 0%, #F99550 42%, var(--aurora) 100%);
  color: var(--noite);
  padding-top: clamp(4rem, 2rem + 8vw, 9rem);
  padding-bottom: calc(clamp(2rem, 1rem + 3vw, 3.5rem) + var(--tabbar-h) + env(safe-area-inset-bottom));
}
.dawn__title {
  font-size: clamp(3rem, 1.2rem + 8vw, 10rem);
  font-weight: 300;
  font-stretch: 125%;
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.dawn__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.dawn .cal__menu { background: var(--noite); }
.dawn__base {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(4rem, 2rem + 8vw, 8rem);
  padding-top: 2rem;
  border-top: 1px solid rgb(18 10 31 / .22);
}
.dawn__base .brand { justify-self: start; }
.dawn__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
}
.dawn__links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.dawn__links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.dawn__fine { display: grid; gap: .35rem; font-size: .8125rem; color: rgb(18 10 31 / .78); }
.dawn :focus-visible { outline-color: var(--noite); }

@media (min-width: 900px) {
  .dawn__base {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 3rem;
  }
  .dawn__fine { text-align: right; }
}

/* ---------- Barra de seções (celular) ---------- */
.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: .3rem .5rem calc(.3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  background: rgb(18 10 31 / .84);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.tabbar a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .25rem;
  min-height: 54px;
  border-radius: 12px;
  font-size: .6875rem;
  font-weight: 620;
  letter-spacing: .02em;
  color: var(--lilas);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.tabbar .i { width: 22px; height: 22px; stroke-width: 1.6; transition: color .2s var(--ease-out); }
.tabbar a.is-active { color: var(--lua); }
.tabbar a.is-active .i { color: var(--laranja); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Vídeo com som ---------- */
.player {
  width: min(100vw - 2rem, 1280px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--lua);
}
.player::backdrop {
  background: rgb(10 5 18 / .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.player[open] { animation: player-in .45s var(--ease-out); }
@keyframes player-in { from { opacity: 0; transform: scale(.96); } }
.player__frame {
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 7rem);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--linha-forte);
  border-radius: 50%;
  background: rgb(18 10 31 / .6);
  cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.player__close:hover { background: var(--lua); color: var(--noite); border-color: var(--lua); }
.player__close .i { width: 20px; height: 20px; }

/* ---------- Aviso rápido ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: 80;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  background: var(--lua);
  color: var(--noite);
  font-size: .875rem;
  font-weight: 620;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Revelação ao rolar ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .noite__sun { transform: translate(-50%, 52%); }
}
