/* ---- base.css ---- */
/* Shared structure for both landing options. Colors and fonts come from a.css / b.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-strong) var(--bg); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 12px; }

:root { --gutter: clamp(18px, 4.5vw, 44px); --max: 1160px; --ease: cubic-bezier(.16, 1, .3, 1); }
main, .nav, .footer { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
section { padding-block: clamp(56px, 9vw, 112px) 0; }
h2 { font-size: clamp(28px, 4vw, 44px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand img { border-radius: 11px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 15.5px; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius-btn); font: 600 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--surface); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 6vw, 80px); padding-block: clamp(40px, 7vw, 88px) 0; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.2; }
.accent { color: var(--accent-text); }
.lead { margin-top: 22px; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 1.7vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { margin-top: 26px; color: var(--ink-2); font-size: 15px; }
.hero-visual { display: grid; place-items: center; }

/* Real app screenshots, cropped to the phone body with CSS (no image editing). */
.shot { position: relative; overflow: hidden; direction: ltr; width: min(100%, var(--shot-w, 340px)); aspect-ratio: var(--ar, 1033 / 2235); border-radius: 9% / 4.2%; background: var(--surface); box-shadow: var(--shadow); }
.shot img { position: absolute; left: var(--x, -13.75%); top: var(--y, -21.48%); width: 127.78%; max-width: none; height: auto; }
.hero-shot { --shot-w: min(340px, 78vw); }
.hero-shot .s-ready { opacity: 0; animation: swap-ready 9s var(--ease) infinite; }
@keyframes swap-ready { 0%, 38% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }
.alerts-shot { --ar: 1033 / 2230; --y: -27.35%; --shot-w: min(330px, 78vw); }

/* How: numbered sequence, no cards */
.how h2 { max-width: 16em; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); counter-reset: none; }
.steps li { display: grid; gap: 14px; padding-top: 22px; border-top: 2px solid var(--ink); }
.num { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--accent-text); font-weight: var(--display-weight); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--ink-2); margin-top: 6px; }

