/* ============================================================
   Dara Bazaie — public site design system
   "Neo-brutalism 2.0" — thick outlines, offset shadows,
   candy palette, editorial spacing. All colors come from
   CSS variables injected from the Admin Panel.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   THEME
   Only the *surfaces* flip for dark mode — the candy accents stay
   identical so the brand reads the same in both themes.
   `--on-accent` is text that sits on an accent-coloured block
   (the yellow contact card, the marquee): those blocks stay bright
   in dark mode, so their text must stay dark in both themes.
   ============================================================ */
:root {
  --on-accent: #221A10;
  --on-accent-muted: rgba(34, 26, 16, .66);
}
html[data-theme="dark"] {
  --bg:        var(--dark-bg);
  --card:      var(--dark-card);
  --ink:       var(--dark-ink);
  --muted:     var(--dark-muted);
  --border:    var(--dark-border);
  --pink-soft: var(--dark-pink-soft);
  color-scheme: dark;
}
/* smooth the flip, but never animate layout */
html.theme-anim, html.theme-anim body,
html.theme-anim .card, html.theme-anim .card-sm,
html.theme-anim .nav-card, html.theme-anim .badge {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

html {
  /* Scrolling is native — no smooth-scroll library. `scroll-behavior` here only
     affects programmatic/anchor jumps, never the wheel, so the wheel stays at
     full compositor speed instead of being interpolated on the main thread.

     `clip` rather than `hidden`: overflow-x:hidden turns the root into a
     scroll container, which silently breaks `position: sticky` on the header.
     `clip` contains the rotated marquee without that side effect. */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.6;
}

html[lang="fa"] { --font-body: var(--font-fa), 'Vazirmatn', sans-serif; }
html[lang="en"] { --font-body: var(--font-en), 'Space Grotesk', sans-serif; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Form controls default to an intrinsic width that refuses to shrink inside
   grid/flex tracks — this is the #1 cause of mobile horizontal overflow. */
input, textarea, select, button { font: inherit; min-width: 0; max-width: 100%; }
textarea { resize: vertical; }

::selection { background: var(--primary); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border: 3px solid var(--bg);
  border-radius: 100px;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; position: relative; }

@media (max-width: 768px) { .section { padding: 56px 0; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* Every grid/flex item may shrink below its intrinsic content width. */
.hero-grid > *, .about-grid > *, .products-grid > *, .projects-grid > *,
.contact-grid > *, .social-cards > *, .stats > *, .faq-list > * { min-width: 0; }

/* ---------- primitives ---------- */
.card {
  background: var(--card);
  border: 3px solid var(--border);
  border-radius: 28px;
  box-shadow: 7px 7px 0 var(--border);
}
.card-sm {
  background: var(--card);
  border: 3px solid var(--border);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--border);
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2.5px solid var(--border); border-radius: 100px;
  padding: 8px 18px; font-weight: 800; font-size: 13px;
  box-shadow: 3px 3px 0 var(--border);
  background: var(--card);
  max-width: 100%;
}
/* Presence dot — colour comes from the active status row in the admin. */
.badge .dot {
  width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%;
  background: var(--dot, var(--teal));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot, var(--teal)) 65%, transparent);
  animation: pulse 2.2s infinite;
}
.badge .dot.no-pulse { animation: none; box-shadow: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in srgb, var(--dot, var(--teal)) 65%, transparent); }
  70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--dot, var(--teal)) 0%,  transparent); }
  100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--dot, var(--teal)) 0%,  transparent); }
}
@media (prefers-reduced-motion: reduce) { .badge .dot { animation: none; box-shadow: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 3px solid var(--border); border-radius: 100px;
  box-shadow: 5px 5px 0 var(--border);
  font-weight: 800; font-size: 15px; padding: 15px 32px;
  background: var(--card); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  max-width: 100%;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--border); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--border); }
/* the plain button sits on --card, so it follows --ink; only the accent
   variants use --btn-text (which is always dark, on a bright fill) */
/* Dark ink on the mid-tone accents: white only reached ~2.8:1 against coral,
   teal and purple, which fails WCAG AA for body-size text. */
.btn-primary   { background: var(--primary);   color: var(--btn-text); }
.btn-secondary { background: var(--secondary); color: var(--on-accent); }
.btn-pink      { background: var(--pink);      color: var(--btn-text); }
.btn-sm { padding: 10px 20px; font-size: 13px; box-shadow: 4px 4px 0 var(--border); }

