@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-v23-latin-400.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --black: #050504;
  --ink: #0b0907;
  --ivory: #e8dbc0;
  --parchment: #cdb985;
  --gold: #b99a58;
  --gold-dim: rgba(185, 154, 88, 0.54);
  --gold-faint: rgba(185, 154, 88, 0.2);
  --oxblood: rgba(63, 8, 13, 0.5);
  --smoke: rgba(217, 211, 199, 0.18);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-registry: "IBM Plex Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-registry);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.legal-register:focus-visible {
  outline: 1px solid rgba(232, 219, 192, 0.88);
  outline-offset: 0.32rem;
}

a:focus-visible {
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.registry-text {
  font-family: var(--font-registry);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site {
  min-height: 100svh;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(248, 232, 191, 0.28) 0%, rgba(224, 197, 135, 0.13) 21%, rgba(224, 197, 135, 0) 48%),
    linear-gradient(135deg, rgba(247, 226, 180, 0.12) 0%, rgba(247, 226, 180, 0.06) 22%, rgba(0, 0, 0, 0) 52%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.07) 24%, rgba(0, 0, 0, 0) 53%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.26) 100%),
    url("assets/imperivm-hero-register-chamber.png") center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(ellipse at 82% 14%, rgba(255, 238, 197, 0.24) 0%, rgba(255, 238, 197, 0.12) 20%, rgba(255, 238, 197, 0) 46%),
    radial-gradient(ellipse at 73% 66%, rgba(3, 2, 1, 0.3) 0%, rgba(3, 2, 1, 0.18) 20%, rgba(3, 2, 1, 0.05) 35%, rgba(3, 2, 1, 0) 51%),
    radial-gradient(ellipse at 58% 52%, rgba(239, 214, 147, 0.18) 0%, rgba(239, 214, 147, 0) 34%),
    radial-gradient(ellipse at 12% 86%, rgba(63, 8, 13, 0.18) 0%, rgba(63, 8, 13, 0) 28%);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 84%, rgba(0, 0, 0, 0.16) 100%),
    radial-gradient(ellipse at 70% 18%, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.24) 100%);
}

.hero-copy {
  position: absolute;
  left: clamp(8.75rem, 11.4vw, 11.75rem);
  right: clamp(3rem, 10vw, 11rem);
  top: 23svh;
  z-index: 2;
  max-width: 78rem;
  text-shadow: 0 0.08em 0.32em rgba(0, 0, 0, 0.7);
}

.eyebrow {
  margin: 0 0 2.35rem clamp(12rem, 17vw, 18.5rem);
  color: rgba(185, 154, 88, 0.44);
  font-size: 0.86rem;
}

h1 {
  margin: 0;
  color: var(--parchment);
  font-size: 13.4rem;
  line-height: 0.76;
}

.subline,
.motto {
  margin: 0;
  padding-left: 0.28rem;
  font-family: var(--font-display);
  color: var(--parchment);
}

.subline {
  margin-top: 1.85rem;
  font-size: 1.82rem;
  line-height: 1.1;
}

.motto {
  margin-top: 0.48rem;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.2;
}

.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  color: var(--gold);
  font-size: 0.78rem;
}

.rail-left {
  left: 0;
  width: 9.25rem;
  border-right: 1px solid var(--gold-faint);
  padding: 2.25rem 1.85rem;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto auto 1fr auto;
  row-gap: 1.85rem;
}

.rail-brand,
.folio {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.rail-brand span,
.folio span {
  color: rgba(185, 154, 88, 0.74);
  font-size: 0.68rem;
}

.folio strong {
  color: rgba(232, 219, 192, 0.7);
  font-family: var(--font-registry);
  font-size: 0.82rem;
  font-weight: 400;
}

.rule {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--gold-dim);
}

.rule-long {
  width: 1px;
  height: 13rem;
  margin-left: 0.95rem;
}

