/* Overlays on top of the scene: hero, dots, CTA, legal, paper */

/* ------------------------------------------------------------ overlays */
.hero {
  position: absolute; left: 0; right: 0; top: 14vh; z-index: 5;
  text-align: center; padding: 0 20px; pointer-events: none;
}

.kicker { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #cfd6ff; opacity: .8; }

.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(34px, 6.4vw, 84px); line-height: 1.04;
  color: #fff; text-shadow: 0 4px 40px #0a0f3d, 0 0 60px #7b8cff55;
}

.hero h1 em { color: var(--accent-strong); }

.chapter { display: none !important;
  position: absolute; left: clamp(16px, 4vw, 44px); top: 50%; z-index: 5;
  display: flex; flex-direction: column; gap: 8px; max-width: 220px;
  transform: translateY(-50%); pointer-events: none; opacity: 0;
  transition: opacity .5s;
}

.chapter span { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--accent-strong); }

.chapter b { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 28px); line-height: 1.15; color: #fff; text-shadow: 0 2px 20px #0a0f3d; }

.dots { position: absolute; right: clamp(12px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 5; }

/* Clickable chapter markers (a video scrubber's chapter marks): the
   visible dot stays exactly as small as before -- ::before adds an
   invisible, absolutely-positioned (out of flow, doesn't touch the
   flex gap/spacing above) hit area around it so it's still comfortably
   clickable/tappable without changing how the indicator looks. */
.dots i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ffffff30; transition: background .3s, box-shadow .3s, transform .3s; cursor: pointer; }

.dots i::before { content: ""; position: absolute; inset: -10px; }

.dots i:hover { background: #ffffff60; }

.dots i.on { background: var(--accent-strong); box-shadow: 0 0 12px var(--accent); transform: scale(1.4); }

.dots i:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

.hint { position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #cfd6ff; pointer-events: none; }

.hint i { width: 1px; height: 38px; background: linear-gradient(#cfd6ff, transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }

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

.cta {
  position: absolute; left: 0; right: 0; top: 9vh; z-index: 6; text-align: center;
  padding: 0 20px; opacity: 0; pointer-events: none;
}

.cta h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.05; color: #fff; text-shadow: 0 4px 40px #0a0f3d; }

.cta h2 em { color: var(--accent-strong); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: var(--accent); color: #150E20; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 40px #a78bfa66; }

.btn em { background: #150E2022; padding: 2px 8px; border-radius: 999px; font-size: 10px; }

.cta.on { pointer-events: auto; }

/* -------------------------------------------------------------- footer */
footer { background: #070a22; border-top: 1px solid var(--line); padding: 56px 20px 64px; }

.foot-in { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.foot-in p { margin: 0; color: var(--muted); line-height: 1.6; }

.foot-links { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }

.foot-in small { color: var(--muted); opacity: .6; font-size: 12px; }

@media (max-width: 820px) {
  .chapter { top: 76px; bottom: auto; left: 0; right: 0; max-width: none; align-items: center; text-align: center; transform: none; }

  .hint { bottom: 2.5vh; }
  .hero { top: 12vh; }
}

/* ------------------------------------------------------------------ legal */
.legal { position: absolute; left: 0; right: 0; bottom: 2.2vh; z-index: 6; padding: 0 20px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s; }

.legal.on { pointer-events: auto; }

.legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.legal a { color: var(--accent-strong); }

.legal a:hover { color: #fff; }

.legal p { margin: 0 auto; max-width: 720px; font-size: 11px; line-height: 1.6; color: var(--muted); }

.legal p { max-width: none; white-space: nowrap; font-size: min(10px, .85vw); line-height: 1.4; }

@media (max-width: 820px) { .legal p { white-space: normal; max-width: 440px; font-size: 9px; } }

/* sheet of paper that slides onto the desk with the legal links */
.paper { position: absolute; left: -230px; top: -90px; width: 460px; height: 180px; z-index: 6; opacity: 0; pointer-events: none; will-change: transform; }

.paper.on { pointer-events: auto; }

.paper-in { position: absolute; inset: 0; padding: 22px 30px; border-radius: 4px; display: flex; flex-direction: column; gap: 14px; color: #241735;
  background: linear-gradient(115deg, #b4aed6 0%, #9d97c4 55%, #8a84b0 100%);
  box-shadow: 0 18px 30px #05081c99, 0 2px 0 #ffffff40 inset, 0 -3px 0 #6f68a0 inset; }

.paper-in::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, transparent 49.6%, #2417351a 50%, transparent 50.4%), linear-gradient(transparent 49.6%, #2417351a 50%, transparent 50.4%); pointer-events: none; }

.paper-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #6d4fd1; }

.paper-links { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; align-content: center; }

.paper-links a { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #241735; padding: 10px 0; border-bottom: 1.5px solid #6d4fd155; transition: color .2s, border-color .2s; }

.paper-links a:hover { color: #6d4fd1; border-color: #6d4fd1; }

.legal nav { display: none; }

/* chapter dots stay on the right edge on every device (never in a row at the bottom) */
@media (max-width: 820px) { .dots { right: 8px; gap: 10px; } .dots i { width: 7px; height: 7px; } }
