/* studio.lymoontech.com — LyMoon Studio. Night ink from the channel banner,
   the moon's four colours, YoYo's paper and Atman's lamplight — with bounce. */
:root {
  --night: #1c1b19;
  --cream: #f4ead8;
  --mute: #b5ab9b;
  --blue: #4a97dc;
  --yellow: #f2b51f;
  --coral: #ec6a4f;
  --teal: #33ab9f;
  --paper: #f5eddc;
  --paper-ink: #3a2f27;
  --paper-mute: #75685a;
  --lamp: #e0a84a;
  --ember: #1a1311;
  --sans: "Outfit", "Cairo", system-ui, sans-serif;
  --pop: cubic-bezier(.2, 1.6, .4, 1);
  color-scheme: dark;
}
[lang="ar"] { --sans: "Cairo", "Outfit", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--cream); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* the wordmark: LyMoon's letters drop in, like the YoYo! title */
.wm { font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: .22em; }
.wm-ly { display: inline-flex; }
.wm b { font-weight: 700; display: inline-block; }
.wm-st { font-weight: 300; color: var(--cream); }
.wm.lg b { animation: drop .9s var(--pop) both; animation-delay: calc(var(--d) * 90ms + 150ms); }
.wm.lg .wm-st { animation: rise .8s ease-out .8s both; }
@keyframes drop { 0% { transform: translateY(-120%) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes rise { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(28, 27, 25, .86); backdrop-filter: blur(10px); }
.top-in { height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; transition: transform .6s var(--pop); }
.brand:hover img { transform: rotate(-200deg) scale(1.1); }
.wm.sm { font-size: 22px; }
.nav { display: flex; gap: 10px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--cream); font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--c); transition: background-color .2s, transform .2s var(--pop); }
.nav a:hover { background: var(--c); color: var(--night); transform: rotate(-3deg) scale(1.05); }
.lang { text-decoration: none; color: var(--mute); font-weight: 600; }
.lang:hover { color: var(--cream); }
.lang[lang="ar"] { font-family: "Cairo", sans-serif; font-size: 18px; }

