:root {
  color: #101010;
  background: #fff;
  font-family: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; margin: 0; }

body { overflow: hidden; background: #fff; }

button, a { -webkit-tap-highlight-color: transparent; }

.stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #fff;
}

.name {
  position: absolute;
  top: 5.2%;
  left: 2.45%;
  z-index: 2;
  color: #0b0b0b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 2.75rem);
  letter-spacing: .06em;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  animation: appear .8s .15s ease-out forwards;
}

.ticket, .menu-ticket {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  filter: drop-shadow(0 3px 2px rgb(0 0 0 / .12));
  transform-origin: center;
}

.ticket img, .menu-ticket img { display: block; width: 100%; height: auto; }

.ticket-artwork { top: 2.8%; left: 31.5%; width: 8.4%; animation: drop-in .72s .45s ease-out forwards; }
.ticket-projects { top: 2.9%; left: 43.4%; width: 8.35%; animation: drop-in .72s .65s ease-out forwards; }
.ticket-about { top: 3%; left: 55.3%; width: 8.55%; animation: drop-in .72s .85s ease-out forwards; }
.menu-ticket { top: 2.8%; right: 1.8%; width: 4.7%; animation: drop-in .72s 1.05s ease-out forwards; }

.ticket:hover, .ticket:focus-visible { transform: translateY(-7px) rotate(-1deg) scale(1.03); filter: drop-shadow(0 8px 4px rgb(0 0 0 / .16)); }
.ticket-projects:hover, .ticket-projects:focus-visible { transform: translateY(-7px) rotate(1deg) scale(1.03); }
.menu-ticket:hover, .menu-ticket:focus-visible { transform: rotate(3deg) scale(1.05); }
.ticket:focus-visible, .menu-ticket:focus-visible, .close:focus-visible { outline: 2px dashed #111; outline-offset: 6px; }

.face {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -16.2vw;
  width: min(47vw, 900px);
  aspect-ratio: 1;
  transform: translateX(-50%) translateY(42%);
  animation: rise 1.25s 1.05s cubic-bezier(.16,.82,.27,1) forwards;
  pointer-events: none;
}

.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pupil { will-change: transform; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  border: 0;
  background: rgb(255 255 255 / .62);
  backdrop-filter: blur(3px);
}

.panel {
  position: fixed;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 36px));
  min-height: 280px;
  padding: 42px;
  border: 1px solid #171717;
  background: #fff;
  box-shadow: 10px 10px 0 #111;
  transform: translate(-50%, -50%);
}

.panel[hidden], .backdrop[hidden] { display: none; }
.panel-kicker { margin: 0 0 42px; font-size: .8rem; letter-spacing: .14em; }
.panel h1 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 7vw, 4.4rem); font-weight: 400; }
.panel p:last-child { max-width: 34ch; margin: 0; font-size: 1rem; line-height: 1.55; }
.contact-links { display: grid; gap: 18px; }
.contact-links a { color: inherit; text-underline-offset: 4px; }
.contact-links a:hover, .contact-links a:focus-visible { opacity: .5; }
.panel.panel-projects { width: min(840px, calc(100vw - 36px)); min-height: 0; padding: 46px 20px 20px; }
.panel-projects .panel-kicker { display: none; }
.panel-projects #panel-copy { max-width: none; }
.projects-placeholder { display: block; width: 100%; height: auto; }
.close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font: 2rem/1 Georgia, serif; cursor: pointer; }

@keyframes appear { to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { to { transform: translateX(-50%) translateY(0); } }

@media (max-width: 760px) {
  body { overflow: auto; }
  .stage { min-height: 720px; }
  .name { top: 5%; left: 6%; font-size: clamp(1.35rem, 7.5vw, 2.2rem); }
  .tickets { position: absolute; top: 16%; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 3vw; padding: 0 5vw; }
  .ticket { position: static; width: 29%; }
  .ticket-artwork, .ticket-projects, .ticket-about { width: 29%; }
  .menu-ticket { top: auto; right: 5%; bottom: 3%; width: 15%; }
  .face { width: min(125vw, 720px); bottom: -30vw; }
  .panel { padding: 34px 28px; box-shadow: 7px 7px 0 #111; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
}
