/* ==========================================================================
   Baffo, the product: "De nacht" (26 October 2026, second direction). Loaded after product.css on every product page.

   The one idea: Baffo switches the light on in every empty moment.
   The page is a building at night. Every window is a moment: dark means empty, amber (the colour of Baffo Bot's own
   eyes) means filled. A deal is a window with the light on. The pointer carries a lantern that lights the windows it
   passes, the bot's eyes throw a beam, and on the start page a hall of empty seats fills up as you scroll.

   Calm screens (booking, the till, the venue's own pages) keep the same palette and the same lit windows, with the
   lantern off and the building faint. Everything moves with transforms and opacity; with reduced motion nothing moves.
   Classes of the start page, the bot and the companion start with "n-"; everything else restyles the "b-" parts.
   ========================================================================== */

/* ----- The building behind every page, painted once: windows, dim, with a few lit at random ----- */
html {
  background: var(--b-page);
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/img/facade-night.svg") 0 0 / 336px 320px repeat, var(--b-hero);
  -webkit-mask-image: linear-gradient(#000 0%, #000 55%, rgba(0, 0, 0, 0.45) 100%);
  mask-image: linear-gradient(#000 0%, #000 55%, rgba(0, 0, 0, 0.45) 100%);
}

/* Screens where you act: the building steps back. */
.n-calm body::before {
  opacity: 0.5;
}

::selection {
  background: var(--b-amber);
  color: var(--b-on-honey);
}

/* ----- The lantern: the pointer's light. A soft pool of amber, and inside it every window is lit. Desktop only; the
   script (universe.js) only moves it with transforms, so it never repaints. ----- */
.n-lantern {
  position: fixed;
  top: -280px;
  left: -280px;
  z-index: 25;
  width: 560px;
  height: 560px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.2), transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  will-change: transform;
}

.n-lantern.is-on {
  opacity: 1;
}

.n-lantern-lit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("/assets/img/facade-lit.svg") 0 0 / 336px 320px repeat;
  opacity: 0.38;
  will-change: transform;
}

/* ----- Type: capitals like the lettering on a building ----- */
:is(.b-display, .b-title, .b-h2, .b-h3, .b-card-title, .b-pass-title) {
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}

.b-display { font-size: var(--b-display); }
.b-h2 { font-size: clamp(2.5rem, 10vw, 3.75rem); }
.b-h3 { font-size: 1.875rem; }
.b-card-title { font-size: 1.875rem; line-height: 0.95; }
.b-pass-title { font-size: 3.5rem; }

/* A title in capitals with a tight line height needs a little air before the text under it. */
:is(.b-h2, .b-h3, .b-title) + p {
  margin-top: var(--b-2);
}

.b-display em,
.b-title em,
.b-h2 em {
  color: var(--b-amber);
  font-style: normal;
}

/* The small label above a title, with a window that is lit: the mark of Baffo, used wherever something is "on". */
.b-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  color: var(--b-amber-soft);
  font-size: var(--b-caps);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.b-kicker::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.85em;
  border-radius: 1px;
  background: var(--b-amber);
  box-shadow: 0 0 10px rgba(255, 181, 71, 0.7);
}

.b-price {
  font-family: var(--b-serif);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

a {
  text-decoration-color: color-mix(in srgb, var(--b-link) 50%, transparent);
}

a:hover {
  text-decoration-color: var(--b-link);
}

/* ----- Button: a window with the light on. One amber action per screen; moonlight outline for the rest. ----- */
.b-button {
  min-height: 54px;
  border-radius: var(--b-radius-m);
  box-shadow: 0 10px 30px -12px rgba(255, 181, 71, 0.55);
  font-family: var(--b-serif);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-position 400ms var(--b-ease), transform var(--b-fast) var(--b-ease), box-shadow var(--b-mid) var(--b-ease);
}

.b-button:hover {
  box-shadow: 0 0 0 1px rgba(255, 213, 138, 0.6), 0 14px 40px -10px rgba(255, 181, 71, 0.75);
}

.b-button::after {
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 66%) !important;
}

.b-button--quiet {
  border-color: rgba(143, 184, 255, 0.5);
  background: rgba(143, 184, 255, 0.05);
  box-shadow: none;
  color: var(--b-ink);
}

.b-button--quiet:hover {
  background: rgba(143, 184, 255, 0.12);
  box-shadow: var(--b-glow-moon);
}

