/* صفحات آرشیو و سینگل */

/* =========================================================
   Project Archive — pa-* namespace
   Mirrors: ui_kits/website/project-archive.html
   ========================================================= */

.pa-page { background: var(--bg-1); color: var(--fg-1); }
.pa-page section { position: relative; }
.pa-mono   { font-family: var(--font-mono); letter-spacing: .04em; font-feature-settings: "tnum"; }
.pa-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .15em; color: var(--fg-3); text-transform: uppercase;
}
.pa-kicker::before { content: ""; width: 28px; height: 1px; background: var(--brand-500); }

/* ── Breadcrumb ── */
.pa-crumb {
  padding: 24px 0 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--fg-3);
}
.pa-crumb a { color: var(--fg-3); }
.pa-crumb a:hover { color: var(--brand-600); text-decoration: none; }
.pa-crumb i { font-size: 11px; opacity: .55; }
.pa-crumb .now { color: var(--fg-1); font-weight: 600; }

/* ── Hero ── */
.pa-hero { padding: 24px 0 56px; overflow: hidden; }
@media (max-width: 991px) { .pa-hero { padding: 16px 0 40px; } }
.pa-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 380px at 88% -10%, var(--brand-50), transparent 65%);
}
.pa-hero .container-xl { position: relative; z-index: 1; }
.pa-hero h1 {
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.18; letter-spacing: -0.02em;
  color: var(--fg-1); margin: 22px 0 0; max-width: 920px;
}
.pa-hero h1 .accent { color: var(--brand-600); }
.pa-hero-lead {
  margin-top: 22px; max-width: 720px;
  font-size: clamp(16px, 1.4vw, 18px); line-height: 1.85; color: var(--fg-2);
}
.pa-hero-lead strong { color: var(--fg-1); font-weight: 700; }

/* stat strip */
.pa-stat-strip {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--bg-1); overflow: hidden;
}
@media (max-width: 767px) { .pa-stat-strip { grid-template-columns: repeat(2, 1fr); } }
.pa-stat-cell {
  padding: 22px 24px;
  border-inline-start: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.pa-stat-cell:first-child { border-inline-start: 0; }
@media (max-width: 767px) {
  .pa-stat-cell:nth-child(odd) { border-inline-start: 0; }
  .pa-stat-cell:nth-child(n+3) { border-top: 1px dashed var(--border); }
}
.pa-stat-cell .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--fg-3); text-transform: uppercase; }
.pa-stat-cell .big { font-family: var(--font-mono); font-size: 32px; font-weight: 800; color: var(--fg-1); line-height: 1; letter-spacing: -.02em; }
.pa-stat-cell .big small { font-family: var(--font-sans); font-size: 13px; color: var(--fg-3); font-weight: 500; margin-inline-start: 6px; letter-spacing: 0; }
.pa-stat-cell .hint { font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }
.pa-stat-cell .hint i { color: var(--brand-500); margin-inline-end: 4px; }

/* ── Toolbar ── */
.pa-toolbar-section { padding: 0 0 16px; }
.pa-toolbar {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding-top: 22px; padding-bottom: 22px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
@media (max-width: 991px) { .pa-toolbar { grid-template-columns: 1fr; gap: 14px; } }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pa-chips .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-inline-end: 4px; }
.pa-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--fg-2);
  border: 1px solid var(--border); background: var(--bg-1);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: var(--font-sans);
}
.pa-chip:hover { color: var(--fg-1); border-color: var(--border-strong); }
.pa-chip.is-on { background: var(--fg-1); color: #fff; border-color: var(--fg-1); }
.pa-chip .cnt { font-family: var(--font-mono); font-size: 11px; opacity: .55; }
.pa-chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-500); opacity: .55; }
.pa-tools { display: flex; align-items: center; gap: 14px; }
.pa-search {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-1); padding: 0 14px;
  height: 38px; min-width: 220px;
  transition: border-color var(--dur-fast);
}
.pa-search:focus-within { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }
.pa-search i { color: var(--fg-3); font-size: 14px; margin-inline-end: 8px; }
.pa-search input { border: 0; background: transparent; outline: none; font-family: var(--font-sans); font-size: 13.5px; color: var(--fg-1); width: 100%; }
.pa-search input::placeholder { color: var(--fg-4); }
.pa-search kbd { font-family: var(--font-mono); font-size: 10.5px; background: var(--bg-3); color: var(--fg-3); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; }
.pa-view { display: inline-flex; padding: 3px; background: var(--bg-2); border-radius: 999px; gap: 2px; }
.pa-view button { border: 0; background: transparent; cursor: pointer; width: 32px; height: 32px; border-radius: 999px; color: var(--fg-3); font-size: 14px; display: grid; place-items: center; transition: all var(--dur-fast); }
.pa-view button.is-on { background: var(--bg-1); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.pa-sort { font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.pa-sort i { color: var(--brand-500); }
.pa-sort b { color: var(--fg-1); font-weight: 600; }

/* results bar */
.pa-results-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; padding: 18px 0;
  font-size: 13px; color: var(--fg-3);
}
.pa-results-bar b { color: var(--fg-1); font-weight: 700; font-family: var(--font-mono); }

/* ── Archive Grid ── */
.pa-archive { padding: 0 0 56px; }
.pa-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 1199px) { .pa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .pa-grid { grid-template-columns: 1fr; } }

