@font-face {font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/montserrat-latin-400-normal.woff2) format("woff2");}
@font-face {font-family:Montserrat;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/montserrat-latin-500-normal.woff2) format("woff2");}
@font-face {font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/montserrat-latin-700-normal.woff2) format("woff2");}
:root {
  --sand: #D8D3C7;
  --ink: #2C3638;
  --sand-light: #E6E2D9;
  --ink-soft: #4A5254;
  --white: #FFFFFF;
  --success: #46523A;
  --error: #8A3B2A;
  --line: rgb(44 54 56 / 25%);
  --button-hover: #1E2628;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 24px;
  --section-space: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 16px / 1.6 Montserrat, sans-serif;
}
p, h1, h2, h3, ul { margin: 0; }
img { display: block; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  display: grid;
  position: relative;
  min-height: 100svh;
}
.hero-art {
  position: relative;
  height: 240px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
}
.hero-art-motion { position: absolute; inset: 0; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 var(--gutter) 48px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.project-logo {
  display: block;
  flex: none;
  width: min(100%, 184px);
  aspect-ratio: 640 / 326;
  margin-top: 10px;
  background-color: var(--ink);
  mask: url("/braz-tower-logo.webp") center / contain no-repeat;
}
.short-rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 16px auto;
  background: var(--ink);
  transform-origin: center;
}
h1 {
  font-size: clamp(27px, 9.45vw, 34px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.title-line { display: block; overflow: hidden; }
.title-line > span { display: block; }
.hero-host, .hero-location {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-host { margin-top: 16px; }
.hero-host strong { font-size: 14px; }
.hero-location { margin: 16px 0; max-width: 420px; }
.date-block {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 24px auto 0;
  padding: 12px 0 16px;
  text-align: center;
}
.date-block::before, .date-block::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: var(--ink);
}
.date-block::before { top: 0; }
.date-block::after { bottom: 0; }
.date-day { display: block; margin-bottom: 4px; }
.date-value {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: clamp(38px, 12.22vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}
.date-divider { width: 1px; height: .73em; background: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .2em;
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease);
}
.button:hover { background: var(--button-hover); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .65; cursor: wait; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--sand); }

.page-content { width: min(calc(100% - 2 * var(--gutter)), 1120px); margin-inline: auto; }
.section {
  border-top: 1px solid var(--line);
  padding-block: var(--section-space);
}
.section-intro { width: min(100%, 640px); margin-inline: auto; text-align: center; }
.section-intro > p { margin-top: 16px; }
.section-title {
  overflow: hidden;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-title > span { display: block; }
.benefits {
  display: grid;
  width: min(100%, 640px);
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}
.benefits li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 16px 0;
}
.benefits li::before, .benefits li:last-child::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.benefits li::before { top: 0; }
.benefits li:last-child::after { bottom: 0; }
.benefits h3, .benefit-number {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.benefits p { margin-top: 4px; color: var(--ink-soft); }
.speaker-layout {
  display: grid;
  align-items: start;
  gap: 36px;
  width: min(100%, 960px);
  margin-inline: auto;
}
.speaker-copy { min-width: 0; text-align: left; }
.speaker-title {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.025em;
  overflow: visible;
  scroll-margin-top: 48px;
}
.speaker-section .short-rule { width: 64px; margin: 24px 0 28px; }
.speaker-section .speaker-name {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.speaker-description { max-width: 36ch; margin-top: 24px; color: var(--ink-soft); }
.speaker-detail { margin-top: 28px; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.speaker-portrait {
  width: min(100%, 320px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--sand-light);
  box-shadow: 8px 8px 0 rgb(44 54 56 / 6%);
}
.speaker-photo {
  width: 100%;
  height: auto;
}
.venue-map {
  display: block;
  width: 100%;
  height: clamp(260px, 47vw, 360px);
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--sand-light);
}
.section-intro > .venue-address { margin: 24px 0; }
.venue-address strong { font-weight: 700; }

.rsvp-section { scroll-margin-top: 16px; }
.rsvp-form, .rsvp-result { width: min(100%, 640px); margin: 32px auto 0; }
.form-fields { display: grid; gap: 16px; }
.field { min-width: 0; }
.field label, .field-label, .form-note {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.field label { margin-bottom: 8px; color: var(--ink); }
.field input {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--sand-light);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 16px;
}
.field input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--error); }
.field-error, .form-error { margin-top: 4px; color: var(--error); font-size: 14px; }
.form-error { margin-top: 16px; }
.honeypot { display: none; }
.form-submit { margin-top: 24px; }
.form-note { margin-top: 16px; letter-spacing: .12em; text-align: center; }
.rsvp-form.is-leaving { opacity: 0; transition: opacity 200ms var(--ease); }
.rsvp-result { position: relative; text-align: center; padding-top: 24px; }
.rsvp-result::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--ink);
}
.rsvp-result h3 {
  color: var(--success);
  font-size: clamp(18px, 4.8vw, 26px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rsvp-result p { margin-top: 8px; }

.signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  text-align: center;
}
.signature-logo {
  width: min(100%, 184px);
  height: clamp(44px, 8vw, 68px);
  margin: 12px auto 0;
  object-fit: contain;
  object-position: center;
}
.sticky-rsvp {
  position: fixed;
  inset: auto 0 0;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--sand);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 300ms var(--ease), visibility 0s 300ms;
}
.sticky-rsvp.is-visible {
  visibility: visible;
  transform: translateY(0);
  transition: transform 300ms var(--ease);
}
body.has-sticky-rsvp { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

.privacy-page {
  width: min(calc(100% - 2 * var(--gutter)), 1120px);
  margin: 0 auto;
  padding-block: 48px;
}
.privacy-page h1 { font-size: clamp(24px, 5vw, 42px); overflow-wrap: anywhere; }
.privacy-page p { margin: 16px 0; }
.privacy-page .button { width: auto; }
.fallback-page .form-fields { margin-top: 24px; }
.fallback-page .button { margin-top: 16px; }

@media (min-width: 768px) {
  :root { --gutter: 48px; }
  body.has-sticky-rsvp { padding-bottom: 0; }
  .hero {
    min-height: min(760px, max(630px, 100svh));
    grid-template-columns: 40% 60%;
  }
  .hero-art {
    height: 100%;
    mask-image: linear-gradient(to right, #000 53%, transparent 100%);
  }
  .hero-copy { padding: 48px 40px 48px 12px; }
  .project-logo { width: min(100%, 236px); }
  h1 { font-size: clamp(36px, 5.6vw, 62px); }
  .date-value { font-size: clamp(48px, 6vw, 66px); gap: 24px; }
  .button { width: auto; min-width: 280px; }
  .form-submit { width: 100%; }
  .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .field label, .field-label, .form-note { font-size: 12px; }
  .signatures { display: flex; gap: 48px; padding-bottom: 64px; }
  .signatures > div { min-width: 200px; }
  .sticky-rsvp { display: none; }
  .speaker-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); }
  .speaker-copy { padding-top: 24px; }
  .speaker-section .short-rule { margin-block: 28px 36px; }
  .speaker-portrait { width: 100%; max-width: 380px; }
  .logistics-section:has(.venue-map) {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
  }
  .logistics-section:has(.venue-map) .section-intro { text-align: left; }
  .logistics-section:has(.venue-map) .date-value {
    justify-content: flex-start;
    gap: 16px;
    font-size: clamp(38px, 4.4vw, 58px);
  }
  .logistics-section:has(.venue-map) .date-block { text-align: left; margin-inline: 0; }
  .logistics-section:has(.venue-map) .button { min-width: 0; }
  .venue-map { margin-top: 0; }
}

