/* eli Wallet case study — its own template: "express yourself loudly". eli's red and turquoise, its doodles,
   a rounded loud typeface. Everything is visible without JavaScript; the script turns the volume up. */
.el {
  --e-red: #ba1c0a; --e-red-2: #d32c18; --e-teal: #7fe3ee; --e-teal-2: #b9f2f7; --e-teal-ink: #0b5f68;
  --e-ink: #1b1d22; --e-cream: #ffffff; --e-f: "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--e-cream); color: var(--e-ink);
}
.el main { font-family: var(--e-f); }
.el main em { font-family: inherit; font-style: normal; }
.e-crumb { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #5a5f6a; }
.e-crumb a { color: var(--e-ink); border-bottom: 1px solid currentColor; }
.e-crumb span { margin: 0 6px; }
.e-n { display: inline-block; margin-top: 22px; padding: 6px 12px; border-radius: 999px; background: var(--e-red); color: #fff; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; }
.e-eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--e-red); }
.e-h2 { margin-top: 12px; font: 900 clamp(40px, 5vw, 80px)/1 var(--e-f); letter-spacing: -.02em; color: var(--e-red); }
.e-h2 em { color: var(--e-teal-ink); }
.e-lede { margin-top: 16px; max-width: 620px; font-size: 19px; line-height: 1.55; color: #40444d; }
.e-btn { display: inline-flex; align-items: center; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--e-red); color: #fff; font: 800 17px/1 var(--e-f); transition: transform .3s var(--ease), background .3s; }
.e-btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--e-red-2); }
.e-btn--line { background: transparent; color: var(--e-ink); box-shadow: inset 0 0 0 2px var(--e-ink); }
.e-btn--line:hover { background: var(--e-teal); }
.el .nav .brand__lambda { color: var(--e-red); }

