/* =========================================================
   Dev Crow Egg · Direction C "Yolk"
   Palette lifted straight off a deviled egg (shell, yolk, paprika)
   plus the crow (ink + feather violet).
   ========================================================= */

:root {
  --yolk: #FFC629;
  --yolk-2: #FFD75E;
  --yolk-soft: #FFE7A0;
  --ink: #16131C;
  --ink-2: #2A2533;
  --ink-soft: #5A5366;
  --crow: #4B3BD6;
  --crow-deep: #2C2185;
  --crow-soft: #DCD6FF;
  --cream: #FFF4DC;
  --shell: #FFFAEE;
  --tomato: #FF4A2E;
  --tomato-soft: #FFCDBF;
  --leaf: #2FA36B;

  --f-display: "Bricolage Grotesque", "Arial Narrow", Impact, system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-brand: "Bricolage Grotesque", "Arial Narrow", Impact, system-ui, sans-serif;

  --line: 3px;
  --sx: 5px;
  --sy: 5px;
  --shadow: var(--sx) var(--sy) 0 var(--ink);
  --r: 24px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --hdr-h: 88px;
  --focus: var(--ink);
}

[dir="rtl"] { --sx: -5px; }

:lang(ar) {
  --f-display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --f-body: "Tajawal", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --f-hand: "Baloo Bhaijaan 2", "Tajawal", sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.7; }
main { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--crow); color: var(--cream); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 200; top: -80px; inset-inline-start: 16px;
  background: var(--ink); color: var(--yolk); padding: 12px 18px; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: top .2s var(--ease-out);
}
.skip:focus { top: 16px; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.hand { font-family: var(--f-hand); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--cream); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.35em;
  border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 800; font-stretch: 90%;
  font-size: 17px; line-height: 1; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--sx) var(--sy) 0 var(--ink);
  transition: transform .28s var(--spring), box-shadow .28s var(--spring), background-color .2s ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
:lang(ar) .btn { font-weight: 700; padding-block: .7em .78em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(calc(var(--sx) * -.4), -2px) rotate(-1.5deg); box-shadow: calc(var(--sx) * 1.4) 7px 0 var(--ink); }
  [dir="rtl"] .btn:hover { transform: translate(calc(var(--sx) * -.4), -2px) rotate(1.5deg); }
}
.btn:active { transform: translate(var(--sx), var(--sy)) scale(.97, .93); box-shadow: 0 0 0 var(--ink); transition-duration: .08s; }
.btn--lg { font-size: clamp(17px, 1.35vw, 20px); padding: .9em 1.5em; }
.btn--ink { --bg: var(--ink); --fg: var(--yolk); }
.btn--yolk { --bg: var(--yolk); }
.btn--cream { --bg: var(--cream); }
.btn--tomato { --bg: var(--tomato); }
.btn--line { --bg: transparent; --fg: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn--line:hover { --bg: rgba(255, 244, 220, .08); box-shadow: none !important; }
.btn__arrow { width: 1.1em; height: 1.1em; flex-shrink: 0; }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn__egg { width: 1.05em; height: 1.25em; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- tags / eyebrows ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em .5em .75em; border-radius: 999px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 88%;
  font-size: 14px; line-height: 1; text-transform: uppercase; letter-spacing: .06em;
}
:lang(ar) .tag { letter-spacing: 0; font-size: 16px; }
.tag svg { width: 15px; height: 18px; }
.tag--ink { background: var(--ink); color: var(--yolk); rotate: -3deg; }
.eyebrow {
  display: inline-block; margin-bottom: .3em;
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(24px, 2.2vw, 31px); line-height: 1;
  color: var(--crow); rotate: -2deg;
}
:lang(ar) .eyebrow { font-size: clamp(18px, 1.6vw, 22px); rotate: 0deg; }
.eyebrow--yolk { color: var(--yolk); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; z-index: 60; top: 0; inset-inline: 0;
  padding: 12px var(--gutter) 0; pointer-events: none;
}
.hdr {
  position: relative; pointer-events: auto;
  max-width: 1376px; margin-inline: auto;
  display: flex; align-items: center; gap: clamp(10px, 1.3vw, 20px);
  background: var(--shell); border: var(--line) solid var(--ink); border-radius: 999px;
  padding: 7px 8px; padding-inline-start: 14px;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out);
}
.site-header.is-hidden .hdr { transform: translateY(-140%); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; border-radius: 12px; }
.logo__mark { width: 36px; height: 42px; overflow: visible; }
.logo__cap { transform-box: fill-box; transform-origin: 90% 95%; rotate: -16deg; translate: -1px -3px; transition: rotate .45s var(--spring), translate .45s var(--spring); }
.logo:hover .logo__cap, .logo:focus-visible .logo__cap { rotate: -38deg; translate: -3px -7px; }
.logo__word {
  font-family: var(--f-brand); font-weight: 800; font-stretch: 78%;
  font-size: 23px; line-height: .9; letter-spacing: -.01em; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(8px, 1.3vw, 18px); flex: 1; min-width: 0; }