.b-button--text {
  font-family: var(--b-font);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.b-button--text:hover {
  box-shadow: none;
}

/* Magnetic: the big buttons of the start page lean a few pixels toward the pointer (universe.js sets --mx and --my). */
.n-magnetic {
  translate: var(--mx, 0) var(--my, 0);
}

/* ----- Card: a window. Moonlight in the frame, and a deal is lit from inside, warmest where the pointer is. ----- */
.b-cards > li {
  filter: none;
}

.b-card {
  border: 1px solid rgba(143, 184, 255, 0.28);
  border-radius: var(--b-radius-s);
  background:
    radial-gradient(130% 100% at var(--mx, 50%) var(--my, 0%), rgba(255, 181, 71, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(255, 181, 71, 0.08), transparent 45%),
    var(--b-surface);
  -webkit-mask: none;
  mask: none;
  transition: border-color var(--b-mid) ease, box-shadow var(--b-mid) var(--b-ease), transform var(--b-fast) var(--b-ease);
}

:is(a, button).b-card:hover,
:is(a, button).b-card:focus-visible {
  border-color: rgba(255, 181, 71, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.22), 0 22px 50px -20px rgba(255, 181, 71, 0.5);
}

.b-card--plain {
  background: var(--b-surface);
  border-color: var(--b-line);
}

.b-card-time {
  color: var(--b-amber);
  font-family: var(--b-serif);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.b-card-foot {
  border-top: 1px dashed rgba(143, 184, 255, 0.28);
}

.b-card-foot::before,
.b-card-foot::after {
  content: none;
}

.b-card--plain .b-card-foot {
  border-top: 1px solid var(--b-line);
}

.b-card-go {
  border-radius: var(--b-radius-m);
  font-family: var(--b-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px -8px rgba(255, 181, 71, 0.7);
}

.b-card-save {
  border: 1px solid rgba(111, 227, 165, 0.35);
  border-radius: var(--b-radius-s);
  font-size: var(--b-small);
}

/* The photo melts into the window. */
.b-card-photo {
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
  filter: saturate(1.1) contrast(1.05);
}

.b-card.has-photo .b-card-time,
.b-card.has-photo .b-card-body {
  position: relative;
  margin-top: calc(-1 * var(--b-5));
}

/* ----- Pass: the window you hold, lit. Night blue above the tear line with the amber coming up from below. ----- */
.b-pass {
  border: 1px solid rgba(255, 181, 71, 0.45);
  border-radius: var(--b-radius-l);
  background: var(--b-surface);
  box-shadow: 0 0 40px -14px rgba(255, 181, 71, 0.45);
}

.b-pass-top {
  border-radius: var(--b-radius-l) var(--b-radius-l) 0 0;
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.12), transparent 85%);
}

.b-pass--gold .b-pass-top {
  background:
    radial-gradient(90% 80% at 85% 120%, rgba(255, 181, 71, 0.5), transparent 70%),
    url("/assets/img/facade-night.svg") 0 0 / 224px 213px,
    linear-gradient(170deg, #1B2442 0%, #121936 70%);
  color: var(--b-ink);
}

.b-pass--gold .b-pass-top::before {
  border-color: rgba(255, 213, 138, 0.28);
  border-radius: 3px 3px 0 0;
}

.b-pass--gold .b-pass-top .b-small,
.b-pass--gold .b-pass-top .b-pass-brand,
.b-pass--gold .b-pass-top .b-live {
  color: #E3DCCB;
}

.b-pass--gold .b-pass-top .b-live::before {
  background: var(--b-amber);
  box-shadow: 0 0 10px var(--b-amber);
}

.b-pass-brand {
  letter-spacing: 0.2em;
}

.b-pass-brand::before {
  width: 0.55em;
  height: 0.8em;
  border-radius: 1px;
  background: var(--b-amber);
  box-shadow: 0 0 10px var(--b-amber);
  transform: none;
}

.b-pass-tear {
  border-top-color: rgba(143, 184, 255, 0.3);
}

.b-pass-tear::before,
.b-pass-tear::after {
  border-color: rgba(143, 184, 255, 0.3);
}

.b-pass.is-live .b-pass-top::after {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 213, 138, 0.18) 50%, transparent 65%) !important;
}

.b-face-initial {
  border-radius: var(--b-radius-s);
}

.b-list--passes .b-row-lead {
  border: 1px solid rgba(255, 181, 71, 0.55);
  border-radius: var(--b-radius-s);
  background: rgba(255, 181, 71, 0.1);
  box-shadow: none;
  color: var(--b-amber);
  font-family: var(--b-serif);
  font-weight: 800;
}

/* ----- List, notice, choices and fields ----- */
.b-list {
  border-radius: var(--b-radius-m);
  border-color: var(--b-line);
  background: rgba(15, 20, 36, 0.85);
}

.b-list > li:first-child > :is(a, button).b-row { border-radius: var(--b-radius-m) var(--b-radius-m) 0 0; }
.b-list > li:last-child > :is(a, button).b-row { border-radius: 0 0 var(--b-radius-m) var(--b-radius-m); }
.b-list > li:only-child > :is(a, button).b-row { border-radius: var(--b-radius-m); }

.b-row-lead {
  border-radius: var(--b-radius-s);
}

.b-notice {
  border-left: 3px solid var(--b-moon);
  border-radius: var(--b-radius-s);
}

.b-notice--ok { border-left-color: var(--b-ok); }
.b-notice--warn { border-left-color: var(--b-warn); }
.b-notice--bad { border-left-color: var(--b-bad); }

.b-chip,
.b-option,
.b-round {
  border-radius: var(--b-radius-m);
}

.b-chip[aria-pressed="true"],
.b-option[aria-pressed="true"],
.b-tabs button[aria-pressed="true"] {
  border-color: var(--b-amber);
  background: rgba(255, 181, 71, 0.14);
  box-shadow: inset 0 0 0 1px var(--b-amber), 0 0 22px -8px rgba(255, 181, 71, 0.6);
  color: var(--b-ink);
}

/* A choice is never shown by colour alone: the chosen option carries a tick, a chosen chip a doubled border. */
.b-option {
  position: relative;
}

.b-option[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: var(--b-4);
  right: var(--b-4);
  width: 22px;
  height: 12px;
  border: solid var(--b-amber);
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) scale(0.75);
  transform-origin: 50% 50%;
}

