:root {
  color-scheme: dark;
  --ink: #17110f;
  --cream: #f7f1e8;
  --muted: #c6b8a9;
  --cyan: #0bb7e8;
  --gold: #dca25b;
  --hero-progress: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero-scroll {
  position: relative;
  height: 184svh;
}

.hero-scene {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 76%, rgba(108, 65, 31, .28), transparent 34%),
    linear-gradient(180deg, #17110f 0%, #211613 56%, #0f0c0b 100%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28svh;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(7, 6, 6, .9));
  pointer-events: none;
}

.ambient {
  position: absolute;
  width: 72vw;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
  opacity: calc(.15 + var(--hero-progress) * .14);
  z-index: -1;
}

.ambient-one {
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(211, 139, 56, .45);
}

.ambient-two {
  top: 30%;
  left: -32%;
  background: rgba(11, 183, 232, .22);
}

.hero-header {
  position: absolute;
  inset: max(20px, env(safe-area-inset-top)) 22px auto;
  display: grid;
  justify-items: center;
  gap: 15px;
  z-index: 4;
}

.nextgen-logo {
  display: block;
  width: min(168px, 48vw);
  height: auto;
}

.event-kicker,
.eyebrow,
.event-meta,
.scroll-cue {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.3;
}

.event-kicker { color: var(--cyan); }

.hero-copy {
  position: absolute;
  top: 11svh;
  left: 22px;
  right: 22px;
  text-align: center;
  z-index: 3;
  transform: translateY(calc(var(--hero-progress) * -24px));
  opacity: calc(1 - var(--hero-progress) * .68);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 390px;
  margin: 0 auto;
  font-size: clamp(38px, 11.2vw, 54px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .93;
}

.headline-lead,
.headline-promise { display: block; }

.headline-lead { color: var(--cream); }

.headline-promise {
  margin-top: 7px;
  color: #fff;
  font-size: .84em;
  letter-spacing: -.06em;
}

.hero-subtitle {
  max-width: 270px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.house-wrap {
  position: absolute;
  right: -2%;
  bottom: 14svh;
  left: -2%;
  height: 56svh;
  display: grid;
  place-items: end center;
  z-index: 2;
  transform: translate3d(0, calc(20px - var(--hero-progress) * 20px), 0) scale(.96);
  transform-origin: center bottom;
  will-change: transform;
}

.house-aura {
  position: absolute;
  width: 84%;
  height: 65%;
  bottom: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(234, 161, 78, .36), transparent 68%);
  filter: blur(20px);
  opacity: calc(.04 + var(--hero-progress) * .58);
  transform: scale(calc(.9 + var(--hero-progress) * .1));
}

.house-stack {
  position: relative;
  width: min(112vw, 480px);
  max-height: 64svh;
  aspect-ratio: 1152 / 1360;
}

.house {
  position: relative;
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .36));
}

.house--empty { z-index: 1; }

.house--inhabited {
  z-index: 2;
  opacity: calc(var(--hero-progress) * 1.35);
  transition: opacity .12s linear;
}

.light-sweep {
  position: absolute;
  right: 10%;
  bottom: 24%;
  left: 10%;
  height: 18%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 148, .24), transparent);
  filter: blur(18px);
  opacity: calc(var(--hero-progress) * .82);
  transform: translateX(calc((1 - var(--hero-progress)) * -35%));
  mix-blend-mode: screen;
}

.hero-footer {
  position: absolute;
  right: 22px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 22px;
  display: grid;
  justify-items: center;
  gap: 15px;
  z-index: 5;
}

.event-meta {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 224px;
  padding: 10px 24px 9px;
  border-top: 1px solid rgba(220, 162, 91, .72);
  border-bottom: 1px solid rgba(220, 162, 91, .72);
  border-radius: 12px;
  background: rgba(23, 17, 15, .38);
  box-shadow: 0 0 28px rgba(220, 162, 91, .14);
}

.event-date {
  color: var(--cream);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.1;
}

.event-time {
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

.event-location {
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 218px;
  min-height: 56px;
  padding: 0 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 999px;
  background: linear-gradient(110deg, #efba70, #ce8d45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 10px 36px rgba(211, 139, 56, .3),
    0 0 30px rgba(255, 255, 255, .12);
  color: #21150e;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transform: translateY(calc((1 - var(--hero-progress)) * 8px));
  transition: transform .25s ease, filter .25s ease;
  animation: cta-pulse 3.8s ease-in-out infinite;
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -42%;
  z-index: -1;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
  transform: skewX(-18deg);
  animation: cta-reflection 4.6s ease-in-out infinite;
}

.hero-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 25px rgba(255, 255, 255, .22);
  opacity: .45;
  animation: cta-halo 3.8s ease-in-out infinite;
}

.hero-cta > * { position: relative; z-index: 1; }

.hero-cta:active { transform: scale(.97); filter: brightness(.94); }

.hero-cta span { font-size: 18px; line-height: 1; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 241, 232, .64);
}

.scroll-cue i {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
  transform-origin: left;
  transform: scaleX(calc(.5 + var(--hero-progress) * .5));
}