.nav__list { display: flex; gap: 2px; }
.nav__list a {
  display: block; padding: .55em .85em; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, rotate .3s var(--spring);
}
:lang(ar) .nav__list a { font-size: 17px; }
@media (hover: hover) and (pointer: fine) { .nav__list a:hover { background: var(--yolk); rotate: -2deg; } }
.nav__list a[aria-current="page"] { background: var(--ink); color: var(--yolk); }
.search { position: relative; display: flex; align-items: center; margin-inline-start: auto; }
.search input {
  width: clamp(170px, 16vw, 250px); height: 44px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--cream);
  padding-inline: 40px 14px; font-weight: 600; font-size: 15px;
  transition: background-color .2s ease;
}
.search input::placeholder { color: #7A7287; }
.search input:focus { background: #fff; }
.search input:focus-visible { outline: 3px solid var(--crow); outline-offset: 2px; }
.search__icon { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; pointer-events: none; }
.hdr__tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang { display: flex; border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px; background: var(--cream); }
.lang button {
  border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  padding: 6px 11px; font-family: var(--f-body); font-weight: 800; font-size: 14px; line-height: 1.15;
  transition: background-color .2s ease, color .2s ease;
}
.lang button[lang="ar"] { font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 15px; line-height: 1; padding-block: 7px 5px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--yolk); }
.lang--dark { border-color: var(--cream); background: transparent; }
.lang--dark button { color: var(--cream); }
.lang--dark button[aria-pressed="true"] { background: var(--yolk); color: var(--ink); }

.cart {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--cream); cursor: pointer;
  transition: transform .3s var(--spring), background-color .2s ease;
}
.cart svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .cart:hover { transform: rotate(-8deg) scale(1.06); } }
.cart__count {
  position: absolute; top: -7px; inset-inline-end: -7px;
  min-width: 25px; height: 25px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--tomato); border: 2.5px solid var(--ink);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 13px; line-height: 1;
}
.cart.is-jiggle { animation: jiggle .65s var(--spring); }
.cart__count.is-pop { animation: pop .5s var(--spring); }
@keyframes jiggle {
  0% { transform: rotate(0) scale(1); }
  18% { transform: rotate(-16deg) scale(1.16); }
  36% { transform: rotate(12deg) scale(1.1); }
  54% { transform: rotate(-7deg) scale(1.04); }
  72% { transform: rotate(4deg); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }

.menu-btn {
  display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--yolk); cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; transition: rotate .35s var(--spring); }
.hdr.is-open .menu-btn svg { rotate: 90deg; }

