/* The turntable fills the open space between the studio name and the member routes. */
#home {
  --hero-pad: clamp(1.25rem, 4.8vw, 4.75rem);
  gap: 0 clamp(1.25rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .73fr);
  grid-template-rows: 1fr auto;
  min-height: clamp(32rem, 75svh, 48rem);
  padding: clamp(2.25rem, 6vh, 5rem) var(--hero-pad) 0;
  border-color: #58495e;
}
#home::after {
  background: linear-gradient(90deg, #100b17e8 0%, #120b1599 28%, transparent 61%, #100a1580),
    linear-gradient(0deg, #110b16fa, transparent 35%, transparent 80%, #140c1838);
}
#home .home-film { object-position: 50% 36%; }
.home-intro { padding: 1.5rem 0; }
#home-title { font-size: clamp(4.8rem, 8vw, 7.4rem); line-height: .9; }
#home-title em { margin-left: .36em; }
.home-description { margin-top: 1.45rem; color: #f0e8f2; }
#home .socials { margin-top: 1.15rem; gap: .25rem; }
#home .socials a { width: 44px; height: 44px; border-color: transparent; background: #19121f85; }
#home .socials a:is(:hover,:focus-visible) { background: #3c2c48; border-color: #a98ab0; }
#home .home-destinations { gap: 0; }
#home .home-destinations a {
  padding: 1.25rem 1.35rem;
  border: 0;
  border-block-start: 1px solid #beaaca80;
  background: #160f1ddb;
  color: #f6edf9;
}
#home .home-destinations a:first-child {
  color: #221628;
  background: #eadbed;
  border-top-color: transparent;
  border-radius: 4px 4px 0 0;
}
#home .home-destinations a:last-child { border-bottom: 1px solid #beaaca80; }
#home .home-destinations strong { line-height: 1.1; font-size: clamp(1.9rem, 3vw, 2.65rem); }
#home .home-destinations small { display: block; margin-top: .28rem; font-size: .84rem; }
#home .home-destinations b {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 50%;
}
#home .home-ellen {
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-self: stretch;
  border-top: 1px solid #bfa7cc66;
  padding-block: .9rem;
  text-decoration: none;
  color: var(--ink);
}
.home-ellen img { object-fit: cover; object-position: 50% 26%; border-radius: 3px; }
.home-ellen strong, .home-ellen small { display: block; }
.home-ellen strong { font: 400 1.65rem/1.1 var(--serif); }
.home-ellen small { font-size: .8rem; color: var(--soft); }
.home-ellen b { margin-left: auto; font-size: 1.25rem; font-weight: normal; }
@media (max-width: 720px) {
  #home { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; gap: 1rem; min-height: min(45rem, 83svh); padding: 1.35rem 1.15rem 0; }
  #home::after { background: linear-gradient(90deg,#110b16aa,transparent),linear-gradient(0deg,#110b16 2%,#110b1638 65%); }
  #home-title { font-size: clamp(3.9rem, 16vw, 5.4rem); }
  .home-intro { padding-block: 1rem; }
  .home-description { margin-top: .8rem; }
  #home .home-destinations a { padding: .9rem 1rem; }
  #home .home-ellen { padding-block: .65rem; }
  .home-ellen img { width: 38px; height: 46px; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-intro { animation: studio-arrive .52s cubic-bezier(.16,1,.3,1) both; }
  .home-destinations { animation: studio-arrive .55s .06s cubic-bezier(.16,1,.3,1) both; }
  .home-ellen b, .home-destinations b { transition: transform .2s ease; }
  #home .home-destinations a:is(:hover,:focus-visible) { transform: none; }
  #home .home-destinations a:is(:hover,:focus-visible) b { transform: translateX(4px); }
  #home .home-ellen:is(:hover,:focus-visible) b { transform: translate(2px,-2px); }
}
@keyframes studio-arrive { from { opacity: .35; transform: translateY(9px); } to { opacity: 1; transform: none; } }

#home .available-link { position: relative; }
.winged-cube {
  position: absolute;
  right: 100%;
  width: 4.75rem;
  aspect-ratio: 144 / 141;
  background: url("/images/winged-cube.png") 25% center / 500% 100% no-repeat;
}
#home .available-link b { background: #d6fa76; color: #251d30; }
@keyframes cube-flap {
  0%, 100% { background-position-x: 0%; }
  25.69% { background-position-x: 25%; }
  51.39% { background-position-x: 50%; }
  79.17% { background-position-x: 75%; }
  86.11% { background-position-x: 100%; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-destinations:hover .winged-cube { animation: cube-flap 1.44s step-end infinite; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-destinations:has(a:focus-visible) .winged-cube { animation: cube-flap 1.44s step-end infinite; }
}
@media (max-width: 960px) {
  .winged-cube { position: static; width: clamp(2.5rem, 6vw, 3.5rem); flex: none; }
}

@media (min-width: 961px) {
  #home { column-gap: clamp(10rem, 17vw, 16rem); }
  #home .home-destinations { position: relative; }
  #home .available-link { position: static; transform: none; }
  #home .home-destinations .available-link:is(:hover,:focus-visible) { transform: none; }
  .winged-cube {
    right: calc(100% + .4rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(10rem, 17vw, 16rem);
  }
}