/* ==========================================================
   PIXPRINT | بكس برنت — site styles
   Layout: dark navy "press sheet" with CMYK-inspired ink
   accents (cyan / magenta-pink / yellow) used one at a time.
   ========================================================== */

:root {
  --navy:     #0F172A;
  --navy-2:   #141E36;
  --navy-3:   #1B2742;
  --cyan:     #00C2FF;
  --pink:     #FF2D8B;
  --yellow:   #FFC107;
  --white:    #F7FAFF;
  --ink:      #F7FAFF;
  --ink-2:    rgba(247, 250, 255, 0.72);
  --ink-3:    rgba(247, 250, 255, 0.48);
  --line:     rgba(247, 250, 255, 0.10);
  --line-2:   rgba(247, 250, 255, 0.18);

  --font-ar:  "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en:  "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius:   18px;
  --radius-sm: 10px;
  --wrap:     1160px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --shadow:   0 24px 60px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; margin-top: 22px; }
.sub  { color: var(--ink-2); max-width: 46ch; margin-top: 12px; }
.grad {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--pink) 55%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 10px 30px rgba(0, 194, 255, 0.28); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(0, 194, 255, 0.4); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(247,250,255,0.04); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Dots / chips ---------- */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-cyan { background: var(--cyan); }
.dot-pink { background: var(--pink); }
.dot-yellow { background: var(--yellow); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-family: var(--font-en); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; direction: ltr; }
.brand-en span { color: var(--cyan); }
.brand-ar { font-size: 0.78rem; color: var(--ink-3); font-weight: 500; }

.nav { display: flex; gap: 30px; font-weight: 500; color: var(--ink-2); }
.nav a { position: relative; padding-block: 6px; transition: color .15s; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .2s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 194, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(255, 45, 139, 0.12), transparent 60%),
    var(--navy);
}
.ribbon {
  position: absolute; pointer-events: none; z-index: 0;
  width: 520px; height: 120px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  opacity: 0.9;
}
.ribbon-tr { top: -40px; left: -140px; transform: rotate(-28deg); }
.ribbon-tr::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--cyan)); transform: translateY(70px) scaleX(.8); opacity: .7;
}
.ribbon-bl { bottom: -70px; right: -200px; transform: rotate(-18deg); background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.ribbon-bl::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--cyan); transform: translateY(-60px) scaleX(.9); opacity: .8;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  padding-block: clamp(56px, 9vw, 120px);
}
.hero-copy { min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }

