/* Awanex inner pages: motion graphics (Nov 25, Sir: "add motion graphics to the pages, some animations").
   Built from real components, adapted to black / chrome / crimson (originals in ../sources-nov25):
   - Blur Text (React Bits, MIT + Commons Clause): headline words rise out of a blur, one after another.
   - Shiny Text (React Bits): one light sweep over the chrome words once they land.
   - Border Beam (Magic UI, MIT): a light that travels around the main glass panels.
   - Number Ticker (Magic UI, MIT): prices count up when they come into view.
   Plus GSAP ScrollTrigger scenes: phones that turn to face you, lines that draw downward, ticks that draw,
   and the red line on each page's last screen. (No hero rings at the end: Sir, Nov 22.)
   Everything only runs when html has .mo (GSAP loaded and the visitor has not asked for less motion). */

/* headline words */
.mo .mw { display: inline-block; will-change: transform, filter, opacity; }
.mo .chrome-t.chrome-split { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.chrome-w { /* each chrome word carries the chrome and, on top, the shine band (Shiny Text: 120deg, 40% wide) */
  background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 70%),
                    linear-gradient(180deg, #FFFFFF 0%, #D8DBDE 40%, #6E7277 58%, #C9CCD0 76%, #F2F3F4 100%);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; background-position: 150% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.chrome-w.shine { transition: background-position 2s cubic-bezier(.37, 0, .63, 1); background-position: -50% 0, 0 0; }

/* ticks draw themselves, one after another */
.mo .ticks li, .mo .vs-row { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.mo .ticks li::before, .mo .vs-row .y::before { clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 250ms); }
.mo .tk-on li, .mo .vs.tk-on .vs-row { opacity: 1; transform: none; }
.mo .tk-on li::before, .mo .vs.tk-on .vs-row .y::before { clip-path: inset(0 0 0 0); }
.mo .ticks.rv li, .mo .vs.rv .vs-row { transition-delay: calc(var(--i, 0) * 90ms + 200ms); }

.glass-p { position: relative; } /* the beam and glare hug the box, not the whole screen */
/* Border Beam (Magic UI): a 50px light that travels along the border at an even speed */
.beam { position: absolute; inset: 0; z-index: 3; border-radius: inherit; border: 1.5px solid transparent; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; opacity: 0; transition: opacity .6s var(--ease); }
.beam.on { opacity: 1; }
.beam-dot { position: absolute; width: 50px; aspect-ratio: 1; offset-path: rect(0 auto auto 0 round 28px); offset-distance: 0%;
  background: linear-gradient(to left, #DC143C, #D8DBDE, rgba(216,219,222,0)); }
.beam.loop .beam-dot { animation: awx-beam 6s linear infinite; }
.beam.lap .beam-dot { animation: awx-beam 3.2s cubic-bezier(.45, 0, .2, 1) 1 forwards; }
@keyframes awx-beam { to { offset-distance: 100%; } }

/* glass catches the light where the mouse is (laptops only) */
.glare { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.075), rgba(255,255,255,0) 60%); }
@media (hover: hover) and (pointer: fine) { .glass-p:hover > .glare { opacity: 1; } }

/* How it works: the step strip line draws downward, icons light up in turn */
.mo .hstrip::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1) .2s; }
.mo .hstrip.on::before { transform: scaleY(1); }
.mo .hstrip li { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 380ms + 250ms); }
.mo .hstrip.on li { opacity: 1; transform: none; }
.mo .hstrip .hs-ic { transition: box-shadow .9s var(--ease); transition-delay: calc(var(--i) * 380ms + 500ms); }
.mo .hstrip.on .hs-ic { box-shadow: inset 0 0 0 1px rgba(216,219,222,.22), 0 0 28px rgba(220,20,60,.28); }

