/* Motion for the booking page: booking/motion.js adds these classes; the look is <body data-motion="…">. */

:root {
  --m-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --m-ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}

.m-in,
.m-in-side {
  animation-duration: 0.7s;
  animation-timing-function: var(--m-ease);
  animation-delay: var(--m-d, 0ms);
  animation-fill-mode: backwards;
}

/* 1 · Drift: soft fade and rise */
[data-motion="drift"] .m-in { animation-name: m-drift; }
[data-motion="drift"] .m-in-side { animation-name: m-drift-side; }
[data-motion="drift"] .m-pick { animation: m-settle 0.45s var(--m-ease); }
@keyframes m-drift { from { opacity: 0; translate: 0 14px; } }
@keyframes m-drift-side { from { opacity: 0; translate: 18px 0; } }
@keyframes m-settle { 40% { scale: 0.965; } }

/* 2 · Bloom: comes into focus out of a blur; choices glow */
[data-motion="bloom"] .m-in,
[data-motion="bloom"] .m-in-side { animation-name: m-bloom; animation-duration: 0.95s; }
[data-motion="bloom"] .m-pick { animation: m-glow 0.8s var(--m-ease); }
@keyframes m-bloom { from { opacity: 0; filter: blur(10px); scale: 0.985; } }
@keyframes m-glow {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #bf7698 55%, transparent); }
  100% { box-shadow: 0 0 0 14px color-mix(in srgb, #bf7698 0%, transparent); }
}

/* 3 · Reveal: wipes up from under a line, like a page being set */
[data-motion="reveal"] .m-in { animation-name: m-reveal; animation-duration: 0.8s; animation-timing-function: var(--m-ease-io); }
[data-motion="reveal"] .m-in-side { animation-name: m-reveal-side; animation-duration: 0.75s; animation-timing-function: var(--m-ease-io); }
[data-motion="reveal"] .m-pick { animation: m-ink 0.55s var(--m-ease-io); }
@keyframes m-reveal { from { opacity: 0; clip-path: inset(0 0 100% 0); translate: 0 10px; } to { clip-path: inset(0 0 -20% 0); } }
@keyframes m-reveal-side { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 -20% 0 0); } }
@keyframes m-ink { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }

/* 4 · Aura: a wash of the aura colours between pages; taps ripple in colour */
[data-motion="aura"] .m-in,
[data-motion="aura"] .m-in-side { animation-name: m-aura-in; animation-duration: 0.85s; }
[data-motion="aura"] .m-pick { animation: m-settle 0.5s var(--m-ease); }
@keyframes m-aura-in { from { opacity: 0; translate: 0 18px; filter: saturate(1.6) blur(4px); } }
.m-curtain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(180deg, #db331a 0%, #ca494f 18%, #aa5b73 42%, #bf7698 66%, #d19ca0 84%, #e2c795 100%);
  animation: m-curtain 0.95s var(--m-ease-io) forwards;
}
@keyframes m-curtain {
  0% { clip-path: inset(100% 0 0 0); }
  45% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
.m-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, #bf7698 45%, transparent) 0%, color-mix(in srgb, #e2c795 25%, transparent) 45%, transparent 70%);
  scale: 0;
  animation: m-ripple 0.75s var(--m-ease) forwards;
  z-index: 0;
}
@keyframes m-ripple { to { scale: 1; opacity: 0; } }

/* every look: the Continue button wakes with a light pass when it can be pressed */
.m-wake { animation: m-wake 1.1s var(--m-ease); background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; }
@keyframes m-wake { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (prefers-reduced-motion: reduce) {
  .m-in, .m-in-side, .m-pick, .m-wake, .m-curtain, .m-ripple { animation: none !important; }
  .m-curtain, .m-ripple { display: none; }
}

/* rows that scroll into view stop below the sticky header */
[data-focus-btn], [data-where-btn], [data-date-btn], [data-time-btn] { scroll-margin-top: 4.5rem; }

/* the switcher bar (your computer only) */
.m-picker{position:fixed;left:50%;top:3.1rem;z-index:80;translate:-50% 0;display:flex;align-items:center;gap:.25rem;padding:.3rem;border-radius:999px;background:#222;color:#fcfcfc;box-shadow:0 12px 30px -12px rgba(0,0,0,.45);font-family:"Nohemi","Helvetica Neue",Arial,sans-serif;font-size:11px;letter-spacing:.04em;max-width:calc(100vw - 1.5rem);overflow-x:auto;scrollbar-width:none}
.m-picker-k{padding:0 .55rem 0 .7rem;opacity:.55;text-transform:uppercase;letter-spacing:.12em;font-size:9.5px;white-space:nowrap}
.m-picker button{appearance:none;border:0;background:none;color:inherit;font:inherit;padding:.5rem .8rem;border-radius:999px;cursor:pointer;white-space:nowrap}
.m-picker button:hover{background:rgba(255,255,255,.1)}
.m-picker button[aria-pressed="true"]{background:#fcfcfc;color:#222}
.m-picker-sep{width:1px;height:1.1rem;background:rgba(255,255,255,.2);margin:0 .2rem}

/* a press on a disabled Continue lands on what's behind it, so guide.js can point to what's missing */
[data-open-drawer]:disabled,
.drawer [data-cta]:disabled { pointer-events: none; }

/* "needs input before continuing" */
.m-need { position: relative; }
.m-need .label-caps,
.m-need .k,
.m-need .v.is-empty { color: var(--accent) !important; }
.quiet-cell.m-need { box-shadow: inset 0 -1px 0 var(--accent); }
/* no "Needed to continue" words: the burgundy label and line are the signal */
.booker-row.m-need { box-shadow: inset 0 -1px 0 var(--accent); }

.check.m-need .check-box { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.m-need { animation: m-nudge 0.5s var(--m-ease); }
@keyframes m-nudge { 20% { translate: -5px 0; } 45% { translate: 4px 0; } 70% { translate: -2px 0; } }
@media (prefers-reduced-motion: reduce) { .m-need { animation: none; } }


/* cards below the fold wait, then drift in as they scroll into view */
.m-wait { opacity: 0; translate: 0 14px; }
@media (prefers-reduced-motion: reduce) { .m-wait { opacity: 1; translate: none; } }