@media (max-width: 480px) {
  .btn { padding: 13px 24px; font-size: 14px; }
}

.sticker {
  display: inline-block;
  background: var(--primary);
  border: 3px solid var(--border);
  border-radius: 14px;
  padding: 2px 14px;
  box-shadow: 4px 4px 0 var(--border);
  transform: rotate(-2.5deg);
}

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 900; line-height: 1.25; margin: 18px 0 12px;
  overflow-wrap: break-word;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 768px) { .section-head { margin-bottom: 32px; } }

/* ---------- swatch strip ---------- */
.swatch-strip { display: flex; height: 14px; }
.swatch-strip i { flex: 1; }
.swatch-strip i + i { border-inline-start: 2px solid var(--border); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; padding: 14px 20px 0; }
@media (max-width: 480px) { .site-header { padding: 10px 16px 0; } }

.nav-card {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: var(--card);
  border: 3px solid var(--border); border-radius: 100px;
  box-shadow: 5px 5px 0 var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; min-width: 0; }
.logo > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mark {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  border: 3px solid var(--border); background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 2px 2px 0 var(--border);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-mark { transform: rotate(180deg) scale(1.08); }

/* uploaded logo replaces the character mark */
.logo-img {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.08); }
.loader-mark img { width: 48px; height: 48px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 9px 15px; border-radius: 100px; font-weight: 700; font-size: 14px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
/* scroll-spy: the link for the section you are looking at */
.nav-links a.active { background: var(--primary); color: var(--on-accent); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 3px; inset-inline-start: 50%;
  width: 0; height: 2.5px; border-radius: 2px; background: var(--secondary);
  transform: translateX(-50%); transition: width .25s ease;
}
html[dir="rtl"] .nav-links a::after { transform: translateX(50%); }
.nav-links a:hover::after { width: 18px; }
.nav-links a.active::after { width: 0; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex; border: 2.5px solid var(--border); border-radius: 100px;
  overflow: hidden; box-shadow: 3px 3px 0 var(--border); background: var(--card);
}
.lang-switch button {
  border: 0; background: transparent; font-weight: 800; font-size: 12px;
  padding: 10px 14px; min-height: 38px; color: var(--ink); transition: background .2s;
}
.lang-switch button.active { background: var(--primary); color: var(--btn-text); }

.theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 2.5px solid var(--border); background: var(--card); color: var(--ink);
  box-shadow: 3px 3px 0 var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: transform .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-12deg); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- animated burger ----------
   Three bars that spring into an X. The whole button also rotates a touch so
   the motion feels hand-made rather than mechanical. */
.burger {
  display: none; border: 2.5px solid var(--border); background: var(--card);
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  box-shadow: 3px 3px 0 var(--border);
  padding: 0; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .2s ease;
}
.burger:active { transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 var(--border); }
.burger[aria-expanded="true"] { background: var(--primary); transform: rotate(90deg); }

.burger-box { position: relative; width: 20px; height: 16px; display: block; }
.burger-bar {
  position: absolute; inset-inline: 0; height: 2.6px; border-radius: 4px;
  background: var(--ink);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .18s ease, background .2s ease;
}
.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-bar:nth-child(3) { bottom: 0; }

.burger[aria-expanded="true"] .burger-bar { background: var(--on-accent); }
.burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(2) { transform: translateY(-50%) scaleX(0); opacity: 0; }
.burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.22,1,.36,1), margin-top .4s ease;
}
/* padding-free clipping wrapper so the closed state is truly zero-height */
.mobile-menu-inner { overflow: hidden; min-height: 0; }
.mobile-menu.open { grid-template-rows: 1fr; margin-top: 12px; }
.mobile-menu .card-sm { display: flex; flex-direction: column; padding: 18px; gap: 4px; }
.mobile-menu a {
  padding: 12px 16px; border-radius: 14px; font-weight: 700;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.mobile-menu.open a { opacity: 1; transform: none; }
/* staggered entrance so the items cascade in */
.mobile-menu.open a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .13s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .23s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .28s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .33s; }
.mobile-menu a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu a, .burger, .burger-bar { transition-duration: .01ms !important; }
  .mobile-menu.open a { transition-delay: 0s !important; }
}

