:root {
  --navy: #0d2340;
  --navy-deep: #021834;
  --navy-ink: #010d22;
  --navy-line: rgba(230, 201, 122, 0.34);
  --gold: #c9a84c;
  --gold-light: #f0c970;
  --gold-hot: #f5a436;
  --gold-deep: #946f28;
  --cream: #f8f3ea;
  --cream-dim: rgba(248, 243, 234, 0.78);
  --cream-faint: rgba(248, 243, 234, 0.6);
  --serif: "Baskerville Old Face", Baskerville, "Times New Roman", Georgia, serif;
  --sans: "Jost", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  position: relative;
  z-index: 1;
  width: calc(100% - 96px);
  height: 100%;
  margin: 0 auto;
}

.mockup-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #000d23 0%, #001127 38%, #021933 72%, #04213f 100%);
}

/* Fixed-aspect "poster" of the mockup, centered and scaled to fit the viewport.
   zoom scales layout + paint together, so once the floor (app.js) stops it from
   shrinking further the page simply grows and scrolls instead of clipping.
   --fit is set by app.js: min(vw/1448, max(vh/1105, 0.8), 1.105) -> contains at
   ~1600px wide, and never shrinks below 0.8x (scrolls past that). */
.stage {
  position: relative;
  flex: none;
  width: 1448px;
  height: 1105px;
  padding: 34px 0 28px;
  zoom: var(--fit, 1);
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(0, 13, 35, 0) 0%, rgba(0, 13, 35, 0) 100%),
    url("/assets/hero-family-cloud-vault.jpg");
  background-position: left top, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 61.33% auto;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 39%, #000 50%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 39%, #000 50%, #000 100%);
}

.stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 21, 52, 0) 66%, rgba(3, 21, 52, 0.4) 73%, rgba(3, 21, 52, 0.85) 80%, rgba(3, 21, 52, 0.97) 88%, rgba(3, 21, 52, 1) 100%);
}

.flourish {
  position: absolute;
  bottom: 0;
  z-index: 0;
  display: block;
  width: 430px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.flourish-left {
  left: 0;
}

.flourish-right {
  right: 0;
}

.hero-brand {
  position: relative;
  top: 7px;
  left: -16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--cream);
  text-decoration: none;
}

.brand-orb {
  position: relative;
  display: grid;
  width: 122px;
  height: 122px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.brand-orb::before,
.brand-orb::after {
  position: absolute;
  inset: -9px;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

.brand-orb::before {
  border: 1px solid rgba(240, 201, 112, 0.42);
  box-shadow:
    0 -10px 18px rgba(245, 164, 54, 0.4),
    12px -4px 24px rgba(245, 164, 54, 0.28),
    -12px 7px 22px rgba(245, 164, 54, 0.26);
}

.brand-orb::after {
  inset: -18px;
  background:
    radial-gradient(2px 2px at 18% 34%, rgba(240, 201, 112, 0.95), transparent),
    radial-gradient(2px 2px at 71% 18%, rgba(245, 164, 54, 0.9), transparent),
    radial-gradient(1px 1px at 82% 67%, rgba(240, 201, 112, 0.75), transparent),
    radial-gradient(1px 1px at 34% 84%, rgba(245, 164, 54, 0.8), transparent);
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 122px;
  height: auto;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.brand-sub::before,
.brand-sub::after {
  display: block;
  width: 36px;
  height: 1px;
  content: "";
  background: var(--gold-hot);
}

.brand-tagline {
  margin-top: 16px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  width: min(100%, 690px);
  padding-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 4.35rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
}

.headline-line {
  display: block;
}

.headline-gold {
  color: var(--gold-hot);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.divider::before,
.divider::after {
  width: 110px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold-hot), rgba(245, 164, 54, 0));
}

.divider::after {
  width: 82px;
  background: linear-gradient(90deg, rgba(245, 164, 54, 0), var(--gold-hot));
}

.divider span {
  width: 9px;
  height: 9px;
  background: var(--gold-hot);
  transform: rotate(45deg);
}

.lede {
  width: min(100%, 560px);
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 1.12rem;
  line-height: 1.38;
}

.invite {
  margin: 0 0 12px;
  color: var(--gold-hot);
  font-family: var(--serif);
  font-size: 1.36rem;
  font-style: italic;
  font-weight: 700;
}

.waitlist-panel {
  width: min(100%, 610px);
  margin-top: 40px;
  padding: 16px 18px 14px;
  border: 1px solid var(--gold-hot);
  border-radius: 8px;
  background: rgba(4, 17, 32, 0.78);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 0 42px rgba(13, 35, 64, 0.42);
  backdrop-filter: blur(1px);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.form-heading h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

.form-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--gold-hot);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 164, 54, 0.62);
  border-radius: 5px;
}

.email-input {
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  background: rgba(3, 11, 22, 0.72);
  color: var(--cream);
  font: 300 1rem var(--sans);
}

.email-input::placeholder {
  color: rgba(248, 243, 234, 0.66);
}

.email-input:focus {
  background: rgba(3, 11, 22, 0.92);
  outline: none;
}

