/* The front page (/): a scroll stage after Pally's (2026-10-25, the owner), in the six colours of the brand guide. The
   words are the landing's own (i18n.js); the phone plays a day with the assistant as the page scrolls (home.js). */
:root {
  --blue: #2C3592;
  --ink: #181A24;
  --muted: #555863;
  --soft: #F5F5F7;
  --tint: #EBEDF8;
  --white: #FFFFFF;
  --line: rgba(24, 26, 36, .1);
  --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --bg: #FFFFFF; --logo: #2C3592;
  --dir: 1;            /* the phone leaves to the right in English, to the left in Arabic */
  --ox: 25vw;          /* how far it leaves */
  --oy: 0vh;
  --pi: 0;             /* intro progress, set from the scroll */
  --pm: 0;             /* scenes visible */
  --po: 0;             /* outro progress */
}
[dir="rtl"] { --dir: -1; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(44, 53, 146, .35); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding-inline: 34px; min-width: 240px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(24,26,36,.55); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--blue); box-shadow: 0 18px 34px -14px rgba(44,53,146,.6); }
.alt { display: flex; gap: 18px; justify-content: center; margin-top: 14px; font-size: 15px; color: var(--muted); }
.alt a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(85,88,99,.4); }
.alt a:hover { color: var(--blue); }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(255,255,255,.8); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; height: 76px; gap: 28px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a, .nav button { background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--muted); font-size: 16px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav button:hover { color: var(--ink); }
.pillbtn { display: inline-flex; align-items: center; height: 42px; padding-inline: 18px; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: background .2s, color .2s; }
.pillbtn:hover { background: var(--ink); color: #fff; }

/* ============ The scroll stage ============ */
.stage { position: relative; height: 600vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px; }
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42vw 34vw at 50% 30%, rgba(44,53,146,.10), transparent 70%),
    radial-gradient(30vw 26vw at 74% 26%, rgba(235,237,248,.95), transparent 70%),
    radial-gradient(34vw 28vw at 26% 40%, rgba(235,237,248,.9), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fbfbfe 52%, var(--tint) 62%, var(--soft) 100%);
}
.glow::after { /* the horizon the headline lies on */
  content: ""; position: absolute; inset: 58% 0 0 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(44,53,146,.07), transparent 70%);
}

/* The headline: upright at first, then it lies down on the floor and turns with the phone. */
.floor { position: absolute; inset: 0; z-index: 1; perspective: 900px; perspective-origin: 50% 38%; pointer-events: none; }
.headline {
  position: absolute; left: 50%; width: min(1100px, 92vw);
  top: calc(36vh - var(--lift, 0px) * (1 - var(--pi)) + var(--pi) * 54vh);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--po) * var(--dir) * 14vw))
    rotateX(calc(var(--pi) * 64deg))
    rotateZ(calc(var(--po) * var(--dir) * -26deg))
    scale(calc(1 - var(--pi) * .3 - var(--po) * .04));
  transform-origin: 50% 50%;
  text-align: center; font-weight: 700; color: var(--ink);
  font-size: clamp(42px, 6.4vw, 92px); line-height: 1.04; letter-spacing: -.035em;
  opacity: calc(1 - var(--po) * .55);
}
[dir="rtl"] .headline { letter-spacing: 0; line-height: 1.22; }
.headline .blue { color: var(--blue); }
.herosub { position: absolute; left: 50%; top: calc(36vh + clamp(120px, 15vw, 190px) - var(--lift, 0px)); transform: translateX(-50%) translateY(calc(var(--pi) * 60px)); z-index: 3; text-align: center; width: min(560px, 90vw); opacity: calc(1 - var(--pi) * 3.2); }
.herosub p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.herosub b { color: var(--ink); }
.herosub.off { pointer-events: none; visibility: hidden; }
/* The scroll cue: at the very bottom, a mouse whose wheel rolls and two chevrons that fall in turn (fit() in home.js
   keeps the buttons above it). */
