/* Lab entrance: the prism, the headline set low and flush-left, then the index of five marks. */

.entrance {
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.entrance-inner {
  min-height: 100%;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: max(500px, calc(100dvh - var(--top) - 262px));
  display: flex;
  align-items: flex-end;
  padding-bottom: 44px;
}

.hero-prism {
  position: absolute;
  left: 66%;
  top: 9%;
  width: clamp(92px, 8.6vw, 132px);
  aspect-ratio: 1;
  rotate: var(--tilt, 0deg);
  transition: rotate .6s var(--ease);
  animation: prism-in 1.1s .1s var(--ease) both;
}
.prism { display: block; width: 100%; height: 100%; overflow: visible; }

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 980px; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; }

.kicker { color: var(--ink-2); }

.hero-title {
  font-weight: 620;
  font-size: clamp(60px, 8.9vw, 134px);
  line-height: .86;
  letter-spacing: -.058em;
  margin-left: -.05em;
}
.hero-line { display: block; }

/* Eyes in "eyes": a pupil sits in each e's counter and looks at the prism, or at your pointer. */
.eye-e { position: relative; display: inline-block; }
.pupil {
  position: absolute;
  left: 51%;
  top: 46%;
  width: .084em;
  height: .084em;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 0px)) scaleY(var(--lid, 1));
  transition: transform .12s ease-out;
}
.pupil::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 16%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--paper);
}
.hero-title.is-blink .pupil { --lid: .08; transition-duration: .07s; }

/* "guessing." splits into spectral fringes while things move. */
.disperse {
  text-shadow:
    calc(var(--dx, 0px) * -1) calc(var(--dy, 0px) * -1) 0 rgba(47, 211, 255, .85),
    var(--dx, 0px) var(--dy, 0px) 0 rgba(255, 87, 207, .8),
    calc(var(--dy, 0px) * .6) calc(var(--dx, 0px) * .45) 0 rgba(255, 201, 58, .85);
}

.hero-intro { font-size: 19px; line-height: 1.4; color: var(--ink-2); max-width: 30em; letter-spacing: -.01em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes prism-in { from { opacity: 0; transform: translateY(-14px) rotate(-8deg) scale(.9); } }

/* Index of exhibits: five stations along one hairline, not a card grid. */
.index { padding: 0 0 30px; scroll-margin-top: 24px; }
.index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.index-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.index-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.ix-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ix-item + .ix-item { border-left: 1px solid var(--hair); }
.ix-link {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  height: 100%;
  padding: 16px 22px 8px 0;
  text-decoration: none;
  outline-offset: -2px;
}
.ix-item + .ix-item .ix-link { padding-left: 22px; }
.ix-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ix-mark { display: block; width: 58px; height: 58px; transition: transform .45s var(--ease); }
.ix-mark .mark { display: block; width: 100%; height: 100%; }
.ix-name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 620; letter-spacing: -.025em; }
.ix-name .icon { width: 17px; height: 17px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
.ix-hook { font-size: 14px; line-height: 1.38; color: var(--ink-3); max-width: 22em; }
.ix-link:hover .ix-mark, .ix-link:focus-visible .ix-mark { transform: translateY(-4px) rotate(-4deg); }
.ix-link:hover .ix-name .icon, .ix-link:focus-visible .ix-name .icon { opacity: 1; transform: none; }
.ix-link:hover .ix-name span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .entrance-inner { padding: 0 32px; }
  .ix-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .ix-item + .ix-item { border-left: 0; }
  .ix-item .ix-link, .ix-item + .ix-item .ix-link { padding: 16px 20px 12px 0; }
}

@media (max-width: 760px) {
  .entrance-inner { padding: 0 20px; }
  .hero { min-height: calc(100svh - var(--top) - 16px); padding-bottom: 28px; }
  .hero-prism { left: auto; right: 9%; top: 5%; width: 84px; }
  .hero-copy { gap: 16px; }
  .hero-title { font-size: clamp(50px, 15vw, 72px); line-height: .88; }
  .hero-intro { font-size: 17px; }
  .hero-cta { flex-direction: column; align-self: stretch; gap: 10px; }
  .hero-cta .pill { width: 100%; justify-content: space-between; }

  .index { padding-top: 12px; }
  .ix-list { grid-template-columns: 1fr; row-gap: 0; }
  .ix-item + .ix-item { border-top: 1px solid var(--hair); }
  .ix-item .ix-link, .ix-item + .ix-item .ix-link {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 3px;
    padding: 16px 0;
    align-items: center;
  }
  .ix-top { display: none; }
  .ix-mark { grid-row: 1 / 3; width: 52px; height: 52px; }
  .ix-name { font-size: 18px; justify-content: space-between; }
  .ix-name .icon { opacity: 1; transform: none; }
  .ix-hook { font-size: 14px; }
}
