/* Siam Booking · simplified landing (v3, 15/10/2026).
   One idea per section: three services, one price, three steps, a short FAQ.
   Loaded after page.css; reuses its primitives (nav, btn, h1/h2, lede, faq,
   final, foot) and adds only the blocks below.

   Motion lives in the second half of this file and only applies under
   html.motion (set inline in <head> unless the visitor asks for reduced
   motion, and removed again if assets/motion.js never runs). Without it every
   block shows its final state. */

section[id] { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }
.s-sec { padding-block: var(--sec); }
.s-sec--band { background: var(--surface); border-block: 1px solid var(--line); }
.s-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.s-progress { position: fixed; inset: 0 0 auto 0; z-index: 101; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.nav { transition: transform 420ms var(--ease-out), box-shadow 300ms var(--ease); }
.nav.is-scrolled { box-shadow: 0 10px 30px -22px rgba(var(--shade), 0.45); }
.nav.is-hidden:not(.is-open) { transform: translateY(-100%); }
.brand span { white-space: nowrap; }
@media (min-width: 1081px) {
  .nav__links > a { transition: color 200ms var(--ease), background-color 200ms var(--ease); }
  .nav__links > a.is-active { color: var(--accent-deep); background: var(--accent-soft); }
}

/* --------------------------------------------------------------- hero -- */
.s-hero { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.s-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.s-h1 { font-size: clamp(2.15rem, 1rem + 3.1vw, 3.75rem); line-height: 1.02; letter-spacing: -0.04em; }
.s-h1 .acc { position: relative; display: block; width: fit-content; font-style: normal; color: var(--accent); }
.s-underline { position: absolute; left: 0; right: 0; bottom: -0.14em; width: 100%; height: 0.22em; overflow: visible; fill: none; stroke: var(--accent-2); stroke-width: 5; stroke-linecap: round; }
.s-hero .lede { max-width: 31rem; }
.s-price-line { margin: 1.5rem 0 0; display: grid; gap: 0.3rem; font-size: 0.9375rem; color: var(--ink-2); }
.s-price-line > span { text-wrap: balance; }
.s-price-line b { font-weight: 600; font-size: 1.0625rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-price-line span span { color: var(--line-2); margin: 0 0.35rem; }

.s-hero__visual { position: relative; }
.s-hero__photo { margin: 0; aspect-ratio: 4 / 3.4; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); box-shadow: var(--sh-3); }
.s-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-chips { position: absolute; left: clamp(-2.5rem, -3vw, -1rem); bottom: 1.5rem; display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.s-chip { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem 0.6rem 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(var(--shade), 0.06), 0 16px 34px -16px rgba(var(--shade), 0.35); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.s-chip:nth-child(2) { margin-left: 1.5rem; }
.s-chip:nth-child(3) { margin-left: 3rem; }
.s-chip__s { display: none; }
.s-num { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-deep); font: 600 0.9375rem/1 var(--mono); }

/* A booking notification floating over a photo or a mock. */
.s-toast { position: absolute; z-index: 3; margin: 0; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.85rem 0.55rem 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(var(--shade), 0.06), 0 18px 40px -16px rgba(var(--shade), 0.4); font-size: 0.8125rem; line-height: 1.3; white-space: nowrap; }
.s-toast__ic { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-deep); }
.s-toast > span:nth-child(2) { display: grid; }
.s-toast b { font-weight: 600; }
.s-toast small { color: var(--muted); font-size: 0.75rem; }
.s-toast strong { margin-left: 0.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.s-toast--hero { top: 1.25rem; right: 1.25rem; }

/* ------------------------------------------------------------ marquee -- */
.s-marquee { position: relative; display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); overflow: hidden; }
.s-marquee__cap { flex: none; margin: 0; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2)); font-size: 0.8125rem; font-weight: 500; color: var(--accent); white-space: nowrap; }
.s-marquee__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.s-marquee__track { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.s-marquee__track span { padding-right: 2.25rem; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
.s-marquee__track [data-dup] { display: none; }

/* ----------------------------------------------------------- services -- */
.s-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.s-service { position: relative; display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.s-service__top { display: flex; align-items: flex-start; gap: 0.7rem; margin: 1.4rem 0 0.6rem; }
.s-service h3 { margin: 0.2rem 0 0; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.s-service__body > p { margin: 0; color: var(--ink-2); }
.s-ticks { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; font-size: 0.9375rem; color: var(--ink-2); }
.s-ticks li { display: flex; gap: 0.55rem; align-items: flex-start; }
.s-ticks .ic { color: var(--accent); margin-top: 0.2rem; stroke-width: 2.2; }

/* The small screen on top of each service card: example data, not a UI. */
.s-mock { position: relative; height: 14rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; font-size: 0.8125rem; line-height: 1.35; }
.s-mock__bar { display: flex; align-items: center; gap: 0.3rem; height: 1.9rem; padding: 0 0.7rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.s-mock__bar i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--line-2); }
.s-mock__bar span { margin-left: 0.5rem; font: 0.6875rem/1 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-mock__photo { height: calc(100% - 1.9rem - 3.6rem); overflow: hidden; }
.s-mock__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-mock__room { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; height: 3.6rem; padding: 0 0.8rem; background: var(--surface); }
.s-mock__room b { display: block; font-weight: 600; }
.s-mock__room small { color: var(--muted); font-size: 0.75rem; }
.s-mock__btn { position: relative; flex: none; display: inline-grid; padding: 0.5rem 0.8rem; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 0.75rem; }
.s-mock__btn > span { grid-area: 1 / 1; text-align: center; }
.s-mock__btn .b { opacity: 0; }
.s-cursor { position: absolute; right: 1.6rem; top: 52%; z-index: 4; width: 1.05rem; height: 1.05rem; opacity: 0; fill: var(--ink); stroke: var(--surface); stroke-width: 1.2; stroke-linejoin: round; pointer-events: none; }
.s-toast--mini { top: 2.6rem; right: 0.7rem; padding: 0.4rem 0.7rem 0.4rem 0.45rem; font-size: 0.75rem; opacity: 0; }
.s-toast--mini .s-toast__ic { width: 1.5rem; height: 1.5rem; border-radius: var(--r-sm); }

.s-mock--chat { display: flex; flex-direction: column; }
.s-chat__head { display: flex; align-items: center; gap: 0.5rem; height: 2.4rem; flex: none; padding: 0 0.75rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.s-chat__head .s-av { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.625rem; font-weight: 600; }
.s-chat__head b { font-weight: 600; }
.s-chat__head small { margin-left: auto; font-size: 0.6875rem; color: var(--muted); }
.s-chat__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45rem; padding: 0.75rem; }
.s-msg { position: relative; display: flex; }
.s-msg--out { justify-content: flex-end; }
.s-bub { margin: 0; max-width: 86%; padding: 0.5rem 0.7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.s-msg--in .s-bub { border-bottom-left-radius: 4px; }
.s-msg--out .s-bub { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); border-bottom-right-radius: 4px; }
.s-bub u { color: var(--accent-deep); text-underline-offset: 2px; }
.s-bub__who { display: block; margin-bottom: 0.15rem; font-size: 0.6875rem; font-weight: 500; color: var(--accent-deep); }
.s-dots { position: absolute; bottom: 0; display: flex; gap: 0.2rem; margin: 0; padding: 0.6rem 0.7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); opacity: 0; }
.s-msg--in .s-dots { left: 0; }
.s-msg--out .s-dots { right: 0; background: var(--accent-soft); border-color: var(--accent-line); }
.s-dots i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--muted); }
.s-paid { align-self: center; display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.1rem 0 0; padding: 0.25rem 0.6rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-deep); font-size: 0.6875rem; font-weight: 500; }