/* Book a call: "What happens next" is joined by a line drawing down, each dot lights as it arrives */
.mo .next ol { position: relative; }
.mo .next ol::before { content: ""; position: absolute; left: 8px; top: 13px; bottom: var(--last, 40px); width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #D8DBDE, #DC143C); opacity: .55; transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .3s; }
.mo .next.on ol::before { transform: scaleY(1); }
.mo .next li::before { z-index: 1; }

/* the thank-you tick draws itself */
.done-tick { display: block; width: 64px; height: 64px; margin: 0 0 24px; }
.done-tick circle { fill: none; stroke: rgba(216,219,222,.35); stroke-width: 2; }
.done-tick path { fill: none; stroke: #DC143C; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(220,20,60,.6)); }

/* the last screen: the red line draws out from the middle */
@media (max-width: 820px) { .pg-end .pg-line { margin-top: 48px; } }
.mo .pg-line { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.mo .pg-line.on { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .beam { display: none; }
  .chrome-w.shine { transition: none; }
}

/* each page ends with its own small moment (Nov 25): Websites = a call coming in, Pricing = the total, How it works = the three steps */
.end-mo { display: flex; justify-content: center; margin: 0 auto 44px; }
.end-mo ~ .pg-line { display: none; }
.end-pill { display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; border-radius: 999px; text-align: left;
  background: radial-gradient(120% 160% at 85% 0%, #2E3034 0%, #0B0C0D 72%);
  box-shadow: inset 0 0 0 1px rgba(216,219,222,.18), inset 0 1px 0 rgba(255,255,255,.22), 0 30px 60px rgba(0,0,0,.6); }
.end-pill b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.end-pill small { display: block; margin-top: 2px; font-size: 14px; color: rgba(255,255,255,.6); }
.call-ic { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #DC143C; color: #fff;
  box-shadow: 0 0 22px rgba(220,20,60,.55); }
.call-ic svg { width: 22px; height: 22px; }
.call-ic::before, .call-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(220,20,60,.6); opacity: 0; }
.mo .end-mo.on .call-ic::before { animation: awx-ring 2.8s cubic-bezier(.2, .8, .2, 1) infinite; }
.mo .end-mo.on .call-ic::after { animation: awx-ring 2.8s cubic-bezier(.2, .8, .2, 1) 1.4s infinite; }
@keyframes awx-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.end-sum { display: inline-flex; align-items: baseline; gap: 14px; padding: 18px 30px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.end-sum small { display: inline; margin: 0 0 0 6px; font-size: .4em; letter-spacing: 0; }
.end-sum i { font-style: normal; color: #DC143C; font-weight: 600; }
.end-steps { position: relative; display: flex; gap: clamp(36px, 7vw, 88px); list-style: none; margin: 0; padding: 0; }
.end-steps::before { content: ""; position: absolute; left: 36px; right: 36px; top: 35px; height: 2px; background: linear-gradient(90deg, #D8DBDE, #DC143C); opacity: .5; }
.end-steps li { position: relative; display: grid; justify-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); }
.end-steps .hs-ic { display: grid; place-items: center; width: 72px; height: 72px; padding: 18px; border-radius: 20px; color: #DC143C;
  background: radial-gradient(120% 140% at 85% 0%, #2E3034 0%, #0B0C0D 72%); box-shadow: inset 0 0 0 1px rgba(216,219,222,.16), inset 0 1px 0 rgba(255,255,255,.2); }
.end-steps .hs-ic svg { display: block; width: 100%; height: 100%; }
/* how they arrive (only with motion on) */
.mo .end-mo .end-pill { opacity: 0; transform: translateY(-24px) scale(.96); transition: opacity .9s var(--ease), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.mo .end-mo.on .end-pill { opacity: 1; transform: none; }
.mo .end-sum span, .mo .end-sum i { opacity: 0; transform: translateY(12px); display: inline-block; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 300ms + 400ms); }
.mo .end-mo.on .end-sum span, .mo .end-mo.on .end-sum i { opacity: 1; transform: none; }
.mo .end-steps::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s cubic-bezier(.16, 1, .3, 1) .3s; }
.mo .end-mo.on .end-steps::before { transform: scaleX(1); }
.mo .end-steps li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 500ms + 200ms); }
.mo .end-mo.on .end-steps li { opacity: 1; transform: none; }
.mo .end-steps .hs-ic { transition: box-shadow 1s var(--ease); transition-delay: calc(var(--i) * 500ms + 600ms); }
.mo .end-mo.on .end-steps .hs-ic { box-shadow: inset 0 0 0 1px rgba(216,219,222,.22), 0 0 28px rgba(220,20,60,.3); }
@media (max-width: 820px) { .end-steps { gap: 28px; } .end-steps .hs-ic { width: 60px; height: 60px; padding: 15px; } .end-steps::before { top: 29px; left: 30px; right: 30px; } }
@media (prefers-reduced-motion: reduce) { .end-mo .call-ic::before, .end-mo .call-ic::after { animation: none; } }
@media (max-width: 820px) { .pg-end.scr { min-height: 0; padding-top: 110px; padding-bottom: 64px; } } /* phone: the end screen plus footer fits, so the end moment never slides under the nav */

/* Pricing end: the three plans arrive as glass chips, one after another, each with a small crimson light */
.end-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.end-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.end-chip i { width: 8px; height: 8px; border-radius: 50%; background: #DC143C; box-shadow: 0 0 10px rgba(220,20,60,.8); }
.mo .end-chip { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .8s var(--ease), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 350ms + 200ms); }
.mo .end-mo.on .end-chip { opacity: 1; transform: none; }
@media (max-width: 820px) { .end-chips { gap: 8px; } .end-chip { padding: 9px 14px; font-size: 14px; gap: 8px; } .end-mo { margin-bottom: 32px; } .pg-end.scr { padding-bottom: 40px; } }

/* Nov 26, 11:35 PM: iPhone Safari was slow on Websites + How it works. On touch phones: no big blurred drop-shadows
   on the phone pictures (redrawn on every scroll), no per-word layers, no blur glow on small icons. Laptop unchanged. */
@media (max-width: 820px) and (hover: none) and (pointer: coarse) {
  .hero-ph, .anat-ph, .step-ph, .step-r:last-child .step-ph { filter: none; }
  .addon-ic svg, .hs-ic svg { filter: none; }
  .mo .mw, .scr { will-change: auto; }
}
