:root {
  --bg: #0c1438;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-gutter: stable both-edges;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.68'/%3E%3C/svg%3E");
  background-size: 190px 190px;
  mix-blend-mode: soft-light;
}

body.is-survey-visible {
  overflow-y: auto;
}

.page-shell {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 1.5rem 1rem 3rem;
  perspective: 1800px;
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem 1.35rem;
  text-align: center;
}

body.is-survey-visible .site-footer {
  margin-top: 2.5rem;
}

body:not(.is-survey-visible) .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
}

.site-footer p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(247, 245, 240, 0.44);
}

.site-footer .footer-phone::before,
.site-footer .footer-email::before {
  content: "|";
  margin-right: 1.05rem;
  color: rgba(247, 245, 240, 0.3);
}

.site-footer .footer-break {
  display: none;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1220px;
  padding-inline: clamp(1rem, 2.4vw, 1.9rem);
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 6.5rem;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease,
    filter 560ms ease;
}

.site-header-left {
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: min(300px, 72vw);
  height: auto;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease,
    filter 560ms ease;
}

.site-header-note {
  margin: 0;
  flex: 1 1 420px;
  min-width: 280px;
  max-width: 58ch;
  align-self: center;
  text-align: right;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.72);
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease,
    filter 560ms ease;
}

.site-header-note span {
  display: block;
}

.mobile-header-note {
  display: none;
}

@media (min-width: 801px) {
  .site-header-note span {
    white-space: nowrap;
  }
}

.content-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  min-height: clamp(520px, calc(100vh - 240px), 760px);
  margin: 0 auto;
  padding-bottom: 0;
}

body.is-survey-visible .content-stage {
  padding-bottom: var(--survey-space, 0px);
}

.hero-copy,
.survey-stage {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  color: #f7f5f0;
  margin: 0 auto;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease,
    filter 560ms ease;
}

.hero-copy h1 {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.9vw, 5.3rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:first-child {
  white-space: nowrap;
}

.hero-copy h1 span:last-child {
  font-size: 0.84em;
  color: rgba(247, 245, 240, 0.78);
}

.hero-copy h1 span + span {
  margin-top: 1.25rem;
}

.supporting-copy {
  margin: 4.75rem auto 0;
  max-width: 36rem;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  line-height: 1.88;
  text-wrap: pretty;
  color: rgba(247, 245, 240, 0.78);
}

.cta-description {
  margin: 1.35rem auto 0;
  max-width: 29rem;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  color: rgba(247, 245, 240, 0.54);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6rem;
  min-width: 220px;
  padding: 1.05rem 2rem;
  border: 1px solid rgba(247, 245, 240, 0.18);
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.96);
  color: #0c1438;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}

.survey-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(860px, 100%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0) rotateX(-10deg) scale(0.985);
  transform-origin: top center;
  filter: blur(12px);
  visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 620ms ease,
    filter 620ms ease,
    visibility 0s linear 620ms;
}

body:not(.is-survey-visible) .survey-stage {
  max-height: 0;
  overflow: hidden;
}