.fly-egg {
  position: fixed; z-index: 120; left: 0; top: 0; width: 22px; height: 27px; pointer-events: none;
  background: var(--yolk); border: 2.5px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .hdr { justify-content: space-between; }
  .hdr__tools { margin-inline-start: auto; }
  .nav {
    position: absolute; top: calc(100% + 10px); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--shell); border: var(--line) solid var(--ink); border-radius: 28px;
    box-shadow: var(--shadow); padding: 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .18s ease, transform .3s var(--spring), visibility 0s linear .3s;
  }
  .hdr.is-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .3s var(--spring); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: 24px; padding: .45em .7em; }
  .search { margin-inline-start: 0; }
  .search input { width: 100%; height: 50px; font-size: 16px; }
}
@media (max-width: 560px) {
  :root { --hdr-h: 78px; }
  .site-header { padding-top: 10px; }
  .hdr { padding: 5px 6px; padding-inline-start: 10px; gap: 6px; }
  .logo { gap: 7px; }
  .logo__mark { width: 30px; height: 36px; }
  .logo__word { white-space: normal; width: 4.7em; font-size: 17px; }
  .hdr__tools { gap: 6px; }
  .lang button { padding: 5px 7px; font-size: 12.5px; }
  .lang button[lang="ar"] { font-size: 13.5px; }
  .cart, .menu-btn { width: 42px; height: 42px; }
  .cart svg { width: 22px; height: 22px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; isolation: isolate; background: var(--yolk); padding-top: var(--hdr-h); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(22, 19, 28, .13) 1.5px, transparent 1.7px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center; gap: clamp(8px, 2vw, 40px);
  min-height: clamp(620px, calc(100svh - var(--hdr-h)), 860px);
  padding-block: 24px 64px;
}
.hero__copy { position: relative; z-index: 3; }
.hero__title {
  margin: 26px 0 24px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(56px, 7.9vw, 124px); line-height: .84; letter-spacing: -.025em;
}
:lang(ar) .hero__title { font-stretch: 100%; font-weight: 800; line-height: 1.08; letter-spacing: 0; font-size: clamp(52px, 6.6vw, 104px); }
.hero__title .line { display: block; }
.hero__title .line--last { margin-top: .04em; }
.scribble-wrap { position: relative; display: inline-block; }
.scribble { position: absolute; inset-inline-start: -3%; bottom: -.12em; width: 106%; height: .34em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--tomato); stroke-width: 10; stroke-linecap: round; }
[dir="rtl"] .scribble { transform: scaleX(-1); }
.hero__lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; max-width: 34ch; font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__sub {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: 15px;
  text-transform: uppercase; letter-spacing: .08em;
}
:lang(ar) .hero__sub { letter-spacing: 0; text-transform: none; font-size: 17px; }
.hero__sub::before { content: ""; width: 34px; height: 3px; background: var(--ink); border-radius: 3px; }