.s-mock--cal { padding: 0.8rem; }
.s-cal__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.55rem; font-size: 0.75rem; color: var(--muted); }
.s-sync { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent-deep); font-weight: 500; }
.s-sync .ic { width: 0.85rem; height: 0.85rem; stroke-width: 2; }
.s-cal__list { position: relative; display: grid; gap: 0.4rem; }
.s-cal__list::before { content: ""; position: absolute; left: -0.45rem; top: 1rem; bottom: 1rem; width: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transform-origin: 50% 0; }
.s-cal { display: flex; align-items: center; justify-content: space-between; height: 2.2rem; padding: 0 0.7rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.s-cal b { font-weight: 500; }
.s-tag { display: inline-grid; font-size: 0.6875rem; font-weight: 500; padding: 0.2rem 0.45rem; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); }
.s-tag > span { grid-area: 1 / 1; text-align: right; }
.s-tag .a { opacity: 0; }
.s-tag--src { background: var(--warm-soft); color: var(--warm-ink); }
.s-cal--src { border-color: var(--warm-line); }

/* ----------------------------------------------------------- included -- */
.s-incl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem; margin: 0; padding: 0; list-style: none; }
.s-incl li { display: flex; gap: 0.85rem; align-items: flex-start; }
.s-incl .ic { width: 2.4rem; height: 2.4rem; padding: 0.55rem; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-deep); }
.s-incl b { display: block; font-weight: 600; }
.s-incl span { display: block; margin-top: 0.15rem; font-size: 0.9375rem; color: var(--ink-2); }

