/* ============================================================================
   Chairline - public stylesheet
   Vanilla CSS. No framework, no build step.

   Brand colours are injected as custom properties by the layout, so the shop
   can restyle the whole site from Admin > Branding without touching a file.
   ========================================================================= */

:root {
  /* Overridden inline by the layout from saved settings */
  --brand: #c8a54a;
  --ink: #101014;
  --surface: #ffffff;

  /* Derived neutrals */
  --ink-90: color-mix(in srgb, var(--ink) 90%, #fff);
  --ink-70: color-mix(in srgb, var(--ink) 70%, #fff);
  --ink-55: color-mix(in srgb, var(--ink) 55%, #fff);
  --ink-40: color-mix(in srgb, var(--ink) 40%, #fff);
  --ink-20: color-mix(in srgb, var(--ink) 20%, #fff);
  --ink-10: color-mix(in srgb, var(--ink) 10%, #fff);
  --ink-05: color-mix(in srgb, var(--ink) 5%, #fff);

  --brand-dark: color-mix(in srgb, var(--brand) 72%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 38%, #fff);

  --ok: #1d7a4c;
  --ok-soft: #e6f4ec;
  --warn: #9a6300;
  --warn-soft: #fdf3e2;
  --danger: #b3261e;
  --danger-soft: #fcebea;
  --info: #1d4f8a;
  --info-soft: #e8f0fa;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .06), 0 1px 3px rgba(16, 16, 20, .04);
  --shadow: 0 2px 6px rgba(16, 16, 20, .05), 0 10px 26px rgba(16, 16, 20, .07);
  --shadow-lg: 0 8px 20px rgba(16, 16, 20, .08), 0 24px 60px rgba(16, 16, 20, .12);

  --ff-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-90);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Accessible focus ring on everything interactive */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================================
   Layout
   ========================================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 720px; }
.wrap--mid { max-width: 900px; }

.stack > * + * { margin-top: var(--gap, 16px); }
.section { padding-block: clamp(40px, 7vw, 84px); }
.section--tight { padding-block: clamp(26px, 4vw, 48px); }

.grid { display: grid; gap: clamp(14px, 2.4vw, 22px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1 1 auto; }

/* ============================================================================
   Site header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--ink-10);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__logo { height: 38px; width: auto; max-width: 180px; object-fit: contain; }
.brand__text { display: grid; }
.brand__name {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: .01em; line-height: 1.1;
}
.brand__tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }

.site-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.site-nav a {
  padding: 9px 13px; border-radius: 999px; text-decoration: none;
  font-size: .92rem; color: var(--ink-70); transition: background .25s var(--ease), color .25s var(--ease);
}
.site-nav a:hover { background: var(--ink-05); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px;
    border: 1px solid var(--ink-20); border-radius: 12px;
    background: transparent; cursor: pointer; color: var(--ink);
  }
  .site-nav {
    position: fixed; inset: 68px 0 auto; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--ink-10);
    padding: 12px var(--pad) 20px; margin: 0;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 14px 12px; border-radius: 10px; font-size: 1rem; }
}

/* ============================================================================
   Buttons
   ========================================================================= */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn--brand { --btn-bg: var(--brand); --btn-fg: #16130a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink-20); }
.btn--ghost:hover { background: var(--ink-05); }
.btn--quiet { --btn-bg: var(--ink-05); --btn-fg: var(--ink); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--danger-ghost {
  --btn-bg: transparent; --btn-fg: var(--danger);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent);
}
.btn--danger-ghost:hover { --btn-bg: var(--danger-soft); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .86rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  color: var(--btn-fg); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   Cards and surfaces
   ========================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius);
  padding: clamp(16px, 2.6vw, 26px);
}
.card--raised { box-shadow: var(--shadow); border-color: transparent; }
.card--flat { background: var(--ink-05); border-color: transparent; }
.card--brand { background: var(--brand-soft); border-color: var(--brand-line); }
.card__title { font-family: var(--ff-display); font-size: 1.1rem; margin: 0 0 6px; }
.card__meta { font-size: .85rem; color: var(--ink-55); }

.panel {
  background: var(--surface); border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__head {
  padding: clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid var(--ink-10);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel__body { padding: clamp(16px, 2.6vw, 28px); }
.panel__foot {
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.6vw, 28px);
  border-top: 1px solid var(--ink-10); background: var(--ink-05);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

.divider { height: 1px; background: var(--ink-10); border: 0; margin-block: 20px; }

/* ============================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #f3f1ec;
  padding-block: clamp(56px, 10vw, 110px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 78% 12%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 62%);
}
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { color: #fff; }
.hero__eyebrow {
  font-size: .76rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brand); font-weight: 500; margin-bottom: 18px;
}
.hero__lede { font-size: clamp(1rem, 2vw, 1.12rem); color: #c9c5bd; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* ============================================================================
   Forms
   ========================================================================= */
.field { margin-bottom: 18px; }
.field > label,
.field-label {
  display: block; font-size: .88rem; font-weight: 500;
  color: var(--ink-70); margin-bottom: 7px;
}
.field__hint { font-size: .82rem; color: var(--ink-55); margin-top: 6px; }
.field__hint--no { color: var(--danger); font-weight: 600; }
.field__error { font-size: .84rem; color: var(--danger); margin-top: 6px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], input[type="search"],
input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink-20); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
input::placeholder, textarea::placeholder { color: var(--ink-40); }

.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.check {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--ink-10); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--surface);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.check:hover { border-color: var(--ink-20); background: var(--ink-05); }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--brand-dark); flex: 0 0 auto; }
.check span { font-size: .92rem; line-height: 1.5; }

/* Selectable tiles, used for services, barbers and time slots */
.choice {
  position: relative; display: block; cursor: pointer;
  border: 1.5px solid var(--ink-10); border-radius: var(--radius);
  padding: 16px; background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.choice:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.choice:has(input:focus-visible) { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.choice__title { font-weight: 600; margin-bottom: 3px; }
.choice__meta { font-size: .85rem; color: var(--ink-55); }
.choice__price { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ============================================================================
   Step indicator
   ========================================================================= */
.steps { display: flex; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; flex-wrap: wrap; }

/* On a phone four labels will not sit on one line, and letting them wrap
   leaves the last step stranded on a row of its own under a full width bar.
   Two by two reads as a progress indicator; three and one reads as a fault. */
@media (max-width: 560px) {
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .steps li { min-width: 0; }
}
.steps li {
  flex: 1 1 90px; display: grid; gap: 6px; min-width: 76px;
  font-size: .76rem; color: var(--ink-40); letter-spacing: .04em;
}
.steps li::before {
  content: ""; height: 4px; border-radius: 99px; background: var(--ink-10);
  transition: background .35s var(--ease);
}
.steps li[data-state="done"] { color: var(--ink-70); }
.steps li[data-state="done"]::before { background: var(--brand-line); }
.steps li[data-state="current"] { color: var(--ink); font-weight: 600; }
.steps li[data-state="current"]::before { background: var(--brand); }

/* ============================================================================
   Badges, pills, status
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  background: var(--ink-05); color: var(--ink-70); white-space: nowrap;
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--brand { background: var(--brand-soft); color: var(--brand-dark); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================================
   Alerts
   ========================================================================= */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid; font-size: .93rem; margin-bottom: 18px;
}
.alert__icon { flex: 0 0 auto; margin-top: 2px; }
.alert--success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, #fff); color: #14532d; }
.alert--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, #fff); color: #7f1d1d; }
.alert--warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, #fff); color: #78350f; }
.alert--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 22%, #fff); color: #1e3a8a; }

/* ============================================================================
   Empty states
   ========================================================================= */
.empty {
  text-align: center; padding: clamp(28px, 6vw, 56px) 20px;
  border: 1.5px dashed var(--ink-20); border-radius: var(--radius);
  background: var(--ink-05);
}
.empty__icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--ink-10); color: var(--ink-40);
}
.empty__title { font-family: var(--ff-display); font-size: 1.15rem; margin-bottom: 6px; color: var(--ink); }
.empty__body { color: var(--ink-55); max-width: 42ch; margin-inline: auto; font-size: .94rem; }
.empty .btn { margin-top: 18px; }

/* ============================================================================
   Service list
   ========================================================================= */
.svc { display: grid; gap: 10px; }
.svc__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--ink-10);
}
.svc__item:last-child { border-bottom: 0; }
.svc__body { flex: 1 1 auto; min-width: 0; }
.svc__name { font-weight: 600; margin-bottom: 2px; }
.svc__desc { font-size: .9rem; color: var(--ink-55); }
.svc__side { text-align: right; flex: 0 0 auto; }
.svc__price { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600; }
.svc__dur { font-size: .8rem; color: var(--ink-55); }

/* ============================================================================
   Time slot grid
   ========================================================================= */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  position: relative; display: block; cursor: pointer;
  text-align: center; padding: 13px 8px;
  border: 1.5px solid var(--ink-10); border-radius: 10px;
  font-size: .92rem; font-weight: 500; background: var(--surface);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot:hover { border-color: var(--brand-line); }
.slot:has(input:checked) { border-color: var(--brand-dark); background: var(--brand); color: #16130a; }
.slot:has(input:focus-visible) { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.slot.is-taken {
  color: var(--ink-40); background: var(--ink-05); cursor: not-allowed;
  border-style: dashed; text-decoration: line-through;
}

/* Horizontal date rail */
.date-rail {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.date-rail::-webkit-scrollbar { height: 6px; }
.date-rail::-webkit-scrollbar-thumb { background: var(--ink-20); border-radius: 99px; }
.date-chip {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  min-width: 74px; text-align: center; cursor: pointer;
  padding: 11px 10px; border: 1.5px solid var(--ink-10); border-radius: 12px;
  background: var(--surface); transition: border-color .18s var(--ease);
}
.date-chip input { position: absolute; opacity: 0; pointer-events: none; }
.date-chip__dow { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); }
.date-chip__day { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.date-chip__mon { font-size: .72rem; color: var(--ink-55); }
.date-chip:has(input:checked) { border-color: var(--brand-dark); background: var(--brand); }
.date-chip:has(input:checked) .date-chip__dow,
.date-chip:has(input:checked) .date-chip__mon { color: #4a3c14; }
.date-chip.is-closed { opacity: .45; cursor: not-allowed; }
.date-chip.is-closed .date-chip__day { text-decoration: line-through; }

/* ============================================================================
   Booking summary rail
   ========================================================================= */
.summary { position: sticky; top: 88px; }
.summary__line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: .92rem; }
.summary__line + .summary__line { border-top: 1px dashed var(--ink-10); }
.summary__label { color: var(--ink-55); }
.summary__value { font-weight: 500; text-align: right; }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--ink-20);
}
.summary__total .amount { font-family: var(--ff-display); font-size: 1.45rem; font-weight: 600; }

@media (max-width: 900px) {
  .summary { position: static; }
}

/* ============================================================================
   Person cards in the booking flow
   ========================================================================= */
.person {
  border: 1px solid var(--ink-10); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; background: var(--surface);
}
.person__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink-10);
}
.person__num {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 600;
}
.person__title { font-weight: 600; font-size: .98rem; }
.person__remove {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--ink-55); font-size: .85rem; padding: 6px 8px; border-radius: 6px;
}
.person__remove:hover { color: var(--danger); background: var(--danger-soft); }

/* ============================================================================
   Confirmation and queue status
   ========================================================================= */
.confirm-hero { text-align: center; padding-block: clamp(26px, 5vw, 46px); }
.confirm-hero__tick {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ok-soft); color: var(--ok);
}
.ref-block {
  display: inline-grid; gap: 4px; justify-items: center;
  padding: 16px 30px; border: 1.5px dashed var(--brand-line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.ref-block__label { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-55); }
.ref-block__code {
  font-family: var(--ff-display); font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 600; letter-spacing: .1em;
}

.qr-card { display: grid; justify-items: center; gap: 12px; padding: 22px; }
.qr-card svg { border-radius: 8px; }

.queue-number {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(3rem, 16vw, 6rem); line-height: 1;
  letter-spacing: .04em; color: var(--ink);
}
.queue-stat { text-align: center; padding: 18px 12px; }
.queue-stat__value { font-family: var(--ff-display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.queue-stat__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); margin-top: 4px; }
.queue-estimate-note { font-size: .84rem; color: var(--ink-55); font-style: italic; }

.progress-track { height: 6px; border-radius: 99px; background: var(--ink-10); overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 99px; transition: width .6s var(--ease); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding-bottom: 18px; position: relative;
}
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0;
  width: 2px; background: var(--ink-10);
}
.timeline__dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-05); color: var(--ink-40); border: 2px solid var(--surface);
  position: relative; z-index: 1; font-size: .7rem;
}
.timeline li[data-state="done"] .timeline__dot { background: var(--ok); color: #fff; }
.timeline li[data-state="current"] .timeline__dot { background: var(--brand); color: #16130a; }
.timeline__title { font-weight: 600; font-size: .95rem; }
.timeline__meta { font-size: .84rem; color: var(--ink-55); }

/* ============================================================================
   Consultation
   ========================================================================= */
.consult-shell { max-width: 640px; margin-inline: auto; }
.consult-progress {
  display: flex; gap: 5px; margin-bottom: 26px;
}
.consult-progress span {
  flex: 1; height: 4px; border-radius: 99px; background: var(--ink-10);
}
.consult-progress span[data-on="1"] { background: var(--brand); }

.consult-q {
  font-family: var(--ff-display); font-size: clamp(1.35rem, 4vw, 1.9rem);
  margin-bottom: 8px;
}
.consult-help { color: var(--ink-55); margin-bottom: 22px; }

.rec-card {
  display: grid; gap: 10px;
  border: 1px solid var(--ink-10); border-radius: var(--radius);
  padding: 18px; background: var(--surface);
}
.rec-card__type {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 600;
}
.rec-card__title { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; }
.rec-card__body { font-size: .92rem; color: var(--ink-70); }
.rec-card img { border-radius: 10px; }

.disclaimer {
  font-size: .84rem; color: var(--ink-55);
  padding: 14px 16px; border-left: 3px solid var(--brand-line);
  background: var(--ink-05); border-radius: 0 8px 8px 0;
}

/* ============================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--ink); color: #b6b1a8;
  padding-block: clamp(34px, 6vw, 58px); margin-top: clamp(40px, 8vw, 90px);
}
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--ff-body); font-weight: 600; }
.site-footer a { color: #d9d5cd; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer__bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* ============================================================================
   Shop display screen
   ========================================================================= */
.display-screen {
  min-height: 100vh; background: var(--ink); color: #f3f1ec;
  display: flex; flex-direction: column; padding: clamp(18px, 3vw, 40px);
}
.display-screen__head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(18px, 3vw, 34px); }
.display-screen__clock { margin-left: auto; font-family: var(--ff-display); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.now-serving { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.now-card {
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 88%, #000), color-mix(in srgb, var(--brand) 55%, #000));
  color: #16130a; border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px);
}
.now-card__code { font-family: var(--ff-display); font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 600; line-height: 1; }
.now-card__meta { font-size: clamp(.85rem, 1.6vw, 1rem); opacity: .82; margin-top: 8px; }
.waiting-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.waiting-chip {
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05);
  font-family: var(--ff-display); font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}

/* ============================================================================
   Utilities
   ========================================================================= */
.t-center { text-align: center; }
.t-right { text-align: right; }
.t-muted { color: var(--ink-55); }
.t-small { font-size: .86rem; }
.t-mono { font-variant-numeric: tabular-nums; }
.t-nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hide { display: none !important; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .btn--block-sm { width: 100%; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .panel, .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================================
   Public data lists
   Same idea as the admin data views, simpler: no toggle, always readable,
   and they stack on a phone without a horizontal scrollbar.
   ========================================================================= */
.plist { display: grid; gap: 0; }
.plist__row {
  display: grid; grid-template-columns: var(--cols, 1fr auto);
  gap: 12px; align-items: baseline;
  padding: 11px 0;
}
.plist__row + .plist__row { border-top: 1px solid var(--ink-10); }
.plist__row--head {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-55); font-weight: 600; padding-bottom: 8px;
}
.plist__cell { min-width: 0; }
.plist__cell--num { text-align: right; font-variant-numeric: tabular-nums; }
.plist__label {
  display: none;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 2px;
}
.plist__sub { font-size: .84rem; color: var(--ink-55); margin-top: 2px; }
.plist__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 13px; margin-top: 4px; border-top: 1.5px solid var(--ink-20);
  font-weight: 600;
}

@media (max-width: 720px) {
  .plist__row--head { display: none; }
  .plist__row {
    grid-template-columns: 1fr; gap: 6px;
    padding: 14px; border: 1px solid var(--ink-10); border-radius: 12px;
  }
  .plist { gap: 10px; }
  .plist__row + .plist__row { border-top: 1px solid var(--ink-10); }
  .plist__label { display: block; }
  .plist__cell--num { text-align: left; }
  .plist__cell:empty { display: none; }
}

/* Opening hours read as a simple two column list at every size. */
.hours-list { display: grid; gap: 0; }
.hours-list__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; font-size: .94rem;
}
.hours-list__row + .hours-list__row { border-top: 1px solid var(--ink-10); }
.hours-list__row[data-today="1"] { font-weight: 600; }
.hours-list__day { color: var(--ink-70); }

/* ============================================================================
   Layout guard

   A fieldset carries a browser rule of its own: min-inline-size: min-content.
   It therefore refuses to shrink below its widest child, and a scrolling strip
   of date chips inside one pushes the whole grid column past the edge of the
   page. Every other element defaults to min-width:auto and behaves; this one
   has to be told.
   ========================================================================= */
fieldset { min-width: 0; }

/* ============================================================================
   Premium select

   The native <select> is still in the form and still holds the value. It sits
   transparent behind the button so the browser can anchor its own "please
   choose a service" message to something real, which it refuses to do for a
   control it considers hidden.
   ========================================================================= */
.xsel { position: relative; width: 100%; }

.xsel > select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0;
  appearance: none; -webkit-appearance: none;
}