/* Hero artwork */
.hero-art { min-width: 0; }
.art-stage { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1; }
.art-p {
  width: 100%; height: 100%;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.5));
  animation: float 6s ease-in-out infinite;
}
.ink { transform-box: fill-box; transform-origin: center; animation: ink 5s ease-in-out infinite; }
.ink-m { animation-delay: .5s; }
.ink-y { animation-delay: 1s; }
@keyframes ink { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.float-card {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--navy-2); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: .9rem;
  animation: float 7s ease-in-out infinite;
}
.fc-title { font-weight: 700; }
.fc-sub { color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.card-a { top: 8%; left: -6%; border-top: 3px solid var(--cyan); animation-delay: -1.5s; }
.card-b { top: 48%; right: -8%; border-top: 3px solid var(--pink); animation-delay: -3s; }
.card-c { bottom: 4%; left: 10%; border-top: 3px solid var(--yellow); animation-delay: -4.5s; }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section-alt { background: var(--navy-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.service {
  --accent: var(--cyan);
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 24px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  min-width: 0;
}
.service::before {
  content: ""; position: absolute; top: 0; inset-inline: 26px; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.service:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--navy-3); }
.accent-cyan { --accent: var(--cyan); }
.accent-pink { --accent: var(--pink); }
.accent-yellow { --accent: var(--yellow); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.service-icon svg { width: 26px; height: 26px; }
.service p { color: var(--ink-2); font-size: .98rem; flex: 1; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.specs li {
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-variant-numeric: tabular-nums;
}

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  counter-reset: step;
}
.step {
  position: relative; padding: 26px 24px; border-radius: var(--radius);
  background: var(--navy); border: 1px solid var(--line); min-width: 0;
}
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; color: var(--navy);
  background: var(--yellow); margin-bottom: 16px;
}
.step:nth-child(2) .step-num { background: var(--cyan); }
.step:nth-child(3) .step-num { background: var(--pink); }
.step:nth-child(4) .step-num { background: var(--white); }
.step p { color: var(--ink-2); font-size: .97rem; margin-top: 6px; }

/* Why us */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-copy { min-width: 0; }
.why-copy .btn { margin-top: 28px; }
.why-list { display: flex; flex-direction: column; min-width: 0; }
.why-list li {
  display: flex; gap: 16px; align-items: flex-start; padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list .dot { margin-top: 10px; }
.why-list strong { display: block; font-size: 1.08rem; }
.why-list span { color: var(--ink-2); font-size: .96rem; }

/* Instagram strip */
.strip-section { padding-bottom: clamp(48px, 6vw, 80px); }
.strip-section .section-head { margin-bottom: 32px; }
.strip { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 18px; width: max-content; animation: marquee 48s linear infinite; }
.strip-track img {
  width: 230px; height: 230px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--line); flex: none;
}
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Contact / order */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy { min-width: 0; }
.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.contact-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cl-label { color: var(--ink-3); font-weight: 500; }
.cl-value { font-family: var(--font-en); font-weight: 700; font-size: .95rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.cl-value:hover { text-decoration: underline; }

.order-form {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: 30px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: .9rem; font-weight: 700; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--navy); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,194,255,.18); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--pink); }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F7FAFF' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.form-hint { font-size: .85rem; color: var(--ink-3); }
.form-msg { font-size: .9rem; min-height: 1.4em; color: var(--pink); }
.form-msg.ok { color: var(--cyan); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: #0B1222; border-top: 1px solid var(--line); padding-block: 48px 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { color: var(--ink-3); margin-top: 12px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink-2); font-weight: 500; padding-top: 10px; }
.footer-nav a:hover { color: var(--ink); }
.copy { grid-column: 1 / -1; color: var(--ink-3); font-size: .85rem; padding-top: 20px; border-top: 1px solid var(--line); }

/* WhatsApp floating button */
.wa-fab {
  position: fixed; z-index: 60;
  left: calc(20px + env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy); background: #25D366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform .18s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: var(--navy-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .art-stage { width: min(78%, 340px); }
  .card-a { left: -4%; }
  .card-b { right: -4%; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; }
  .ribbon { width: 360px; height: 80px; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .order-form { padding: 22px 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .float-card { padding: 9px 12px; font-size: .8rem; }
  .fc-sub { display: none; }
  .strip-track img { width: 180px; height: 180px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-p, .ink, .float-card, .strip-track { animation: none !important; }
  .btn, .service { transition: none; }
}

/* ==========================================================
   Motion
   ========================================================== */

/* Hero entrance (only when JS is on, so the page is complete without it) */
.js .hero-enter > * {
  opacity: 0; transform: translateY(22px);
  animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.js .hero-enter > :nth-child(1) { animation-delay: .05s; }
.js .hero-enter > :nth-child(2) { animation-delay: .18s; }
.js .hero-enter > :nth-child(3) { animation-delay: .32s; }
.js .hero-enter > :nth-child(4) { animation-delay: .46s; }
.js .hero-enter > :nth-child(5) { animation-delay: .60s; }
.js .hero-enter-art .art-p {
  opacity: 0; transform: scale(.85) rotate(-6deg);
  animation: pop .9s cubic-bezier(.2,.8,.2,1) .25s forwards, float 6s ease-in-out 1.2s infinite;
}
.js .hero-enter-art .float-card {
  opacity: 0;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards, float 7s ease-in-out 1.4s infinite;
}
.js .hero-enter-art .card-a { animation-delay: .75s, 1.4s; }
.js .hero-enter-art .card-b { animation-delay: .90s, 2.9s; }
.js .hero-enter-art .card-c { animation-delay: 1.05s, 4.4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pop  { to { opacity: 1; transform: scale(1) rotate(0); } }

/* Hero gradient headline slowly shifts between the three inks */
.grad { background-size: 200% 100%; animation: hue 9s ease-in-out infinite; }
@keyframes hue { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Ribbons drift */
.ribbon { animation: drift 14s ease-in-out infinite; }
.ribbon-bl { animation-delay: -7s; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 24px -16px; }
}

/* Scroll reveal */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Header gains a shadow once the page scrolls */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(15, 23, 42, 0.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nav a.active { color: var(--ink); }
.nav a.active::after { transform: scaleX(1); }

/* Primary button: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .5s ease;
}
.btn-primary:hover::after { left: 120%; }

/* Service cards: icon lifts and the top bar grows */
.service::before { transition: inset-inline .3s ease; }
.service:hover::before { inset-inline: 0; }
.service-icon { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.service:hover .service-icon {
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Steps: number badge spins in on hover, connector dots */
.step-num { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.step:hover .step-num { transform: rotate(-8deg) scale(1.08); }

/* Instagram strip: each tile lifts on hover */
.strip-track img { transition: transform .3s ease, border-color .3s ease; }
.strip-track img:hover { transform: translateY(-6px) scale(1.03); border-color: var(--line-2); }

/* WhatsApp button pulse */
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: #25D366; opacity: .5; z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
.wa-fab { position: fixed; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }

/* Back-to-top */
.to-top {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--navy-2); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--navy-3); }
.to-top svg { width: 20px; height: 20px; }

/* Form success flash */
.order-form.sent { animation: flash .9s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(0,194,255,.5); } 100% { box-shadow: 0 0 0 24px rgba(0,194,255,0); } }

@media (prefers-reduced-motion: reduce) {
  .js .hero-enter > *, .js .hero-enter-art .art-p, .js .hero-enter-art .float-card { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .grad, .ribbon, .wa-fab::before, .order-form.sent { animation: none; }
  .btn-primary::after { display: none; }
}

/* ==========================================================
   Extras: progress bar, quick chips, service CTA, mockup
   preview, file prep, FAQ, lightbox, pointer effects
   ========================================================== */

/* Scroll progress */
.progress {
  position: fixed; top: 0; right: 0; z-index: 70; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan));
  transition: width .1s linear;
}

/* Quick-order chips in hero */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.quick-label { font-size: .85rem; color: var(--ink-3); font-weight: 700; margin-inline-end: 4px; }
.quick-chip {
  font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(247,250,255,.03);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.quick-chip:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); transform: translateY(-1px); }

/* Service card CTA */
.service-cta {
  align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: .92rem; color: var(--accent);
  opacity: .75; transition: opacity .2s, transform .2s;
}
.service:hover .service-cta { opacity: 1; transform: translateX(-4px); }

/* Service card: pointer spotlight */
.service { overflow: hidden; }
.service::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  transition: opacity .3s;
}
.service:hover::after { opacity: 1; }

/* Hero art tilt follows the pointer */
.art-stage { transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform; }

/* ---------- Mockup preview ---------- */
.preview-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 36px 24px; border-radius: var(--radius); cursor: pointer;
  border: 2px dashed var(--line-2); background: var(--navy);
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--cyan); background: var(--navy-3); }
.dropzone.over { border-color: var(--pink); background: rgba(255,45,139,.08); transform: scale(1.01); }
.dropzone svg { width: 44px; height: 44px; color: var(--cyan); }
.dropzone strong { font-size: 1.05rem; }
.dropzone span { font-size: .85rem; color: var(--ink-3); }
.dz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.mockups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.mock { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; min-width: 0; }
.mock figcaption { font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mock-art {
  background-image: url("../assets/logo-symbol.png");
  background-size: contain; background-position: center; background-repeat: no-repeat;
  transition: background-image .2s;
}

/* business card */
.mock-card-body {
  width: 100%; max-width: 240px; aspect-ratio: 9 / 5.5; border-radius: 10px;
  background: linear-gradient(135deg, #1B2742, #0F172A); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); padding: 12px 14px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; align-items: center;
  transform: rotate(-4deg); transition: transform .3s;
}
.mock-card:hover .mock-card-body { transform: rotate(0) translateY(-4px); }
.mock-card-body .mock-art { width: 100%; aspect-ratio: 1; }
.mock-card-lines { display: flex; flex-direction: column; gap: 8px; }
.mock-card-lines i { display: block; height: 8px; border-radius: 4px; background: rgba(247,250,255,.5); }
.mock-card-lines i:last-child { width: 70%; opacity: .5; }

/* mug */
.mug { position: relative; width: 150px; height: 150px; margin-top: 10px; transition: transform .3s; }
.mock-mug:hover .mug { transform: translateY(-4px) rotate(-3deg); }
.mug-body {
  position: absolute; inset: 10px 30px 0 10px; border-radius: 10px 10px 22px 22px;
  background: linear-gradient(90deg, #d9dee8, #F7FAFF 40%, #e6ebf4); box-shadow: var(--shadow);
  overflow: hidden; display: grid; place-items: center; padding: 18px;
}
.mug-body::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: rgba(15,23,42,.08); }
.mug-body .mock-art { width: 100%; height: 100%; }
.mug-handle {
  position: absolute; right: 6px; top: 36px; width: 42px; height: 64px;
  border: 12px solid #e6ebf4; border-left: 0; border-radius: 0 30px 30px 0; box-shadow: 6px 6px 18px rgba(0,0,0,.35);
}

/* poster */
.poster {
  width: 100%; max-width: 160px; aspect-ratio: 1 / 1.414; padding: 8px;
  background: #F7FAFF; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(3deg); transition: transform .3s;
}
.mock-poster:hover .poster { transform: rotate(0) translateY(-4px); }
.poster .mock-art { width: 100%; height: 100%; background-color: var(--navy); border-radius: 2px; }
.mock-art-cover { background-size: cover; }

/* ---------- File prep ---------- */
.prep-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.prep-copy { min-width: 0; }
.prep-list { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.prep-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.prep-k {
  flex: none; min-width: 64px; height: 44px; padding-inline: 10px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800; font-size: .95rem; color: var(--navy); background: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.prep-list li:nth-child(2) .prep-k { background: linear-gradient(90deg, var(--cyan) 25%, var(--pink) 25% 50%, var(--yellow) 50% 75%, var(--navy-3) 75%); color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.prep-list li:nth-child(3) .prep-k { background: var(--pink); color: var(--white); }
.prep-list li:nth-child(4) .prep-k { background: var(--cyan); }
.prep-list strong { display: block; font-size: 1.05rem; }
.prep-list span { color: var(--ink-2); font-size: .95rem; }
.bleed-fig { margin: 0; min-width: 0; }
.bleed-fig svg { width: 100%; height: auto; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line); padding: 12px; }
.bleed-fig figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--navy-2);
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-en); font-size: 1.4rem; line-height: 1; color: var(--cyan);
  transition: transform .25s; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-2); animation: rise .35s ease both; }

/* ---------- Lightbox ---------- */
.strip-track img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(7, 11, 22, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 24px; animation: fade .2s ease;
}
.lightbox img {
  max-width: min(92vw, 640px); max-height: 86vh; border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .3s cubic-bezier(.2,.8,.2,1) both;
}
.lb-close {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--navy-2); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@keyframes fade { from { opacity: 0; } }

/* Form field highlight when prefilled from a service card */
.field.pulse select { animation: fieldPulse 1.2s ease; }
@keyframes fieldPulse { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(0,194,255,.35); border-color: var(--cyan); } }

@media (max-width: 1000px) {
  .preview-grid { grid-template-columns: 1fr; }
  .prep-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .mockups { grid-template-columns: 1fr 1fr; }
  .mock-poster { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .art-stage { transition: none; }
  .faq-item p, .lightbox, .lightbox img { animation: none; }
}
.lightbox[hidden] { display: none; }

/* ==========================================================
   Ink-print intro (plays once per visit, set by the head script)
   ========================================================== */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--navy); overflow: hidden;
  animation: introOut .45s ease 1.25s forwards;
}
.intro-bar {
  position: absolute; inset: 0; transform: translateX(110%);
  animation: sweep .7s cubic-bezier(.65,0,.35,1) forwards;
}
.intro-c { background: var(--cyan);   animation-delay: .05s; }
.intro-m { background: var(--pink);   animation-delay: .22s; }
.intro-y { background: var(--yellow); animation-delay: .39s; }
.intro-logo {
  position: absolute; left: 50%; top: 50%; width: min(60vw, 280px);
  transform: translate(-50%, -50%) scale(.9); opacity: 0;
  animation: introLogo .5s ease .55s forwards;
}
@keyframes sweep { to { transform: translateX(-110%); } }
@keyframes introLogo { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* hold the hero entrance until the intro clears */
.intro-on .hero-enter > *, .intro-on .hero-enter-art .art-p, .intro-on .hero-enter-art .float-card { animation-play-state: paused; }
.intro-on.intro-done .hero-enter > *, .intro-on.intro-done .hero-enter-art .art-p, .intro-on.intro-done .hero-enter-art .float-card { animation-play-state: running; }

/* ==========================================================
   Header logo: ink blocks re-lay on hover
   ========================================================== */
.brand-svg { border-radius: 8px; overflow: hidden; }
.nav-ink { transform-box: fill-box; transform-origin: left center; }
.brand:hover .nav-ink-c { animation: lay .45s cubic-bezier(.2,.8,.2,1) both; }
.brand:hover .nav-ink-m { animation: lay .45s cubic-bezier(.2,.8,.2,1) .12s both; }
.brand:hover .nav-ink-y { animation: lay .45s cubic-bezier(.2,.8,.2,1) .24s both; }
@keyframes lay { from { transform: translateX(-105%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .brand:hover .nav-ink { animation: none; }
}

/* ==========================================================
   Confetti canvas
   ========================================================== */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; display: none; }
.confetti.on { display: block; }

/* ==========================================================
   Mug: the design slides across the body like the mug is turning
   ========================================================== */
.mug-body { perspective: 300px; }
.mug-wrap {
  background-size: auto 62%; background-repeat: repeat-x; background-position: 0% 50%;
  animation: mugTurn 9s linear infinite;
}
.mock-mug:hover .mug-wrap { animation-play-state: paused; }
@keyframes mugTurn { from { background-position-x: 0; } to { background-position-x: 200px; } }
.mug-gloss {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(15,23,42,.28), transparent 22%, rgba(255,255,255,.18) 48%, transparent 72%, rgba(15,23,42,.32));
}

@media (prefers-reduced-motion: reduce) {
  .mug-wrap { animation: none; }
}

/* ==========================================================
   RGB vs CMYK comparison slider
   ========================================================== */
.compare-wrap { margin-top: clamp(48px, 6vw, 80px); }
.compare-head { max-width: 640px; margin-bottom: 24px; }
.compare-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.compare-head p { color: var(--ink-2); margin-top: 10px; }
.compare {
  position: relative; max-width: 560px; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); user-select: none;
  --pos: 50%;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-print { filter: saturate(.62) contrast(.92) brightness(.93); }
.compare-screen { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white);
  transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); transform: translate(-50%, -50%); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.compare-handle span::before {
  content: ""; width: 16px; height: 10px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 2px 100% no-repeat,
    conic-gradient(from 90deg at 3px 50%, var(--navy) 0 25%, transparent 0) left / 5px 100% no-repeat,
    conic-gradient(from 270deg at calc(100% - 3px) 50%, var(--navy) 0 25%, transparent 0) right / 5px 100% no-repeat;
}
.compare { cursor: ew-resize; touch-action: pan-y; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  pointer-events: none; direction: ltr;
}
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.compare-tag {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  font-family: var(--font-en); font-weight: 800; font-size: .78rem; letter-spacing: .04em;
  background: rgba(15,23,42,.8); color: var(--white); backdrop-filter: blur(6px);
}
.tag-screen { right: 14px; border: 1px solid var(--cyan); }
.tag-print  { left: 14px; border: 1px solid var(--yellow); }