.submit-button {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  background: linear-gradient(180deg, #f3c878 0%, #d99a39 100%);
  color: var(--navy-ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Struck Relief: minted-coin bevel + rising hearth ember + specular rake.
   All effects are contained inside the button (inset shadows, clipped
   ::before/::after) except the pill glow, which is the row's OWN box-shadow
   via :has() and so escapes .field-row's overflow:hidden into the panel. */
.submit-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-size: 100% 200%;
  background-position: 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(148, 111, 40, 0.55),
    inset 0 0 0 1px rgba(148, 111, 40, 0.28);
  text-shadow:
    0 1px 0 rgba(255, 246, 224, 0.55),
    0 -1px 0 rgba(120, 86, 26, 0.35);
  transition:
    background-position 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    text-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    letter-spacing 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 200ms ease-out,
    transform 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* keep the gold label above the ember + sheen layers */
.submit-button > * {
  position: relative;
  z-index: 2;
}

/* warm ember glow pooling up from the base */
.submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 80% at 50% 118%,
    rgba(245, 164, 54, 0.8) 0%,
    rgba(240, 201, 112, 0.32) 44%,
    rgba(240, 201, 112, 0) 72%
  );
  opacity: 0;
  transition: opacity 240ms ease-out;
  pointer-events: none;
}

/* contained diagonal specular rake (single pass) */
.submit-button::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -40%;
  bottom: -40%;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 251, 240, 0.1) 38%,
    rgba(255, 251, 240, 0.72) 50%,
    rgba(255, 251, 240, 0.1) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0) skewX(-16deg);
  opacity: 0;
  pointer-events: none;
}

.submit-button:hover,
.submit-button:focus-visible {
  background-position: 0 100%;
  filter: saturate(1.08) brightness(1.04);
  letter-spacing: 0.012em;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 1px rgba(148, 111, 40, 0.7),
    inset 0 0 0 1px rgba(148, 111, 40, 0.42),
    inset 0 0 14px 2px rgba(245, 164, 54, 0.3);
  text-shadow:
    0 1px 0 rgba(255, 250, 236, 0.9),
    0 -1px 0 rgba(120, 86, 26, 0.5),
    0 0 10px rgba(255, 230, 170, 0.35);
  color: var(--navy-ink);
}

.submit-button:hover::before,
.submit-button:focus-visible::before {
  opacity: 1;
}

.submit-button:hover::after,
.submit-button:focus-visible::after {
  opacity: 1;
  transform: translateX(360%) skewX(-16deg);
  transition:
    transform 620ms cubic-bezier(0.2, 0.5, 0.2, 1),
    opacity 120ms ease-out;
}

/* press the coin in: bevel inverts */
.submit-button:active {
  transform: translateY(1px) scale(0.994);
  filter: saturate(1.05) brightness(0.99);
  box-shadow:
    inset 0 2px 4px rgba(120, 86, 26, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 10px 1px rgba(148, 111, 40, 0.4);
  text-shadow:
    0 -1px 0 rgba(255, 250, 236, 0.55),
    0 1px 0 rgba(120, 86, 26, 0.4);
  transition:
    transform 90ms ease,
    box-shadow 90ms ease,
    text-shadow 90ms ease,
    filter 90ms ease;
}

.submit-button:active::after {
  opacity: 0;
}

/* pill glow: the row's own box-shadow (not clipped by its overflow:hidden)
   blooms into the non-clipping .waitlist-panel when the button is engaged */
.field-row {
  transition: box-shadow 300ms ease-out;
}

.field-row:has(.submit-button:hover),
.field-row:has(.submit-button:focus-visible) {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.5),
    0 6px 22px -6px rgba(245, 164, 54, 0.5),
    0 14px 46px -10px rgba(201, 168, 76, 0.34),
    0 2px 6px rgba(2, 24, 52, 0.35);
  transition: box-shadow 240ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .submit-button::after {
    display: none;
  }
}

.submit-button:disabled {
  cursor: not-allowed;
}

.submit-button:focus-visible,
.email-input:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.hp,
.mailchimp-frame {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.microcopy,
.form-message {
  margin: 12px 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1rem;
}

.micro-lock {
  color: var(--gold-light);
}

.form-message {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

.values-strip {
  position: absolute;
  top: 763px;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--gold-hot);
  border-radius: 8px;
  background: rgba(3, 16, 33, 0.97);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 0 38px rgba(13, 35, 64, 0.45);
}

.value-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 14px 20px;
  border-right: 1px solid rgba(245, 164, 54, 0.38);
}

.value-item:last-child {
  border-right: 0;
}

.value-item img {
  width: 104px;
  height: 104px;
  justify-self: center;
}

.value-item h2 {
  margin: 0 0 4px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
}

.value-item p {
  margin: 0;
  color: var(--cream);
  font-size: 0.94rem;
  line-height: 1.35;
}

/* Complementary echo of the button: struck medallions that lift, brighten,
   and bloom a small ember ring. Only transform/filter/opacity/color/box-shadow
   animate, so hovering one tile never reflows its neighbours, and every glow
   stays inside the 118px column / 132px row (respecting overflow:hidden). */