/* -------------------------------------------------------------- price -- */
.s-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.s-price .s-ticks { border-top: 0; padding-top: 0; margin-top: 1.6rem; font-size: 1rem; }
.s-price__card { position: relative; padding: clamp(1.4rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--accent), var(--sh-2); }
.s-step { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.s-step + .s-step { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-2); }
.s-step__when { grid-column: 1 / -1; margin: 0 0 0.35rem; font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.s-step__amt { margin: 0; font: 600 clamp(2.1rem, 1.6rem + 1.6vw, 2.8rem)/1 var(--font); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.s-step__amt small { font: 500 1rem var(--font); color: var(--muted); letter-spacing: 0; }
.s-step__what { grid-column: 1 / -1; margin: 0.6rem 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.s-price__card .btn { width: 100%; margin-top: 1.75rem; }
.s-price__note { margin: 0.9rem 0 0; text-align: center; font-size: 0.8125rem; color: var(--muted); }

/* -------------------------------------------------------------- steps -- */
.s-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.s-steps li { position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: border-color 400ms var(--ease); }
.s-steps .s-num { position: relative; z-index: 2; width: 2.4rem; height: 2.4rem; font-size: 1.0625rem; background: var(--accent); color: var(--accent-ink); }
.s-steps h3 { margin: 1.1rem 0 0.4rem; font-size: 1.1875rem; letter-spacing: -0.015em; font-weight: 600; }
.s-steps p { margin: 0; color: var(--ink-2); }
/* The line that joins the step numbers: ::before is the track, ::after the
   fill. motion.js measures it (--lx/--ly/--lw/--lh) and only under .motion. */
.s-steps::before, .s-steps::after { content: none; position: absolute; z-index: 1; left: var(--lx, 0); top: var(--ly, 0); width: var(--lw, 0); height: var(--lh, 0); border-radius: 2px; pointer-events: none; transform-origin: 0 0; }
.motion .s-steps::before, .motion .s-steps::after { content: ""; }
.s-steps::before { background: var(--line-2); }
.s-steps::after { background: var(--accent); }

.s-final { padding-block: var(--sec); }
.s-final .final > .s-blob { position: absolute; z-index: -1; width: 30rem; height: 30rem; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.s-blob--a { top: -14rem; left: -8rem; background: #4CC2B7; opacity: 0.35; }
.s-blob--b { bottom: -16rem; right: -10rem; background: #F0A25C; opacity: 0.2; }

/* ------------------------------------------------------------- tablet -- */
@media (max-width: 1080px) {
  .s-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .s-hero__copy { max-width: 40rem; }
  .s-hero__photo { aspect-ratio: 16 / 8.5; }
  .s-chips { left: 1.25rem; bottom: 1.25rem; }
  .s-chip:nth-child(n) { margin-left: 0; }

  .s-services { grid-template-columns: minmax(0, 1fr); }
  .s-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.75rem; align-items: center; padding: 1.25rem; }
  .s-service__top { margin-top: 0; }
  .s-incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-price { grid-template-columns: minmax(0, 1fr); }
  .s-price__card { max-width: 34rem; }
}

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 760px) {
  .s-hero { padding-top: calc(var(--nav-h) + 1.75rem); }
  .s-hero .cta-row { margin-top: 1.4rem; }
  .s-hero .cta-row .btn { flex: 1 1 12rem; }
  .s-hero__photo { aspect-ratio: 4 / 3; }
  .s-toast--hero { top: 0.75rem; right: 0.75rem; }
  /* Chips become three compact tiles over the bottom of the photo. */
  .s-chips { position: relative; left: auto; bottom: auto; margin: -2.4rem 0.6rem 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
  .s-chip { flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 0.6rem; font-size: 0.8125rem; line-height: 1.2; white-space: normal; }
  .s-chip .s-num { width: 1.6rem; height: 1.6rem; font-size: 0.8125rem; }
  .s-chip__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .s-chip__s { display: block; }
  .motion .s-chips { translate: none; }

  .s-marquee { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 1rem 0; }
  .s-marquee__cap { padding-left: var(--gut); }

  .s-service { display: flex; padding: 1rem 1rem 1.4rem; gap: 0; }
  .s-service__top { margin-top: 1.25rem; }
  .s-mock { height: auto; min-height: 13rem; }
  .s-mock--site .s-mock__photo { height: 7.4rem; }
  .s-incl { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }

  /* Steps turn into a vertical timeline: number on the left, text on the right. */
  .s-steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .s-steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1rem; padding: 0; background: none; border: 0; }
  .s-steps .s-num { grid-row: 1 / span 2; }
  .s-steps h3 { margin: 0.35rem 0 0.3rem; }
}

@media (max-width: 380px) {
  .brand { font-size: 0.9375rem; gap: 0.4rem; }
  .brand__mark { width: 22px; height: 22px; }
  .nav__cta .btn { padding: 0 0.65rem; }
  .s-chip { font-size: 0.75rem; }
}

/* =============================================================== motion == */
@property --sb-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Reveal on scroll: motion.js adds .in; --d is the stagger delay. */
.motion [data-rv] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 800ms var(--ease-out) var(--d, 0s), transform 1000ms var(--ease-out) var(--d, 0s); }
.motion [data-rv="left"] { transform: translate3d(-56px, 0, 0) scale(0.94); transition-timing-function: var(--ease-out), cubic-bezier(0.34, 1.5, 0.64, 1); }
.motion [data-rv="pop"] { transform: scale(0.9) translate3d(0, 16px, 0); }
.motion [data-rv="tilt"] { transform: perspective(1000px) translate3d(0, 80px, 0) rotateX(18deg); transform-origin: 50% 100%; transition-duration: 900ms, 1200ms; }
.motion [data-rv="clip"] { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10% round var(--r-xl)); transition: clip-path 1400ms var(--ease-out) var(--d, 0s); }
.motion [data-rv].in { opacity: 1; transform: none; }
.motion [data-rv="clip"].in { clip-path: inset(0 0 0 0 round var(--r-xl)); }

/* Titles rise word by word. */
.motion [data-words] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.12em 0; margin: 0 -0.06em -0.12em 0; }
.motion [data-words] .wi { display: inline-block; transform: translate3d(0, 115%, 0) rotate(5deg); transform-origin: 0 100%; transition: transform 1000ms var(--ease-out) calc(var(--d, 0s) + var(--i, 0) * 55ms); }
.motion [data-words].in .wi { transform: none; }
.motion .s-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-out) 1.25s; }
.motion .s-h1.in .s-underline path { stroke-dashoffset: 0; }

