:root {
  --navy: #030c16;
  --white: #f6f1e7;
  --sand: #e9d8bd;
  --gold: #c9a96a;
  --gold-l: #ecd6a4;
  --aqua: #7fd6d9;
  --glass: rgba(6, 22, 36, .55);
  --line: rgba(236, 214, 164, .25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--navy); }

/* ---------- camadas de fundo ---------- */
#ocean { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 45%, transparent 40%, rgba(2, 8, 15, .7) 100%),
    linear-gradient(180deg, rgba(2, 8, 15, .45) 0%, transparent 25%, transparent 75%, rgba(2, 8, 15, .6) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); }
}

/* ---------- abertura ---------- */
.intro { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.intro::before, .intro::after {
  content: ""; position: absolute; left: 0; right: 0; height: 50.5%; background: var(--navy);
  animation: curtain 1.4s var(--ease) 1.1s forwards;
}
.intro::before { top: 0; }
.intro::after { bottom: 0; animation-name: curtainDown; }
.intro i {
  position: absolute; top: 50%; left: 50%; height: 1px; width: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-l), transparent);
  transform: translateX(-50%);
  animation: horizon 1.1s var(--ease) .1s forwards, fadeOut .6s ease 1.6s forwards;
}
@keyframes horizon { to { width: 100%; } }
@keyframes curtain { to { transform: translateY(-100%); } }
@keyframes curtainDown { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- layout ---------- */
.stage {
  position: relative; z-index: 2;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3.4vw, 44px);
}
.top, .bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark svg { width: 38px; height: 38px; }
.mark span, .year {
  font-size: 10px; letter-spacing: .45em; text-transform: uppercase; color: var(--gold-l); opacity: .85;
}
.year { display: flex; align-items: center; gap: 14px; }
.year::before { content: ""; width: 44px; height: 1px; background: var(--line); }

.reveal { opacity: 0; transform: translateY(14px); animation: rise 1.4s var(--ease) forwards; animation-delay: calc(1.9s + var(--d, 0s)); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  place-self: center; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .9s var(--ease);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .6em; text-transform: uppercase; color: var(--gold-l);
  padding-left: .6em;
}
.eyebrow b { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-l); box-shadow: 0 0 12px var(--gold-l); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.6); } }

.brand {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(54px, 12.5vw, 196px);
  line-height: .95; letter-spacing: .14em; margin: clamp(14px, 2.4vh, 26px) 0 0 .14em;
  display: flex;
}
.brand span {
  display: inline-block;
  background: linear-gradient(100deg, #f6f1e7 20%, #ecd6a4 40%, #fff8ea 50%, #ecd6a4 60%, #f6f1e7 80%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; filter: blur(14px); transform: translateY(40%) scale(1.04);
  animation: letter 1.6s var(--ease) forwards, sheen 7s linear infinite;
  animation-delay: calc(1.6s + var(--i) * .09s), calc(3.5s + var(--i) * .12s);
}
@keyframes letter { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -200% 0; } }

.divider { position: relative; width: min(340px, 60vw); height: 1px; margin: clamp(16px, 3vh, 30px) 0; }
.divider::before {
  content: ""; position: absolute; inset: 0; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: grow 1.8s var(--ease) 2.5s forwards;
}
.divider::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border: 1px solid var(--gold-l); transform: rotate(45deg) scale(0);
  animation: pop .8s var(--ease) 3.2s forwards;
  background: var(--navy);
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes pop { to { transform: rotate(45deg) scale(1); } }

.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(18px, 2vw, 26px); line-height: 1.35; max-width: 32ch; color: var(--sand);
}
.tagline em { font-style: normal; color: var(--gold-l); }

/* ---------- botão ---------- */
.cta {
  position: relative; margin-top: clamp(24px, 4.5vh, 44px);
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 20px 18px 34px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6, 22, 36, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--white); font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: border-color .6s var(--ease), color .6s var(--ease);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, var(--gold), var(--gold-l));
  transform: translateX(-101%); transition: transform .7s var(--ease);
}
.cta:hover, .cta:focus-visible { border-color: var(--gold-l); color: var(--navy); outline: none; }
.cta:hover::before, .cta:focus-visible::before { transform: none; }
.cta .arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: transform .7s var(--ease), border-color .6s;
}
.cta:hover .arrow { transform: rotate(-45deg); border-color: rgba(3, 12, 22, .3); }
.cta .arrow svg { width: 14px; height: 14px; }
.cta .ring {
  position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--gold-l); pointer-events: none;
  animation: ring 3.2s var(--ease) 4s infinite; opacity: 0;
}
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25, 1.6); } }

/* ---------- rodapé ---------- */
.place { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.8; }
.place svg { width: 18px; height: 18px; flex: none; color: var(--gold-l); }
.place small { display: block; font-size: 10px; letter-spacing: .3em; opacity: .55; }