/* ==========================================================
   WhatsApp greeting bubble
   ========================================================== */
.wa-bubble {
  position: fixed; z-index: 60;
  left: calc(20px + 58px + 12px + env(safe-area-inset-left, 0px));
  bottom: calc(20px + 10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px; border-radius: 14px;
  background: var(--white); color: var(--navy); font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow); white-space: nowrap;
  animation: bubbleIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.wa-bubble::before {
  content: ""; position: absolute; left: -7px; bottom: 16px; width: 14px; height: 14px;
  background: var(--white); transform: rotate(45deg); border-radius: 3px;
}
.wa-bubble.out { animation: bubbleOut .3s ease both; }
.wa-bubble-x {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,23,42,.08);
  color: var(--navy); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.wa-bubble-x:hover { background: rgba(15,23,42,.16); }
@keyframes bubbleIn { from { opacity: 0; transform: translateX(-10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bubbleOut { to { opacity: 0; transform: translateX(-10px) scale(.9); } }
@media (max-width: 540px) {
  .wa-bubble { font-size: .85rem; padding: 8px 10px 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-bubble, .wa-bubble.out { animation: none; }
}

/* ==========================================================
   Stories bar (Instagram-style highlights)
   ========================================================== */
.stories {
  display: flex; gap: 22px; overflow-x: auto; padding: 4px 4px 18px; margin-bottom: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 84px; }
.story-ring {
  width: 76px; height: 76px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--yellow), var(--pink), var(--cyan), var(--yellow));
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.story-ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--navy-2); object-fit: cover; }
.story:hover .story-ring, .story:focus-visible .story-ring { transform: scale(1.08) rotate(-6deg); }
.story.seen .story-ring { background: var(--line-2); }
.story-name { font-size: .78rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.story:hover .story-name { color: var(--ink); }

/* ==========================================================
   Size guide
   ========================================================== */
.sizes-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.sizes-copy { min-width: 0; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.size-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); font-weight: 700; font-family: var(--font-en); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.size-chip:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
.size-chip.is-on { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.size-info {
  margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--navy-2); border: 1px solid var(--line); border-inline-start: 3px solid var(--cyan);
}
.size-info strong { font-family: var(--font-en); font-size: 1.4rem; margin-inline-end: 10px; }
.size-dims { font-family: var(--font-en); color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }
.size-info p { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
.sizes-fig { margin: 0; min-width: 0; }
.sizes-fig svg { width: 100%; height: auto; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sizes-fig figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 12px; text-align: center; }
.sz rect { fill: rgba(247,250,255,.03); stroke: var(--ink-3); stroke-width: 1.2; cursor: pointer; transition: fill .25s, stroke .25s; }
.sz text { font-family: var(--font-en), var(--font-ar); font-size: 12px; font-weight: 700; fill: var(--ink-3); pointer-events: none; transition: fill .25s; }
.sz:hover rect { stroke: var(--ink); }
.sz.is-on rect { fill: rgba(0,194,255,.18); stroke: var(--cyan); stroke-width: 2; }
.sz.is-on text { fill: var(--cyan); }
.sz-phone rect { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 3; }
.sz-phone rect:first-child { fill: rgba(247,250,255,.04); stroke-dasharray: none; }
.sz-phone text { font-family: var(--font-ar); font-size: 11px; fill: var(--ink-3); }

/* ==========================================================
   Business card finish: glossy vs matte
   ========================================================== */
.finish { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--navy); border: 1px solid var(--line); }
.finish-btn {
  padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
  font-weight: 700; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s;
}
.finish-btn.is-on { background: var(--cyan); color: var(--navy); }
.mock-card-body { position: relative; overflow: hidden; }
.mock-card-body::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 48%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.28) 52%, transparent 62%);
  opacity: 0; transition: opacity .3s;
}
.mock-card-body.is-gloss::after { opacity: 1; animation: sheen 3.2s ease-in-out infinite; }
.mock-card-body.is-gloss { box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08); }
.mock-card-body.is-matte { filter: saturate(.85) contrast(.95); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.mock-card-body.is-matte .mock-art { opacity: .92; }
@keyframes sheen { 0% { transform: translateX(-45%); } 55%, 100% { transform: translateX(45%); } }

@media (max-width: 1000px) { .sizes-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .mock-card-body.is-gloss::after { animation: none; transform: none; }
  .story:hover .story-ring { transform: none; }
}
