@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-VariableFont_wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFFAF4;
  --gold: #B78E49;
  --gold-deep: #8F6C32;
  --graphite: #2B2B2B;
  --ink: #3A3632;
  --sand: #EFE4D4;
  --sand-2: #E7D8C4;
  --sand-3: #E9DCCB;
  --sand-4: #F1E6D6;
  --sand-5: #EADCC8;
  --night: #14161C;
  --line: rgba(183, 142, 73, 0.4);
  --playfair: "Playfair Display", "Times New Roman", serif;
  --poppins: "Poppins", "Helvetica Neue", sans-serif;
  --dawn: 0;
  --sky: #14161C;
  --fg: #FFFAF4;
  --muted: #C8C2BA;
  --cta-h: 84px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--fg);
  font-family: var(--poppins);
  font-weight: 200;
  line-height: 1.6;
}

body.is-day {
  background: var(--cream);
  color: var(--graphite);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--playfair);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}
button, textarea, input { font: inherit; }

.wrap {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-flush { width: 100%; margin: 0; padding: 0; }
.wrap-pad { width: min(100%, 640px); margin: 0 auto; padding: 0 28px; }

.kicker {
  margin: 0 0 16px;
  font-family: var(--poppins);
  font-weight: 400;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
body:not(.is-day) .hero-kicker { color: #D4B57A; }

/* Sky, horizon, star — fixed atmosphere */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--sky);
  pointer-events: none;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28), transparent 50%);
  opacity: calc(1 - var(--dawn));
  pointer-events: none;
}

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 100px;
  width: 100%;
  height: 160px;
  z-index: 1;
  color: var(--gold);
  opacity: 0.18;
  pointer-events: none;
}
body.is-day .horizon {
  opacity: 0.9;
}

.estrela {
  position: fixed;
  left: 50%;
  top: 46%;
  width: 44px;
  height: auto;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

/* The star sits on the arc by day; at night it is the first light in the sky.
   JS also tweens these. CSS is-day is the end state. */

/* Fixed CTA */

.cta-fixo {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  background: var(--graphite);
  color: var(--cream);
  border: 1px solid var(--gold);
  text-decoration: none;
  font-family: var(--poppins);
  font-weight: 300;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  border-radius: 1px;
}
body.hide-cta .cta-fixo { display: none; }
@media (min-width: 900px) {
  .cta-fixo { display: none; }
}

/* Hero */

.hero {
  position: relative;
  z-index: 3;
  height: 240vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 28px calc(var(--cta-h) + 28px);
  overflow: hidden;
}

.hero-top {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-hero {
  width: 128px;
  margin: 0 auto 12px;
  opacity: 0;
  transform: translateY(8px);
}
.hero-kicker {
  text-align: center;
  margin: 0;
  opacity: 0;
}
body.is-day .logo-hero,
body.is-day .hero-kicker {
  opacity: 1;
  transform: none;
}

.hero-copy { margin-top: 8px; padding-bottom: 0; }

.stanza {
  margin: 0 0 20px;
  font-family: var(--playfair);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.stanza-b {
  font-style: italic;
  font-size: 28px;
  opacity: 0;
  transform: translateY(12px);
}
.stanza-c {
  font-size: 26px;
  opacity: 0;
  transform: translateY(12px);
}
.hero-lead {
  margin: 8px 0 0;
  max-width: 28ch;
  font-size: 15px;
  font-weight: 200;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
}

body.is-day .stanza-b,
body.is-day .stanza-c,
body.is-day .hero-lead {
  opacity: 1;
  transform: none;
}

/* Revealed mid-dawn via JS classes */
.stanza-b.is-in,
.stanza-c.is-in,
.hero-lead.is-in,
.logo-hero.is-in,
.hero-kicker.is-in {
  opacity: 1;
  transform: none;
}

/* Main sits above the fixed sky */

main {
  position: relative;
  z-index: 3;
  background: var(--cream);
  color: var(--graphite);
  padding-bottom: calc(24px + var(--cta-h));
}

.section {
  padding: 88px 0;
}

.section h2 {
  font-size: 32px;
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--graphite);
}

.section-intro {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 200;
  color: var(--ink);
  max-width: 36ch;
}

/* Video / story */

.section-video { padding-top: 72px; }

.story {
  margin: 40px 0 0;
  display: flex;
  justify-content: center;
}

.story-frame {
  position: relative;
  width: 230px;
  aspect-ratio: 9 / 16;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 64px;
  height: 64px;
  color: var(--gold-deep);
}

.story-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #6F655A;
}

/* Identification */

.ident-hint {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 300;
  color: #7A6F62;
}

.ident-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ident-card {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(183, 142, 73, 0.45);
  border-radius: 1px;
  padding: 18px 18px 18px 52px;
  font-family: var(--playfair);
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  color: var(--graphite);
  position: relative;
  cursor: pointer;
}

.ident-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.ident-card.is-on {
  background: #F4EBDD;
  border-color: var(--gold);
}

.ident-card.is-on::before {
  background: var(--gold);
  box-shadow: inset 0 0 0 3px #F4EBDD;
}

/* Specialists carousel */

.section-time { padding-right: 0; padding-left: 0; }

.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 28px;
  padding: 8px 0 12px 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.poster {
  flex: 0 0 calc(100vw - 58px);
  scroll-snap-align: start;
  min-width: 0;
}

.poster-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--sand);
  margin: 0;
}
.poster:nth-child(2) .poster-photo { background: var(--sand-2); }
.poster:nth-child(3) .poster-photo { background: var(--sand-3); }
.poster:nth-child(4) .poster-photo { background: var(--sand-4); }
.poster:nth-child(5) .poster-photo { background: var(--sand-5); }

