/* Tables: a full-bleed scene, the copy set on its dark side. The stage holds
   for 1.15 screens of scroll: the door at the back opens and the camera walks
   through it into the footer's dimension. The copy and its shade are pinned
   inside the stage with the room, so no edge ever scrolls across it; they
   fade and lift away as the walk begins. */
#tables { height: calc(100vh + 115vh); height: calc(100svh + 115vh); background: #060309; isolation: isolate; }
#tables.is-still { height: 100vh; height: 100svh; }
#tables .tb-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
#tables .tb-stage canvas { width: 100%; height: 100%; }
#tables .tb-first { position: absolute; z-index: 1; inset: 0; pointer-events: none; will-change: opacity, transform; }
/* a soft pool of shade under the words, so the small line reads over the room:
   it fades to nothing in every direction, and arrives with the words after the cut */
#tables .tb-shade {
  position: absolute; inset: -10%;
  background: radial-gradient(ellipse 48% 46% at 28% 72%, rgba(6,3,9,0.66) 0%, rgba(6,3,9,0.5) 34%, rgba(6,3,9,0.2) 66%, rgba(6,3,9,0) 100%);
  opacity: 0; transition: opacity 0.9s cubic-bezier(.2,.7,.2,1);
}
#tables.is-in .tb-shade { opacity: 1; }
#tables .tb-copy a { pointer-events: auto; }

#tables .tb-copy {
  position: absolute; z-index: 1; left: var(--pad); bottom: clamp(48px, 11vh, 120px);
  display: flex; flex-direction: column; align-items: flex-start; max-width: min(46vw, 640px);
}
#tables .tb-name {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 9.4vw, 160px); line-height: 0.86; letter-spacing: -0.04em; color: var(--ink);
}
#tables .tb-call {
  margin: clamp(14px, 2.2vh, 26px) 0 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.7vw, 42px); letter-spacing: 0.01em; color: var(--fire); font-variant-numeric: tabular-nums;
}
#tables .tb-where { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
#tables .tb-cta { margin-top: clamp(20px, 3.4vh, 34px); }

/* the copy rises in as the room arrives */
#tables .tb-copy > * { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
#tables.is-in .tb-copy > * { opacity: 1; transform: none; }
#tables.is-in .tb-copy > :nth-child(2) { transition-delay: 0.12s; }
#tables.is-in .tb-copy > :nth-child(3) { transition-delay: 0.2s; }
#tables.is-in .tb-copy > :nth-child(4) { transition-delay: 0.28s; }

@media (max-width: 759px) {
  #tables .tb-shade { background: radial-gradient(ellipse 70% 34% at 42% 30%, rgba(6,3,9,0.62) 0%, rgba(6,3,9,0.46) 38%, rgba(6,3,9,0.16) 70%, rgba(6,3,9,0) 100%); }
  #tables .tb-copy { left: 20px; right: 20px; top: 56px; bottom: auto; max-width: none; }
  #tables .tb-name { font-size: min(17.5vw, 88px); }
  #tables .tb-call { font-size: 26px; margin-top: 14px; }
  #tables .tb-where { font-size: 15px; }
  #tables .tb-cta { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #tables .tb-copy > * { opacity: 1; transform: none; transition: none; }
  #tables .tb-shade { opacity: 1; transition: none; }
}