.badge { position: relative; width: 112px; height: 112px; flex: none; }
.badge svg.txt { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font: 500 8.6px var(--sans); letter-spacing: .2em; fill: var(--gold-l); text-transform: uppercase; }
.badge .core {
  position: absolute; inset: 31%; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px; color: var(--gold-l);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- painel do formulário ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 20; background: rgba(2, 8, 15, .5);
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.panel {
  position: fixed; top: 0; right: 0; z-index: 21;
  width: min(480px, 100%); height: 100%;
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.2); -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform 1s var(--ease);
  overflow-y: auto;
}
body.open .scrim { opacity: 1; visibility: visible; }
body.open .panel { transform: none; }
body.open .hero { opacity: .15; filter: blur(6px); transition: opacity .8s, filter .8s, transform .9s var(--ease); }

.panel > * { opacity: 0; transform: translateX(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
body.open .panel > * { opacity: 1; transform: none; }
body.open .panel > *:nth-child(2) { transition-delay: .25s; }
body.open .panel > *:nth-child(3) { transition-delay: .32s; }
body.open .panel > *:nth-child(4) { transition-delay: .4s; }
body.open .panel > *:nth-child(5) { transition-delay: .48s; }

.close {
  position: absolute; top: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center;
  transition: transform .6s var(--ease), border-color .4s;
}
.close:hover { transform: rotate(90deg); border-color: var(--gold-l); }
.close svg { width: 14px; height: 14px; }

.panel h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02;
  margin: 18px 0 10px;
}
.panel h2 em { color: var(--gold-l); }
.panel .lead { font-size: 14px; line-height: 1.7; color: var(--sand); opacity: .8; margin-bottom: 34px; }

.field { position: relative; margin-bottom: 26px; }
.field input {
  width: 100%; padding: 22px 0 10px; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); color: var(--white);
  font: 400 16px var(--sans); outline: none; border-radius: 0;
}
.field label {
  position: absolute; left: 0; top: 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(246, 241, 231, .55); pointer-events: none; transition: all .45s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label {
  top: 0; font-size: 10px; letter-spacing: .3em; color: var(--gold-l);
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-l), var(--aqua));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.field:focus-within::after { transform: none; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); transition: background-color 9999s; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit { width: 100%; justify-content: space-between; margin-top: 12px; }
.submit[disabled] { pointer-events: none; opacity: .7; }
.submit.loading .arrow svg { animation: spin 1s linear infinite; }

.note { margin-top: 22px; font-size: 11px; line-height: 1.6; opacity: .5; }
.alert {
  margin-bottom: 22px; padding: 12px 16px; border-left: 2px solid #e8a48a;
  background: rgba(232, 164, 138, .08); font-size: 13px; color: #f3cbbb;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(236, 214, 164, .55);
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s;
  mix-blend-mode: screen;
}
.cursor.hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(236, 214, 164, .08); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- página de aguarde ---------- */
.wait { gap: 0; }
.seal { width: clamp(96px, 14vw, 130px); height: clamp(96px, 14vw, 130px); margin-bottom: clamp(22px, 4vh, 36px); }
.seal circle, .seal path { fill: none; stroke: var(--gold-l); stroke-linecap: round; }
.seal .c1 { stroke-width: 1; stroke-dasharray: 380; stroke-dashoffset: 380; animation: draw 2.2s var(--ease) 1.8s forwards; }
.seal .c2 { stroke-width: .6; opacity: .35; animation: breathe 4s ease-in-out infinite; transform-origin: center; }
.seal path { stroke-width: 1.4; stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 1.8s var(--ease) 2.8s forwards, float 5s ease-in-out 4.6s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .1; } }
@keyframes float { 50% { transform: translateY(-3px); } }

.wait .brand { font-size: clamp(58px, 11vw, 168px); letter-spacing: .08em; margin-left: .08em; }
.wait .tagline { max-width: 30ch; }
.back {
  margin-top: clamp(26px, 5vh, 46px); font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  text-decoration: none; opacity: .6; display: inline-flex; gap: 12px; align-items: center; transition: opacity .4s, gap .5s var(--ease);
}
.back:hover { opacity: 1; gap: 18px; }

/* ---------- responsivo ---------- */
@media (max-width: 700px) {
  .mark span { display: none; }
  .year::before { width: 24px; }
  .bottom { align-items: flex-end; }
  .place { font-size: 9.5px; letter-spacing: .16em; }
  .place small { letter-spacing: .2em; }
  .badge { width: 84px; height: 84px; }
  .badge .core { font-size: 13px; }
  .cta { padding: 16px 16px 16px 26px; letter-spacing: .26em; }
  .brand { letter-spacing: .08em; margin-left: .08em; }
}
@media (max-height: 560px) and (min-width: 701px) {
  .badge { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .intro { display: none; }
}

/* contraste do texto sobre o brilho do sol */
.tagline, .back, .eyebrow { position: relative; text-shadow: 0 0 2px rgba(2, 8, 15, .55), 0 2px 22px rgba(2, 8, 15, .95); }
.tagline::before {
  content: ""; position: absolute; inset: -30% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(3, 12, 22, .62), transparent);
}