@media (max-width: 980px) {
  .nav-links, .nav-actions > .btn { display: none; }
  .burger { display: flex; }
}
@media (max-width: 380px) {
  .logo { font-size: 16px; }
  .lang-switch button { padding: 9px 11px; font-size: 11px; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
}
@media (max-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

.hero h1 {
  font-size: clamp(30px, 5.6vw, 60px);
  font-weight: 900; line-height: 1.25;
  margin: 26px 0 0;
  letter-spacing: -.5px;
  overflow-wrap: break-word;
}
.hero h1 .word { display: inline-block; }
.hero-sub {
  margin-top: 24px; color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.95; max-width: 460px;
}
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }

.squiggle { position: relative; }
.squiggle svg { position: absolute; inset-inline: 0; bottom: -6px; width: 100%; }

/* hero visual — collectible card stack.
   The ghost cards are rotated and offset, so the wrapper carries padding to
   keep their corners inside the column at every width. */
.hero-visual { position: relative; padding-inline: 20px; }
.stack { position: relative; max-width: 420px; margin: 0 auto; }
.stack-ghost {
  position: absolute; inset: 0;
  border: 3px solid var(--border); border-radius: 30px;
  background: var(--teal);
}
.stack-ghost.g1 { transform: rotate(6deg) translate(10px, 8px); background: var(--purple); }
.stack-ghost.g2 { transform: rotate(-5deg) translate(-8px, 12px); background: var(--pink); }
@media (max-width: 480px) {
  .stack-ghost.g1 { transform: rotate(3.5deg) translate(4px, 6px); }
  .stack-ghost.g2 { transform: rotate(-3deg) translate(-4px, 8px); }
}

.drop-card {
  position: relative;
  background: var(--card);
  border: 3px solid var(--border); border-radius: 30px;
  box-shadow: 9px 9px 0 var(--border);
  overflow: hidden;
  transition: transform .3s ease;
}
.drop-card-art {
  background: var(--pc, var(--pink-soft));
  border-bottom: 3px solid var(--border);
  padding: 24px; position: relative; min-height: 250px;
  display: flex; align-items: center; justify-content: center;
}
.drop-card-art svg { width: min(240px, 70%); height: auto; }
/* A photo fills the art area edge-to-edge and is cropped to a fixed height —
   without this a tall upload stretches the whole hero card out of shape. */
.drop-card-art.has-image { padding: 0; min-height: 0; }
.drop-card-art img { width: 100%; height: 280px; object-fit: cover; }
.drop-card-top {
  position: absolute; top: 16px; inset-inline: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.drop-card-body { padding: 20px 24px 24px; }
.drop-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drop-card-body h3 { margin: 0; font-size: 20px; font-weight: 900; overflow-wrap: break-word; }
.drop-card-body .muted { color: var(--muted); font-size: 13px; margin-top: 4px; }
.drop-price {
  flex-shrink: 0; white-space: nowrap;
  font-weight: 900; font-size: 16px;
  background: var(--primary); border: 2.5px solid var(--border);
  border-radius: 12px; padding: 4px 14px; box-shadow: 3px 3px 0 var(--border);
  transform: rotate(2deg);
}
.drop-note {
  margin-top: 16px; padding-top: 14px;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--muted); font-size: 12.5px;
}
@media (max-width: 420px) {
  .drop-card-head { flex-direction: column; }
  .drop-card-art { min-height: 200px; padding: 18px; }
}

/* floating decorations — purely ornamental, and they crowd small screens */
.float-shape { position: absolute; pointer-events: none; z-index: 1; }
@media (max-width: 980px) { .float-shape { display: none; } }

/* ---------- marquee ---------- */
.marquee-wrap {
  border-block: 3px solid var(--border);
  background: var(--primary);
  overflow: hidden; padding: 16px 0;
  transform: rotate(-1.2deg);
  width: 102%; margin-inline-start: -1%;
}
/* The track must always be wider than the strip PLUS one repeat, otherwise the
   content runs out mid-loop and leaves a bare stretch before it snaps back.
   The markup ships 4 repeats (so the CSS-only default shift of 25% == exactly
   one repeat); JS then measures and tunes the repeat count and shift in px. */
.marquee {
  display: flex; width: max-content;
  animation: marquee var(--marquee-duration, 34s) linear infinite;
  will-change: transform; /* the one element that genuinely animates forever */
}
.marquee-inner { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }
.marquee-inner span { font-weight: 900; font-size: 17px; white-space: nowrap; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-shift, 25%)), 0, 0); }
}
html[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--marquee-shift, 25%), 0, 0); }
}
@media (max-width: 480px) { .marquee-inner span { font-size: 14px; } }