/* ── Card ── */
.pa-card {
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.pa-card:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.pa-card:hover .pa-card-arrow { transform: translateX(-4px); color: var(--brand-600); }

/* thumbnail stage */
.pa-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pa-thumb.t-a { background: linear-gradient(135deg, #4169E1, #6589EE); }
.pa-thumb.t-b { background: linear-gradient(135deg, #2944A4, #4169E1); }
.pa-thumb.t-c { background: linear-gradient(135deg, #1F3580, #3457C9); }
.pa-thumb.t-d { background: linear-gradient(135deg, #16275C, #2944A4); }
.pa-thumb.t-e { background: linear-gradient(160deg, #DCE6FD, #B9CDFB); }
.pa-thumb.t-f { background: linear-gradient(135deg, #3457C9, #8FAEF7); }
.pa-thumb.t-g { background: linear-gradient(160deg, #6589EE, #4169E1 60%, #2944A4); }
.pa-thumb.t-h { background: linear-gradient(160deg, #f3f5fb, #e2e8f0); }

.pa-thumb .meta-top {
  position: absolute; top: 14px; inset-inline: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.65); z-index: 3;
}
.pa-thumb.t-e .meta-top, .pa-thumb.t-h .meta-top { color: rgba(15,23,42,.55); }
.pa-thumb .meta-top .dot { display: inline-flex; align-items: center; gap: 5px; }
.pa-thumb .meta-top .dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* mock: site */
.pa-mock-site {
  position: absolute; inset: 36px 22px 22px;
  background: rgba(255,255,255,.92); border-radius: 8px;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.3); overflow: hidden;
}
.pa-mock-site .bar { height: 18px; background: var(--bg-3); display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--border); }
.pa-mock-site .bar span { width: 5px; height: 5px; border-radius: 999px; background: var(--slate-300); }
.pa-mock-site .body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.pa-mock-site .body .h { width: 60%; height: 12px; border-radius: 3px; background: var(--brand-600); }
.pa-mock-site .body .l { height: 5px; border-radius: 3px; background: var(--slate-200); }
.pa-mock-site .body .l.w90 { width: 90%; }
.pa-mock-site .body .l.w70 { width: 70%; }
.pa-mock-site .body .row { display: flex; gap: 5px; margin-top: 4px; }
.pa-mock-site .body .row div { flex: 1; height: 22px; background: var(--bg-3); border-radius: 4px; }
.pa-mock-site .body .row div.acc { background: var(--brand-200); }

/* mock: app */
.pa-mock-app {
  position: absolute; inset: 36px 22px 22px;
  background: #0B1220; border-radius: 8px;
  display: grid; grid-template-columns: 36px 1fr; overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.pa-mock-app .side { background: rgba(255,255,255,.04); border-inline-end: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; }
.pa-mock-app .side i { width: 24px; height: 24px; border-radius: 5px; background: rgba(255,255,255,.06); display: block; }
.pa-mock-app .side i.on { background: var(--brand-500); }
.pa-mock-app .main { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.pa-mock-app .main .h { display: flex; justify-content: space-between; align-items: center; }
.pa-mock-app .main .h b { height: 7px; width: 60px; background: rgba(255,255,255,.5); border-radius: 3px; display: block; }
.pa-mock-app .main .h .p { height: 12px; width: 50px; background: var(--brand-600); border-radius: 999px; }
.pa-mock-app .main .row { display: flex; gap: 5px; }
.pa-mock-app .main .row div { flex: 1; height: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 4px; }
.pa-mock-app .main .row div.acc { background: rgba(65,105,225,.25); border-color: var(--brand-400); }
.pa-mock-app .main .bars { display: flex; align-items: flex-end; gap: 3px; flex: 1; min-height: 36px; padding-top: 4px; }
.pa-mock-app .main .bars span { flex: 1; background: linear-gradient(180deg, var(--brand-300), var(--brand-600)); border-radius: 2px 2px 0 0; }

/* mock: bot */
.pa-mock-bot { position: absolute; inset: 36px 22px 22px; display: grid; place-items: center; }
.pa-mock-bot .phone { width: 95px; height: 165px; background: #0B1220; border-radius: 14px; padding: 4px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.pa-mock-bot .screen { background: #f3f5fb; border-radius: 11px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.pa-mock-bot .head { height: 22px; background: var(--brand-700); display: flex; align-items: center; padding: 0 6px; gap: 4px; }
.pa-mock-bot .head::before { content: ""; width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.3); }
.pa-mock-bot .head::after { content: ""; flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 999px; }
.pa-mock-bot .chat { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.pa-mock-bot .chat .b { background: #fff; border-radius: 6px; padding: 3px 5px; font-size: 6.5px; color: var(--fg-1); align-self: flex-start; max-width: 80%; }
.pa-mock-bot .chat .u { background: var(--brand-600); color: #fff; border-radius: 6px; padding: 3px 5px; font-size: 6.5px; align-self: flex-end; max-width: 70%; }
.pa-mock-bot .chat .opts { align-self: flex-start; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 88%; margin-top: 1px; }
.pa-mock-bot .chat .opts span { background: rgba(65,105,225,.15); border: 1px solid rgba(65,105,225,.3); color: var(--brand-700); font-size: 6.5px; padding: 2px; border-radius: 4px; text-align: center; font-weight: 600; }

/* mock: seo */
.pa-mock-seo {
  position: absolute; inset: 36px 22px 22px;
  background: #0B1220; border-radius: 8px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.pa-mock-seo .head { display: flex; justify-content: space-between; align-items: flex-end; }
.pa-mock-seo .head .l { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }
.pa-mock-seo .head b { font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.pa-mock-seo .head .up { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #6EE7B7; margin-inline-start: 6px; }
.pa-mock-seo .chart { flex: 1; position: relative; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/100% 25% repeat-y; border-bottom: 1px solid rgba(255,255,255,.16); }
.pa-mock-seo .chart svg { width: 100%; height: 100%; display: block; }

/* card meta */
.pa-card-meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.pa-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pa-card-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--brand-600); text-transform: uppercase; }
.pa-card-year { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-4); }
.pa-card h3 { font-size: 16.5px; font-weight: 800; line-height: 1.4; color: var(--fg-1); margin: 0; }
.pa-card-tech { font-family: var(--font-mono); direction: ltr; font-size: 11.5px; color: var(--fg-3); }
.pa-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 10px; border-top: 1px dashed var(--border); margin-top: 4px;
}
.pa-card-stat { font-family: var(--font-mono); font-size: 13px; color: var(--success-700); font-weight: 700; }
.pa-card-stat.muted { color: var(--fg-3); font-weight: 500; }
.pa-card-stat i { color: var(--success-500); margin-inline-end: 4px; }
.pa-card-arrow {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--bg-2); color: var(--fg-2);
  display: grid; place-items: center; font-size: 12px;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

/* ── List View ── */
.pa-list { display: none; }
.is-list .pa-grid { display: none; }
.is-list .pa-list { display: block; }

.pa-list-row {
  display: grid;
  grid-template-columns: 70px 2.4fr 1.4fr 110px 110px 30px;
  gap: 18px; align-items: center;
  padding: 18px 4px; border-top: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: padding-inline var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.pa-list-row:hover { background: var(--bg-2); padding-inline: 18px; border-radius: var(--radius-md); text-decoration: none; color: inherit; }
.pa-list-row:hover .pa-card-arrow { color: var(--brand-600); transform: translateX(-4px); }
.pa-list-row:last-of-type { border-bottom: 1px solid var(--border); }
.pa-list-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--fg-4); }
.pa-list-row .ttl b { display: block; font-size: 16px; font-weight: 800; color: var(--fg-1); line-height: 1.4; margin-bottom: 4px; }
.pa-list-row .ttl small { font-size: 12.5px; color: var(--fg-3); font-family: var(--font-mono); direction: ltr; }
.pa-list-row .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--brand-700); text-transform: uppercase; background: var(--brand-50); padding: 5px 12px; border-radius: 999px; justify-self: start; }
.pa-list-row .stat { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--success-700); text-align: center; }
.pa-list-row .stat.muted { color: var(--fg-3); font-weight: 500; }
.pa-list-row .yr { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); text-align: center; }
@media (max-width: 991px) {
  .pa-list-row { grid-template-columns: 1fr auto; gap: 10px; padding: 16px 4px; }
  .pa-list-row .num, .pa-list-row .cat, .pa-list-row .stat, .pa-list-row .yr, .pa-list-row .pa-card-arrow { display: none; }
}

/* ── Pagination ── */
.pa-pager {
  padding: 32px 0 72px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  border-top: 1px solid var(--border); margin-top: 36px;
}
.pa-pager-info { font-size: 13.5px; color: var(--fg-3); }
.pa-pager-info b { color: var(--fg-1); font-weight: 700; font-family: var(--font-mono); }
.pa-pages { display: inline-flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pa-pages li { display: flex; }
.pa-pages a, .pa-pages span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--fg-2); text-decoration: none;
  border: 1px solid transparent; border-radius: 10px;
  transition: all var(--dur-fast) var(--ease-out);
}
.pa-pages a:hover { background: var(--bg-2); color: var(--fg-1); text-decoration: none; }
.pa-pages a.is-on { background: var(--fg-1); color: #fff; border-color: var(--fg-1); }
.pa-pages a.nav { font-family: var(--font-sans); font-weight: 700; padding: 0 16px; border-color: var(--border); }
.pa-pages a.nav:hover { background: var(--bg-2); border-color: var(--border-strong); }
.pa-pages span.is-disabled, .pa-pages span.nav { color: var(--fg-4); pointer-events: none; border-color: var(--border); }
.pa-pages .gap { color: var(--fg-4); cursor: default; }
@media (max-width: 575px) {
  .pa-pages a, .pa-pages span { min-width: 34px; height: 34px; }
  .pa-pages a.nav { padding: 0 12px; }
}

/* ── Stats Band (dark) ── */
.pa-stats { padding: 100px 0; background: var(--fg-1); color: #fff; }
@media (max-width: 991px) { .pa-stats { padding: 64px 0; } }
.pa-stats .pa-kicker { color: rgba(255,255,255,.55); }
.pa-stats .pa-kicker::before { background: var(--brand-300); }
.pa-stats-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
@media (max-width: 991px) { .pa-stats-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; } }
.pa-stats-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 0; }
.pa-stats-head p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.85; margin: 0; max-width: 380px; }
.pa-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-xl); overflow: hidden; }
@media (max-width: 991px) { .pa-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .pa-stats-grid { grid-template-columns: 1fr; } }
.pa-stats-cell { padding: 32px; min-height: 220px; border-inline-start: 1px solid rgba(255,255,255,.10); display: flex; flex-direction: column; gap: 12px; }
.pa-stats-cell:first-child { border-inline-start: 0; }
@media (max-width: 991px) {
  .pa-stats-cell:nth-child(odd) { border-inline-start: 0; }
  .pa-stats-cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.10); }
}
@media (max-width: 575px) {
  .pa-stats-cell { border-inline-start: 0; }
  .pa-stats-cell + .pa-stats-cell { border-top: 1px solid rgba(255,255,255,.10); }
}
.pa-stats-cell .num { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .12em; text-transform: uppercase; }
.pa-stats-cell h4 { font-size: 16px; font-weight: 800; color: #fff; margin: 0; }
.pa-stats-cell .big { margin-top: auto; font-family: var(--font-mono); font-size: 56px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; }
.pa-stats-cell .big small { font-family: var(--font-sans); font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500; margin-inline-start: 6px; letter-spacing: 0; }
.pa-stats-cell .desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }
.pa-stats-cell.is-feat .big { color: var(--brand-300); }

/* ── SEO Intro Band ── */
.pa-intro { padding: 80px 0; background: var(--bg-2); border-block: 1px solid var(--border); }
@media (max-width: 991px) { .pa-intro { padding: 56px 0; } }
.pa-intro-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 991px) { .pa-intro-grid { grid-template-columns: 1fr; gap: 28px; } }
.pa-intro h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 0; }
.pa-intro-text { font-size: 16px; line-height: 1.9; color: var(--fg-2); }
.pa-intro-text > * + * { margin-top: 14px; }
.pa-intro-text a { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pa-intro-text a:hover { color: var(--brand-800); }
.pa-intro-text ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
@media (max-width: 575px) { .pa-intro-text ul { grid-template-columns: 1fr; } }
.pa-intro-text ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.7; }
.pa-intro-text ul li i { color: var(--brand-600); margin-top: 4px; font-size: 14px; flex-shrink: 0; }
.pa-intro-text ul li b { color: var(--fg-1); }

/* ── CTA ── */
.pa-cta { padding: 110px 0; }
@media (max-width: 991px) { .pa-cta { padding: 72px 0; } }
.pa-cta-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: radial-gradient(700px 280px at 90% 0%, var(--brand-50), transparent 60%), var(--bg-1);
  padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 991px) { .pa-cta-card { grid-template-columns: 1fr; padding: 40px; } }
.pa-cta-card h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 0; }
.pa-cta-card h2 .accent { color: var(--brand-600); }
.pa-cta-card p { font-size: 16px; line-height: 1.85; color: var(--fg-2); margin-top: 14px; }
.pa-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 991px) { .pa-cta-actions { justify-content: flex-start; } }
.pa-btn-pri {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg-1); color: #fff; border: 0;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.pa-btn-pri:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.pa-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-1); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 1px dashed var(--fg-3); padding-bottom: 4px;
}
.pa-btn-ghost:hover { color: var(--brand-600); border-color: var(--brand-500); }

/* ── Empty State ── */
.pa-empty {
  display: none;
  padding: 80px 24px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: var(--bg-2); margin-top: 24px;
}
.pa-empty.is-on { display: block; }
.pa-empty i { font-size: 32px; color: var(--fg-4); }
.pa-empty h4 { font-size: 18px; font-weight: 800; margin: 14px 0 8px; color: var(--fg-1); }
.pa-empty p { font-size: 14px; color: var(--fg-3); margin: 0; }

/* =========================================================
   AryaByte — Archive & Single Pages
   پیشوند کلاس‌ها: ab-arc (آرشیو) | ab-single (سینگل)
   ========================================================= */

/* ---------- متغیرهای محلی ---------- */
:root {
    --arc-gap:          2rem;
    --arc-card-radius:  var(--radius-lg, 0.75rem);
    --arc-card-shadow:  0 2px 12px rgba(0, 0, 0, .07);
    --arc-card-shadow-hover: 0 6px 24px rgba(65, 105, 225, .13);
    --arc-hero-height:  320px;
    --arc-sidebar-gap:  1.75rem;
    --arc-filter-h:     2.5rem;
}

/* =========================================================
   1. SHARED UTILITIES
   ========================================================= */

/* ── Breadcrumb ── */
.ab-breadcrumb {
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         0.25rem 0.5rem;
    font-size:   var(--fs-14, 0.875rem);
    color:       var(--fg-3, #64748B);
    margin-bottom: 1.5rem;
    padding:     0;
    list-style:  none;
}

.ab-breadcrumb a {
    color:           var(--fg-3, #64748B);
    text-decoration: none;
    transition:      color .2s;
}

.ab-breadcrumb a:hover {
    color: var(--brand, #4169E1);
}

.ab-breadcrumb .sep {
    font-size: var(--fs-12, 0.75rem);
    opacity:   .5;
}

.ab-breadcrumb .current {
    color: var(--fg-1, #0B1220);
    font-weight: var(--fw-medium, 500);
}

/* ── Pagination ── */
.ab-pagination {
    display:         flex;
    justify-content: center;
    margin-top:      3rem;
}

.ab-pagination .nav-links {
    display:     flex;
    align-items: center;
    gap:         0.25rem;
    flex-wrap:   wrap;
}

.ab-pagination .page-numbers {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    min-width:       2.25rem;
    height:          2.25rem;
    padding:         0 0.5rem;
    border-radius:   var(--radius-md, 0.5rem);
    font-size:       var(--fs-14, 0.875rem);
    color:           var(--fg-2, #334155);
    border:          1px solid var(--border, #E2E8F0);
    background:      var(--bg-1, #fff);
    text-decoration: none;
    transition:      background .2s, color .2s, border-color .2s;
}

.ab-pagination .page-numbers:hover {
    background:   var(--brand-50, #EEF3FE);
    border-color: var(--brand, #4169E1);
    color:        var(--brand, #4169E1);
}

.ab-pagination .page-numbers.current {
    background:   var(--brand, #4169E1);
    border-color: var(--brand, #4169E1);
    color:        #fff;
    font-weight:  var(--fw-semibold, 600);
}

.ab-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ── Taxonomy Badge ── */
.ab-tag {
    display:         inline-flex;
    align-items:     center;
    gap:             0.25rem;
    padding:         0.2rem 0.65rem;
    border-radius:   999px;
    font-size:       var(--fs-12, 0.75rem);
    font-weight:     var(--fw-medium, 500);
    background:      var(--brand-50, #EEF3FE);
    color:           var(--brand-700, #2944A4);
    text-decoration: none;
    transition:      background .2s, color .2s;
    white-space:     nowrap;
}

.ab-tag:hover {
    background: var(--brand-100, #DCE6FD);
    color:      var(--brand-800, #1F3580);
}

.ab-tag--muted {
    background: var(--bg-3, #EEF2F7);
    color:      var(--fg-2, #334155);
}

/* ── Filter Tabs ── */
.ab-filter-tabs {
    display:    flex;
    flex-wrap:  wrap;
    gap:        0.5rem;
    margin-bottom: 2rem;
}

.ab-filter-tab {
    display:         inline-flex;
    align-items:     center;
    height:          var(--arc-filter-h);
    padding:         0 1.1rem;
    border-radius:   999px;
    font-size:       var(--fs-14, 0.875rem);
    font-weight:     var(--fw-medium, 500);
    color:           var(--fg-2, #334155);
    background:      var(--bg-3, #EEF2F7);
    border:          1px solid transparent;
    text-decoration: none;
    cursor:          pointer;
    transition:      background .2s, color .2s, border-color .2s;
    user-select:     none;
}

.ab-filter-tab:hover,
.ab-filter-tab.is-active {
    background:   var(--brand, #4169E1);
    color:        #fff;
    border-color: var(--brand, #4169E1);
}

/* =========================================================
   2. ARCHIVE — SHARED
   ========================================================= */

.ab-arc {
    background: var(--bg-1, #fff);
}

/* ── Archive Header ── */
.ab-arc__header {
    text-align:    center;
    margin-bottom: 2.5rem;
}

.ab-arc__title {
    font-size:   var(--fs-32, 2rem);
    font-weight: var(--fw-bold, 700);
    color:       var(--fg-1, #0B1220);
    margin-bottom: 0.5rem;
    line-height: var(--lh-tight, 1.2);
}

.ab-arc__subtitle {
    font-size: var(--fs-16, 1rem);
    color:     var(--fg-3, #64748B);
}

/* ── Card Base ── */
.ab-card {
    background:    var(--bg-1, #fff);
    border:        1px solid var(--border, #E2E8F0);
    border-radius: var(--arc-card-radius);
    box-shadow:    var(--arc-card-shadow);
    overflow:      hidden;
    display:       flex;
    flex-direction: column;
    height:        100%;
    transition:    transform .25s, box-shadow .25s;
}

.ab-card:hover {
    transform:  translateY(-3px);
    box-shadow: var(--arc-card-shadow-hover);
}

.ab-card__thumb {
    position:   relative;
    overflow:   hidden;
    aspect-ratio: 16/9;
    background: var(--bg-3, #EEF2F7);
}

.ab-card__thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
    transition: transform .35s ease;
}

.ab-card:hover .ab-card__thumb img {
    transform: scale(1.04);
}

.ab-card__body {
    padding:       1.25rem;
    flex:          1;
    display:       flex;
    flex-direction: column;
    gap:           0.5rem;
}

.ab-card__meta {
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         0.5rem;
    font-size:   var(--fs-12, 0.75rem);
    color:       var(--fg-3, #64748B);
}

.ab-card__title {
    font-size:   var(--fs-18, 1.125rem);
    font-weight: var(--fw-semibold, 600);
    color:       var(--fg-1, #0B1220);
    line-height: var(--lh-snug, 1.4);
    text-decoration: none;
    display:     block;
    margin:      0;
}

.ab-card__title:hover {
    color: var(--brand, #4169E1);
}

.ab-card__excerpt {
    font-size:   var(--fs-14, 0.875rem);
    color:       var(--fg-2, #334155);
    line-height: var(--lh-loose, 1.7);
    flex:        1;
    display:     -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:    hidden;
}

.ab-card__footer {
    padding:      0 1.25rem 1.25rem;
    margin-top:   auto;
}

.ab-card__cta {
    font-size:   var(--fs-14, 0.875rem);
    font-weight: var(--fw-medium, 500);
    color:       var(--brand, #4169E1);
    text-decoration: none;
    display:     inline-flex;
    align-items: center;
    gap:         0.3rem;
    transition:  gap .2s, color .2s;
}

.ab-card__cta:hover {
    gap:   0.55rem;
    color: var(--brand-700, #2944A4);
}

/* Placeholder thumb variations */
.work-thumb {
    width:           100%;
    height:          100%;
    min-height:      160px;
    display:         flex;
    align-items:     center;
    justify-content: center;
}

.tone-a { background: var(--brand-50, #EEF3FE); }
.tone-b { background: var(--slate-100, #EEF2F7); }
.tone-c { background: var(--brand-100, #DCE6FD); }

/* =========================================================
   3. ARCHIVE — BLOG
   ========================================================= */

.ab-arc--blog .ab-card__read-time {
    display:     inline-flex;
    align-items: center;
    gap:         0.25rem;
    color:       var(--fg-3, #64748B);
    font-size:   var(--fs-12, 0.75rem);
}

/* =========================================================
   4. ARCHIVE — PROJECT
   ========================================================= */

.ab-arc--project .ab-card__tech {
    font-size:  var(--fs-12, 0.75rem);
    color:      var(--fg-3, #64748B);
    font-family: var(--font-mono, monospace);
}

/* =========================================================
   5. ARCHIVE — SERVICE
   ========================================================= */

.ab-arc--service .ab-card__icon {
    font-size:   2.25rem;
    color:       var(--brand, #4169E1);
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* =========================================================
   6. ARCHIVE — FAQ
   ========================================================= */

.ab-arc--faq .accordion-button {
    font-weight: var(--fw-medium, 500);
    font-size:   var(--fs-16, 1rem);
    color:       var(--fg-1, #0B1220);
}

.ab-arc--faq .accordion-button:not(.collapsed) {
    color:            var(--brand, #4169E1);
    background-color: var(--brand-50, #EEF3FE);
    box-shadow:       inset 0 -1px 0 var(--brand-100, #DCE6FD);
}

.ab-arc--faq .accordion-button::after {
    filter: none;
}

.ab-arc--faq .accordion-item {
    border:        1px solid var(--border, #E2E8F0);
    border-radius: var(--radius-md, 0.5rem) !important;
    margin-bottom: 0.75rem;
    overflow:      hidden;
}

.ab-arc--faq .accordion-body {
    font-size:   var(--fs-15, 0.9375rem);
    line-height: var(--lh-loose, 1.7);
    color:       var(--fg-2, #334155);
}

/* =========================================================
   7. SINGLE — SHARED
   ========================================================= */

.ab-single {
    background: var(--bg-1, #fff);
}

/* ── Single Hero ── */
.ab-single__hero {
    position:   relative;
    overflow:   hidden;
    min-height: var(--arc-hero-height);
    background: var(--bg-2, #F7F9FC);
}

.ab-single__hero-img {
    width:      100%;
    max-height: 460px;
    object-fit: cover;
    display:    block;
}

.ab-single__hero-placeholder {
    min-height: var(--arc-hero-height);
}

/* ── Single Content Area ── */
.ab-single__content {
    padding-top:    2.5rem;
    padding-bottom: 3rem;
}

.ab-single__title {
    font-size:   clamp(var(--fs-24, 1.5rem), 4vw, var(--fs-40, 2.5rem));
    font-weight: var(--fw-bold, 700);
    color:       var(--fg-1, #0B1220);
    line-height: var(--lh-snug, 1.4);
    margin-bottom: 1rem;
}

/* ── Meta row ── */
.ab-single__meta {
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         0.75rem;
    font-size:   var(--fs-14, 0.875rem);
    color:       var(--fg-3, #64748B);
    padding:     0.75rem 0;
    border-top:  1px solid var(--border, #E2E8F0);
    border-bottom: 1px solid var(--border, #E2E8F0);
    margin-bottom: 1.5rem;
}

.ab-single__meta-item {
    display:     inline-flex;
    align-items: center;
    gap:         0.3rem;
}

/* ── Post Content body ── */
.post-content {
    font-size:   var(--fs-16, 1rem);
    line-height: var(--lh-loose, 1.7);
    color:       var(--fg-2, #334155);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color:        var(--fg-1, #0B1220);
    font-weight:  var(--fw-semibold, 600);
    margin-top:   2rem;
    margin-bottom: 0.75rem;
    line-height:  var(--lh-snug, 1.4);
}

.post-content h2 { font-size: var(--fs-24, 1.5rem); }
.post-content h3 { font-size: var(--fs-20, 1.25rem); }
.post-content h4 { font-size: var(--fs-18, 1.125rem); }

.post-content p  { margin-bottom: 1.25rem; }

.post-content img {
    max-width:     100%;
    border-radius: var(--radius-md, 0.5rem);
    margin:        1rem 0;
}

.post-content a {
    color:     var(--fg-link, #3457C9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover { color: var(--fg-link-hover, #2944A4); }

.post-content ul,
.post-content ol {
    padding-right: 1.5rem;
    padding-left:  0;
    margin-bottom: 1.25rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
    border-right:  4px solid var(--brand, #4169E1);
    border-left:   none;
    padding-right: 1.25rem;
    padding-left:  0;
    margin:        1.5rem 0;
    color:         var(--fg-3, #64748B);
    font-style:    normal;
}

/* ── Sidebar ── */
.ab-single__sidebar {
    position: sticky;
    top:      100px;
}

.ab-single__sidebar-card {
    background:    var(--bg-2, #F7F9FC);
    border:        1px solid var(--border, #E2E8F0);
    border-radius: var(--arc-card-radius);
    padding:       1.25rem;
    margin-bottom: 1.25rem;
}

.ab-single__sidebar-title {
    font-size:     var(--fs-14, 0.875rem);
    font-weight:   var(--fw-semibold, 600);
    color:         var(--fg-1, #0B1220);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom:  1rem;
    padding-bottom: 0.5rem;
    border-bottom:  1px solid var(--border, #E2E8F0);
}

/* ── TOC (Table of Contents) ── */
.toc-wrap {
    background:    var(--bg-2, #F7F9FC);
    border:        1px solid var(--border, #E2E8F0);
    border-radius: var(--arc-card-radius);
    padding:       1.25rem;
    margin-bottom: 1.25rem;
}

#post-toc ul {
    list-style: none;
    padding:    0;
    margin:     0;
}

#post-toc li { margin-bottom: 0.35rem; }

#post-toc a {
    font-size:       var(--fs-14, 0.875rem);
    color:           var(--fg-2, #334155);
    text-decoration: none;
    display:         block;
    padding:         0.2rem 0;
    border-radius:   0.25rem;
    transition:      color .2s;
}

#post-toc a:hover { color: var(--brand, #4169E1); }

#post-toc ul ul { padding-right: 1rem; padding-left: 0; }

/* ── Related Posts ── */
.ab-related {
    margin-top: 2.5rem;
}

.ab-related__title {
    font-size:     var(--fs-18, 1.125rem);
    font-weight:   var(--fw-semibold, 600);
    color:         var(--fg-1, #0B1220);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-50, #EEF3FE);
}

.ab-related-item {
    display:     flex;
    gap:         0.75rem;
    align-items: flex-start;
    padding:     0.75rem 0;
    border-bottom: 1px solid var(--border, #E2E8F0);
    text-decoration: none;
    transition:  background .2s;
}

.ab-related-item:last-child { border-bottom: none; }

.ab-related-item__thumb {
    flex-shrink: 0;
    width:       72px;
    height:      54px;
    border-radius: var(--radius-sm, 0.375rem);
    overflow:    hidden;
    background:  var(--bg-3, #EEF2F7);
}

.ab-related-item__thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}

.ab-related-item__title {
    font-size:   var(--fs-14, 0.875rem);
    font-weight: var(--fw-medium, 500);
    color:       var(--fg-1, #0B1220);
    line-height: var(--lh-snug, 1.4);
    display:     -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:    hidden;
    transition:  color .2s;
}

.ab-related-item:hover .ab-related-item__title {
    color: var(--brand, #4169E1);
}

.ab-related-item__date {
    font-size: var(--fs-12, 0.75rem);
    color:     var(--fg-3, #64748B);
    margin-top: 0.25rem;
}

/* =========================================================
   8. SINGLE — PROJECT
   ========================================================= */

/* ---------- breadcrumb ---------- */
.crumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 13px; color: var(--fg-3);
  margin-bottom: 18px; list-style: none; padding: 0;
}
.crumb a { color: var(--fg-3); text-decoration: none; }
.crumb a:hover { color: var(--brand-600); }
.crumb i { font-size: 11px; opacity: .55; }
.crumb .current { color: var(--fg-1); font-weight: 600; }

/* ---------- project hero ---------- */
.proj-hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(1100px 460px at 88% -10%, rgba(65,105,225,.10), transparent 60%),
    var(--bg-1);
  overflow: hidden;
}
.proj-hero .eyebrow-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-bottom: 14px;
}
.proj-hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2; font-weight: 800;
  letter-spacing: -0.02em; margin: 0; color: var(--fg-1);
}
.proj-hero .lead {
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.9; color: var(--fg-2);
  margin: 18px 0 0; max-width: 620px;
}
.proj-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- browser mock frame ---------- */
.proj-feature {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-1);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15,23,42,.04);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.proj-feature:hover { transform: rotate(0deg); }
.proj-feature-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.proj-feature-bar span {
  width: 10px; height: 10px; border-radius: 9999px; background: var(--slate-300);
}
.proj-feature-bar span:nth-child(1) { background: #FF5F57; }
.proj-feature-bar span:nth-child(2) { background: #FEBC2E; }
.proj-feature-bar span:nth-child(3) { background: #28C840; }
.proj-feature-bar .url {
  margin-inline-start: auto;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
  direction: ltr; background: var(--bg-1); padding: 4px 12px;
  border-radius: 9999px; border: 1px solid var(--border);
}

/* ---------- mock dashboard ---------- */
.mock-dash { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.mock-dash-side {
  background: linear-gradient(180deg, var(--brand-900), var(--brand-700));
  padding: 20px 16px;
}
.mock-dash-logo {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mock-dash-logo i { color: #fff; font-size: 22px; }
.mock-dash-logo b { color: #fff; font-size: 13px; font-weight: 700; }
.mock-dash-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.mock-dash-nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7);
  padding: 8px 10px; border-radius: 8px; font-size: 12px; text-decoration: none;
}
.mock-dash-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.mock-dash-nav i { font-size: 14px; }
.mock-dash-main { padding: 22px; background: var(--bg-2); }
.mock-dash-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.mock-dash-h h6 { margin: 0; font-size: 14px; font-weight: 700; }
.mock-dash-h .pill {
  font-size: 11px; padding: 4px 10px; border-radius: 9999px;
  background: var(--brand-50); color: var(--brand-700); font-weight: 600;
}
.mock-dash-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.mock-dash-card {
  background: var(--bg-1); border-radius: 10px;
  padding: 12px; border: 1px solid var(--border);
}
.mock-dash-card .num { font-size: 20px; font-weight: 800; color: var(--brand-700); line-height: 1; }
.mock-dash-card .lbl { font-size: 10.5px; color: var(--fg-3); margin-top: 5px; }
.mock-dash-chart {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
}
.mock-dash-chart-h {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fg-3); margin-bottom: 10px;
}
.mock-dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.mock-dash-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-300), var(--brand-600));
  border-radius: 3px;
}
@media (max-width: 575px) {
  .mock-dash { grid-template-columns: 1fr; }
  .mock-dash-side { display: none; }
}

/* ---------- facts strip ---------- */
.facts {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px;
  margin-top: -40px; position: relative; z-index: 2;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
}
.facts-item {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 4px;
  border-inline-start: 1px dashed var(--border);
  min-width: 0;
}
.facts-item:first-child { border-inline-start: 0; }
.facts-label {
  font-size: 11.5px; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .02em;
}
.facts-label i { color: var(--brand-500); font-size: 13px; }
.facts-value {
  font-size: 14.5px; font-weight: 700; color: var(--fg-1);
  line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.facts-value a {
  color: var(--brand-600); font-family: var(--font-mono);
  direction: ltr; font-size: 13.5px;
}
.facts-value a:hover { color: var(--brand-700); }
.facts-value.with-logo { display: flex; align-items: center; gap: 8px; white-space: normal; }
.facts-logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 12px; flex-shrink: 0;
}
@media (max-width: 1199px) {
  .facts { grid-template-columns: repeat(3,1fr); }
  .facts-item:nth-child(3n+1) { border-inline-start: 0; }
}
@media (max-width: 575px) {
  .facts { grid-template-columns: repeat(2,1fr); margin-top: -20px; }
  .facts-item { padding: 14px 16px; border-inline-start: 1px dashed var(--border) !important; }
  .facts-item:nth-child(2n+1) { border-inline-start: 0 !important; }
}

/* ---------- challenge / solution / result cards ---------- */
.csr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) { .csr-grid { grid-template-columns: 1fr; } }

.csr-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--dur-base) var(--ease-out); position: relative;
}
.csr-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-200); transform: translateY(-2px); }
.csr-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center; font-size: 20px;
}
.csr-card.is-result .ico { background: var(--success-50); color: var(--success-700); }
.csr-card .step {
  position: absolute; top: 22px; inset-inline-end: 22px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-4); direction: ltr;
}
.csr-card h4 { font-size: 19px; margin: 0; font-weight: 800; color: var(--fg-1); }
.csr-card p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--fg-2); }
.csr-card ul { padding: 0; margin: 4px 0 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.csr-card ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--fg-2); line-height: 1.7; }
.csr-card ul li i { color: var(--brand-600); margin-top: 4px; flex-shrink: 0; font-size: 13px; }
.csr-card.is-result ul li i { color: var(--success-700); }

/* ---------- main content area ---------- */
.proj-content .post-content { font-size: 15.5px; line-height: 1.85; color: var(--fg-2); }
.proj-content .post-content h2,
.proj-content .post-content h3 { color: var(--fg-1); margin-top: 2rem; }
.proj-content .post-content ul { padding-inline-start: 1.25rem; }

/* ---------- tech grid ---------- */
.proj-tech-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 991px) { .proj-tech-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px)  { .proj-tech-grid { grid-template-columns: repeat(2,1fr); } }

.proj-tech-item {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 14px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  transition: all var(--dur-fast) var(--ease-out);
}
.proj-tech-item:hover {
  border-color: var(--brand-300); background: var(--brand-50);
  transform: translateY(-2px);
}
.proj-tech-item i { font-size: 28px; color: var(--brand-600); }
.proj-tech-item b { font-size: 13.5px; font-weight: 700; color: var(--fg-1); }

/* ---------- gallery — mosaic ---------- */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.proj-gallery-item {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: all var(--dur-base) var(--ease-out);
  background: var(--bg-2); border: 1px solid var(--border);
}
.proj-gallery-item:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: var(--brand-200);
}
.proj-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .35s ease;
}
.proj-gallery-item:hover img { transform: scale(1.04); }
.proj-gallery-item .label {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.92); color: var(--fg-1);
  padding: 5px 11px; border-radius: 9999px; box-shadow: var(--shadow-xs); z-index: 2;
}
.proj-gallery-item .zoom {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 30px; height: 30px; border-radius: 9999px;
  background: rgba(255,255,255,.92); color: var(--brand-700);
  display: grid; place-items: center; font-size: 13px;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); z-index: 2;
}
.proj-gallery-item:hover .zoom { opacity: 1; }

/* mosaic layout positions */
.proj-gallery .gi-big  { grid-column: span 4; grid-row: span 2; }
.proj-gallery .gi-tall { grid-column: span 2; grid-row: span 2; }
.proj-gallery .gi-wide { grid-column: span 3; grid-row: span 1; }
.proj-gallery .gi-sq   { grid-column: span 2; grid-row: span 1; }

@media (max-width: 991px) {
  .proj-gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .proj-gallery .gi-big,
  .proj-gallery .gi-tall,
  .proj-gallery .gi-wide,
  .proj-gallery .gi-sq   { grid-column: span 2; grid-row: span 1; }
  .proj-gallery .gi-big  { grid-row: span 2; }
}

/* gallery tone backgrounds */
.gi-tone-a { background: linear-gradient(135deg, #4169E1, #6589EE); }
.gi-tone-b { background: linear-gradient(135deg, #2944A4, #4169E1); }
.gi-tone-c { background: linear-gradient(135deg, #1F3580, #3457C9); }
.gi-tone-d { background: linear-gradient(160deg, #16275C, #2944A4); }
.gi-tone-e { background: linear-gradient(135deg, #6589EE, #B9CDFB); }
.gi-tone-f { background: linear-gradient(135deg, #DCE6FD, #B9CDFB); }
.gi-tone-light { background: var(--bg-2); }

/* CSS-only screen mock inside gallery items */
.gi-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.gi-screen .tb {
  height: 22px; background: rgba(255,255,255,.16);
  display: flex; align-items: center; gap: 4px; padding: 0 10px;
}
.gi-screen .tb span { width: 6px; height: 6px; border-radius: 9999px; background: rgba(255,255,255,.4); }
.gi-screen .bd { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.gi-screen .ln { height: 8px; background: rgba(255,255,255,.22); border-radius: 4px; }
.gi-screen .ln.w70 { width: 70%; }
.gi-screen .ln.w90 { width: 90%; }
.gi-screen .ln.w50 { width: 50%; }
.gi-screen .ln.w40 { width: 40%; }
.gi-screen .row { display: flex; gap: 6px; }
.gi-screen .box { flex: 1; height: 38px; background: rgba(255,255,255,.18); border-radius: 6px; }
.gi-screen .box.acc { background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.25)); }
.gi-screen .barchart { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: auto; }
.gi-screen .barchart span { flex: 1; background: rgba(255,255,255,.55); border-radius: 3px; }
.gi-screen .donut {
  width: 90px; height: 90px; border-radius: 9999px;
  background: conic-gradient(rgba(255,255,255,.85) 0 60%, rgba(255,255,255,.3) 60% 78%, rgba(255,255,255,.55) 78%);
  margin: auto; position: relative;
}
.gi-screen .donut::after {
  content: ""; position: absolute; inset: 22%;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
}

/* mobile mock inside gallery */
.gi-phone { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.gi-phone .frame {
  width: 110px; height: 200px; background: #0B1220; border-radius: 18px;
  padding: 6px; position: relative; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.gi-phone .screen { background: #fff; border-radius: 13px; height: 100%; display: flex; flex-direction: column; }
.gi-phone .h {
  height: 28px; background: var(--brand-600); border-radius: 13px 13px 0 0;
  display: flex; align-items: center; padding: 0 10px;
}
.gi-phone .h::before { content: ""; width: 22px; height: 4px; background: rgba(255,255,255,.5); border-radius: 9999px; }
.gi-phone .b { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.gi-phone .b span { height: 6px; background: var(--slate-200); border-radius: 3px; }
.gi-phone .b span.brand { background: var(--brand-300); width: 70%; }
.gi-phone .b .card { height: 26px; background: var(--brand-50); border-radius: 6px; margin-top: 4px; border: 1px solid var(--brand-100); }

/* ---------- kpi-strip ---------- */
.kpi-strip {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 16px 0; font-size: 13.5px; color: var(--fg-3);
}
.kpi-strip span { display: inline-flex; align-items: center; gap: 6px; }
.kpi-strip i { color: var(--brand-500); }

/* ---------- related projects card ---------- */
.related-card { display: block; text-decoration: none !important; color: inherit; }
.related-card .work-meta h4 {
  color: var(--fg-1); transition: color var(--dur-fast) var(--ease-out);
}
.related-card:hover .work-meta h4 { color: var(--brand-700); }

/* ---------- timeline ---------- */
.proj-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.proj-timeline::before {
  content: "";
  position: absolute;
  top: 28px; inset-inline: 7%; height: 2px;
  background: repeating-linear-gradient(to left, var(--brand-300) 0 8px, transparent 8px 16px);
  z-index: 0;
}
@media (max-width: 767px) {
  .proj-timeline { grid-template-columns: 1fr; }
  .proj-timeline::before { display: none; }
}

.tl-step {
  position: relative; z-index: 1;
  text-align: center;
  background: var(--bg-1);
  padding: 12px 16px 22px;
  border-radius: var(--radius-lg);
}
.tl-num {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px;
  background: #fff; border: 2px solid var(--brand-200);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
  color: var(--brand-700);
  box-shadow: 0 6px 16px -8px var(--brand-300);
}
.tl-step h6 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--fg-1); }
.tl-step small { font-size: 12.5px; color: var(--fg-3); line-height: 1.7; display: block; }
.tl-step .when {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--brand-700); font-weight: 600;
  background: var(--brand-50); padding: 4px 10px; border-radius: 9999px;
  margin-top: 10px;
}

/* ---------- results dark band ---------- */
.proj-results-band {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--brand-900), #060e1f);
}
.proj-results-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 767px) { .proj-results-row { grid-template-columns: repeat(2, 1fr); } }

.result-cell {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg); padding: 24px; position: relative;
}
.result-cell .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  display: grid; place-items: center;
  color: var(--brand-300); font-size: 18px; margin-bottom: 14px;
}
.result-cell b { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; display: block; }
.result-cell b.hl { color: #86EFAC; }
.result-cell span { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 8px; display: block; line-height: 1.6; }

/* ---------- client quote ---------- */
.proj-quote {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.proj-quote::before {
  content: "\F6B0"; font-family: "bootstrap-icons";
  position: absolute; inset-inline-end: -10px; bottom: -40px;
  font-size: 220px; color: var(--brand-50); line-height: 1; pointer-events: none;
}
.proj-quote .avatar {
  width: 96px; height: 96px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 28px;
  border: 4px solid #fff; box-shadow: var(--shadow-md);
}
.proj-quote p {
  font-size: 18px; line-height: 1.95; color: var(--fg-1);
  margin: 0 0 18px; font-weight: 500; max-width: 720px;
}
.proj-quote .who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.proj-quote .who .name { font-size: 15px; font-weight: 700; color: var(--fg-1); }
.proj-quote .who .role { font-size: 13px; color: var(--fg-3); }
.proj-quote .stars { color: var(--warning-500); font-size: 13px; margin-bottom: 12px; }
@media (max-width: 575px) {
  .proj-quote { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
  .proj-quote .avatar { width: 72px; height: 72px; font-size: 22px; }
  .proj-quote p { font-size: 16px; }
}

/* ---------- prev / next bar ---------- */
.pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
@media (max-width: 575px) { .pn-row { grid-template-columns: 1fr; } }

.pn-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  color: inherit; text-decoration: none !important;
  transition: all var(--dur-fast) var(--ease-out);
}
.pn-card:hover { border-color: var(--brand-300); background: var(--bg-2); }
.pn-card.next { flex-direction: row-reverse; text-align: end; }
.pn-card .ico {
  width: 38px; height: 38px; border-radius: 9999px;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.pn-card small { font-size: 11.5px; color: var(--fg-3); display: block; }
.pn-card b {
  font-size: 14.5px; font-weight: 700; color: var(--fg-1);
  display: block; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}

/* ---------- final CTA ---------- */
.proj-cta {
  position: relative; border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 360px at 90% -10%, rgba(65,105,225,.45), transparent 60%),
    linear-gradient(160deg, var(--brand-900), #060e1f);
  color: #fff; padding: 56px 48px; overflow: hidden; text-align: center;
}
.proj-cta::after {
  content: ""; position: absolute;
  inset-inline-end: -100px; top: -100px;
  width: 320px; height: 320px;
  background-image: var(--site-logo-url, none);
  background-repeat: no-repeat; background-size: contain;
  opacity: .08; filter: brightness(0) invert(1); pointer-events: none;
}
.proj-cta h3 {
  font-size: clamp(24px,3vw,36px); font-weight: 800;
  color: #fff; margin: 12px 0 14px;
}
.proj-cta p {
  color: rgba(255,255,255,.78); font-size: 16px;
  line-height: 1.85; margin: 0 auto 26px; max-width: 600px;
}
.proj-cta .ds-badge {
  background: rgba(134,239,172,.10); color: #86EFAC;
  border: 1px solid rgba(134,239,172,.22);
}
.proj-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.proj-cta .btn-light { background: #fff; color: var(--brand-700); border-color: #fff; }
.proj-cta .btn-light:hover { background: var(--bg-2); color: var(--brand-800); }
@media (max-width: 575px) { .proj-cta { padding: 40px 22px; } }

/* ---------- lightbox ---------- */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(11,18,32,.78); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
}
.lb-overlay.is-open { display: flex; }
.lb-box {
  max-width: 900px; width: 100%;
  background: var(--bg-1); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xl); position: relative;
}
.lb-stage { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-3); }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-cap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
.lb-cap .ttl { font-size: 14.5px; font-weight: 700; color: var(--fg-1); }
.lb-cap .count { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3); direction: ltr; }
.lb-close, .lb-nav {
  border: 0; background: var(--bg-2);
  width: 40px; height: 40px; border-radius: 9999px;
  display: grid; place-items: center; color: var(--fg-1);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.lb-close:hover, .lb-nav:hover { background: var(--brand-500); color: #fff; }
.lb-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; background: rgba(255,255,255,.92); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.92); }
.lb-nav.prev { inset-inline-end: 18px; }
.lb-nav.next { inset-inline-start: 18px; }

/* =========================================================
   9. SINGLE — SERVICE
   ========================================================= */

.ab-single--service .ab-hero-icon {
    font-size:   4rem;
    color:       var(--brand, #4169E1);
    line-height: 1;
    display:     block;
    margin-bottom: 1rem;
}

.ab-features-list {
    list-style:  none;
    padding:     0;
    margin:      0;
}

.ab-features-list li {
    display:     flex;
    align-items: flex-start;
    gap:         0.6rem;
    padding:     0.5rem 0;
    border-bottom: 1px solid var(--border, #E2E8F0);
    font-size:   var(--fs-14, 0.875rem);
    color:       var(--fg-2, #334155);
    line-height: var(--lh-snug, 1.4);
}

.ab-features-list li:last-child { border-bottom: none; }

.ab-features-list li::before {
    content:   "\F26E";
    font-family: "bootstrap-icons";
    color:     var(--brand, #4169E1);
    font-size: var(--fs-14, 0.875rem);
    flex-shrink: 0;
    margin-top: 2px;
}

.ab-price-label {
    display:         inline-flex;
    align-items:     center;
    padding:         0.5rem 1.25rem;
    background:      var(--brand-50, #EEF3FE);
    color:           var(--brand-700, #2944A4);
    border:          1px solid var(--brand-100, #DCE6FD);
    border-radius:   var(--radius-md, 0.5rem);
    font-size:       var(--fs-16, 1rem);
    font-weight:     var(--fw-semibold, 600);
    margin-top:      1rem;
}

/* =========================================================
   10. SINGLE — FAQ
   ========================================================= */

.ab-single--faq .ab-faq-answer {
    font-size:   var(--fs-16, 1rem);
    line-height: var(--lh-loose, 1.7);
    color:       var(--fg-2, #334155);
}

.ab-faq-cta {
    margin-top:    3rem;
    padding:       2rem;
    background:    var(--brand-50, #EEF3FE);
    border-radius: var(--arc-card-radius);
    text-align:    center;
}

.ab-faq-cta__title {
    font-size:   var(--fs-20, 1.25rem);
    font-weight: var(--fw-semibold, 600);
    color:       var(--fg-1, #0B1220);
    margin-bottom: 0.75rem;
}

/* =========================================================
   11. RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 991.98px) {
    .ab-single__sidebar {
        position: static;
        margin-top: 2rem;
    }

    .ab-arc__title { font-size: var(--fs-24, 1.5rem); }

    .ab-single__title { font-size: var(--fs-24, 1.5rem); }
}

@media (max-width: 575.98px) {
    .section-pad {
        padding-top:    2.5rem;
        padding-bottom: 2.5rem;
    }

    .ab-card__body { padding: 1rem; }

    .ab-card__footer { padding: 0 1rem 1rem; }
}
