/* "Follow the question": the walk-the-restaurant floor plan (concept-floor) as a pinned scroll scene.
   Scroll drives the walk: a Saturday today (7 handoffs, 5:00), then the same question with Can I Dine?™ (4 steps, 1:00).
   Everything is scoped to .route so it can't touch the other scenes (story.css already has a .floor scene). */
.route .stage{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.6fr);grid-template-rows:minmax(0,1fr);column-gap:clamp(24px,3.4vw,56px);align-items:center;padding:clamp(14px,3vh,36px) calc(var(--gut) + 20px) clamp(12px,2.4vh,28px) var(--gut);background:radial-gradient(ellipse at 70% 40%,#FFFFFF 0%,#F9F6F0 55%,#F0EBE1 100%);color:var(--deep)}
.rt-copy{display:flex;flex-direction:column;gap:clamp(10px,1.8vh,18px);min-width:0}
.rt-copy h2{font-size:clamp(28px,min(3.3vw,5.6vh),56px)}
.rt-copy h2 em{color:var(--orange)}
.rt-sub{font-size:clamp(14px,min(1.1vw,2vh),17px);line-height:1.5;color:var(--olive);max-width:44ch}
.rt-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.rt-mode{display:inline-flex;padding:4px;border-radius:999px;background:var(--card);border:1px solid var(--line)}
.rt-mode button{min-height:44px;padding:0 16px;border-radius:999px;font-size:14.5px;font-weight:700;color:var(--olive);transition:background .35s,color .35s}
.rt-mode button[aria-pressed=true]{background:var(--deep);color:#fff}
.rt-mode .nb{color:inherit}
.rt-clock{display:flex;align-items:baseline;gap:10px;font-size:13px;color:var(--olive)}
.rt-clock b{font:800 clamp(34px,min(3.6vw,6.4vh),58px)/.9 var(--disp);letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--red);min-width:2.5ch;transition:color .4s}
.route[data-mode="1"] .rt-clock b{color:var(--green)}
.rt-steps{list-style:none;margin:0;padding:0;counter-reset:s}
.rt-steps li{counter-increment:s;position:relative;padding:clamp(4px,.75vh,9px) 0 clamp(4px,.75vh,9px) 36px;border-top:1px solid var(--line);font-size:clamp(13px,min(1vw,1.9vh),15.5px);line-height:1.35;color:#9aa391;transition:color .3s}
.rt-steps li:before{content:counter(s);position:absolute;left:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid currentColor;font:800 12px/1 var(--disp);transition:background .3s,border-color .3s,color .3s}
.rt-steps b{font-weight:700}
.rt-steps .now{color:var(--deep)}.rt-steps .now:before{background:var(--orange);border-color:var(--orange);color:#fff}
.rt-steps .done{color:var(--deep)}.rt-steps .done:before{background:var(--deep);border-color:var(--deep);color:#fff}
.route[data-mode="1"] .rt-steps .done:before{background:var(--green);border-color:var(--green)}
.rt-copy{align-self:center;max-height:100%}
/* the closing line lands on the plan, on the half the last step's card isn't in */
.rt-end{position:absolute;top:12px;left:50%;z-index:6;width:max-content;max-width:calc(100% - 24px);padding:12px 18px;border-radius:12px;background:#fff;box-shadow:0 12px 30px #1E3C2233;font:800 clamp(16px,min(1.4vw,2.6vh),22px)/1.2 var(--disp);letter-spacing:-.02em;color:var(--green);text-align:center;opacity:var(--end,0);transform:translate(-50%,calc((1 - var(--end,0)) * -10px));pointer-events:none}
.route .stage>.rt-fine{position:absolute;left:var(--gut);bottom:clamp(8px,1.6vh,18px);max-width:min(520px,34vw);font-size:10px;line-height:1.45;color:var(--muted)}

.rt-map{position:relative;min-width:0;height:100%;display:flex;align-items:center;justify-content:center}
.rt-frame{position:relative;width:100%;border-radius:18px;overflow:hidden;background:#E4DDCD;box-shadow:0 30px 70px #1E3C2226}
.rt-scroll{overflow:hidden}
.rt-pan svg{display:block;width:100%;height:auto;font-family:Work,sans-serif}

/* the step card rides on the plan, on the half the action isn't in */
.rt-card{position:absolute;left:10px;z-index:4;width:min(400px,calc(100% - 20px));display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start;padding:10px;border-radius:14px;background:#1E3C22f2;color:#fff;box-shadow:0 14px 34px #0007;pointer-events:none;transition:opacity .17s ease}
.rt-card.swap{opacity:0}
.rt-pan{will-change:transform}
.rt-card[data-at=top]{top:10px}.rt-card[data-at=bottom]{bottom:10px}
.rt-card img{width:96px;height:96px;border-radius:10px;object-fit:cover}
.rt-card .fc-step{display:block;font-size:11.5px;font-weight:700;line-height:1.3;color:#ffb35c}
.rt-card .fc-step:empty{display:none}
.rt-card h3{margin-top:3px;font-size:17px}
.rt-card p{margin-top:3px;font-size:12.5px;line-height:1.42;color:#e6ecdc}

/* the plan (same drawing as /concept-floor) */
.rt-pan .lot{fill:#E4DDCD}
.rt-pan .zone{font:800 30px Cabinet,sans-serif;letter-spacing:-.03em;fill:#1E3C22;text-anchor:middle}
.rt-pan .zone.s{font-size:15px;letter-spacing:0;fill:#1E3C2299}
.rt-pan .wall{fill:none;stroke:#1E3C22;stroke-width:9;stroke-linecap:square;stroke-linejoin:miter}
.rt-pan .swing{fill:none;stroke:#1E3C2266;stroke-width:2;stroke-dasharray:4 5}
.rt-pan .dl{font-size:13px;font-weight:700;letter-spacing:.08em;fill:#1E3C2299;text-anchor:middle}
.rt-pan .rl{font:800 22px Cabinet,sans-serif;letter-spacing:-.02em;fill:#1E3C22;text-anchor:middle}
.rt-pan .rl.s{font-size:17px}
.rt-pan .el{font-size:13.5px;font-weight:700;fill:#1E3C22;text-anchor:middle}.rt-pan .el.w,.rt-pan .el.g{fill:#fff}
.rt-pan .chair{fill:#C9BFA8}.rt-pan .top{fill:#B98A5A;stroke:#8E6238;stroke-width:2}
.rt-pan .tn{font:800 20px Cabinet,sans-serif;fill:#fff;text-anchor:middle;opacity:.9;transition:opacity .3s}
.rt-pan .wait{font-size:13px;font-weight:700;fill:#fff;text-anchor:middle;opacity:0;transition:opacity .4s}
.rt-pan .tbl .top{transition:fill .5s,stroke .5s}
.rt-pan .tbl.waiting .top{fill:#C0392B;stroke:#8A1F1F}.rt-pan .tbl.waiting .wait{opacity:1}.rt-pan .tbl.waiting .tn{opacity:0}
.rt-pan .t12 .top{fill:#CC5500;stroke:#A34400}.rt-pan .t12 .seat2{fill:#8A1F1F;stroke:#fff;stroke-width:3}
.rt-pan .t12n{font:800 18px Cabinet,sans-serif;fill:#fff;text-anchor:middle}.rt-pan .t12s{font-size:13px;fill:#ffe1cc;text-anchor:middle}
.rt-pan .qr rect{fill:#fff;stroke:#1E3C22;stroke-width:2;opacity:0;transition:opacity .4s}
.rt-pan svg[data-mode="1"] .qr rect{opacity:1}
.rt-pan .bubble,.rt-pan .phone-tag,.rt-pan .away,.rt-pan .wheat,.rt-pan .tapex{opacity:0;transform:translateY(8px);transition:opacity .35s,transform .5s var(--ease);pointer-events:none}
.rt-pan .bubble rect{fill:#fff;stroke:#1E3C22;stroke-width:2}.rt-pan .bubble text{font-size:16px;font-weight:700;fill:#1E3C22;text-anchor:middle}
.rt-pan .phone-tag rect{fill:#8A1F1F}.rt-pan .phone-tag text{font-size:15px;font-weight:700;fill:#fff;text-anchor:middle}
.rt-pan .fx-ask .bubble,.rt-pan .fx-order .bubble,.rt-pan .fx-sorted .phone-tag,.rt-pan .fx-scan .phone-tag,.rt-pan .fx-away .away,.rt-pan .fx-jug .wheat,.rt-pan .fx-walkin .tapex{opacity:1;transform:none}
.rt-pan .away rect{fill:#8A1F1F}.rt-pan .away text{font-size:14px;font-weight:700;fill:#fff;text-anchor:middle}
.rt-pan .wheat rect{fill:#CC5500}.rt-pan .wheat text{font-size:12.5px;font-weight:700;fill:#fff;text-anchor:middle}
.rt-pan .tapex rect{fill:#8fb3e0}.rt-pan .tapex text{font-size:11.5px;font-weight:800;fill:#0f1d33;text-anchor:middle}
.rt-pan .bar rect{fill:#2C5530}.rt-pan .stool{fill:#C9BFA8}.rt-pan .bar .rl{fill:#fff}
.rt-pan .host rect{fill:#C9D6A8}
.rt-pan .cold{fill:#DCEBF2}.rt-pan .dry{fill:#F0E6D2}
.rt-pan .pan{fill:#9fb7c4}.rt-pan .pan.hero{fill:#7b4a1e;transition:fill .4s}.rt-pan .fx-walkin .pan.hero{fill:#CC5500}
.rt-pan .box{fill:#C8B38A}.rt-pan .jugr{fill:#F9F6F0;stroke:#1E3C22;stroke-width:2;transition:fill .4s}.rt-pan .fx-jug .jugr,.rt-pan .fx-data .jugr{fill:#CC5500}
.rt-pan .hood{fill:#CFD8C2}.rt-pan .eq{fill:#5d6657}.rt-pan .steel{fill:#C4CEC0}
.rt-pan .flames circle{fill:#FF8A1F;transform-box:fill-box;transform-origin:center;animation:rt-flick .5s ease-in-out infinite alternate}
.rt-pan .flames circle:nth-child(2){animation-delay:.15s;fill:#FFB35C}.rt-pan .flames circle:nth-child(3){animation-delay:.3s}
@keyframes rt-flick{to{transform:scale(1.5)}}
.rt-pan .fx-away .flames circle{fill:#8A1F1F;animation-duration:.18s}
.rt-pan .passw{fill:#F9F6F0;stroke:#1E3C22;stroke-width:3}
.rt-pan .lampg{opacity:.55}
.rt-pan .ticket{opacity:0;transition:opacity .4s}.rt-pan .ticket rect{fill:#fff;stroke:#1E3C22}.rt-pan .ticket path{stroke:#8A1F1F;stroke-width:2}.rt-pan .fx-ticket .ticket{opacity:1}
.rt-pan .plateup{fill:#fff;stroke:#1E3C22;stroke-width:3;opacity:0;transition:opacity .3s}.rt-pan .fx-plateup .plateup{opacity:1}
.rt-pan .station{fill:#1E3C22}.rt-pan .screen{fill:#C9D6A8;transition:fill .3s}.rt-pan .fx-ticket .screen{fill:#FFB35C}
.rt-pan .data{fill:none;stroke:#2C5530;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2 12;opacity:0;transition:opacity .6s}
.rt-pan .fx-data .data{opacity:1;animation:rt-march 1s linear infinite}
@keyframes rt-march{to{stroke-dashoffset:-28}}
.rt-pan .steps{fill:none;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
.rt-pan .s-server{stroke:#CC5500}.rt-pan .s-chef{stroke:#8A1F1F}
.rt-pan svg[data-mode="1"] .s-server{stroke:#2C5530}
.rt-pan .actor circle{stroke:#fff;stroke-width:4;filter:drop-shadow(0 4px 6px #0006)}
.rt-pan .actor text{font-size:14px;font-weight:800;text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:4px;fill:#1E3C22}
.rt-pan .server circle{fill:#CC5500}.rt-pan .chef circle{fill:#1E3C22}.rt-pan .runner circle{fill:#fff;stroke:#1E3C22}
.rt-pan .hot{cursor:pointer;outline:none}
.rt-pan .hot .hit{fill:transparent;stroke:none}
.rt-pan .hot:hover>rect:first-of-type,.rt-pan .hot:focus-visible>rect:first-of-type,.rt-pan .hot.sel>rect:first-of-type{stroke:#CC5500;stroke-width:5}
.rt-pan .hot.t12:hover .top,.rt-pan .hot.t12.sel .top{stroke:#1E3C22;stroke-width:5}
.rt-pan .pin{opacity:0;pointer-events:none;transition:opacity .35s}
.rt-pan .pin>*{transform:scale(.4);transform-box:fill-box;transform-origin:center;transition:transform .55s var(--ease)}
.rt-pan .pin.on{opacity:1}.rt-pan .pin.on>*{transform:none}
.rt-pan .pin-r{fill:#fff;stroke:#CC5500;stroke-width:5;filter:drop-shadow(0 8px 14px #0006)}
.rt-pan .pin-lead{fill:none;stroke:#CC5500;stroke-width:4;stroke-linecap:round}

/* the switch: a quick wipe as the same question starts again with Can I Dine?™ */
.rt-flip{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:var(--green);color:#fff;font:800 clamp(22px,2.6vw,40px)/1.1 var(--disp);letter-spacing:-.02em;text-align:center;padding:0 24px;opacity:var(--fl,0);pointer-events:none}
.rt-flip .nb{color:#fff}

/* laptops with short screens: fewer words on the left */
@media (min-width:1001px) and (max-height:800px){.rt-sub{display:none}}

/* tablets and phones: copy on top, the plan below; the plan is wider than the screen and the view follows the action */
@media (max-width:1000px){
  .route .stage{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);row-gap:10px;align-items:stretch;padding:12px var(--gut) 10px}
  .rt-copy{gap:8px}
  .rt-copy h2{font-size:clamp(22px,6.4vw,36px)}
  .rt-copy .kicker,.rt-sub,.rt-steps,.route .stage>.rt-fine{display:none}
  .rt-bar{justify-content:space-between;gap:8px}
  .rt-mode button{padding:0 12px;font-size:13.5px}
  .rt-clock span{display:none}.rt-clock b{font-size:34px}
  .rt-end{top:8px;font-size:15px;padding:10px 12px;width:calc(100% - 16px)}
  .rt-map{align-items:stretch}
  .rt-frame{height:100%;display:flex;align-items:center;border-radius:14px}
  .rt-scroll{width:100%}
  .rt-card{grid-template-columns:78px minmax(0,1fr);left:8px;width:calc(100% - 16px)}
  .rt-card img{width:78px;height:78px}
  .rt-card[data-at=top]{top:8px}.rt-card[data-at=bottom]{bottom:8px}
}
@media (max-width:1000px) and (max-height:700px){.rt-card p{display:none}}

@media (prefers-reduced-motion:reduce){.rt-pan .flames circle,.rt-pan .fx-data .data{animation:none}}