/* ---------- about ---------- */
.about-card { padding: 48px; background: var(--pink-soft); overflow: hidden; position: relative; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px; align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-card { padding: 32px 22px; }
}

.portrait {
  position: relative; border: 3px solid var(--border);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  overflow: hidden; aspect-ratio: 1; background: var(--card);
  box-shadow: 7px 7px 0 var(--border);
  max-width: 320px; margin-inline: auto;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.portrait .fallback svg { width: 72%; }

.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.skills span {
  border: 2.5px solid var(--border); border-radius: 100px;
  background: var(--card); padding: 7px 16px;
  font-weight: 700; font-size: 12.5px; box-shadow: 2.5px 2.5px 0 var(--border);
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stats .card-sm { padding: 18px 10px; text-align: center; }
.stats b { display: block; font-size: clamp(19px, 4.5vw, 26px); font-weight: 900; }
.stats small { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.4; display: block; }
@media (max-width: 380px) { .stats { gap: 8px; } .stats .card-sm { padding: 14px 6px; } }

.timeline { margin-top: 30px; display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 16px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.timeline-item::before {
  content: ''; position: absolute; top: 22px; bottom: 0;
  inset-inline-start: 10px; width: 3px;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 23px; height: 23px; flex-shrink: 0; border-radius: 50%;
  border: 3px solid var(--border); background: var(--primary); position: relative; z-index: 1;
}
.timeline-item b { font-size: 13px; display: block; }
/* derived from --ink so it stays legible on the pink-soft panel in light mode
   and on the dark panel in dark mode (a flat --muted failed on pink) */
.timeline-item span { color: color-mix(in srgb, var(--ink) 74%, transparent); font-size: 13px; }

/* ---------- products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip {
  border: 2.5px solid var(--border); border-radius: 100px;
  background: var(--card); padding: 9px 20px;
  font-weight: 800; font-size: 13px; box-shadow: 3px 3px 0 var(--border);
  transition: transform .12s, background .2s, color .2s;
}
.filter-chip:hover { transform: translateY(-2px); }
.filter-chip.active { background: var(--ink); color: var(--card); }
@media (max-width: 480px) { .filter-chip { padding: 8px 15px; font-size: 12px; } }

.products-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px;
}
@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 560px)  { .products-grid { grid-template-columns: minmax(0, 1fr); } }

.product-card {
  background: var(--card); border: 3px solid var(--border); border-radius: 26px;
  box-shadow: 6px 6px 0 var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 10px 12px 0 var(--border); }

.pc-art {
  background: var(--pc); border-bottom: 3px solid var(--border);
  min-height: 168px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative; overflow: hidden;
}
.pc-art img { width: 100%; height: 190px; object-fit: cover; }
.pc-art .pc-emoji { transition: transform .3s ease; line-height: 1; }
.product-card:hover .pc-emoji { transform: scale(1.18) rotate(-6deg); }

.pc-status {
  position: absolute; top: 14px; inset-inline-start: 14px;
  font-size: 11px; font-weight: 900; padding: 5px 12px;
  border: 2.5px solid var(--border); border-radius: 100px;
  /* sits on its own --card surface inside the accent-filled art area,
     so it opts back out of the accent text colour */
  background: var(--card); color: var(--ink);
  box-shadow: 2px 2px 0 var(--border);
}
.pc-status.soldout { background: var(--ink); color: var(--card); }
.pc-status.coming  { background: var(--purple); color: var(--on-accent); }

.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { margin: 0; font-size: 17px; font-weight: 900; overflow-wrap: break-word; }
.pc-body .pc-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; overflow-wrap: break-word; }
.pc-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center;
           justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-price { font-weight: 900; font-size: 15px; }
.pc-cat {
  font-size: 10.5px; font-weight: 800; color: var(--muted);
  border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 100px; padding: 3px 10px; margin-top: 10px; align-self: flex-start;
}

/* product color variants */
.pc-pink      { --pc: var(--pink); }
.pc-purple    { --pc: var(--purple); }
.pc-teal      { --pc: var(--teal); }
.pc-yellow    { --pc: var(--primary); }
.pc-lime      { --pc: var(--lime); }
.pc-secondary { --pc: var(--secondary); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.modal-backdrop.show { display: flex; }
.modal-backdrop.visible { opacity: 1; }
.modal {
  background: var(--card); border: 3px solid var(--border); border-radius: 30px;
  box-shadow: 10px 10px 0 var(--border);
  width: 100%; max-width: 720px; max-height: 88vh; overflow: auto;
  transform: translateY(24px) scale(.97); transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.modal-backdrop.visible .modal { transform: translateY(0) scale(1); }
.modal-art {
  background: var(--pc, var(--pink)); border-bottom: 3px solid var(--border);
  min-height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: clamp(60px, 14vw, 96px); position: relative;
}
.modal-art img { width: 100%; max-height: 300px; object-fit: cover; }
.modal-close {
  position: absolute; top: 16px; inset-inline-end: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--border); background: var(--card);
  font-size: 18px; font-weight: 900; box-shadow: 3px 3px 0 var(--border);
}
.modal-body { padding: 28px 30px 30px; }
.modal-body h3 { margin: 0; font-size: clamp(19px, 3.4vw, 24px); font-weight: 900; overflow-wrap: break-word; }
.modal-body .m-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.modal-body .m-desc { margin-top: 18px; font-size: 14.5px; line-height: 2; overflow-wrap: break-word; }
.modal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.modal-foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.modal-foot .m-price { font-size: 22px; font-weight: 900; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 560px) {
  .modal-actions { width: 100%; }
  .modal-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 26px; }
  .modal-body { padding: 22px 20px 24px; }
  .modal-art { min-height: 150px; }
  .modal-foot .btn { width: 100%; }
}

/* ---------- projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 660px)  { .projects-grid { grid-template-columns: minmax(0, 1fr); } }
.project-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease; }
.project-card:hover { transform: translateY(-6px) rotate(.5deg); }
.project-art {
  background: var(--pc); border-bottom: 3px solid var(--border);
  height: 128px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; overflow: hidden;
}
.project-art.has-image { padding: 0; }
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-art img { transform: scale(1.06); }
.project-body { padding: 22px; }
.project-body h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 900; overflow-wrap: break-word; }
.project-body p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.9; }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 800; font-size: 15.5px; text-align: start; color: var(--ink);
}
.faq-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  border: 3px solid var(--border); background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; transition: transform .3s ease, background .3s ease;
}
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--pink); }
/* grid-rows 0fr→1fr animates to the content's real height with no JS
   measurement — smoother than max-height and immune to resize/lang changes */
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
/* the clipping wrapper carries no padding of its own, so its min-content
   really is zero and the closed state collapses completely */
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 14px; line-height: 2; }
@media (max-width: 480px) {
  .faq-q { padding: 16px 18px; font-size: 14px; gap: 12px; }
  .faq-a p { padding: 0 18px 18px; font-size: 13.5px; }
}