.survey-scroll {
  width: 100%;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.survey-frame {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(247, 245, 240, 0.16);
  border-radius: 30px;
  background: rgba(247, 245, 240, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.tally-embed {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  border-radius: 22px;
  background: #f7f5f0;
}

body.is-survey-visible .hero-copy {
  opacity: 0;
  transform: rotateY(-28deg) translateX(-72px) translateZ(-80px);
  filter: blur(10px);
  pointer-events: none;
}

body:not(.is-survey-visible) .hero-copy,
body:not(.is-survey-visible) .site-header,
body:not(.is-survey-visible) .site-header .brand-mark,
body:not(.is-survey-visible) .site-header .site-header-note {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

body.is-survey-visible .site-header {
  opacity: 0;
  pointer-events: none;
}

body.is-survey-visible .site-header .brand-mark {
  opacity: 0;
  transform: rotateY(-28deg) translateX(-72px) translateZ(-80px);
  filter: blur(10px);
}

body.is-survey-visible .site-header .site-header-note {
  opacity: 0;
  transform: rotateY(-28deg) translateX(-72px) translateZ(-80px);
  filter: blur(10px);
}

body.is-survey-visible .survey-stage {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, -212px, 0) rotateX(0) scale(1);
  filter: blur(0);
  visibility: visible;
  max-height: none;
  overflow: visible;
  transition-delay: 120ms, 120ms, 120ms, 0s;
}

@media (max-width: 800px) {
  body:not(.is-survey-visible) {
    overflow-y: auto;
  }

  body:not(.is-survey-visible) .page-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.is-survey-visible .page-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .site-header {
    justify-content: center;
    margin-bottom: 3.7rem;
    padding-inline: 0.75rem;
    gap: 1rem;
  }

  .site-header-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand-mark {
    width: min(280px, 74vw);
  }

  .site-header-note {
    display: none;
  }

  .mobile-header-note {
    display: block;
    margin: 2.4rem auto 0;
    padding-top: 1.15rem;
    max-width: 31rem;
    text-align: center;
    font-family: "Manrope", sans-serif;
    font-size: 0.86rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(247, 245, 240, 0.68);
    border-top: 1px solid rgba(247, 245, 240, 0.18);
  }

  .hero-copy {
    width: 100%;
  }

  .content-stage {
    width: 100%;
    min-height: clamp(460px, calc(100vh - 200px), 640px);
  }

  body:not(.is-survey-visible) .content-stage {
    padding-bottom: 0 !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
    line-height: 0.98;
  }

  .hero-copy h1 span:first-child {
    white-space: normal;
  }

  .hero-copy h1 span + span {
    margin-top: 0.5rem;
  }

  .supporting-copy {
    margin-top: 3rem;
    max-width: 30rem;
    font-size: 1.12rem;
    line-height: 1.85;
  }

  .cta-description {
    margin-top: 1.2rem;
    max-width: 24rem;
    font-size: 0.93rem;
  }

  .cta-button {
    margin-top: 4.5rem;
    min-width: 210px;
  }

  .survey-frame {
    padding: 0.75rem;
    border-radius: 24px;
  }

  .survey-scroll {
    max-height: none;
    padding-right: 0;
  }

  .tally-embed {
    min-height: 760px;
    border-radius: 18px;
  }

  body.is-survey-visible .hero-copy {
    transform: rotateY(-18deg) translateX(-24px) translateZ(-40px);
  }

  body:not(.is-survey-visible) .hero-copy,
  body:not(.is-survey-visible) .site-header,
  body:not(.is-survey-visible) .site-header .brand-mark,
  body:not(.is-survey-visible) .site-header .site-header-note {
    transform: none;
  }

  body.is-survey-visible .site-header {
    opacity: 0;
  }

  body.is-survey-visible .site-header .brand-mark {
    transform: rotateY(-18deg) translateX(-24px) translateZ(-40px);
  }

  body.is-survey-visible .site-header .site-header-note {
    transform: rotateY(-18deg) translateX(-24px) translateZ(-40px);
  }

  body.is-survey-visible .survey-stage {
    transform: translate3d(-50%, calc(-1 * clamp(194px, 24vh, 226px)), 0) rotateX(0) scale(1);
  }

  .site-footer {
    padding-bottom: 1rem;
  }

  body:not(.is-survey-visible) .site-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
  }

  body.is-survey-visible .site-footer {
    margin-top: 1.75rem;
  }

  .site-footer p {
    width: 100%;
    justify-content: center;
    font-size: 0.76rem;
    gap: 0.4rem;
  }

  .site-footer .footer-phone {
    order: 1;
  }

  .site-footer .footer-email {
    order: 2;
  }

  .site-footer .footer-break {
    display: block;
    order: 3;
    flex-basis: 100%;
    height: 0;
  }

  .site-footer .footer-name {
    order: 4;
  }

  .site-footer .footer-year {
    order: 5;
  }

  .site-footer .footer-phone::before {
    content: "";
    margin-right: 0;
  }

  .site-footer .footer-email::before {
    margin-right: 0.7rem;
  }
}
