/* Section 2, the restaurant walk: a dark, full-bleed scroll story pinned under the site header.
   Ported from the HubSpot draft "Displai Cinematic Experience" (template 416319139514). Everything is scoped to .dce, and the
   class names this page already uses elsewhere (stage, rail, btn, skip) carry a dce- prefix. js/walk.js sets the journey's
   height and the stage's top and height in pixels; the values here are the no-script starting point. */
.dce { --ink: #05070D; --blue: #0047D4; --blue-hover: #0530A6; --line: rgba(255,255,255,.14); --muted: rgba(255,255,255,.7);
  --ground: 6,9,18; position: relative; background: var(--ink); color: #fff; }
.dce *, .dce *::before, .dce *::after { box-sizing: border-box; }
.dce :where(h2, h3, p, ol, li) { margin: 0; padding: 0; }
.dce :where(button) { all: unset; box-sizing: border-box; cursor: pointer; }
.dce :is(button, a):focus-visible { outline: 2px solid #76ABFF; outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); border-radius: 6px; }
/* the page's 80 px scroll-padding would make every Tab into the pinned stage scroll the page, which rewinds the walk */
#walk .dce-stage :is(a, button) { scroll-margin-top: calc(-1 * (var(--header-h) + 8px)); }
.dce img, .dce video { display: block; max-width: 100%; }

/* ---- the journey: sticky stage; its full scroll length is set in the page (--dce-len, from tools/import_walk.py) so a reload
   mid-walk restores to the same place, and nothing inside it is used as a scroll anchor ---- */
.dce-journey { position: relative; height: calc(var(--dce-len, 0px) + 100vh); overflow-anchor: none; }
.dce-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink); }
/* while the stage is pinned the site header steps aside (js/walk.js); when it comes back, the walk's bar sits below it */
.site-header { transition: background-color .25s ease, box-shadow .25s ease, transform .35s ease; }
.site-header.dce-away { transform: translateY(-100%); box-shadow: none; }
.dce-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dce-load { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--blue); transition: width .25s, opacity .8s; z-index: 6; }
.dce-bar { position: absolute; left: 0; right: 0; top: var(--hdr-over, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3.4vw, 44px); background: linear-gradient(180deg, rgba(var(--ground),.62) 0%, rgba(var(--ground),0) 100%);
  transition: opacity .35s ease, transform .35s ease; }
.dce.dce-pinned .dce-bar { transition: opacity .35s ease, transform .35s ease, top .35s ease; }   /* follows the header only while pinned */
.dce-bar.away { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.dce-skip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 6px; font-size: 15px; font-weight: 500;
  color: #fff; text-decoration: none; white-space: nowrap; background: rgba(var(--ground),.55); transition: background .2s; }
.dce-skip svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.dce-skip:hover { background: rgba(var(--ground),.8); }
.dce-acts { display: flex; gap: 10px; }
.dce-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; line-height: 1; padding: 0 16px;
  border-radius: 6px; white-space: nowrap; transition: background .2s, border-color .2s; }
