/* ZYNNAH — redesign preview styles (shared by index.html + direction.html) */
:root {
  --pink: #C93D86;        /* signature pink (logo pink, deepened so white text passes AA) */
  --pink-deep: #B33A7C;
  --rose: #F2A9C6;        /* brand dusty pink, brightened */
  --blush: #FFE1EC;
  --lilac: #C9A9D6;       /* brand lilac */
  --lilac-deep: #7C56A3;
  --lilac-soft: #EFE3F6;
  --peach: #F3B69B;       /* brand peach */
  --orange: #E4863A;      /* brand orange */
  --butter: #FFE48F;
  --mint: #CBE8C4;
  --wa: #188049;
  --cream: #FFF1F6;      /* blush-white page ground (brief: no beige) */
  --pink-ink: #9C2B68;   /* pink for small text on light colours (AA) */
  --orange-ink: #9A4E12; /* orange for small text on white (AA) */
  --ink: #2A1730;         /* outline ink (brand illustrations are drawn in near-black) */
  --ink-soft: #5E4766;
  --line: rgba(42, 23, 48, .14);
  --f-dsp: "Fraunces", "Playfair Display", Georgia, serif;
  --f-en: "Montserrat", system-ui, sans-serif;
  --f-ar-dsp: "El Messiri", "Tajawal", sans-serif;
  --f-ar: "Tajawal", "El Messiri", system-ui, sans-serif;
  --r: 26px;
  --hard: 5px 6px 0 var(--ink);
  --wrap: 1240px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 16px/1.6 var(--f-en); overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--f-ar); font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px dashed var(--pink-deep); outline-offset: 4px; border-radius: 8px; }