.b-tabs,
.b-tabs button,
.b-progress,
.b-progress span {
  border-radius: var(--b-radius-m);
}

.b-langs .b-chip[aria-pressed="true"] {
  background: none;
  box-shadow: none;
  text-decoration-color: var(--b-amber);
}

.b-input {
  border-radius: var(--b-radius-s);
  background: #0B0F1E;
}

.b-input:focus-visible {
  border-color: var(--b-amber-soft);
}

.b-facts,
.b-till,
.b-cal-embed {
  border-radius: var(--b-radius-m);
}

/* At the till the price line stays calm: a smaller poster, never two shouting lines. */
.b-till .b-title {
  font-size: 1.875rem;
}

.b-swipe {
  border-radius: var(--b-radius-m);
  background: linear-gradient(90deg, var(--b-honey) var(--swipe, 0%), var(--b-surface) var(--swipe, 0%));
}

.b-skip {
  border-radius: var(--b-radius-s);
}

/* ----- Baffo Bot on a screen of its own (empty, success, offline): the character in a round window, lit from behind ----- */
.b-bot-picture {
  position: relative;
  width: 132px;
  height: 132px;
  padding: var(--b-2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 181, 71, 0.4), #151C3C 70%);
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.6), 0 0 0 6px var(--b-page), 0 0 0 7px rgba(143, 184, 255, 0.35), 0 0 40px -4px rgba(255, 181, 71, 0.4);
}

.b-bot--inline .b-bot-picture {
  width: 72px;
  height: 72px;
}

/* ----- The frame: header and footer ----- */
.b-header {
  border-bottom: 0;
  background: rgba(8, 11, 22, 0.8);
  box-shadow: none;
}

.b-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 181, 71, 0.55) 30%, rgba(143, 184, 255, 0.4) 70%, transparent);
}

.b-wordmark {
  gap: var(--b-2);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.b-mark {
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 181, 71, 0.45), #151C3C 75%);
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.7), 0 0 14px -2px rgba(255, 181, 71, 0.55);
  object-fit: contain;
}

.b-nav {
  gap: 2px;
}

.b-nav a {
  position: relative;
  padding: 0 var(--b-3);
  border-radius: var(--b-radius-s);
  font-size: var(--b-caps);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--b-fast) ease-out, background-color var(--b-fast) ease-out;
}

.b-nav a:hover {
  background: rgba(255, 181, 71, 0.1);
  color: var(--b-amber-soft);
}

/* The current page: a window lit under the word. Never colour alone: the bar is also thicker than the rest. */
.b-nav a[aria-current] {
  color: var(--b-ink);
  text-decoration: none;
}

.b-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto var(--b-3) 6px;
  height: 3px;
  background: var(--b-amber);
  box-shadow: 0 0 10px rgba(255, 181, 71, 0.8);
}

/* The way in for venues is its own door: moonlight outline, on every screen size. */
.b-nav a.b-nav-biz {
  margin-left: var(--b-1);
  border: 1px solid rgba(143, 184, 255, 0.55);
  color: var(--b-link);
}

.b-nav a.b-nav-biz:hover {
  background: rgba(143, 184, 255, 0.14);
  box-shadow: var(--b-glow-moon);
  color: var(--b-ink);
}

.b-nav a.b-nav-biz[aria-current]::after {
  background: var(--b-moon);
  box-shadow: 0 0 10px var(--b-moon);
}

@media (max-width: 480px) {
  .b-header-inner { gap: var(--b-1); padding-inline: var(--b-3); }
  .b-wordmark { gap: 6px; font-size: 1.3rem; letter-spacing: 0.06em; }
  .b-mark { width: 30px; height: 30px; }
  .b-nav { margin-right: calc(-1 * var(--b-1)); }
  /* The one place below the caps size (12 px, bold capitals): the name and three entries must share 375 px. */
  .b-nav a { padding: 0 6px; font-size: 0.75rem; letter-spacing: 0.03em; white-space: nowrap; }
  .b-nav a.b-nav-biz { margin-left: 2px; }
  .b-nav a[aria-current]::after { inset-inline: 6px; }
}

/* On the narrowest phones the word beside the mark makes way, so the navigation keeps its 12 px (the mark still says Baffo). */
@media (max-width: 350px) {
  .b-wordmark span { display: none; }
}

/* On narrow phones the three entries must all fit: the old rule that hid "Voor zaken" is gone, so a venue finds its door. */
.b-nav-wide {
  display: inline-flex !important;
}

