body > header, body > footer {
  position: relative;
  z-index: 3;
}

body .hero {
  position: relative;
  overflow: clip;
  background: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, #090d10b0, #090d10bc), url(assets/cosmos-v2.webp) center / cover;
  pointer-events: none;
}

#universe, #solar-system, #astronaut-tail {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#universe { z-index: 1; opacity: .65; }
#solar-system { z-index: 1; opacity: .68; }
#astronaut-tail { z-index: 119; }

.hero main {
  position: relative;
  z-index: 2;
}

@media (min-width: 741px) {
  .hero main {
    align-items: start;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

@media (min-width: 1101px) and (max-height: 850px) {
  .hero main { padding-block-start: 56px; }
}

@media (min-width: 741px) and (max-width: 1100px) {
  .hero main {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 34px);
    padding-block: clamp(32px, 5vw, 55px);
  }
  .hero main h1 {
    font-size: clamp(3.25rem, 6.5vw, 4.8rem);
  }
  .hero .panel {
    padding: clamp(18px, 2.5vw, 27px);
  }
  .hero .panel h2 {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
  }
  .hero .training-links a {
    padding-inline: 5px;
    overflow-wrap: anywhere;
  }
}

.method-intro {
  max-width: 34rem;
  margin-top: 22px;
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid #e2bb7980;
  border-radius: 15px;
  background: linear-gradient(145deg, #101e29eb, #09121bc9);
  box-shadow: inset 0 1px 0 #e2bb7940, 0 12px 28px #0005;
}
.method-intro h2 {
  color: var(--gold);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.06;
}
.method-intro sup { font-size: .5em; }
.method-intro p { color: var(--muted); margin-block: 10px; }
.method-intro .method-focus { color: var(--gold); }
.method-intro a { color: var(--gold); text-underline-offset: .2em; }
.method-intro .method-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  margin-inline: auto;
  padding: 10px 18px;
  text-align: center;
  border-radius: 8px;
  background: var(--gold);
  color: #0b1014;
  font-weight: 700;
  text-decoration: none;
}
.training-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}
.training-links a {
  display: grid;
  align-content: center;
  text-align: center;
  padding: 7px 8px;
  border: 1px solid #e2bb7970;
  border-radius: 8px;
  line-height: 1.25;
  text-decoration: none;
}
.training-links a:hover { background: #e2bb7920; }
.training-links span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
}
#contact-panel { scroll-margin-top: 18px; }
.signup-check { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup-privacy { margin: 0; }
#contact-panel button[type="submit"] {
  min-height: 52px;
  padding-block: 12px;
  font-size: 1.0625rem;
}
#contact-panel select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 7px 12px;
  border: 1px solid #ffffff42;
  border-radius: 9px;
  background: #080f14d9;
  color: var(--ink);
  font: inherit;
}

#contact-panel form :is(input:not([type="radio"]), select) {
  border: 1px solid #e2bb79b8;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #ffe2a833, inset 0 -1px 0 #a574352e;
}

#contact-panel form :is(input:not([type="radio"]), select):focus {
  border-color: #ffe2a8;
}

@media (forced-colors: none) {
  #contact-panel .choices input[type="radio"] {
    appearance: none;
    flex: 0 0 18px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: #080f14c9;
  }
  #contact-panel .choices input[type="radio"]:checked {
    background: radial-gradient(circle, var(--gold) 0 45%, #080f14 49%);
  }
}

.waitlist-orb {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: calc(50% - 140px);
  width: clamp(145px, 18vw, 230px);
  opacity: .8;
  pointer-events: none;
  filter: drop-shadow(0 0 30px #b991514d);
}

.waitlist-orb img { width: 100%; display: block; }

@media (max-width: 740px) {
  .waitlist-orb { left: auto; right: 9%; top: 78px; width: clamp(85px, 32vw, 170px); opacity: .40; }
}

.sketch-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sketch-backdrop .constellation {
  position: absolute;
  width: clamp(180px, 34vw, 520px);
  opacity: .30;
}

.sketch-backdrop img { display: block; width: 100%; }
.movement-studies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2bb7938;
}
.movement-studies figure img { height: clamp(80px, 11vw, 137px); }
.movement-studies figcaption { margin-top: 4px; }

.study-ball {
  position: absolute;
  inset: 12% 6% auto auto;
  width: clamp(25px, 24%, 65px);
  aspect-ratio: 1;
  background: var(--ball-art) center / contain no-repeat;
  opacity: .64;
  pointer-events: none;
  animation: study-ball-float 11s ease-in-out infinite alternate;
}
.cricket-ball { --ball-art: url(assets/hero-ball-v4.webp); }
.baseball-ball {
  --ball-art: url(assets/mlb-baseball-v2.webp);
  inset-inline: 6% auto;
  animation-delay: -5s;
}
@keyframes study-ball-float {
  from { transform: translate(-7px, 8px) rotate(-18deg); }
  to { transform: translate(8px, -9px) rotate(80deg); }
}