/* ---------- blocks painted with an accent colour ----------
   These keep a bright fill in dark mode, so their text is pinned dark.
   Children that bring their own surface (cards, badges, inputs) opt back
   out to the themed --ink. */
/* Anything filled with a brand accent keeps dark text in BOTH themes —
   in dark mode --ink turns light, which would vanish on yellow/pink/teal. */
.contact-card, .marquee-wrap,
.sticker, .drop-price, .faq-icon, .logo-mark, .to-top,
.pc-art, .project-art, .modal-art, .social-icon,
.stats .card-sm.on-accent { color: var(--on-accent); }
.contact-card .card-sm,
.contact-card .badge,
.contact-card input,
.contact-card textarea { color: var(--ink); }
.contact-card .social-card small { color: var(--muted); }

/* ---------- contact ---------- */
.contact-card { padding: 48px; background: var(--primary); }
@media (max-width: 768px) { .contact-card { padding: 30px 20px; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* auto-fit so the layout stays balanced whatever number of networks the
   admin leaves switched on (1, 2, 3 or 4 cards) */
.social-cards {
  display: grid; gap: 14px; margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
@media (max-width: 420px) { .social-cards { grid-template-columns: minmax(0, 1fr); } }
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--border); }
.social-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  border: 3px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 2.5px 2.5px 0 var(--border);
}
.social-card > span { min-width: 0; }
.social-card b { display: block; font-size: 14px; }
.social-card small { color: var(--muted); font-size: 11.5px; display: block; }