/* Icons and ticks draw their strokes as they arrive. */
@keyframes sb-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.motion :is(.s-incl li, .s-ticks li):not(.in) .ic { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion :is(.s-incl li, .s-ticks li).in .ic { animation: sb-draw 1100ms var(--ease-out) calc(var(--d, 0s) + 150ms) backwards; }

/* Scroll-linked depth (--p: -1 above centre, 1 below, written by motion.js). */
.motion .s-hero__photo img { transform: scale(calc(1.08 + var(--p, 0) * 0.07)); transform-origin: 50% 70%; will-change: transform; }
.motion .s-chips { translate: 0 calc(var(--p, 0) * -70px); }
.motion .s-toast--hero { translate: 0 calc(var(--p, 0) * -120px); }

/* Marquee of what it works with. */
.motion .s-marquee__track { flex-wrap: nowrap; width: max-content; gap: 0; animation: sb-mq 32s linear infinite; }
.motion .s-marquee__track [data-dup] { display: inline; }
.motion .s-marquee:hover .s-marquee__track { animation-play-state: paused; }
@keyframes sb-mq { to { transform: translate3d(-50%, 0, 0); } }

/* Cards follow the pointer (motion.js writes --rx/--ry/--gx/--gy). */
.motion .s-service.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.motion .s-service.tilting { transition: transform 160ms ease-out; }
.s-service::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(28rem circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 45%); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.motion .s-service.tilting::after { opacity: 1; }
.s-incl li { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .s-incl li.in:hover { transform: translateX(4px); }
}

/* Demo loops: they only run while on screen (.play from motion.js). */
.motion [data-demo]:not(.play) *, .motion [data-demo]:not(.play) *::before, .motion [data-demo]:not(.play) *::after { animation-play-state: paused !important; }

/* Hero: each service chip lights up in turn, and a booking lands. */
@keyframes sb-chip { 0%, 100% { border-color: var(--line); } 4%, 28% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 16px 34px -16px rgba(var(--shade), 0.35); } 33% { border-color: var(--line); } }
@keyframes sb-num { 0%, 100% { background: var(--accent-soft); color: var(--accent-deep); } 4%, 28% { background: var(--accent); color: var(--accent-ink); } 33% { background: var(--accent-soft); color: var(--accent-deep); } }
.motion .s-chip { animation: sb-chip 9s var(--ease) infinite; }
.motion .s-chip .s-num { animation: sb-num 9s var(--ease) infinite; }
.motion .s-chip:nth-child(1), .motion .s-chip:nth-child(1) .s-num { animation-delay: 2s; }
.motion .s-chip:nth-child(2), .motion .s-chip:nth-child(2) .s-num { animation-delay: 5s; }
.motion .s-chip:nth-child(3), .motion .s-chip:nth-child(3) .s-num { animation-delay: 8s; }
@keyframes sb-toast { 0%, 100% { opacity: 0; transform: translate3d(0, -12px, 0) scale(0.96); } 6%, 58% { opacity: 1; transform: none; } 64% { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.98); } }
.motion .s-toast--hero { animation: sb-toast 9s var(--ease-out) 2.6s infinite backwards; }

