.register-wrap,
.site-footer {
  position: relative;
  z-index: 7;
  background: #f5f2ec;
}

.register {
  width: min(128rem, calc(100% - 6.4rem));
  margin: 0 auto;
  padding: 10rem 0 8rem;
}

.register-heading {
  margin: 0;
  overflow: hidden;
  color: #1a1a1a;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(3.6rem, 5.2vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

/* Scroll-reveal hidden state — landing #register only */
#register .register-heading,
#register .register-sub,
#register .register-media,
#register .register-field,
#register .register-submit {
  opacity: 0;
}

.register-sub {
  max-width: 62rem;
  margin: 1.6rem auto 6.4rem;
  color: #6b6b6b;
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 6.4rem;
  align-items: stretch;
  overflow: visible;
}

.register-media {
  overflow: hidden;
  min-height: 52rem;
  border-radius: 2.4rem;
}

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

.register-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  overflow: visible;
}

.register-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.8rem;
}

.register-field label {
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.register-field input {
  width: 100%;
  height: auto;
  padding: 0.4rem 0 1.1rem;
  border: 0;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  line-height: 1.4;
  outline: none;
  appearance: none;
}

.register-field input::placeholder {
  color: #b0b0b0;
}

.register-field.is-message textarea {
  width: 100%;
  min-height: 16rem;
  padding: 1.6rem;
  border: 1px solid #ececec;
  border-radius: 0.8rem;
  background: #f3f3f3;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}

.register-submit {
  align-self: flex-end;
  margin-top: 2.4rem;
  padding: 1.35rem 2.8rem;
  border: 0;
  border-radius: 999px;
  background: #0c1c2c;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-top: 8.8rem;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 6.4rem;
  padding-right: 6.4rem;
  padding-bottom: 4.8rem;
}

.site-footer-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: -2.4rem;
  line-height: 0;
}

.site-footer-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #f5f2ec 0%,
    rgba(245, 242, 236, 0.82) 28%,
    rgba(245, 242, 236, 0) 100%
  );
}

.site-footer-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Scoped to the marker the Footer manager sets when it has actually armed a
   reveal cycle. Unscoped, this rule hid the footer and left JS as the only
   thing that could ever show it again -- so any route where the reveal did
   not run lost its footer permanently. That is what the
   body:has(.tokenomics-page) override in TokenomicsPage.css was working
   around. Visible is now the default; hiding is opt-in and short-lived. */
html.js-footer-reveal .site-footer-brand,
html.js-footer-reveal .site-footer-col,
html.js-footer-reveal .site-footer-media {
  opacity: 0;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.site-footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.4rem;
  color: inherit;
  text-decoration: none;
}

.site-footer-logo img {
  display: block;
  width: 5.2rem;
  height: auto;
  flex-shrink: 0;
}

.site-footer-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-footer-name {
  color: #111;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-global {
  margin-top: 0.5rem;
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.site-footer-tagline {
  margin: 2.8rem 0 0;
  color: #111;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: 2.4rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
}

.site-footer-copy {
  margin: auto 0 0;
  padding-top: 1rem;
  color: #a3a3a3;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer-col h3 {
  margin: 0 0 2.2rem;
  color: #111;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: 2.6rem;
  font-weight: 500;
}

.site-footer-col a,
.site-footer-col p {
  display: block;
  margin: 0 0 1.2rem;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}

.site-footer-col a:hover {
  opacity: 0.65;
}

.site-footer-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  margin-top: 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid #d9d3c8;
}

.site-footer-portal svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media screen and (max-width: 991px) {
  .register {
    width: calc(100% - 4rem);
    padding: 7.2rem 0 5.6rem;
  }

  .register-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .register-media {
    min-height: 36rem;
  }

  .register-submit {
    align-self: stretch;
  }

  .site-footer {
    padding-top: 6.4rem;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    row-gap: 4rem;
    column-gap: 3.2rem;
    padding-left: 3.2rem;
    padding-right: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .site-footer-media {
    margin-top: -1.6rem;
  }
}

@media screen and (max-width: 767px) {
  .register {
    width: calc(100% - 3.2rem);
    padding: 5.6rem 0 4.8rem;
  }

  .register-heading {
    font-size: 3.2rem;
  }

  .register-sub {
    margin-bottom: 3.6rem;
    font-size: 1.3rem;
  }

  .register-media {
    min-height: 28rem;
  }

  .elara-wellness-waitlist .register {
    padding-bottom: 6.8rem;
  }

  body:has(.elara-page) .site-footer {
    padding-top: 0;
  }

  .site-footer {
    padding-top: 5.6rem;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .site-footer-media {
    margin-top: -1.2rem;
  }

  .site-footer-copy {
    padding-top: 2.4rem;
  }
}

.home-team-wrap {
  z-index: 7;
}

.home-team-wrap .home-team {
  padding-top: 0;
  position: relative;
  bottom: auto;
}

.home-team-thumb-inner img,
.home-team-thumb-inner video,
.home-team-thumb-inner canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}

.yacht-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}

.home-team-thumb {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.home-team-thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(16% 12% 16% 12% round 0.8rem);
}

@media screen and (min-width: 992px) {
  .home-team-thumb-inner {
    clip-path: inset(14% 26% 14% 26% round 0.8rem);
  }
}

.yacht-copy {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(60rem, 48vw);
  margin: 0 auto;
  pointer-events: none;
  opacity: 0;
  text-align: center;
}

