:root {
  --bg: #000;
  --fg: #f4f1ea;
  --fg-dim: rgba(244, 241, 234, 0.72);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
}

main {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: grab;
  touch-action: none;
}
#scene:active { cursor: grabbing; }

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}
.bar a { color: var(--fg); text-decoration: none; }
.bar__brand { font-size: 20px; letter-spacing: 0.04em; }
.bar__skip {
  font-size: 14px;
  color: var(--fg-dim);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.bar__skip:hover { color: var(--fg); }

.loader {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.loader__ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(244, 241, 234, 0.25);
  border-top-color: var(--fg);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hint {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 2147483647;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(244, 241, 234, 0.25);
  font-size: 15px;
  pointer-events: none;
  white-space: nowrap;
}

.spline-logo-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483647;
  height: 160px;
  background: linear-gradient(to top, #000 0, #000 56px, transparent 100%);
  pointer-events: none;
}
body.is-fallback .spline-logo-fade { display: none; }

.fallback { display: none; }
body.is-fallback #scene,
body.is-fallback .loader { display: none; }
body.is-fallback .fallback {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 80px 24px 40px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94)), #000;
}
.fallback h1 { margin: 0; font-weight: normal; font-size: clamp(26px, 4vw, 40px); }
.fallback p { margin: 0 0 14px; color: var(--fg-dim); }
.fallback__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}
.fallback__list a {
  color: var(--fg);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: 999px;
  font-size: 15px;
}
.fallback__list a:hover { background: rgba(244, 241, 234, 0.12); }
.fallback__all { margin-top: 18px; color: var(--fg-dim); }

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  text-align: center;
  padding: 16px;
}
.noscript a { color: var(--fg); }
