:root {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-soft: #ebe4da;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --surface: rgba(247, 243, 237, 0.92);
  --text: #15252b;
  --muted: rgba(21, 37, 43, 0.72);
  --brand: #063f48;
  --brand-deep: #042f36;
  --brand-soft: #0c5a66;
  --accent: #b79868;
  --accent-soft: rgba(183, 152, 104, 0.16);
  --line: rgba(6, 63, 72, 0.12);
  --line-strong: rgba(6, 63, 72, 0.2);
  --shadow: 0 28px 70px rgba(21, 37, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(183, 152, 104, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 63, 72, 0.1), transparent 24%),
    linear-gradient(180deg, #fbf8f4 0%, var(--bg) 44%, var(--bg-soft) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28));
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  perspective: 1800px;
}

.ambient,
.stage-orb {
  display: none;
}

.invite-shell {
  position: relative;
  width: min(100%, 72rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(183, 152, 104, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 237, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  animation: shellFade 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.invite-shell::before,
.invite-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.invite-shell::before {
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(183, 152, 104, 0.4), rgba(6, 63, 72, 0.08), rgba(183, 152, 104, 0.18));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.invite-shell::after {
  inset: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(6, 63, 72, 0.06);
}

.invite-header {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: 0.15rem 0.2rem 1.35rem;
  text-align: center;
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  width: 100%;
}

.brand-logo-frame {
  width: min(100%, 24rem);
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(6, 63, 72, 0.1);
  background: var(--panel-strong);
  box-shadow:
    0 16px 34px rgba(21, 37, 43, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-divider {
  width: min(8.5rem, 34vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 152, 104, 0.78), transparent);
}

.invite-header-copy {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  max-width: 44rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 800;
}

.invite-header h1,
.invite-header h1 span {
  display: block;
}

.invite-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--text);
  animation: rise 780ms 100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.animated-title {
  display: grid;
  gap: 0.05em;
  width: fit-content;
  max-width: 100%;
}

.animated-title span:last-child {
  color: var(--brand);
}

.lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.form-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(183, 152, 104, 0.08), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(183, 152, 104, 0.12);
  transform-style: preserve-3d;
}

.form-panel {
  position: relative;
  width: min(100%, 48rem);
  z-index: 1;
  overflow: hidden;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 245, 240, 0.92));
  box-shadow:
    0 22px 44px rgba(21, 37, 43, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  animation: rise 820ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

.form-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(74%, 28rem);
  aspect-ratio: 760 / 340;
  background: center / contain no-repeat url("assets/axp-solutions-pro-logo-cropped.jpeg");
  opacity: 0.032;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.panel-top,
.rsvp-form {
  position: relative;
  z-index: 1;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.2rem;
}

.panel-kicker {
  margin: 0 0 0.35rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.panel-top h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1;
  color: var(--text);
}

.launch-pill {
  align-self: center;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 63, 72, 0.08), rgba(6, 63, 72, 0.05));
  border: 1px solid rgba(6, 63, 72, 0.14);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
}

.field-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.42rem;
}

.rsvp-form span {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.71rem;
  font-weight: 800;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 63, 72, 0.16);
  background: rgba(252, 250, 246, 0.95);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.rsvp-form input::placeholder {
  color: rgba(21, 37, 43, 0.42);
}

.rsvp-form input:focus,
.rsvp-form select:focus {
  border-color: rgba(6, 63, 72, 0.7);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(6, 63, 72, 0.08),
    0 14px 28px rgba(6, 63, 72, 0.08);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.45rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: 0 18px 30px rgba(6, 63, 72, 0.18);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary:focus-visible {
  outline: 2px solid rgba(183, 152, 104, 0.55);
  outline-offset: 3px;
}

.micro-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  padding-top: 0.95rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(6, 63, 72, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.micro-copy span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.micro-copy span::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(183, 152, 104, 0.9);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shellFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .invite-shell {
    padding: 1rem;
    border-radius: 24px;
  }

  .invite-shell::after {
    inset: 0.75rem;
    border-radius: 18px;
  }

  .brand-logo-frame {
    width: min(100%, 20rem);
    padding: 0.8rem;
    border-radius: 18px;
  }

  .invite-header {
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .invite-header h1 {
    font-size: clamp(2.15rem, 10vw, 3.45rem);
    line-height: 0.94;
  }

  .lead {
    font-size: 0.97rem;
  }

  .panel-top {
    flex-direction: column;
  }

  .launch-pill {
    align-self: start;
    white-space: normal;
  }

  .field-stack {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .micro-copy {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
