#home {
  background: #006a66;
  overflow: clip;
}
#home .phase-poster {
  position: relative;
  width: min(100%, calc(100svh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  container-type: inline-size;
  overflow: visible;
}
.phase-hand,
.phase-transition {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.phase-hand {
  overflow: visible;
  transform-origin: 0 0;
}
.phase-signature {
  position: absolute;
  right: 6%;
  top: 3%;
  color: #f5efd9;
  text-shadow: 0 1px 3px #032927;
  font: italic 800 clamp(12px, 1.6cqw, 28px) Arial, sans-serif;
}
.phase-menu {
  position: absolute;
  top: calc(66% + clamp(5px, 1.45cqw, 30px));
  left: 33%;
  display: grid;
  gap: 1.1cqw;
  width: 34%;
  z-index: 1;
}
#home .phase-menu button {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 28px;
  padding: .9cqw 2.6cqw;
  isolation: isolate;
  background: transparent;
  border: 0;
  clip-path: none;
  box-shadow: none;
  color: #f5efd9;
  font: italic 900 clamp(13px, 3.55cqw, 68px)/1 Arial, sans-serif;
  letter-spacing: -.055em;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-5deg);
  transition: transform 140ms ease-out, color 120ms ease-out;
}
.phase-menu button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f5efd9;
  clip-path: polygon(3% 12%, 100% 0, 93% 85%, 0 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 140ms ease-out;
}
#home .phase-menu button[data-selected=true] {
  color: #030b0a;
  transform: translateX(-3%) rotate(-8deg) scale(1.07);
}
.phase-menu button[data-selected=true]::before { transform: scaleX(1); }
#home .phase-menu button[aria-disabled=true] { cursor: default; }
#home .phase-menu button:focus-visible { outline: 2px solid #f5efd9; outline-offset: 2px; }
#home [data-state=confirm] #start { color: #030b0a; transform: rotate(-8deg) scale(.98); }
[data-state=confirm] #start::before { background: #f4cc55; }
.phase-transition { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  [data-state=entrance] .phase-menu button {
    animation: phase-menu-in 250ms both ease-out;
  }
  [data-state=entrance] .phase-menu button:nth-child(2) { animation-delay: 65ms; }
  [data-state=confirm] .phase-hand { animation: phase-hand-push 150ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  #home .phase-menu button, .phase-menu button::before { transition: none; }
}
@keyframes phase-menu-in {
  from { opacity: 0; translate: 1.4cqw -1cqw; scale: .96; }
}
@keyframes phase-hand-push {
  50% { translate: .28cqw .12cqw; }
}

.phase-fragments { visibility: hidden; }
#home [data-state=confirm] #start::before { background: #f4cc55; }
#home [data-state=confirm] .phase-hand { animation: none; }
.phase-transition {
  position: fixed;
  z-index: 9999;
  overflow: hidden;
  background: #030b0a;
  visibility: hidden;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}
.phase-transition[data-active] { visibility: visible; }
.phase-transition i {
  position: absolute;
  inset: 0;
  translate: -115% 0;
  background: #006a66;
  clip-path: polygon(0 0, 23% 0, 12% 100%, 0 100%);
}
.phase-transition i + i {
  background: #f5efd9;
  clip-path: polygon(22% 0, 26% 0, 15% 100%, 11% 100%);
}
@media (prefers-reduced-motion: reduce) {
  .phase-transition { clip-path: none; opacity: 0; }
}