.dce-btn.primary { background: var(--blue); }
.dce-btn.primary:hover { background: var(--blue-hover); }
.dce-btn.ghost { border: 1px solid rgba(255,255,255,.55); background: rgba(var(--ground),.55); }
.dce-btn.ghost:hover { background: rgba(255,255,255,.12); }
.dce-btn .tri { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.dce-btn .pause { width: 9px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; }

/* the introduction over the first frame, gone once the walk begins */
.dce-intro { position: absolute; left: 50%; bottom: clamp(28px, 7vh, 72px); transform: translateX(-50%); z-index: 4; width: min(92vw, 760px);
  text-align: center; pointer-events: none; }
.dce-intro .card { position: relative; padding: 22px 28px 20px; }
.dce-intro .card::before { content: ""; position: absolute; z-index: -1; inset: -18px -40px -14px; border-radius: 40px; background: rgba(var(--ground),.66);
  filter: blur(30px); }
.dce-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.dce-eyebrow i { display: block; width: 28px; height: 2px; background: var(--blue); }
.dce-intro h1, .dce-intro h2 { font-size: clamp(32px, 4.2vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 10px; text-wrap: balance; }
.dce-intro p { font-size: clamp(15px, 1.25vw, 18px); color: var(--muted); line-height: 1.5; }
.dce-intro .cue { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 500; color: #fff; }
.dce-intro .cue span { position: relative; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.75); border-radius: 12px; }
.dce-intro .cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff;
  animation: dce-cue 1.6s ease-in-out infinite; }
@keyframes dce-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* flyouts: placed by the script in the picture's own coordinates, never over a featured screen; one compact panel at most
   460 px wide, type set per viewport (--hs 30 to 36 px, --bs 16 to 18 px), a 38-character body unless the panel must be shorter */
.dce .msg { position: absolute; z-index: 3; opacity: 0; pointer-events: none; will-change: opacity, transform; --k: 1; max-width: calc(100vw - 32px); }
.dce .msg .in { position: relative; background: rgba(6,9,18,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.dce .msg .lab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.92); }
.dce .msg .lab i { display: block; width: 24px; height: 3px; background: var(--blue); flex: none; }
.dce .msg h3 { margin-bottom: 8px; font-size: var(--hs, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.dce .msg p { max-width: 17.2em; font-size: var(--bs, 18px); line-height: 1.45; color: rgba(255,255,255,.9); text-wrap: pretty; }
.dce .msg.full p { max-width: none; }
.dce .msg .nw { white-space: nowrap; }
.dce .msg.brief .in { padding: 12px 16px; }          /* short windows: label and headline only (js fitMsg) */
.dce .msg.brief h3 { margin-bottom: 0; }
.dce .msg.brief p { display: none; }

/* chapter rail: five quiet markers on the picture, the active one in Displai blue; a name shows only on hover or keyboard focus.
   It steps aside while a flyout shows or a screen sits under it, comes back near the right edge, and is hidden on phones. */
.dce-rail { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; transition: opacity .3s; }
.dce-rail.quiet { opacity: 0; pointer-events: none; transition: opacity .12s; }
.dce-rail:has(:focus-visible) { opacity: 1; pointer-events: auto; }
.dce-rail.dots button span { display: none; }
.dce-rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 44px; height: 36px; padding-right: 14px; }
.dce-rail button i { display: block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: rgba(255,255,255,.34);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2); transition: background .2s, transform .2s; }
.dce-rail button span { position: absolute; right: 38px; top: 50%; padding: 5px 9px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: rgba(var(--ground),.8); opacity: 0; transform: translate(6px,-50%); pointer-events: none; transition: opacity .2s, transform .2s; }
@media (hover: hover) {
  .dce-rail button:hover i { background: rgba(255,255,255,.72); }
  .dce-rail button:hover span { opacity: 1; transform: translate(0,-50%); }
}
.dce-rail button.on i { background: var(--blue); transform: scale(1.25); box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.dce .dce-rail button:focus-visible { outline: none; box-shadow: none; }
.dce-rail button:focus-visible i { outline: 2px solid #76ABFF; outline-offset: 4px; }
.dce-rail button:focus-visible span { opacity: 1; transform: translate(0,-50%); }
@media (max-height: 500px), (pointer: coarse) and (max-width: 1000px) { .dce-rail { display: none; } }
/* no chapter dots over the walk (Ryan, Oct 29). The rail stays in the page, invisible, so every flyout keeps exactly the place it
   had (flyouts are placed clear of its dots); hidden, its buttons also leave the Tab order and the accessibility tree. */
.dce .dce-rail { visibility: hidden !important; pointer-events: none !important; }

/* labels that keep the preview honest: the provisional Dashboard capture, and any stretch still on 720p frames */
.dce-prov { position: absolute; left: clamp(16px, 3.4vw, 44px); top: 20px; z-index: 4; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #fff; background: rgba(var(--ground),.72); opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .35s; }
.dce-prov.gap { top: auto; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); border-radius: 14px;
  font-size: 13px; text-align: center; transition: opacity .4s; }

/* ---- the film, secondary: a dialog with the 60-second MP4 ---- */
dialog.dce-film { margin: auto; padding: 0; border: 0; border-radius: 12px; overflow: hidden; width: min(1280px, 94vw); background: #000; color: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.6); }
dialog.dce-film::backdrop { background: rgba(5,7,13,.88); }
dialog.dce-film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* Close sits in a row above the picture, so it never covers the film's own "Concept preview" label */
.dce-film-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 6px 6px 16px; font-size: 14px; color: var(--muted); }
dialog.dce-film .x { min-height: 36px; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(255,255,255,.1); }
dialog.dce-film .x:hover { background: rgba(255,255,255,.2); }

/* ---- reduced motion or no script: the same words as a sequence of stills ---- */
.dce-static { display: none; max-width: 1080px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter, 20px) clamp(56px, 7vw, 96px); }
.dce-static h2, .dce-static-title { margin: 12px 0; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; }
.dce-static .lede { max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.dce-static .dce-btn { margin-top: 24px; }
.dce-static ol { display: grid; gap: 44px; margin-top: 40px; list-style: none; }
.dce-static li img { width: 100%; height: auto; border-radius: 10px; }
.dce-static li .lab { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dce-static li .lab i { display: block; width: 22px; height: 3px; background: var(--blue); }
.dce-static li h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.15; }
.dce-static li p { max-width: 680px; margin-top: 6px; line-height: 1.55; color: rgba(255,255,255,.86); }
.dce.static-mode .dce-static { display: block; }
.dce.static-mode .dce-journey { display: none; }

/* ---- phones and portrait screens: the picture sits in a 3:2 band and the words go underneath it ---- */
@media (max-width: 760px) {
  .dce-bar { padding: 8px 14px; gap: 10px; }
  .dce-skip, .dce-btn { font-size: 14px; }
  .dce-btn { padding: 0 12px; gap: 8px; }
  .dce-acts { gap: 8px; }
  .dce-intro .card { padding: 16px 10px; }
}
@media (max-width: 400px) {
  .dce-bar { padding: 8px 10px; gap: 8px; }
  .dce-skip svg { display: none; }
  .dce-skip { padding: 0 8px; }
  .dce-acts { gap: 6px; }
  .dce-btn { padding: 0 10px; }
}
.dce.portrait .dce-rail { display: none; }
.dce.portrait .msg { left: max(16px, calc(50% - 280px)) !important; right: auto !important; bottom: auto !important;
  width: min(560px, calc(100% - 32px)) !important; --k: .62; }
.dce.portrait .msg p { max-width: none; }
.dce.portrait .msg .in { padding: 18px; border-radius: 16px; }
.dce.portrait .dce-intro { bottom: auto; top: calc(var(--band-bottom, 60vh) + 18px); }
.dce.portrait .dce-intro .card::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dce-intro .cue span::after { animation: none; }
  .dce-btn, .dce-rail button i, .dce-rail button span { transition: none; }
}
