@font-face {
  font-family: "Anthropic Mono";
  /* Uses an installed copy first; otherwise drop the file into /fonts */
  src: local("Anthropic Mono"), local("AnthropicMono-Regular"), local("Anthropic Mono Regular"),
    url("fonts/AnthropicMono-Regular.woff2") format("woff2"),
    url("fonts/AnthropicMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --board: #0b0c0c;
  --chalk: #f2efe8;
  --mono: "Anthropic Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--board);
  color: var(--chalk);
  font-family: var(--mono);
  overscroll-behavior: none;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

#board {
  transform-origin: 50% 50%;
  will-change: transform;
}

#track {
  height: 3250vh;
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: rgba(242, 239, 232, 0.5);
  pointer-events: none;
  transition: opacity 300ms ease-out;
}

.hint i {
  width: 1px;
  height: 36px;
  background: linear-gradient(rgba(242, 239, 232, 0), rgba(242, 239, 232, 0.6));
  animation: drip 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-origin: top;
}

@keyframes drip {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.contact-link {
  position: fixed;
  left: 50%;
  top: 70%;
  z-index: 2;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(242, 239, 232, 0.7);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
  border-color: rgba(242, 239, 232, 0.7);
  outline: none;
}

.pantheon {
  position: fixed;
  left: 50%;
  top: calc(50% - 20px);
  z-index: 2;
  width: min(560px, 94vw);
  height: min(480px, 72vh);
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pantheon.grabbing { cursor: grabbing; }
.pantheon:focus-visible { outline: 1px dashed rgba(242, 239, 232, 0.35); outline-offset: 6px; }
.pantheon-cta {
  /* styled exactly like the Contact link, on the same centre line */
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: rgba(242, 239, 232, 0.7);
  padding: 4px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.25);
  opacity: 0;                         /* hidden until the temple is hovered */
  visibility: hidden;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
  pointer-events: none;
}
.pantheon.is-hover .pantheon-cta {
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease-out, visibility 0s;
  animation: cta-glitch 900ms steps(1) infinite;
}
@keyframes cta-glitch {
  0%, 100% { text-shadow: none; transform: translateX(-50%); }
  8% { text-shadow: -2px 0 rgba(255, 59, 59, 0.8), 2px 0 rgba(54, 230, 255, 0.8); transform: translateX(calc(-50% + 2px)); }
  12% { text-shadow: 2px 0 rgba(255, 59, 59, 0.8), -2px 0 rgba(54, 230, 255, 0.8); transform: translateX(calc(-50% - 3px)); }
  16% { text-shadow: none; transform: translateX(-50%); }
  58% { text-shadow: -1px 0 rgba(255, 59, 59, 0.7), 1px 0 rgba(54, 230, 255, 0.7); transform: translateX(calc(-50% + 1px)); }
  62% { text-shadow: none; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .pantheon.is-hover .pantheon-cta { animation: none; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hint i { animation: none; transform: scaleY(1); }
}
