/* /restaurants/ — the scroll walk-through, from the front door to the back office.
   Sits ON TOP of site.css: the brand (Outfit + Inter, the sky blue, the dark-mode
   variables) is unchanged, this file only adds the full-bleed photo stage and the
   "what this visit told us" panel.

   PROGRESSIVE ENHANCEMENT, deliberately this way round: the plain rules below are
   the no-JavaScript / reduced-motion page — six photographs stacked one per screen,
   each with its own words, scrolling normally. restaurants.js adds `rs-on` to <html>
   only when it is safe to animate, and the `html.rs-on` block turns those same six
   blocks into one sticky stage that cross-fades. Nothing is hidden without JS. */

.rs-body { background: #07090d; overflow-x: hidden; overflow-x: clip; }
/* the header sits over the first photograph and must never widen the page on a 360px phone */
.rs-top { gap: 10px; }
.rs-top nav { min-width: 0; }
@media (max-width: 420px) { .rs-top nav a.btn { padding: 11px 14px; font-size: 14.5px; } .rs-top .lockup .wm { font-size: 25px; } }
@media (prefers-color-scheme: light) { .rs-body:not([data-theme="dark"]) { background: var(--bg); } }

/* the header sits over the first photograph */
.rs-top { position: relative; z-index: 30; }
@media (min-width: 721px) { .rs-top { margin-bottom: -92px; } .rs-top nav a:not(.btn) { color: #e7eef5; text-shadow: 0 1px 10px rgba(0,0,0,.6); } .rs-top nav a:not(.btn):hover { color: #fff; } .rs-top .lockup .wm-b { color: #f3f7fb; } }

/* ---------------------------------------------------------------- the stage */
.rs-track { position: relative; background: #07090d; }
.rs-stage { position: relative; }

.rs-scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #07090d;
  color: #f2f6fa;
}
.rs-pic { position: absolute; inset: 0; }
.rs-pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--z, 1));
  transform-origin: var(--pos, 50% 50%);
  will-change: transform;
}
/* dark from the bottom so the words always have contrast, whatever the photo does */
.rs-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,6,9,.62) 0, rgba(4,6,9,.12) 26%, rgba(4,6,9,.08) 42%, rgba(4,6,9,.80) 84%, rgba(4,6,9,.94) 100%);
}
.rs-scrim-hard { background: linear-gradient(180deg, rgba(4,6,9,.70) 0, rgba(4,6,9,.42) 34%, rgba(4,6,9,.88) 82%, rgba(4,6,9,.96) 100%); }

.rs-cap {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px calc(9svh + env(safe-area-inset-bottom));
}
.rs-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #8fd0f6; margin: 0 0 14px; text-shadow: 0 1px 10px rgba(0,0,0,.7);
}
.rs-line {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(32px, 8.4vw, 68px); line-height: 1.04;
  margin: 0; max-width: 15em; color: #fff; text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0,0,0,.72), 0 0 2px rgba(0,0,0,.5);
}
h1.rs-line { font-size: clamp(38px, 10vw, 80px); }
.rs-sub {
  margin: 18px 0 0; max-width: 34em;
  font-size: clamp(16.5px, 2.1vw, 20px); line-height: 1.5; color: #dde7f0;
  text-shadow: 0 1px 16px rgba(0,0,0,.8);
}
@media (min-width: 900px) {
  .rs-cap { padding-bottom: 11svh; }
  .rs-line { max-width: 13em; }
}

/* the scroll cue on the first frame only */
.rs-cue { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #cfe2f1; transition: opacity .4s; }
.rs-cue i { display: block; width: 1px; height: 26px; background: linear-gradient(180deg, #8fd0f6, rgba(143,208,246,0)); }
.rs-cue.gone { opacity: 0; }

/* ---------------------------------------------------------------- scroll-driven mode */
html.rs-on .rs-track { height: var(--rs-track-h, 600svh); }
html.rs-on .rs-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; overflow: clip; contain: paint; }
html.rs-on .rs-scene { position: absolute; inset: 0; min-height: 0; opacity: 0; visibility: hidden; will-change: opacity; }
html.rs-on .rs-scene.rs-first { opacity: 1; visibility: visible; }
/* a thin progress hairline, the only extra chrome the stage gets */
.rs-bar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 40; background: rgba(255,255,255,.1); opacity: 0; transition: opacity .3s; }
.rs-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #4baee8, #8fd0f6); }
html.rs-on .rs-bar { opacity: 1; }

/* ---------------------------------------------------------------- the offers */
/* "Built for your restaurant" is a long label; on a three-up grid it squeezes the
   heading into a column of single words. Give the label its own line above the title. */
.rs-offer .svc-top { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.rs-offer .svc-top h3 { font-size: 23px; }
.rs-offer .svc-more { margin-top: 16px; }
.rs-offer dd { color: var(--soft); }

/* ---------------------------------------------------------------- what this visit told us */
.rs-facts { display: grid; gap: 14px; margin: 30px 0 0; }
.rs-fact {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.rs-fact .rs-tag {
  margin: 0 0 8px; display: flex; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue-ink);
}
.rs-fact .rs-tag::before {
  content: ""; flex: none; width: 13px; height: 13px; margin-right: 10px; border-radius: 50%;
  border: 1.5px solid var(--blue-ink); box-shadow: 0 0 0 4px rgba(75,174,232,.16);
}
.rs-fact .rs-main { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.rs-fact .rs-note { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.rs-limit { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
#rsClock { font-weight: 700; color: var(--blue-ink); white-space: nowrap; }

/* ---------------------------------------------------------------- the CTA */
.rs-cta { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; text-align: left; }
.rs-james { border-radius: 20px; aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow); }
.final .rs-cta .lede { margin: 0; }
.final .rs-cta .ctas { justify-content: flex-start; }
@media (max-width: 760px) {
  .rs-cta { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .rs-james { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-pic img { transform: none; }
  .rs-cue { transition: none; }
}