.keep { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--muted); opacity: calc(1 - var(--pi) * 5); }
.keep .mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; opacity: .8; }
.keep .mouse i { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s cubic-bezier(.6,0,.4,1) infinite; }
.keep .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .keep .lbl { letter-spacing: 0; text-transform: none; font-size: 13px; }
.keep .chev { display: flex; flex-direction: column; align-items: center; margin-top: -2px; }
.keep .chev svg { width: 12px; height: 8px; margin-top: -2px; opacity: 0; animation: chev 1.8s ease-in-out infinite; }
.keep .chev svg + svg { animation-delay: .18s; }
.keep.bare .lbl, .keep.bare .chev { display: none; }
.keep.gone, .stores.gone { display: none; }   /* B130: home.js fit(): what would cover the hero's buttons */
.keep:hover { color: var(--blue); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 65% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }
@keyframes chev { 0%, 100% { opacity: 0; transform: translateY(-3px); } 45% { opacity: 1; transform: translateY(1px); } 70% { opacity: 0; transform: translateY(4px); } }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* The phone */
.phone-wrap { position: absolute; left: 50%; top: 50%; z-index: 4; transform-style: preserve-3d;
  transform:
    translate(-50%, -58%)
    translate3d(calc(var(--po) * var(--dir) * var(--ox)), calc((1 - var(--pi)) * -118vh + var(--po) * var(--oy)), 0)
    rotateY(calc(var(--po) * var(--dir) * -24deg))
    rotateX(calc(var(--po) * 7deg))
    rotateZ(calc(var(--po) * var(--dir) * 3deg))
    scale(var(--ps, 1));
}
.shadow { position: absolute; left: 50%; top: calc(50% + 304px * var(--ps, 1)); width: calc(360px * var(--ps, 1)); height: 46px; z-index: 2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24,26,36,.28), transparent);
  transform: translate(-50%, -50%) translateX(calc(var(--po) * var(--dir) * var(--ox) + var(--po) * var(--dir) * 40px)) scaleX(calc(1 + var(--po) * .3));
  opacity: calc(var(--pi) * (1 - var(--po) * .4)); filter: blur(6px); }