.xsel__btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink-10); border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.xsel__btn:hover { border-color: var(--ink-20); }
.xsel__btn:focus-visible,
.xsel[data-open] .xsel__btn {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.xsel__btn:disabled { opacity: .55; cursor: not-allowed; background: var(--ink-05); }

.xsel__face { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.xsel__face-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel__face-meta { font-size: .84rem; color: var(--ink-55); white-space: nowrap; margin-left: auto; }
.xsel[data-empty-value="1"] .xsel__face-name { color: var(--ink-40); font-weight: 400; }

.xsel__caret {
  flex: 0 0 auto; width: 9px; height: 9px; margin-left: 2px;
  border-right: 1.8px solid var(--ink-40); border-bottom: 1.8px solid var(--ink-40);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ease), border-color .18s var(--ease);
}
.xsel[data-open] .xsel__caret,
.phone[data-open] .xsel__caret { transform: translateY(1px) rotate(225deg); border-color: var(--brand-dark); }

/* ------------------------------------------------------------- the panel -- */
.xsel__panel {
  position: absolute; left: 0; right: 0; z-index: 60;
  background: var(--surface);
  border: 1px solid var(--ink-10); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.99);
  transform-origin: top center;
  transition: opacity .16s var(--ease), transform .18s var(--ease), visibility .18s;
}
/* The open panel, serving from <body>: fixed for real, visible by its own
   class because the data-open ancestor selectors cannot reach it out there. */