/* 1 · website: the cursor clicks Book now, the payment lands. 7 s loop. */
@keyframes sb-pan { from { transform: scale(1.04) translate3d(-1.5%, 0, 0); } to { transform: scale(1.16) translate3d(1.5%, -2%, 0); } }
@keyframes sb-cursor { 0% { opacity: 0; transform: translate3d(-110px, 40px, 0); } 12% { opacity: 1; } 30% { transform: none; } 33% { transform: scale(0.8); } 37% { transform: none; } 56% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; transform: translate3d(26px, 30px, 0); } }
@keyframes sb-btn { 0%, 33% { background: var(--accent); } 35%, 88% { background: var(--accent-deep); } 94%, 100% { background: var(--accent); } }
@keyframes sb-label-a { 0%, 33% { opacity: 1; } 35%, 88% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes sb-label-b { 0%, 33% { opacity: 0; transform: translate3d(0, 6px, 0); } 37%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes sb-ring { 0%, 32% { opacity: 0; transform: scale(0.7); } 34% { opacity: 0.7; } 52%, 100% { opacity: 0; transform: scale(2.1); } }
@keyframes sb-mini { 0%, 40% { opacity: 0; transform: translate3d(0, -10px, 0) scale(0.95); } 45%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translate3d(0, -6px, 0); } }
.motion .s-mock--site .s-mock__photo img { animation: sb-pan 14s ease-in-out infinite alternate; }
.motion .s-mock--site .s-cursor { animation: sb-cursor 7s var(--ease) infinite; }
.motion .s-mock--site .s-mock__btn { animation: sb-btn 7s var(--ease) infinite; }
.motion .s-mock--site .s-mock__btn .a { animation: sb-label-a 7s var(--ease) infinite; }
.motion .s-mock--site .s-mock__btn .b { animation: sb-label-b 7s var(--ease-out) infinite; }
.s-mock__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; }
.motion .s-mock--site .s-mock__btn::after { animation: sb-ring 7s var(--ease-out) infinite; }
.motion .s-mock--site .s-toast--mini { animation: sb-mini 7s var(--ease-out) infinite; }