.iphone { width: 318px; height: 664px; border-radius: 56px; padding: 11px; position: relative;
  background: linear-gradient(145deg, #e9eaee 0%, #b9bcc6 18%, #f4f5f8 32%, #9a9eaa 60%, #dfe1e7 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), inset 0 0 0 3px rgba(24,26,36,.25), 0 50px 80px -40px rgba(24,26,36,.45), 0 30px 60px -30px rgba(44,53,146,.35);
}
.iphone::before, .iphone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #8f93a0, #d6d8de); }
.iphone::before { left: -3px; top: 150px; height: 64px; box-shadow: 0 -52px 0 -6px #9da1ad; }
.iphone::after { right: -3px; top: 190px; height: 96px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 46px; background: #000; padding: 3px; }
.glass { position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 104px; height: 31px; border-radius: 20px; background: #000; z-index: 5; }
.island::after { content: ""; position: absolute; right: 13px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4070, #0b0d22 60%); }
.status { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px 0 34px; height: 46px; font-size: 14px; font-weight: 600; direction: ltr; color: #000; }
.status .icons { display: flex; gap: 5px; align-items: center; }
.ios-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 14px 8px; position: relative; z-index: 2;
  background: linear-gradient(#fff 70%, rgba(255,255,255,0)); }
.round { width: 34px; height: 34px; border-radius: 50%; background: rgba(245,245,247,.95); box-shadow: 0 1px 3px rgba(24,26,36,.12); display: grid; place-items: center; color: #000; }
.round svg { width: 16px; height: 16px; }
[dir="rtl"] .round.back svg { transform: scaleX(-1); }
.contact { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.contact .av { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(44,53,146,.6); }
.contact .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.contact .nm { font-size: 11.5px; background: rgba(245,245,247,.95); border-radius: 999px; padding: 1px 8px; box-shadow: 0 1px 2px rgba(24,26,36,.1); }
.thread-box { flex: 1; position: relative; overflow: hidden; margin-top: -10px; }
.thread { position: absolute; inset: 0 0 auto 0; padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 4px; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.msg { max-width: 78%; padding: 7px 12px; border-radius: 18px; font-size: 13.4px; line-height: 1.42; position: relative; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s, transform .35s cubic-bezier(.2,.9,.3,1.25); }
.msg.on { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-end-end-radius: 6px; margin-top: 6px; }
.msg.bot { align-self: flex-start; background: #ECEDF1; color: #000; border-end-start-radius: 6px; }
.msg .rx { position: absolute; top: -15px; inset-inline-start: -10px; background: #ECEDF1; border: 2px solid #fff; border-radius: 999px; font-size: 12px; line-height: 1; padding: 4px 5px; opacity: 0; transform: scale(.4); transition: all .3s cubic-bezier(.2,.9,.3,1.4); }
.msg.me .rx.on { opacity: 1; transform: none; }
.msg.voice { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.msg.voice .pl { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
[dir="rtl"] .msg.voice .pl { transform: scaleX(-1); }
.wave { display: flex; gap: 2px; align-items: center; flex: 1; height: 16px; }
.wave i { width: 2.5px; border-radius: 2px; background: #fff; opacity: .9; }
.msg small { font-size: 11px; opacity: .8; }
.sep { align-self: center; font-size: 10.5px; color: #8e8e93; margin: 12px 0 2px; opacity: 0; transition: opacity .3s; }
.sep.on { opacity: 1; }
.read { align-self: flex-end; font-size: 10px; color: #8e8e93; margin-top: -1px; opacity: 0; transition: opacity .3s; }
.read.on { opacity: 1; }
.typing { align-self: flex-start; background: #ECEDF1; border-radius: 18px; padding: 10px 13px; display: flex; gap: 4px; margin-top: 2px; opacity: 0; transform: scale(.8); transform-origin: left bottom; transition: all .25s; position: absolute; bottom: 12px; inset-inline-start: 12px; }
.typing.on { opacity: 1; transform: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9ca5; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 12px 28px; background: #fff; position: relative; z-index: 2; }
.composer .plus { width: 30px; height: 30px; border-radius: 50%; background: #ECEDF1; display: grid; place-items: center; flex: none; }
.composer .plus svg { width: 14px; height: 14px; }
.composer .field { flex: 1; height: 34px; border-radius: 999px; border: 1px solid #d9dae0; display: flex; align-items: center; justify-content: space-between; padding-inline: 14px 10px; font-size: 13.5px; color: #9a9ca5; overflow: hidden; white-space: nowrap; }
.composer .field.typed { color: #000; }
.composer .field svg { width: 15px; height: 15px; color: #9a9ca5; flex: none; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 4.5px; border-radius: 3px; background: #000; z-index: 3; }

/* The side panel */
.side { position: absolute; z-index: 3; inset-inline-start: max(5vw, calc(50% - 600px)); top: 50%; transform: translateY(-58%); width: 340px; opacity: var(--pm); }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.kicker::after { content: ""; width: 38px; height: 1px; background: rgba(85,88,99,.4); }
.kicker b { font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.side h2 { font-size: 34px; letter-spacing: -.02em; margin-top: 12px; line-height: 1.15; min-height: 1.2em; }
[dir="rtl"] .side h2 { letter-spacing: 0; }
.swap { transition: opacity .35s, transform .35s; }
.swap.out { opacity: 0; transform: translateY(8px); }
.tally { margin-top: 44px; }
.tally .cap { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--ink); transition: color .3s; }
.row.zero { color: rgba(85,88,99,.7); }
.row.total { border-top: 1.5px solid var(--ink); margin-top: 4px; padding-top: 10px; font-weight: 600; }
.row .n { font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.4em; text-align: end; }
.row .n.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.45); color: var(--blue); } }

/* Scene objects */
.obj { position: absolute; z-index: 3; opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1); pointer-events: none; filter: drop-shadow(0 26px 22px rgba(24,26,36,.18)) drop-shadow(0 6px 6px rgba(24,26,36,.08)); }
.obj.on { opacity: calc(1 - var(--po) * 1.6); }
.obj svg { width: 100%; height: auto; overflow: visible; }
.obj.near { width: 150px; top: 54%; inset-inline-start: calc(50% - 280px); transform: translateY(30px) rotate(-6deg) scale(.9); }
.obj.far  { width: 300px; top: 30%; inset-inline-end: max(5vw, calc(50% - 560px)); transform: translateY(40px) rotate(4deg) scale(.9); }
[dir="rtl"] .obj.near { transform: translateY(30px) rotate(6deg) scale(.9); }
.obj.near.on { transform: rotate(-6deg); animation: float 6s ease-in-out infinite; }
.obj.far.on  { transform: rotate(4deg); animation: float 7s ease-in-out infinite .5s; }
@keyframes float { 50% { translate: 0 -10px; } }

/* The outro text */
.outro { position: absolute; z-index: 5; inset-inline-start: max(6vw, calc(50% - 560px)); top: 50%; width: min(620px, 52vw); transform: translateY(calc(-50% + (1 - var(--po)) * 60px)); opacity: var(--po); }
.outro.off { visibility: hidden; pointer-events: none; }
.outro h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
[dir="rtl"] .outro h2 { letter-spacing: 0; line-height: 1.15; }
.outro p { color: var(--muted); font-size: 20px; margin-top: 26px; }
.outro p b { color: var(--ink); }

/* Calls to action, as on the live landing */
.go { display: flex; flex-direction: column; align-items: center; }
.outro .go { align-items: flex-start; }
.outro .or { text-align: start; }
.go .btn { margin-top: 28px; }
.go .btn .arrow { transition: transform .2s; }
[dir="rtl"] .go .btn .arrow { transform: scaleX(-1); }
.go .btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .go .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
.go .or { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.lp-channels { display: flex; gap: 10px; margin-top: 10px; }
.lp-channel { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 16px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s; }
.lp-channel:hover { border-color: var(--ink); transform: translateY(-1px); }
/* The stores: just the two icons, alone in the corner (the words live in aria-label). */
.stores { position: absolute; inset-inline-end: 24px; bottom: 28px; z-index: 3; display: inline-flex; gap: 8px; }
.stores img { display: block; }

/* The opening (splash.js), as style.css draws it on every other page. */
.splash {
  position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; background: var(--bg); pointer-events: none;
  animation: splash-out 0.35s ease 2.6s forwards;
}
.splash.gone { animation: splash-leave 0.35s ease forwards; }
.splash-logo { width: min(240px, 58vw); height: auto; overflow: visible; }
.splash-line {
  fill: none; stroke: var(--logo); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transform-box: fill-box; transform-origin: center; /* it pops with the fill, so the two never part */
  animation: splash-draw 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards, splash-fade 0.25s ease 0.85s forwards,
    splash-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s;
}
.splash-mark {
  fill: var(--logo); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: splash-show 0.3s ease 0.7s forwards, splash-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s;
}
.splash-word { fill: var(--logo); }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-fade { to { opacity: 0; } }
@keyframes splash-show { to { opacity: 1; } }
@keyframes splash-pop { 45% { transform: scale(1.1); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes splash-leave { to { opacity: 0; visibility: hidden; } }

/* Footer, as on the live landing */
.foot { padding: 34px 0 40px; text-align: center; font-size: 13.5px; color: var(--muted); background: var(--soft); }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--blue); }

/* ============ Smaller screens ============ */
@media (max-width: 1100px) {
  .side { width: 260px; }
  .side h2 { font-size: 28px; }
  .obj.near { width: 120px; inset-inline-start: calc(50% - 250px); }
  .obj.far { width: 230px; inset-inline-end: 3vw; }
}
@media (max-width: 860px) {
  :root { --ox: 0vw; --oy: 52vh; --ps: .78; }
  .nav a, .nav .hide-sm { display: none; }
  .wrap { padding-inline: 20px; }
  .side, [dir="rtl"] .side { left: 50%; right: auto; top: 84px; transform: translateX(-50%); width: min(340px, 90vw); text-align: center; }
  .phone-wrap { top: 60%; }
  .side .kicker { justify-content: center; }
  .side .kicker::after { display: none; }
  .side h2 { font-size: 22px; margin-top: 4px; }
  .tally { display: none; }
  .phone-wrap { top: 58%; }
  .obj.near { width: 90px; inset-inline-start: 2vw; top: 66%; }
  .obj.far { width: 150px; inset-inline-end: 1vw; top: 26%; }
  .outro { inset-inline-start: 0; width: 100%; padding-inline: 20px; text-align: center; top: 46%; }
  .outro .alt { justify-content: center; padding: 0; }
  .outro p { font-size: 17px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { min-width: 0; width: 100%; }
}
/* B108 (2026-10-27): on a phone 375 px wide or less the header's three (the logo, the language, Sign in) didn't fit, and
   Sign in ran off the screen's edge: in Arabic at 320 to 375 px, in English at 320 */
@media (max-width: 420px) {
  .wrap.top-in { padding-inline: 14px; gap: 10px; }
  .brand img { height: 26px; }
  .nav { gap: 0; }
  .nav a, .nav button { padding: 8px 6px; font-size: 15px; }
  .pillbtn { height: 38px; padding-inline: 12px; font-size: 14px; }
}
@media (max-width: 340px) {
  .pillbtn { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
}

/* No motion: no pinned stage, everything in its final place. */
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.still .stage { height: auto; }
html.still .pin { position: relative; height: auto; min-height: 100vh; padding: 120px 0 80px; perspective: none; }
html.still .headline { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; opacity: 1; }
html.still .herosub { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 20px auto 0; }
html.still .floor { position: relative; }
html.still .phone-wrap { position: relative; left: auto; top: auto; transform: none; margin: 60px auto 0; width: max-content; }
html.still .side, html.still .obj, html.still .outro, html.still .shadow, html.still .keep, html.still .typing { display: none; }
/* B115 (2026-10-27): with less motion the page scrolls as a page, and home.js never turns the header solid (that's the
   stage's scroll): it sat clear over the text below it. Solid from the start here. */
html.still .top { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.outro .blue { color: var(--blue); }
@media (max-width: 860px) { .outro .go { align-items: center; } }

/* The voice note's bars */
.wave i:nth-child(1) { height: 5px; }
.wave i:nth-child(2) { height: 10px; }
.wave i:nth-child(3) { height: 14px; }
.wave i:nth-child(4) { height: 8px; }
.wave i:nth-child(5) { height: 12px; }
.wave i:nth-child(6) { height: 16px; }
.wave i:nth-child(7) { height: 9px; }
.wave i:nth-child(8) { height: 6px; }
.wave i:nth-child(9) { height: 12px; }
.wave i:nth-child(10) { height: 15px; }
.wave i:nth-child(11) { height: 10px; }
.wave i:nth-child(12) { height: 5px; }
.wave i:nth-child(13) { height: 8px; }
.wave i:nth-child(14) { height: 13px; }
.wave i:nth-child(15) { height: 11px; }
.wave i:nth-child(16) { height: 7px; }

/* ============ The drawings' own moves ============
   .obj.on: the drawing arrives (each its own way); .obj.hit: the scene's last reply lands, and the drawing answers it,
   with a burst after Twitter's like: a ring that thins out, sparks that fly and fade, and the badge popping in. */
/* only the parts that move get a box of their own (a group with a rotate() attribute keeps the SVG's) */
.obj :is(.ring, .p, .badge, .cup, .sau, .st, .tw, .env, .letter, .flap, .sendwrap, .whoosh, .arc, .cal, .wk, .clk, .case, .puff, .tk) { transform-box: fill-box; transform-origin: center; }
.burst .ring, .burst .p, .obj .badge, .obj .whoosh, .obj .plane, .obj .puff, .obj .sig .arc { opacity: 0; }
.obj .chk { stroke-dasharray: 1; stroke-dashoffset: 1; }
.obj.hit .burst .ring { animation: ring .6s cubic-bezier(.2,.7,.3,1) forwards; }
.obj.hit .burst .p { animation: spark .8s cubic-bezier(.15,.8,.3,1) .1s forwards; }
.obj.hit .burst .p.sm { animation-delay: .16s; animation-duration: .7s; }
.obj.hit .badge { animation: badge .65s cubic-bezier(.2,1.7,.4,1) .08s both; }
.obj.hit .chk { animation: draw .4s cubic-bezier(.5,0,.3,1) .38s forwards; }
@keyframes ring { 0% { opacity: 1; transform: scale(.15); stroke-width: 26; } 100% { opacity: 0; transform: scale(1.35); stroke-width: 0; } }
@keyframes spark { 0% { opacity: 0; transform: translate(calc(var(--x) * .3), calc(var(--y) * .3)) scale(1.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.1); } }
@keyframes badge { 0% { opacity: 0; transform: scale(0) rotate(-30deg); } 45% { opacity: 1; } 60% { transform: scale(1.22) rotate(6deg); } 80% { transform: scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* The mug: it drops onto its saucer with a squash, the steam rises, two glints twinkle */
.obj.on .sau { animation: fadein .5s ease both; }
.obj.on .cup { transform-origin: 50% 100%; animation: drop .8s cubic-bezier(.3,1.3,.5,1) .05s both; }
.obj .st { stroke-dasharray: .38 1; stroke-dashoffset: .38; opacity: 0; }
.obj.on .st { animation: steam 2.6s ease-in-out .7s infinite; }
.obj.on .st.s1 { animation-delay: 1.1s; } .obj.on .st.s2 { animation-delay: 1.5s; }
.obj .tw { opacity: 0; }
.obj.on .tw { animation: twinkle 2.8s ease-in-out .9s infinite; }
.obj.on .tw.t1 { animation-delay: 2.2s; }
@keyframes fadein { from { opacity: 0; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-80px); } 55% { opacity: 1; transform: translateY(5px) scale(1.06, .9); } 75% { transform: translateY(-4px) scale(.98, 1.03); } 100% { transform: none; } }
@keyframes steam { 0% { opacity: 0; stroke-dashoffset: .38; transform: translateY(6px); } 25% { opacity: .5; } 80% { opacity: .35; } 100% { opacity: 0; stroke-dashoffset: -1; transform: translateY(-14px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 20% { opacity: 1; transform: scale(1.1) rotate(45deg); } 40% { opacity: 0; transform: scale(.5) rotate(90deg); } }

/* The envelope: it flies in open, the quote slides into it, the flap folds shut; when the reply lands it's sent
   (a whoosh) and the check pops */
.obj.on .env { animation: flyin .75s cubic-bezier(.2,1.2,.4,1) both; }
.obj.on .letter { animation: letter .5s cubic-bezier(.5,0,.3,1.2) .55s both; }
.obj .flap { transform-origin: 50% 0%; }
.obj.on .flap { animation: flap .4s cubic-bezier(.5,0,.4,1.4) 1.05s both; }
.obj.on .flapback { animation: flapback .1s linear 1.05s forwards; }
.obj.hit .sendwrap { animation: send .55s cubic-bezier(.3,0,.3,1); }
.obj.hit .whoosh { animation: whoosh .6s ease-out; }
@keyframes flyin { 0% { opacity: 0; transform: translate(-90px, 40px) rotate(-16deg) scale(.8); } 60% { opacity: 1; transform: translate(6px, -4px) rotate(3deg); } 100% { transform: none; } }
@keyframes letter { 0% { transform: translateY(-78px); } 100% { transform: none; } }
@keyframes flap { 0% { transform: scaleY(0); } 100% { transform: none; } }
@keyframes flapback { to { opacity: 0; } }
@keyframes send { 35% { transform: translate(12px, -8px) rotate(2deg); } 100% { transform: none; } }
@keyframes whoosh { 0% { opacity: 0; transform: translateX(30px); } 30% { opacity: .5; } 100% { opacity: 0; transform: translateX(-20px); } }

/* The keys: they swing in on their ring and settle; the fob calls out to the car */
.obj .swing { transform-box: view-box; transform-origin: 70px 28px; }
.obj.on .swing { animation: swing 1.7s cubic-bezier(.3,.6,.4,1) both; }
.obj.on .led { animation: led 2.4s ease-in-out 1.6s infinite; }
.obj.on .sig .arc { animation: arc 2.4s ease-out 1.6s infinite; }
.obj.on .sig .a1 { animation-delay: 1.75s; } .obj.on .sig .a2 { animation-delay: 1.9s; }
@keyframes swing { 0% { opacity: 0; transform: rotate(48deg) translateY(-30px); } 18% { opacity: 1; transform: rotate(-26deg); } 38% { transform: rotate(16deg); } 58% { transform: rotate(-9deg); } 76% { transform: rotate(4deg); } 100% { transform: none; } }
@keyframes led { 0%, 30%, 100% { fill: #fff; } 8% { fill: #8f97e8; } }
@keyframes arc { 0% { opacity: 0; transform: scale(.7); } 15% { opacity: .9; } 45% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; } }

/* The calendar: it drops from its rings, the weeks fill in, the clock's hand spins; the booking circles the day */
.obj .cal { transform-origin: 50% 0%; }
.obj.on .cal { animation: hang .9s cubic-bezier(.3,1.4,.5,1) both; }
.obj.on .wk { animation: cells .35s ease-out both; }
.obj.on .w0 { animation-delay: .45s; } .obj.on .w1 { animation-delay: .53s; } .obj.on .w2 { animation-delay: .61s; } .obj.on .w3 { animation-delay: .69s; }
.obj .hh, .obj .mh { transform-box: view-box; transform-origin: 236px 206px; }
.obj.on .mh { animation: spin 1.6s cubic-bezier(.2,.7,.2,1) .3s both; }
.obj.on .hh { animation: spin2 1.6s cubic-bezier(.2,.7,.2,1) .3s both; }
.obj.on .clk { animation: pop .5s cubic-bezier(.2,1.6,.4,1) .2s both; }
@keyframes hang { 0% { opacity: 0; transform: translateY(-40px) scaleY(.3); } 60% { opacity: 1; transform: scaleY(1.05); } 100% { transform: none; } }
@keyframes cells { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { from { transform: rotate(-720deg); } }
@keyframes spin2 { from { transform: rotate(-60deg); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.15); } 100% { transform: none; } }

/* The suitcase: it lands, hops, and a plane takes off out of it on a dotted trail; the booking sends another */
/* the plane climbs out of the suitcase, passes behind the phone and lands by the ticket: to the right, or the left in Arabic */
[dir="rtl"] .suit { transform: scaleX(-1); }
.obj .plane { transform-box: view-box; transform-origin: 0 0; }
.obj .case { transform-origin: 50% 100%; }
.obj.on .case { animation: drop .8s cubic-bezier(.3,1.3,.5,1) both, hop .5s cubic-bezier(.3,0,.3,1) .85s; }
.obj.on .puff { animation: puff .8s ease-out .85s; }
.obj.on .plane { animation: fly 2.6s linear .9s both; }
.obj .trail { opacity: 0; }
.obj .trailmask { stroke-dasharray: 1; stroke-dashoffset: 1; }
.obj.on .trail { animation: trail 3.8s ease .9s both; }
.obj.on .trailmask { animation: draw 2.6s linear .9s both; }
.obj.hit .plane { animation: fly2 2.6s linear .1s both; }
.obj.hit .trail { animation: trail2 3.8s ease .1s both; }
.obj.hit .trailmask { animation: draw2 2.6s linear .1s both; }
.obj.hit .puff { animation: puff2 .8s ease-out .05s; }
.obj.hit .case { animation: hop2 .5s cubic-bezier(.3,0,.3,1); }
@keyframes hop { 40% { transform: translateY(-10px) scale(.97, 1.04); } 70% { transform: translateY(2px) scale(1.04, .96); } }
@keyframes hop2 { 40% { transform: translateY(-10px) scale(.97, 1.04); } 70% { transform: translateY(2px) scale(1.04, .96); } }
@keyframes puff { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8) translateY(-10px); } }
@keyframes puff2 { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8) translateY(-10px); } }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(-80deg) scale(.3); }
  6% { opacity: 1; }
  20% { transform: translate(55.8px, -99px) rotate(-45deg) scale(1.05); }
  40% { transform: translate(185.1px, -184.5px) rotate(-24deg) scale(1.3); }
  60% { transform: translate(384.5px, -245.5px) rotate(-11deg) scale(1.45); }
  80% { opacity: 1; transform: translate(650.6px, -271px) rotate(-1deg) scale(1.5); }
  100% { opacity: 0; transform: translate(980px, -250px) rotate(8deg) scale(1.5); } }
@keyframes fly2 {
  0% { opacity: 0; transform: translate(0, 0) rotate(-80deg) scale(.3); }
  6% { opacity: 1; }
  20% { transform: translate(55.8px, -99px) rotate(-45deg) scale(1.05); }
  40% { transform: translate(185.1px, -184.5px) rotate(-24deg) scale(1.3); }
  60% { transform: translate(384.5px, -245.5px) rotate(-11deg) scale(1.45); }
  80% { opacity: 1; transform: translate(650.6px, -271px) rotate(-1deg) scale(1.5); }
  100% { opacity: 0; transform: translate(980px, -250px) rotate(8deg) scale(1.5); } }
@keyframes trail { 0% { opacity: .55; } 60% { opacity: .55; } 100% { opacity: 0; } }
@keyframes trail2 { 0% { opacity: .55; } 60% { opacity: .55; } 100% { opacity: 0; } }
@keyframes draw2 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* The ticket: it slides in, the scanner sweeps the barcode, the little plane flies AMM to DXB; the booking stamps it */
.obj.on .tk { animation: slidein .8s cubic-bezier(.2,1.2,.4,1) both; }
.obj .scan { opacity: 0; transform-box: view-box; transform-origin: 0 0; }
.obj.on .scan { animation: scan 2.6s ease-in-out .9s infinite; }
.obj .mini { transform-box: view-box; transform-origin: 0 0; }
.obj.on .mini { animation: mini 3s ease-in-out .6s infinite; }
@keyframes slidein { 0% { opacity: 0; transform: translateX(80px) rotate(10deg); } 60% { opacity: 1; transform: translateX(-6px) rotate(-1deg); } 100% { transform: none; } }
@keyframes scan { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: .9; } 50% { opacity: .9; transform: translateX(158px); } 60%, 100% { opacity: 0; transform: translateX(158px); } }
@keyframes mini { 0% { opacity: 0; transform: translateX(-12px); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(26px); } }

/* ============ The apps it connects to ============ */
.apps { position: relative; padding: 120px 0 110px; background: linear-gradient(180deg, var(--soft) 0%, #fff 30%, #fff 70%, var(--soft) 100%); overflow: hidden; }
.apps-head { text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--blue); background: var(--tint); border-radius: 999px; padding: 6px 14px; }
.apps h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-top: 18px; }
[dir="rtl"] .apps h2 { letter-spacing: 0; line-height: 1.2; }
.apps h2 .blue { color: var(--blue); }
.apps .lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin-top: 18px; }

.orbit { position: relative; height: 520px; margin: 40px auto 0; max-width: 1180px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: rgba(44,53,146,.22); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.5,0,.3,1); }
.orbit.in .wire { stroke-dashoffset: 0; }
.pulse { fill: var(--blue); opacity: 0; transition: opacity .6s 1.6s; }
.orbit.in .pulse { opacity: .85; }
.hub { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; z-index: 2; transform: scale(0); transition: transform .7s cubic-bezier(.2,1.6,.4,1) .1s; }
.orbit.in .hub { transform: none; }
.hub img { position: relative; width: 100%; height: 100%; border-radius: 30px; box-shadow: 0 24px 44px -18px rgba(44,53,146,.6), 0 0 0 6px #fff; }
.hub .halo { position: absolute; inset: -18px; border-radius: 44px; background: rgba(44,53,146,.10); animation: breathe 3.2s ease-in-out infinite; }
.hub .halo.two { inset: -40px; border-radius: 60px; background: rgba(44,53,146,.05); animation-delay: .5s; }
.hub .ring { position: absolute; inset: 0; border-radius: 30px; border: 3px solid var(--blue); opacity: 0; }
.orbit.in .hub .ring { animation: hubring 1s cubic-bezier(.2,.7,.3,1) .5s; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .6; } }
@keyframes hubring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.2); border-width: 0; } }

.node { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; translate: -50% -32px; opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(.3); transition: transform .9s cubic-bezier(.2,1.25,.35,1), opacity .4s; }
.orbit.in .node { opacity: 1; transform: none; }
.node .tile { animation: bob 5s ease-in-out infinite; }
.node:nth-child(odd) .tile { animation-delay: -2.5s; }
.node .nm { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; background: rgba(255,255,255,.9); padding: 2px 10px; border-radius: 999px; }
.tile { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 0 var(--line), 0 14px 30px -14px rgba(24,26,36,.35); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.tile img { width: 32px; height: 32px; }
.node:hover .tile { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 4px rgba(44,53,146,.12), 0 18px 34px -14px rgba(44,53,146,.45); }
@keyframes bob { 50% { translate: 0 -6px; } }

.applist { list-style: none; padding: 0; margin: 56px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.2,1,.3,1), border-color .2s, box-shadow .2s; }
.applist.in .card { opacity: 1; transform: none; }
.card:hover { border-color: rgba(44,53,146,.35); box-shadow: 0 16px 30px -20px rgba(44,53,146,.5); }
.card .tile { width: 48px; height: 48px; border-radius: 14px; flex: none; box-shadow: none; }
.card .tile img { width: 26px; height: 26px; }
.card .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card b { font-size: 16px; }
.card .tx span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.apps-go { display: flex; flex-direction: column; align-items: center; margin-top: 48px; }
.apps-foot { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 860px) {
  .apps { padding: 84px 0 80px; }
  .orbit { height: 380px; }
  .node .nm { display: none; }
  .tile { width: 52px; height: 52px; border-radius: 16px; }
  .tile img { width: 26px; height: 26px; }
  .node { translate: -50% -50%; }
  .hub { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .hub img { border-radius: 24px; }
}
html.still .orbit .node, html.still .card { opacity: 1; transform: none; }
html.still .wire { stroke-dashoffset: 0; }
html.still .hub { transform: none; }