.b-footer {
  border-top: 0;
  position: relative;
}

.b-footer::before {
  content: "";
  position: absolute;
  inset: 0 var(--b-4) auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 181, 71, 0.5), rgba(143, 184, 255, 0.35) 60%, transparent);
}

.b-footer-links a,
.b-footer-maker {
  font-size: var(--b-caps);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b-footer-links a:hover,
.b-footer-links a[aria-current] {
  color: var(--b-amber-soft);
}

/* ----- Old ornaments of the first systems, kept for the pages that still carry their markup ----- */
.b-fan {
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.18), transparent);
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 50%;
}

.b-dial {
  display: none;
}

.b-rule {
  width: 132px;
  height: 1px;
  background: linear-gradient(90deg, var(--b-amber), transparent);
}

.b-rule::after {
  content: none;
}

/* ==========================================================================
   Baffo Bot, the character (the photographs in /assets/img/baffo/). His signature: the amber of his eyes is the light
   of the whole site. Where he is, there is a beam, and where the beam falls, the windows are lit.
   ========================================================================== */
.n-bot {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
}

/* The warm light behind him, as if the building's windows were his. */
.n-bot-halo {
  position: absolute;
  inset: 6% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.34), rgba(143, 184, 255, 0.1) 60%, transparent);
}

.n-bot-body {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* A cool rim light, so the navy shell stands out of the night. */
  filter: drop-shadow(0 0 1px rgba(160, 200, 255, 0.9)) drop-shadow(0 6px 26px rgba(255, 181, 71, 0.22));
}

/* The beam: it leaves his visor and points where the pointer is (universe.js sets --ang). Without a pointer it sweeps
   slowly, like a lighthouse looking for empty windows. */
@property --ang {
  syntax: "<angle>";
  inherits: true;
  initial-value: 200deg;
}

.n-beam {
  position: absolute;
  top: 30%;
  left: 50%;
  z-index: 0;
  width: 120vw;
  height: 380px;
  margin-top: -190px;
  /* A soft wedge of light: bright on its axis, gone at its edges, fading with distance. */
  background: conic-gradient(from 76deg at 0% 50%, transparent 0deg, rgba(255, 200, 110, 0.42) 14deg, transparent 28deg, transparent 360deg);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 92%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 92%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: rotate(var(--ang));
  transform-origin: 0 50%;
  transition: --ang 160ms linear;
}

/* On a phone the bot is below the title: the beam looks up at it. */
.n-hero-bot {
  --sweep-a: 240deg;
  --sweep-b: 300deg;
  width: min(62vw, 250px);
  aspect-ratio: 480 / 564;
  margin-inline: auto;
}

.n-hero-bot .n-bot-body {
  z-index: 1;
}

.n-chip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: 12rem;
  padding: var(--b-2) var(--b-3);
  border: 1px solid rgba(255, 181, 71, 0.7);
  border-radius: var(--b-radius-s);
  background: rgba(8, 11, 22, 0.88);
  box-shadow: 0 0 26px -6px rgba(255, 181, 71, 0.55);
  color: var(--b-ink);
  font-size: var(--b-small);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--b-slow) var(--b-ease), transform var(--b-slow) var(--b-ease);
}

.n-chip.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.n-chip b {
  color: var(--b-amber);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.n-chip--a { top: 4%; left: -22%; }

@media (min-width: 560px) {
  .n-chip--a { left: -34%; }
}

/* ==========================================================================
   The start page: five scenes. Dusk (the promise), the windows that are lit now (the feed), the hall that fills up
   (how it works), the venue's side, and the quiet that ends with a light.
   ========================================================================== */
[data-page="today"] .b-header-inner { max-width: var(--b-wide); }

.n-home {
  max-width: var(--b-wide);
  padding-top: 0;
}

/* ----- Scene 1: dusk ----- */
.n-hero {
  position: relative;
  display: grid;
  gap: var(--b-5);
  padding: var(--b-6) 0 var(--b-6);
  isolation: isolate;
  contain: paint;   /* the beam is long: it must not widen the page */
}

.n-hero-copy {
  position: relative;
  display: grid;
  gap: var(--b-3);
  justify-items: start;
}

.n-langs {
  position: absolute;
  top: calc(-1 * var(--b-2));
  right: 0;
  z-index: 3;
}

/* On the hero the switch sits in the amber light with the lit windows behind it: --b-soft drops to 4.2:1 there,
   --b-ink stays above 7:1. The chosen language still shows by its weight and the amber underline. */
.n-langs .b-chip {
  color: var(--b-ink);
}

/* The promise, in letters tall as a building. The pointer's light (--hx, --hy) turns the letters amber where it
   passes; everywhere else they are the cream of a lit sign that is switched down. "Samen." is always lit. */
@property --hx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 15%;
}

@property --hy {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 45%;
}

.n-title {
  font-size: clamp(3rem, 14vw, 5.25rem);
  line-height: 0.86;
  color: var(--b-ink);
}