.yacht-copy-heading {
  margin: 0 0 2rem;
  color: #fff;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(5.6rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-align: center;
  /* text-transform: uppercase; */
}

.yacht-copy-card {
  width: 100%;
  padding: 2.4rem 2.6rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.55);
  border-radius: 1.6rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 40px rgba(8, 40, 80, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.yacht-copy-card p {
  margin: 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .home-team-thumb::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.12) 55%,
      transparent 100%
    );
  }

  .yacht-copy {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: center;
    width: min(52rem, 84vw);
    padding-top: 0;
  }

  .yacht-copy-heading {
    font-size: clamp(4.8rem, 12vw, 8rem);
  }
}

@media screen and (max-width: 767px) {
  .yacht-copy {
    left: 0;
    right: 0;
    width: min(52rem, 88vw);
    padding-top: 0;
  }

  .yacht-copy-heading {
    margin-bottom: 1.4rem;
    font-size: 5.2rem;
  }

  .yacht-copy-card {
    padding: 1.8rem 2rem;
  }

  .yacht-copy-card p {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-heading,
  .register-sub,
  .register-media,
  .register-field,
  .register-submit,
  .site-footer-brand,
  .site-footer-col,
  .site-footer-media {
    opacity: 1;
  }
}

/* ─── Form wiring (interest / wellness / yacht) ─── */
.yacht-form-modal .register-field,
.yacht-form-modal .register-submit,
.yacht-form-modal .register-form-status,
.elara-wellness-waitlist .register-field,
.elara-wellness-waitlist .register-submit,
.elara-wellness-waitlist .register-form-status {
  opacity: 1;
  visibility: visible;
}

.yacht-form-modal .iti,
.elara-wellness-waitlist .iti,
#register .iti {
  display: block;
  width: 100%;
}

/* intl-tel-input: keep flag/dial code visible and above following fields */
.register-field:has(.iti) {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.register-field.is-message {
  position: relative;
  z-index: 1;
}

.register-field .iti--allow-dropdown input,
.register-field .iti--separate-dial-code input {
  padding-left: 5.2rem;
  padding-right: 0;
}

.register-field .iti .iti__flag-container {
  z-index: 2;
}

.register-field .iti .iti__country-list,
.iti--container .iti__country-list {
  z-index: 10050;
  max-height: 20rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.iti--container {
  z-index: 10050;
}

.register-field.is-consent {
  margin-bottom: 1.2rem;
}

.register-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: #4a4a4a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.register-consent input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.register-consent-check {
  position: relative;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.05rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 0.4rem;
  background: #fff;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.register-consent-check::after {
  content: "";
  position: absolute;
  left: 0.58rem;
  top: 0.18rem;
  width: 0.45rem;
  height: 0.9rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
}

.register-consent input[type="checkbox"]:checked + .register-consent-check {
  background: #0c1c2c;
  border-color: #0c1c2c;
}

.register-consent
  input[type="checkbox"]:checked
  + .register-consent-check::after {
  transform: rotate(45deg) scale(1);
}

.register-consent
  input[type="checkbox"]:focus-visible
  + .register-consent-check {
  outline: 2px solid #4aa7ef;
  outline-offset: 2px;
}

.register-consent-text {
  flex: 1 1 auto;
  padding-top: 0.05rem;
}

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

.register-field select {
  width: 100%;
  padding: 0.4rem 0 1.1rem;
  border: 0;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  outline: none;
  appearance: none;
}

.register-form-status {
  margin: 0 0 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.register-form-status.is-error {
  color: #b42318;
}

.register-form-status.is-success {
  color: #0f6b3f;
}

.register-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Elara — wellness waitlist before footer */
.elara-wellness-waitlist {
  position: relative;
  z-index: 20;
  isolation: isolate;
  background: #efece6;
}

.elara-wellness-waitlist .register {
  padding-bottom: 12rem;
}

body:has(.elara-page) .site-footer {
  position: relative;
  z-index: 20;
  background: #efece6;
}

body:has(.elara-page) .site-footer-media::before {
  background: linear-gradient(
    180deg,
    #efece6 0%,
    rgba(239, 236, 230, 0.82) 28%,
    rgba(239, 236, 230, 0) 100%
  );
}

.elara-wellness-waitlist .register-heading {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  text-transform: none;
}

.elara-wellness-waitlist .register-sub {
  margin-bottom: 3.2rem;
}

.elara-wellness-waitlist-form-wrap {
  width: min(48rem, 100%);
  margin: 0 auto;
}

.elara-wellness-waitlist .register-submit {
  align-self: stretch;
}

/* Yacht interest modal */
.yacht-form-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  overscroll-behavior: none;
  touch-action: none;
}

.yacht-form-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 18, 30, 0.62);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.yacht-form-modal-panel {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  max-height: min(90vh, 72rem);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 2.8rem 2.4rem 2.4rem;
  border-radius: 1.6rem;
  background: #f5f2ec;
  box-shadow: 0 2.4rem 6rem rgba(8, 18, 30, 0.28);
}

.yacht-form-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 28, 44, 0.08);
  color: #1a1a1a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.yacht-form-modal-title {
  margin: 0 0 0.6rem;
  color: #1a1a1a;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.yacht-form-modal-sub {
  margin: 0 0 2rem;
  color: #6b6b6b;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  line-height: 1.5;
}

@media screen and (max-width: 767px) {
  .register-field-row {
    grid-template-columns: 1fr;
  }

  .yacht-form-modal-panel {
    padding: 2.4rem 1.6rem 1.6rem;
  }
}