.xsel__panel.is-float {
  position: fixed; right: auto; z-index: 320;
  opacity: 1; visibility: visible;
  transform: none;
}

.xsel[data-drop="down"] .xsel__panel,
.phone[data-drop="down"] .xsel__panel { top: calc(100% + 7px); }
.xsel[data-drop="up"] .xsel__panel,
.phone[data-drop="up"] .xsel__panel {
  bottom: calc(100% + 7px); transform-origin: bottom center; transform: translateY(6px) scale(.99);
}
.xsel[data-open] .xsel__panel,
.phone[data-open] .xsel__panel {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

.xsel__search { padding: 10px 10px 6px; border-bottom: 1px solid var(--ink-10); }
.xsel__input {
  width: 100%; padding: 9px 12px; font: inherit; font-size: .9rem;
  border: 1.5px solid var(--ink-10); border-radius: 9px;
  background: var(--ink-05); color: var(--ink);
}
.xsel__input:focus-visible { outline: none; border-color: var(--brand-dark); background: var(--surface); }

.xsel__list { max-height: 264px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.xsel__list::-webkit-scrollbar { width: 8px; }
.xsel__list::-webkit-scrollbar-thumb { background: var(--ink-20); border-radius: 99px; }

.xsel__group {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-40); font-weight: 600;
  padding: 12px 10px 5px;
}
.xsel__group:first-child { padding-top: 5px; }

.xsel__opt {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  padding: 10px 34px 10px 12px; border-radius: 9px; cursor: pointer;
  transition: background .12s var(--ease);
}
.xsel__opt-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel__opt-meta { flex: 0 0 auto; margin-left: auto; font-size: .82rem; color: var(--ink-55); white-space: nowrap; }

.xsel__opt:hover,
.xsel__opt.is-cursor { background: var(--ink-05); }
.xsel__opt[aria-selected="true"] {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  font-weight: 500;
}
.xsel__opt[aria-selected="true"] .xsel__opt-meta { color: var(--brand-dark); }
.xsel__opt[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

/* The tick is drawn rather than typed, so it never picks up a fallback glyph. */
.xsel__tick {
  position: absolute; right: 13px; top: 50%;
  width: 6px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark);
  transform: rotate(42deg) scale(.5); opacity: 0;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.xsel__opt[aria-selected="true"] .xsel__tick { opacity: 1; transform: rotate(42deg) scale(1); }

.xsel__empty { margin: 0; padding: 20px 14px; text-align: center; font-size: .86rem; color: var(--ink-55); }

/* ============================================================================
   Phone number with a country code
   ========================================================================= */
.phone {
  position: relative; display: flex; align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--ink-10); border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.phone:focus-within,
.phone[data-open] {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.phone__country {
  display: flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 0 12px 0 14px; cursor: pointer;
  font: inherit; color: var(--ink);
  background: none; border: 0;
  border-right: 1.5px solid var(--ink-10);
  border-radius: 11px 0 0 11px;
  transition: background .16s var(--ease);
}
.phone__country:hover { background: var(--ink-05); }
.phone__country:focus-visible { outline: none; background: var(--ink-05); }

.phone__flag { font-size: 1.15rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.phone__dial { font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--ink-70); }

/* The number box loses its own frame: the wrapper is the field now. */
.phone .phone__number,
.phone input.phone__number {
  flex: 1 1 auto; min-width: 0;
  border: 0; border-radius: 0 11px 11px 0;
  background: none; box-shadow: none;
  padding: 12px 14px;
}
.phone .phone__number:focus,
.phone .phone__number:focus-visible { outline: none; box-shadow: none; border: 0; }

.phone__panel { left: 0; right: auto; min-width: min(330px, 92vw); }
.phone__opt { align-items: center; }
.phone__opt .xsel__opt-meta { font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .phone__panel { right: 0; min-width: 0; }
  .phone__country { padding: 0 9px 0 11px; gap: 5px; }
  .phone__dial { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .xsel__panel, .xsel__caret, .xsel__tick, .xsel__opt { transition: none; }
}

/* ============================================================================
   Booking step layout

   The chosen services sit in a rail beside the step on a desktop and below it
   on a phone. This was an inline style, which no media query can reach, so on
   a narrow screen the rail kept its 300px and squeezed the actual step down to
   a few pixels wide.
   ========================================================================= */
.book-layout {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}
.book-layout--single { grid-template-columns: minmax(0, 1fr); gap: 26px; }

@media (max-width: 900px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ============================================================================
   App shell

   The screen the counter QR code opens. It is a web page, but it should not
   feel like one: a single column the width of a phone, a bar that behaves like
   a native title bar, tap feedback on everything, and padding taken from the
   safe area so nothing sits under a notch or a home indicator.
   ========================================================================= */

.app-html { height: 100%; background: var(--ink); }

.app-body {
  min-height: 100%;
  margin: 0;
  background: #f6f5f2;
  /* html stays dark so the rubber band at the top of iOS reveals the bar's
     colour rather than a white strip. */
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

.app {
  --app-pad: 20px;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f5f2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Shown on one side of the break only. The phone screen and the desktop page
   are two different designs, not one design at two sizes. The matching rules
   live at the end of this file, after every component has declared its own
   display, so they are not outranked by one. */
.only-desktop { display: none; }

/* ---------------------------------------------------------------------------
   Desktop and tablet

   The app treatment stops here. From 900px up this is an ordinary page on the
   site: the real header, the real footer, full width, and the hub laid out as
   a page rather than a stack of phone rows.
   ------------------------------------------------------------------------ */
@media (min-width: 768px) {
  .app-html { background: var(--surface); }
  .app-body { background: var(--surface); }

  .app {
    max-width: none;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--surface);
    overflow: visible;
  }

  .app-main { padding-bottom: 0; }
  .app-flash { background: transparent; padding: 20px var(--pad) 0; max-width: var(--maxw); margin-inline: auto; }
}

/* ------------------------------------------------------------------ bar -- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background: var(--ink);
  color: #fff;
}
.appbar__title {
  flex: 1 1 auto; min-width: 0; text-align: center;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appbar__title img { max-height: 26px; max-width: 150px; vertical-align: middle; }

.appbar__btn {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .08);
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.appbar__btn:active { transform: scale(.9); background: rgba(255, 255, 255, .18); }
.appbar__btn svg { width: 19px; height: 19px; }
.appbar__btn--ghost { background: none; pointer-events: none; }

.app-flash { padding: 12px var(--app-pad) 0; background: #f6f5f2; }
.app-flash .alert { margin: 0 0 8px; }

.app-main {
  flex: 1 1 auto;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
}

/* ============================================================================
   The hub as a ledger

   The counter QR opens this. One dark board, brass serif lettering, and the
   choices as a numbered menu with hairline rules: closer to the card in a
   good shop's window than to a grid of app buttons. Scoped to .app--hub so
   every inner screen keeps its light paper.
   ========================================================================= */
.app-body.app--hub { background: #f7f5f0; }
.app.app--hub {
  background:
    radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 62%),
    #f7f5f0;
  color: var(--ink);
}
/* The ledger carries the name in serif right under the bar; saying it again
   in the bar read like a stutter. The bar stays ink so the page opens with
   the brand's dark line across the top. */
.app--hub .appbar__title { opacity: 0; }
.app--hub .app-flash { background: transparent; }
@keyframes lgr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 158, 95, .4); }
  60%      { box-shadow: 0 0 0 7px rgba(47, 158, 95, 0); }
}

@keyframes lgr-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================================
   Inner app screens
   ========================================================================= */
.screen { padding: 22px var(--app-pad) 0; }
.screen__head { margin-bottom: 18px; }
.screen__title {
  margin: 0 0 5px; font-family: var(--ff-display);
  font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em;
}
.screen__sub { margin: 0; font-size: .9rem; color: var(--ink-55); line-height: 1.5; }
.screen__section {
  margin: 26px 0 11px; font-family: var(--ff-body);
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-40); font-weight: 600;
}

/* ---------------------------------------------------------------------------
   The lookup: presenting your card at the counter.

   The number and the button sit on one panel so they read as a single act.
   Left loose on the page they were two small controls adrift in white, which
   is what made the screen feel unfinished on a wide display.
   ------------------------------------------------------------------------ */
.lookup-head { text-align: center; }
.lookup-over {
  margin: 0 0 8px;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand-dark);
}
.lookup-head .screen__sub { max-width: 34ch; margin-inline: auto; }

.lookup {
  display: grid; gap: 14px;
  max-width: 420px; margin: 22px auto 0;
}
.lookup-card {
  padding: 20px 18px 18px;
  background: #fffdf9;
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 14px 34px rgba(16, 16, 20, .07);
}

/* Scoped to the element, not to any label inside the panel, so a nested
   component never inherits the counter's lettering. */
.lookup-card .field { margin-bottom: 0; }
.lookup-card .field > label {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-55);
}