/* 2 · AI receptionist: typing, answer, payment. 9 s loop. */
@keyframes sb-dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translate3d(0, -3px, 0); opacity: 1; } }
@keyframes sb-dots-in { 0% { opacity: 0; } 3%, 13% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes sb-dots-out { 0%, 24% { opacity: 0; } 27%, 38% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes sb-bub-in { 0%, 14% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.94); } 18%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translate3d(0, -6px, 0); } }
@keyframes sb-bub-out { 0%, 39% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.94); } 43%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translate3d(0, -6px, 0); } }
@keyframes sb-paid { 0%, 56% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; transform: scale(1.08); } 63%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.motion .s-mock--chat .s-dots i { animation: sb-dot 1s ease-in-out infinite; }
.motion .s-mock--chat .s-dots i:nth-child(2) { animation-delay: 0.15s; }
.motion .s-mock--chat .s-dots i:nth-child(3) { animation-delay: 0.3s; }
.motion .s-mock--chat .s-msg--in .s-dots { animation: sb-dots-in 9s linear infinite; }
.motion .s-mock--chat .s-msg--out .s-dots { animation: sb-dots-out 9s linear infinite; }
.motion .s-mock--chat .s-msg--in .s-bub { animation: sb-bub-in 9s var(--ease-out) infinite; transform-origin: 0 100%; }
.motion .s-mock--chat .s-msg--out .s-bub { animation: sb-bub-out 9s var(--ease-out) infinite; transform-origin: 100% 100%; }
.motion .s-mock--chat .s-paid { animation: sb-paid 9s var(--ease-out) infinite; }