/* ---------- 01 · hero: the volume goes up with the scroll ---------- */
.eh { position: relative; background: var(--e-cream); }
.eh.is-pinned { height: 260vh; }
.eh__pin { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px var(--gut) 60px; overflow: hidden; }
.eh.is-pinned .eh__pin { position: sticky; top: 0; height: 100svh; }
.eh__swirl { position: absolute; right: -6%; top: 8%; width: min(46vw, 640px); opacity: .5; pointer-events: none; }
.eh__copy { position: relative; z-index: 3; max-width: calc(var(--maxw)); width: 100%; margin: 0 auto; }
.eh__title { margin-top: 16px; line-height: .86; }
.eh__small { display: block; font: 900 clamp(40px, 5.4vw, 86px)/1 var(--e-f); letter-spacing: -.02em; color: var(--e-red); }
.eh__loud { display: inline-flex; font: 900 clamp(96px, 15vw, 250px)/.9 var(--e-f); letter-spacing: -.04em; color: var(--e-teal); -webkit-text-stroke: 3px var(--e-ink); paint-order: stroke fill; transform-origin: 0 60%; }
.eh__loud span { display: inline-block; }
.eh__lede { margin-top: 26px; max-width: 520px; font-size: 19px; line-height: 1.55; color: #40444d; }
.eh__lede b { color: var(--e-ink); }
.eh__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eh__rings { position: absolute; left: 38%; top: 62%; z-index: 1; pointer-events: none; }
.eh__rings i { position: absolute; left: 0; top: 0; width: 220px; height: 220px; translate: -50% -50%; border-radius: 50%; border: 3px solid var(--e-teal); opacity: 0; }
.eh__doodles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ed { position: absolute; height: auto; filter: brightness(.9); }
.ed--bolt { left: 64%; top: 18%; width: 90px; transform: rotate(14deg); filter: none; }
.ed--note { left: 80%; top: 52%; width: 56px; }
.ed--hat { left: 55%; top: 70%; width: 150px; }
.ed--skater { left: 76%; top: 14%; width: 170px; }
.ed--bolt2 { left: 88%; top: 72%; width: 60px; transform: rotate(-12deg); }
.evol { position: absolute; right: var(--gut); bottom: 40px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--e-ink); color: #fff; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; }
.evol b { color: var(--e-teal); }
.evol em { font-style: normal; min-width: 18px; text-align: right; color: var(--e-teal); }
.evol__bars { display: flex; align-items: end; gap: 3px; height: 22px; }
.evol__bars i { width: 5px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.evol__bars i:nth-child(1) { height: 20%; } .evol__bars i:nth-child(2) { height: 28%; } .evol__bars i:nth-child(3) { height: 36%; } .evol__bars i:nth-child(4) { height: 44%; } .evol__bars i:nth-child(5) { height: 52%; }
.evol__bars i:nth-child(6) { height: 60%; } .evol__bars i:nth-child(7) { height: 68%; } .evol__bars i:nth-child(8) { height: 76%; } .evol__bars i:nth-child(9) { height: 88%; } .evol__bars i:nth-child(10) { height: 100%; }
.evol__bars i.is-on { background: var(--e-teal); }
.evol__bars i.is-on:nth-child(n+8) { background: var(--e-red-2); }

/* ---------- 02 · the card ---------- */
.ecard { position: relative; background: var(--e-teal); }
.ecard.is-pinned { height: 340vh; }
.ecard__pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; min-height: 100svh; padding: 110px var(--gut) 60px; max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; }
.ecard.is-pinned .ecard__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ecard .e-eyebrow { color: var(--e-ink); }
.ecard__n { display: block; margin-top: 16px; font: 600 14px/1 var(--f-mono); letter-spacing: .12em; color: var(--e-teal-ink); }
.ecard__loud { margin-top: 10px; font: 900 clamp(50px, 6.6vw, 112px)/.92 var(--e-f); letter-spacing: -.03em; color: var(--e-red); -webkit-text-stroke: 2px var(--e-ink); paint-order: stroke fill; transform-origin: 0 70%; min-height: 1.84em; }
.ecard__desc { margin-top: 18px; max-width: 440px; font-size: 20px; line-height: 1.5; color: #12363a; min-height: 3em; }
.ecard__hint { margin-top: 24px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--e-teal-ink); }
.ecard__stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.ecard__card { position: relative; width: min(100%, 520px); aspect-ratio: 1.586; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; }
.ecard__face { position: absolute; inset: 0; display: grid; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 0 0 3px var(--e-ink), 0 40px 70px -30px rgba(11, 60, 66, .65); }
.ecard__face--front { background: linear-gradient(135deg, #a6f0f7 0%, #7fe3ee 55%, #5fd3e0 100%); }
.ecard__face--back { background: #fff; transform: rotateY(180deg); }
.ecard__brand { position: relative; display: block; }
.ecard__brand img { position: absolute; left: 8%; top: 11%; width: 26%; }
.ecard__num { position: absolute; left: 8%; bottom: 13%; font: 700 clamp(13px, 1.5vw, 20px)/1 var(--f-mono); letter-spacing: .12em; color: var(--e-ink); }
.ecard__mc { position: absolute; right: 8%; bottom: 11%; display: flex; }
.ecard__mc i { width: clamp(28px, 3.4vw, 48px); aspect-ratio: 1; border-radius: 50%; background: #eb001b; }
.ecard__mc i + i { margin-left: -14px; background: #f79e1b; mix-blend-mode: multiply; }
.ecard__feat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6%; padding: 0 9%; }
.ecard__feat img { width: clamp(70px, 9vw, 130px); max-height: 70%; object-fit: contain; }
.ecard__feat b { font: 900 clamp(24px, 3vw, 44px)/1 var(--e-f); color: var(--e-red); }
.ecard__feat small { display: block; margin-top: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--e-teal-ink); text-transform: uppercase; }
.ecard__face--front .ecard__feat b { color: var(--e-ink); }
.ecard__shadow { position: absolute; left: 50%; bottom: -14%; width: 70%; height: 30px; translate: -50% 0; border-radius: 50%; background: rgba(11, 60, 66, .3); filter: blur(14px); }
.ecard__list { list-style: none; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ecard__list li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 15px; transition: background .3s, color .3s; }
.ecard__list li.is-on { background: var(--e-ink); color: var(--e-teal); }
.ecard.is-pinned .ecard__list { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; justify-content: center; width: max-content; max-width: calc(100% - 32px); }

/* ---------- 03 · the playlist ---------- */
.eplay { padding: 120px 0 0; background: var(--e-cream); }
.eplay__head { margin-bottom: 30px; }
.eplay__wrap { position: relative; }
.eplay__wrap.is-pinned { height: calc(100svh + var(--n, 7) * 55vh); }
.eplay__in { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.eplay__wrap.is-pinned .eplay__in { position: sticky; top: 92px; }
.eplay__side { display: grid; gap: 16px; }
.eplay__tracks { list-style: none; display: grid; gap: 4px; }
.eplay__tracks button { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--e-ink); text-align: left; cursor: pointer; transition: background .25s; }
.eplay__tracks b { font: 600 12px/1 var(--f-mono); color: #62676f; }
.eplay__tracks span { font: 800 17px/1.2 var(--e-f); }
.eplay__tracks small { display: block; margin-top: 2px; font: 500 10.5px/1.3 var(--f-mono); color: #6b707a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eplay__tracks button:hover { background: #eef2f3; }
.eplay__tracks button[aria-current="true"] { background: var(--e-ink); color: #fff; }
.eplay__tracks button[aria-current="true"] b { color: var(--e-teal); }
.eplay__tracks button[aria-current="true"] small { color: rgba(255, 255, 255, .6); }
.eplay__skip { display: inline-flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--e-red); color: #fff; font: 800 16px/1 var(--e-f); transition: background .25s, transform .25s var(--ease); }
.eplay__skip:hover, .eplay__skip:focus-visible { background: var(--e-ink); transform: translateX(3px); }
.eplayer { border-radius: 22px; overflow: hidden; background: var(--e-ink); box-shadow: 0 50px 100px -40px rgba(40, 20, 10, .45); }
.eplayer__top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: #fff; }
.eplayer__eq { display: flex; align-items: end; gap: 3px; height: 22px; }
.eplayer__eq i { width: 4px; height: 40%; border-radius: 2px; background: var(--e-teal); animation: eeq 1s ease-in-out infinite alternate; }
.eplayer__eq i:nth-child(2) { animation-delay: -.3s; } .eplayer__eq i:nth-child(3) { animation-delay: -.6s; } .eplayer__eq i:nth-child(4) { animation-delay: -.15s; } .eplayer__eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eeq { from { height: 20%; } to { height: 100%; } }
.eplayer__now { flex: 1; display: grid; }
.eplayer__now small { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.eplayer__now b { margin-top: 4px; font: 800 18px/1.1 var(--e-f); }
.eplayer__live { padding: 8px 14px; border-radius: 999px; background: var(--e-teal); color: var(--e-ink); font: 800 14px/1 var(--e-f); }
.eplayer__view { position: relative; max-height: min(64svh, 600px); overflow-y: auto; background: #fff; }
.eplayer__page img { display: block; width: 100%; height: auto; transition: opacity .4s, transform .5s var(--ease); }
.eplayer__page.is-swap img { opacity: 0; transform: translateY(24px) scale(.985); }
.eplayer__bottom { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: #fff; }
.eplayer__time { font: 600 12px/1 var(--f-mono); color: var(--e-teal); }
.eplayer__bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.eplayer__bar i { display: block; width: 0; height: 100%; border-radius: 5px; background: var(--e-teal); }
.eplayer__next { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--e-red); color: #fff; font-size: 15px; cursor: pointer; transition: background .25s; }
.eplayer__next:hover { background: var(--e-red-2); }
.eplay__main { min-width: 0; }
.eplay__cap { margin-top: 14px; padding-bottom: 20px; font-size: 17px; line-height: 1.5; color: #40444d; min-height: 3em; }
.eplay__wrap.is-pinned .eplayer__view { height: min(calc(100svh - 340px), 600px); max-height: none; overflow: hidden; }

/* ---------- 04 · two languages ---------- */
.elang { padding: 130px 0; background: var(--e-ink); color: #fff; }
.elang .e-h2 { color: #fff; }
.elang .e-h2 em { color: var(--e-teal); }
.elang .e-eyebrow { color: var(--e-teal); }
.elang .e-lede { color: rgba(255, 255, 255, .8); }
.elang__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: center; }
.elang__switch { display: inline-flex; margin-top: 28px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.elang__switch button { padding: 12px 22px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 800 16px/1 var(--e-f); cursor: pointer; transition: background .3s, color .3s; }
.elang__switch button[lang="ar"] { font-family: "Tajawal", var(--e-f); }
.elang__switch button[aria-pressed="true"] { background: var(--e-teal); color: var(--e-ink); }
.elang__facts { list-style: none; display: grid; gap: 10px; margin-top: 30px; }
.elang__facts li { padding-left: 22px; position: relative; color: rgba(255, 255, 255, .85); }
.elang__facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--e-red-2); }
.elang__stage { perspective: 1800px; }
.elang__flip { position: relative; display: grid; gap: 16px; transform-style: preserve-3d; }
.elang__face { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.elang__face img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.elang.is-live .elang__flip { display: block; aspect-ratio: 16 / 10; }
.elang.is-live .elang__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.elang.is-live .elang__face--ar { transform: rotateY(180deg); }

/* footer on the cream page */
.el .foot { color: #5a5f6a; }

@media (max-width: 900px) {
  .eh.is-pinned { height: 220vh; }
  .eh__pin { padding-top: 96px; align-items: start; }
  .eh__loud { -webkit-text-stroke-width: 2px; }
  .eh__swirl { width: 70vw; top: 40%; opacity: .35; }
  .ed--skater { left: 62%; top: 62%; width: 110px; } .ed--hat { left: 6%; top: 82%; width: 100px; } .ed--bolt { left: 78%; top: 30%; width: 56px; } .ed--note { left: 86%; top: 50%; } .ed--bolt2 { display: none; }
  .evol { bottom: 20px; }
  .ecard__pin { grid-template-columns: 1fr; gap: 16px; padding-top: 90px; align-content: start; }
  .ecard__loud { min-height: 0; }
  .ecard__desc { font-size: 16px; min-height: 0; }
  .ecard__hint { display: none; }
  .ecard__card { width: min(100%, 330px); }
  .ecard.is-pinned .ecard__list { bottom: 18px; gap: 5px; }
  .ecard__list li { padding: 6px 10px; font-size: 12px; }
  .eplay__in { grid-template-columns: 1fr; gap: 12px; }
  .eplay__side { grid-template-columns: 1fr; gap: 8px; }
  .eplay__tracks { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .eplay__tracks li { flex: none; }
  .eplay__tracks button { grid-template-columns: auto auto; padding: 8px 12px; }
  .eplay__tracks small { display: none; }
  .eplay__tracks span { font-size: 14px; }
  .eplay__skip { justify-self: start; padding: 9px 14px; font-size: 14px; }
  .eplay__wrap.is-pinned .eplay__in { top: 76px; }
  .eplay__wrap.is-pinned .eplayer__view { height: min(calc(100svh - 360px), 520px); }
  .eplay__wrap.is-pinned .eplay__cap { display: none; }
  .elang__in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .eplayer__eq i { animation: none; } }