.video-intro {
  padding: 48px 22px 42px;
  background: #f5eee4;
  color: var(--ink);
}

h2 {
  max-width: 340px;
  margin-bottom: 24px;
  font-size: clamp(34px, 10vw, 50px);
  letter-spacing: -.06em;
  line-height: .95;
}

.event-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 72svh;
  border: 0;
  border-radius: 24px;
  background: #17110f;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(23, 17, 15, .16);
}

.video-placeholder {
  min-height: 50svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #30231e, #15100e);
  color: var(--cream);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .18em;
  box-shadow: 0 20px 60px rgba(23, 17, 15, .16);
}

.play-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
}

.event-explainer {
  padding: 52px 22px 58px;
  background: var(--cream);
  color: var(--ink);
}

.event-explainer h2 {
  max-width: 345px;
  margin-bottom: 18px;
  color: var(--ink);
}

.event-lead {
  max-width: 350px;
  margin-bottom: 22px;
  color: #655a52;
  font-size: 18px;
  line-height: 1.4;
}

.event-details {
  margin: 0;
  color: #14748e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
}

.event-address {
  display: inline-block;
  margin-top: 13px;
  color: #655a52;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(20, 116, 142, .42);
  text-underline-offset: 3px;
}

.team-panorama {
  position: relative;
  overflow: hidden;
  padding: 0 0 42px;
  background: #17110f;
  color: var(--cream);
}

.team-panorama-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #17110f;
}

.team-panorama-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 17, 15, 0) 55%, #17110f 100%),
    linear-gradient(90deg, rgba(23, 17, 15, .15), transparent 20%, transparent 80%, rgba(23, 17, 15, .15));
  pointer-events: none;
}

.team-panorama-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(1.04);
}

.team-panorama-copy {
  position: relative;
  z-index: 1;
  margin: -30px 22px 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(220, 162, 91, .42);
  background: #17110f;
}

.team-panorama-copy .eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
}

.team-panorama-copy h2 {
  max-width: 300px;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 30px;
  line-height: .98;
}

.team-panorama-copy p:last-child {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.team-section {
  padding: 48px 22px 64px;
  background: #17110f;
  color: var(--cream);
}

.team-section > .eyebrow {
  margin-bottom: 26px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .2em;
}

.team-card {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(247, 241, 232, .13);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(71, 46, 34, .65), rgba(25, 17, 14, .98));
  box-shadow: 0 22px 50px rgba(0, 0, 0, .18);
}

.team-portraits--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 250px;
  gap: 2px;
  background: #2b1d17;
}

.portrait { overflow: hidden; }

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait--victor img { object-position: center 18%; }

.portrait--ruby {
  background: #f3eee7;
}

.portrait--ruby img {
  object-fit: contain;
  object-position: center bottom;
}

.portrait--osvaldo {
  height: 330px;
  background: #252b2d;
}

.portrait--osvaldo img { object-position: center 16%; }

.team-copy { padding: 20px 22px 23px; }

.team-role {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
}

.team-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.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;
}

.registration-section {
  padding: 54px 22px 74px;
  background: var(--cream);
  color: var(--ink);
}

.registration-section .eyebrow {
  margin-bottom: 15px;
  color: #14748e;
}

.registration-section h2 {
  margin-bottom: 14px;
  color: var(--ink);
}

.registration-lead {
  max-width: 320px;
  margin-bottom: 28px;
  color: #655a52;
  font-size: 16px;
  line-height: 1.45;
}

.registration-form {
  display: grid;
  gap: 15px;
}

.registration-form label {
  display: grid;
  gap: 7px;
  color: #655a52;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.registration-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(23, 17, 15, .24);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, .36);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.registration-form input:focus {
  border-color: #14748e;
  box-shadow: 0 0 0 3px rgba(20, 116, 142, .14);
}

.consent-field {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 9px !important;
  color: #655a52 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.4;
  text-transform: none !important;
}

.consent-field input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #14748e;
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.registration-note {
  margin: -2px 0 0;
  color: rgba(101, 90, 82, .78);
  font-size: 11px;
  line-height: 1.45;
}

.registration-submit {
  min-height: 56px;
  margin-top: 7px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #efba70, #ce8d45);
  color: #21150e;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(211, 139, 56, .24);
}

.registration-submit span { margin-left: 8px; font-size: 18px; }

.registration-status {
  min-height: 20px;
  margin: 0;
  color: #14748e;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 24px;
  background: #17110f;
  color: rgba(247, 241, 232, .58);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

@keyframes cta-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes cta-reflection {
  0%, 28% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  42% { opacity: 1; }
  68%, 100% { transform: translateX(540%) skewX(-18deg); opacity: 0; }
}

@keyframes cta-halo {
  0%, 100% { opacity: .28; transform: scale(.98); }
  50% { opacity: .76; transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .hero-cta,
  .hero-cta::before,
  .hero-cta::after { animation: none; }
}

@media (min-width: 700px) {
  main { max-width: 430px; margin: 0 auto; box-shadow: 0 0 100px rgba(0, 0, 0, .35); }
}