/* language visibility */
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── type ── */
.dsp { font-family: var(--f-dsp); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; line-height: .92; margin: 0; }
html[lang="ar"] .dsp { font-family: var(--f-ar-dsp); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.dsp em { font-style: italic; font-weight: 700; }
html[lang="ar"] .dsp em { font-style: normal; }
.kicker { font: 700 13px/1 var(--f-en); letter-spacing: .22em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
html[lang="ar"] .kicker { font-family: var(--f-ar); letter-spacing: 0; font-size: 15px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 34ch; }
html[lang="ar"] .lead { max-width: 40ch; }

/* ── sticker buttons ── */
.btn {
  --bg: var(--pink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  border: 2.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink);
  font: 800 15px/1 var(--f-en); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s;
}
html[lang="ar"] .btn { font: 700 17px/1 var(--f-ar); letter-spacing: 0; }
.btn:hover { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 6px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.lilac { --bg: var(--lilac); --fg: var(--ink); }
.btn.butter { --bg: var(--butter); --fg: var(--ink); }
.btn.cream { --bg: #fff; --fg: var(--ink); }
.btn.wa { --bg: var(--wa); --fg: #fff; }
.btn.orange { --bg: var(--orange); --fg: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
html[lang="ar"] .btn .arr { transform: scaleX(-1); }
html[lang="ar"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ── stamps ── */
.zy-stamp { width: 140px; aspect-ratio: 1; flex: none; --sb: var(--pink); --st: #fff; color: #fff; }
.zy-stamp svg { width: 100%; height: 100%; overflow: visible; display: block; }
.zy-stamp-t { font: 800 8.4px var(--f-en); letter-spacing: .5px; fill: var(--st, #fff); }
.zy-stamp-t.zy-ar { font: 700 9.6px var(--f-ar-dsp); letter-spacing: 0; }
.zy-stamp-mid { font: 800 13px var(--f-dsp); fill: var(--st, #fff); }
.zy-stamp .zy-stamp-core use { --fill: var(--st, #fff); }
.spin { animation: spin 24s linear infinite; }
.spin.rev { animation-direction: reverse; animation-duration: 30s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* floating art */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }
.float { animation: float 6s ease-in-out infinite; }
.float.d1 { animation-duration: 7.5s; animation-delay: -2s; }
.float.d2 { animation-duration: 5.2s; animation-delay: -1s; }
.float.d3 { animation-duration: 8.4s; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r0, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r0, 0deg) + 8deg)); }
}
.wobble { animation: wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* photo frames */
.ph { position: relative; overflow: hidden; background: var(--blush); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.f-arch { border-radius: 999px 999px 22px 22px; border: 3px solid var(--ink); }
.f-round { border-radius: var(--r); border: 3px solid var(--ink); }
.f-polaroid { background: #fff; padding: 10px 10px 44px; border: 2.5px solid var(--ink); box-shadow: var(--hard); border-radius: 6px; }
.f-polaroid img { border-radius: 2px; }
.f-polaroid figcaption { position: absolute; inset-inline: 0; bottom: 10px; text-align: center; font: italic 700 17px var(--f-dsp); }
html[lang="ar"] .f-polaroid figcaption { font: 700 17px var(--f-ar-dsp); font-style: normal; }
.f-stamp {
  padding: 12px; background: #fff;
  /* perforated edge: solid centre + a ring of holes along the border */
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at center, transparent 5px, #000 5.5px) -8px -8px / 16px 16px round padding-box;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at center, transparent 5px, #000 5.5px) -8px -8px / 16px 16px round padding-box;
}
.stamp-wrap { filter: drop-shadow(4px 5px 0 var(--ink)); }
.f-stamp img { outline: 2px solid var(--ink); }
.f-scallop { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2c4 0 6 4 10 4.5s7-2 10.5 0 3.5 6 6.5 8.5 7 1.5 9 5 0 7 2 10.5 6 4.5 6.5 8.5-3 6.5-3 10.5 3 6.5 2.5 10.5-5 5.5-6.5 9 1 7.5-2 10.5-7 1-10 3.5-3.5 6.5-7 8.5-7-.5-10.5 1-6 4-10 4-6-3.5-10-4-7 2-10.5 0-3.5-6-6.5-8.5-7-1.5-9-5 0-7-2-10.5-6-4.5-6.5-8.5 3-6.5 3-10.5-3-6.5-2.5-10.5 5-5.5 6.5-9-1-7.5 2-10.5 7-1 10-3.5 3.5-6.5 7-8.5 7 .5 10.5-1 6-4 10-4z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2c4 0 6 4 10 4.5s7-2 10.5 0 3.5 6 6.5 8.5 7 1.5 9 5 0 7 2 10.5 6 4.5 6.5 8.5-3 6.5-3 10.5 3 6.5 2.5 10.5-5 5.5-6.5 9 1 7.5-2 10.5-7 1-10 3.5-3.5 6.5-7 8.5-7-.5-10.5 1-6 4-10 4-6-3.5-10-4-7 2-10.5 0-3.5-6-6.5-8.5-7-1.5-9-5 0-7-2-10.5-6-4.5-6.5-8.5 3-6.5 3-10.5-3-6.5-2.5-10.5 5-5.5 6.5-9-1-7.5 2-10.5 7-1 10-3.5 3.5-6.5 7-8.5 7 .5 10.5-1 6-4 10-4z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* scroll reveal (only when JS + motion allowed) */
.js .rv { opacity: 0; transform: translateY(40px) rotate(var(--rr, -2deg)); transition: opacity .8s, transform .9s cubic-bezier(.2,1.4,.4,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.pop { transform: scale(.6) rotate(-14deg); }
.js .rv.pop.in { transform: rotate(var(--rot, 0deg)); }
.js .develop img { filter: blur(14px) saturate(0) brightness(1.4); transform: scale(1.12); transition: filter 1.6s ease, transform 1.8s cubic-bezier(.2,.8,.2,1); }
.js .develop.in img { filter: none; transform: none; }
.js .thunk { opacity: 0; transform: scale(1.9) rotate(-40deg); }
.js .thunk.in { animation: thunk .55s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes thunk { 0% { opacity: 0; transform: scale(1.9) rotate(-40deg); } 70% { opacity: 1; transform: scale(.94) rotate(var(--rot, 6deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--rot, 6deg)); } }
.js .draw path, .js .draw circle { stroke-dasharray: 600; stroke-dashoffset: 600; }
.js .draw.in path, .js .draw.in circle { animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .thunk, .js .develop img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .draw path, .js .draw circle { stroke-dashoffset: 0 !important; }
}