.n-title .b-line {
  display: block;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .n-title {
    background: radial-gradient(circle min(300px, 62vw) at var(--hx) var(--hy), #FFE3A8 0%, #FFB547 38%, rgba(246, 239, 224, 0.62) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .n-title em {
    -webkit-text-fill-color: var(--b-amber);
    color: var(--b-amber);
    text-shadow: 0 0 36px rgba(255, 181, 71, 0.55);
  }
}

.n-hero .b-lead {
  max-width: 32ch;
}

.n-hero .b-cta-pair {
  max-width: 24rem;
}

/* The signal strip: the real moments that are lit right now, scrolling past like the lights of a passing train.
   Space is reserved, so nothing moves when it fills. */
.n-ticker {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  margin: 0 calc(-1 * var(--b-4));
  overflow: hidden;
  border-block: 1px solid rgba(143, 184, 255, 0.25);
  background: rgba(8, 11, 22, 0.72);
  font-size: 0.9375rem;
  font-weight: 600;
}

.n-ticker-status {
  padding: 0 var(--b-4);
  color: var(--b-soft);
  font-weight: 500;
  white-space: nowrap;
}

.n-ticker-track {
  display: flex;
  flex: none;
  width: max-content;
}

.n-ticker-group {
  display: flex;
  flex: none;
}

.n-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--b-2);
  min-height: 56px;
  padding: 0 var(--b-5);
  border-right: 1px solid rgba(143, 184, 255, 0.18);
  color: var(--b-ink);
  text-decoration: none;
  white-space: nowrap;
}

.n-ticker-item::before {
  content: "";
  width: 7px;
  height: 11px;
  border-radius: 1px;
  background: var(--b-amber);
  box-shadow: 0 0 8px rgba(255, 181, 71, 0.8);
}

.n-ticker-item:hover {
  background: rgba(255, 181, 71, 0.1);
}

.n-ticker-item b {
  color: var(--b-amber);
  font-family: var(--b-serif);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.n-ticker-item i {
  color: var(--b-ink);
  font-style: normal;
  font-weight: 800;
}

.n-ticker-item s {
  color: var(--b-soft);
}

/* With less motion the strip does not scroll by itself: it is a row you swipe. */
.n-ticker.is-static {
  overflow-x: auto;
  scrollbar-width: none;
}

/* ----- Scene 2: the windows that are lit now ----- */
.n-home .b-anchor {
  margin-top: var(--b-8);
}

.n-home #today-title {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
}

@media (min-width: 760px) {
  .n-home .b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--b-4); }
}

@media (min-width: 1040px) {
  .n-home .b-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The grid the pages share: a phone gets one column (--b-width). From tablet up, the pages where a venue works or a
   guest compares moments open to a wider column (--b-workspace); a single moment, the pass and the till stay narrow,
   because there the task is one thing. One rule here, no page sets its own width. */
@media (min-width: 768px) {
  [data-page="business-owner"] .b-main,
  [data-page="business-admin"] .b-main,
  [data-page="deals"] .b-main:not(.is-focus) {
    max-width: var(--b-workspace);
  }
}

/* A field never grows past a readable line: a name is not 850 px wide. */
@media (min-width: 768px) {
  [data-page="business-owner"] form,
  [data-page="business-admin"] form {
    max-width: var(--b-width);
  }
}

@media (min-width: 900px) {
  [data-page="deals"] .b-main:not(.is-focus) .b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--b-4); }
}

/* The day as windows: one row per day, an hour per window, lit where a real moment starts. Its height is fixed from the
   start, so nothing moves when the answer arrives. */
.n-daystrip {
  display: grid;
  gap: var(--b-2);
  margin-top: var(--b-4);
}

.n-day {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: var(--b-2);
  align-items: center;
  min-height: 40px;
}

.n-day-name {
  color: var(--b-soft);
  font-size: var(--b-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.n-hours,
.n-marks {
  display: grid;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  gap: 3px;
}

.n-hour {
  position: relative;
  display: block;
  height: 36px;
  border: 1px solid rgba(143, 184, 255, 0.25);
  border-radius: 2px;
  background: rgba(143, 184, 255, 0.04);
}

/* A lit window is a link: its tap zone reaches 44 px high and a few pixels either side, although the window itself is
   narrow (seventeen hours share one row). The same moments are cards with a full-size link below. */
.n-hour.is-lit::after {
  content: "";
  position: absolute;
  inset: -4px -1px;
}

.n-hour.is-lit {
  border-color: var(--b-amber-soft);
  background: var(--b-amber);
  box-shadow: 0 0 14px -2px rgba(255, 181, 71, 0.8);
  transition: transform var(--b-fast) var(--b-ease), box-shadow var(--b-mid) ease;
}

.n-hour.is-lit:hover,
.n-hour.is-lit:focus-visible {
  box-shadow: 0 0 22px 0 rgba(255, 181, 71, 1);
  transform: translateY(-3px);
}

.n-marks {
  margin-left: calc(4.25rem + var(--b-2));
  color: var(--b-soft);
  font-size: var(--b-caps);
  font-weight: 600;
}

/* ----- Scene 3: the hall that fills up. The stage is pinned while the page scrolls; the seats light one by one with the
   scroll (universe.js sets --p from 0 to 1). The three steps are the real text; the hall is an illustration. ----- */
.n-fill {
  margin-top: var(--b-8);
}

.n-fill-stage {
  display: grid;
  gap: var(--b-5);
  align-content: start;
}

.n-hall {
  display: grid;
  gap: var(--b-3);
  margin: 0;
  padding: var(--b-4);
  border: 1px solid rgba(143, 184, 255, 0.28);
  border-radius: var(--b-radius-s);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.07), transparent 40%), var(--b-surface);
}