@media (min-width: 1100px) {
  :root { --gutter: 64px; --section-space: 96px; }
  body { font-size: 18px; }
  .hero-copy { padding-inline: 24px 64px; }
  .project-logo { width: 260px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: 64px; }
  .hero-host strong { font-size: 16px; }
  .hero-location { font-size: 12px; }
  .date-value { font-size: 72px; }
  .button { font-size: 15px; }
  .section-title { font-size: 32px; }
  .speaker-title { font-size: 54px; }
}

@media (prefers-reduced-motion: no-preference) {
  .has-motion .hero-art img { animation: art-in 1200ms var(--ease) both; }
  .has-motion .invite-label { animation: label-in 500ms var(--ease) 100ms both; }
  .has-motion .project-logo { animation: logo-in 1200ms var(--ease) 250ms both; }
  .has-motion .hero .title-line > span { animation: title-in 600ms var(--ease) 500ms both; }
  .has-motion .hero .title-line:nth-of-type(2) > span { animation-delay: 580ms; }
  .has-motion .hero-cta:not(:focus) { animation: fade-in 400ms var(--ease) 600ms both; }
  .has-motion .hero .short-rule { animation: line-in 400ms var(--ease) 700ms both; }
  .has-motion .hero-host { animation: fade-in 400ms var(--ease) 800ms both; }
  .has-motion .date-block--hero::before, .has-motion .date-block--hero::after {
    animation: line-in 500ms var(--ease) 800ms both;
  }
  .has-motion .date-block--hero .date-value { animation: date-in 400ms var(--ease) 950ms both; }
  .has-motion [data-reveal] {
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  }
  .has-motion [data-reveal]:not(.is-visible):not(:focus-within):not(:target) {
    opacity: 0;
    transform: translateY(16px);
  }
  .has-motion .is-visible > .section-intro .section-title > span { animation: title-in 400ms var(--ease) both; }
  .has-motion .benefits li.is-visible::before, .has-motion .benefits li.is-visible::after {
    animation: line-in 400ms var(--ease) both;
  }
  .has-motion .rsvp-result.is-visible::before { animation: line-in 500ms var(--ease) both; }
  .has-motion .rsvp-result.is-visible h3 { animation: result-in 500ms var(--ease) both; }
  .has-motion .rsvp-result.is-visible p { animation: fade-in 400ms var(--ease) 300ms both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

@keyframes art-in { from { opacity: 0; transform: scale(1.04); } }
@keyframes logo-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes label-in { from { opacity: 0; letter-spacing: .5em; } }
@keyframes title-in { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes date-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes line-in { from { transform: scaleX(0); } }
@keyframes result-in { from { opacity: 0; letter-spacing: .17em; } }

/* Formulário editorial: mais contraste, espaço e uma hierarquia clara. */
.rsvp-section { display: grid; gap: 40px; align-items: start; }
.rsvp-section .section-intro { text-align: left; }
.rsvp-section .section-title { margin-top: 20px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.025em; line-height: 1.12; }
.rsvp-section .section-intro > p:not(.eyebrow) { color: var(--ink-soft); max-width: 420px; }
.rsvp-event { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.rsvp-event p { margin-top: 4px; font-size: 14px; }
.rsvp-form { margin: 0; padding: 28px 20px; background: #eeebe4; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.form-heading { font-weight: 700; letter-spacing: .15em; }
.form-description { margin: 8px 0 28px; color: var(--ink-soft); font-size: 14px; }
.field input { background: #f7f5f0; border-color: #9b9e97; min-height: 58px; transition: border-color .2s, background-color .2s; }
.field input::placeholder { color: #6b716e; font-size: 14px; }
.field input:hover { border-color: var(--ink); }
.field input:focus { background: white; }
.form-note { text-transform: none; letter-spacing: 0; line-height: 1.7; font-size: 12px; }
.form-note a { text-underline-offset: 3px; }
.form-submit { letter-spacing: .1em; min-width: 0; }
.site-footer { background: var(--ink); color: var(--sand); padding: 40px var(--gutter); text-align: center; }
.site-footer > p + p { font-size: 14px; margin-top: 12px; }
.site-footer a { display: inline-block; font-size: 12px; margin-top: 20px; padding: 12px; }
.site-footer .site-credit { display: block; margin-top: 12px; font-size: 12px; line-height: 1.7; }
.site-footer :focus-visible { outline-color: var(--sand); }
@media(min-width: 900px) {
 .rsvp-section { grid-template-columns: .85fr 1.15fr; gap: 64px; }
 .rsvp-form { padding: 36px; }
 .rsvp-section .form-fields { grid-template-columns: 1fr; gap: 20px; }
 .rsvp-result { margin-top: 0; }
}
@media(min-width: 1200px) { .rsvp-section .form-fields { grid-template-columns: 1fr 1fr; } }
