/* Motion layer of the public site (hero street scene, reveals, booking phone, tilt, marquee, drawing icons, cursor glow, page transitions).
   Rules: the base styles ARE the final frame; every animation lives in the no-preference block and is switched off again in the reduce block at the end.
   Only transform, opacity, stroke-dashoffset and background-position are animated. --rd is 1 in LTR and -1 in RTL so every slide mirrors. */
:root { --rd: 1; --hs-s1: #5B3DF5; --hs-s2: #FF5A5F; --hs-s3: #FFB400; --hs-wall: #F7F7FB; --hs-sign: #14142B; --hs-glass: #2B2B52; --hs-shutter: #4A4A78; --hs-ground: #2A1D86; --hs-walk: #FFE9A8; --hs-screen: #fff; --hs-row: #F0EEFC; --hs-ink: #14142B; --hs-ink2: #5F6283; --hs-glow: 91 61 245; }
:root[dir="rtl"] { --rd: -1; }
:root[data-theme="dark"] { --hs-s1: #14142B; --hs-s2: #3F25C9; --hs-s3: #C8283A; --hs-wall: #2A2A4D; --hs-sign: #0C0C1C; --hs-glass: #14142B; --hs-shutter: #3A3A66; --hs-ground: #0C0C1C; --hs-walk: #5F6283; --hs-screen: #1F1F3D; --hs-row: #2E2E55; --hs-ink: #F7F7FB; --hs-ink2: #B5B7D6; --hs-glow: 0 194 168; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --hs-s1: #14142B; --hs-s2: #3F25C9; --hs-s3: #C8283A; --hs-wall: #2A2A4D; --hs-sign: #0C0C1C; --hs-glass: #14142B; --hs-shutter: #3A3A66; --hs-ground: #0C0C1C; --hs-walk: #5F6283; --hs-screen: #1F1F3D; --hs-row: #2E2E55; --hs-ink: #F7F7FB; --hs-ink2: #B5B7D6; --hs-glow: 0 194 168; }
}

/* ---------- Hero: gradient mesh + street scene ---------- */
.hero-mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-mesh i { position: absolute; width: 46rem; height: 46rem; border-radius: 50%; }
.hero-mesh i:nth-child(1) { inset-block-start: -18rem; inset-inline-start: -12rem; background: radial-gradient(circle, rgb(0 194 168 / 0.5), transparent 62%); }
.hero-mesh i:nth-child(2) { inset-block-end: -20rem; inset-inline-end: -10rem; background: radial-gradient(circle, rgb(255 180 0 / 0.38), transparent 62%); }
.hero-mesh i:nth-child(3) { inset-block-start: 8%; inset-inline-start: 38%; background: radial-gradient(circle, rgb(255 90 95 / 0.4), transparent 60%); }
.scene { position: relative; aspect-ratio: 3 / 2; width: 100%; max-width: 34rem; margin-inline: auto; border-radius: 28px; filter: none; box-shadow: 0 34px 60px -30px rgb(10 5 60 / 0.75), 0 0 0 1.5px rgb(255 255 255 / 0.25); }
.scene svg { display: block; width: 100%; height: 100%; }
.hs-s1 { stop-color: var(--hs-s1); } .hs-s2 { stop-color: var(--hs-s2); } .hs-s3 { stop-color: var(--hs-s3); }
.hs-sil { fill: #14142B; opacity: 0.22; }
.hs-wall { fill: var(--hs-wall); } .hs-sign, .hs-door { fill: var(--hs-sign); } .hs-glass { fill: var(--hs-glass); }
.hs-lit { fill: #FFB400; opacity: 0.95; }
.hs-frame { stroke: var(--hs-sign); stroke-width: 2; fill: none; opacity: 0.55; }
.hs-shutter { fill: var(--hs-shutter); } .hs-slats { stroke: #fff; stroke-opacity: 0.18; stroke-width: 1.5; fill: none; }
.hs-sh, .hs-awn, .hs-lantern, .hs-cloud, .hs-sunglow, .hs-steam, .hs-leg, .hs-pick, .hs-chip, .hs-tick, .hs-hand, .hs-dot, .hs-body { transform-box: fill-box; }
.hs-sh { transform-origin: 50% 0; transform: scaleY(0); }
.hs-awn, .hs-lantern { transform-origin: 50% 0; }
.hs-ground { fill: var(--hs-ground); } .hs-walkway { fill: var(--hs-walk); opacity: 0.45; }
.hs-leg, .hs-hand { transform-origin: 50% 0; }
.hs-hand { transform-origin: 50% 100%; opacity: 0; }
.hs-tick { transform-origin: 50% 100%; }
.hs-sunglow, .hs-dot, .hs-pick, .hs-chip, .hs-body { transform-origin: 50% 50%; }
.hs-screen { fill: var(--hs-screen); } .hs-row { fill: var(--hs-row); } .hs-ink { fill: var(--hs-ink); opacity: 0.85; } .hs-ink2 { fill: var(--hs-ink2); opacity: 0.45; }
.hs-face { fill: #fff; stroke: var(--hs-ink2); stroke-width: 1.5; }
.hs-cta { fill: #5B3DF5; }
.hs-scr { opacity: 0; } .hs-scr3 { opacity: 1; }
.hs-check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hs-ly { translate: calc(var(--mx, 0) * var(--k) * 6px) calc(var(--my, 0) * var(--k) * 3px + var(--sy, 0) * (3.5 - var(--k)) * 6px); transition: translate 0.5s ease-out; }

/* ---------- Reveal on scroll (hidden state only exists while motion.js runs) ---------- */
.mo [data-reveal].mo-hide { opacity: 0; transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 90ms), transform 0.7s var(--ease) calc(var(--i, 0) * 90ms); }
.mo [data-reveal="up"].mo-hide { transform: translateY(24px); }
.mo [data-reveal="scale"].mo-hide { transform: translateY(12px) scale(0.9); }
.mo [data-reveal="slide"].mo-hide { transform: translateX(calc(var(--rd) * -36px)); }
.mo [data-reveal].mo-hide.is-in { opacity: 1; transform: none; }

/* ---------- Booking phone (service -> time -> confirmed) ---------- */
.phone { --pw: 15rem; width: var(--pw); max-width: 100%; font-size: calc(var(--pw) / 15); aspect-ratio: 9 / 17.5; border-radius: 2.2em; background: #14142B; padding: 0.5em; position: relative; margin-inline: auto; box-shadow: 0 30px 50px -26px rgb(20 20 60 / 0.55), inset 0 0 0 1.5px rgb(255 255 255 / 0.2); }
.ph-notch { position: absolute; inset-block-start: 0.85em; inset-inline: 0; margin-inline: auto; width: 4.2em; height: 0.9em; border-radius: 1em; background: #14142B; z-index: 3; }
.ph-view { position: relative; height: 100%; border-radius: 1.75em; overflow: hidden; background: var(--hs-screen); color: var(--hs-ink); }
.ph-s { position: absolute; inset: 0; padding: 2.6em 1em 1em; display: flex; flex-direction: column; gap: 0.6em; opacity: 0; transform: translateX(calc(var(--rd) * 14px)); transition: opacity 0.45s, transform 0.45s var(--ease); pointer-events: none; }
.phone[data-screen="1"] .ph-s1, .phone[data-screen="2"] .ph-s2, .phone[data-screen="3"] .ph-s3 { opacity: 1; transform: none; }
.ph-h { margin: 0 0 0.3em; font-weight: 800; font-size: 1em; line-height: 1.3; }
.ph-sub { margin: 0; font-size: 0.82em; color: var(--hs-ink2); }
.ph-row { position: relative; display: flex; align-items: center; gap: 0.6em; margin: 0; padding: 0.8em 0.75em; border-radius: 0.95em; background: var(--hs-row); font-size: 0.85em; font-weight: 600; }
.ph-dot { width: 1.3em; height: 1.3em; border-radius: 50%; flex: none; background: #5B3DF5; }
.ph-dot1 { background: #FF5A5F; } .ph-dot2 { background: #00C2A8; }
.ph-row.is-pick::after, .ph-slot.is-pick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transform: scale(0.94); transition: opacity 0.4s 0.6s, transform 0.4s 0.6s var(--ease); }
.ph-row.is-pick::after { border: 2px solid #00C2A8; }
.ph-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.ph-slot { position: relative; isolation: isolate; text-align: center; padding: 0.7em 0; border-radius: 0.8em; background: var(--hs-row); font-size: 0.78em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-slot.is-pick::after { z-index: -1; background: #4B2FDB; }
.phone[data-screen="1"] .ph-row.is-pick::after, .phone[data-screen="2"] .ph-slot.is-pick::after { opacity: 1; transform: none; }
.phone[data-screen="2"] .ph-slot.is-pick { color: #fff; transition: color 0.3s 0.7s; }
.ph-cta { margin: auto 0 0; padding: 0.75em; border-radius: 2em; text-align: center; font-weight: 700; font-size: 0.85em; background: var(--grad-btn); color: #fff; }
.ph-s3 { align-items: center; justify-content: center; text-align: center; padding-top: 1em; }
.ph-s3 svg { display: block; width: 6em; height: 6em; margin-bottom: 0.4em; }
.phone .hs-hand { opacity: 0; }
.mo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.how-phone { display: none; }
.how-inline { --pw: 9.5rem; margin: 0 auto var(--s3); }
.how-ico { display: block; margin: 0 auto var(--s2); color: var(--link); }
.how-step.is-active, .hiw-step.is-active { border-color: var(--primary); }

/* ---------- Cards: 3D tilt + glow that follows the pointer (JS adds .mo-tilt on fine pointers only) ---------- */
.cat-card.mo-tilt { position: relative; overflow: hidden; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out, box-shadow 0.2s; }
.cat-card.mo-tilt::after { content: ""; position: absolute; left: 0; top: 0; width: 15rem; height: 15rem; margin: -7.5rem 0 0 -7.5rem; border-radius: 50%; background: radial-gradient(circle, rgb(var(--hs-glow) / 0.28), transparent 65%); opacity: 0; transform: translate3d(var(--gx, 50%), var(--gy, 50%), 0); transition: opacity 0.25s; pointer-events: none; }
.cat-card.mo-tilt:hover::after { opacity: 1; }

/* ---------- Category marquee ---------- */
.mq { display: flex; align-items: center; gap: var(--s3); min-height: 4.6rem; padding-inline: var(--gutter, 1rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.mq-view { flex: 1; min-width: 0; overflow: hidden; }
.mq-track { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.mq-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.mq-list[aria-hidden="true"] { display: none; }
.mq-chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 1.1rem; border-radius: var(--pill); border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mq-chip::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--cat, var(--primary)); }
a.mq-chip:hover { border-color: var(--cat, var(--primary)); }
.mq-toggle { display: none; flex: none; min-height: 44px; padding: 0.3rem 0.9rem; border-radius: var(--pill); border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.mo .mq-toggle { display: inline-flex; align-items: center; }

/* ---------- Buttons: ripple + magnetic pull ---------- */
.mo .btn-book { position: relative; overflow: hidden; }
.mo-rip { position: absolute; border-radius: 50%; background: rgb(255 255 255 / 0.45); pointer-events: none; transform: scale(0); }
.hero .btn-book .mo-rip { background: rgb(91 61 245 / 0.25); }
.mo-mag { transition: translate 0.25s var(--ease); }

/* ---------- Icons that draw themselves (pathLength is set to 1 by motion.js) ---------- */
.mo-draw :is(path, circle, line, polyline, rect) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mo-draw.is-in :is(path, circle, line, polyline, rect) { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease) calc(var(--i, 0) * 120ms); }

/* ---------- Cursor glow (desktop pointer only) ---------- */
.mo-glow { position: fixed; left: 0; top: 0; width: 30rem; height: 30rem; margin: -15rem 0 0 -15rem; border-radius: 50%; background: radial-gradient(circle, rgb(var(--hs-glow) / 0.13), transparent 62%); opacity: 0; pointer-events: none; z-index: 2; transition: opacity 0.4s; will-change: transform; }
.mo-glow.is-on { opacity: 1; }

/* ---------- Animations (only when the visitor has not asked for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: hn-head; }
  ::view-transition-old(root) { animation: 0.16s ease both mo-vt-out; }
  ::view-transition-new(root) { animation: 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both mo-vt-in; }

  .hero-mesh i:nth-child(1) { animation: mo-mesh1 34s ease-in-out infinite alternate; }
  .hero-mesh i:nth-child(2) { animation: mo-mesh2 41s ease-in-out infinite alternate; }
  .hero-mesh i:nth-child(3) { animation: mo-mesh3 29s ease-in-out infinite alternate; }
  .scene.is-off * { animation-play-state: paused; }
  .hs-sh { animation: mo-shutter 1.3s var(--ease) var(--d) both; }
  .hs-awn { animation: mo-awning 1s var(--ease) var(--d) both; }
  .hs-lit { animation: mo-on 0.6s calc(var(--d) + 0.9s) both, mo-glow 4s calc(var(--d) + 1.6s) ease-in-out infinite; }
  .hs-lit2 { animation-delay: calc(var(--d) + 1.4s), calc(var(--d) + 2.4s); }
  .hs-lantern { animation: mo-swing 4.5s ease-in-out infinite alternate; }
  .hs-lantern2 { animation-delay: -2s; }
  .hs-steam { animation: mo-steam 2.4s ease-in-out infinite; }
  .hs-cloud { animation: mo-cloud 36s ease-in-out infinite alternate; }
  .hs-cloud2 { animation-duration: 48s; animation-direction: alternate-reverse; }
  .hs-star { animation: mo-twinkle 3.2s ease-in-out calc(var(--n) * 0.7s) infinite; }
  .hs-sunglow { animation: mo-sun 6s ease-in-out infinite alternate; }
  .hs-dashes { animation: mo-dash 3s linear infinite; }
  .hs-walk { animation: mo-walk var(--t) linear var(--dl) infinite; }
  .hs-body { animation: mo-bob 0.3s ease-in-out infinite alternate; }
  .hs-leg { animation: mo-step 0.6s ease-in-out infinite alternate; }
  .hs-leg2 { animation-direction: alternate-reverse; }
  .hs-phone { animation: mo-float 6s ease-in-out infinite alternate; }
  .scene .hs-scr { animation: mo-screen 9s ease-in-out infinite; }
  .scene .hs-scr1 { animation-delay: 0s; } .scene .hs-scr2 { animation-delay: -6s; } .scene .hs-scr3 { animation-delay: -3s; }
  .scene .hs-pick { animation: mo-pick 9s ease-out infinite; }
  .scene .hs-chip { animation: mo-pick 9s ease-out -6s infinite; }
  .scene .hs-tick { animation: mo-tick 6s steps(12) -6s infinite; }
  .scene .hs-hand { animation: mo-hand 9s linear -3s infinite; }
  .scene .hs-dot { animation: mo-dot 9s ease-out calc(-3s + var(--dd, 0s)) infinite; }
  .scene .hs-dot1 { --dd: 0.2s; } .scene .hs-dot2 { --dd: 0.4s; } .scene .hs-dot3 { --dd: 0.6s; }
  .scene .hs-check { animation: mo-check 9s ease-out -3s infinite; }
  .phone[data-screen="3"] .hs-hand { animation: mo-hand1 0.9s linear both; }
  .phone[data-screen="3"] .hs-dot { animation: mo-dot1 0.5s ease-out calc(var(--dd, 0s) + 0.1s) both; }
  .phone[data-screen="3"] .hs-check { animation: mo-draw 0.7s 0.9s ease-out both; }
  .phone[data-screen="2"] .hs-tick { animation: mo-tick 6s steps(12) infinite; }

  .mq-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; animation: mo-marquee 46s linear infinite; }
  .mq-list { flex: none; flex-wrap: nowrap; padding-inline-end: var(--s2); }
  .mq-list[aria-hidden="true"] { display: flex; }
  .mq:hover .mq-track, .mq:focus-within .mq-track, .mq.is-paused .mq-track { animation-play-state: paused; }
  .mo-rip { animation: mo-ripple 0.6s ease-out forwards; }
}
@keyframes mo-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes mo-vt-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes mo-mesh1 { to { transform: translate3d(calc(var(--rd) * 9rem), 5rem, 0) scale(1.18); } }
@keyframes mo-mesh2 { to { transform: translate3d(calc(var(--rd) * -8rem), -6rem, 0) scale(0.9); } }
@keyframes mo-mesh3 { to { transform: translate3d(calc(var(--rd) * -6rem), 7rem, 0) scale(1.12); } }
@keyframes mo-shutter { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes mo-awning { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes mo-on { from { opacity: 0; } to { opacity: 0.95; } }
@keyframes mo-glow { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.78; } }
@keyframes mo-swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes mo-steam { 0% { transform: translateY(2px); opacity: 0.2; } 60% { opacity: 0.95; } 100% { transform: translateY(-4px); opacity: 0; } }
@keyframes mo-cloud { to { transform: translateX(46px); } }
@keyframes mo-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes mo-sun { to { transform: scale(1.14); opacity: 0.18; } }
@keyframes mo-dash { to { transform: translateX(-56px); } }
@keyframes mo-walk { from { transform: translateX(var(--a)); } to { transform: translateX(var(--b)); } }
@keyframes mo-bob { to { transform: translateY(-1.6px); } }
@keyframes mo-step { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes mo-float { to { transform: translateY(-7px); } }
@keyframes mo-screen { 0% { opacity: 0; transform: translateX(calc(var(--rd) * 12px)); } 4%, 29% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateX(calc(var(--rd) * -12px)); } }
@keyframes mo-pick { 0%, 10% { opacity: 0; transform: scale(0.94); } 17%, 100% { opacity: 1; transform: none; } }
@keyframes mo-tick { to { transform: rotate(360deg); } }
@keyframes mo-hand { 0% { opacity: 1; transform: rotate(0); } 9% { opacity: 1; transform: rotate(360deg); } 11%, 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes mo-dot { 0%, 3% { transform: scale(1); } 1.500% { transform: scale(1.9); } 6%, 100% { transform: scale(1); } }
@keyframes mo-check { 0%, 12% { stroke-dashoffset: 1; } 24%, 100% { stroke-dashoffset: 0; } }
@keyframes mo-hand1 { 0% { opacity: 1; transform: rotate(0); } 85% { opacity: 1; transform: rotate(360deg); } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes mo-dot1 { 0% { transform: scale(1); } 40% { transform: scale(1.9); } 100% { transform: scale(1); } }
@keyframes mo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mo-marquee { to { transform: translateX(calc(var(--rd) * -25%)); } }
@keyframes mo-ripple { from { opacity: 1; } to { opacity: 0; transform: scale(1); } }

/* ---------- Wide screens: the phone sticks while the steps scroll past ---------- */
@media (min-width: 900px) {
  .how-flow, .hiw-flow { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .how-phone { display: block; position: sticky; top: calc(var(--header-h, 68px) + 1.5rem); }
  .how-inline { display: none; }
  .how-flow .how-grid, .hiw-flow .hiw-steps { grid-template-columns: 1fr; gap: var(--s5); }
  .how-flow .how-step { min-height: 15rem; display: flex; flex-direction: column; justify-content: center; text-align: start; }
  .how-flow .how-ico { margin-inline: 0; }
  .how-flow .how-step.is-active, .hiw-flow .hiw-step.is-active { box-shadow: 0 0 0 2px var(--primary), var(--shadow, none); }
}

/* ---------- Reduced motion: no animation, no transition, final frame everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh i, .scene *, .hs-sh, .hs-awn, .hs-lit, .hs-lantern, .hs-steam, .hs-cloud, .hs-star, .hs-sunglow, .hs-dashes, .hs-walk, .hs-body, .hs-leg, .hs-phone,
  .hs-scr, .hs-pick, .hs-chip, .hs-tick, .hs-hand, .hs-dot, .hs-check, .mq-track, .mo-rip, .phone .hs-hand, .phone .hs-dot, .phone .hs-check, .phone .hs-tick { animation: none !important; }
  [data-reveal], .hs-ly, .ph-s, .ph-row, .ph-slot, .cat-card, .mo-mag, .mo-draw, .mo-glow { transition: none !important; }
  .mo-glow, .mo-rip, .mq-toggle { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mo-draw :is(path, circle, line, polyline, rect) { stroke-dashoffset: 0 !important; }
  .mq-track { width: auto; flex-wrap: wrap; }
  .mq-list[aria-hidden="true"] { display: none; }
}

/* ---------- Social section: "Follow us and be the first to know" ----------
   Final frame by default. Animations (transform / opacity / background-position only) run in the no-preference block and only while the section is on screen (.is-live, set by motion.js). */
.sc { --sc-t: var(--text); position: relative; isolation: isolate; overflow: clip; padding-block: var(--s8) var(--s8); background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--primary) 5%, var(--bg))); }
main:has(> .sc:last-child) + .site-footer { margin-top: 0; }
.sc-mesh, .sc-shapes { position: absolute; inset: 0; pointer-events: none; }
.sc-mesh { z-index: -2; }
.sc-shapes { z-index: -1; }
.sc-mesh i { position: absolute; width: 26rem; height: 26rem; border-radius: 50%; will-change: transform; }
.sc-mesh i:nth-child(1) { inset-block-start: -8rem; inset-inline-start: -8rem; background: radial-gradient(circle, rgb(91 61 245 / 0.42), transparent 66%); }
.sc-mesh i:nth-child(2) { inset-block-start: 10%; inset-inline-end: -9rem; background: radial-gradient(circle, rgb(255 90 95 / 0.36), transparent 66%); }
.sc-mesh i:nth-child(3) { inset-block-end: -9rem; inset-inline-start: 14%; background: radial-gradient(circle, rgb(255 180 0 / 0.38), transparent 66%); }
.sc-mesh i:nth-child(4) { inset-block-end: -6rem; inset-inline-end: 10%; background: radial-gradient(circle, rgb(0 194 168 / 0.4), transparent 66%); }
.sc-shape { position: absolute; width: 4rem; height: 4rem; color: var(--primary); opacity: 0.16; }
.sc-sh1 { inset-block-start: 9%; inset-inline-start: 5%; }
.sc-sh2 { inset-block-start: 11%; inset-inline-end: 6%; width: 3.25rem; height: 3.25rem; }
.sc-sh3 { inset-block-end: 1rem; inset-inline-start: 4%; width: 4.5rem; height: 4.5rem; }
:root[data-theme="dark"] .sc-shape { color: #B0A5FF; opacity: 0.2; }
.sc-head { max-width: 40rem; margin: 0 auto var(--s4); text-align: center; }
.sc-head h2 { margin: 0 0 var(--s2); color: var(--sc-t); font-size: clamp(1.6rem, 5.4vw, 2.4rem); line-height: 1.3; text-wrap: balance; }
.sc-head .lede { margin: 0; color: var(--sc-t); }

/* Phones: a swipeable row with the next card peeking in; desktop: three columns */
.sc-list { display: flex; gap: var(--s4); list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: var(--s5) var(--gutter) var(--s6); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.sc-list::-webkit-scrollbar { display: none; }
.sc-item { flex: 0 0 min(80%, 20rem); display: flex; scroll-snap-align: start; }
.sc-card { --c1: #1565D8; --c2: #5AA0FF; --ic: #1565D8; --glow: 21 101 216; position: relative; isolation: isolate; display: flex; width: 100%; min-height: 19rem; border-radius: 28px; }
.sc-ig { --c1: #C0245F; --c2: #7B2FB8; --ic: #C0245F; --glow: 214 41 118; }
.sc-tg { --c1: #1B76A8; --c2: #54C0F0; --ic: #1B76A8; --glow: 34 158 217; }
:root[data-theme="dark"] .sc-card { --ic: #8CB8FF; }
:root[data-theme="dark"] .sc-ig { --ic: #FF7FB0; }
:root[data-theme="dark"] .sc-tg { --ic: #6CCBF5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .sc-card { --ic: #8CB8FF; }
  :root:not([data-theme]) .sc-ig { --ic: #FF7FB0; }
  :root:not([data-theme]) .sc-tg { --ic: #6CCBF5; }
}
.sc-card::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgb(var(--glow) / 0.4), transparent); opacity: 0.55; transition: opacity 0.3s; pointer-events: none; }
.sc-card:hover::before, .sc-card:focus-within::before { opacity: 1; }
.sc-ring { position: absolute; inset: 0; padding: 2px; border-radius: inherit; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); -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); }
.sc-ig .sc-ring { background: none; }
.sc-ig .sc-ring::before { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 200%; aspect-ratio: 1; margin: -100% 0 0 -100%; background: conic-gradient(#F58529, #DD2A7B, #8134AF, #515BD4, #F58529); }
:root[dir="rtl"] .sc-ig .sc-ring::before { margin: -100% -100% 0 0; }
.sc-in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: var(--s2); margin: 2px; padding: var(--s5); border-radius: 26px; overflow: hidden; background: color-mix(in srgb, var(--surface) 76%, transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 22px 40px -28px rgb(var(--glow) / 0.55); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); color: var(--text); }
.sc-in::before { content: ""; position: absolute; left: 0; top: 0; width: 15rem; height: 15rem; margin: -7.5rem 0 0 -7.5rem; border-radius: 50%; background: radial-gradient(circle, rgb(var(--glow) / 0.22), transparent 65%); opacity: 0; transform: translate3d(var(--gx, 50%), var(--gy, 50%), 0); pointer-events: none; transition: opacity 0.25s; }
.sc-card.mo-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out; }
.sc-card.mo-tilt:hover .sc-in::before { opacity: 1; }
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 5.5rem; }
.sc-ico { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 26px; color: var(--ic); background: color-mix(in srgb, var(--c1) 12%, transparent); transition: transform 0.3s var(--ease); }
.sc-ico svg { width: 4rem; height: 4rem; overflow: visible; }
.sc-card:hover .sc-ico { transform: scale(1.08); }
.sc-a-bar, .sc-a-lens, .sc-a-spark, .sc-a-plane, .sc-a-trail { transform-box: fill-box; transform-origin: 50% 50%; }
.sc-qr { display: none; }
.sc-name { margin: var(--s2) 0 0; font-size: 1.35rem; line-height: 1.35; }
.sc-line { margin: 0 0 var(--s4); line-height: 1.7; color: var(--text); }
.sc-btn { --shine: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / 0.45) 50%, transparent 62%); position: relative; margin-top: auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3rem; padding-inline: var(--s5); border-radius: var(--pill); color: #fff; font-weight: 700; text-decoration: none; background-color: var(--c1); background-image: var(--shine), linear-gradient(90deg, var(--c1), var(--c1)); background-repeat: no-repeat; background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; transition: background-position 0.8s var(--ease), transform 0.2s; }
.sc-ig .sc-btn { background-image: var(--shine), linear-gradient(90deg, var(--c1), var(--c2)); }
.sc-btn:is(:hover, :focus-visible) { background-position: -30% 0, 0 0; }
:root[dir="rtl"] .sc-btn { background-position: -30% 0, 0 0; }
:root[dir="rtl"] .sc-btn:is(:hover, :focus-visible) { background-position: 130% 0, 0 0; }
.sc-btn:focus-visible { border-radius: var(--pill); outline: 3px solid var(--focus); outline-offset: 3px; }
.sc-btn:active { transform: scale(0.97); }
.sc-btn svg { flex: none; transform: scaleX(var(--rd)); transition: transform 0.25s var(--ease); }
.sc-btn:is(:hover, :focus-visible) svg { transform: translateX(calc(var(--rd) * 3px)) scaleX(var(--rd)); }
@media (min-width: 900px) {
  .sc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .sc-item { flex: none; }
  .sc-card { min-height: 20rem; }
  .sc-in { padding: var(--s6); }
}
@media (min-width: 1024px) and (pointer: fine) {
  .sc-qr { display: block; flex: none; width: 5.5rem; height: 5.5rem; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
  .sc-qr svg { display: block; width: 100%; height: 100%; }
}
@media (max-width: 639px) {
  .sc { padding-block: var(--s7); }
  .sc-mesh i { width: 18rem; height: 18rem; }
  .sc-sh2, .sc-sh3 { display: none; }
  .sc-in { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

@media (prefers-reduced-motion: no-preference) {
  .sc *, .sc *::before { animation-play-state: var(--ps, paused) !important; }
  .sc.is-live { --ps: running; }
  .sc-mesh i:nth-child(1) { animation: sc-drift1 30s ease-in-out infinite alternate; }
  .sc-mesh i:nth-child(2) { animation: sc-drift2 36s ease-in-out infinite alternate; }
  .sc-mesh i:nth-child(3) { animation: sc-drift3 33s ease-in-out infinite alternate; }
  .sc-mesh i:nth-child(4) { animation: sc-drift4 40s ease-in-out infinite alternate; }
  .sc-shape { animation: sc-bob 17s ease-in-out infinite alternate; }
  .sc-sh2 { animation-duration: 21s; animation-delay: -6s; }
  .sc-sh3 { animation-duration: 25s; animation-delay: -11s; }
  .sc-ico svg { animation: sc-float 5s ease-in-out infinite alternate; }
  .sc-ig .sc-ico svg { animation-delay: -1.7s; }
  .sc-tg .sc-ico svg { animation-delay: -3.2s; }
  .sc-ig .sc-ring::before { animation: sc-spin 7s linear infinite; }
  .sc-a-bar { animation: sc-bar 2.8s ease-in-out infinite alternate; }
  .sc-a-lens { animation: sc-lens 3.2s ease-in-out infinite alternate; }
  .sc-a-spark { animation: sc-twinkle 2.4s ease-in-out infinite; }
  .sc-a-plane { animation: sc-fly 3s ease-in-out infinite alternate; }
  .sc-a-trail { animation: sc-trail 3s ease-in-out infinite alternate; }
}
@keyframes sc-drift1 { to { transform: translate3d(calc(var(--rd) * 9rem), 6rem, 0) scale(1.15); } }
@keyframes sc-drift2 { to { transform: translate3d(calc(var(--rd) * -8rem), 7rem, 0) scale(0.92); } }
@keyframes sc-drift3 { to { transform: translate3d(calc(var(--rd) * 7rem), -5rem, 0) scale(1.12); } }
@keyframes sc-drift4 { to { transform: translate3d(calc(var(--rd) * -9rem), -6rem, 0) scale(1.05); } }
@keyframes sc-bob { to { transform: translate3d(calc(var(--rd) * 1.5rem), -1.25rem, 0) rotate(9deg); } }
@keyframes sc-float { to { transform: translateY(-7px) rotate(calc(var(--rd) * 3deg)); } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-bar { to { transform: scaleX(0.72); } }
@keyframes sc-lens { to { transform: scale(1.35); } }
@keyframes sc-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.25; transform: scale(0.6); } }
@keyframes sc-fly { to { transform: translate3d(calc(var(--rd) * 3px), -3px, 0); } }
@keyframes sc-trail { from { opacity: 0.25; transform: translateX(calc(var(--rd) * 3px)); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sc-mesh i, .sc-shape, .sc-ico svg, .sc-ig .sc-ring::before, .sc-a-bar, .sc-a-lens, .sc-a-spark, .sc-a-plane, .sc-a-trail { animation: none !important; }
  .sc-card, .sc-card::before, .sc-in::before, .sc-ico, .sc-btn, .sc-btn svg, .sc-item { transition: none !important; }
  .sc-card.mo-tilt { transform: none !important; }
  .sc-card:hover .sc-ico, .sc-btn:is(:hover, :focus-visible) svg { transform: none; }
}