.contact-form label { display: block; font-weight: 800; font-size: 12.5px; margin: 16px 0 7px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px;
  background: var(--card); color: var(--ink);
  border: 3px solid var(--border); border-radius: 14px;
  font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; box-shadow: 4px 4px 0 var(--border);
}
.contact-form ::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.form-note { font-weight: 800; font-size: 13px; min-height: 20px; }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { padding: 0 20px 32px; }
.footer-card {
  max-width: 1160px; margin: 0 auto; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer-card .note { color: var(--muted); font-size: 13px; font-weight: 700; margin: 0; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links a {
  border: 2.5px solid var(--border); border-radius: 100px;
  padding: 7px 16px; font-weight: 800; font-size: 12px;
  background: var(--bg); box-shadow: 2.5px 2.5px 0 var(--border);
  transition: transform .15s;
}
.footer-links a:hover { transform: translateY(-2px); }
@media (max-width: 700px) {
  .footer-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .site-footer { padding: 0 16px 24px; }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
html.js .loader { display: flex; }
.loader-mark {
  width: 84px; height: 84px; border-radius: 50%;
  border: 4px solid var(--border); background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; box-shadow: 6px 6px 0 var(--border);
  animation: loader-bounce 1s cubic-bezier(.36,0,.64,1) infinite alternate;
}
@keyframes loader-bounce {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-26px) rotate(8deg); }
}
.loader p { font-weight: 800; font-size: 14px; color: var(--muted); text-align: center; padding: 0 20px; }

/* ---------- custom cursor (desktop pointers only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 50%; transform: translate(-50%, -50%);
  display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 980px) {
  .cursor-dot, .cursor-ring { display: block; }
}
.cursor-dot { width: 8px; height: 8px; background: var(--ink); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 2.5px solid var(--ink);
  transition: width .25s, height .25s, background .25s, opacity .25s;
  opacity: .55;
}
.cursor-ring.hovering { width: 58px; height: 58px; background: color-mix(in srgb, var(--primary) 40%, transparent); opacity: 1; }

/* ---------- scroll progress ---------- */
.progress-bar {
  position: fixed; inset-inline: 0; top: 0; height: 4px; z-index: 70;
  background: linear-gradient(90deg, var(--grad1), var(--grad2), var(--secondary));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform; pointer-events: none;
}
html[dir="rtl"] .progress-bar { transform-origin: 100% 50%; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%;
  border: 3px solid var(--border); background: var(--primary); color: var(--ink);
  box-shadow: 4px 4px 0 var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-3px) scale(1.06); box-shadow: 6px 6px 0 var(--border); }
@media (max-width: 480px) { .to-top { width: 44px; height: 44px; bottom: 16px; inset-inline-end: 16px; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; inset-inline-start: 50%;
  transform: translateX(-50%) translateY(140px);
  z-index: 150; padding: 14px 26px; font-weight: 800; font-size: 14px;
  background: var(--card); border: 3px solid var(--border);
  border-radius: 100px; box-shadow: 5px 5px 0 var(--border);
  max-width: calc(100vw - 32px); text-align: center;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
html[dir="rtl"] .toast { transform: translateX(50%) translateY(140px); }
.toast.show { transform: translateX(-50%) translateY(0); }
html[dir="rtl"] .toast.show { transform: translateX(50%) translateY(0); }

/* ---------- reveal ---------- */
/* Content is visible by default; JS opts in to animating it so a JS/CDN
   failure can never leave the page blank. */
.gs-reveal, .gs-card { opacity: 1; }

/* ---------- images fade in instead of popping ---------- */
img[loading="lazy"] { opacity: 0; transition: opacity .45s ease; }
img[loading="lazy"].loaded, html:not(.js) img[loading="lazy"] { opacity: 1; }

/* ---------- skip link (keyboard users) ---------- */
.skip-link {
  position: absolute; inset-inline-start: 50%; top: -120px; z-index: 400;
  transform: translateX(-50%);
  background: var(--primary); color: var(--on-accent);
  border: 3px solid var(--border); border-radius: 0 0 16px 16px;
  padding: 12px 26px; font-weight: 900; font-size: 14px;
  box-shadow: 0 4px 0 var(--border);
  transition: top .25s ease;
}
html[dir="rtl"] .skip-link { transform: translateX(50%); }
.skip-link:focus { top: 0; }

/* ---------- empty state for the product filter ---------- */
.filter-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px;
  color: var(--muted); font-weight: 800; font-size: 15px;
}
.filter-empty span { font-size: 40px; display: block; margin-bottom: 10px; }

/* filter chips carry a live count */
.filter-chip .count {
  font-size: 10.5px; opacity: .6; margin-inline-start: 5px; font-weight: 800;
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
}
.page-404 h1 { font-size: clamp(52px, 14vw, 96px); font-weight: 900; margin: 24px 0 8px; line-height: 1; }
.page-404 p { color: var(--muted); font-size: 16px; max-width: 420px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee { animation: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