.value-item {
  position: relative;
  isolation: isolate;
  transition:
    background-color 240ms ease-out,
    box-shadow 240ms ease-out;
}

/* ember ring behind the medallion, centred in the 118px icon column
   (20px item padding + 59px half-column = 79px) */
.value-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 79px;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(245, 164, 54, 0.32) 0%,
    rgba(240, 201, 112, 0.16) 46%,
    rgba(240, 201, 112, 0) 78%
  );
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 240ms ease-out,
    transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.value-item img,
.value-item h2,
.value-item p {
  position: relative;
  z-index: 1;
}

.value-item img {
  filter: drop-shadow(0 1px 1px rgba(1, 13, 34, 0.55));
  transition:
    transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 240ms ease-out;
}

.value-item h2 {
  transition:
    color 220ms ease-out,
    text-shadow 240ms ease-out;
}

.value-item:hover {
  background-color: rgba(148, 111, 40, 0.1);
  box-shadow: inset 0 0 0 1px rgba(245, 164, 54, 0.22);
}

.value-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.value-item:hover img {
  transform: translateY(-2px) scale(1.05);
  filter:
    brightness(1.12) saturate(1.14) drop-shadow(0 4px 5px rgba(1, 13, 34, 0.5))
    drop-shadow(0 0 8px rgba(245, 164, 54, 0.5));
}

.value-item:hover h2 {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(240, 201, 112, 0.35);
}

/* tie the four tiles together when any is hovered (adds a gold seam on top of
   the strip's existing shadow rather than replacing it) */
.values-strip:has(.value-item:hover) {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 0 38px rgba(13, 35, 64, 0.45),
    inset 0 0 0 1px rgba(245, 164, 54, 0.45);
  transition: box-shadow 240ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .value-item:hover img {
    transform: none;
  }

  .value-item::before {
    transform: none;
  }
}

.hero-footer {
  position: absolute;
  top: 895px;
  right: 0;
  left: 0;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}

.hero-footer::before {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 760px;
  height: 58px;
  content: "";
  border: 0 solid transparent;
  border-top: 1px solid var(--gold-hot);
  border-radius: 50%;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 18%, #000 82%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 18%, #000 82%, transparent 96%);
}

.footer-mark {
  display: block;
  width: 46px;
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 14px rgba(245, 164, 54, 0.42));
}

.footer-line,
.footer-subline {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.92rem;
  line-height: 1.05;
}

.footer-subline {
  color: var(--gold-hot);
}

.fine-print {
  margin: 10px 0 0;
  color: var(--cream-faint);
  font-size: 0.76rem;
}

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

@media (max-width: 1180px) {
  .wrap {
    width: calc(100% - 56px);
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .values-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-item:nth-child(2) {
    border-right: 0;
  }

  .value-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(245, 164, 54, 0.38);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 1352px);
  }

  .mockup-hero {
    display: block;
    min-height: 100svh;
  }

  .stage {
    width: 100%;
    height: auto;
    padding: 16px 0 0;
    zoom: 1;
  }

  .stage::before {
    inset: 0 0 auto;
    height: 34vh;
    min-height: 270px;
    background-position: center top;
    background-size: cover;
  }

  .stage::after {
    background:
      linear-gradient(180deg, rgba(5, 18, 34, 0) 0%, rgba(5, 18, 34, 0.18) 18%, rgba(5, 18, 34, 0.96) 34%, rgba(5, 18, 34, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 18, 34, 0.5), rgba(5, 18, 34, 0.5));
  }

  .flourish {
    display: none;
  }

  .hero-brand {
    margin-bottom: 274px;
  }

  .brand {
    gap: 12px;
  }

  .brand-orb {
    width: 64px;
    height: 64px;
  }

  .brand-orb::before {
    inset: -5px;
  }

  .brand-orb::after {
    inset: -10px;
  }

  .brand-mark {
    width: 64px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-sub {
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .brand-sub::before,
  .brand-sub::after {
    width: 18px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .lede {
    font-size: 1rem;
  }

  .invite {
    font-size: 1.16rem;
  }

  .form-heading {
    justify-content: flex-start;
  }

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

  .submit-button {
    width: 100%;
  }

  .values-strip {
    grid-template-columns: 1fr;
  }

  .value-item,
  .value-item:nth-child(2),
  .value-item:nth-child(-n + 2) {
    grid-template-columns: 88px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid rgba(245, 164, 54, 0.32);
  }

  .value-item:last-child {
    border-bottom: 0;
  }

  .footer-line,
  .footer-subline {
    font-size: 1.7rem;
  }
}

@media (max-width: 430px) {
  .hero-brand {
    margin-bottom: 252px;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .waitlist-panel {
    margin-top: 0;
    padding: 18px 14px 14px;
  }

  .values-strip,
  .hero-footer {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .values-strip {
    margin-top: 26px;
  }

  .hero-footer {
    margin-top: 26px;
  }

  .form-heading h2 {
    font-size: 1.32rem;
  }

  .value-item,
  .value-item:nth-child(2),
  .value-item:nth-child(-n + 2) {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

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

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