.poster-num {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  font-family: var(--poppins);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  z-index: 1;
}

.poster-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}

.poster-cap {
  margin: 0 0 8px;
  font-family: var(--poppins);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6F655A;
}

.poster h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--graphite);
}

.poster-role {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.handle {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--gold-deep);
}

.poster-note {
  margin: 0;
  font-size: 13px;
  font-weight: 200;
  color: var(--ink);
  line-height: 1.45;
}

/* Jornada */

.section-jornada .wrap { position: relative; }

.countdown {
  margin: 36px 0 56px;
  text-align: center;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown-label,
.countdown-until {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A6F62;
}

.countdown-nums {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 10px;
}

.countdown-nums .num {
  display: block;
  font-family: var(--playfair);
  font-weight: 400;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--graphite);
}

.countdown-nums .unit {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.countdown-sep {
  font-family: var(--playfair);
  font-size: 40px;
  color: var(--gold);
  padding: 0 4px;
}

.jornada-lista {
  list-style: none;
  margin: 0;
  padding: 0 0 0 52px;
  position: relative;
  z-index: 1;
}

.jornada-lista li {
  margin: 0 0 36px;
  padding: 0;
  transition: none;
}
.jornada-lista li:nth-child(1) { margin-left: 0; }
.jornada-lista li:nth-child(2) { margin-left: 12px; }
.jornada-lista li:nth-child(3) { margin-left: 28px; }
.jornada-lista li:nth-child(4) { margin-left: 14px; }
.jornada-lista li:nth-child(5) { margin-left: 0; }
.jornada-lista li:last-child { margin-bottom: 0; }

.j-when {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.j-what {
  display: block;
  font-family: var(--playfair);
  font-size: 22px;
  line-height: 1.3;
  color: var(--graphite);
}

.jornada-arco {
  position: absolute;
  left: 22px;
  top: auto;
  width: 48px;
  /* JS/CSS places it against the list; fallback: */
  height: 420px;
  bottom: 8px;
  color: var(--gold);
  pointer-events: none;
  z-index: 0;
}

.jornada-lista li {
  position: relative;
}
.jornada-lista li::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 2;
}

/* Form */

.progress {
  height: 2px;
  background: #E8DCC8;
  margin: 0 0 28px;
  border-radius: 1px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.section-form h2 { margin-bottom: 28px; }

.field { margin: 0 0 28px; }
.field label {
  display: block;
  margin: 0 0 12px;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

textarea {
  width: 100%;
  appearance: none;
  background: #fff;
  border: 1px solid #D9CCB6;
  border-radius: 1px;
  padding: 16px;
  font-family: var(--poppins);
  font-weight: 300;
  font-size: 16px;
  color: var(--graphite);
  line-height: 1.55;
  min-height: 200px;
  resize: vertical;
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 36px;
  background: var(--graphite);
  color: var(--cream);
  border: 1px solid var(--graphite);
  border-radius: 1px;
  font-family: var(--poppins);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-continuar {
  margin-top: 8px;
  width: 100%;
}

.form-note {
  margin: 20px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: #7A6F62;
  line-height: 1.5;
}

/* Accordion */

.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion details:first-child { border-top: 1px solid var(--line); }

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-family: var(--playfair);
  font-size: 20px;
  line-height: 1.35;
  color: var(--graphite);
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-right: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}
.accordion details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.accordion details p,
.accordion .regras-lista {
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
  font-weight: 200;
  color: var(--ink);
  line-height: 1.6;
}
.regras-lista { list-style: none; }
.regras-lista li { margin: 0 0 12px; }

/* Closing */

.section-close {
  padding: 96px 0 calc(48px + var(--cta-h));
  text-align: center;
}

.close-lines {
  margin: 0 0 48px;
  font-family: var(--playfair);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--graphite);
}

.logo-close {
  width: 148px;
  margin: 0 auto 40px;
}

.footer-note {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 200;
  color: var(--ink);
}

.footer-links {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
}
.footer-links a {
  color: var(--gold-deep);
  text-decoration: none;
}

/* Appear on scroll (disabled when static / reduced motion) */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}
body.is-static .reveal,
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stanza-b, .stanza-c, .hero-lead, .logo-hero, .hero-kicker {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Desktop */

@media (min-width: 900px) {
  .hero { height: 180vh; }
  .hero-sticky {
    padding: 56px 80px 56px;
    max-width: 1320px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
  }
  .hero-top {
    align-items: flex-start;
    min-height: 0;
    position: absolute;
    top: 48px;
    left: 80px;
  }
  .logo-hero { margin: 0 0 14px; width: 148px; }
  .hero-kicker { text-align: left; }
  .hero-copy { margin-top: 0; padding-bottom: 40px; }
  .stanza { font-size: 58px; max-width: 16ch; }
  .stanza-b { font-size: 48px; }
  .stanza-c { font-size: 40px; }
  .hero-lead { font-size: 18px; max-width: 34ch; }
  .estrela { width: 48px; }
  .horizon { height: 200px; bottom: 48px; }

  .section { padding: 120px 0; }
  .section h2 { font-size: 48px; }
  .wrap, .wrap-pad { width: min(100%, 1080px); }

  .story-frame { width: 280px; }

  .ident-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .carousel { padding-left: calc((100% - 1080px) / 2 + 28px); padding-right: 80px; gap: 24px; }
  .poster { flex-basis: 32%; }

  .countdown-nums .num { font-size: 88px; }
  .j-what { font-size: 28px; }
  .close-lines { font-size: 64px; }
  .section-close { padding: 140px 0 160px; }

  .btn-continuar { width: auto; min-width: 240px; }
  .footer-links { flex-direction: row; justify-content: center; gap: 28px; }
}

.btn-hero-desk {
  display: none;
}

body.is-fullpage {
  position: relative;
  background: var(--cream);
}
body.is-fullpage .sky {
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
}
body.is-fullpage .hero {
  height: auto;
}
body.is-fullpage .hero-sticky {
  position: relative;
  height: auto;
  min-height: 100vh;
}
body.is-fullpage .horizon,
body.is-fullpage .estrela {
  position: absolute;
}

@media (min-width: 900px) {
  .btn-hero-desk {
    display: inline-flex;
    margin-top: 40px;
    opacity: 0;
    pointer-events: none;
  }
  .btn-hero-desk.is-in,
  body.is-day .btn-hero-desk {
    opacity: 1;
    pointer-events: auto;
  }
}