.n-screen {
  height: 6px;
  border-radius: 3px;
  background: rgba(143, 184, 255, 0.18);
  overflow: hidden;
}

.n-screen::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--b-amber);
  box-shadow: 0 0 14px var(--b-amber);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.n-seats {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: clamp(4px, 1.4vw, 10px);
}

.n-seat {
  aspect-ratio: 1 / 0.9;
  border: 1px solid rgba(143, 184, 255, 0.35);
  border-radius: 6px 6px 3px 3px;
  background: rgba(143, 184, 255, 0.06);
  transition: background-color 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}

.n-seat.is-lit {
  border-color: var(--b-amber-soft);
  background: var(--b-amber);
  box-shadow: 0 0 14px -2px rgba(255, 181, 71, 0.8);
}

.n-hall figcaption {
  color: var(--b-soft);
  font-size: var(--b-small);
}

.n-steps {
  display: grid;
  gap: var(--b-2);
}

.n-steps > li {
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-s);
  background: rgba(15, 20, 36, 0.7);
  transition: border-color var(--b-mid) ease, background-color var(--b-mid) ease, opacity var(--b-mid) ease;
}

.n-steps > li.is-here {
  border-color: rgba(255, 181, 71, 0.8);
  background: rgba(255, 181, 71, 0.08);
}

.n-steps .b-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--b-4);
  padding: var(--b-3) var(--b-4);
}

.n-steps .b-row-lead {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(143, 184, 255, 0.5);
  background: transparent;
  color: var(--b-moon);
  font-family: var(--b-serif);
  font-size: 2rem;
  font-weight: 800;
}

.n-steps li.is-here .b-row-lead {
  border-color: var(--b-amber);
  background: var(--b-amber);
  color: var(--b-on-honey);
}

.n-how-bot {
  width: 130px;
  aspect-ratio: 360 / 420;
  margin-inline: auto;
}

/* Pinned: only when the script says motion is welcome (class n-pin on <html>). Otherwise it is a normal section. */
.n-pin .n-fill-track {
  height: 230vh;
}

.n-pin .n-fill-stage {
  position: sticky;
  top: calc(var(--b-8) + env(safe-area-inset-top, 0px));
  min-height: calc(100svh - var(--b-8) - 24px);
  align-content: center;
}

/* Savings: four readouts */
[data-page="today"] .b-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--b-line);
  background: var(--b-line);
}

[data-page="today"] .b-facts > div {
  display: grid;
  gap: var(--b-1);
  align-content: start;
  background: var(--b-surface);
}

[data-page="today"] .b-facts > div + div {
  border-top: 0;
}

[data-page="today"] .b-facts dt {
  color: var(--b-amber-soft);
  font-size: var(--b-caps);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-page="today"] .b-facts dd {
  font-size: var(--b-body);
}

/* The agreements are lit windows too: a small lit window in front of each rule. */
[data-page="today"] .b-row--nolead {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

[data-page="today"] .b-row--nolead::before {
  content: "";
  width: 9px;
  height: 14px;
  margin-top: 5px;
  border-radius: 1px;
  background: var(--b-amber);
  box-shadow: 0 0 10px rgba(255, 181, 71, 0.7);
}

[data-page="today"] .b-stack {
  display: grid;
  gap: var(--b-1);
}

/* ----- Scene 4: the venue's side. Calm, warm: the owner switches the lights on. ----- */
.n-biz {
  position: relative;
  display: grid;
  gap: var(--b-3);
  padding: var(--b-6) var(--b-5);
  overflow: hidden;
  border: 1px solid rgba(255, 181, 71, 0.5);
  border-radius: var(--b-radius-l);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 181, 71, 0.22), transparent 65%),
    url("/assets/img/facade-night.svg") 0 0 / 280px 267px,
    var(--b-surface);
}

.n-biz-bot {
  width: 150px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.n-biz .b-cta-pair {
  max-width: 26rem;
}

/* ----- Scene 5: the quiet, and a light. The bot sleeps while the page is quiet; when you arrive he wakes up. ----- */
.n-final {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--b-4);
  padding: var(--b-7) var(--b-4);
  text-align: center;
  perspective: 900px;
}

.n-final-bot {
  width: 150px;
  aspect-ratio: 360 / 553;
}

.n-final-bot .n-bot-body {
  position: absolute;
  inset: 0;
  transition: opacity 700ms ease;
}

