/* Serving Times — the landing page. "Last Call": a film in nine scenes.
   Motion is driven by two things landing.js sets: --p (0–1, how far a [data-track]
   scene has scrolled) and .in (a [data-reveal] element has come into view). Things are
   hidden for their entrance only once landing.js has marked the page .motion, so with
   JavaScript off (or landing.js failing) every scene shows, finished. With reduced motion,
   landing.js sets --p to 1 and .in on everything. */
:root {
  --ink: #0d0c0b; --ink-2: #161412; --ink-3: #221f1b;
  --cream: #efe7d8; --cream-2: #cfc6b6; --cream-3: #8f877a;
  --amber: #e8a25a; --amber-2: #f0b878;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --app: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--cream); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; color: var(--amber); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---- Nav ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); transition: background .4s, padding .4s, backdrop-filter .4s; }
.nav.scrolled { background: rgba(13, 12, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 rgba(239, 231, 216, .07); }
.wordmark { font: italic 400 24px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.nav nav a { text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; color: var(--ink); background: var(--amber); padding: 11px 16px; border-radius: 999px; letter-spacing: .12em; transform: translateY(-4px); visibility: hidden; opacity: 0; transition: opacity .3s, transform .3s, visibility .3s; }
.nav.scrolled .nav-cta { visibility: visible; opacity: 1; transform: none; }
@media (max-width: 860px) { .nav nav a:not(.nav-cta):not([href="/app"]) { display: none; } }
@media (max-width: 420px) { .nav nav a[href="/app"] { display: none; } .nav .nav-cta { visibility: visible; opacity: 1; transform: none; } }

/* ---- Shared ---- */
.scene { position: relative; }
.slate { font: 400 11px/1.7 var(--mono); letter-spacing: .12em; color: var(--cream); opacity: .62; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--amber); color: var(--ink); font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { background: var(--amber-2); transform: translateY(-1px); }
.button.dark { background: var(--ink); color: var(--cream); }
.button.dark:hover { background: #2a2520; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--cream-2); max-width: 36ch; }
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* Full-bleed film: a poster that is there at once, and the video fading in over it. */
.film { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.film img, .film video, .pocket-film img, .pocket-film video, .group-film img, .group-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-video { opacity: 0; transition: opacity 1.2s; z-index: 1; }
.film-video.playing { opacity: 1; }
.film::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); }

/* ---- SC. 01 — Open ---- */
.open { min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(64px, 12vh, 120px); overflow: hidden; }
.open .film::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(13, 12, 11, .94) 0%, rgba(13, 12, 11, .62) 46%, rgba(13, 12, 11, .12) 100%), linear-gradient(0deg, rgba(13, 12, 11, .85) 0%, transparent 40%); }
.open-copy { position: relative; z-index: 4; max-width: 760px; }
.open h1 { font-size: clamp(54px, 9vw, 132px); line-height: .9; max-width: 10.5ch; animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both .15s; }
.open .lede { margin: 26px 0 34px; animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both .35s; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both .5s; }
.cta-note { font-size: 14px; color: var(--cream-2); }
.open > .slate { position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(64px, 12vh, 120px); text-align: right; }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 0; width: 1px; height: 64px; overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--amber); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .open .film::before { background: linear-gradient(0deg, rgba(13, 12, 11, .96) 0%, rgba(13, 12, 11, .7) 45%, rgba(13, 12, 11, .2) 100%); }
  .open > .slate { top: 84px; bottom: auto; left: var(--gutter); right: auto; text-align: left; }
}

/* ---- Scroll tracks (SC. 02, 03): a tall section whose inside stays put while --p runs 0→1 ---- */
.track { --p: 1; }
.track .sticky { position: sticky; top: 0; min-height: 100svh; }

/* ---- SC. 02 — Sunday ---- */
.sunday { height: 300vh; background: var(--ink); }
.sunday .sticky { display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter); }
.sunday .slate { margin-bottom: 40px; }
.lines p { font: 400 clamp(32px, 5.4vw, 76px)/1.08 var(--serif); color: var(--cream); opacity: clamp(.08, (var(--p) * 7 - var(--i)) * 1.6, 1); transform: translateY(calc(clamp(0, 1 - (var(--p) * 7 - var(--i)), 1) * 18px)); }
.lines .turn { color: var(--amber); font-style: italic; margin-top: .6em; opacity: clamp(0, (var(--p) * 7 - var(--i)) * 1.6, 1); }

