/* ==========================================================
   DEESA — Your Vibe. Your Rug.
   Dark mode is the default; [data-theme="light"] switches.
   ========================================================== */
:root {
  /* brand colours (same in both themes) */
  --ink: #16130F;
  --cream: #FFF4E0;
  --yellow: #FFC83D;
  --yellow-soft: #FFE08A;
  --orange: #FF6A1A;
  --pink: #FF5CA8;
  --pink-soft: #FFD6EA;
  --blue: #3D5FD9;
  --blue-deep: #2440A8;
  --sky: #9FE6F2;
  --lilac: #B9A6F5;
  --red: #E8322B;
  --green: #1C8A55;
  --green-soft: #D4F5E2;
  --orange-soft: #FFE1CC;

  /* theme tokens — DARK (default) */
  --bg: #17131C;
  --bg-2: #1F1926;
  --surface: #2A2333;
  --surface-2: #362D41;
  --fg: #FFF4E0;
  --muted: rgba(255, 244, 224, .72);
  --line: #000;
  --shadow-c: #000;
  --logo: var(--yellow);
  --logo-front: #FFC83D;
  --logo-side: #FF8A1A;
  --logo-glow: rgba(255, 200, 61, .35);
  --nav-glass: rgba(23, 19, 28, .86);
  --hero-0: #17131C;
  --hero-1: #241B3D;
  --hero-2: #3B2366;
  --hero-3: #FF6A1A;
  --hero-4: #FF5CA8;
  --how-panel: #2A2034;
  --why-blob: #2C2140;
  --faq-blob: #3D5FD9;
  --faq-blob-o: .22;
  --footer: #0E0B12;
  --dot: rgba(255, 244, 224, .10);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-script: "Shrikhand", "Bricolage Grotesque", serif;
  --f-hand: "Caveat", cursive;
  --f-ar: "Lalezar", "Cairo", sans-serif;

  --r-lg: 44px;
  --r-md: 22px;
  --shadow: 5px 5px 0 var(--shadow-c);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #FFFBF2;
  --bg-2: #FFF6E2;
  --surface: #FFFFFF;
  --surface-2: #FFF6E2;
  --fg: #16130F;
  --muted: rgba(22, 19, 15, .75);
  --line: #16130F;
  --shadow-c: #16130F;
  --logo: #16130F;
  --logo-front: #3D5FD9;
  --logo-side: #2440A8;
  --logo-glow: rgba(61, 95, 217, .25);
  --nav-glass: rgba(255, 251, 242, .92);
  --hero-0: #FFE08A;
  --hero-1: #FFD25E;
  --hero-2: #FFB23F;
  --hero-3: #FF8A2B;
  --hero-4: #FF5CA8;
  --how-panel: #FFD6EA;
  --why-blob: #FFC83D;
  --faq-blob: #9FE6F2;
  --faq-blob-o: .5;
  --footer: #16130F;
  --dot: rgba(22, 19, 15, .15);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.ar, [lang="ar"] { font-family: var(--f-ar); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: stretch;
  font-weight: 800; font-size: 15px; text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 12px;
  background: var(--yellow); color: var(--ink);
  padding-block: 0; padding-inline: 18px 0; line-height: 46px; overflow: hidden;
  box-shadow: 3px 3px 0 var(--shadow-c);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:not(:has(.btn__arrow)) { padding: 0 18px; }
.btn__arrow {
  display: inline-grid; place-items: center;
  margin-inline-start: 14px; width: 46px;
  border-inline-start: 2.5px solid var(--ink);
  background: rgba(255,255,255,.25);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow-c); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-c); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--pink { background: var(--pink); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: none; color: var(--fg); border-color: currentColor; }
.btn--ghost:hover { box-shadow: none; }
.btn[disabled] { opacity: .35; pointer-events: none; }

.pill {
  position: relative; z-index: 1;
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 15px; color: var(--fg);
  padding: 9px 16px; border-radius: 999px;
  transition: color .25s;
}
.pill.is-hot { color: var(--ink); }

/* ---------- splash: logo draws itself, fills, spins, flies to the menu ---------- */
html.is-loading body { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #0A090C; overflow: hidden;
  animation: ldSafety 0s 7s forwards; /* never stays if something goes wrong */
}
.loader.is-done { visibility: hidden; pointer-events: none; }
@keyframes ldSafety { to { visibility: hidden; pointer-events: none; } }
.loader__stage { position: relative; z-index: 2; width: min(340px, 72vw); aspect-ratio: 2749 / 1405; perspective: 900px; transform-origin: 50% 50%; }
.loader__spin { width: 100%; height: 100%; transform-style: preserve-3d; animation: ldSpin 1s 1.42s cubic-bezier(.65,0,.35,1) both; }
.loader__logo { display: block; width: 100%; height: 100%; overflow: visible; color: transparent; animation: ldFill .55s 1.05s ease forwards; }
/* each shape of the logo draws its own outline, sweeping left to right */
.ld-strokes path { fill: none; stroke: #FFC83D; stroke-width: 15; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1;
  animation: ldDraw .8s calc(.12s + var(--i) * .035s) cubic-bezier(.55,0,.3,1) forwards; }
.ld-strokes { animation: ldStrokeOut .45s 1.15s ease forwards; }
@keyframes ldDraw { to { stroke-dashoffset: 0; } }
@keyframes ldStrokeOut { to { opacity: 0; } }
@keyframes ldFill { to { color: #FFC83D; filter: drop-shadow(0 0 22px rgba(255,200,61,.5)); } }
@keyframes ldSpin {
  0%   { transform: rotateY(0deg) scale(1); }
  55%  { transform: rotateY(250deg) scale(1.14); }
  100% { transform: rotateY(360deg) scale(1); }
}
.loader__glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,200,61,.32), rgba(255,92,168,.12) 55%, transparent); opacity: 0; animation: ldGlow 1.5s 1s ease-out forwards; }
@keyframes ldGlow { 0% { opacity: 0; transform: scale(.35); } 45% { opacity: 1; transform: scale(1.1); } 100% { opacity: .6; transform: scale(1); } }
/* speed lines that whoosh past, same slant as the logo */
.loader__lines { position: absolute; inset: -20%; transform: rotate(-12deg); }
.loader__lines i { position: absolute; left: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #FFC83D, rgba(255,200,61,0)); opacity: 0; animation: ldLine .75s cubic-bezier(.5,0,.3,1) forwards; }
.loader__lines i:nth-child(1) { top: 38%; width: 34vw; animation-delay: 1.12s; }
.loader__lines i:nth-child(2) { top: 44%; width: 22vw; animation-delay: 1.22s; background: linear-gradient(90deg, #FF5CA8, rgba(255,92,168,0)); }
.loader__lines i:nth-child(3) { top: 49%; width: 46vw; animation-delay: 1.3s; height: 6px; }
.loader__lines i:nth-child(4) { top: 53%; width: 28vw; animation-delay: 1.18s; background: linear-gradient(90deg, #FF6A1A, rgba(255,106,26,0)); }
.loader__lines i:nth-child(5) { top: 58%; width: 40vw; animation-delay: 1.36s; }
.loader__lines i:nth-child(6) { top: 63%; width: 18vw; animation-delay: 1.26s; background: linear-gradient(90deg, #9FE6F2, rgba(159,230,242,0)); height: 3px; }
.loader__lines i:nth-child(7) { top: 33%; width: 24vw; animation-delay: 1.4s; height: 3px; }
@keyframes ldLine { 0% { transform: translateX(130vw); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateX(-60vw); opacity: 0; } }

/* the menu bar drops in once the splash is done */
html.is-loading .nav__logo { opacity: 0; }
html.is-loading .nav__links, html.is-loading .nav__right > * { opacity: 0; }
html.is-ready:not(.is-settled) .nav__links { animation: navDrop .6s cubic-bezier(.3,1.4,.5,1) backwards; }
html.is-ready:not(.is-settled) .nav__right > * { animation: navDrop .6s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: calc(.12s + var(--d, 0) * .07s); }
.nav__right > :nth-child(2) { --d: 1; }
.nav__right > :nth-child(3) { --d: 2; }
.nav__right > :nth-child(4) { --d: 3; }
.nav__right > :nth-child(5) { --d: 4; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-18px) rotate(-6deg); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .25s, box-shadow .25s, padding .25s;
}
.nav.is-scrolled { background: var(--nav-glass); backdrop-filter: blur(10px); box-shadow: 0 2px 0 var(--line); padding-block: 8px; }
.nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
.nav__logo { display: block; color: var(--logo); }
.nav__logo svg { display: block; height: 50px; width: auto; aspect-ratio: 2749 / 1405; transition: transform .2s; }
.nav__logo:hover svg { transform: rotate(-4deg) scale(1.05); }
/* desktop menu: a track with a yellow blob that slides to the item you point at */
.nav__links { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c); }
.nav__blob { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; z-index: 0; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.3,1.35,.5,1), width .5s cubic-bezier(.3,1.35,.5,1), opacity .25s; }
.nav__blob.is-on { opacity: 1; }
.nav__blob.is-wobble { animation: blobWobble .5s ease-out; }
@keyframes blobWobble { 30% { scale: 1.08 .82; } 60% { scale: .97 1.06; } }
.nav__menu-foot { display: none; }
.nav__right { display: flex; gap: 10px; align-items: center; }
.round-btn {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 3px 3px 0 var(--shadow-c); transition: transform .15s;
}
.round-btn:hover { transform: rotate(-8deg); }
/* glowing bag: once something is in it, a rainbow ring spins around it,
   a shine sweeps across and little sparkles twinkle */
.bag-btn { isolation: isolate; background: transparent; }
.bag-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--cream); }
.bag-btn__ring { position: absolute; inset: -6px; z-index: -2; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .4s;
  background: conic-gradient(#FFC83D, #FF5CA8, #FF6A1A, #3D5FD9, #9FE6F2, #FFC83D); }
.bag-btn__ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: inherit; filter: blur(12px); opacity: .85; }
.bag-btn__shine { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.bag-btn__shine::after { content: ""; position: absolute; top: -60%; left: -130%; width: 55%; height: 220%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); transform: rotate(25deg); opacity: 0; }
.bag-btn__sparks i { position: absolute; width: 11px; height: 11px; background: #FFC83D; opacity: 0; pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.bag-btn__sparks i:nth-child(1) { top: -11px; left: -7px; }
.bag-btn__sparks i:nth-child(2) { bottom: -9px; left: -11px; width: 8px; height: 8px; background: #FF5CA8; }
.bag-btn__sparks i:nth-child(3) { top: 8px; right: -15px; width: 9px; height: 9px; background: #9FE6F2; }
.bag-btn__sparks i:nth-child(4) { bottom: -13px; right: 6px; }
.bag-btn.has-items { box-shadow: 3px 3px 0 var(--shadow-c), 0 0 26px rgba(255,200,61,.55); }
.bag-btn.has-items .bag-btn__ring { opacity: 1; animation: ringSpin 2.6s linear infinite; }
.bag-btn.has-items .bag-btn__shine::after { animation: shineSweep 2.8s ease-in-out infinite; }
.bag-btn.has-items .bag-btn__sparks i { animation: twinkle 1.9s ease-in-out infinite; }
.bag-btn.has-items .bag-btn__sparks i:nth-child(2) { animation-delay: .5s; }
.bag-btn.has-items .bag-btn__sparks i:nth-child(3) { animation-delay: 1s; }
.bag-btn.has-items .bag-btn__sparks i:nth-child(4) { animation-delay: 1.4s; }
.bag-btn.has-items .bag-btn__icon { animation: bagBreathe 2.8s ease-in-out infinite; }
.bag-btn.has-items .bag-btn__count { animation: countPulse 1.8s ease-out infinite; }
.bag-btn.has-items .bag-btn__count.bump { animation: bump .4s, countPulse 1.8s .4s ease-out infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes shineSweep { 0% { left: -130%; opacity: 1; } 40%, 100% { left: 170%; opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(90deg); } 70% { opacity: .6; transform: scale(.7) rotate(140deg); } }
@keyframes bagBreathe { 0%, 30%, 100% { transform: none; } 10% { transform: scale(1.14) rotate(-8deg); } 20% { transform: scale(.96) rotate(5deg); } }
@keyframes countPulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,168,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,92,168,0); } }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
.bag-btn__count {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.bag-btn__count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.5) rotate(12deg); } }
.burger { display: none; background: var(--yellow); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- headings ---------- */
.h-big { font-weight: 800; letter-spacing: -0.04em; line-height: .95; font-size: clamp(44px, 7vw, 96px); margin: 0; }
.h-big--light { color: #fff; }
.h-script { font-family: var(--f-script); font-weight: 400; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.05; margin: 0 0 16px; color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-sub { font-size: 18px; margin: 14px auto 0; max-width: 580px; color: var(--muted); }
.section-sub--light { color: #fff; }
.scribble { font-family: var(--f-hand); font-size: 30px; line-height: 1; color: var(--yellow); transform: rotate(-6deg); margin: 0; }
[data-theme="light"] .scribble { color: var(--blue); }
.scribble--sm { font-size: 26px; margin-bottom: 8px; display: inline-block; }
.scribble--light, [data-theme="light"] .scribble--light { color: var(--yellow); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 90px; overflow: hidden; isolation: isolate;
}
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__waves .w0 { fill: var(--hero-0); }
.hero__waves .w1 { fill: var(--hero-1); }
.hero__waves .w2 { fill: var(--hero-2); }
.hero__waves .w3 { fill: var(--hero-3); }
.hero__waves .w4 { fill: var(--hero-4); }
.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 1100px; }
.hero__kicker { position: relative; font-family: var(--f-hand); font-size: clamp(26px, 3vw, 34px); line-height: 1; color: var(--yellow); margin: 0 0 26px; padding-bottom: 10px; transform: rotate(-3deg); }
[data-theme="light"] .hero__kicker { color: var(--blue); }
.hero__kicker svg { position: absolute; left: -2%; bottom: -4px; width: 104%; height: 14px; overflow: visible; }
.hero__kicker path { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s .9s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__title { font-weight: 800; letter-spacing: -0.055em; line-height: .86; font-size: clamp(60px, 10vw, 156px); margin: 0; }
.hero__lead { max-width: 520px; font-size: 18px; margin: 10px 0 26px; color: var(--muted); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 3D spinning logo: stacked SVG layers give it real thickness */
.logo3d { position: relative; width: min(620px, 86vw); aspect-ratio: 2749 / 1405; margin: 26px 0 30px; perspective: 1400px; cursor: grab; }
.logo3d__float { position: absolute; inset: 0; animation: float3d 5s ease-in-out infinite; transform-style: preserve-3d; }
.logo3d__spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin3d 7s cubic-bezier(.65,0,.35,1) infinite; }
.logo3d__layer { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; }
.logo3d__layer--front { color: var(--logo-front); filter: drop-shadow(0 0 18px var(--logo-glow)); }
.logo3d__layer--side { color: color-mix(in srgb, var(--logo-side), #000 calc(var(--t) * 45%)); }
.logo3d__layer--back { color: color-mix(in srgb, var(--logo-side), #000 45%); }
.logo3d__shadow { position: absolute; left: 12%; right: 12%; bottom: -14%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); animation: shadow3d 5s ease-in-out infinite; }
.logo3d.is-fast .logo3d__spin { animation-duration: 1.4s; }
@keyframes spin3d {
  0%   { transform: rotateY(0deg) rotateX(6deg); }
  45%  { transform: rotateY(0deg) rotateX(6deg); }
  75%  { transform: rotateY(360deg) rotateX(6deg); }
  100% { transform: rotateY(360deg) rotateX(6deg); }
}
@keyframes float3d { 50% { transform: translateY(-14px) rotateZ(-1.5deg); } }
@keyframes shadow3d { 50% { transform: scaleX(.85); opacity: .7; } }

/* ---------- ribbons ---------- */
.ribbons { position: relative; height: 170px; overflow: hidden; margin: -30px 0 0; z-index: 2; }
.ribbon { position: absolute; left: -5%; width: 110%; border-block: 3px solid var(--ink); overflow: hidden; padding: 12px 0; }
.ribbon--blue { top: 30px; background: var(--blue); color: #fff; transform: rotate(-3deg); }
.ribbon--pink { top: 92px; background: var(--pink); color: #fff; transform: rotate(2deg); }
.ribbon--yellow { top: 30px; background: var(--yellow); color: var(--ink); transform: rotate(2.5deg); }
.ribbon--orange { top: 92px; background: var(--orange); color: #fff; transform: rotate(-2deg); }
.ribbon__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ribbon__track--rev { animation-direction: reverse; }
.ribbon__track span { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; white-space: nowrap; padding-inline-end: 0.3em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.badge--ready { background: var(--green-soft); color: var(--green); }
.badge--made { background: var(--orange-soft); color: #C2410C; }

/* ---------- shop ---------- */
.shop { padding: 90px var(--gutter) 80px; }
/* rug card: photo, name, price, AR + add to bag. Everything else is in the popup. */
.card {
  --tilt: -1.2deg; --bg: var(--blue); --fg: #fff;
  position: relative; background: var(--bg); color: var(--fg); border: 3px solid var(--ink); border-radius: 26px;
  padding: 12px 12px 14px; transform: rotate(var(--tilt));
  box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.3,1.5,.6,1), box-shadow .25s;
  display: flex; flex-direction: column; cursor: pointer;
}
.card:nth-child(even) { --tilt: 1.2deg; }
.card:nth-child(3n) { --tilt: -0.5deg; }
.card:hover { transform: rotate(0) translateY(-8px); box-shadow: 9px 11px 0 var(--shadow-c); }
.card[data-color="blue"] { --bg: var(--blue); --fg: #fff; }
.card[data-color="sky"] { --bg: var(--sky); --fg: var(--ink); }
.card[data-color="orange"] { --bg: var(--orange); --fg: #fff; }
.card[data-color="pink"] { --bg: var(--pink); --fg: #fff; }
.card[data-color="yellow"] { --bg: var(--yellow); --fg: var(--ink); }
.card[data-color="green"] { --bg: #2FB36E; --fg: #fff; }
.card__img { position: relative; border-radius: 18px; overflow: hidden; border: 2.5px solid var(--ink); aspect-ratio: 1; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.card .price { margin: 0 0 6px; font-size: 26px; }
.card__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: 4px 10px; border: 1.5px solid var(--ink); }
.price { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.price small { font-size: 14px; font-weight: 700; margin-inline-start: 3px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; }
.card__ar, .card__add { height: 46px; border-radius: 14px; border: 2.5px solid var(--ink); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.card__ar { flex: none; gap: 6px; padding: 0 14px; background: var(--ink); color: var(--yellow); box-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.card__ar:hover { transform: translate(-1px, -1px) rotate(-3deg); }
.card__add { flex: 1; min-width: 0; justify-content: space-between; gap: 8px; padding-inline: 14px 6px; background: #fff; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.card__add span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__add b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 18px; line-height: 1; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.card__add:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.card__add:hover b { transform: rotate(90deg) scale(1.1); }
.card__add:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
/* "coming soon" card for an empty row */
.card--soon { cursor: default; }
.soon__art { display: grid; place-items: center; background: conic-gradient(var(--ink) 25%, var(--yellow) 0 50%, var(--ink) 0 75%, var(--yellow) 0) 0 0 / 34px 34px; }
.soon__art span { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--ink); font-size: clamp(44px, 7vw, 70px); box-shadow: 5px 5px 0 var(--ink); animation: soonFloat 3s ease-in-out infinite; }
@keyframes soonFloat { 50% { transform: translateY(-8px) rotate(-6deg); } }
.soon__p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.4; }
.shop__more { text-align: center; margin-top: 60px; display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.shop__more p { font-family: var(--f-hand); font-size: 32px; margin: 0; transform: rotate(-4deg); }

/* ---------- size check (cards, modal, custom rug) ---------- */
.sizecheck { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; }
.sizecheck__fig { flex: none; display: flex; align-items: flex-end; gap: 8px; }
.sizecheck__rug { display: block; background: var(--orange); border: 2px solid var(--ink); border-radius: 3px; transition: width .4s cubic-bezier(.3,1.5,.6,1), height .4s cubic-bezier(.3,1.5,.6,1), border-radius .3s; }
.sizecheck__rug--circle { border-radius: 50%; }
.sizecheck__rug--arch { border-radius: 999px 999px 3px 3px; }
.sizecheck__rug--cut { border-radius: 38% 42% 30% 34% / 30% 34% 38% 36%; }
.sizecheck__person { display: block; fill: var(--ink); width: auto; }
.sizecheck__txt { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.sizecheck__txt b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sizecheck__txt span { font-weight: 700; }
.sizecheck__txt em { font-style: normal; opacity: .65; font-size: 12px; }
.sizecheck--lg { padding: 12px 16px; }
.sizecheck--lg .sizecheck__txt { font-size: 15px; }

/* ---------- panels ---------- */
.panel { border-radius: var(--r-lg); margin: 0 auto; max-width: 1400px; position: relative; overflow: hidden; }
.panel--how { background: var(--how-panel); border: 3px solid var(--line); }
.panel--blue { background: var(--blue); border: 3px solid var(--ink); color: #fff; }

/* ---------- how ---------- */
.how { padding: 40px var(--gutter); }
.how .panel { padding: 60px clamp(20px, 4vw, 60px) 70px; }
.how__head { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.how__head .btn { margin-inline-start: auto; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  border: 3px solid var(--ink); border-radius: 26px; padding: 24px 22px 28px; min-height: 340px; color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink); transition: transform .3s cubic-bezier(.3,1.5,.6,1);
  display: flex; flex-direction: column;
}
.step h3 { font-weight: 800; font-size: 30px; line-height: .95; letter-spacing: -0.03em; margin: auto 0 10px; }
.step p { margin: 0; font-size: 15px; }
.step .step__num { font-family: var(--f-hand); font-size: 26px; margin: 0 0 4px; text-align: center; }
.step__icon { font-size: 64px; text-align: center; margin: 10px 0 20px; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.25)); }
.step--1 { background: var(--sky); transform: rotate(-6deg) translateY(30px); z-index: 1; }
.step--2 { background: var(--pink); color: #fff; transform: rotate(-2deg) translateX(-14px); z-index: 2; }
.step--3 { background: var(--yellow); transform: rotate(3deg) translateX(-28px) translateY(10px); z-index: 3; }
.step--4 { background: var(--lilac); transform: rotate(6deg) translateX(-42px) translateY(-6px); z-index: 4; }
.step:hover { transform: rotate(0) translateY(-14px) scale(1.04); z-index: 9; }

/* ---------- custom rug (handled on WhatsApp) ---------- */
.studio { padding: 110px var(--gutter) 100px; margin-top: 70px; position: relative;
  background: conic-gradient(var(--blue-deep) 25%, var(--blue) 0 50%, var(--blue-deep) 0 75%, var(--blue) 0) 0 0 / 64px 64px; }
.studio::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61,95,217,.85), rgba(61,95,217,.6) 40%, rgba(61,95,217,.85)); pointer-events: none; }
.studio > * { position: relative; }
.studio__head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.custom { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.custom__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: c; }
.cstep { position: relative; border: 3px solid var(--ink); border-radius: 24px; padding: 22px 20px 24px; color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.cstep:hover { transform: translateY(-6px) rotate(0) !important; }
.cstep h3 { overflow-wrap: break-word; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 8px; }
.cstep p { margin: 0; font-size: 15px; }
.cstep__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 20px; }
.cstep--1 { background: var(--yellow); transform: rotate(-2deg); }
.cstep--2 { background: var(--pink); color: #fff; transform: rotate(1.5deg); }
.cstep--3 { background: var(--sky); transform: rotate(-1deg); }
.cstep--4 { background: var(--lilac); transform: rotate(2deg); }
.custom__cta { background: var(--bg); color: var(--fg); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 10px 10px 0 var(--ink); padding: 36px clamp(20px, 4vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.custom__ask { font-family: var(--f-script); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0; color: var(--yellow); }
[data-theme="light"] .custom__ask { color: var(--blue); }
.idea-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.idea-chip { text-decoration: none; font-weight: 700; font-size: 15px; border: 2.5px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 14px; padding: 10px 16px; transition: transform .15s, background .15s; }
.idea-chip:hover { transform: rotate(-3deg) translateY(-2px); background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn--wa { background: #25D366; color: var(--ink); font-size: 17px; gap: 10px; align-items: center; }
.btn--wa svg { flex: none; }
.btn--wa .btn__arrow { align-self: stretch; }
.custom__btn { line-height: 56px; }
.custom__fine { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- form fields (bag checkout) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: 14px; }
.field input, .field select { font: inherit; font-size: 16px; color: var(--fg); border: 2.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--surface); width: 100%; }
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus { outline: none; box-shadow: 3px 3px 0 var(--yellow); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- AR ---------- */
.ar-link { display: inline-flex; align-items: center; gap: 8px; border: 2.5px solid var(--fg); background: transparent; color: var(--fg); border-radius: 12px; padding: 10px 16px; font-weight: 800; font-size: 15px; width: 100%; justify-content: center; transition: background .15s, color .15s; }
.ar-link:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

.arv { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.arv[hidden] { display: none; }
.arv__card { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); color: var(--fg); border: 3px solid var(--ink); border-radius: 30px; box-shadow: 10px 10px 0 var(--yellow); animation: pop .35s cubic-bezier(.3,1.5,.6,1); display: flex; flex-direction: column; }
.arv__head { padding-block: 22px 12px; padding-inline: 24px 70px; }
.arv__kicker { margin: 0; font-family: var(--f-hand); font-size: 24px; color: var(--yellow); }
[data-theme="light"] .arv__kicker { color: var(--blue); }
.arv__head h3 { margin: 2px 0 4px; font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1; }
.arv__size { margin: 0; font-size: 14px; color: var(--muted); }
.arv__stage { position: relative; aspect-ratio: 1 / .85; margin: 0 16px; border-radius: 20px; border: 2.5px solid var(--line); overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg-2)); }
.arv__stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.arv__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-weight: 700; color: var(--muted); }
.arv__loading[hidden] { display: none; }
.arv__loading span { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--yellow); animation: spinner .8s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }
.arv__foot { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.arv__go { justify-content: space-between; line-height: 54px; font-size: 17px; }
.arv__go[hidden], .arv__qr[hidden] { display: none; }
.arv__qr { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 2.5px solid var(--line); border-radius: 18px; padding: 12px; }
.arv__qrcode { flex: none; background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.arv__qrcode img { display: block; width: 132px; height: 132px; }
.arv__qr p { margin: 0; font-size: 14.5px; }
.arv__inapp { display: grid; gap: 12px; background: var(--surface); border: 2.5px solid var(--line); border-radius: 18px; padding: 14px; }
.arv__inapp[hidden] { display: none; }
.arv__inapp p { margin: 0; font-size: 14.5px; }
.arv__copy { justify-content: center; }
.arv__tips { margin: 0; padding: 0; padding-inline-start: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 3px; }

/* ---------- timeline (delivery) ---------- */
.timeline { --n: 3; display: grid; grid-template-columns: repeat(var(--n), 1fr); margin: 10px 0 18px; position: relative; }
.timeline--4 { --n: 4; }
.timeline::before { content: ""; position: absolute; top: 15px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; background: repeating-linear-gradient(90deg, var(--fg) 0 8px, transparent 8px 14px); opacity: .6; }
.tl { text-align: center; position: relative; font-size: 13px; line-height: 1.25; padding: 0 2px; }
.tl i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--cream); font-style: normal; font-size: 15px; position: relative; }
.tl b { display: block; font-size: 14px; }
.tl--done i { background: var(--yellow); }
.tl--end i { background: var(--green); color: #fff; }

/* ---------- anything list ---------- */
.anything { background: var(--pink); color: var(--ink); border-block: 3px solid var(--ink); padding: 90px var(--gutter); text-align: center; position: relative; overflow: hidden; margin-top: 100px; }
.anything .anything__kicker { font-size: 44px; margin-bottom: 10px; color: var(--ink); }
.anything__list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.anything__list li { font-weight: 800; letter-spacing: -0.045em; line-height: .98; font-size: clamp(40px, 7.4vw, 108px); transition: color .2s, transform .2s; cursor: default; }
.anything__list li:hover { color: #fff; -webkit-text-stroke: 3px var(--ink); transform: scale(1.03) rotate(-1deg); }
.anything__list .anything__more { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; color: var(--yellow); -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--ink); margin-top: 12px; }
.anything__peek { position: absolute; width: 230px; aspect-ratio: 3/4; object-fit: cover; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); pointer-events: none; z-index: 1; opacity: 0; transform: rotate(-6deg) scale(.8); transition: opacity .2s, transform .25s cubic-bezier(.3,1.5,.6,1); }
.anything__peek.is-on { opacity: 1; transform: rotate(-6deg) scale(1); }

/* ---------- why ---------- */
.why { background: var(--bg-2); padding: 90px var(--gutter); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--why-blob); border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%; animation: blob 18s ease-in-out infinite; }
@keyframes blob { 50% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; transform: translate(-50%,-50%) rotate(25deg); } }
.why__stage { position: relative; max-width: 1000px; height: 520px; margin: 0 auto; }
.why__arc { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 460px; overflow: visible; }
.why__arc text { font-family: var(--f-script); font-size: 46px; fill: var(--pink); }
.why__logo { position: absolute; left: 50%; top: 50%; width: 400px; aspect-ratio: 2749 / 1405; color: var(--logo); transform: translate(-50%, -40%) rotate(-3deg); }
.sticker { position: absolute; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(22px, 3.2vw, 44px); padding: 6px 24px 10px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); white-space: nowrap; color: var(--ink); transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.sticker:hover { transform: rotate(0) scale(1.08) !important; }
.sticker--1 { background: var(--pink); color: #fff; top: 120px; left: 0; transform: rotate(-6deg); }
.sticker--2 { background: var(--orange); color: #fff; top: 140px; right: 0; transform: rotate(5deg); }
.sticker--3 { background: var(--lilac); top: 290px; left: 4%; transform: rotate(3deg); }
.sticker--4 { background: var(--sky); top: 330px; right: 2%; transform: rotate(-4deg); }
.sticker--5 { background: var(--green); color: #fff; bottom: 10px; left: 14%; transform: rotate(-3deg); }
.sticker--6 { background: var(--blue); color: var(--yellow); bottom: 0; right: 18%; transform: rotate(6deg); }
.why__copy { position: relative; text-align: center; max-width: 620px; margin: 30px auto 0; font-size: 19px; font-weight: 600; }
.why__copy .ar { display: block; font-size: 30px; margin-top: 10px; color: var(--yellow); }
[data-theme="light"] .why__copy .ar { color: var(--blue); }

/* ---------- story ---------- */
.story { padding: 100px var(--gutter); }
.story__panel { display: grid; grid-template-columns: 0.9fr 1.1fr 0.6fr; gap: 40px; padding: 50px; align-items: center;
  background: conic-gradient(#2E4CC2 25%, var(--blue) 0 50%, #2E4CC2 0 75%, var(--blue) 0) 0 0 / 56px 56px; }
.story__video { position: relative; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-3deg); aspect-ratio: 9/14; background: var(--ink); }
.story__video video { width: 100%; height: 100%; object-fit: cover; }
.story__tag { position: absolute; inset-inline-start: 12px; bottom: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.story__copy { background: rgba(22,19,15,.85); border-radius: 26px; padding: 34px; border: 3px solid var(--ink); }
.story__copy p { font-size: 17px; margin: 0 0 14px; }
.story__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mini-badge { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.story__collage { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(4deg); }

/* ---------- faq ---------- */
.faq { position: relative; padding: 60px var(--gutter) 110px; text-align: center; overflow: hidden; isolation: isolate; }
.faq__blob { position: absolute; width: 760px; left: -260px; top: -80px; fill: var(--faq-blob); opacity: var(--faq-blob-o); z-index: -1; }
.faq .h-big { margin-bottom: 36px; }
.faq__list { max-width: 780px; margin: 0 auto; text-align: start; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 2.5px solid var(--line); border-radius: 18px; transition: background .2s; }
.faq details[open] { background: var(--surface-2); box-shadow: 4px 4px 0 var(--yellow); }
.faq summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 56px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 20px; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--pink); color: #fff; }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 16px; color: var(--muted); }

/* ---------- gift ---------- */
.gift { padding: 20px var(--gutter) 70px; max-width: 1300px; margin: 0 auto; }
.gift__title { font-weight: 800; letter-spacing: -0.05em; line-height: .88; font-size: clamp(56px, 10vw, 150px); margin: 0 0 30px; transform: rotate(-3deg); }
.ribbons--foot { margin: 20px 0 -40px; }

/* ---------- footer ---------- */
.footer { background: var(--footer); color: var(--cream); position: relative; padding-top: 70px; }
.footer__checker { position: absolute; top: 0; left: 0; right: 0; height: 32px; background: conic-gradient(var(--yellow) 25%, var(--footer) 0 50%, var(--yellow) 0 75%, var(--footer) 0) 0 0 / 32px 32px; }
.footer__inner { display: flex; gap: 50px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 50px var(--gutter); max-width: 1300px; margin: 0 auto; }
.footer__logo { width: min(420px, 80vw); aspect-ratio: 2749 / 1405; color: var(--yellow); }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__cols h4 { font-family: var(--f-script); font-weight: 400; color: var(--yellow); font-size: 24px; margin: 0 0 10px; }
.footer__cols a { display: block; text-decoration: none; padding: 4px 0; opacity: .85; }
.footer__cols a:hover { opacity: 1; color: var(--yellow); }
.footer__base { text-align: center; padding: 20px var(--gutter) 30px; margin: 0; border-top: 1px solid rgba(255,244,224,.15); font-size: 14px; opacity: .7; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop, .bag__backdrop { position: absolute; inset: 0; background: rgba(8,6,10,.7); backdrop-filter: blur(3px); }
.modal__backdrop { animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal__card { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(1000px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); color: var(--fg); border: 3px solid var(--ink); border-radius: 32px; box-shadow: 10px 10px 0 var(--yellow); animation: pop .35s cubic-bezier(.3,1.5,.6,1); }
@keyframes pop { from { transform: scale(.9) rotate(-2deg); opacity: 0; } }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 800; transition: transform .2s; }
.modal__close:hover { background: var(--yellow); transform: rotate(90deg); }
.modal__img { border-inline-end: 3px solid var(--ink); background: var(--yellow); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
/* extra photos: thumbnails over the bottom of the photo (swipe works too) */
.modal__img { position: relative; touch-action: pan-y; user-select: none; }
.modal__thumbs { position: absolute; inset-inline: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.modal__thumbs[hidden], .ar-link[hidden] { display: none; }
.modal__thumbs button { width: 52px; height: 52px; padding: 0; border-radius: 12px; overflow: hidden; border: 2.5px solid var(--ink); background: var(--cream); transition: transform .15s; }
.modal__img .modal__thumbs img { width: 100%; height: 100%; min-height: 0; max-height: none; display: block; }
.modal__thumbs button.is-on { border-color: var(--yellow); box-shadow: 0 0 0 2.5px var(--ink); transform: translateY(-3px); }
/* 3D view: a "3D" button on the photo; the viewer is laid over the photo */
.m3d-btn { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 15px 0 12px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, background .15s; }
.m3d-btn:hover { background: var(--yellow); transform: translateY(-2px); }
.m3d-btn[aria-pressed="true"] { background: var(--yellow); }
.m3d-btn[hidden], .m3d[hidden] { display: none; }
.m3d { position: absolute; inset: 0; z-index: 1; background: var(--yellow); overflow: hidden; }
.m3d__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; margin: 0; padding: 24px; text-align: center; font-weight: 800; color: var(--ink); }
.m3d__spin { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid rgba(22, 19, 15, .2); border-top-color: var(--ink); animation: spinner .8s linear infinite; }
.r3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; -webkit-tap-highlight-color: transparent; }
.r3d__canvas.is-grabbing { cursor: grabbing; }
.r3d__canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
.r3d__hint { position: absolute; inset-inline-start: 14px; bottom: 16px; max-width: calc(100% - 150px); margin: 0; padding: 8px 14px; border-radius: 16px; background: rgba(22, 19, 15, .84); color: var(--cream); font-size: 13.5px; font-weight: 700; line-height: 1.3; pointer-events: none; transition: opacity .4s, transform .4s; }
.r3d__hint.is-gone { opacity: 0; transform: translateY(6px); }
.r3d__flip { position: absolute; bottom: 14px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 15px 0 12px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, background .15s; }
.r3d__flip:hover { background: var(--yellow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .m3d__spin { animation: none; } .r3d__hint { transition: none; } }
.modal__info { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.modal__info > * { max-width: 100%; }
.modal__info h3 { font-weight: 800; font-size: 42px; letter-spacing: -0.04em; line-height: .95; margin: 4px 0 0; }
.modal__ar { margin: 0; font-size: 24px; color: var(--yellow); }
[data-theme="light"] .modal__ar { color: var(--blue); }
.modal__info > p { margin: 0; color: var(--muted); }
.modal__info .sizecheck, .modal__info .timeline, .modal__info .specs, .modal__buy { width: 100%; }
.specs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specs li { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.specs b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.modal__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.modal__buy .price { font-size: 40px; }

/* ---------- bag ---------- */
.bag { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.bag.is-open { pointer-events: auto; }
.bag__backdrop { opacity: 0; transition: opacity .25s; }
.bag.is-open .bag__backdrop { opacity: 1; }
.bag__panel { position: absolute; top: 0; inset-inline-end: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); color: var(--fg); border-inline-start: 3px solid var(--ink); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.7,0,.2,1); }
.bag.is-open .bag__panel { transform: none; }
.bag__head { padding: 22px 24px; border-bottom: 3px solid var(--ink); background: var(--yellow); color: var(--ink); position: relative; }
.bag__head h3 { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: 34px; }
.bag__head .modal__close { top: 50%; transform: translateY(-50%); }
.bag__head .modal__close:hover { transform: translateY(-50%) rotate(90deg); }
.bag__body { flex: 1; overflow: auto; padding: 20px 24px; }
.bag__empty { text-align: center; padding: 50px 10px; }
.bag__empty .big { font-size: 64px; }
.bag__done .big { animation: bump .6s .2s; }
.bag__done b { color: var(--yellow); font-size: 1.2em; letter-spacing: .04em; }
/* hidden field that only spam bots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bag__empty p { color: var(--muted); }
.ship { border: 2.5px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.ship__head { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); font-size: 14px; color: var(--ink); }
.ship--ready .ship__head { background: var(--green-soft); }
.ship--made .ship__head { background: var(--orange-soft); }
.ship__head b { font-size: 15px; white-space: nowrap; }
.ship__head span { text-align: end; font-size: 13px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.line + .line { border-top: 1.5px dashed var(--muted); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.line__name { font-weight: 800; line-height: 1.1; }
.line__meta { font-size: 13px; color: var(--muted); }
.line__right { text-align: end; }
.line__price { font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--fg); border-radius: 999px; margin-top: 4px; }
.qty button { width: 26px; height: 26px; border: 0; background: none; font-weight: 800; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }
.ship-choice { background: var(--surface); border: 2.5px solid var(--line); border-radius: 16px; padding: 6px 14px; margin-bottom: 14px; }
.ship-choice p { margin: 8px 0 2px; font-weight: 800; font-size: 14px; }
.ship-choice label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; cursor: pointer; }
.ship-choice input { accent-color: var(--yellow); margin-top: 3px; }
.bag__foot { border-top: 3px solid var(--ink); padding: 18px 24px 22px; background: var(--bg-2); }
.bag__foot[hidden] { display: none; }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.bag__total strong { font-size: 30px; letter-spacing: -0.03em; }
.bag__note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.bag__foot .btn { width: 100%; justify-content: space-between; }
.bag__form .two { gap: 8px; }
.bag__form .field { margin-bottom: 10px; }
.bag__form .field input, .bag__form .field select { padding: 9px 12px; font-size: 15px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; z-index: 150; background: var(--yellow); color: var(--ink); font-weight: 800; padding: 14px 22px; border-radius: 999px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .35s cubic-bezier(.3,1.5,.6,1), visibility 0s .35s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.3,1.5,.6,1); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; translate: 0 40px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; translate: 0 0; }


/* ---------- language button ---------- */
.lang-btn { font-family: var(--f-ar); font-size: 22px; line-height: 1; padding-top: 4px; }
[lang="ar"] .lang-btn { font-family: var(--f-display); font-size: 15px; font-weight: 800; padding-top: 0; }

/* ---------- shop rows: floor / mini / keyboard / wall, each one swipes sideways ---------- */
.rows { display: grid; gap: 30px; max-width: 1240px; margin: 0 auto; }
.row { min-width: 0; }
.row__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-inline: 8px; }
.row__title { margin: 0; font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.row__n { font-style: normal; font-size: 14px; letter-spacing: 0; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; }
.row__sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.row__nav { display: flex; gap: 8px; flex: none; }
.row.is-fit .row__nav { visibility: hidden; }
.rail__btn { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: 20px; font-weight: 800; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--shadow-c); transition: transform .15s, opacity .2s; }
.rail__btn:hover { transform: scale(1.08) rotate(-6deg); }
.rail__btn:disabled { opacity: .3; pointer-events: none; box-shadow: none; }
.rail__track { --gap: 26px; --cw: calc((100% - var(--gap) * 3) / 3.45); display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 8px; padding: 18px 8px 26px; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track .card { flex: 0 0 var(--cw); scroll-snap-align: start; }
.rail__bar { max-width: 200px; height: 5px; margin: 0 auto; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.rail__bar span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 30%; border-radius: inherit; background: var(--yellow); transition: inset-inline-start .15s linear, width .2s; }
.row.is-fit .rail__bar { visibility: hidden; }

/* ---------- gift card ---------- */
.gift__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.gc-stage { perspective: 1100px; display: grid; place-items: center; padding: 20px 0; touch-action: pan-y; }
.gc { --sx: 30%; --sy: 20%; position: relative; width: min(460px, 100%); aspect-ratio: 1.6; border-radius: 26px; border: 3px solid var(--ink); padding: 24px 26px; color: #fff; overflow: hidden; box-shadow: 10px 12px 0 var(--ink);
  background: conic-gradient(#2E4CC2 25%, var(--blue) 0 50%, #2E4CC2 0 75%, var(--blue) 0) 0 0 / 40px 40px;
  display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .25s ease-out; transform: rotate(-4deg); }
.gc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255,92,168,.55), rgba(61,95,217,.1) 45%, rgba(255,200,61,.45)); }
.gc > * { position: relative; }
.gc > .gc__shine, .gc > .gc__checker { position: absolute; }
.gc__shine { inset: 0; background: radial-gradient(circle at var(--sx) var(--sy), rgba(255,255,255,.45), transparent 45%); mix-blend-mode: overlay; pointer-events: none; }
.gc.is-pop { animation: gcPop .45s cubic-bezier(.3,1.6,.6,1); }
@keyframes gcPop { 40% { scale: 1.06; } }
.gc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline-end: 22px; }
.gc__logo { width: 120px; aspect-ratio: 2749 / 1405; color: var(--yellow); filter: drop-shadow(2px 2px 0 var(--ink)); }
.gc__label { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 6px 12px; border-radius: 999px; }
.gc__amount { margin: auto 0 0; font-weight: 800; font-size: clamp(44px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1; color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.gc__amount small { font-size: .4em; margin-inline-start: 6px; letter-spacing: 0; }
.gc__msg { margin: 6px 0 0; min-height: 1.3em; font-family: var(--f-hand); font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; padding-inline-end: 22px; }
.gc__names { display: flex; gap: 18px; margin-top: 10px; font-size: 14px; flex-wrap: wrap; }
.gc__names b { font-weight: 800; opacity: .75; margin-inline-end: 4px; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.gc__names i { font-style: normal; font-weight: 700; }
.gc__checker { inset-inline-end: 0; top: 0; bottom: 0; width: 26px; background: conic-gradient(var(--yellow) 25%, var(--ink) 0 50%, var(--yellow) 0 75%, var(--ink) 0) 0 0 / 13px 13px; border-inline-start: 3px solid var(--ink); }
.gift__form { display: flex; flex-direction: column; gap: 4px; }
.gift__lead { font-size: 19px; color: var(--muted); margin: 0 0 14px; }
.gift__label { font-weight: 800; margin: 0 0 8px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.amount { border: 2.5px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 14px; padding: 10px 18px; font-weight: 800; font-size: 18px; transition: transform .15s; }
.amount small { font-size: 12px; }
.amount:hover { transform: rotate(-3deg); }
.amount.is-on { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow-c); }
.gift__btn { align-self: flex-start; margin-top: 4px; }
.gift__fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.gift__fine a { color: var(--yellow); font-weight: 700; }
[data-theme="light"] .gift__fine a { color: var(--blue); }

/* ---------- parent brand: Al-Rashed ---------- */
.parent { max-width: 1300px; margin: 0 auto; padding: 34px var(--gutter); display: flex; align-items: center; gap: 24px; border-top: 1px solid rgba(255,244,224,.15); }
.parent__tile { flex: none; width: 92px; height: 92px; border-radius: 22px; background: #FFF8EC; border: 2px solid #D2A968; display: grid; place-items: center; padding: 12px; box-shadow: 4px 4px 0 #D2A968; }
.parent__tile img { width: 100%; height: 100%; object-fit: contain; }
.parent__txt p { margin: 0; }
.parent__k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #D2A968; }
.parent__name { font-family: var(--f-script); font-size: 30px; line-height: 1.15; color: #F3DDB2; }
.parent__txt .parent__line { font-size: 14.5px; opacity: .75; max-width: 520px; margin-top: 4px; }

/* ---------- fly-to-bag ---------- */
.fly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 160; }
.fly { position: fixed; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--yarn); will-change: transform; transform-origin: 50% 50%; }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.fly__yarn { position: absolute; inset: 0; opacity: 0; border-radius: inherit;
  background: repeating-linear-gradient(35deg, transparent 0 7%, rgba(0,0,0,.28) 7% 9%), repeating-linear-gradient(-55deg, transparent 0 9%, rgba(255,255,255,.35) 9% 11%), radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--yarn); }
.fly__thread { position: fixed; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; }
.fly__spark { position: fixed; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink); transform: translate(-50%, -50%); }
.bag-btn.is-catch { animation: catch .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes catch { 0% { transform: scale(1); } 25% { transform: scale(1.25, .8) rotate(-8deg); } 55% { transform: scale(.9, 1.15) rotate(6deg); } 100% { transform: scale(1); } }

/* ==========================================================
   Arabic (right-to-left)
   ========================================================== */
:root { --f-ar-body: "Cairo", "Bricolage Grotesque", sans-serif; --f-ar-display: "Lalezar", "Cairo", sans-serif; --f-ar-hand: "Marhey", "Cairo", sans-serif; }
html[lang="ar"] body { font-family: var(--f-ar-body); }
html[lang="ar"] :is(.h-big, .hero__title, .card__title, .step h3, .cstep h3, .anything__list li, .sticker, .gift__title, .modal__info h3, .arv__head h3, .gc__amount, .bag__empty h3) { font-family: var(--f-ar-display); font-weight: 400; letter-spacing: 0; }
html[lang="ar"] :is(.scribble, .hero__kicker, .shop__more p, .step .step__num, .arv__kicker, .custom__ask, .h-script, .footer__cols h4, .bag__head h3, .rail__hint, .gc__msg, .parent__name) { font-family: var(--f-ar-hand); letter-spacing: 0; }
html[lang="ar"] .why__arc text { font-family: var(--f-ar-hand); font-size: 40px; }
html[lang="ar"] :is(.price, .bag__total strong, .ribbon__track span) { letter-spacing: 0; }
html[lang="ar"] .hero__title { line-height: 1.12; font-size: clamp(64px, 11vw, 170px); }
html[lang="ar"] .h-big { line-height: 1.15; }
html[lang="ar"] .gift__title { line-height: 1.1; }
html[lang="ar"] .anything__list li { line-height: 1.25; }
html[lang="ar"] .anything__list .anything__more { font-family: var(--f-ar-display); }
html[lang="ar"] .card__title { font-size: 27px; line-height: 1.15; }
html[lang="ar"] .row__title { font-family: var(--f-ar-display); font-weight: 400; letter-spacing: 0; }
html[lang="ar"] .hero__kicker { font-size: clamp(22px, 2.6vw, 30px); }
html[lang="ar"] :is(.gc__label, .parent__k, .sizecheck__txt b, .specs b, .gc__names b) { text-transform: none; letter-spacing: 0; font-size: 13px; }
.ribbons { direction: ltr; }
[dir="rtl"] .bag__panel { transform: translateX(-105%); }
[dir="rtl"] .step--1 { transform: rotate(6deg) translateY(30px); }
[dir="rtl"] .step--2 { transform: rotate(2deg) translateX(14px); }
[dir="rtl"] .step--3 { transform: rotate(-3deg) translateX(28px) translateY(10px); }
[dir="rtl"] .step--4 { transform: rotate(-6deg) translateX(42px) translateY(-6px); }
[dir="rtl"] .step:hover { transform: rotate(0) translateY(-14px) scale(1.04); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .step { min-height: 280px; }
  .steps .step { transform: rotate(-2deg); }
  .steps .step:nth-child(even) { transform: rotate(2deg); }
  .steps .step:hover { transform: translateY(-8px); }
  .story__panel { grid-template-columns: 1fr 1.2fr; }
  .story__collage { display: none; }
  .why__logo { width: 320px; }
}

@media (max-width: 900px) {
  .rail__track { --cw: calc((100% - var(--gap) * 2) / 2.3); }
  .gift__row { gap: 30px; }
  .custom__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* phone menu: opens full-screen in a circle that grows out of the burger */
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 110px 30px 70px; border: 0; border-radius: 0; box-shadow: none; background: #0D0B10; counter-reset: m;
    clip-path: circle(0px at var(--mx, 90%) var(--my, 40px)); visibility: hidden;
    transition: clip-path .6s cubic-bezier(.7,0,.2,1), visibility 0s .6s; }
  .nav__links.is-open { clip-path: circle(150vmax at var(--mx, 90%) var(--my, 40px)); visibility: visible; transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
  .nav__links::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: conic-gradient(var(--yellow) 25%, #0D0B10 0 50%, var(--yellow) 0 75%, #0D0B10 0) 0 0 / 30px 30px; }
  .nav__links::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 85% 18%, rgba(255,92,168,.28), transparent 42%), radial-gradient(circle at 8% 85%, rgba(61,95,217,.4), transparent 45%); }
  .nav__blob { display: none; }
  .nav__links .pill { counter-increment: m; display: flex; align-items: flex-start; gap: 12px; padding: 2px 0; color: var(--cream);
    font-size: clamp(40px, 11vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08;
    opacity: 0; transform: translateY(40px) rotate(-6deg); transform-origin: 0 100%;
    transition: opacity .35s, transform .6s cubic-bezier(.3,1.4,.5,1), color .2s; }
  .nav__links .pill::before { content: counter(m, decimal-leading-zero); font-size: 14px; font-weight: 800; letter-spacing: .05em; color: var(--yellow); margin-top: .5em; font-family: var(--f-display); }
  .nav__links .pill:hover, .nav__links .pill.is-hot { color: var(--yellow); }
  .nav__links.is-open .pill { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .08s); }
  [dir="rtl"] .nav__links .pill { transform-origin: 100% 100%; }
  html[lang="ar"] .nav__links .pill { font-family: var(--f-ar-display); font-weight: 400; letter-spacing: 0; line-height: 1.3; }
  .nav__menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .5s; }
  .nav__links.is-open .nav__menu-foot { opacity: 1; transform: none; transition-delay: .55s; }
  .nav__social { display: flex; gap: 18px; margin: 0; }
  .nav__social a { color: var(--cream); opacity: .7; text-decoration: none; font-weight: 600; font-size: 15px; }
  .nav__social a:hover { opacity: 1; color: var(--yellow); }
  .burger.is-open { background: var(--pink); }
  .burger { display: flex; }
  .nav__cta { display: none; }
  .gift__row, .modal__card { grid-template-columns: 1fr; }
  .modal__img { border-inline-end: 0; border-bottom: 3px solid var(--ink); }
  .modal__img img { max-height: 44svh; }
  .modal__img.is-3d img { max-height: none; height: min(100vw, 62svh); } /* a bit more room to turn it on phones */
  .why__stage { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 120px; }
  .why__logo { position: relative; left: auto; top: auto; transform: rotate(-3deg); width: 280px; flex-basis: 100%; max-width: 280px; margin-bottom: 20px; }
  .sticker { position: static; }
  .why__arc { width: 340px; top: 10px; }
}

@media (max-width: 640px) {
  html[lang="ar"] .card__title { font-size: 23px; }
  .parent { gap: 16px; padding-block: 26px; }
  .parent__tile { width: 72px; height: 72px; border-radius: 18px; padding: 9px; }
  .parent__name { font-size: 24px; }
  .gift__btn { align-self: stretch; justify-content: space-between; }
  .gc { padding: 18px 20px; border-radius: 20px; box-shadow: 6px 8px 0 var(--ink); }
  .gc__logo { width: 92px; }
  .gc__msg { font-size: 18px; }
  .gift__lead { font-size: 16.5px; }
  .cstep { padding: 16px 14px 18px; border-radius: 18px; }
  .cstep h3 { font-size: 18px; margin-top: 10px; }
  .cstep p { font-size: 13.5px; }
  .cstep__n { width: 34px; height: 34px; font-size: 16px; }
  .custom__steps { gap: 12px; }
  .custom__btn { font-size: 16px; line-height: 1.2; padding-block: 16px; width: 100%; }
  .custom__btn .btn__arrow { margin-block: -16px; margin-inline-start: auto; }
  .arv { padding: 8px; }
  .arv__head h3 { font-size: 26px; }
  .arv__qr { flex-direction: column; text-align: center; }
  body { font-size: 16px; }
  .nav__logo svg { height: 40px; }
  .round-btn { width: 44px; height: 44px; }
  .nav__right { gap: 8px; }
  .hero { padding-top: 100px; }
  .hero__title { font-size: 17vw; }
  .logo3d { margin: 18px 0 22px; }
  .ribbon__track span { font-size: 19px; }
  .ribbons { height: 140px; }
  .ribbon--pink, .ribbon--orange { top: 80px; }
  .rows { gap: 22px; }
  .row__head { padding-inline: 4px; }
  .row__nav { display: none; }
  .row__title { font-size: 27px; }
  .row__sub { font-size: 13.5px; }
  .rail__track { --gap: 14px; --cw: calc((100% - var(--gap)) / 1.3); padding: 14px 4px 22px; scroll-padding-inline: 4px; }
  .card { padding: 10px 10px 12px; border-radius: 22px; }
  .card__img { border-radius: 15px; }
  .card__body { padding: 10px 2px 0; }
  .card__title { font-size: 21px; }
  .card .price { font-size: 23px; margin-bottom: 4px; }
  .card__ar, .card__add { height: 44px; font-size: 14.5px; }
  .steps { grid-template-columns: 1fr; }
  .how__head .btn { margin-inline-start: 0; }
  .two { grid-template-columns: 1fr; }
  .story__panel { grid-template-columns: 1fr; padding: 22px; }
  .story__video { aspect-ratio: 4/5; }
  .story__copy { padding: 22px; }
  .modal__info { padding: 24px 20px; }
  .modal__info h3 { font-size: 32px; }
  .specs { grid-template-columns: 1fr; }
  .anything__peek { display: none; }
  .footer__cols { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