.lookup-note {
  margin: 2px 0 0; text-align: center;
  font-size: .73rem; line-height: 1.5; color: var(--ink-40);
}

/* -------------------------------------------------------------- totals -- */
.vstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.vstat {
  padding: 15px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--ink-10);
  display: grid; gap: 3px;
}
.vstat--wide { grid-column: span 2; }
.vstat__value {
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600;
  line-height: 1.1; letter-spacing: -.02em;
}
.vstat__value--text { font-size: 1.05rem; }
.vstat__label {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-55); font-weight: 600;
}

/* --------------------------------------------------------------- rows -- */
.vlist { display: grid; gap: 9px; }
.vrow {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--ink-10);
  color: var(--ink); text-decoration: none;
}
.vrow--next {
  border-color: var(--brand-line);
  background: color-mix(in srgb, var(--brand) 7%, #fff);
  transition: transform .14s var(--ease);
}
.vrow--next:active { transform: scale(.98); }

.vrow__when {
  flex: 0 0 auto; width: 62px; text-align: center;
  display: grid; gap: 1px;
  padding-right: 13px; border-right: 1px solid var(--ink-10);
}
.vrow__when strong {
  font-family: var(--ff-display); font-size: .98rem; font-weight: 600;
  line-height: 1.15; white-space: nowrap;
}
.vrow__when small { font-size: .68rem; color: var(--ink-40); }

.vrow__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.vrow__body strong { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.vrow__body small { font-size: .77rem; color: var(--ink-55); }

.vrow__amount {
  flex: 0 0 auto; font-weight: 600; font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.vrow__go { flex: 0 0 auto; color: var(--brand-dark); }
.vrow__go svg { width: 17px; height: 17px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .vrow--next, .appbar__btn, .rail__row, .rail__go, .door__links a { transition: none; animation: none; }
}

/* ============================================================================
   The hub as a desktop page

   Same markup, a different composition: a full width hero band, then the
   choices as a card grid rather than a phone stack.
   ========================================================================= */
@media (min-width: 768px) {

  /* ---------------------------------------------------------- the board -- */
  .app-body.app--hub { background: #f7f5f0; }
  .app.app--hub { border-radius: 0; }

  /* ------------------------------------------------- inner app screens -- */
  .screen {
    max-width: 760px; margin-inline: auto;
    padding: clamp(34px, 5vw, 56px) var(--pad) clamp(40px, 6vw, 72px);
  }
  .screen__title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
  .screen__sub { font-size: 1rem; }
  .lookup { margin-top: 26px; }
  .vstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vstat--wide { grid-column: auto; }
}

/* ============================================================================
   Phone and desktop switch

   Last in the file on purpose. A component that sets its own display, such as
   .appbar, would otherwise win at equal specificity and stay on screen at the
   wrong size.
   ========================================================================= */
.only-desktop { display: none !important; }

@media (min-width: 768px) {
  .only-desktop { display: block !important; }
  .only-phone { display: none !important; }
}

/* ============================================================================
   Dialog

   Lives directly under <body>, so nothing here has to fight a parent's
   stacking context or overflow. z-index is deliberately above the admin
   sidebar and the sticky app bar.
   ========================================================================= */
.cdialog {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  padding: 20px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
}

.cdialog__scrim {
  position: absolute; inset: 0;
  background: rgba(16, 16, 20, .55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.cdialog[data-open] .cdialog__scrim { opacity: 1; }

.cdialog__box {
  position: relative;
  width: 100%; max-width: 400px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 28px 26px 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(16, 16, 20, .4), 0 2px 8px rgba(16, 16, 20, .18);
  text-align: center;

  /* Comes up from slightly below and slightly small, which reads as a sheet
     being handed to you rather than a browser alert appearing. */
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition: opacity .24s var(--ease), transform .3s var(--ease);
}
.cdialog[data-open] .cdialog__box { opacity: 1; transform: translateY(0) scale(1); }

.cdialog__icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.cdialog__icon svg { width: 27px; height: 27px; }

.cdialog[data-kind="confirm"] .cdialog__icon { background: var(--danger-soft); color: var(--danger); }

.cdialog__title {
  margin: 0 0 8px;
  font-family: var(--ff-display); font-size: 1.32rem; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.2;
}
.cdialog__body {
  margin: 0; font-size: .92rem; color: var(--ink-55); line-height: 1.55;
}

.cdialog__list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; gap: 8px; text-align: left;
}
.cdialog__list li {
  position: relative;
  padding: 11px 14px 11px 38px;
  border-radius: 12px;
  background: var(--ink-05);
  font-size: .88rem; line-height: 1.45;
}
/* A drawn dot rather than a bullet glyph, so it never picks up a fallback. */
.cdialog__list li::before {
  content: ""; position: absolute; left: 15px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-dark);
}
.cdialog[data-kind="confirm"] .cdialog__list li::before { background: var(--danger); }

.cdialog__actions {
  display: flex; gap: 10px; margin-top: 22px;
}
.cdialog__actions .btn { flex: 1 1 auto; justify-content: center; }

/* The page behind must not scroll while the dialog is up. */
body.has-cdialog { overflow: hidden; }

/* A field that was pointed at gets one short nudge, so the eye lands on it. */
.field--shake { animation: field-nudge .5s var(--ease); }
@keyframes field-nudge {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-6px); }
  38% { transform: translateX(5px); }
  58% { transform: translateX(-3px); }
  78% { transform: translateX(2px); }
}

@media (max-width: 420px) {
  .cdialog__box { padding: 24px 20px 18px; border-radius: 20px; }
  .cdialog__title { font-size: 1.18rem; }
  .cdialog__actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  .cdialog__scrim, .cdialog__box { transition: none; }
  .cdialog__box { transform: none; }
  .field--shake { animation: none; }
}

/* ============================================================================
   Consultation result sections
   ========================================================================= */
.consult-section {
  margin: 30px 0 4px;
  font-family: var(--ff-body);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-40); font-weight: 600;
}
.consult-note {
  margin: 0 0 14px;
  font-size: .84rem; color: var(--ink-55); line-height: 1.55;
  max-width: 56ch;
}

/* A product is advice, not stock. It reads quieter than a bookable service. */
.rec-card[data-type="product"] { background: var(--ink-05); border-color: transparent; }
.rec-card[data-type="product"] .rec-card__type { color: var(--ink-40); }
.rec-card[data-type="tip"] { border-left: 3px solid var(--brand-line); }

/* ============================================================================
   The display screen's request for one tap

   A browser will not make a sound until somebody has interacted with the page.
   The shop switches this screen on once in the morning, so it has to ask, and
   it has to be obvious what the tap is for.
   ========================================================================= */
.voice-unlock {
  /* Bottom right, clear of the waiting numbers, which start on the left. */
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 14px 22px 14px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(20, 20, 24, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff; font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  animation: voice-rise .5s var(--ease) both, voice-breathe 3.2s var(--ease) 1s infinite;
}
.voice-unlock:hover { border-color: var(--brand); }
.voice-unlock.is-gone { opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }

.voice-unlock__icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #16130a;
}
.voice-unlock__icon svg { width: 20px; height: 20px; }

.voice-unlock strong { display: block; font-size: .95rem; font-weight: 600; }
.voice-unlock small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); margin-top: 1px; }