.n-final-bot .n-wake {
  opacity: 0;
}

.n-final.is-awake .n-wake {
  opacity: 1;
}

.n-final.is-awake .n-sleep {
  opacity: 0;
}

.n-final.is-awake .n-bot-halo {
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.6), transparent);
}

.n-final .b-display {
  font-size: clamp(3rem, 13vw, 6rem);
  transform: rotateX(calc((1 - var(--f, 1)) * 38deg));
  transform-origin: 50% 100%;
}

.n-final .b-lead {
  max-width: 34ch;
}

.n-final .b-cta-pair {
  max-width: 26rem;
}

/* ==========================================================================
   Motion, only for visitors who accept it
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* The promise arrives line by line from behind a ledge, and its light sweeps across until a pointer takes over. */
  .n-title .b-line {
    animation: n-rise 900ms var(--b-ease) both;
  }

  .n-title .b-line:nth-child(2) { animation-delay: 110ms; }
  .n-title .b-line:nth-child(3) { animation-delay: 220ms; }

  .n-title:not(.has-pointer) {
    animation: n-sweep 9s ease-in-out 1s infinite alternate;
  }

  .n-hero-bot {
    animation: n-arrive 1000ms var(--b-ease) 250ms both;
  }

  .n-hero-bot:not(.has-pointer) .n-beam {
    animation: n-lookaround 7s ease-in-out infinite alternate;
  }

  .n-bot-body {
    animation: n-float 4.2s ease-in-out infinite alternate;
  }

  .n-final-bot .n-bot-body {
    animation: none;
  }

  .n-bot-halo {
    animation: n-glow 5s ease-in-out infinite alternate;
  }

  .n-ticker-track {
    animation: n-marquee var(--n-marquee, 40s) linear infinite;
  }

  .n-ticker:hover .n-ticker-track,
  .n-ticker:focus-within .n-ticker-track {
    animation-play-state: paused;
  }

  .n-nod .n-bot-body,
  .n-nod.n-launcher-bot {
    animation: n-nod 700ms var(--b-ease) both;
  }

  /* Scroll reveals: only what is still below the screen waits (universe.js marks it), so nothing flashes. */
  [data-reveal].n-wait {
    opacity: 0;
    transform: translateY(18px);
  }

  [data-reveal] {
    transition: opacity 700ms var(--b-ease), transform 700ms var(--b-ease);
  }

  /* A title is a sign being switched on: it is uncovered from the top down. */
  .b-h2[data-reveal].n-wait,
  .b-display[data-reveal].n-wait {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
  }

  .b-h2[data-reveal],
  .b-display[data-reveal] {
    clip-path: inset(0);
    transition: clip-path 900ms var(--b-ease);
  }

  .n-panel,
  .n-bubble {
    animation: n-pop 360ms var(--b-ease) both;
    transform-origin: 100% 100%;
  }

  .n-launcher-bot {
    animation: n-bob 3.2s ease-in-out infinite alternate;
  }

  /* Between pages: the new page is uncovered from the bottom, like a light coming on in the next window. */
  @view-transition {
    navigation: auto;
  }

  .b-header {
    view-transition-name: b-header;
  }

  ::view-transition-old(root) {
    animation: 260ms ease-in both n-dim;
  }

  ::view-transition-new(root) {
    animation: 700ms var(--b-ease) both n-uncover;
  }
}

@keyframes n-rise {
  from { opacity: 0; transform: translateY(0.3em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}

@keyframes n-sweep {
  from { --hx: 8%; --hy: 40%; }
  to { --hx: 92%; --hy: 60%; }
}

@keyframes n-arrive {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
}

@keyframes n-lookaround {
  from { --ang: var(--sweep-a); }
  to { --ang: var(--sweep-b); }
}

@keyframes n-float {
  to { translate: 0 -10px; }
}

@keyframes n-glow {
  to { opacity: 0.6; transform: scale(1.06); }
}

@keyframes n-marquee {
  to { transform: translateX(-50%); }
}

@keyframes n-nod {
  30% { translate: 0 6px; scale: 0.97; }
  60% { translate: 0 -12px; scale: 1.04; }
}

@keyframes n-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
}

@keyframes n-bob {
  to { translate: 0 -3px; }
}

@keyframes n-dim {
  to { opacity: 0.35; }
}

@keyframes n-uncover {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

/* ==========================================================================
   The companion: a small floating Baffo Bot that opens a guide. Never on the screens where you book, confirm or
   run the till (data-page: universe.js); always clear of the content (the footer leaves room for it).
   ========================================================================== */
.n-has-companion .b-footer {
  padding-bottom: calc(var(--b-9) + env(safe-area-inset-bottom, 0px));
}

.n-companion {
  position: fixed;
  right: max(var(--b-4), env(safe-area-inset-right, 0px));
  bottom: calc(var(--b-4) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: var(--b-3);
}

.n-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 181, 71, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 181, 71, 0.45), #12183A 75%);
  box-shadow: 0 0 30px -6px rgba(255, 181, 71, 0.6), 0 10px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--b-fast) var(--b-ease), box-shadow var(--b-mid) ease;
}