.seal-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  color: rgba(232, 219, 192, 0.82);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.rail-right {
  right: 3.8rem;
  width: 5.8rem;
  border-left: 1px solid var(--gold-faint);
}

.corner-plus {
  position: absolute;
  top: 2.15rem;
  right: -2.9rem;
  color: rgba(232, 219, 192, 0.74);
  font-size: 1.2rem;
  font-weight: 300;
}

.lower-plus {
  top: auto;
  bottom: 2.15rem;
}

.vertical-text {
  position: absolute;
  top: 5.2rem;
  right: -2.55rem;
  writing-mode: vertical-rl;
  color: rgba(232, 219, 192, 0.76);
  line-height: 1.8;
}

.vertical-text.lower {
  top: auto;
  right: -2.45rem;
  bottom: 8.8rem;
}

.registry-links {
  position: absolute;
  left: clamp(8.75rem, 11.4vw, 11.75rem);
  bottom: 2.3rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  max-width: min(50rem, calc(100vw - 34rem));
  color: rgba(232, 219, 192, 0.72);
  font-size: 0.74rem;
}

.registry-links a {
  position: relative;
  padding-bottom: 0.22rem;
  transition: color 180ms ease, opacity 180ms ease;
}

.registry-link-disabled {
  color: rgba(185, 154, 88, 0.46);
  cursor: default;
}

.registry-soon {
  color: rgba(232, 219, 192, 0.58);
  font-size: 0.66em;
  margin-left: 0.32rem;
  text-transform: none;
}

.registry-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.34;
  transform: scaleX(0.42);
  transform-origin: left;
  transition: transform 180ms ease, opacity 180ms ease;
}

.registry-links a:hover,
.registry-links a:focus-visible {
  color: var(--ivory);
}

.registry-links a:hover::after,
.registry-links a:focus-visible::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.register-cta {
  position: absolute;
  right: clamp(4rem, 6vw, 6.2rem);
  bottom: 2.2rem;
  z-index: 4;
  display: inline-flex;
  min-width: 16.2rem;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(205, 185, 133, 0.92);
  border-radius: 999px;
  padding: 0.78rem 0.8rem 0.78rem 1.75rem;
  background: rgba(8, 7, 6, 0.44);
  color: var(--parchment);
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.82;
  box-shadow: inset 0 0 0 1px rgba(185, 154, 88, 0.12), 0 1rem 2rem rgba(0, 0, 0, 0.38);
}

.register-cta:disabled {
  cursor: default;
}

.cta-copy {
  display: grid;
  gap: 0.34rem;
  text-align: left;
}

.cta-status {
  color: rgba(185, 154, 88, 0.76);
  font-size: 0.58rem;
}

.cta-seal {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(205, 185, 133, 0.64);
  border-radius: 50%;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.legal-register {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  border-top: 0 solid transparent;
  background:
    linear-gradient(180deg, rgba(185, 154, 88, 0.06) 0%, rgba(185, 154, 88, 0) 8rem),
    var(--black);
  color: rgba(232, 219, 192, 0.82);
}

.legal-register:target {
  max-height: none;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  border-top: 1px solid var(--gold-faint);
}

.legal-register__inner {
  width: min(72rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.legal-register__heading {
  display: grid;
  align-content: start;
  gap: 0.72rem;
}

.legal-register__kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
}

.legal-register__draft {
  width: fit-content;
  margin: 0.7rem 0 0;
  border: 1px solid rgba(185, 154, 88, 0.42);
  padding: 0.48rem 0.62rem;
  color: rgba(232, 219, 192, 0.8);
  font-size: 0.64rem;
  background: rgba(63, 8, 13, 0.24);
}

.legal-register__close {
  width: fit-content;
  margin-top: 1.1rem;
  color: rgba(232, 219, 192, 0.68);
  font-size: 0.68rem;
}

.legal-register__close:hover,
.legal-register__close:focus-visible {
  color: var(--ivory);
}

.legal-register h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5.75rem);
  font-weight: 500;
  line-height: 0.92;
}

