/* Two rooms: two restaurants side by side, each in its own window, its name over it, each shown whole. The line between them gives one more of the screen.
   Never one picture wiped from before to after: the windows have a gutter between them and neither can close (12% to 88%). */
.tr { --x: 50%; --gut: 6px; display: grid; gap: 12px; }

/* the names, over their own window, in each room's voice: Sweet Basil quiet and spaced, Mountain Standard in its own lettering */
.tr-heads { display: grid; grid-template-columns: var(--x) 1fr; color: var(--paper); transition: grid-template-columns .25s ease; }
.tr-heads .tr-ms { text-align: right; }
.tr-name { line-height: 1; white-space: nowrap; transition: opacity .4s ease; }
.tr-sb { font-family: var(--text); font-weight: 500; font-size: clamp(13px, 1.25vw, 17px); letter-spacing: .3em; text-transform: uppercase; }
.tr-ms { font-family: "MTN Display", var(--disp); font-weight: 700; font-size: clamp(17px, 1.9vw, 28px); letter-spacing: .02em; }
.tr-heads .tr-sb { align-self: end; padding-bottom: 3px; }
.tr.is-ms .tr-heads .tr-sb, .tr.is-sb .tr-heads .tr-ms { opacity: .45; }

/* the two windows */
/* exactly as tall as the larger room's whole picture: two-rooms.js sets the height as the line moves (this shape is the fallback) */
.tr-stage { position: relative; display: flex; gap: var(--gut); aspect-ratio: 16 / 5; max-height: 86svh; width: 100%; background: var(--ink); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
@media (max-width: 899px) { .tr-stage { aspect-ratio: 390 / 422; max-height: 80svh; } }
.tr-stage.is-sized { aspect-ratio: auto; }
.tr-room { position: relative; overflow: hidden; background: var(--ink); min-width: 0; }
.tr-a { flex: 0 0 calc(var(--x) - var(--gut) / 2); }
.tr-b { flex: 1 1 0; }
/* each room whole, never cropped: both recordings carry words and buttons near their edges (Brian: nothing cut off) */
.tr-room video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; pointer-events: none; }
/* the grip sits in the gutter */
.tr-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--gut); margin-left: calc(var(--gut) / -2); pointer-events: none; }
.tr-line b { position: absolute; top: 50%; left: 50%; width: 14px; height: 44px; margin: -22px 0 0 -7px; background: var(--paper); border-radius: 2px; box-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

/* the slider: the keyboard way to move the line */
.tr-ctl { display: block; padding: 0; }
.tr-ctl input { width: 100%; accent-color: var(--paper); height: 28px; cursor: pointer; margin: 0; }
.tr-ctl input:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

/* the two doors: one to each restaurant's page, each in its room's voice */
.tr-go { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-top: 4px; }
.tr-door { display: grid; gap: 10px; padding: clamp(20px, 3vw, 36px) clamp(18px, 2.4vw, 32px); background: var(--ink2); color: var(--paper); text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--rule2); transition: box-shadow .3s ease; }
.tr-door.tr-ms { text-align: right; }
.tr-door.tr-sb { font-size: clamp(14px, 1.5vw, 20px); }
.tr-door.tr-ms { font-size: clamp(19px, 2.3vw, 32px); }
.tr-door span { font-family: var(--text); font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--soft); }
.tr-door span::after { content: " \2192"; }
.tr-door:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.tr-door:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* phones: names stay on one line each; the doors stack so a name never wraps */
@media (max-width: 600px) {
  .tr-heads { grid-template-columns: 1fr 1fr; }
  .tr-sb { font-size: 11.5px; letter-spacing: .2em; }
  .tr-ms { font-size: 15px; }
  .tr-go { grid-template-columns: 1fr; }
  .tr-door.tr-ms { text-align: left; }
  .tr-door.tr-sb { font-size: 12.5px; letter-spacing: .2em; }
  .tr-door.tr-ms { font-size: 17px; }
  .tr-door span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tr-name, .tr-heads { transition: none; } }
