:root {
  --ink: #050807;
  --night: #07101d;
  --night-soft: #0d1b2c;
  --gold: #d4a34d;
  --gold-light: #f2d796;
  --cream: #f6f0e4;
  --blue: #61b8df;
  --muted: #b8bac0;
  --line: rgba(240, 211, 145, .22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 10% 3%, rgba(66, 153, 206, .14), transparent 27rem),
    radial-gradient(circle at 90% 40%, rgba(212, 163, 77, .11), transparent 32rem),
    var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold-light);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid rgba(255, 255, 255, .035);
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 70px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(4, 8, 12, .76);
  backdrop-filter: blur(18px);
}

.museum-id {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.museum-id strong,
.museum-id small {
  display: block;
}

.museum-id strong {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  letter-spacing: .06em;
}

.museum-id small {
  margin-top: 1px;
  color: rgba(246, 240, 228, .5);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.museum-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 215, 150, .6);
  border-radius: 50%;
  color: var(--gold-light);
}

.museum-mark i {
  width: 13px;
  height: 23px;
  border: 1px solid currentColor;
  border-radius: 10px 10px 2px 2px;
  box-shadow: 8px 0 18px rgba(97, 184, 223, .22);
}

.return-link {
  color: rgba(246, 240, 228, .66);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.return-link:hover,
.return-link:focus-visible {
  color: var(--gold-light);
}

.threshold {
  position: relative;
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(90px, 12vh, 150px) clamp(24px, 6.5vw, 96px) 110px;
  isolation: isolate;
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, #000 0 70%, transparent);
}

.blue-haze,
.gold-haze {
  position: absolute;
  z-index: -2;
  width: 48vw;
  height: 48vw;
  max-width: 690px;
  max-height: 690px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .15;
}

.blue-haze {
  top: 4%;
  left: -26%;
  background: var(--blue);
}

.gold-haze {
  right: -28%;
  bottom: -8%;
  background: var(--gold);
}

.threshold-copy {
  max-width: 760px;
}

.eyebrow,
.overline {
  margin: 0;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

h1,
h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

h1 {
  max-width: 800px;
  margin: 24px 0;
  font-size: clamp(52px, 6.8vw, 98px);
  line-height: .91;
}

h1 em,
h2 em {
  color: var(--gold-light);
  font-weight: 500;
}

.lede {
  max-width: 680px;
  margin: 0;
  color: rgba(246, 240, 228, .7);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #171006;
  border-color: rgba(242, 215, 150, .78);
  background: linear-gradient(135deg, #f4dea7, #c98d32);
  box-shadow: 0 18px 46px rgba(212, 163, 77, .15);
}

.button-secondary {
  color: rgba(246, 240, 228, .72);
  background: rgba(255, 255, 255, .025);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--cream);
  border-color: rgba(242, 215, 150, .5);
}

.door-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.door-stage p {
  position: absolute;
  right: 0;
  bottom: 24px;
  margin: 0;
  color: rgba(246, 240, 228, .42);
  font-size: 11px;
  letter-spacing: .13em;
  line-height: 1.7;
  text-align: right;
  text-transform: uppercase;
}

.door {
  position: relative;
  width: min(230px, 70%);
  aspect-ratio: .62;
  overflow: hidden;
  border: 2px solid rgba(242, 215, 150, .66);
  border-bottom-width: 5px;
  border-radius: 116px 116px 8px 8px;
  background:
    linear-gradient(90deg, rgba(6, 13, 23, .9) 0 49.5%, transparent 50%),
    radial-gradient(circle at 58% 48%, rgba(244, 206, 117, .64), transparent 4%),
    linear-gradient(145deg, #101f31, #1b1309 64%, #050504);
  box-shadow:
    0 0 0 12px rgba(212, 163, 77, .035),
    0 0 80px rgba(212, 163, 77, .14),
    inset 0 0 60px rgba(97, 184, 223, .12);
}

.door-light {
  position: absolute;
  width: 68%;
  height: 64%;
  right: -18%;
  top: 17%;
  border-radius: 50%;
  background: rgba(218, 177, 91, .22);
  filter: blur(18px);
}

.door-seam {
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(242, 215, 150, .8), transparent);
}

.door-point {
  position: absolute;
  top: 47%;
  right: 29%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px var(--gold-light);
}

.orbit {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 215, 150, .12);
  border-radius: 50%;
}

.orbit-one {
  transform: translate(19%, -8%);
}

.orbit-two {
  width: 62%;
  transform: translate(31%, -4%);
}

.scroll-cue {
  position: absolute;
  left: clamp(24px, 6.5vw, 96px);
  bottom: 34px;
  display: flex;
  gap: 30px;
  align-items: center;
  color: rgba(246, 240, 228, .45);
  font-size: 10px;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}

.orientation {
  padding: clamp(75px, 10vw, 140px) clamp(24px, 6.5vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(10, 22, 36, .55), rgba(5, 8, 7, .2));
}

.section-index {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(246, 240, 228, .36);
  font-size: 10px;
  letter-spacing: .18em;
}

.section-index i {
  width: 76px;
  height: 1px;
  background: rgba(242, 215, 150, .25);
}

.orientation-heading {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 28px;
  margin-top: 56px;
}

.orientation-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 5.1vw, 72px);
  line-height: .98;
}

