.brand-crest {
  width: 31px;
  height: 31px;
  display: block;
  flex: 0 0 31px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.48));
}

.footer-brand .brand-crest {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
}

.ftrg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ftrg-modal.is-open {
  display: flex;
}

.ftrg-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(201, 155, 67, 0.10), transparent 34rem),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.ftrg-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 48px 44px 42px;
  border: 1px solid rgba(201, 155, 67, 0.5);
  color: #f5f0e6;
  text-align: center;
  background:
    radial-gradient(circle at center top, rgba(201, 155, 67, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(17, 16, 13, 0.98), rgba(3, 3, 3, 0.98));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.ftrg-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(201, 155, 67, 0.48);
  color: #e0b865;
  background: rgba(0, 0, 0, 0.22);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.ftrg-modal-close:hover,
.ftrg-modal-close:focus-visible {
  border-color: rgba(224, 184, 101, 0.86);
  background: rgba(201, 155, 67, 0.08);
}

.ftrg-modal-crest {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.58));
}

.modal-eyebrow {
  margin: 0 0 17px;
  color: #e0b865;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ftrg-modal-dialog h2 {
  margin: 0 auto 18px;
  color: #f5f0e6;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.ftrg-modal-dialog > p:not(.modal-eyebrow),
.modal-fine-print {
  margin: 0 auto;
  max-width: 500px;
  color: rgba(245, 240, 230, 0.78);
  font-size: 17px;
  line-height: 1.62;
}

.join-modal-form {
  display: grid;
  gap: 14px;
  margin: 30px auto 0;
  max-width: 520px;
}

.join-modal-form input {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 155, 67, 0.48);
  color: #f5f0e6;
  background: rgba(0, 0, 0, 0.38);
  font: 500 18px/1.2 var(--sans, Arial, sans-serif);
  outline: none;
}

.join-modal-form input::placeholder {
  color: rgba(245, 240, 230, 0.5);
}

.join-modal-form input:focus {
  border-color: rgba(224, 184, 101, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 155, 67, 0.14);
}

.join-modal-form button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid rgba(224, 184, 101, 0.78);
  color: #fff9ef;
  background: linear-gradient(135deg, #b6813d, #d9b16a);
  font: 900 12px/1 var(--sans, Arial, sans-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.join-modal-form button:hover,
.join-modal-form button:focus-visible {
  filter: brightness(1.06);
}

.modal-fine-print {
  margin-top: 22px;
  color: rgba(245, 240, 230, 0.72);
  font-size: 15px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .ftrg-modal {
    padding: 16px;
  }

  .ftrg-modal-dialog {
    padding: 42px 22px 30px;
  }

  .ftrg-modal-dialog h2 {
    font-size: clamp(33px, 13vw, 46px);
  }

  .ftrg-modal-dialog > p:not(.modal-eyebrow),
  .modal-fine-print {
    font-size: 16px;
  }
}