@keyframes voice-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes voice-breathe {
  0%, 100% { box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); }
  50% { box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 0 12px transparent; }
}

/* The number that was just called gets a beat of attention to match the
   announcement, so the room looks where the voice is pointing. */
.now-card { animation: now-card-in .45s var(--ease) both; }
@keyframes now-card-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .voice-unlock { animation: voice-rise .01s both; }
  .now-card { animation: none; }
}

@media (max-width: 560px) {
  .voice-unlock { right: 12px; left: 12px; bottom: 12px; padding: 12px 18px 12px 12px; gap: 10px; }
  .voice-unlock strong { font-size: .86rem; }
  .voice-unlock small { font-size: .72rem; }
}

/* ============================================================================
   The live dot on the queue status page

   A customer watching a number that has not moved for ten minutes needs to
   know the page is still listening, not frozen. The dot pulses on every
   successful poll.
   ========================================================================= */
.livedot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: 5px; vertical-align: 1px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
}
[data-live] .livedot { animation: livedot-ping .9s var(--ease); }

@keyframes livedot-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Out of contact: the dot goes amber so it does not keep implying it is live. */
[data-stale="true"] .livedot { background: var(--warn); animation: none; }

@media (prefers-reduced-motion: reduce) {
  [data-live] .livedot { animation: none; }
}

/* ============================================================================
   Already called, on the shop display

   Quieter than the waiting numbers, because these people have had their turn.
   A missed number is the exception: it is loud on purpose, since the person it
   belongs to is the one who most needs to see it.
   ========================================================================= */
.done-strip {
  margin-top: clamp(18px, 3vw, 30px);
  padding-top: clamp(14px, 2vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.done-strip[hidden] { display: none; }

.done-strip__label {
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: #8d8880; margin-bottom: 10px;
}

.done-strip__list { display: flex; flex-wrap: wrap; gap: 8px; }

.done-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: #a9a49b;
}
.done-chip__code {
  font-family: var(--ff-display);
  font-size: clamp(.95rem, 1.9vw, 1.25rem); font-weight: 600;
  letter-spacing: .02em;
}
.done-chip__meta { font-size: clamp(.68rem, 1.1vw, .8rem); opacity: .8; white-space: nowrap; }

/* Called, and nobody came. This is the one worth seeing from across the room. */
.done-chip[data-status="no_show"] {
  border-color: color-mix(in srgb, #e0a13a 55%, transparent);
  background: color-mix(in srgb, #e0a13a 14%, transparent);
  color: #f0c078;
}
.done-chip[data-status="no_show"] .done-chip__meta { opacity: 1; font-weight: 600; }

.done-strip__note {
  margin: 12px 0 0;
  font-size: clamp(.7rem, 1.2vw, .84rem);
  color: #6f6a62;
}

@media (max-width: 700px) {
  .done-strip__list { gap: 6px; }
  .done-chip { padding: 6px 11px; gap: 6px; }
}

/* ============================================================================
   API reference
   ========================================================================= */
.docs { max-width: 880px; }
.docs__head { margin-bottom: 40px; }
.docs__eyebrow {
  margin: 0 0 8px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 600;
}
.docs__lead { font-size: 1.05rem; color: var(--ink-70); max-width: 62ch; line-height: 1.6; }

.docs__base {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; padding: 14px 18px;
  background: var(--ink); color: #fff; border-radius: 14px;
}
.docs__base span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.docs__base code { font-size: .95rem; color: var(--brand); }

.docs__section { margin-bottom: 48px; }
.docs__section h2 {
  font-size: 1.5rem; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink-10);
}
.docs__section > p { max-width: 68ch; line-height: 1.65; }

.docs__label {
  margin: 18px 0 6px; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-40); font-weight: 600;
}

.docs__note {
  margin: 20px 0; padding: 15px 18px;
  border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0;
  background: var(--brand-soft); font-size: .9rem; line-height: 1.6;
}

.docs__pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.codeblock {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  background: var(--ink); color: #e6e3dd;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.65;
  white-space: pre;
}

.docs__table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .88rem; }
.docs__table th {
  text-align: left; padding: 9px 12px; background: var(--ink-05);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55);
}
.docs__table td { padding: 10px 12px; border-top: 1px solid var(--ink-10); vertical-align: top; }
.docs__table td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.docs__toc {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 16px 18px; margin-bottom: 36px;
  background: var(--ink-05); border-radius: 14px;
}
.docs__toc span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-right: 4px; }
.docs__toc a {
  padding: 6px 13px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--ink-10); text-decoration: none; color: var(--ink-70);
  font-size: .85rem; font-weight: 500;
}
.docs__toc a:hover { border-color: var(--brand); color: var(--ink); }
.docs__toc a small { color: var(--ink-40); margin-left: 4px; }

/* -------------------------------------------------------- endpoints -- */
.ep {
  padding: 22px 0;
  border-top: 1px solid var(--ink-10);
}
.ep:first-of-type { border-top: 0; }

.ep__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.ep__method {
  padding: 3px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  background: var(--ink-05); color: var(--ink-70);
}
.ep__method[data-method="get"] { background: var(--info-soft); color: var(--info); }
.ep__method[data-method="post"] { background: var(--ok-soft); color: var(--ok); }

.ep__path { font-size: .92rem; word-break: break-all; }

.aud {
  padding: 2px 9px; border-radius: 99px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}
.aud--public { background: var(--ink-05); color: var(--ink-55); }
.aud--customer { background: var(--brand-soft); color: var(--brand-dark); }
.aud--staff { background: var(--danger-soft); color: var(--danger); }

.ep__title { font-size: 1.08rem; margin: 0 0 6px; }
.ep__body { margin: 0 0 14px; color: var(--ink-70); line-height: 1.6; max-width: 66ch; }

.ep__list { margin: 0 0 16px; padding-left: 18px; line-height: 1.75; font-size: .9rem; }
.ep__list code {
  background: var(--ink-05); padding: 1px 6px; border-radius: 5px;
  font-size: .86em; margin-right: 4px;
}

/* --------------------------------------------- the key, shown once -- */
.keyshow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px;
  background: var(--ink); color: var(--brand);
}
.keyshow code { font-size: .92rem; word-break: break-all; flex: 1 1 260px; }

@media (max-width: 640px) {
  .codeblock { font-size: .76rem; padding: 13px 14px; }
  .docs__table { font-size: .82rem; }
  .docs__table th, .docs__table td { padding: 8px; }
}

/* ============================================================================
   Shop display: who is being called, and who is in the chair.

   Two registers on purpose. The call cards glow and breathe because the
   person named on them has to get up; the chair cards sit calm and dark
   because theirs is already happening.
   ========================================================================= */
.disp-section { margin-bottom: clamp(16px, 2.6vw, 30px); }

.disp-section__head {
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(.72rem, 1.4vw, .88rem);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand); margin-bottom: clamp(10px, 1.6vw, 16px);
}
.disp-section__head--chair { color: #8d8880; }
.disp-section__hint {
  letter-spacing: .08em; text-transform: none;
  color: #b7b2a9; font-size: clamp(.72rem, 1.3vw, .86rem);
}

.disp-beacon {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); align-self: center; flex: 0 0 auto;
  animation: beacon 2s var(--ease) infinite;
}
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
  55%      { box-shadow: 0 0 0 9px transparent; }
}