.hero .panel {
  background: linear-gradient(145deg, #17263199, #080f1766);
  border: 1px solid #d8ad6cc9;
  border-top-color: #ffe2a8;
  border-left-color: #e8c689;
  box-shadow:
    inset 0 1px 0 #fff0bd70,
    inset 0 0 0 3px #e2bb791c,
    0 6px 0 #50391e,
    0 7px 0 #bd904a70,
    0 18px 34px #0009;
}

.hero .panel :is(h2, label, legend, .note) {
  text-shadow: 0 1px 4px #05080d, 0 0 9px #05080db3;
}

@media (max-width: 740px) {
  .hero main {
    padding-top: 16px;
  }
  .hero .panel {
    grid-row: 1;
  }
  .hero .panel input:not([type="radio"]) {
    background: #080f14c9;
  }
  .sketch-backdrop .anatomy {
    top: 1%;
    left: -8%;
    width: 63%;
    opacity: .58;
  }
  .sketch-backdrop .samurai {
    top: 18%;
    bottom: auto;
    right: -14%;
    width: 78%;
    opacity: .53;
  }
}
.anatomy { top: -7%; left: -9%; }
.samurai { bottom: -15%; right: -8%; }
.golfer { top: 32%; left: 37%; }

.constellation img {
  animation: sketch-drift 12s ease-in-out infinite alternate;
}

.constellation:nth-child(even) { --phase: -7s; }
.constellation img, .sketch-orbit, .sketch-orbit::before, .sketch-orbit::after {
  animation-delay: var(--phase, 0s);
}

.sketch-orbit {
  position: absolute;
  inset: 4% 6% 12%;
  pointer-events: none;
  transform: rotate(-30deg);
  animation: orbit-tilt 14s ease-in-out infinite alternate;
}

.sketch-orbit::before, .sketch-orbit::after {
  content: "";
  position: absolute;
  inset: 17% 2%;
  border: 1px solid #e2bb7970;
  border-radius: 50%;
}

.sketch-orbit::after {
  inset: 0;
  width: 6px;
  height: 6px;
  border: 0;
  background: #fff3d7;
  box-shadow: 0 0 7px 2px #e2bb79, 0 0 20px 3px #e2bb7970;
  offset-path: ellipse(48% 33% at 50% 50%);
  animation: orbit-spark 8s linear infinite;
  animation-delay: var(--phase, 0s);
}

@keyframes sketch-drift {
  from { transform: translate(-2px, 5px) rotate(-2deg); }
  to { transform: translate(3px, -8px) rotate(2deg); }
}
@keyframes orbit-tilt {
  from { transform: rotate(-38deg) scaleY(.92); }
  to { transform: rotate(10deg) scaleY(1.04); }
}
@keyframes orbit-spark { to { offset-distance: 100%; } }

@media (any-pointer: fine) {
  html, html body, body button:disabled {
    cursor: url("assets/cursor-gold.svg?v=comic") 3 2, auto;
  }
  body a, body button:not(:disabled), body select, body input[type=radio], body .choices label {
    cursor: url("assets/cursor-gold-hand.svg?v=comic") 12 3, pointer;
  }
  body input:not([type=radio]) {
    cursor: url("assets/cursor-gold-text.svg") 16 16, text;
  }
}

#space-cowboy {
  position: fixed;
  left: 0;
  top: 0;
  width: 164.414px;
  height: 193.008px;
  opacity: 0;
  z-index: 120;
  pointer-events: none;
  will-change: transform;
  transition: opacity .2s;
}
#space-cowboy img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px #0008);
}
#space-cowboy.visible:not(.sleep), #space-cowboy.visible.touch-companion { opacity: 1; }
#space-cowboy.touch-companion { width: 100px; height: 117.4px; }
@media (max-width: 599px) {
  #space-cowboy.touch-companion { width: 78px; height: 91.572px; }
}

footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
}

footer button.motion-toggle {
  width: auto;
  background: transparent;
  color: var(--gold);
  padding: 4px 6px;
  min-height: 32px;
  font-size: .75rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: .2em;
}
footer .design-credit {
  flex-basis: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 187, 117, .28);
  color: var(--gold);
  font-size: .8rem;
}
.motion-paused .constellation img,
.motion-paused .study-ball,
.motion-paused .sketch-orbit,
.motion-paused .sketch-orbit::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  body:not(.motion-enabled) .constellation img,
  body:not(.motion-enabled) .study-ball,
  body:not(.motion-enabled) .sketch-orbit,
  body:not(.motion-enabled) .sketch-orbit::after { animation-play-state: paused; }
}
