/* Shared full-width closing section, matching the landing page. */
.closing {
  --ink: #080808;
  --paper: #f3f3f3;
  --hero-detail-offset: clamp(28px, 3vw, 48px);
  z-index: 2;
}
.closing a { cursor: pointer; }
.closing-cta *, .closing-cta::before, .closing-disk { pointer-events: none; }
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 104px) max(24px, calc((100vw - 1440px) / 2)) clamp(28px, 3vw, 48px);
  color: var(--ink);
  background: #ffffff;
}

.closing h2 {
  position: relative;
  z-index: 2;
  margin: clamp(110px, 12vw, 190px) 0 0;
  font-size: clamp(90px, 13vw, 200px);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.065em;
  font-kerning: normal;
  text-rendering: geometricPrecision;
}

.closing h2 span {
  display: block;
}

.closing h2 span:first-child {
  width: max-content;
  font-family: var(--display);
  font-size: .54em;
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.065em;
}

.closing h2 span:last-child {
  margin-top: .04em;
  margin-left: 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.065em;
}

.closing-footer {
  position: relative;
  z-index: 3;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, .18);
}

.closing-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.closing-footer p {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.4;
}

.closing-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.closing-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.closing-cta {
  position: relative;
  gap: 20px;
  overflow: hidden;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  isolation: isolate;
  transition: color .3s ease;
}

.closing-cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(110deg, #77d8d3 0%, #8d83cf 28%, #d781ad 51%, #d3aa78 72%, #77d8d3 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  opacity: 0;
  transition: opacity .3s ease;
  animation: die-word-shimmer 8s ease-in-out infinite alternate;
}

.closing-cta > span {
  position: relative;
  z-index: 1;
}

.closing-cta:hover {
  color: var(--ink);
}

.closing-cta:hover::before {
  opacity: 1;
}

.closing-disk {
  position: absolute;
  right: -14vw;
  bottom: -24vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, .24);
  border-radius: 50%;
}

.closing-disk::before,
.closing-disk::after,
.closing-disk i {
  content: "";
  position: absolute;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 50%;
}

.closing-disk::before { inset: 15%; }
.closing-disk::after { inset: 31%; background: #ffffff; }
.closing-disk i:nth-child(1) { inset: 7%; }
.closing-disk i:nth-child(2) { inset: 23%; }
.closing-disk i:nth-child(3) { inset: 42%; background: var(--ink); }

.closing-legal {
  position: absolute;
  right: max(24px, calc((100vw - 1440px) / 2));
  bottom: clamp(22px, 2.5vw, 38px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.closing .privacy-link,
.closing .investor-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(8, 8, 8, .45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.closing h2 { margin-left: var(--hero-detail-offset); }
@keyframes die-word-shimmer { to { background-position: 100% 50%; } }
@media (max-width: 980px) {
  .closing h2 { margin-left: calc(var(--hero-detail-offset) - 6px); }
}
@media (max-width: 720px) {
  .closing h2 { margin-left: 20px; }
  .closing {
    padding: 56px 16px 24px;
  }

  .closing h2 {
    margin-top: 112px;
    font-size: clamp(64px, 20.5vw, 102px);
  }

  .closing h2 span:last-child { margin-left: 0; }

  .closing-footer {
    padding-top: 18px;
  }

  .closing-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .closing-links {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .closing-cta {
    width: 100%;
  }

  .closing-legal {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 32px 0 0 auto;
  }

  .closing-disk {
    right: -45vw;
    bottom: -18vw;
    width: 100vw;
  }

}
@media (prefers-reduced-motion: reduce) {
  .closing *, .closing *::before { animation: none; }
}

/* Align the closing tagline with the wordmark at each breakpoint. */
.closing-footer p { margin-left: var(--hero-detail-offset); }
@media (max-width: 980px) {
  .closing-footer p { margin-left: calc(var(--hero-detail-offset) - 6px); }
}
@media (max-width: 720px) {
  .closing-footer p { margin-left: 20px; }
}

/* Keep the introduction above the wordmark and group the actions below. */
.closing-actions { align-items: flex-start; }
.closing-bottom {
  position: absolute;
  right: max(24px, calc((100vw - 1440px) / 2));
  bottom: clamp(22px, 2.5vw, 38px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.closing-bottom .closing-legal {
  position: static;
  margin: 0;
}
@media (max-width: 980px) {
  .closing-bottom {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 36px;
  }
}