.disp-dot {
  width: .55em; height: .55em; border-radius: 50%;
  display: inline-block; flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}

.disp-empty {
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px dashed rgba(255, 255, 255, .16); border-radius: var(--radius-lg);
  color: #8d8880; font-size: clamp(.9rem, 1.7vw, 1.05rem);
}

/* ---- being called: gold, lit, breathing ------------------------------- */
.call-list {
  display: grid; gap: clamp(12px, 1.8vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.call-card {
  position: relative;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 92%, #fff), color-mix(in srgb, var(--brand) 62%, #000));
  color: #16130a; border-radius: var(--radius-lg);
  padding: clamp(18px, 2.8vw, 30px);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--brand) 26%, transparent);
  animation: now-card-in .45s var(--ease) both, call-breathe 2.6s var(--ease) infinite;
}
@keyframes call-breathe {
  0%, 100% { box-shadow: 0 10px 40px color-mix(in srgb, var(--brand) 22%, transparent); }
  50%      { box-shadow: 0 10px 56px color-mix(in srgb, var(--brand) 48%, transparent); }
}
.call-card__code {
  font-family: var(--ff-display); font-weight: 600; line-height: 1;
  font-size: clamp(3rem, 8vw, 5.2rem);
}
.call-card__who {
  margin-top: 6px; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 500; opacity: .78;
}
.call-card__go {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: clamp(12px, 2vw, 18px); padding-top: clamp(10px, 1.6vw, 14px);
  border-top: 1px solid rgba(22, 19, 10, .22);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
}
.call-card__go strong { font-family: var(--ff-display); font-weight: 600; }
.call-card__go-label {
  font-size: clamp(.66rem, 1.2vw, .78rem); letter-spacing: .18em;
  text-transform: uppercase; opacity: .66; font-weight: 600;
}
.call-card__chair {
  margin-left: auto; font-size: clamp(.78rem, 1.5vw, .95rem);
  padding: 4px 12px; border-radius: 999px;
  background: rgba(22, 19, 10, .16); font-weight: 600; white-space: nowrap;
}

/* ---- in the chair: calm, dark, named --------------------------------- */
.chair-list {
  display: grid; gap: clamp(10px, 1.6vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.chair-card {
  --bc: var(--brand);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 5px solid var(--bc);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.2vw, 22px) clamp(16px, 2.4vw, 26px);
  animation: now-card-in .45s var(--ease) both;
}
.chair-card__top { display: flex; align-items: baseline; gap: 12px; }
.chair-card__code {
  font-family: var(--ff-display); font-weight: 600; line-height: 1;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff;
}
.chair-card__who { font-size: clamp(.85rem, 1.6vw, 1.05rem); color: #b7b2a9; }
.chair-card__with {
  display: flex; align-items: center; gap: 9px;
  margin-top: clamp(8px, 1.4vw, 12px);
  font-size: clamp(1rem, 2.1vw, 1.4rem); color: #f3f1ec;
}
.chair-card__with strong { font-family: var(--ff-display); font-weight: 600; color: var(--bc); filter: brightness(1.35); }
.chair-card__chair {
  margin-left: auto; font-size: clamp(.72rem, 1.3vw, .85rem);
  color: #8d8880; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .disp-beacon, .call-card { animation: none; }
  .chair-card { animation: none; }
}

/* ============================================================================
   The cut between pages

   Four beats in under a second. The ivory sheet rises carrying the shop's
   name; a faint crease shows where the cut will run; the scissors travel it
   left to right, snipping, and leave a dashed brass perforation; then the
   paper parts along the cut onto ink, and the next page takes over.
   ========================================================================= */
.cutwipe {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(90% 40% at 50% 50%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    var(--ink);
  visibility: hidden;
  pointer-events: none;
}
.cutwipe.is-cutting {
  visibility: visible;
  pointer-events: auto;
}

/* The two halves of the sheet. Each carries the paper's own warmth so the
   hub underneath is replaced by the same material, not a flat colour. */
.cutwipe__half {
  position: absolute; left: 0; width: 100%; height: 50%;
  background:
    radial-gradient(130% 120% at 50% 100%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%),
    #f7f5f0;
  opacity: 0;
  display: flex; justify-content: center;
}
.cutwipe__half--top {
  top: 0;
  align-items: flex-end;
  box-shadow: 0 1px 0 rgba(16, 16, 20, .06);
}
.cutwipe__half--bottom {
  bottom: 0;
  align-items: flex-start;
  background:
    radial-gradient(130% 120% at 50% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%),
    #f7f5f0;
}
.cutwipe.is-cutting .cutwipe__half { animation: cut-sheet .2s var(--ease) forwards; }
.cutwipe.is-cutting .cutwipe__half--top { animation: cut-sheet .2s var(--ease) forwards, cut-part-top .26s .74s var(--ease) forwards; }
.cutwipe.is-cutting .cutwipe__half--bottom { animation: cut-sheet .2s var(--ease) forwards, cut-part-bottom .26s .74s var(--ease) forwards; }

@keyframes cut-sheet {
  to { opacity: 1; }
}
@keyframes cut-part-top {
  to { transform: translateY(-3%); }
}
@keyframes cut-part-bottom {
  to { transform: translateY(3%); }
}

/* The name rides the top half of the sheet and parts with it. */
.cutwipe__word {
  margin-bottom: 46px;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.2rem, 4.6vw, 1.8rem);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
}
.cutwipe.is-cutting .cutwipe__word { animation: cut-word .3s .08s var(--ease) forwards; }
@keyframes cut-word {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: .92; transform: none; }
}

.cutwipe__wait {
  margin-top: 44px;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-40);
  opacity: 0;
}
.cutwipe.is-cutting .cutwipe__wait { animation: cut-word .3s .16s var(--ease) forwards; }

/* Where the cut will run: a breath of a line the scissors then follow. */
.cutwipe__crease {
  position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  opacity: 0;
}
.cutwipe.is-cutting .cutwipe__crease { animation: cut-sheet .2s .12s var(--ease) forwards, cut-away .2s .72s var(--ease) forwards; }

/* The cut itself. */
.cutwipe__line {
  position: absolute; top: 50%; left: 0;
  width: 0; height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--brand) 85%, transparent);
  transform: translateY(-1px);
}
.cutwipe.is-cutting .cutwipe__line {
  animation: cut-line .5s .22s linear forwards, cut-away .2s .72s var(--ease) forwards;
}
@keyframes cut-line {
  to { width: 100%; }
}
/* Once the paper parts, the marks of the cut go with it: the open seam is
   clean ink with the sheet's own brass light showing through. */
@keyframes cut-away {
  to { opacity: 0; }
}

.cutwipe__blades {
  position: absolute; top: 50%; left: -48px;
  width: 36px; height: 36px;
  margin-top: -18px;
  color: var(--brand-dark);
  filter: drop-shadow(0 2px 5px rgba(16, 16, 20, .22));
}
.cutwipe__blades svg { width: 100%; height: 100%; display: block; }
.cutwipe.is-cutting .cutwipe__blades {
  animation: cut-travel .5s .22s linear forwards;
}
/* The blades snip as they go: a small open and close around the pivot. */
.cutwipe.is-cutting .cutwipe__blades svg {
  animation: cut-snip .166s .22s ease-in-out 3;
  transform-origin: 30% 50%;
}
@keyframes cut-travel {
  to { left: calc(100% + 14px); }
}
@keyframes cut-snip {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.62); }
}

/* ---------------------------------------------------------------------------
   My visits: the member card and the book behind the counter.

   The card is ink with brass lettering, cut like the thing you would keep in
   a wallet: the house on top, the points in large serif, the pole ribbon,
   and the holder's name along the bottom edge.
   ------------------------------------------------------------------------ */
.mcard {
  position: relative; overflow: hidden;
  margin-top: 22px;
  border-radius: 18px;
  background:
    radial-gradient(130% 90% at 85% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 58%),
    var(--ink);
  color: #f3f1ec;
  padding: 20px 22px 16px;
  box-shadow: 0 14px 38px rgba(16, 16, 20, .28);
}

.mcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mcard__house {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 85%, #fff);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcard__tag {
  flex: 0 0 auto;
  font-size: .56rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
}

.mcard__points {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 18px;
}
.mcard__points strong {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.8rem, 13vw, 3.8rem); line-height: 1;
  color: #f6f3ec;
}
.mcard__points span {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(243, 241, 236, .5);
}