.stage { position: relative; height: clamp(540px, 76svh, 780px); }
.stage__canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; touch-action: pan-y; }
.stage__canvas.is-hover { cursor: pointer; }
.stage__burst { position: absolute; inset: -6% -10%; z-index: 0; display: grid; place-items: center; pointer-events: none; }
.stage__burst svg { width: min(100%, 860px); height: auto; overflow: visible; }
.stage__burst .burst__rays { transform-origin: 50% 50%; transform-box: fill-box; animation: spin 80s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.stage__fallback { display: none; }
.stage.no-webgl .stage__fallback { display: block; position: absolute; z-index: 2; inset: 12% 22% 16%; width: 56%; height: 72%; margin: auto; }
.stage__hint {
  position: absolute; z-index: 3; top: 10%; inset-inline-end: 2%;
  display: flex; align-items: flex-start; gap: 2px;
  font-size: clamp(24px, 2.2vw, 31px); line-height: 1; rotate: 7deg; color: var(--ink);
  transition: opacity .3s ease, translate .4s var(--spring);
}
:lang(ar) .stage__hint { font-size: 22px; }
.stage__hint svg { width: 64px; height: 48px; margin-top: 16px; scale: -1 1; }
[dir="rtl"] .stage__hint svg { scale: 1 1; }
.stage.is-open .stage__hint { opacity: 0; translate: 0 -10px; }
.stage__crow { position: absolute; z-index: 3; bottom: 17%; inset-inline-start: -4%; width: clamp(104px, 10vw, 146px); }
.stage__crow .bubble { inset-inline-start: -16%; max-width: 190px; }
[dir="rtl"] .stage__crow .crow { scale: -1 1; }
.stage__controls {
  position: absolute; z-index: 4; inset-inline: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px;
}
.hatch-label {
  display: grid; gap: 1px; padding: 9px 16px 10px;
  background: var(--shell); border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow); rotate: -2deg; min-width: 0;
}
.hatch-label[hidden] { display: none; }
.hatch-label__kicker { font-family: var(--f-hand); font-size: 19px; line-height: 1; color: var(--crow); }
:lang(ar) .hatch-label__kicker { font-size: 15px; }
.hatch-label__name { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: 19px; line-height: 1.1; }
.hatch-label__meta { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.hatch-label__meta a { color: var(--ink); font-weight: 800; }

/* speech bubble */
.bubble {
  position: absolute; bottom: 100%; inset-inline-start: 46%; margin-bottom: 4px;
  width: max-content; max-width: 210px;
  background: var(--shell); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 18px;
  padding: 8px 13px 9px;
  font-family: var(--f-hand); font-weight: 700; font-size: 21px; line-height: 1.05;
  box-shadow: calc(var(--sx) * .6) 3px 0 var(--ink);
  transform-origin: 0 100%;
  transition: opacity .2s ease, scale .35s var(--spring);
}
[dir="rtl"] .bubble { transform-origin: 100% 100%; }
:lang(ar) .bubble { font-size: 15px; line-height: 1.35; }
.bubble::after {
  content: ""; position: absolute; top: 100%; inset-inline-start: 18px;
  width: 14px; height: 14px; margin-top: -6px;
  background: var(--shell); border-inline-end: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.bubble.is-hidden { opacity: 0; scale: .7; }

/* crow mascot */
.crow { width: 100%; height: auto; overflow: visible; filter: drop-shadow(calc(var(--sx) * .7) 4px 0 var(--ink)); }
.crow__lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .07s ease-out; }
.is-blink .crow__lid { transform: scaleY(1); }
.crow__brow { transition: translate .3s var(--spring), rotate .3s var(--spring); transform-box: fill-box; transform-origin: center; }
.is-surprised .crow__brow { translate: 0 -8px; rotate: -8deg; }
.crow__tuft { transform-box: fill-box; transform-origin: 30% 100%; transition: rotate .3s var(--spring); }
.is-surprised .crow__tuft { rotate: -14deg; }
.crow__wing { transform-box: fill-box; transform-origin: 20% 30%; }

/* =========================================================
   RIBBON
   ========================================================= */
.ribbon {
  position: relative; z-index: 5; overflow: hidden;
  width: 104%; margin-inline-start: -2%; margin-block: -22px;
  padding-block: 14px;
  background: var(--ink); color: var(--yolk);
  rotate: -1.6deg;
  border-block: var(--line) solid var(--ink);
}
.ribbon__track {
  display: flex; align-items: center; gap: 30px; width: max-content;
  font-family: var(--f-display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(22px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
:lang(ar) .ribbon__track { font-size: clamp(20px, 2.2vw, 32px); }
[dir="rtl"] .ribbon__track { animation-name: marquee-rtl; }
.ribbon__dot { flex-shrink: 0; width: 20px; height: 25px; background: var(--tomato); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.ribbon__dot:nth-of-type(2n) { background: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.sec { position: relative; padding-block: clamp(84px, 10vw, 144px); }
.sec--cream { background: var(--cream); }
.sec--shell { background: var(--shell); }
.sec--crow { background: var(--crow); color: var(--cream); --focus: var(--yolk); }
.crack {
  position: absolute; top: -1px; inset-inline: 0; z-index: 1;
  width: 100%; height: clamp(18px, 2.6vw, 38px); fill: var(--cream); pointer-events: none;
}
.crack--crow { fill: var(--crow); }
.crack--shell { fill: var(--shell); }
.crack--yolk { fill: var(--yolk); }
.sec-head { margin-bottom: clamp(40px, 5vw, 68px); }
.sec-head--center { text-align: center; max-width: 860px; margin-inline: auto; }
.sec-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 56px; }
.sec-head--split > :first-child { flex: 1 1 560px; min-width: 0; }
.sec-head--split > :last-child { flex: 0 1 400px; }
.sec-head__aside { display: grid; justify-items: start; gap: 18px; }
.sec-title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 76%;
  font-size: clamp(44px, 6vw, 90px); line-height: .9; letter-spacing: -.02em; text-wrap: balance;
}
:lang(ar) .sec-title { font-stretch: 100%; line-height: 1.15; letter-spacing: 0; font-size: clamp(36px, 4.8vw, 68px); }
.sec-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 42ch; margin-top: 14px; }
.sec-head--split .sec-lede { margin-top: 0; }
.sec-head--center .sec-lede { margin-inline: auto; }

/* ---------- how it works ---------- */
.steps-wrap { position: relative; }
.steps__path { position: absolute; inset-inline: 0; top: 12%; z-index: 0; width: 100%; height: 76%; overflow: visible; }
[dir="rtl"] .steps__path { scale: -1 1; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); padding-top: 22px; }
.step {
  position: relative;
  background: var(--shell); border: var(--line) solid var(--ink); border-radius: 28px;
  padding: 20px 20px 26px; box-shadow: var(--shadow);
  rotate: -1.2deg;
}
.step:nth-child(even) { translate: 0 54px; rotate: 1.4deg; }
.step__num {
  position: absolute; top: -26px; inset-inline-start: 18px; z-index: 2;
  width: 50px; height: 60px; display: grid; place-items: center; padding-top: 6px;
  background: var(--yolk); border: var(--line) solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 26px; line-height: 1;
  box-shadow: calc(var(--sx) * .6) 3px 0 var(--ink);
}
.step__art {
  height: 140px; display: grid; place-items: center; margin: 12px 0 18px;
  background: var(--tone, var(--yolk-soft));
  background-image: radial-gradient(rgba(22, 19, 28, .12) 1.3px, transparent 1.4px); background-size: 14px 14px;
  border: 2.5px solid var(--ink); border-radius: 18px;
}
.step__art svg { height: 112px; width: auto; transition: transform .5s var(--spring); }
@media (hover: hover) and (pointer: fine) { .step:hover .step__art svg { transform: translateY(-5px) rotate(-3deg) scale(1.05); } }
.step--1 { --tone: var(--yolk-soft); }
.step--2 { --tone: var(--crow-soft); }
.step--3 { --tone: var(--tomato-soft); }
.step--4 { --tone: #FFF0C9; }
.step__title { font-family: var(--f-display); font-weight: 800; font-stretch: 84%; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.02; margin-bottom: 8px; }
:lang(ar) .step__title { line-height: 1.3; font-size: clamp(20px, 1.7vw, 24px); }
.step p { font-size: 16px; line-height: 1.45; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.grid--collection, .grid--trending, .grid--more { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--trending { row-gap: clamp(28px, 3.2vw, 46px); }

.card {
  --tone: var(--yolk-soft);
  position: relative; display: flex; flex-direction: column;
  background: var(--shell); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  rotate: var(--rot, 0deg);
  transition: transform .35s var(--ease-out), rotate .5s var(--spring), box-shadow .3s var(--spring), translate .4s var(--spring);
}
.grid--trending .card:nth-child(4n + 1) { --rot: -1deg; }
.grid--trending .card:nth-child(4n + 2) { --rot: .8deg; }
.grid--trending .card:nth-child(4n + 3) { --rot: -.6deg; }
.grid--trending .card:nth-child(4n) { --rot: 1.1deg; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { --rot: 0deg; translate: 0 -4px; box-shadow: calc(var(--sx) * 1.6) 9px 0 var(--ink); }
}
.card--yolk { --tone: var(--yolk-soft); }
.card--crow { --tone: var(--crow-soft); }
.card--tomato { --tone: var(--tomato-soft); }
.card--cream { --tone: #FFEFC4; }
.card__art {
  position: relative; aspect-ratio: 1 / .9; overflow: hidden;
  display: grid; place-items: center;
  background-color: var(--tone);
  background-image: radial-gradient(rgba(22, 19, 28, .13) 1.3px, transparent 1.4px); background-size: 14px 14px;
  border-bottom: var(--line) solid var(--ink);
  border-radius: calc(var(--r) - 3px) calc(var(--r) - 3px) 0 0;
}
.card__art svg { width: 76%; height: auto; transition: transform .55s var(--spring); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__art svg { transform: translateY(-6px) rotate(-3deg) scale(1.06); } }
.card__body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 14px 16px 16px; }
.card__title { font-family: var(--f-display); font-weight: 800; font-stretch: 86%; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.08; }
:lang(ar) .card__title { font-family: "Bricolage Grotesque", sans-serif; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.card__by { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.card__by svg { width: 13px; height: 15px; flex-shrink: 0; }
.card__desc { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em; line-height: 1.3;
  background: var(--yolk-soft);
}
.chip--petg { background: var(--crow-soft); }
.price { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-stretch: 85%; font-size: 22px; line-height: 1; white-space: nowrap; }
:lang(ar) .price { font-family: var(--f-display); font-size: 21px; }
.add {
  position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: var(--line) solid var(--ink); border-radius: 50%;
  background: var(--yolk); cursor: pointer;
  box-shadow: calc(var(--sx) * .6) 3px 0 var(--ink);
  transition: transform .35s var(--spring), box-shadow .25s var(--spring), background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.add svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .add:hover { transform: rotate(90deg) scale(1.08); background: var(--tomato); } }
.add:active { transform: translate(calc(var(--sx) * .6), 3px) scale(.9); box-shadow: 0 0 0 var(--ink); transition-duration: .08s; }
.add.is-added { background: var(--leaf); }
.add .add__check { display: none; }
.add.is-added .add__plus { display: none; }
.add.is-added .add__check { display: block; }
.card__badge {
  position: absolute; z-index: 2; top: 14px; inset-inline-start: 12px;
  padding: 3px 11px 4px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--tomato); color: var(--ink);
  font-family: var(--f-hand); font-weight: 700; font-size: 19px; line-height: 1.1;
  rotate: -6deg; box-shadow: calc(var(--sx) * .5) 3px 0 var(--ink);
}
:lang(ar) .card__badge { font-size: 14px; line-height: 1.5; }
.card__badge--house { background: var(--ink); color: var(--yolk); border-color: var(--ink); }
.card__badge--personal { background: var(--yolk); }

.grid--collection .card__art { aspect-ratio: 1 / .96; }
.grid--collection .card__title { font-size: clamp(19px, 1.65vw, 24px); }
.sec--crow .card { box-shadow: var(--sx) 7px 0 var(--ink); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.cat {
  --bg: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 1 / 1.1; padding: 16px 10px; text-align: center; text-decoration: none;
  background: var(--bg); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 46% 54% 50% 50% / 50% 44% 56% 50%;
  box-shadow: var(--shadow);
  font-family: var(--f-display); font-weight: 800; font-stretch: 84%;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.05;
  transition: transform .45s var(--spring), border-radius .7s var(--spring), box-shadow .3s var(--spring);
}
:lang(ar) .cat { line-height: 1.3; }
.cat-grid li:nth-child(2) .cat { border-radius: 54% 46% 44% 56% / 48% 56% 44% 52%; }
.cat-grid li:nth-child(3) .cat { border-radius: 50% 50% 56% 44% / 56% 48% 52% 44%; }
.cat-grid li:nth-child(4) .cat { border-radius: 44% 56% 48% 52% / 52% 50% 50% 48%; }
.cat-grid li:nth-child(5) .cat { border-radius: 52% 48% 54% 46% / 46% 54% 46% 54%; }
.cat-grid li:nth-child(6) .cat { border-radius: 48% 52% 46% 54% / 54% 46% 54% 46%; }
.cat svg { width: 46%; height: auto; transition: transform .5s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .cat:hover { transform: rotate(-4deg) scale(1.05); border-radius: 56% 44% 52% 48% / 44% 56% 44% 56%; }
  .cat:hover svg { transform: translateY(-4px) rotate(6deg); }
}
.cat:active { transform: scale(.95); }
.cat--yolk { --bg: var(--yolk); }
.cat--crow { --bg: var(--crow); color: var(--cream); }
.cat--tomato { --bg: var(--tomato); }
.cat--ink { --bg: var(--ink); color: var(--cream); }
.cat--cream { --bg: var(--cream); }
.cat--lilac { --bg: var(--crow-soft); }

/* ---------- seller band ---------- */
.band { position: relative; overflow: clip; background: var(--ink); color: var(--cream); padding-block: clamp(100px, 11vw, 168px) clamp(90px, 10vw, 150px); --focus: var(--yolk); }
.band__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.band__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(60px, 9.4vw, 156px); line-height: .84; letter-spacing: -.025em; color: var(--yolk);
}
:lang(ar) .band__title { font-stretch: 100%; line-height: 1.1; letter-spacing: 0; font-size: clamp(52px, 7.4vw, 120px); }
.band__lede { margin-top: 22px; font-family: var(--f-display); font-weight: 700; font-stretch: 88%; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }
.band__body { margin-top: 14px; max-width: 38ch; font-size: clamp(17px, 1.35vw, 20px); color: #E5DDF2; }
.band .btn-row { margin-top: 34px; }
.band__art { position: relative; justify-self: center; width: min(100%, 360px); }
.band__egg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(var(--sx) 8px 0 var(--crow)); }
.band__pct { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-stretch: 75%; font-size: 112px; letter-spacing: -.03em; fill: var(--ink); }
.band__pctlabel { font-family: var(--f-hand); font-weight: 700; font-size: 44px; fill: var(--ink); }
:lang(ar) .band__pctlabel { font-size: 34px; }
.band__chip {
  position: absolute; top: 2%; inset-inline-end: -6%;
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 15px 9px; border: var(--line) solid var(--cream); border-radius: 999px;
  background: var(--tomato); color: var(--ink); rotate: 8deg;
  font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1;
}
.band__chip strong { font-size: 24px; }
.band__crow { position: absolute; bottom: -2%; inset-inline-start: -26%; width: clamp(96px, 9vw, 132px); }
[dir="rtl"] .band__crow .crow { scale: -1 1; }

/* ---------- trust ---------- */
.trust { position: relative; background: var(--yolk); padding-block: clamp(56px, 7vw, 96px); border-top: var(--line) solid var(--ink); }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.trust__item { display: flex; align-items: flex-start; gap: 16px; }
.trust__item h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 86%; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.1; margin: 6px 0 5px; }
:lang(ar) .trust__item h3 { line-height: 1.35; }
.trust__item p { font-size: 15px; line-height: 1.45; }
.badge { position: relative; flex-shrink: 0; width: 78px; height: 78px; display: grid; place-items: center; }
.badge .scallop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: rotate .8s var(--spring); }
.badge > svg:not(.scallop) { position: relative; width: 44px; height: 44px; }
.badge--yolk { --b: var(--cream); }
.badge--crow { --b: var(--crow); }
.badge--tomato { --b: var(--tomato); }
.badge--cream { --b: var(--shell); }
.badge .scallop path { fill: var(--b); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .trust__item:hover .scallop { rotate: 45deg; } }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--ink); color: var(--cream); padding-top: clamp(76px, 8vw, 112px); --focus: var(--yolk); }
.footer__peek { position: absolute; top: -66px; inset-inline-end: 9%; width: 120px; height: 66px; overflow: hidden; }
.footer__peek .crow { width: 120px; filter: none; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 40px 56px; }
.footer__word {
  font-family: var(--f-brand); font-weight: 800; font-stretch: 75%;
  font-size: clamp(48px, 5.4vw, 80px); line-height: .84; letter-spacing: -.02em; color: var(--yolk);
  max-width: 6ch;
}
.footer__tag { margin-top: 16px; font-weight: 600; color: #E5DDF2; }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__h { font-family: var(--f-hand); font-weight: 700; font-size: 27px; line-height: 1; color: var(--yolk); margin-bottom: 12px; }
:lang(ar) .footer__h { font-size: 20px; }
.footer__nav a { display: inline-block; padding: 5px 0; font-weight: 600; text-decoration: none; transition: color .2s ease, translate .3s var(--spring); }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { color: var(--yolk); translate: 4px 0; } [dir="rtl"] .footer__nav a:hover { translate: -4px 0; } }
.footer__legal { margin-top: 64px; padding-block: 24px 28px; border-top: 2px dashed rgba(255, 244, 220, .22); font-size: 14px; color: #CFC6DD; }

/* =========================================================
   RESPONSIVE (home)
   ========================================================= */
@media (max-width: 1100px) {
  .grid--collection, .grid--trending, .grid--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 60px; }
  .step:nth-child(even) { translate: 0 30px; }
  .steps__path { display: none; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 20px 56px; gap: 0; }
  .hero__title { margin-top: 20px; }
  .stage { height: clamp(430px, 112vw, 560px); margin-top: 10px; }
  .stage__hint { top: 2%; }
  .band__inner { grid-template-columns: 1fr; }
  .band__art { width: min(78%, 320px); margin-top: 24px; }
  .band__crow { inset-inline-start: -30%; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .grid { gap: 14px; }
  .grid--trending { row-gap: 22px; }
  .card { --r: 20px; }
  .card__body { padding: 11px 12px 13px; }
  .card__title { font-size: 16px; }
  .card__by { font-size: 12.5px; }
  .card__desc { display: none; }
  .price { font-size: 18px; }
  .chip { font-size: 10.5px; padding: 2px 7px; }
  .add { width: 38px; height: 38px; top: 8px; inset-inline-end: 8px; }
  .add svg { width: 18px; height: 18px; }
  .card__badge { font-size: 15px; top: 10px; inset-inline-start: 8px; padding: 2px 8px 3px; }
  .steps { grid-template-columns: 1fr; row-gap: 44px; }
  .step, .step:nth-child(even) { translate: none; rotate: 0deg; }
  .step:nth-child(odd) { rotate: -1deg; }
  .step:nth-child(even) { rotate: 1deg; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__list { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage__crow { width: 92px; bottom: 15%; inset-inline-start: 0; }
  .stage__crow .bubble { inset-inline-start: 40%; }
  .bubble { font-size: 18px; max-width: 160px; }
  .hero__sub { font-size: 13px; letter-spacing: .05em; }
  .hatch-label__name { font-size: 16px; }
  .footer__peek { inset-inline-end: 6%; }
}

/* numbers: Latin digits in Bricolage, Arabic currency glyphs fall back to Baloo */
:root { --f-num: "Bricolage Grotesque", "Baloo Bhaijaan 2", system-ui, sans-serif; }
.price, :lang(ar) .price { font-family: var(--f-num); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ribbon__track { animation: none; }
  .stage__burst .burst__rays { animation: none; }
}