/* ---- SC. 03 — The office ---- */
.office { height: 320vh; background: radial-gradient(90% 70% at 85% 40%, #2a2016 0%, var(--ink) 65%); }
.office-grid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: 96px var(--gutter) 48px; }
.office h2 { font-size: clamp(42px, 5.4vw, 80px); line-height: .95; margin: 18px 0 30px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: pt; }
.points li { counter-increment: pt; color: var(--cream-2); font-size: 16px; padding-left: 40px; position: relative; opacity: clamp(.25, (var(--p) * 4 - var(--n, 0)) * 2, 1); }
.points li:nth-child(1) { --n: .1; } .points li:nth-child(2) { --n: 1.5; } .points li:nth-child(3) { --n: 2.4; }
.points li::before { content: "0" counter(pt); position: absolute; left: 0; top: 3px; font: 500 11px/1.4 var(--mono); color: var(--amber); }
.points strong { color: var(--cream); font-weight: 600; }

/* The rebuilt app screens (scenes 3, 4, 5, 7) use the app's own look: DM Sans, cream, green. */
.screen { font-family: var(--app); color: #253e37; background: #fbfbf8; border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.sched { padding: 18px; margin: 0; overflow: hidden; transform: perspective(1600px) rotateY(calc(-6deg + var(--p) * 6deg)) rotateX(calc(4deg - var(--p) * 4deg)); }
.sched-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.sched-week { font-weight: 700; font-size: 16px; }
.sched-copied { font-size: 12px; color: #4c6a5f; background: #e9f0ea; padding: 5px 10px; border-radius: 999px; opacity: clamp(0, 1 - (var(--p) - .12) * 8, 1); }
.pill-draft { margin-left: auto; font-size: 12px; font-weight: 600; color: #7a5a22; background: #f8ecd3; padding: 5px 10px; border-radius: 6px; }
.sched-grid { display: grid; grid-template-columns: 118px repeat(7, minmax(0, 1fr)); gap: 5px; font-size: 11.5px; }
.sched-grid .hd { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7a8780; text-align: center; padding: 6px 0; }
.sched-grid .hd.name { text-align: left; }
.who { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; padding: 4px 0; }
.who b { font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.who small { color: #7a8780; font-size: 11px; }
.who.staff b { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7a8780; }
.sh, .off, .empty, .cov { min-height: 46px; border-radius: 6px; }
.sh { position: relative; padding: 7px 8px; font-weight: 600; line-height: 1.2; border-left: 3px solid; display: flex; flex-direction: column; justify-content: center;
  opacity: clamp(0, (var(--p) * 22 - 1.5 - var(--i)) * 1.2, 1); transform: translateY(calc(clamp(0, 1 - (var(--p) * 22 - 1.5 - var(--i)), 1) * -10px)); }
.sh small { font-weight: 400; color: #6c7c74; margin-top: 2px; }
.sh.server { background: #ecf3ee; border-color: #6f9a82; }
.sh.bar { background: #f1edf6; border-color: #9c87b8; }
.sh.host { background: #fbf2e2; border-color: #d4a865; }
.sh.support { background: #ebf2f5; border-color: #84a9bb; }
.sh.warn { box-shadow: inset 0 0 0 1.5px #e0a144; background: #fdf5e8; }
.sh.warn i { position: absolute; right: 6px; bottom: 6px; width: 15px; height: 15px; border-radius: 50%; background: #e0a144; color: #fff; font: 700 10px/15px var(--app); text-align: center; font-style: normal; }
.off { background: repeating-linear-gradient(135deg, #f3f3ee 0 6px, #fafaf7 6px 12px); color: #9aa49e; font-size: 10.5px; display: grid; place-items: center; }
.empty { background: transparent; }
.cov { position: relative; background: #f4f5f0; font-weight: 600; font-size: 12px; }
.cov span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px; transition: opacity .3s; }
.cov .short { color: #b06a1f; background: #fbeedd; opacity: clamp(0, (.78 - var(--p)) * 20, 1); }
.cov .ok { color: #2f6b4f; background: #e3efe6; opacity: clamp(0, (var(--p) - .78) * 20, 1); }
.sched-flag { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #7a5a22; background: #fdf3e2; border-radius: 8px; padding: 9px 12px; opacity: clamp(0, (var(--p) - .62) * 10, 1); }
.sched-flag i, .gw-warn i { width: 18px; height: 18px; border-radius: 50%; background: #e0a144; color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--app); font-style: normal; flex: none; }
@media (max-width: 980px) {
  .office { height: 300vh; }
  .office-grid { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-top: 84px; }
  .points { gap: 10px; } .points li { font-size: 14.5px; }
  .office h2 { margin: 12px 0 18px; }
}
@media (max-width: 700px) {
  .points li:not(:first-child) { display: none; }
  .sched { padding: 12px; transform: none; }
  .sched-grid { grid-template-columns: 82px repeat(4, minmax(0, 1fr)); font-size: 10.5px; gap: 4px; }
  .sched-grid > :nth-child(8n + 6), .sched-grid > :nth-child(8n + 7), .sched-grid > :nth-child(8n) { display: none; }
  .who b { font-size: 11px; } .who.staff b { white-space: normal; font-size: 9px; } .off { font-size: 8.5px; overflow: hidden; } .sh, .off, .empty, .cov { min-height: 40px; } .sh { padding: 5px 6px; } .sh small { display: none; }
  .sched-copied { display: none; }
}
@media (max-width: 700px) and (max-height: 760px) {
  .office-grid { padding-top: 72px; gap: 14px; }
  .office .slate, .points { display: none; }
  .office h2 { font-size: 36px; margin: 0; }
  .sched-top { margin-bottom: 8px; }
  .sh, .off, .empty, .cov { min-height: 32px; }
  .who { padding: 0; } .who small { font-size: 10px; }
  .sched-flag { margin-top: 8px; padding: 7px 10px; font-size: 11.5px; }
}

/* ---- SC. 04 — The floor ---- */
.floor { min-height: 115svh; display: flex; align-items: center; padding: 120px var(--gutter); overflow: hidden; }
.floor .film::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(13, 12, 11, .95) 0%, rgba(13, 12, 11, .78) 42%, rgba(13, 12, 11, .1) 78%); }
.floor-copy { position: relative; z-index: 4; max-width: 560px; }
.floor h2, .pocket h2, .signoff h2, .group h2, .bill h2 { font-size: clamp(42px, 5.6vw, 84px); line-height: .95; margin: 18px 0 22px; }
.floor-copy > p:not(.slate), .pocket-copy > p:not(.slate), .signoff-copy > p:not(.slate), .group-copy > p:not(.slate) { color: var(--cream-2); max-width: 46ch; }
.request { margin-top: 34px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 18px; max-width: 520px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #e7efe9; color: #3d6152; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.req-who { display: flex; flex-direction: column; line-height: 1.35; }
.req-who b { font-size: 16px; font-weight: 600; } .req-who small { font-size: 12.5px; color: #7a8780; } .req-who span { font-size: 13.5px; color: #4c5f58; margin-top: 2px; }
.req-act { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 10px; position: relative; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; transition: opacity .5s 1.6s; }
.pill.pending { background: #f8ecd3; color: #8a6420; }
.pill.approved { position: absolute; left: 0; background: #e3efe6; color: #2f6b4f; opacity: 0; }
.btn-mock { margin-left: auto; font-size: 13px; font-weight: 600; border: 1px solid #dfe4dc; padding: 8px 14px; border-radius: 8px; color: #253e37; transition: opacity .5s 1.6s; }
.btn-mock + .btn-mock { margin-left: 0; }
.btn-mock.primary { background: #234d41; color: #fff; border-color: #234d41; transition: transform .15s 1.3s, box-shadow .15s 1.3s, opacity .5s 1.6s; }
.in .btn-mock.primary { transform: scale(.94); box-shadow: 0 0 0 4px rgba(35, 77, 65, .25); }
:is(.in, html:not(.motion)) .pill.pending, :is(.in, html:not(.motion)) .btn-mock { opacity: 0; }
:is(.in, html:not(.motion)) .pill.approved { opacity: 1; }
@media (max-width: 700px) {
  .floor { min-height: 100svh; align-items: flex-end; padding-bottom: 72px; }
  .floor .film::before { background: linear-gradient(0deg, rgba(13, 12, 11, .97) 0%, rgba(13, 12, 11, .8) 55%, rgba(13, 12, 11, .15) 100%); }
}

/* ---- SC. 05 — The bar (pocket) ---- */
.pocket { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(80px, 12vh, 140px) var(--gutter); background: var(--ink); }
.pocket-film { position: relative; aspect-ratio: 9 / 14; border-radius: 4px; overflow: hidden; background: var(--ink-3); }
.pocket-film video { opacity: 0; transition: opacity 1.2s; } .pocket-film video.playing { opacity: 1; }
.phone { width: 270px; border-radius: 40px; padding: 10px; background: #1d1b19; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), inset 0 0 0 1.5px #3a3632; }
.phone-screen { border-radius: 31px; background: #f7f8f4; padding: 26px 14px 18px; font-family: var(--app); color: #253e37; min-height: 470px; }
.ph-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; margin: 0 4px 14px; }
.ph-mark { width: 30px; height: 30px; border-radius: 8px; background: #234d41; color: #f2e7c9; display: grid; place-items: center; font: italic 700 14px/1 var(--app); }
.ph-card { background: #fff; border: 1px solid #e3e8e0; border-radius: 14px; padding: 14px 12px; margin-bottom: 10px; }
.ph-name { font-weight: 600; font-size: 20px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; }
.ph-name u { font-size: 11px; font-weight: 400; color: #4c6a5f; }
.ph-week { font-weight: 600; font-size: 13px; margin: 6px 0 4px; }
.ph-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; padding: 8px 0; border-bottom: 1px solid #edf0ea; opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .5s; }
.ph-row b { font-weight: 600; white-space: nowrap; } .ph-row span { color: #5a6b64; white-space: nowrap; }
:is(.phone.in, html:not(.motion) .phone) .ph-row { opacity: 1; transform: none; }
.phone.in .ph-row:nth-child(4) { transition-delay: .55s; } .phone.in .ph-row:nth-child(5) { transition-delay: .7s; } .phone.in .ph-row:nth-child(6) { transition-delay: .85s; } .phone.in .ph-row:nth-child(7) { transition-delay: 1s; } .phone.in .ph-row:nth-child(3) { transition-delay: .4s; }
.ph-off { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.ph-btn { font-size: 11px; font-weight: 600; border: 1px solid #dfe4dc; padding: 7px 10px; border-radius: 8px; }
.motion .phone[data-reveal] { transform: translateY(60px) rotate(2deg); }
.motion .phone[data-reveal].in, html:not(.motion) .phone { transform: rotate(-2deg); }
@media (max-width: 1100px) { .pocket { grid-template-columns: minmax(0, 1fr) auto; } .pocket-film { grid-row: span 2; } }
@media (max-width: 700px) {
  .pocket { grid-template-columns: 1fr; padding-top: 0; justify-items: center; }
  .pocket-film { grid-row: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; border-radius: 0; }
  .pocket-copy { justify-self: stretch; }
  .phone { width: 250px; margin-top: 8px; }
}

/* ---- SC. 06 — The sign-off ---- */
.signoff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 14vh, 160px) var(--gutter); background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.docket { position: relative; background: #f4ecdc; color: #1b1712; padding: 26px 24px 28px; font: 400 13px/1.6 var(--mono); transform: rotate(1.5deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.motion .docket[data-reveal] { transform: translateY(40px) rotate(1.5deg); } .docket[data-reveal].in { transform: rotate(1.5deg); }
.docket-head { display: flex; justify-content: space-between; font-weight: 500; border-bottom: 1px dashed #1b1712; padding-bottom: 10px; margin-bottom: 10px; letter-spacing: .06em; }
.docket-line { display: flex; justify-content: space-between; }
.stamps { display: flex; flex-wrap: wrap; gap: 14px 10px; margin-top: 26px; padding-top: 18px; border-top: 1px dashed #1b1712; }
.stamp { font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 9px 12px; border: 2.5px solid; border-radius: 4px; opacity: 0; transform: scale(1.8) rotate(var(--r)); transition: opacity .25s var(--d), transform .35s cubic-bezier(.3, 1.6, .5, 1) var(--d); mix-blend-mode: multiply; }
.stamp.s1 { --r: -6deg; --d: .4s; color: #6b6458; }
.stamp.s2 { --r: 4deg; --d: 1.1s; color: #a4561c; margin-top: 10px; }
.stamp.s3 { --r: -3deg; --d: 1.8s; color: #2f6b4f; }
:is(.docket.in, html:not(.motion) .docket) .stamp { opacity: .92; transform: scale(1) rotate(var(--r)); }
@media (max-width: 860px) { .signoff { grid-template-columns: 1fr; } .docket { max-width: 420px; } }

/* ---- SC. 07 — The group ---- */
.group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(80px, 12vh, 140px) var(--gutter); background: var(--ink-2); }
.group-film { position: relative; aspect-ratio: 9 / 15; overflow: hidden; border-radius: 4px; background: var(--ink-3); }
.group-film video { opacity: 0; transition: opacity 1.2s; } .group-film video.playing { opacity: 1; }
.gweek { margin: 30px 0 18px; padding: 14px; max-width: 560px; font-size: 12.5px; }
.gw-row { display: grid; grid-template-columns: 88px repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 5px; }
.gw-hd span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7a8780; text-align: center; }
.gw-loc { font-weight: 600; display: flex; align-items: center; }
.gw-sh { background: #ecf3ee; border-radius: 6px; padding: 9px 6px; text-align: center; font-weight: 600; color: #3d6152; transition: box-shadow .4s 1s, background .4s 1s, color .4s 1s; }
:is(.in, html:not(.motion)) .gw-sh.clash { box-shadow: inset 0 0 0 2px #d0603a; background: #fbe9e2; color: #9c3d1f; }
.gw-sh.gap { background: repeating-linear-gradient(135deg, #f3f3ee 0 6px, #fafaf7 6px 12px); color: #9aa49e; }
:is(.in, html:not(.motion)) .gw-sh.gap { box-shadow: inset 0 0 0 2px #e0a144; color: #8a6420; }
.gw-warn { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: #fbe9e2; color: #9c3d1f; font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity .5s 1.5s, transform .5s 1.5s; }
.gw-warn i { background: #d0603a; }
:is(.in, html:not(.motion)) .gw-warn { opacity: 1; transform: none; }
.group .small { font-size: 15px; color: var(--cream-3); max-width: 46ch; }
@media (max-width: 860px) {
  .group { grid-template-columns: 1fr; padding-top: 0; }
  .group-film { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; border-radius: 0; }
  .gw-row { grid-template-columns: 72px repeat(4, minmax(0, 1fr)); } .gweek { font-size: 11px; padding: 10px; }
}

/* ---- SC. 08 — The bill ---- */
.bill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: "copy tray" "faq tray"; gap: 24px clamp(32px, 6vw, 96px); align-items: start; padding: clamp(80px, 14vh, 160px) var(--gutter); background: radial-gradient(70% 60% at 75% 50%, #2c2117 0%, var(--ink) 70%); }
.bill-copy { grid-area: copy; align-self: end; }
.tray { grid-area: tray; padding: 34px 30px; background: linear-gradient(145deg, #2a2520, #171512); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.receipt { position: relative; background: #f6f0e2; color: #1b1712; padding: 30px 26px 26px; font: 400 13px/1.5 var(--mono); transform: rotate(-1.2deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 16px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 11px) no-repeat;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 16px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 11px) no-repeat; }
.r-head { text-align: center; font-weight: 500; letter-spacing: .2em; margin-bottom: 20px; }
.r-head small { font-weight: 400; letter-spacing: .08em; color: #6b6458; font-size: 10.5px; }
.r-line { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.r-line i { flex: 1; border-bottom: 1.5px dotted #8b8274; transform: translateY(-4px); }
.r-line span:last-child { text-align: right; }
.r-total { display: flex; justify-content: space-between; border-top: 1.5px dashed #1b1712; margin: 18px 0 20px; padding-top: 12px; font-weight: 500; font-size: 18px; }
.receipt .button { width: 100%; }
.receipt :focus-visible { outline-color: var(--ink); }
.r-foot { text-align: center; font-size: 10.5px; letter-spacing: .14em; color: #6b6458; margin-top: 18px; padding-bottom: 6px; }
.faq { grid-area: faq; max-width: 520px; }
.faq details { border-top: 1px solid var(--ink-3); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--ink-3); }
.faq summary { cursor: pointer; list-style: none; font: 400 22px/1.3 var(--serif); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px/1.4 var(--mono); color: var(--amber); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--cream-2); margin-top: 10px; font-size: 15.5px; }
@media (max-width: 860px) { .bill { grid-template-columns: 1fr; grid-template-areas: "copy" "tray" "faq"; } .tray { padding: 22px 16px; } .receipt { padding: 24px 18px 22px; font-size: 12px; } }

/* ---- SC. 09 — Last call ---- */
.last { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gutter); overflow: hidden; }
.last .film::before { content: ""; position: absolute; inset: 0; z-index: 3; background: radial-gradient(60% 60% at 50% 50%, rgba(13, 12, 11, .55), rgba(13, 12, 11, .92)); }
.film.dim img, .film.dim video { filter: brightness(.7); }
.last-copy { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; }
.last h2 { font-size: clamp(72px, 13vw, 200px); line-height: .9; margin: 18px 0 18px; }
.last .lede { margin-bottom: 34px; text-align: center; }

/* ---- Credits ---- */
.credits { padding: clamp(80px, 14vh, 140px) var(--gutter) 48px; text-align: center; background: var(--ink); border-top: 1px solid var(--ink-3); }
.credits-title { font: italic 400 34px/1 var(--serif); margin-bottom: 44px; }
.credits dl { margin: 0 auto; max-width: 760px; display: grid; gap: 22px; }
.credits dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.credits dt { text-align: right; font: 400 11px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.credits dd { margin: 0; font: 400 20px/1.35 var(--serif); color: var(--cream); }
.credits-links { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 13px; color: var(--cream-3); }
.credits-links a { text-decoration: none; color: var(--cream-2); }
.credits-links a:hover { color: var(--amber); }
@media (max-width: 600px) { .credits dl div { grid-template-columns: 1fr; gap: 4px; text-align: center; } .credits dt { text-align: center; } }

/* ---- Reduced motion: the same page, still ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sunday, .office { height: auto; }
  .track .sticky { position: static; }
}

/* ---- Headlines with their own idea (design pass) ---- */
/* The floor: "asked" gets struck through in amber as the scene arrives, then "answered". */
.struck { text-decoration: none; position: relative; color: var(--cream-2); white-space: nowrap; }
.struck::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: .08em; background: var(--amber); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.6, 0, .2, 1) .5s; }
:is(.in, html:not(.motion)) .struck::after { transform: scaleX(1); }
/* The sign-off: the word is stamped, like the stamps beside it. */
.stamped { display: inline-block; font: 500 .52em/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); border: .07em solid; border-radius: .12em; padding: .22em .38em .18em; transform: rotate(-4deg) translateY(-.18em); margin-left: .12em; }
/* The group: "every" drawn in outline. */
.outlined { color: transparent; -webkit-text-stroke: 1.5px var(--amber); font-style: italic; padding-right: .06em; }
/* The check: set like the receipt it sits beside. */
.bill h2.printed { font: 500 clamp(30px, 3.6vw, 52px)/1.15 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.bill h2.printed::after { content: ""; display: block; width: 4.5em; border-bottom: 2px dotted var(--amber); margin-top: .5em; }
em.quiet { color: var(--cream); }

/* ---- Edge-to-edge films for the bar and the back of house (desktop) ---- */
@media (min-width: 1101px) {
  .pocket { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; padding: 0; gap: 0; min-height: 100svh; align-items: center; }
  .pocket-film { grid-row: 1 / span 2; height: 100%; min-height: 100svh; aspect-ratio: auto; border-radius: 0; }
  .pocket-copy { grid-column: 2; padding: 120px var(--gutter) 24px; align-self: end; }
  .pocket .phone { grid-column: 2; position: relative; z-index: 2; justify-self: start; align-self: start; margin: 12px 0 110px calc(-1 * clamp(80px, 9vw, 140px)); }
}
@media (min-width: 861px) {
  .group { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 0; gap: 0; min-height: 100svh; }
  .group-film { order: 2; height: 100%; min-height: 100svh; aspect-ratio: auto; border-radius: 0; }
  .group-copy { padding: 110px var(--gutter); position: relative; z-index: 2; }
  .group .gweek { margin-right: calc(-1 * clamp(60px, 8vw, 150px)); }
}
/* Tighter rhythm between scenes on desktop. */
@media (min-width: 861px) { .signoff, .bill { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px); } }

/* ---- Sunday on phones: the lines are there from the start, then brighten ---- */
@media (max-width: 700px) { .lines p { opacity: clamp(.22, (var(--p) * 7 - var(--i)) * 1.6, 1); } }
.nowrap { white-space: nowrap; }