/* hero */
.hero { position: relative; padding: 56px 0 90px; overflow: hidden; background: radial-gradient(900px 600px at 75% 30%, #2d2a22 0%, var(--night) 70%); }
.scraps { position: absolute; inset: 0; pointer-events: none; }
.scrap { position: absolute; width: calc(54px * var(--s)); opacity: .9; animation: drift 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.9s); }
.scrap svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
@keyframes drift { 0% { transform: translateY(0) rotate(-8deg); } 100% { transform: translateY(-22px) rotate(10deg); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 18px; }
.hero-mark { width: 104px; height: 104px; animation: spinIn 1.2s var(--pop) both, bob 4s ease-in-out 1.2s infinite; }
@keyframes spinIn { from { transform: rotate(-260deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-6deg); } }
.hero h1 { display: flex; flex-direction: column; gap: 0; font-weight: 700; }
.wm.lg { font-size: clamp(44px, 6.4vw, 84px); line-height: 1; }
.hero-ar { font: 800 clamp(24px, 3vw, 36px)/1.5 "Cairo", sans-serif; color: var(--yellow); animation: rise .8s ease-out 1s both; }
.punch { margin: 34px 0 0; font: 800 clamp(30px, 4.2vw, 54px)/1.12 var(--sans); letter-spacing: -.02em; }
[lang="ar"] .punch { letter-spacing: 0; line-height: 1.35; }
.pl { display: inline-block; animation: rise .7s ease-out both; }
.pl0 { animation-delay: 1.1s; } .pl1 { animation-delay: 1.25s; color: var(--coral); } .pl2 { animation-delay: 1.45s; } .pl3 { animation-delay: 1.6s; color: var(--lamp); }
.hero-lead { margin-top: 18px; font-size: 19px; color: var(--mute); animation: rise .7s ease-out 1.8s both; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: rise .7s ease-out 1.95s both; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font: 800 17px/1.2 var(--sans); text-decoration: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); transition: transform .2s var(--pop), box-shadow .2s; }
.btn:hover { transform: translateY(-3px) rotate(-2deg) scale(1.04); box-shadow: 0 9px 0 rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.btn-yoyo { background: var(--coral); color: #fff; }
.btn-atman { background: var(--lamp); color: var(--ember); }

/* the phone with the reel */
.hero-stage { position: relative; justify-self: center; padding: 20px 40px; }
.phone { position: relative; width: min(290px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 42px; background: #111; padding: 12px; box-shadow: 0 0 0 3px #3a362f, 0 30px 70px rgba(0, 0, 0, .55); transform: rotate(4deg); animation: phoneIn 1s var(--pop) .5s both; }
[dir="rtl"] .phone { transform: rotate(-4deg); }
@keyframes phoneIn { from { transform: translateY(80px) rotate(14deg); opacity: 0; } }
.reel { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: var(--paper); }
.notch { position: absolute; top: 20px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: #111; border-radius: 12px; }
.sticker { position: absolute; z-index: 2; }
.st-new { top: 6%; inset-inline-start: -6px; background: var(--yellow); color: var(--night); font-weight: 800; font-size: 17px; padding: 10px 18px; border-radius: 999px; transform: rotate(-10deg); box-shadow: 0 5px 0 rgba(0, 0, 0, .3); animation: wiggle 2.6s ease-in-out 2s infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(-10deg); } 85% { transform: rotate(-2deg) scale(1.08); } 90% { transform: rotate(-16deg) scale(1.08); } 95% { transform: rotate(-6deg); } }
.st-atman { bottom: 8%; inset-inline-end: -4px; width: 118px; height: 118px; border-radius: 50%; overflow: hidden; border: 5px solid var(--lamp); box-shadow: 0 0 30px rgba(224, 168, 74, .55); transition: transform .3s var(--pop); }
.st-atman:hover { transform: scale(1.12) rotate(6deg); }
.st-atman img { width: 100%; height: 100%; object-fit: cover; }

/* marquee */
.marquee { overflow: hidden; background: var(--cream); padding: 16px 0; transform: rotate(-1.5deg); margin: -10px -20px 0; position: relative; z-index: 3; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.mq { display: flex; align-items: center; gap: 28px; width: max-content; animation: mq 38s linear infinite; }
.mq span { font: 800 clamp(24px, 3vw, 36px)/1.2 "Outfit", "Cairo", sans-serif; white-space: nowrap; }
.mq span[lang="ar"] { font-family: "Cairo", sans-serif; }
.mq i { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
@keyframes mq { to { transform: translateX(-50%); } }
[dir="rtl"] .mq { animation-name: mqr; }
@keyframes mqr { to { transform: translateX(50%); } }

/* reveal with a bounce */
.reveal { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .6s ease, transform .8s var(--pop); }
.reveal.in { opacity: 1; transform: rotate(var(--r, 0)); }

/* YoYo! — paper */
.yoyo { position: relative; background: var(--paper); color: var(--paper-ink); padding: 90px 0 100px; margin-top: 30px; }
.torn { position: absolute; top: -39px; left: 0; width: 100%; height: 40px; }
.yy-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.yy-card { position: relative; --r: -2deg; }
.yy-title { border-radius: 10px; box-shadow: 0 18px 40px rgba(58, 47, 39, .22); background: #fff; padding: 10px; }
.tape { position: absolute; width: 110px; height: 30px; background: rgba(242, 181, 31, .55); z-index: 2; }
.yy-card .t1 { top: -12px; left: 12%; transform: rotate(-6deg); }
.yy-card .t2 { bottom: -12px; right: 10%; transform: rotate(5deg); background: rgba(51, 171, 159, .5); }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 17px; }
.yoyo .eyebrow { color: var(--coral); }
.wobble { font: 800 clamp(48px, 6.5vw, 86px)/1.05 "Outfit", "Cairo", sans-serif; margin: 8px 0 16px; letter-spacing: -.02em; }
[lang="ar"] .wobble { font-family: "Cairo", sans-serif; letter-spacing: 0; line-height: 1.3; }
.wobble span { display: inline-block; transition: transform .3s var(--pop); }
.wobble:hover span { animation: hop .6s var(--pop) both; animation-delay: calc(var(--i) * 45ms); }
.in .wobble span { animation: hop .7s var(--pop) both; animation-delay: calc(var(--i) * 60ms + .2s); }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-8deg); } 100% { transform: none; } }
.yoyo .lead { font-size: 20px; color: var(--paper-mute); }
.stickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.pt { background: var(--c); color: #fff; border-radius: 28px; padding: 26px 26px 28px; box-shadow: 0 8px 0 rgba(58, 47, 39, .18); }
.pt:nth-child(2) { color: var(--paper-ink); }
.pt h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.pt p { font-size: 16px; opacity: .92; }
.pt.in:hover { transform: rotate(0) scale(1.03); }
.eps-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin: 70px 0 26px; }
.eps-head h3 { font-size: 30px; font-weight: 800; }
.peek { color: var(--paper-mute); font-size: 15px; }
.peek-touch { display: none; }
@media (hover: none) { .peek-mouse { display: none; } .peek-touch { display: inline; } }
.eps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.ep { position: relative; background: #fff; padding: 9px 9px 12px; border-radius: 6px; box-shadow: 0 10px 24px rgba(58, 47, 39, .16); cursor: pointer; }
.ep.in { transition: transform .35s var(--pop), box-shadow .3s; }
.ep.in:hover, .ep.playing { transform: rotate(0) scale(1.06); box-shadow: 0 18px 36px rgba(58, 47, 39, .26); z-index: 2; }
.ep .tape { top: -12px; left: 50%; width: 76px; height: 24px; margin-left: -38px; transform: rotate(-4deg); background: color-mix(in srgb, var(--c) 60%, transparent); }
.ep-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--paper); }
.ep-media img, .ep-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-media video { opacity: 0; transition: opacity .25s; }
.ep.playing .ep-media video { opacity: 1; }
.ep-n { position: absolute; top: -14px; inset-inline-end: -10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 16px/1 "Outfit", sans-serif; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); transform: rotate(8deg); z-index: 3; }
.ep-t { display: block; margin-top: 10px; font-weight: 800; font-size: 17px; color: var(--paper-ink); }
.soon { margin-top: 34px; color: var(--paper-mute); font-weight: 600; }

/* Atman — lamplight and embers */
.atman { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 20% 15%, #4a2a12 0%, #24150e 45%, var(--ember) 80%); padding: 110px 0; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.at-head { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 50px; align-items: center; }
.at-portrait { position: relative; }
.at-hero { border-radius: 50%; border: 6px solid var(--lamp); animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 40px rgba(224, 168, 74, .35), 0 0 120px rgba(224, 120, 40, .25); } 45% { box-shadow: 0 0 60px rgba(224, 168, 74, .6), 0 0 160px rgba(224, 120, 40, .4); } 50% { box-shadow: 0 0 30px rgba(224, 168, 74, .3), 0 0 90px rgba(224, 120, 40, .2); } 55% { box-shadow: 0 0 55px rgba(224, 168, 74, .55), 0 0 150px rgba(224, 120, 40, .35); } }
.lantern { position: absolute; bottom: 4%; inset-inline-end: 4%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #ffb648 40%, rgba(224, 120, 40, 0) 70%); animation: flick 1.6s steps(1) infinite; }
@keyframes flick { 0% { opacity: .9; } 20% { opacity: 1; } 35% { opacity: .7; } 50% { opacity: 1; } 70% { opacity: .82; } 85% { opacity: 1; } }
.atman .eyebrow { color: var(--lamp); }
.flame { font: 800 clamp(56px, 7vw, 96px)/1.15 "Cairo", sans-serif; margin: 6px 0 6px; background: linear-gradient(180deg, #fff1c8 0%, #f6c86a 45%, #d9822b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(240, 160, 60, .45)); animation: flame 4s ease-in-out infinite; }
.flame span { font: 300 .42em "Outfit", "Cairo", sans-serif; -webkit-text-fill-color: var(--mute); vertical-align: middle; }
@keyframes flame { 0%, 100% { filter: drop-shadow(0 0 18px rgba(240, 160, 60, .45)); } 50% { filter: drop-shadow(0 0 28px rgba(240, 160, 60, .7)); } }
.at-tag { font-size: 21px; color: var(--lamp); margin-bottom: 14px; font-weight: 700; }
.atman .lead { color: #dccfba; font-size: 18px; }
.atman .btn { margin-top: 26px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 70px; }
.shot { margin: 0; transform: translateY(calc(var(--p, 0) * var(--k) * 1px)) rotate(var(--r)); transition: transform .1s linear; }
.shot img { border-radius: 14px; border: 3px solid rgba(224, 168, 74, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--lamp); font-weight: 600; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.apt { position: relative; background: rgba(224, 168, 74, .08); border: 1px solid rgba(224, 168, 74, .25); border-radius: 22px; padding: 26px 24px 24px; }
.apt-n { position: absolute; top: -18px; inset-inline-start: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--lamp); color: var(--ember); font: 800 18px/1 "Cairo", sans-serif; }
.apt h3 { color: #f6d79b; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.apt p { color: #cbbda7; font-size: 16px; }
.status { position: relative; margin-top: 30px; color: var(--mute); }

/* outro */
.outro { padding: 90px 0; text-align: center; background: radial-gradient(700px 300px at 50% 100%, #2d2a22, var(--night)); }
.outro-in { display: grid; justify-items: center; gap: 16px; }
.bounce { width: 110px; height: 110px; animation: boing 2.4s var(--pop) infinite; }
@keyframes boing { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-34px) scale(.96, 1.04) rotate(-10deg); } 55% { transform: translateY(0) scale(1.08, .92); } 70% { transform: translateY(-8px); } }
.outro h2 { font: 800 clamp(32px, 4.6vw, 56px)/1.2 var(--sans); }
.outro p { color: var(--mute); font-size: 18px; }
.outro a { color: var(--yellow); font-weight: 700; }

/* footer */
.foot { padding: 34px 0; border-top: 1px solid rgba(244, 234, 216, .08); color: var(--mute); font-size: 15px; }
.foot-in { display: grid; gap: 10px; }
.foot .brand img { width: 34px; height: 34px; }
.foot a { color: var(--cream); }
.small { font-size: 14px; }
.nf { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 40px; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-stage { justify-self: center; }
  .yy-head, .at-head { grid-template-columns: 1fr; gap: 34px; }
  .at-portrait { max-width: 280px; }
  .stickers, .points, .shots { grid-template-columns: 1fr; }
  .shots { gap: 30px; }
  .eps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .wm.sm { font-size: 19px; }
  .hero { padding: 36px 0 60px; }
  .hero-brand { gap: 12px; }
  .hero-mark { width: 54px; height: 54px; }
  .wm.lg { font-size: clamp(30px, 10vw, 44px); }
  .hero-ar { font-size: 22px; }
  .phone { width: 230px; }
  .st-atman { width: 92px; height: 92px; }
  .yoyo, .atman { padding: 70px 0; }
  .eps { grid-template-columns: 1fr; gap: 34px; }
  .scrap { width: calc(36px * var(--s)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: rotate(var(--r, 0)); }
  .mq { transform: none; }
}