/* 3 · calendar: Agoda sells the night, the sync line runs, every other site closes. 8 s loop. */
@keyframes sb-flip-a { 0%, 18% { opacity: 1; } 21%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes sb-flip-b { 0%, 18% { opacity: 0; transform: translate3d(0, 5px, 0); } 22%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes sb-src { 0%, 18% { background: var(--surface-2); color: var(--muted); } 21%, 90% { background: var(--warm-soft); color: var(--warm-ink); } 94%, 100% { background: var(--surface-2); color: var(--muted); } }
@keyframes sb-row { 0%, 18% { border-color: var(--line); box-shadow: none; } 21% { border-color: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); } 34%, 90% { border-color: var(--warm-line); box-shadow: none; } 94%, 100% { border-color: var(--line); } }
@keyframes sb-line { 0%, 16% { opacity: 0; transform: scaleY(0); } 18% { opacity: 1; } 40%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
@keyframes sb-spin { 0%, 16% { transform: none; } 40%, 100% { transform: rotate(720deg); } }
.motion .s-mock--cal .s-tag .a { animation: sb-flip-a 8s var(--ease) infinite; }
.motion .s-mock--cal .s-tag .b { animation: sb-flip-b 8s var(--ease-out) infinite; }
.motion .s-mock--cal .s-tag--src { animation: sb-src 8s var(--ease) -0.4s infinite; }
.motion .s-mock--cal .s-cal--src { animation: sb-row 8s var(--ease) -0.4s infinite; }
.motion .s-mock--cal .s-tag--src > span { animation-delay: -0.4s; }
.motion .s-mock--cal .s-cal:nth-child(2) .s-tag > span { animation-delay: 0.5s; }
.motion .s-mock--cal .s-cal:nth-child(3) .s-tag > span { animation-delay: 1s; }
.motion .s-mock--cal .s-cal:nth-child(4) .s-tag > span { animation-delay: 1.5s; }
.motion .s-mock--cal .s-cal__list::before { animation: sb-line 8s var(--ease-out) infinite; }
.motion .s-mock--cal .s-sync .ic { animation: sb-spin 8s var(--ease-out) infinite; }

/* Price: a light runs around the card. */
.s-price__card::before { content: ""; position: absolute; inset: -2px; padding: 2px; border-radius: calc(var(--r-xl) + 2px); background: conic-gradient(from var(--sb-ang), transparent 0 62%, var(--accent-2) 78%, #F0A25C 86%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; pointer-events: none; }
.motion .s-price__card::before { opacity: 1; animation: sb-ang 5s linear infinite; }
@keyframes sb-ang { to { --sb-ang: 360deg; } }

/* Steps: the line fills with the scroll (--sp), each number lights up as it is reached. */
.motion .s-steps::after { transform: scaleX(var(--sp, 0)); }
.motion .s-steps.is-vertical::after { transform: scaleY(var(--sp, 0)); }
.motion .s-steps .s-num { background: var(--surface-2); color: var(--muted); box-shadow: 0 0 0 1px var(--line-2); transition: background-color 400ms var(--ease), color 400ms var(--ease), transform 500ms cubic-bezier(0.34, 1.6, 0.64, 1), box-shadow 400ms var(--ease); }
.motion .s-steps li.lit .s-num { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px var(--accent-soft); transform: scale(1.08); }
.motion .s-steps li.lit { border-color: var(--accent-line); }

/* Final: two soft lights drift, the spotlight follows the pointer. */
@keyframes sb-drift-a { to { transform: translate3d(12rem, 6rem, 0) scale(1.15); } }
@keyframes sb-drift-b { to { transform: translate3d(-14rem, -5rem, 0) scale(0.9); } }
.motion .s-blob--a { animation: sb-drift-a 13s ease-in-out infinite alternate; }
.motion .s-blob--b { animation: sb-drift-b 16s ease-in-out infinite alternate; }

/* CHANNELS · every booking site into one calendar (16/10). Logos sit on white tiles in both themes. */
.s-flow { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .s-flow { grid-template-columns: 12rem 7rem 1fr; gap: 0; } }
.s-flow__src { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (min-width: 900px) { .s-flow__src { grid-template-columns: 1fr; grid-template-rows: repeat(6, 1fr); gap: .7rem; } }
.s-flow__src li { display: grid; place-items: center; min-height: 3.6rem; padding: .7rem 1rem; background: #fff; border: 1px solid #e4e8e6; border-radius: var(--r-lg, 14px); box-shadow: 0 1px 2px rgba(14,23,21,.06); }
.s-flow__src img { width: auto; max-width: 100%; height: 1.45rem; }
.s-flow__src li:first-child img { height: 2.1rem; }
.s-flow__own { display: flex !important; align-items: center; justify-content: center; gap: .45rem; font-size: .875rem; font-weight: 600; color: #07504c; background: #e3f1ef !important; border-color: #bfe0db !important; }
.s-flow__own .ic { width: 1.1rem; height: 1.1rem; }
.s-flow__lines { display: none; }
@media (min-width: 900px) {
  .s-flow__lines { display: block; width: 100%; height: 100%; overflow: visible; }
  .s-flow__lines path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-opacity: .55; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
  .motion .s-flow__lines path { animation: s-flow-dash 1.1s linear infinite; }
}
@keyframes s-flow-dash { to { stroke-dashoffset: -20; } }
@media (max-width: 899px) {
  .s-flow__src::after { content: ""; grid-column: 1 / -1; justify-self: center; width: 2px; height: 2rem; margin-top: .2rem; background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 9px); }
}
.s-flow__cal { position: relative; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.s-flow__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; padding: .2rem .2rem .9rem; border-bottom: 1px solid var(--line); font-size: .875rem; }
.s-flow__head b { font-weight: 600; }
.s-flow__week { color: var(--ink-2); }
.s-flow__head .s-sync { margin-left: auto; }
.motion .s-flow.is-live .s-sync .ic { animation: s-flow-spin 1.6s cubic-bezier(.65,0,.35,1) 2; }
@keyframes s-flow-spin { to { transform: rotate(360deg); } }
.s-flow__row { display: grid; grid-template-columns: 5.4rem 1fr; align-items: center; min-height: 3.1rem; border-top: 1px dashed var(--line); }
.s-flow__days { display: grid; grid-template-columns: 5.4rem repeat(7, 1fr); align-items: center; padding: .7rem 0 .35rem; }
@media (min-width: 560px) { .s-flow__row { grid-template-columns: 7.6rem 1fr; } .s-flow__days { grid-template-columns: 7.6rem repeat(7, 1fr); } }
.s-flow__days span:not(:first-child) { font-size: .6875rem; color: var(--ink-2); text-align: center; }
.s-flow__room { padding-right: .5rem; font-size: .8125rem; font-weight: 500; line-height: 1.2; }
.s-flow__track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: .45rem 0; }
.s-bk { grid-column: var(--s) / var(--e); display: flex; align-items: center; gap: .4rem; min-width: 0; height: 2.1rem; padding: 0 .4rem; border-radius: 8px; border-left: 3px solid var(--c); background: var(--t); font-size: .75rem; font-weight: 500; color: #0e1715; transform-origin: 0 50%; }
.s-bk__logo { display: flex; align-items: center; justify-content: center; flex: none; height: 1.45rem; padding: 0 .35rem; background: #fff; border-radius: 5px; box-shadow: 0 0 0 1px rgba(14,23,21,.06); }
.s-bk__logo img { height: .8rem; width: auto; max-width: 4.2rem; }
.s-bk--agoda .s-bk__logo img { height: 1.05rem; }
.s-bk__logo .ic { width: .85rem; height: .85rem; color: #0b6b66; }
.s-bk__logo i { margin-left: .2rem; font-style: normal; font-size: .6875rem; font-weight: 600; color: #07504c; }
.s-bk__who { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 559px) { .s-bk__who, .s-bk__logo i { display: none; } .s-bk { padding: 0 .2rem; } .s-bk__logo { padding: 0 .2rem; } .s-bk__logo img { max-width: 2.6rem; } }
.s-bk--agoda   { --c: #e8453c; --t: #fdeceb; }
.s-bk--booking { --c: #003b95; --t: #e7eefb; }
.s-bk--trip    { --c: #047bc1; --t: #e5f2fb; }
.s-bk--airbnb  { --c: #ff385c; --t: #ffebef; }
.s-bk--expedia { --c: #191e3b; --t: #fff6cc; }
.s-bk--web     { --c: #0b6b66; --t: #e0f1ee; }
.s-flow__toast { display: flex; align-items: center; gap: .7rem; margin: .9rem 0 0; padding: .7rem .8rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--accent-line, #bfe0db); box-shadow: var(--sh-2); font-size: .8125rem; }
.s-flow__toast b { display: block; font-weight: 600; }
.s-flow__toast small { color: var(--ink-2); }
/* Motion: the bookings drop in one by one, the last one (Trip.com) pings and raises the toast. */
.motion .s-flow .s-bk { opacity: 0; transform: translateX(-14px) scaleX(.55); }
.motion .s-flow.is-live .s-bk { animation: s-bk-in .7s cubic-bezier(.22,1,.36,1) calc(var(--i) * 280ms + 450ms) both; }
@keyframes s-bk-in { 0% { opacity: 0; transform: translateX(-14px) scaleX(.55); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.motion .s-flow .s-flow__toast { opacity: 0; transform: translateY(10px); }
.motion .s-flow.is-live .s-flow__toast { animation: s-toast-in .6s cubic-bezier(.22,1,.36,1) 2.9s both; }
@keyframes s-toast-in { to { opacity: 1; transform: none; } }
.motion .s-flow.is-live .s-bk--trip { animation: s-bk-in .7s cubic-bezier(.22,1,.36,1) calc(var(--i) * 280ms + 450ms) both, s-bk-ping 1.4s ease-out 2.6s 2; }
@keyframes s-bk-ping { 0% { box-shadow: 0 0 0 0 rgba(4,123,193,.45); } 100% { box-shadow: 0 0 0 10px rgba(4,123,193,0); } }
.s-cal__logo { display: block; height: 1rem; width: auto; }
.s-cal--src .s-cal__logo { height: 1.3rem; }
@media (prefers-color-scheme: dark) {
  .s-bk { color: #e9efed; background: color-mix(in srgb, var(--c) 22%, #121a18); }
  .s-bk--expedia { --c: #fddb32; }
  .s-bk--booking { --c: #5b8cff; }
}
@media (prefers-reduced-motion: reduce) { .s-flow .s-bk, .s-flow .s-flow__toast { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* EXAMPLES · demo hotel websites (16/10). */
.s-demos__lead { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.0625rem; }
.s-demos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .s-demos { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.s-demo__link { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: #0e1715; color: #fff; text-decoration: none; box-shadow: var(--sh-2); isolation: isolate; }
@media (max-width: 759px) { .s-demo__link { aspect-ratio: 5 / 4; } }
.s-demo__media, .s-demo__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-demo__media video { object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.s-demo__link:hover .s-demo__media video { transform: scale(1.08); }
.s-demo__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,10,9,.86), rgba(4,10,9,.1) 55%, rgba(4,10,9,.2)); }
.s-demo__body { position: absolute; inset: auto 0 0 0; z-index: 1; display: grid; gap: .3rem; padding: 1.25rem 1.3rem 1.35rem; }
.s-demo__body small { font-size: .75rem; font-weight: 500; letter-spacing: .04em; color: #a7e3dc; }
.s-demo__body b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.s-demo__body > span:not(.s-demo__go) { font-size: .9375rem; color: rgba(255,255,255,.82); }
.s-demo__go { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; margin-top: .6rem; padding: .55rem .9rem; border-radius: var(--r-md); background: #fff; color: #07504c; font-size: .875rem; font-weight: 600; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.s-demo__link:hover .s-demo__go { transform: translateX(3px); }
.s-demo__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.s-demos__note { margin: 1.25rem 0 0; font-size: .875rem; color: var(--ink-3, var(--ink-2)); }
.s-demos__note a, .s-service__more { color: var(--accent-deep); text-underline-offset: 3px; }
.s-service__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .9375rem; font-weight: 500; }