/* Features: one real screenshot and a plain list */
.features { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.features-shot { display: grid; place-items: center; }
.feature-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.feature-list li { display: grid; grid-template-columns: 30px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list svg { width: 28px; height: 28px; margin-top: 4px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-list h3 { font-size: 20px; }
.feature-list p { margin-top: 4px; color: var(--ink-2); }
.more { margin-top: 22px; color: var(--ink-2); font-size: 15px; }

/* Customer voice */
.voice blockquote { margin: 0; max-width: 820px; margin-inline: auto; text-align: center; }
.voice p { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(26px, 3.6vw, 40px); line-height: 1.5; }
.voice footer { margin-top: 18px; color: var(--ink-2); font-size: 15px; }

/* Compare */
.compare h2 { max-width: 16em; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.side { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side header { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.side header img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.side header small { color: var(--ink-2); font-size: 14px; }
.side h3 { font-size: 26px; }
.side dl { margin: 6px 0 0; }
.side dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.side dl > div:last-child { border-bottom: 0; }
.side dt { color: var(--ink-2); font-size: 15px; }
.side dd { margin: 0; font-weight: 500; }
.side.legacy dd::before { content: "×  "; color: var(--no); font-weight: 700; }
.side.nidaa { border-color: var(--accent-text); border-width: 2px; }
.side.nidaa dd::before { content: "✓  "; color: var(--accent-text); font-weight: 700; }

/* CTA + footer */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 9vw, 112px); padding: clamp(28px, 4.5vw, 52px); border-radius: var(--radius); background: var(--cta-bg); color: var(--cta-ink); }
.cta h2 { font-size: clamp(24px, 3.2vw, 36px); }
.cta p { margin-top: 8px; opacity: .88; }
.cta .btn { flex-shrink: 0; background: var(--cta-btn-bg); color: var(--cta-btn-ink); }
.cta .btn:hover { background: var(--cta-btn-bg-hover); }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 64px; padding: 26px 0 44px; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.footer-links a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .features { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .features-shot { order: 2; }
  .comparison { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 520px) {
  .actions .btn { flex: 1 1 100%; }
  .side dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-shot .s-ready { animation: none; opacity: 1; }
  .btn { transition: none; }
}

/* ---- c.css ---- */
/* Option C: Nidaa's own colors, exactly as the live site uses them (from static/nidaa-glass.css):
   deep teal #071A18 / #0A2F2B, brand #0F766E, bright mint #5FD6BC, text #F3F7F6.
   Atmosphere kept from the current landing; structure, real screenshots and motion are the new work. */
:root {
  --bg: #071A18;
  --surface: rgba(255, 255, 255, .055);
  --ink: #F3F7F6;
  --ink-2: rgba(243, 247, 246, .78);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: #5FD6BC;
  --accent-ink: #0B0F0E;
  --accent-text: #5FD6BC;
  --focus: #5FD6BC;
  --no: #F5917F;
  --btn-bg: #5FD6BC;
  --btn-ink: #0B0F0E;
  --btn-bg-hover: #86E6D1;
  --cta-bg: linear-gradient(135deg, rgba(15, 118, 110, .75), rgba(10, 47, 43, .9));
  --cta-ink: #F3F7F6;
  --cta-btn-bg: #5FD6BC;
  --cta-btn-ink: #0B0F0E;
  --cta-btn-bg-hover: #86E6D1;
  --display: "Readex Pro", system-ui, sans-serif;
  --display-weight: 600;
  --body: "Readex Pro", system-ui, sans-serif;
  --radius: 24px;
  --radius-btn: 16px;
  --shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 36px 80px -14px rgba(0, 0, 0, .7);
}
body {
  background:
    radial-gradient(1200px 700px at 110% -10%, rgba(15, 118, 110, .55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(95, 214, 188, .2), transparent 60%),
    linear-gradient(160deg, #0A2F2B, #071A18 55%) fixed;
  background-color: #071A18;
}
html { scrollbar-color: rgba(95, 214, 188, .45) #071A18; }

/* Nav: translucent bar over the gradient */
/* A floating rounded bar with breathing room inside, like the live site's glass nav */
.theme-c .nav { top: 12px; margin-top: 12px; padding: 10px 12px 10px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; background: rgba(10, 47, 43, .62); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.theme-c .nav-end { gap: 12px; }
@media (max-width: 520px) { .theme-c .nav { padding: 8px 8px 8px 14px; border-radius: 18px; } }
html { scroll-padding-top: 100px; }
.nav-links a:hover { background: rgba(255, 255, 255, .08); }

/* Primary button keeps the mint gradient and glow of the live site */
.btn-primary { background: linear-gradient(135deg, #5FD6BC, #4FC4AB); box-shadow: 0 10px 26px rgba(95, 214, 188, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { background: #86E6D1; }
.btn-quiet { border-color: rgba(255, 255, 255, .28); }
.btn-quiet:hover { background: rgba(255, 255, 255, .08); }

/* Hero: mint halo behind the phone (the live site's halo, kept still) */
.hero-visual::before { content: ""; position: absolute; width: min(480px, 96vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(95, 214, 188, .26), transparent 66%); z-index: 0; }

/* Surfaces */
.side { background: rgba(255, 255, 255, .05); }
.side.nidaa { background: linear-gradient(165deg, rgba(95, 214, 188, .12), rgba(255, 255, 255, .04)); border-color: rgba(95, 214, 188, .55); }
.shot { box-shadow: var(--shadow); }
.steps li, .feature-list li { border-color: rgba(255, 255, 255, .16); }
.num { color: #5FD6BC; }
.cta { background: var(--cta-bg); border: 1px solid rgba(95, 214, 188, .3); }
.cta .btn { background: linear-gradient(135deg, #5FD6BC, #4FC4AB); }

/* Kinetic strip: a calligraphic Kufi face, no separators, edges fade out */
.theme-c .mx-marquee { border-block: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.theme-c .mq-track { font-family: "Noto Kufi Arabic", var(--display); font-weight: 800; gap: .9em; line-height: 1.5; }
.theme-c .mq-track .f { color: #F3F7F6; }
.theme-c .mq-track .o { color: #5FD6BC; }

/* The brand lockup on the intro and the sticky bar */
.brand { color: #F3F7F6; }
.skip { background: #5FD6BC; color: #0B0F0E; }

/* ---- motion.css ---- */
/* Motion layer. Concept: "the call" (موجة النداء). Sound rings leave the phone the moment the order is ready.
   Everything hidden for animation is gated by .m-ready, which motion.js adds. No script = fully visible page.
   Only transform, opacity, clip-path and small bounded filters are animated. */

/* clip (not hidden) so the sticky story keeps working while rings can expand past the viewport */
html, body { overflow-x: clip; }

/* ---------- Rings (the motif) ---------- */
.ring { position: absolute; left: 50%; top: 50%; width: var(--ring-size, 440px); aspect-ratio: 1; margin: calc(var(--ring-size, 440px) / -2) 0 0 calc(var(--ring-size, 440px) / -2); border: 2px solid var(--accent-text); border-radius: 50%; opacity: 0; transform: scale(.55); pointer-events: none; z-index: 0; }
.ring.r2 { border-width: 1.5px; }
.ring.r3 { border-width: 1px; }
.hero-visual { position: relative; --ring-size: min(520px, 92vw); }
.tilt { position: relative; z-index: 1; width: min(340px, 78vw); transform: perspective(1100px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s var(--ease); }
.tilt .hero-shot { width: 100%; }
.hero-visual .ring { animation: ring-hero 9s var(--ease) infinite; }
.hero-visual .r2 { animation-delay: .35s; }
.hero-visual .r3 { animation-delay: .7s; }
@keyframes ring-hero {
  0%, 44% { opacity: 0; transform: scale(.55); }
  46% { opacity: .6; }
  80%, 100% { opacity: 0; transform: scale(1.9); }
}
.hero.is-paused .ring, .hero.is-paused .s-ready { animation-play-state: paused; }

/* ---------- Hero entrance (headline words, then the rest, then the phone) ---------- */
.m-ready .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(8px); }
.m-ready .hero.is-in h1 .w { animation: word-in .85s var(--ease) both; animation-delay: calc(var(--i) * 95ms + 120ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
.m-ready .hero-copy > :not(h1) { opacity: 0; transform: translateY(18px); }
.m-ready .hero.is-in .hero-copy > :not(h1) { animation: rise .8s var(--ease) both; }
.m-ready .hero.is-in .hero-copy > :nth-child(2) { animation-delay: .75s; }
.m-ready .hero.is-in .hero-copy > :nth-child(3) { animation-delay: .9s; }
.m-ready .hero.is-in .hero-copy > :nth-child(4) { animation-delay: 1.05s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.m-ready .hero .hero-shot { opacity: 0; transform: translateY(60px) scale(.94); }
.m-ready .hero.is-in .hero-shot { animation: phone-in 1.1s var(--ease) .35s both; }
@keyframes phone-in { to { opacity: 1; transform: none; } }

/* ---------- Scroll story ---------- */
.story { height: 330vh; padding-block: clamp(36px, 6vw, 72px) 0; }
.story-pin { position: sticky; top: 92px; height: calc(100dvh - 92px); min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 6vw, 80px); }
.story .steps { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
.story .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line-strong); opacity: .38; transition: opacity .5s var(--ease); }
.story .steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.story .steps li.is-active { opacity: 1; }
.story .num { font-size: 40px; transition: transform .5s var(--ease); transform-origin: right center; }
.story .steps li.is-active .num { transform: scale(1.15); }
.story .steps h3 { font-size: 21px; }
.story .steps p { margin-top: 2px; font-size: 16px; }
.story-progress { height: 3px; margin-top: 26px; border-radius: 3px; background: var(--line); overflow: hidden; }
.story-progress i { display: block; height: 100%; background: var(--accent-text); transform-origin: right center; transform: scaleX(var(--p, 0)); }

.story-stage { --shot-w: min(340px, calc((100dvh - 190px) * .462), 70vw); --ring-size: calc(var(--shot-w) * 1.5); position: relative; height: 100%; display: grid; place-items: center; }
.story-shot { position: relative; z-index: 1; }
.story-shot .layer { position: absolute; left: var(--x, -13.75%); top: var(--y, -21.48%); width: 127.78%; max-width: none; height: auto; opacity: 0; transition: opacity .6s var(--ease); }
.story-shot .l-scan { inset: 0; left: 0; top: 0; width: 100%; height: 100%; opacity: 1; }
.story-shot .l-ready { clip-path: circle(0% at 50% 56%); opacity: 1; transition: clip-path 1s var(--ease); }
.story[data-stage="1"] .l-scan, .story[data-stage="2"] .l-scan { opacity: 0; }
.story[data-stage="1"] .l-prep, .story[data-stage="2"] .l-prep { opacity: 1; }
.story[data-stage="2"] .l-ready { clip-path: circle(150% at 50% 56%); }

.scan-view { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 30px; background: linear-gradient(#241911, #0B0807); color: #fff; }
.scan-frame { position: relative; width: 62%; aspect-ratio: 1; padding: 7%; background: #fff; border-radius: 12px; outline: 3px solid rgba(255, 255, 255, .92); outline-offset: 11px; overflow: hidden; }
.shot .scan-frame img { position: static; width: 100%; max-width: 100%; height: auto; }
.scan-line { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 62%, color-mix(in srgb, var(--accent) 38%, transparent) 94%, var(--accent) 100%); transform: translateY(-100%); animation: scan 2.3s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(0); } }
.story:not([data-stage="0"]) .scan-line { animation-play-state: paused; }
.scan-hint { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }

.banner { position: absolute; z-index: 2; left: 50%; top: calc(50% - var(--shot-w) * .86); width: min(360px, 94%); display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(247, 247, 245, .96); color: #1B1B1B; box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 22px 44px -8px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, -34px) scale(.96); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.banner img { border-radius: 9px; }
.banner b { display: block; font-size: 15px; line-height: 1.4; }
.banner span { display: block; font-size: 13px; line-height: 1.5; color: #4A4A48; }
.banner time { align-self: start; font-size: 12px; color: #5A5A58; }
.story[data-stage="2"] .banner { opacity: 1; transform: translate(-50%, 0); transition-delay: .55s; }

.story .ring { --ring-size: calc(var(--shot-w) * 1.5); }
.story[data-stage="2"] .ring { animation: ring-story 2.9s var(--ease) infinite; }
.story[data-stage="2"] .r2 { animation-delay: .45s; }
.story[data-stage="2"] .r3 { animation-delay: .9s; }
@keyframes ring-story { 0% { opacity: .7; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.8); } }
.story.is-paused .ring { animation-play-state: paused; }

/* ---------- Section reveals (each section enters differently) ---------- */
.m-ready [data-in] { opacity: 0; }
.m-ready [data-in="rise"] { transform: translateY(26px); }
.m-ready [data-in="row"] { transform: translateX(30px); }
.m-ready [data-in="wipe"] { opacity: 1; clip-path: inset(0 0 0 100% round 22px); }
.m-ready [data-in="pop"] { transform: scale(.94); }
.m-ready [data-in].in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.m-ready [data-in="wipe"].in { clip-path: inset(0 0 0 0 round 22px); transition: clip-path 1.15s var(--ease); transition-delay: var(--d, 0ms); }

.m-ready .feature-list svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.m-ready .feature-list li.in svg * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) calc(var(--d, 0ms) + 200ms); }
.m-ready .side dd { transition-property: opacity, transform; }

/* CTA: one ring leaves the button, the same call motif */
.cta .btn { position: relative; }
.btn-ring { position: absolute; inset: 0; border: 2px solid var(--cta-btn-bg); border-radius: inherit; opacity: 0; pointer-events: none; }
.cta.burst .btn-ring { animation: btn-ring 1.6s var(--ease) both; }
.cta.burst .btn-ring + .btn-ring { animation-delay: .25s; }
@keyframes btn-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5, 1.9); } }

/* ---------- Mobile and reduced motion ---------- */
@media (max-width: 900px) {
  .story { height: 280vh; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 12px; top: 92px; height: calc(100dvh - 92px); padding-top: 18px; }
  .story-text h2 { font-size: 24px; }
  .story .steps { margin-top: 12px; }
  .story .steps li { display: none; padding: 10px 0; }
  .story .steps li.is-active { display: grid; opacity: 1; border-bottom: 0; }
  .story .num { font-size: 32px; }
  .story-progress { margin-top: 12px; }
  .story-stage { --shot-w: min(260px, calc((100dvh - 330px) * .462), 62vw); }
  .banner { top: calc(50% - var(--shot-w) * .84); width: min(320px, 92%); }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .btn-ring { display: none; }
  .tilt { transition: none; transform: none; }
  .scan-line { animation: none; transform: translateY(-40%); }
  .story-shot .layer, .story-shot .l-ready { transition: opacity .25s linear; }
  .story-shot .l-ready { clip-path: none; opacity: 0; }
  .story[data-stage="2"] .l-ready { opacity: 1; }
  .banner { transform: translate(-50%, 0); transition: opacity .25s linear; }
}

/* ---- motion-strong.css ---- */
/* Strong layer, stacked on motion.css. Same concept ("the call"), turned up.
   Only active when the visitor has not asked for reduced motion. Still transform / opacity / clip-path only. */
@media (prefers-reduced-motion: no-preference) {
  .mx { --spring: linear(0, .22 5%, .68 12%, 1.07 22%, 1.1 29%, .98 43%, 1.015 57%, 1); --flood: color-mix(in srgb, var(--accent) 15%, var(--bg)); }

  /* Page progress line */
  .mx-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--accent-text); transform-origin: right center; transform: scaleX(var(--sp, 0)); pointer-events: none; }

  /* Intro: the mark calls, then the dark iris closes to reveal the page */
  .intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--cta-bg); clip-path: circle(150% at 50% 50%); animation: iris .95s var(--ease) 1.05s forwards; pointer-events: none; }
  .intro .mark { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
  .intro img { width: 88px; height: 88px; border-radius: 24px; animation: mark-in .8s var(--ease) both; }
  .intro i { position: absolute; inset: 0; border: 2px solid var(--cta-ink); border-radius: 50%; opacity: 0; animation: intro-ring 1.15s var(--ease) .25s 2 both; }
  .intro i + i { animation-delay: .5s; }
  @keyframes mark-in { from { opacity: 0; transform: scale(.6); } }
  @keyframes intro-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(5.5); } }
  @keyframes iris { to { clip-path: circle(0% at 50% 50%); visibility: hidden; } }

  /* Hero reacts to scrolling */
  .mx .hero-visual { transform: translateY(calc(var(--hy, 0) * -70px)) scale(calc(1 - var(--hy, 0) * .1)) rotate(calc(var(--hy, 0) * 5deg)); }
  .mx .hero h1 { transform: translateY(calc(var(--hy, 0) * 42px)); }

  /* Headings: words arrive one by one */
  .mx h2 .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(6px); }
  .mx .in h2 .w, .mx h2.in .w { animation: word-in .85s var(--ease) both; animation-delay: calc(var(--i) * 75ms); }

  /* Kinetic strip: moves with scroll, never stops */
  .mx-marquee { overflow: hidden; width: 100vw; margin: clamp(52px, 8vw, 104px) calc(50% - 50vw) 0; padding-block: 4px; border-block: 1px solid var(--line-strong); }
  .mq-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; white-space: nowrap; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(56px, 11vw, 150px); line-height: 1.35; will-change: transform; }
  .mq-track .f { color: var(--ink); }
  .mq-track .o { color: var(--accent-text); }
  .mq-track .dot { flex: none; width: .34em; height: .34em; border-radius: 50%; border: .06em solid var(--ink-2); }

  /* Story: the phone turns in 3D, the room floods with color, the banner springs */
  .mx .story { position: relative; }
  .mx .story::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--flood); clip-path: circle(0% at 72% 55%); transition: clip-path 1.3s var(--ease); z-index: -1; pointer-events: none; }
  .mx .story[data-stage="2"]::before { clip-path: circle(160% at 72% 55%); }
  .mx .story-stage { perspective: 1300px; }
  .mx .story-shot { transform: rotateY(var(--ry3, -16deg)) rotateX(var(--rx3, 5deg)) scale(var(--sc, .96)); transition: transform 1.1s var(--ease); }
  .mx .story[data-stage="1"] .story-shot { --ry3: 9deg; --rx3: 2deg; --sc: 1; }
  .mx .story[data-stage="2"] .story-shot { --ry3: 0deg; --rx3: 0deg; --sc: 1.05; }
  .mx .story .ring { --ring-size: calc(var(--shot-w) * 2.2); }
  .mx .story[data-stage="2"] .ring { animation: ring-story-x 3.3s var(--ease) infinite; }
  .mx .story[data-stage="2"] .r2 { animation-delay: .5s; }
  .mx .story[data-stage="2"] .r3 { animation-delay: 1s; }
  .mx .story[data-stage="2"] .r4 { animation-delay: 1.5s; }
  .mx .story[data-stage="2"] .r5 { animation-delay: 2s; }
  @keyframes ring-story-x { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.3); } }
  .mx .banner { transform: translate(-50%, -90px) scale(.9); }
  .mx .story[data-stage="2"] .banner { transform: translate(-50%, 0); transition: opacity .4s var(--ease) .5s, transform 1.2s var(--spring) .5s; }
  .ping-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--shot-w) * 2.2); aspect-ratio: 1; margin: calc(var(--shot-w) * -1.1) 0 0 calc(var(--shot-w) * -1.1); border: 2px solid var(--accent-text); border-radius: 50%; pointer-events: none; animation: ring-story-x 2.2s var(--ease) both; }

  /* Sound button (appears when the order is ready; plays only on click) */
  .sound { position: absolute; z-index: 3; bottom: 1%; left: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent-text); background: var(--bg); color: var(--ink); font: 600 15px var(--body); cursor: pointer; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .4s var(--ease) .9s, transform .7s var(--ease) .9s, background-color .2s; }
  .sound svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sound:hover { background: var(--surface); }
  .story[data-stage="2"] .sound { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

  /* Compare: the old way fades back, nidaa steps forward as you scroll */
  .mx .side.legacy { opacity: calc(1 - var(--cp, 0) * .5); transform: translateY(calc(var(--cp, 0) * 8px)); }
  .mx .side.nidaa { transform: translateY(calc(var(--cp, 0) * -12px)) scale(calc(1 + var(--cp, 0) * .025)); }

  /* CTA: rings flood the card */
  .mx .cta { overflow: hidden; }
  .mx .cta > * { position: relative; z-index: 1; }
  .cring { position: absolute; z-index: 0; left: var(--cx, 20%); top: var(--cy, 50%); width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid var(--cta-ink); border-radius: 50%; opacity: 0; transform: scale(0); pointer-events: none; }
  .cta.burst .cring { animation: cring 2.4s var(--ease) both; }
  .cta.burst .cring:nth-of-type(2) { animation-delay: .3s; }
  .cta.burst .cring:nth-of-type(3) { animation-delay: .6s; }
  @keyframes cring { 0% { opacity: .5; transform: scale(0); } 100% { opacity: 0; transform: scale(14); } }

  @media (max-width: 900px) {
    .mx .story-shot { --ry3: -9deg; }
    .mx .story[data-stage="1"] .story-shot { --ry3: 6deg; }
    .sound { bottom: 14px; padding: 10px 18px; font-size: 14px; }
    .mx .story .ring { --ring-size: calc(var(--shot-w) * 1.9); }
  }
}

/* ---- motion-mix.css ---- */
/* Balanced build = motion.css + motion-strong.css, with the heavy parts turned down. Loaded last. */
@media (prefers-reduced-motion: no-preference) {
  .mix { --flood: color-mix(in srgb, var(--accent) 11%, var(--bg)); }

  /* Intro: shorter, one ring pass */
  .mix .intro { animation-duration: .75s; animation-delay: .6s; }
  .mix .intro i { animation-iteration-count: 1; }

  /* Hero follows the scroll, gently */
  .mix .hero-visual { transform: translateY(calc(var(--hy, 0) * -40px)) scale(calc(1 - var(--hy, 0) * .05)) rotate(calc(var(--hy, 0) * 2deg)); }
  .mix .hero h1 { transform: translateY(calc(var(--hy, 0) * 20px)); }

  /* Strip: smaller, so it punctuates instead of shouting */
  .mix .mq-track { font-size: clamp(34px, 5.5vw, 76px); }

  /* Story: softer turn, three rings */
  .mix .story-shot { --ry3: -9deg; --rx3: 3deg; --sc: .97; }
  .mix .story[data-stage="1"] .story-shot { --ry3: 5deg; --rx3: 1deg; --sc: 1; }
  .mix .story[data-stage="2"] .story-shot { --ry3: 0deg; --rx3: 0deg; --sc: 1.03; }
  .mix .story .ring { --ring-size: calc(var(--shot-w) * 1.8); }
  .mix .banner { transform: translate(-50%, -60px) scale(.94); }

  /* Compare: lighter scroll effect */
  .mix .side.legacy { opacity: calc(1 - var(--cp, 0) * .35); }
  .mix .side.nidaa { transform: translateY(calc(var(--cp, 0) * -8px)) scale(calc(1 + var(--cp, 0) * .015)); }
}

/* ---- production-only: venue login link in the nav ---- */
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-login { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-login:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
@media (max-width: 520px) { .nav-login { padding: 8px 8px; font-size: 14px; } .nav .brand span { display: none; } }