.legal-register__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.legal-register__item {
  border-top: 1px solid rgba(185, 154, 88, 0.22);
  padding-top: 0.9rem;
}

.legal-register__item--wide {
  grid-column: 1 / -1;
}

.legal-register dt {
  margin: 0 0 0.62rem;
  color: rgba(185, 154, 88, 0.78);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.legal-register dd {
  margin: 0;
  color: rgba(232, 219, 192, 0.76);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-register dd p {
  margin: 0;
}

.legal-register dd p + p {
  margin-top: 0.8rem;
}

.legal-register dd p + ul {
  margin-top: 0.7rem;
}

.legal-register dd ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-register dd li + li {
  margin-top: 0.3rem;
}

.legal-register dd a {
  color: rgba(232, 219, 192, 0.88);
  text-decoration: underline;
  text-decoration-color: rgba(185, 154, 88, 0.42);
  text-underline-offset: 0.18em;
}

.legal-register dd a:hover,
.legal-register dd a:focus-visible {
  color: var(--ivory);
  text-decoration-color: currentColor;
}

.legal-register dd code {
  color: rgba(232, 219, 192, 0.88);
  font-family: var(--font-registry);
  font-size: 0.92em;
}

@media (max-width: 1300px) {
  h1 {
    font-size: 10.6rem;
  }

  .subline {
    font-size: 1.56rem;
  }

  .motto {
    font-size: 1.26rem;
  }
}

@media (max-width: 980px) {
  .hero {
    background-position: 58% center;
  }

  .hero-copy {
    left: 2rem;
    right: 2rem;
    top: 20svh;
  }

  .eyebrow {
    margin-left: 0;
  }

  h1 {
    font-size: 7.4rem;
  }

  .subline {
    max-width: 21rem;
  }

  .rail {
    display: none;
  }

  .registry-links {
    left: 2rem;
    right: 2rem;
    bottom: 6.8rem;
    max-width: calc(100vw - 4rem);
  }

  .register-cta {
    left: 2rem;
    right: auto;
    bottom: 2rem;
  }

  .legal-register__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
    background-position: 62% center;
  }

  .hero::before {
    background:
      radial-gradient(ellipse at 73% 66%, rgba(3, 2, 1, 0.46) 0%, rgba(3, 2, 1, 0.28) 23%, rgba(3, 2, 1, 0.08) 44%, rgba(3, 2, 1, 0) 58%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.22) 100%);
  }

  .hero-copy {
    left: 1.18rem;
    right: 1.18rem;
    top: 18svh;
  }

  .eyebrow {
    margin-bottom: 1.35rem;
    font-size: 0.66rem;
  }

  h1 {
    font-size: 4rem;
    line-height: 0.9;
  }

  .subline {
    max-width: 16rem;
    margin-top: 1.15rem;
    font-size: 1.16rem;
  }

  .motto {
    font-size: 1rem;
  }

  .registry-links {
    left: 1.18rem;
    right: 1.18rem;
    bottom: 5.95rem;
    gap: 0.68rem 0.85rem;
    max-width: calc(100vw - 2.36rem);
    font-size: 0.62rem;
  }

  .register-cta {
    left: 1.18rem;
    bottom: 1.18rem;
    min-width: min(17rem, calc(100vw - 2.36rem));
    min-height: 3.15rem;
    padding: 0.68rem 0.72rem 0.68rem 1.16rem;
    font-size: 0.98rem;
  }

  .cta-status {
    font-size: 0.56rem;
  }

  .cta-seal {
    width: 1.9rem;
    height: 1.9rem;
  }

  .legal-register__inner {
    width: calc(100% - 2.36rem);
    padding: 3rem 0;
  }

  .legal-register__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 3.6rem;
  }

  .registry-links {
    font-size: 0.58rem;
  }
}

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

  .registry-links a,
  .registry-links a::after {
    transition: none;
  }
}