.n-launcher:hover {
  box-shadow: 0 0 40px -4px rgba(255, 181, 71, 0.85), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.n-launcher:active {
  transform: scale(0.94);
}

.n-launcher-bot {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
}

/* A small lit window: the guide has something to say (a pass of yours). */
.n-launcher[data-note]::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 15px;
  border: 2px solid var(--b-page);
  border-radius: 2px;
  background: var(--b-amber);
  box-shadow: 0 0 10px var(--b-amber);
}

.n-bubble {
  position: relative;
  max-width: min(17rem, calc(100vw - 2 * var(--b-4) - 72px));
  padding: var(--b-2) var(--b-3);
  border: 1px solid rgba(255, 181, 71, 0.7);
  border-radius: var(--b-radius-m) var(--b-radius-m) 2px var(--b-radius-m);
  background: rgba(8, 11, 22, 0.94);
  color: var(--b-ink);
  font-size: var(--b-small);
  line-height: 1.4;
  box-shadow: 0 0 22px -6px rgba(255, 181, 71, 0.45);
}

.n-panel {
  width: min(22rem, calc(100vw - 2 * var(--b-4)));
  max-height: min(34rem, calc(100dvh - 120px - env(safe-area-inset-bottom, 0px)));
  overflow: auto;
  border: 1px solid rgba(143, 184, 255, 0.45);
  border-radius: var(--b-radius-l);
  background: linear-gradient(180deg, rgba(24, 30, 54, 0.97), rgba(9, 12, 24, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overscroll-behavior: contain;
}

.n-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--b-3);
  align-items: center;
  padding: var(--b-3) var(--b-3) var(--b-3) var(--b-4);
  border-bottom: 1px solid rgba(143, 184, 255, 0.22);
}

.n-panel-bot {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.n-panel-title {
  font-family: var(--b-serif);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.n-panel-title:focus {
  outline: none;
}

.n-panel-sub {
  color: var(--b-amber-soft);
  font-size: var(--b-caps);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.n-panel-close {
  display: grid;
  place-items: center;
  width: var(--b-tap);
  height: var(--b-tap);
  padding: 0;
  border: 0;
  border-radius: var(--b-radius-s);
  background: transparent;
  color: var(--b-ink);
  cursor: pointer;
}

.n-panel-close:hover {
  background: rgba(255, 181, 71, 0.12);
}

.n-panel-close svg {
  width: 22px;
  height: 22px;
}

.n-panel-body {
  display: grid;
  gap: var(--b-3);
  padding: var(--b-4);
}

.n-panel-say {
  padding: var(--b-3);
  border-left: 3px solid var(--b-amber);
  background: rgba(255, 181, 71, 0.08);
  font-size: var(--b-small);
  line-height: 1.45;
}

.n-panel-links {
  display: grid;
  gap: var(--b-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.n-panel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-3);
  min-height: var(--b-tap);
  padding: 0 var(--b-3);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: rgba(15, 20, 36, 0.8);
  color: var(--b-ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--b-fast) ease, background-color var(--b-fast) ease;
}

.n-panel-links a::after {
  content: "→";
  color: var(--b-amber);
}

.n-panel-links a:hover {
  border-color: var(--b-amber);
  background: rgba(255, 181, 71, 0.1);
}

.n-panel-links a.is-pass {
  border-color: rgba(255, 181, 71, 0.7);
}

.n-panel-note {
  color: var(--b-soft);
  font-size: var(--b-small);
}

/* ----- Desktop: the start page opens up ----- */
@media (min-width: 900px) {
  .n-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--b-7);
    min-height: calc(100svh - var(--b-9));
    padding: var(--b-7) 0;
  }

  .n-title { font-size: clamp(4.5rem, 6.9vw, 6.1rem); }
  .n-hero-bot { --sweep-a: 160deg; --sweep-b: 205deg; width: min(100%, 400px); }
  .n-chip--a { left: -12%; top: 8%; }
  .n-hero .b-cta-pair { max-width: 30rem; grid-auto-flow: column; grid-auto-columns: 1fr; }

  .n-fill-stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--b-7); align-items: center; }
  .n-fill-stage > .b-block-head { grid-column: 1 / -1; margin-bottom: 0; }
  .n-how-bot { display: none; }

  [data-page="today"] .b-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-page="today"] .b-list:not(.n-steps) { columns: 2; column-gap: 0; }
  [data-page="today"] .b-list:not(.n-steps) > li { break-inside: avoid; }

  .n-biz { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: var(--b-7); padding: var(--b-8) var(--b-7); align-items: center; }
  .n-biz > :not(.n-biz-bot) { grid-column: 1; }
  .n-biz-bot { grid-column: 2; grid-row: 1 / span 7; width: min(100%, 280px); }
}

/* ==========================================================================
   Without motion everything is simply there: no rise, no float, no lantern, no pinned scene, no scrolling strip.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [data-reveal].n-wait {
    opacity: 1;
    transform: none;
  }

  .n-lantern {
    display: none;
  }
}