.orientation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 78px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .09);
}

.orientation-grid article {
  min-height: 260px;
  padding: 30px;
  background: #08101a;
}

.orientation-grid span {
  color: var(--gold);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
}

.orientation-grid h3 {
  margin: 70px 0 12px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.orientation-grid p {
  margin: 0;
  color: rgba(246, 240, 228, .57);
  font-size: 14px;
  line-height: 1.7;
}

.crossing {
  position: relative;
  padding: clamp(90px, 12vw, 165px) 24px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(212, 163, 77, .13), transparent 28rem),
    #050706;
}

.crossing-mark {
  width: 64px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border: 1px solid rgba(242, 215, 150, .5);
  border-radius: 32px 32px 4px 4px;
}

.crossing-mark span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px var(--gold-light);
}

.crossing h2 {
  margin: 12px 0 18px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1;
}

.crossing > p:not(.overline, .small-note) {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(246, 240, 228, .62);
  font-size: 16px;
  line-height: 1.75;
}

.button-wide {
  min-width: min(370px, 100%);
  margin-top: 32px;
}

.small-note {
  margin: 14px 0 0;
  color: rgba(246, 240, 228, .35);
  font-size: 11px;
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(24px, 5vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(246, 240, 228, .34);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .threshold {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 78px;
  }

  .door-stage {
    min-height: 420px;
  }

  .door {
    width: min(190px, 60%);
  }

  .orientation-heading {
    grid-template-columns: 1fr;
  }

  .orientation-grid {
    grid-template-columns: 1fr;
  }

  .orientation-grid article {
    min-height: auto;
  }

  .orientation-grid h3 {
    margin-top: 32px;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 78px;
    padding-inline: 18px;
  }

  .museum-mark {
    width: 36px;
    height: 36px;
  }

  .museum-id strong {
    font-size: 16px;
  }

  .return-link {
    font-size: 9px;
  }

  .threshold {
    gap: 34px;
    padding: 70px 18px 84px;
  }

  h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .lede {
    font-size: 16px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .door-stage {
    min-height: 350px;
  }

  .door-stage p {
    right: 4px;
    bottom: 0;
  }

  .scroll-cue {
    display: none;
  }

  .orientation {
    padding: 70px 18px;
  }

  .orientation-heading {
    margin-top: 40px;
  }

  .orientation-heading h2 {
    font-size: 39px;
  }

  .orientation-grid {
    margin-top: 48px;
  }

  .orientation-grid article {
    padding: 26px;
  }

  .crossing {
    padding-inline: 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 18px;
  }
}

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

  .button {
    transition: none;
  }
}