.mcard__worth {
  margin: 8px 0 0;
  font-size: .86rem; font-weight: 600;
  color: color-mix(in srgb, var(--brand) 88%, #fff);
}

/* A meter that means something, in place of the ribbon that only looked
   like one: it fills towards the first time these points can be spent. */
.mcard__meter { margin-top: 16px; }
.mcard__track {
  height: 7px; border-radius: 99px; overflow: hidden;
  background: rgba(243, 241, 236, .14);
}
.mcard__track i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand) 70%, #000),
    var(--brand));
  transition: width .6s var(--ease);
}
.mcard__meter-note {
  margin: 9px 0 0;
  font-size: .76rem; line-height: 1.45;
  color: rgba(243, 241, 236, .55);
}
.mcard__meter-note strong { color: color-mix(in srgb, var(--brand) 88%, #fff); font-weight: 600; }

.mcard__holder {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(243, 241, 236, .14);
}
.mcard__name {
  font-family: var(--ff-display); font-size: .95rem; font-weight: 600;
  letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcard__since {
  flex: 0 0 auto; font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(243, 241, 236, .45);
}

/* ---------------------------------------------------------------------------
   How the points work: three plain steps, set like the hub's own ledger so
   the explanation belongs to the same shop as the card above it.
   ------------------------------------------------------------------------ */
.pts-how { margin-top: 24px; }
.pts-how__title {
  margin: 0 0 2px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-body);
  font-size: .64rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-40);
}
.pts-how__title::after {
  content: ""; flex: 1; height: 1px; background: var(--ink-10);
}

.pts-how__steps { list-style: none; margin: 0; padding: 0; }
.pts-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--ink-10);
}
.pts-step__no {
  flex: 0 0 auto; width: 2em; padding-top: 1px;
  font-family: var(--ff-display); font-size: .82rem;
  color: var(--brand-dark); font-variant-numeric: tabular-nums;
}
.pts-step__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.pts-step__body strong {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.02rem; line-height: 1.25; color: var(--ink);
}
.pts-step__body small {
  font-size: .82rem; line-height: 1.5; color: var(--ink-55);
}

/* The exchange rate, stated once, plainly. */
.pts-how__rate {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin: 16px 0 0; padding: 12px;
  border: 1px dashed var(--ink-20); border-radius: var(--radius-sm);
  background: #fffdf9;
}
.pts-how__rate span {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-55);
}
.pts-how__rate span::after { content: " ="; }
.pts-how__rate strong {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600;
  color: var(--brand-dark);
}

/* The record in one engraved strip. */
.vstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin-top: 18px;
  border: 1px solid var(--ink-10); border-radius: 14px;
  background: #fffdf9; overflow: hidden;
}
.vstrip__cell {
  display: grid; gap: 3px; justify-items: center;
  padding: 14px 10px; min-width: 0; text-align: center;
}
.vstrip__cell + .vstrip__cell { border-left: 1px solid var(--ink-10); }
.vstrip__cell strong {
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.vstrip__cell strong.vstrip__text { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vstrip__cell span {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-40);
}

/* The book itself: serif dates in the margin, hairlines between days. */
.vledger { border-top: 1px solid var(--ink-10); }
.vledger__row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--ink-10);
}
.vledger__date {
  flex: 0 0 52px; text-align: center;
}
.vledger__date strong {
  display: block; font-family: var(--ff-display);
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  color: var(--brand-dark);
}
.vledger__date small { font-size: .66rem; color: var(--ink-40); letter-spacing: .06em; }
.vledger__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.vledger__body strong { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.vledger__body small { font-size: .76rem; color: var(--ink-55); }
.vledger__amount {
  flex: 0 0 auto; font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: .9rem;
}

/* ---------------------------------------------------------------------------
   The queue at a glance: one board, two figures, breathing on its own.
   ------------------------------------------------------------------------ */
.glance__head { text-align: center; }
.glance__over {
  margin: 0 0 8px;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand-dark);
}
.glance__beacon {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2f9e5f; flex: 0 0 auto;
  animation: lgr-pulse 2.6s var(--ease) infinite;
}

.glance-card {
  position: relative; overflow: hidden;
  margin-top: 20px; padding: 26px 22px 20px;
  border-radius: 18px; text-align: center;
  background:
    radial-gradient(130% 90% at 50% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 58%),
    var(--ink);
  color: #f3f1ec;
  box-shadow: 0 14px 38px rgba(16, 16, 20, .26);
}
.glance-card__label {
  display: block;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 85%, #fff);
}
.glance-card__code {
  display: block; margin-top: 8px;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(3.4rem, 18vw, 5rem); line-height: 1;
  color: #f6f3ec;
}
.glance-card__sub {
  display: block; margin-top: 8px;
  font-size: .8rem; color: rgba(243, 241, 236, .55);
}
.glance-card[data-open="0"] .glance-card__code { color: rgba(243, 241, 236, .4); }

.glance-card__pole {
  width: 110px; height: 6px; margin: 18px auto 0;
  background: repeating-linear-gradient(115deg, var(--brand) 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: .85;
}

.glance__strip { margin-top: 16px; }

.glance__note {
  margin: 14px 4px 0; text-align: center;
  font-size: .74rem; line-height: 1.55; color: var(--ink-40);
}

.glance__acts { display: grid; gap: 10px; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .glance__beacon { animation: none; }
}

/* ============================================================================
   THE DOORWAY
   The hub, built to be read while standing outside the shop. A real pole
   turning down the spine, the chairs lit by whoever is in them, and one
   sentence that answers "can I go in now".
   ========================================================================= */

.app--hub .appbar__title { opacity: 0; }
.app--hub .app-flash { background: transparent; }

.door {
  --paper: #faf8f4;
  --edge: color-mix(in srgb, var(--ink) 11%, transparent);
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(22px, 6vw, 44px) var(--app-pad) clamp(40px, 7vw, 70px);
}

/* The grain. A barbershop card is printed on stock, not on glass. */
.door::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 62%),
    var(--paper);
}
.door::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- the pole -- */
/* A real barber's pole: a glass cylinder with a helix inside it. The helix
   scrolls, the glass puts a highlight down one side, brass caps top and
   bottom. It turns while the shop is open and eases to a stop when it shuts,
   because that is exactly what the thing outside a barbershop does. */
.pole {
  position: fixed; left: max(10px, calc(50vw - 420px)); top: 50%;
  transform: translateY(-50%);
  width: 26px; height: min(62vh, 440px);
  display: none; z-index: 1; pointer-events: none;
}
.pole__glass {
  position: absolute; inset: 16px 0;
  border-radius: 13px; overflow: hidden;
  background: #f4f1ea;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent),
    0 10px 30px -14px color-mix(in srgb, var(--ink) 50%, transparent);
}
.pole__helix {
  position: absolute; inset: -60% 0;
  background: repeating-linear-gradient(
    -58deg,
    #b4302b 0 13px,
    #f6f3ec 13px 26px,
    #2f4f86 26px 39px,
    #f6f3ec 39px 52px
  );
  animation: pole-turn 2.6s linear infinite;
}
/* The curve of the glass, so it reads as a cylinder rather than a stripe. */
.pole__glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ink) 34%, transparent) 0%,
    transparent 22%,
    rgba(255,255,255,.72) 40%,
    transparent 62%,
    color-mix(in srgb, var(--ink) 26%, transparent) 100%
  );
}
.pole__cap {
  position: absolute; left: -3px; right: -3px; height: 16px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e3c478, var(--brand-dark) 60%, #6d5724);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset;
}
.pole__cap--top { top: 0; }
.pole__cap--bot { bottom: 0; }

@keyframes pole-turn { to { background-position: 0 -52px; } }

/* Shut: the pole slows to a halt. */
.pole[data-open="0"] .pole__helix {
  animation-duration: 14s;
  filter: saturate(.18) contrast(.85);
  opacity: .5;
}

@media (min-width: 1040px) { .pole { display: block; } }

/* -------------------------------------------------------- over the door -- */
.door__head { text-align: center; }
.door__over {
  margin: 0 0 10px;
  font-size: .63rem; font-weight: 700;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--brand-dark); opacity: .85;
}
.door__band {
  margin: 16px auto 0;
  width: clamp(120px, 42vw, 190px); height: 7px;
  border-radius: 99px; overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent);
}
.door__band span {
  display: block; width: 300%; height: 100%;
  background: repeating-linear-gradient(
    115deg,
    #b4302b 0 9px,
    #f6f3ec 9px 18px,
    #2f4f86 18px 27px,
    #f6f3ec 27px 36px
  );
  animation: band-run 2.4s linear infinite;
}
@keyframes band-run { to { transform: translateX(-36px); } }
.door[data-open="0"] .door__band span { animation-duration: 13s; filter: saturate(.2); opacity: .55; }
@media (min-width: 1040px) { .door__band { display: none; } }

.door__name {
  margin: 0;
  font-family: var(--ff-display, Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 9.5vw, 3.4rem);
  line-height: 1.02; letter-spacing: -.015em;
  color: var(--ink);
}

/* ------------------------------------------------------------- the room -- */
.room { margin-top: clamp(26px, 6vw, 40px); }

.room__chairs {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 3.5vw, 22px);
  flex-wrap: wrap;
}
.chair {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: color-mix(in srgb, var(--ink) 26%, transparent);
  animation: chair-in .6s var(--ease) backwards;
  animation-delay: calc(var(--i, 1) * 70ms);
}
.chair__art { width: clamp(46px, 13vw, 62px); height: auto; display: block; }
.chair__head { opacity: 0; transform-origin: 22px 19.4px; transition: opacity .45s var(--ease); }
.chair__name {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 38%, transparent);
}
.chair--none {
  font-size: .82rem; color: var(--muted);
}

/* Occupied: the chair takes the barber's own colour and somebody is in it. */
.chair.is-busy {
  color: var(--chair, var(--brand-dark));
}
.chair.is-busy .chair__head { opacity: 1; animation: chair-work 3.4s var(--ease) infinite; }
.chair.is-busy .chair__name { color: var(--chair, var(--brand-dark)); }
.chair.is-busy::after {
  content: ''; position: absolute; left: 50%; bottom: 20px;
  width: 60px; height: 60px; margin-left: -30px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--chair, var(--brand)) 26%, transparent), transparent 68%);
  z-index: -1;
  animation: chair-glow 3.4s var(--ease) infinite;
}

@keyframes chair-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes chair-work {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-1.5px) rotate(-2.5deg); }
}
@keyframes chair-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* The ticket on the counter. */
.room__ticket {
  margin: clamp(18px, 4vw, 26px) auto 0;
  width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 14px;
  background: #fffdf8;
  border: 1px solid var(--edge);
  border-radius: 4px;
  box-shadow: 0 6px 18px -12px color-mix(in srgb, var(--ink) 60%, transparent);
  /* torn stub down the left */
  -webkit-mask: radial-gradient(5px at 0 50%, transparent 98%, #000) left / 100% 100% no-repeat;
          mask: radial-gradient(5px at 0 50%, transparent 98%, #000) left / 100% 100% no-repeat;
}
.room__ticket[hidden] { display: none; }
.room__ticket-lbl {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.room__ticket-no {
  font-family: var(--ff-display, Georgia, serif);
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  color: var(--ink); letter-spacing: .02em;
}

/* ---------------------------------------------------------- the verdict -- */
.verdict { margin-top: clamp(28px, 7vw, 44px); text-align: center; }

.verdict__over {
  margin: 0 0 10px;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.verdict__lead {
  margin: 0;
  display: flex; align-items: baseline; justify-content: center;
  gap: .32em; flex-wrap: wrap;
  font-family: var(--ff-display, Georgia, serif);
  font-weight: 700; line-height: 1;
  font-size: clamp(2rem, 9vw, 3.1rem);
  letter-spacing: -.02em;
  color: var(--ink);
}
.verdict__unit {
  font-family: var(--ff-body, system-ui, sans-serif);
  font-size: clamp(.9rem, 3.4vw, 1.1rem);
  font-weight: 600; letter-spacing: .02em;
  color: var(--muted);
}
.verdict__unit[hidden] { display: none; }
.verdict__under {
  margin: 14px auto 0; max-width: 34ch;
  font-size: .92rem; line-height: 1.55; color: var(--muted);
}

/* Mood. The page carries the state in its colour, quietly. */
.door[data-mood="clear"] .verdict__lead { color: #1d6b43; }
.door[data-mood="busy"]  .verdict__lead { color: #8a4a12; }
.door[data-mood="shut"]  .verdict__lead { color: color-mix(in srgb, var(--ink) 62%, transparent); }

/* -------------------------------------------------------- the odometer -- */
/* The wait is a mechanical counter: when the number moves, the digits roll
   like a till. It is the clearest way to say "this is live" without printing
   the word LIVE anywhere. */
.odo { display: inline-flex; gap: .02em; }
.odo[hidden] { display: none; }
.odo__d {
  position: relative; display: inline-block;
  width: .58em; height: 1em; overflow: hidden;
  /* The strip is positioned from the top, so the digit box has to sit on the
     text baseline itself or the number floats above the words beside it. */
  vertical-align: baseline;
  transform: translateY(.085em);
}
.odo__strip {
  position: absolute; top: 0; left: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .62s cubic-bezier(.17, .84, .34, 1);
}
.odo__strip span { height: 1em; line-height: 1; display: block; }

/* ------------------------------------------------------------ the plate -- */
/* One brass plate, the single thing to do. */
.act { margin-top: clamp(26px, 6vw, 38px); text-align: center; }

.plate {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 17px 18px 17px 22px;
  border-radius: 15px; text-decoration: none;
  color: #17130a;
  background: linear-gradient(135deg, #e7cf8f, var(--brand) 42%, #ab8a37);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 18px 34px -20px color-mix(in srgb, var(--brand-dark) 90%, #000);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.plate__ink { flex: 1 1 auto; text-align: left; min-width: 0; }
.plate__word {
  display: block;
  font-family: var(--ff-display, Georgia, serif);
  font-size: clamp(1.15rem, 4.6vw, 1.42rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
}
.plate__sub {
  display: block; margin-top: 3px;
  font-size: .78rem; font-weight: 600; opacity: .72;
}
.plate__go {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(23,19,10,.1);
  transition: transform .22s var(--ease);
}
.plate__go svg { width: 19px; height: 19px; }

/* The shine passes over the brass, once in a while. */
.plate::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: plate-shine 5.5s var(--ease) infinite;
}
@keyframes plate-shine {
  0%, 62% { left: -60%; }
  86%, 100% { left: 125%; }
}

.plate:active { transform: translateY(1px) scale(.994); }
.act__alt {
  display: inline-block; margin-top: 14px;
  font-size: .84rem; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--edge);
  padding-bottom: 2px;
}

/* ------------------------------------------------------------- the rail -- */
.rail { margin-top: clamp(30px, 7vw, 46px); }

.rail__row {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px;
  text-decoration: none; color: inherit;
  border-top: 1px solid var(--edge);
  animation: rail-in .5s var(--ease) backwards;
  animation-delay: calc(var(--i, 1) * 55ms);
  transition: padding-left .22s var(--ease);
}
.rail__row:last-child { border-bottom: 1px solid var(--edge); }
.rail__icon {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--brand-dark);
}
.rail__icon svg { width: 22px; height: 22px; }
.rail__body { flex: 1 1 auto; min-width: 0; }
.rail__title {
  display: block;
  font-family: var(--ff-display, Georgia, serif);
  font-size: 1.04rem; font-weight: 700; color: var(--ink);
}
.rail__sub {
  display: block; margin-top: 1px;
  font-size: .79rem; color: var(--muted);
}
.rail__go {
  flex: 0 0 auto; width: 20px; height: 20px;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  transition: transform .22s var(--ease), color .22s var(--ease);
}
.rail__go svg { width: 100%; height: 100%; }
.rail__row:active { padding-left: 10px; }
.rail__row:active .rail__go { color: var(--brand-dark); transform: translateX(4px); }

@keyframes rail-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------- the small print -- */
.door__foot { margin-top: clamp(40px, 8vw, 62px); text-align: center; }
.door__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  column-gap: 26px; row-gap: 10px;
}
.door__links a {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.door__links a:active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.door__sig {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.door__sig svg { width: 15px; height: 15px; }
.door__rule { width: 44px; height: 1px; background: currentColor; opacity: .5; }
.door__address {
  margin: 16px auto 0; max-width: 30ch;
  font-size: .74rem; line-height: 1.6; color: var(--muted);
}

/* ----------------------------------------------------------- wider than -- */
@media (min-width: 768px) {
  .plate { padding: 20px 22px 20px 26px; }
  .plate:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 26px 44px -22px color-mix(in srgb, var(--brand-dark) 90%, #000); }
  .plate:hover .plate__go { transform: translateX(4px); }
  .rail__row:hover { padding-left: 10px; }
  .rail__row:hover .rail__go { color: var(--brand-dark); transform: translateX(4px); }
  .door__links a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
}

/* Somebody who does not want motion gets the page, still. */
@media (prefers-reduced-motion: reduce) {
  .pole__helix, .door__band span, .plate::after, .chair.is-busy .chair__head,
  .chair.is-busy::after, .chair, .rail__row { animation: none; }
  .odo__strip { transition: none; }
}
