/* bundle site-after: generated by tools/build/bundle-css.py from css/empty-state.css, css/polish.css, css/front-ui.css, css/cards.css, css/tones.css, css/inline-styles.css. Do not edit. */

/* ── css/empty-state.css ── */
/* Phase 3.9 — the panel's animated empty-state picture, shared by public pages, the panel and the admin:
   <div class="fx-empty-art"><span class="fx-empty-dot"></span>×3<span class="fx-empty-icon"><i class="fa…"></i></span></div>
   (rendered by Views/Shared/_EmptyArt.cshtml and the <f-empty> tag helper). */
.fx-empty-art { position: relative; width: 104px; height: 104px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.fx-empty-art::before, .fx-empty-art::after { content: ''; position: absolute; border-radius: 50%; }
.fx-empty-art::before { width: 96px; height: 96px; background: rgba(99, 102, 241, .08); animation: fxEmptyPulse 3.2s ease-in-out infinite; }
.fx-empty-art::after { width: 64px; height: 64px; background: rgba(99, 102, 241, .13); }
.fx-empty-icon {
    position: relative; z-index: 2; width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 8px 18px rgba(99, 102, 241, .28);
    animation: fxEmptyFloat 3s ease-in-out infinite;
}
.fx-empty-dot { position: absolute; z-index: 3; width: 9px; height: 9px; border-radius: 50%; animation: fxEmptyDot 2.6s ease-in-out infinite; }
.fx-empty-dot:nth-child(1) { top: 10px; right: 12px; background: #3b82f6; }
.fx-empty-dot:nth-child(2) { bottom: 14px; right: 6px; width: 7px; height: 7px; background: #10b981; animation-delay: -.9s; }
.fx-empty-dot:nth-child(3) { top: 24px; left: 6px; width: 6px; height: 6px; background: #f59e0b; animation-delay: -1.7s; }
@keyframes fxEmptyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fxEmptyPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .7; } }
@keyframes fxEmptyDot { 0%, 100% { transform: translateY(0) scale(1); opacity: .9; } 50% { transform: translateY(-5px) scale(1.15); opacity: .5; } }
.is-compact .fx-empty-art { width: 76px; height: 76px; margin-bottom: 10px; }
.is-compact .fx-empty-art::before { width: 70px; height: 70px; }
.is-compact .fx-empty-art::after { width: 48px; height: 48px; }
.is-compact .fx-empty-icon { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .fx-empty-art::before, .fx-empty-icon, .fx-empty-dot { animation: none; } }

/* ── css/polish.css ── */
/* ══════════════════════════════════════════════════════
   Farada polish layer — loaded last by every layout (site, sign-in, user panel, admin).
   Typography (Lahzeh everywhere), smooth and consistent hovers, touch-safe hover,
   short pages without a stray scrollbar, focus rings and reduced motion.
   ══════════════════════════════════════════════════════ */

:root {
    --font-fa: "Lahzeh", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --font-code: "JetBrains Mono", "Cascadia Code", Consolas, "Lahzeh", monospace;
    --ease-smooth: cubic-bezier(.22, 1, .36, 1);
    --dur-fast: .18s;
    --dur-hover: .32s;
    --lift: -2px;
}

/* ── Typography ── */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea,
optgroup {
    font-family: var(--font-fa);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    font-synthesis: none;
    font-optical-sizing: auto;
}

/* Persian text inside code-styled UI (tracking codes, numbers) falls back to Lahzeh, not a system font. */
code, kbd, pre, samp,
[class*="mono"],
.font-mono {
    font-family: var(--font-code);
}

h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Numbers that change or line up (counters, prices, stats) keep their width. */
.num, .ctr, [data-to], .ucp-stat-value, .stat-value, .kpi-value { font-family: "Farada Numbers", var(--font-fa); font-variant-numeric: tabular-nums; }

::selection { background: rgba(99, 102, 241, .22); }

/* ── Short pages: the footer sits at the bottom without forcing a scroll ── */
.site-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-body > .site-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-body > .site-content > main,
.site-body > .site-content > .page-main {
    flex: 1 0 auto;
}

/* The original pages forced min-height:100vh on <main>, which added the footer's height as extra scroll. */
.site-body .page-main { min-height: 0; }

.min-h-dvh-screen {
    min-height: 100vh;
    min-height: 100svh;
}

/* Mobile browsers: 100vh includes the hidden address bar → use the dynamic viewport. */
.auth-body,
.auth-wrapper { min-height: 100vh; min-height: 100dvh; }
.auth-wrapper-center { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }

/* ── Smooth, consistent hovers ── */
/* `transition: all` (used across the original CSS) animates layout properties and feels jumpy;
   interactive elements get a targeted, slightly longer ease-out instead. */
.t,
.btn-brand, .btn-ghost,
.card, .bento, .trust-card, .tech-card, .proc-item, .social-btn, .mob-link, .nl,
.fa-account-btn, .tg-float, #btt,
.f-btn, .f-card-link, .nav-item, .module,
.ucp-stat-card, .ucp-nav-link, .ucp-card, .ucp-menu-btn,
.auth-submit, .auth-link, .auth-footer-link, .auth-contact {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity, filter;
    transition-duration: var(--dur-hover);
    transition-timing-function: var(--ease-smooth);
}

/* Lift effects are gentle and identical everywhere. */
@media (hover: hover) and (pointer: fine) {
    .btn-brand:hover { transform: translateY(-2px); }
    .card:hover, .bento:hover, .trust-card:hover, .tech-card:hover, .ucp-stat-card:hover { transform: translateY(var(--lift)); }
    .lift:hover { transform: translateY(var(--lift)); }
}

/* Touch screens: no sticky hover states or jumps after a tap. */
@media (hover: none) {
    .btn-brand:hover, .card:hover, .bento:hover, .trust-card:hover, .tech-card:hover, .proc-item:hover,
    .tg-float:hover, .social-btn:hover, .ucp-stat-card:hover, .lift:hover,
    .bento:hover .img-inner, .bento:hover .icon-box, .logo-wrap:hover .logo-img {
        transform: none;
    }
}

/* Press feedback */
.btn-brand:active, .btn-ghost:active, .f-btn:active, .auth-submit:active { transform: translateY(0) scale(.98); transition-duration: var(--dur-fast); }

/* Images inside cards zoom slowly instead of snapping. */
.img-inner, .fpp-card img, .fbg-card img { transition: transform .7s var(--ease-smooth); }

/* ── Focus: visible for keyboard users only ── */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ── Touch targets on phones ── */
@media (max-width: 640px) {
    .social-btn, .mob-close, .ucp-menu-btn, .f-btn-icon, .ft-close { min-width: 40px; min-height: 40px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .r { opacity: 1 !important; transform: none !important; }
}

/* ── Accessibility: text contrast in the light theme (WCAG AA, 4.5:1 for small text) ──
   Lighthouse 1405-08-27: the brand indigo #6366f1 and the old muted grey were 2.2–4.46:1 as small text.
   Brand color stays for backgrounds, borders and gradients; only TEXT uses of it get the darker #4f46e5
   (≥ 4.85:1 on every light surface). Labels that carry their own inline tone color are left alone,
   except the hard-coded light green, which becomes #065f46 (6.05:1). The muted token itself is fixed in style.css. */
[data-theme="light"] :is(.text-brand-500, .fpp-item-year, .fbg-featured-cat, .fbg-summary-tag, .detail-cat, .fbg-item-read, .fpp-item-view),
[data-theme="light"] .sec-label:not([style*="color"]) {
    color: #4f46e5;
}

[data-theme="light"] [style*="color:#6366f1"]:not([style*="background:#6366f1"]) {
    color: #4f46e5 !important; /* inline style in markup: only !important can override it */
}

[data-theme="light"] .sec-label[style*="color:#10b981"] {
    color: #065f46 !important;
}

/* ── Responsive: no horizontal scroll ── the decorative process nodes float a few px outside their box
   (3 px page overflow at 1024 px). clip (unlike hidden) creates no scroll container: nothing is cut vertically. */
.proc-section {
    overflow-x: clip;
}

/* ── Tap targets: at least 24x24 px (WCAG 2.2 SC 2.5.8) for stand-alone links in breadcrumbs and footer lists.
   Links inside running text are exempt and keep their size. */
.breadcrumb a,
footer li > a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    min-width: 24px;
}

/* "See all" links next to section titles are primary navigation on phones: full 44 px touch height. */
.see-all {
    min-height: 44px;
}

/* Home hero without the (optional) statistics row: on phones the hero sizes to its content instead of keeping
   a full-screen height with an empty band under the buttons. With statistics it stays full height, as designed. */
@media (max-width: 767px) {
    .hero-compact {
        min-height: 0;
        padding-bottom: 2.5rem;
    }
}

/* Blog pager (phase 3.4): same pill look as the category filters, 44px touch targets */
.fbg-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:2.5rem 0 0}
.fbg-pager-link{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-width:44px;min-height:44px;padding:0 1rem;border-radius:999px;border:1px solid var(--border,rgba(99,102,241,.18));background:var(--card-bg,#fff);color:var(--text-primary,#1e1b4b);font-weight:600;font-size:.9rem;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.fbg-pager-link:hover{border-color:var(--primary,#6366f1);color:var(--primary,#6366f1)}
.fbg-pager-link:focus-visible{outline:2px solid var(--primary,#6366f1);outline-offset:2px}
.fbg-pager-link.is-current{background:linear-gradient(135deg,var(--primary,#6366f1),var(--secondary,#8b5cf6));border-color:transparent;color:#fff}

/* ═══ phase 3.10: the owner's logo — the light tile in the day theme, the dark tile in the night theme ═══ */
.logo-day, .logo-night {
    object-fit: cover; border-radius: 26% !important; background: none !important; padding: 0 !important; filter: none !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 6px 16px -8px rgba(79, 70, 229, .45) !important;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.logo-night { display: none !important; }
[data-theme="midnight"] .logo-day, [data-theme="dark"] .logo-day { display: none !important; }
[data-theme="midnight"] .logo-night, [data-theme="dark"] .logo-night { display: inline-block !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px -10px rgba(99, 102, 241, .6) !important; }
.logo-wrap:hover .logo-day, .logo-wrap:hover .logo-night { transform: translateY(-1px); }
#nav .logo-day, #nav .logo-night, .mob-header .logo-day, .mob-header .logo-night, footer .logo-day, footer .logo-night { width: 44px; height: 44px; }
#nav .logo-wrap, .mob-header .logo-wrap, .footer-logo { gap: 12px !important; }
@media (max-width: 639px) {
    #nav .logo-day, #nav .logo-night, .mob-header .logo-day, .mob-header .logo-night { width: 40px; height: 40px; }
    #nav .logo-wrap { gap: 10px !important; }
}

/* ── css/front-ui.css ── */
/* Phase 3.5 front-end components (owner review). Loaded after polish.css on public pages. */

/* ── Smoother hovers everywhere on public cards and buttons ── */
.card, .tech-card, .btn-brand, .see-all, .fa-account-btn, .social-btn, .tag {
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .3s ease, background-color .3s ease, color .25s ease, gap .3s ease;
}
.card:hover { transform: translateY(-4px); }

/* ── "Ready for new projects": a green pulse (Tailwind 2 has no emerald/ping) ── */
.live-dot { position: relative; display: inline-flex; width: 10px; height: 10px; flex: 0 0 10px; }
.live-dot::before, .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; }
.live-dot::before { animation: live-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; opacity: .7; }
@keyframes live-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ── Technologies: one moving line (Views/Shared/_TechMarquee.cshtml + js/marquee.js) ── */
.tech-marquee {
    position: relative; overflow: hidden; direction: ltr; padding: .35rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-marquee-track { display: flex; gap: .75rem; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
.tech-marquee .tech-card { flex: 0 0 auto; min-width: 118px; direction: rtl; opacity: 1; transform: none; }
.tech-marquee .tech-card:hover { transform: translateY(-3px); }
.tech-marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.tech-marquee.is-static .tech-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }

/* ── Testimonials: centred whatever the count, cleaner card, yellow stars ── */
.tst-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.tst-card {
    position: relative; flex: 1 1 300px; max-width: 380px; margin: 0; display: flex; flex-direction: column; padding: 1.75rem;
    border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.tst-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, .25); box-shadow: 0 18px 40px -18px rgba(79, 70, 229, .35); }
.tst-quote { position: absolute; top: .9rem; left: 1.25rem; font-size: 3.4rem; line-height: 1; font-family: Georgia, serif; color: rgba(99, 102, 241, .16); }
.tst-stars { display: flex; gap: .2rem; margin-bottom: 1rem; color: #8b5cf6; } /* brand violet, not yellow */
.tst-stars .is-off { color: var(--border); }
.tst-text { flex: 1; margin: 0 0 1.25rem; font-size: .875rem; line-height: 2; color: var(--body); }
.tst-author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.tst-avatar {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; background: linear-gradient(135deg, #818cf8, #4f46e5);
}

@media (max-width: 640px) {
    .tech-marquee .tech-card { min-width: 96px; padding: .8rem .6rem; }
    .tst-card { flex-basis: 100%; padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot::before { animation: none; }
    .card:hover, .tst-card:hover { transform: none; }
}

/* ── Service details hero (phase 3.10): an "at a glance" panel in the service's tone, no photo ── */
.sv-glance {
    --tone-rgb: 99, 102, 241; --tone: #6366f1;
    position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding: 22px; border-radius: 22px; overflow: hidden;
    background: linear-gradient(160deg, rgba(var(--tone-rgb), .1), rgba(var(--tone-rgb), .02) 45%), var(--surface);
    border: 1px solid rgba(var(--tone-rgb), .18);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 60px -40px rgba(var(--tone-rgb), .6);
}
.sv-glance::before {
    content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--tone-rgb), .16), transparent 65%);
}
.sv-glance > * { position: relative; }
.sv-glance-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sv-glance-icon {
    width: 56px; height: 56px; flex: none; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, var(--tone), rgba(var(--tone-rgb), .7)); box-shadow: 0 14px 28px -14px rgba(var(--tone-rgb), .8);
}
.sv-glance-kicker { display: block; font-size: 11.5px; font-weight: 700; color: var(--tone); margin-bottom: 2px; }
.sv-glance-head strong { font-size: 15px; color: var(--heading); }
.sv-glance-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.sv-glance-facts > div { min-width: 0; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sv-glance-facts dt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.sv-glance-facts dt i { color: var(--tone); font-size: 11px; }
.sv-glance-facts dd { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--heading); line-height: 1.5; }
.sv-glance-steps { counter-reset: st; list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.sv-glance-steps li { counter-increment: st; position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--body); }
.sv-glance-steps li::before {
    content: counter(st, persian); width: 26px; height: 26px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: var(--tone); background: rgba(var(--tone-rgb), .1); border: 1px solid rgba(var(--tone-rgb), .2);
}
.sv-glance-steps li + li::after { content: ""; position: absolute; top: -9px; right: 12.5px; width: 1px; height: 12px; background: rgba(var(--tone-rgb), .3); }
.sv-glance-tools { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px dashed rgba(var(--tone-rgb), .25); }
.sv-glance-tools span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--heading); background: var(--surface); border: 1px solid var(--border); }
.sv-glance-tools i { color: var(--tone); font-size: 11px; }
@media (max-width: 639px) {
    .sv-glance { padding: 18px; border-radius: 18px; }
    .sv-glance-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Rows of N (technologies 6, deliverables 4): fewer than one row → centred; otherwise rows fill from the right ── */
.row-grid { --cols: 4; --gap: 1rem; display: flex; flex-wrap: wrap; gap: var(--gap); justify-content: flex-start; }
.row-grid[data-cols="6"] { --cols: 6; }
.row-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.row-grid[data-cols="4"]:not(:has(> :nth-child(4))),
.row-grid[data-cols="6"]:not(:has(> :nth-child(6))) { justify-content: center; }
@media (max-width: 1024px) {
    .row-grid[data-cols="6"] { --cols: 4; }
    .row-grid[data-cols="6"]:has(> :nth-child(4)) { justify-content: flex-start; }
    .row-grid[data-cols="6"]:not(:has(> :nth-child(4))) { justify-content: center; }
    .row-grid[data-cols="4"] { --cols: 2; }
    .row-grid[data-cols="4"]:has(> :nth-child(2)) { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .row-grid { --gap: .65rem; }
    .row-grid[data-cols="6"] { --cols: 3; }
    .row-grid[data-cols="6"]:has(> :nth-child(3)) { justify-content: flex-start; }
    .row-grid[data-cols="6"]:not(:has(> :nth-child(3))) { justify-content: center; }
    .row-grid[data-cols="4"] { --cols: 1; }
}

/* ── Header: sign-in and start-project buttons share one size ── */
.fa-account-btn, .hdr-btn { height: 42px; padding: 0 16px; border-radius: 13px; font-size: 13px; font-weight: 600; gap: 8px; line-height: 1; white-space: nowrap; }
.hdr-btn { display: inline-flex; align-items: center; }
.fa-account-btn:hover { transform: translateY(-1px); }
@media (max-width: 640px) { .fa-account-btn { height: 40px; width: 40px; padding: 0; justify-content: center; } }

/* ── Footer call to action ── */
.footer-cta {
    display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; padding: .65rem 1rem; border-radius: 13px;
    font-size: 13px; font-weight: 700; color: #4f46e5; background: rgba(99, 102, 241, .08); border: 1px solid rgba(99, 102, 241, .18);
    transition: background-color .3s ease, transform .3s ease, gap .3s ease;
}
.footer-cta:hover { background: rgba(99, 102, 241, .14); gap: .8rem; }
[data-theme="dark"] .footer-cta, [data-theme="midnight"] .footer-cta { color: #a5b4fc; }
.row-grid > .tech-card { opacity: 1; transform: none; }

/* ── Phones (most visitors): tighter rhythm, smaller headings, swipe rows instead of tall stacks ── */
@media (max-width: 640px) {
    .site-content section.py-20, .site-content section.py-16 { padding-top: 3rem; padding-bottom: 3rem; }
    .site-content .mb-14 { margin-bottom: 2rem; }
    .site-content .mb-12 { margin-bottom: 1.75rem; }
    .site-content h2.text-\[28px\], .site-content h2.text-\[26px\] { font-size: 22px; line-height: 1.5; }
    .site-content .card.p-7 { padding: 1.25rem; }

    /* a horizontal, snapping row: one card and a peek of the next */
    .m-swipe {
        display: flex !important; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin-inline: -1.25rem; padding: .25rem 1.25rem 1rem; scrollbar-width: none;
    }
    .m-swipe::-webkit-scrollbar { display: none; }
    .m-swipe > * { flex: 0 0 84%; scroll-snap-align: center; min-width: 0; }
    .m-swipe .img-box { height: 170px; }
}

/* ── Portfolio / blog sticky toolbar: one slim row (categories scroll sideways + compact search) ── */
.is-compact.fpp-toolbar-section, .is-compact.fbg-toolbar-section { padding: 8px 0; }
.is-compact .fpp-toolbar, .is-compact .fbg-toolbar { flex-direction: row; align-items: center; gap: 10px; }
.is-compact .fpp-toolbar-top, .is-compact .fbg-toolbar-top { flex: 1 1 auto; min-width: 0; flex-direction: row; gap: 0; }
.is-compact .fpp-pills, .is-compact .fbg-pills { gap: 6px; padding: 2px; }
.is-compact .fpp-pill, .is-compact .fbg-pill { padding: 7px 12px; font-size: 12.5px; gap: 6px; border-width: 1px; }
.is-compact .fpp-pill-badge, .is-compact .fbg-pill-badge { min-width: 20px; height: 18px; font-size: 10.5px; padding: 0 5px; }
.is-compact .fpp-search-container, .is-compact .fbg-search-container { flex: 0 0 240px; width: 240px; }
.is-compact .fpp-search-field, .is-compact .fbg-search-field { padding: 8px 36px; font-size: 12.5px; border-radius: 11px; border-width: 1px; }
.is-compact .fpp-search-icon, .is-compact .fbg-search-icon { font-size: 12px; }
@media (max-width: 768px) {
    .is-compact .fpp-toolbar, .is-compact .fbg-toolbar { flex-wrap: wrap; gap: 6px; }
    .is-compact .fpp-toolbar-top, .is-compact .fbg-toolbar-top { flex-basis: 100%; }
    .is-compact .fpp-search-container, .is-compact .fbg-search-container { flex: 1 1 100%; width: 100%; }
    .is-compact .fpp-search-field, .is-compact .fbg-search-field { padding-top: 7px; padding-bottom: 7px; }
}
/* the grid/list switch is gone: projects are always vertical cards */
.fpp-grid.fpp-list-view { display: grid; }

/* ── Contact: always-present side cards ── */
.fct-info-link { text-decoration: none; color: inherit; border-radius: 12px; padding: 8px; margin: -8px; transition: background-color .25s ease; }
.fct-info-link:hover { background: rgba(99, 102, 241, .06); }
.fct-info-link:hover strong { color: #6366f1; }
.fct-steps { list-style: none; margin: 0; padding: 0; counter-reset: fs; display: flex; flex-direction: column; gap: 14px; }
.fct-steps li { position: relative; padding-right: 36px; counter-increment: fs; }
.fct-steps li::before { content: counter(fs, persian); position: absolute; right: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.fct-steps strong { display: block; font-size: 13px; color: var(--heading); }
.fct-steps span { display: block; font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ── About: team cards centred whatever the count, full profile ── */
.fab-team-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.fab-team-grid > .fab-team-card { flex: 0 1 290px; max-width: 320px; display: flex; flex-direction: column; }
.fab-team-body { flex: 1; display: flex; flex-direction: column; text-align: center; }
.fab-team-body p { line-height: 1.95; }
.fab-team-skills { justify-content: center; flex-wrap: wrap; }
.fab-team-social { justify-content: center; margin-top: auto; padding-top: .75rem; }
@media (max-width: 640px) { .fab-team-grid > .fab-team-card { flex-basis: 100%; max-width: 360px; } }
.fab-story p { margin: 0 0 .9rem; line-height: 2.05; }

/* ── Blog article: comfortable reading for learners ── */
.fbg-article-content { font-size: 16.5px; line-height: 2.15; color: var(--body); overflow-wrap: anywhere; }
.fbg-article-content > * + * { margin-top: 1.1em; }
.fbg-article-content h2 { font-size: 1.45em; line-height: 1.6; margin-top: 2.2em; padding-right: .75rem; border-right: 4px solid #6366f1; color: var(--heading); scroll-margin-top: 96px; }
.fbg-article-content h3 { font-size: 1.2em; line-height: 1.7; margin-top: 1.8em; color: var(--heading); scroll-margin-top: 96px; }
.fbg-article-content ul, .fbg-article-content ol { padding-right: 1.4em; }
.fbg-article-content li + li { margin-top: .45em; }
.fbg-article-content li::marker { color: #6366f1; }
.fbg-article-content strong { color: var(--heading); }
.fbg-article-content a { color: #4f46e5; text-decoration: underline; text-underline-offset: 4px; }
.fbg-article-content blockquote {
    margin: 1.6em 0; padding: 1rem 1.25rem; border-radius: 12px; border: 1px solid rgba(99, 102, 241, .2);
    background: linear-gradient(135deg, rgba(99, 102, 241, .07), rgba(139, 92, 246, .05)); color: var(--heading); font-weight: 600;
}
.fbg-article-content blockquote::before { content: "💡 "; }
.fbg-article-content img { border-radius: 12px; max-width: 100%; height: auto; }
.fbg-article-content pre { direction: ltr; text-align: left; overflow-x: auto; border-radius: 12px; padding: 1rem 1.1rem; font-size: 13.5px; line-height: 1.8; }
.fbg-article-content :not(pre) > code { direction: ltr; unicode-bidi: isolate; padding: .1em .4em; border-radius: 6px; font-size: .88em; background: rgba(99, 102, 241, .1); color: #4f46e5; }
@media (max-width: 640px) {
    .fbg-article-content { font-size: 16px; line-height: 2.05; }
    .fbg-article-content h2 { font-size: 1.3em; }
}

/* ── Blog list: calmer cards and featured box ── */
.fbg-item { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.fbg-item:hover { transform: translateY(-4px); }
.fbg-item img, .fpp-item img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.fbg-item:hover img, .fpp-item:hover img { transform: scale(1.04); }

/* ── Project gallery: one lead image + a tidy grid, captions, zoom hint, position ── */
.pd-block-head .pd-gallery-count { margin-inline-start: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 99px; }
.pd-gallery-v2 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 12px; }
.pd-gallery-v2 .gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: 12px; cursor: zoom-in; background: var(--surface); border: 1px solid var(--border); height: auto !important; aspect-ratio: auto !important; }
.pd-gallery-v2 .gallery-item.is-lead { grid-column: span 2; grid-row: span 2; }
.pd-gallery-v2.is-single { grid-template-columns: 1fr; grid-auto-rows: 360px; }
.pd-gallery-v2.is-single .gallery-item.is-lead { grid-column: auto; grid-row: auto; }
.pd-gallery-v2 .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pd-gallery-v2 .gallery-item:hover img, .pd-gallery-v2 .gallery-item:focus-visible img { transform: scale(1.05); }
.pd-gallery-v2 .gallery-item:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.gallery-zoom { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(15, 23, 42, .55); backdrop-filter: blur(6px); opacity: 0; transform: scale(.9); transition: opacity .3s ease, transform .3s ease; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-index { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 23, 42, .55); padding: 3px 8px; border-radius: 99px; }
.pd-gallery-v2 figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px; font-size: 12.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(15, 23, 42, .78)); }
@media (max-width: 760px) {
    .pd-gallery-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
    .pd-gallery-v2 .gallery-item.is-lead { grid-column: span 2; grid-row: span 2; }
    .pd-gallery-v2.is-single { grid-auto-rows: 220px; }
    .gallery-zoom { opacity: 1; transform: none; width: 30px; height: 30px; }
}
.pd-gallery-v2.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
.pd-gallery-v2.is-pair .gallery-item.is-lead { grid-column: auto; grid-row: auto; }
@media (max-width: 760px) { .pd-gallery-v2.is-pair { grid-template-columns: 1fr; grid-auto-rows: 200px; } }

/* ── Blog: newest-article box (blog.js fbgBuildFeatured) ── */
.fbf-card {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: 14px; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease;
}
.fbf-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, .28); box-shadow: 0 26px 50px -26px rgba(79, 70, 229, .45); }
/* the cover is shown whole: a 16:9 box for the 16:9 cover picture (nothing is cropped, nothing is drawn on top of it) */
.fbf-cover { position: relative; aspect-ratio: 16 / 9; align-self: center; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fbf-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.fbf-card:hover .fbf-cover img { transform: scale(1.04); }
.fbf-cover-icon { width: 96px; height: 96px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: rgba(255, 255, 255, .85); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .35); }
.fbf-badge { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(15, 23, 42, .6); backdrop-filter: blur(8px); }
.fbf-badge.is-new { background: rgba(16, 185, 129, .9); }
.fbf-body { display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 26px; min-width: 0; }
.fbf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fbf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--border-soft); }
.fbf-chip.is-cat { color: #4f46e5; background: rgba(99, 102, 241, .08); border-color: rgba(99, 102, 241, .16); }
.fbf-chip.is-new { color: #047857; background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .28); }
.fbf-chip.is-featured { color: #b45309; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .30); }
.fbf-title { margin: 0; font-size: 24px; line-height: 1.6; font-weight: 900; color: var(--heading); transition: color .3s ease; }
.fbf-card:hover .fbf-title { color: #4f46e5; }
.fbf-summary { margin: 0; font-size: 14px; line-height: 2.05; color: var(--body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fbf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fbf-tag { font-size: 12px; font-weight: 600; color: #6366f1; }
.fbf-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fbf-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fbf-author strong { display: block; font-size: 13px; color: var(--heading); }
.fbf-author small { display: block; font-size: 11.5px; color: var(--muted); }
.fbf-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #818cf8, #4f46e5); }
.fbf-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 13px; font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .8); transition: gap .3s ease; }
.fbf-card:hover .fbf-cta { gap: 12px; }
@media (max-width: 900px) {
    .fbf-card { grid-template-columns: 1fr; }
    .fbf-cover { align-self: stretch; }
    .fbf-body { padding: 20px 18px 18px; gap: 12px; }
    .fbf-title { font-size: 19px; }
}
@media (max-width: 420px) {
    .fbf-foot { flex-direction: column; align-items: stretch; }
    .fbf-cta { justify-content: center; }
}

/* ── Midnight theme: indigo-600 text is too dark on the dark surfaces ── */
.fbf-badge.is-new { background: #047857; }
[data-theme="midnight"] .footer-logo .text-brand-600,
[data-theme="midnight"] .fbf-chip.is-cat,
[data-theme="midnight"] .fbf-tag,
[data-theme="midnight"] .fbf-card:hover .fbf-title,
[data-theme="midnight"] .fbg-article-content a,
[data-theme="midnight"] .fbg-article-content :not(pre) > code,
[data-theme="midnight"] .fct-info-link:hover strong,
[data-theme="midnight"] .fp-drop-text u { color: #a5b4fc; }
[data-theme="midnight"] .fbf-chip.is-cat { background: rgba(129, 140, 248, .14); border-color: rgba(129, 140, 248, .28); }
[data-theme="midnight"] .fbf-chip.is-new { color: #6ee7b7; background: rgba(16, 185, 129, .14); border-color: rgba(52, 211, 153, .30); }
[data-theme="midnight"] .fbf-chip.is-featured { color: #fcd34d; background: rgba(245, 158, 11, .14); border-color: rgba(252, 211, 77, .30); }
[data-theme="midnight"] .tag-new { color: #6ee7b7; background: rgba(16, 185, 129, .16); }
[data-theme="midnight"] .fbg-article-content blockquote { background: rgba(129, 140, 248, .1); border-color: rgba(129, 140, 248, .25); }
[data-theme="midnight"] .tst-quote { color: rgba(165, 180, 252, .18); }

/* ── About / team: the whole photo, not the half inside the cover (the cover clipped it) ── */
.fab-team-cover { overflow: visible !important; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fab-team-cover .fab-team-pattern { border-radius: inherit; overflow: hidden; }
.fab-team-avatar { width: 112px !important; height: 112px !important; border-radius: 50% !important; margin-bottom: -56px !important; overflow: hidden; padding: 0; }
.fab-team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fab-team-initial { font-size: 40px; font-weight: 900; line-height: 1; color: #6366f1; }
[data-theme="midnight"] .fab-team-initial { color: #a5b4fc; }
.fab-team-body { padding-top: 70px !important; }

/* ── Phase 3.8 readability & touch ── */
/* small print is at least 12px (the logo's Latin tagline stays a 10px wordmark) */
html .text-\[9px\], html .text-\[10px\], html .text-\[10\.5px\], html .text-\[11px\], html .text-\[11\.5px\] { font-size: 12px; }
html .logo-tagline.text-\[10px\] { font-size: 10px; letter-spacing: .08em; }
/* the back-to-top button never covers the open mobile menu */
body:has(#mob.open) #btt { opacity: 0; pointer-events: none; }
/* sideways card rows say they can be swiped (phone only) */
.swipe-hint { display: none; }
@media (max-width: 639px) {
    .swipe-hint { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .25rem; font-size: 12px; color: var(--muted); }
}
/* touch targets: footer and inline text links get at least 32px of height (padding, so the layout does not move) */
footer li > a, .see-all { display: inline-flex; align-items: center; min-height: 32px; }
footer .space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }


/* ═══ Phase 3.10 — phones fit the screen exactly ═══ */
/* nothing may widen the page (a wider page makes phones zoom out or wobble sideways) */
html, body { max-width: 100%; overflow-x: clip; }
/* the closed menu sits off screen: hidden, so it never counts for the page width */
.mob-menu { visibility: hidden; transition: transform .45s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .45s; }
.mob-menu.open { visibility: visible; transition: transform .45s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
/* iPhone zooms into any field under 16px */
@media (max-width: 768px) { input, select, textarea { font-size: 16px !important; } }
img, video { max-width: 100%; }

/* header on phones: logo, one theme button, account, menu */
.ts-one { display: none; }
@media (max-width: 639px) {
    #nav .max-w-7xl { padding-inline: 14px; }
    #nav .h-\[68px\] { height: 60px; }
    #nav .logo-tagline { display: none; }
    #nav .logo-wrap { gap: 9px; min-width: 0; }
    #nav .hdr-actions { gap: 6px; }
    #nav .theme-pill { display: none; }
    .ts-one, #nav .fa-account-btn, #nav .hm {
        display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
        border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-size: 15px;
    }
    #nav .hm { flex-direction: column; }
    .ts-one-sun { display: none; }
    [data-theme="midnight"] .ts-one-sun { display: inline; }
    [data-theme="midnight"] .ts-one-moon { display: none; }
}

/* floating support (Telegram) and back-to-top: one stack in the corner, lighter on phones */
.tg-float { background: linear-gradient(135deg, #2aabee, #0088cc); border-radius: 14px; }
.tg-float i { font-size: 18px; }
@media (max-width: 639px) {
    .tg-float, #btt { left: 14px; width: 44px; height: 44px; border-radius: 13px; }
    .tg-float { bottom: calc(14px + env(safe-area-inset-bottom)); }
    #btt { bottom: calc(66px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}

/* home services and «why Farada» on phones (phase 3.10): compact rows, three services, then "see all" */
.home-svc-all { display: none; }
@media (max-width: 639px) {
    .home-svc-grid { gap: 12px; }
    .home-svc-grid > .home-svc:nth-child(n+4) { display: none !important; }
    .home-svc { display: grid !important; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px !important; }
    .home-svc .svc-icon { grid-row: span 3; margin: 0 !important; width: 48px; height: 48px; }
    .home-svc h3 { font-size: 15px; margin-bottom: 4px !important; }
    .home-svc p { font-size: 12.5px; line-height: 1.85; margin-bottom: 6px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .home-svc-more { font-size: 12.5px; }
    .home-svc-all {
        display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; height: 48px; border-radius: 14px;
        font-size: 14px; font-weight: 800; color: #fff; text-decoration: none; background: linear-gradient(135deg, #6366f1, #4f46e5);
        box-shadow: 0 12px 26px -14px rgba(79, 70, 229, .7);
    }
    #services .see-all { display: none; }
    .trust-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
    .trust-grid .trust-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px; text-align: right; }
    .trust-grid .trust-icon { grid-row: span 2; margin: 0; width: 52px; height: 52px; }
    .trust-grid .trust-card h3 { margin: 2px 0 4px !important; }
    .trust-grid .trust-num { top: 12px; left: 14px; }
}

/* about: the team member's role is centred like the rest of the card (phase 3.10) */
.fab-team-role { justify-content: center; text-align: center; }

/* ═══ colour refresh (phase 3.10): same brand (indigo / violet) with a cyan accent, more depth, still calm ═══ */
:root { --brand-grad: linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #8b5cf6 100%); --brand-grad-cool: linear-gradient(135deg, #4f46e5, #6366f1 45%, #06b6d4); }
.btn-brand, .home-svc-all { background: var(--brand-grad); box-shadow: 0 10px 24px -12px rgba(99, 102, 241, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-brand:hover { box-shadow: 0 16px 32px -14px rgba(99, 102, 241, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.sec-label {
    background: linear-gradient(135deg, rgba(99, 102, 241, .09), rgba(6, 182, 212, .07));
    border-color: rgba(99, 102, 241, .16); color: #4f46e5; box-shadow: 0 6px 16px -12px rgba(79, 70, 229, .6);
}
[data-theme="midnight"] .sec-label { color: #a5b4fc; border-color: rgba(129, 140, 248, .25); background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(6, 182, 212, .1)); }
.gt { background-image: linear-gradient(120deg, #6366f1, #8b5cf6 45%, #06b6d4); }
/* sections: a soft brand glow at the top edge instead of flat grey */
.bg-surface-token, .section-block.bg-surface { background-image: radial-gradient(80% 60% at 85% 0%, rgba(99, 102, 241, .06), transparent 60%), radial-gradient(60% 50% at 10% 100%, rgba(6, 182, 212, .05), transparent 60%); }
[data-theme="midnight"] .bg-surface-token, [data-theme="midnight"] .section-block.bg-surface { background-image: radial-gradient(80% 60% at 85% 0%, rgba(99, 102, 241, .14), transparent 60%), radial-gradient(60% 50% at 10% 100%, rgba(6, 182, 212, .08), transparent 60%); }
.card, .trust-card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 32px -26px rgba(15, 23, 42, .35); }
.svc-icon, .trust-icon { box-shadow: 0 10px 22px -12px rgba(var(--tone-rgb, 99, 102, 241), .7); }
#nav.nav-glass { box-shadow: 0 1px 0 rgba(99, 102, 241, .06); }

/* ═══ phase 3.10 final: a touch more colour, softer and calmer hovers ═══ */
:root { --dur-hover: .4s; --ease-smooth: cubic-bezier(.2, .7, .2, 1); }
/* sections alternate between a clean ground and a faintly tinted one */
.bg-page-token { background-image: linear-gradient(180deg, rgba(99, 102, 241, .025), transparent 40%); }
/* headings in sections: the highlighted phrase a little deeper */
.gt { -webkit-text-fill-color: transparent; }
/* hover: a short lift, a tinted border and a soft coloured shadow; never a filled purple block */
@media (hover: hover) and (pointer: fine) {
    .card:hover { border-color: rgba(99, 102, 241, .28); box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 22px 40px -28px rgba(99, 102, 241, .5); }
    .trust-card:hover { border-color: rgba(var(--tone-rgb, 99, 102, 241), .3); }
    .see-all:hover { color: #4f46e5; }
    .nl:hover { background: rgba(99, 102, 241, .07); color: #4f46e5; }
}
.card:active, .svc3:active, .fpp-item:active .fpp-item-inner, .fbg-item:active .fbg-item-inner { transform: translateY(0) scale(.995); }
@media (prefers-reduced-motion: reduce) { .card, .svc3, .fpp-item-inner, .fbg-item-inner { transition: none !important; } }

/* footer, lighter (phase 3.10): legal links in one small line at the bottom */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-legal a { font-size: 11.5px; color: var(--muted); text-decoration: none; transition: color .3s ease; }
.footer-legal a:hover { color: #6366f1; }
.footer-col ul li a { line-height: 1.8; }
@media (max-width: 639px) { .footer-bottom { gap: 10px; } .footer-col ul { gap: 2px; } }

/* ═══ phase 3.10 last touches ═══ */
/* project detail: the cover spans the full width under the text, at a standard 16:9 */
.pd-hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
.pd-hero-info { max-width: 860px; }
.pd-hero-cover { width: 100%; max-width: none !important; margin: 0 !important; aspect-ratio: auto !important; }
.pd-cover-glow { inset: 8% 4% -4% !important; }
.pd-cover-box { width: 100%; aspect-ratio: 16 / 9; height: auto !important; max-height: 680px; border-radius: 20px !important; overflow: hidden; }
.pd-cover-box .pd-cover-image, .pd-cover-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 639px) { .pd-cover-box { border-radius: 14px !important; } .pd-hero-grid { gap: 20px !important; } }

/* footer on phones: brand, five quick links in two columns, contact; the services list is on the services page */
@media (max-width: 639px) {
    .footer-services-col { display: none; }
    .footer-grid { gap: 1.25rem; }
    .footer-col:not(.footer-contact-col):not(.footer-services-col) { grid-column: 1 / -1; }
    .footer-col:not(.footer-contact-col) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
    .footer-col ul > li { margin: 0 !important; }
    .footer-col h3 { margin-bottom: 10px !important; }
    .footer-desc { font-size: 12.5px !important; margin-bottom: 14px !important; }
    .footer-brand { padding-bottom: 1.25rem; }
    .footer-contact-col { padding-top: 1rem; }
    .footer-contact-col ul { gap: 4px; }
}

/* ── css/cards.css ── */
/* ═══════════════════════════════════════════════════════════════════════
   Phase 3.10 — one project card and one article card for the whole site
   (portfolio and blog lists, home, "related" sections), and the rail that
   lays them out: a grid on desktop, a snap slider with dots on phones.
   Loaded after the page stylesheets (bundle site-after), so it refines them.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── grids never let one wide child push a card past the screen edge ── */
.fpp-grid, .fbg-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fpp-grid, .fbg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fpp-grid, .fbg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fpp-grid > *, .fbg-grid > *, .fpp-item, .fbg-item, .fpp-item-inner, .fbg-item-inner { min-width: 0; max-width: 100%; }

/* ── shared card shell ── */
.fpp-item, .fbg-item { --card-r: 16px; --card-tone: 99, 102, 241; height: 100%; }
.fpp-item-inner, .fbg-item-inner {
    position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--card-r); background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -22px rgba(15, 23, 42, .35);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .3s ease;
}
.fpp-item-inner::before, .fbg-item-inner::before {
    /* a thin brand line that lights up on hover */
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4); opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) {
    .fpp-item:hover .fpp-item-inner, .fbg-item:hover .fbg-item-inner {
        transform: translateY(-3px); border-color: rgba(var(--card-tone), .35);
        box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 44px -24px rgba(var(--card-tone), .45);
    }
    .fpp-item:hover .fpp-item-inner::before, .fbg-item:hover .fbg-item-inner::before { opacity: 1; }
    .fpp-item:hover .fpp-item-cover-image, .fbg-item:hover .fbg-cover-img { transform: scale(1.03); }
}
.fpp-item:focus-visible, .fbg-item:focus-visible { outline: none; }
.fpp-item:focus-visible .fpp-item-inner, .fbg-item:focus-visible .fbg-item-inner { box-shadow: 0 0 0 3px rgba(99, 102, 241, .45); }

/* the whole card is one link (works without the list-page scripts) */
.fpp-item-view::after, .fbg-item-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fpp-item-links, .fpp-item-link { position: relative; z-index: 2; }

/* ── cover: fixed ratio, picture fills, soft fade into the card ── */
.fpp-item-cover, .fbg-item-cover { position: relative; aspect-ratio: 16 / 10; height: auto !important; overflow: hidden; flex: none; }
.fpp-item-cover-image, .fbg-cover-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.fpp-item-cover::after, .fbg-item-cover::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
    background: linear-gradient(to top, rgba(2, 6, 23, .55), transparent);
}
.fpp-item-badges, .fbg-item-badges {
    position: absolute; inset: 12px 12px auto 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.fpp-badge-category, .fbg-badge-cat {
    display: inline-flex; align-items: center; gap: 6px; max-width: 70%; padding: 5px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; color: #0f172a; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fpp-badge-category i, .fbg-badge-cat i { color: #6366f1; font-size: 10px; }
.fpp-badge-state, .fbg-badge-new { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ── body ── */
.fpp-item-body, .fbg-item-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 16px 18px 18px; min-width: 0; }
.fpp-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0; }
.fpp-item-title, .fbg-item-title {
    margin: 0; font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--heading);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fbg-item-title a { color: inherit; text-decoration: none; }
.fpp-item-year { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: #6366f1; background: rgba(99, 102, 241, .08); }
.fpp-item-desc, .fbg-item-summary {
    margin: 0; font-size: 13px; line-height: 1.9; color: var(--body); min-height: calc(2 * 1.9em); /* exactly two lines: blog.css min-height 66px showed a cut third line */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fpp-item-meta { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0; border-radius: 12px; background: var(--surface2); border: 0; }
.fpp-meta-cell { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; }
.fpp-meta-cell strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--heading); }
.fpp-meta-cell i { color: #6366f1; font-size: 11px; flex: none; }
.fpp-meta-divider { width: 1px; height: 16px; background: var(--border); flex: none; }
.fpp-item-tags, .fbg-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fpp-item-tag, .fbg-item-tag {
    display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 9px; border-radius: 8px;
    font-size: 11.5px; font-weight: 600; color: var(--body); background: transparent; border: 1px solid var(--border);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fpp-item-tag i, .fbg-item-tag i { font-size: 10px; color: var(--muted); }
.fpp-item-footer, .fbg-item-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft, var(--border));
}
.fpp-item-view, .fbg-item-read { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #6366f1; text-decoration: none; }
.fpp-view-icon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(99, 102, 241, .1); font-size: 11px; transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.fpp-item:hover .fpp-view-icon { transform: translateX(-3px); background: #6366f1; color: #fff; }
.fpp-item-link { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--body); }
.fbg-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 12px; color: var(--muted); }
.fbg-item-author { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fbg-item-author strong { font-size: 12.5px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbg-item-author-avatar { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.fbg-item-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.fbg-item-stat { display: inline-flex; align-items: center; gap: 5px; }

/* ═══ rail: grid on desktop, snap slider with dots below 1024px ═══ */
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rail[data-count="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.rail[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.rail-dots { display: none; }
@media (max-width: 1023px) {
    .rail, .rail[data-count] {
        display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
        /* the rail spans the screen; its first and last card line up with the page gutter */
        margin-inline: calc(var(--rail-gutter, 20px) * -1); padding: 6px var(--rail-gutter, 20px) 18px; scroll-padding-inline: var(--rail-gutter, 20px);
    }
    .rail::-webkit-scrollbar { display: none; }
    /* a slider starts at its first card: never centred (centred overflow cannot be scrolled to) */
    .rail, .rail[data-count="2"] { justify-content: flex-start; }
    .rail > * { flex: 0 0 min(46%, 380px); scroll-snap-align: start; }
    .rail[data-count="1"] { justify-content: center; }
    .rail[data-count="1"] > * { flex-basis: min(100%, 420px); }
    .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
    .rail-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--border); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
    .rail-dots button[aria-current="true"] { width: 22px; background: #6366f1; }
    /* a larger touch area around each small dot */
    .rail-dots button { position: relative; }
    .rail-dots button::after { content: ""; position: absolute; inset: -12px -4px; }
}
@media (max-width: 639px) {
    .rail > * { flex-basis: 84%; }
    .rail[data-count="1"] > * { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fpp-item-inner, .fbg-item-inner, .fpp-item-cover-image, .fbg-cover-img { transition: none; }
}

/* ═══ service cards (services page, phase 3.10): no photo; icon + category, tone accents, a calm lift ═══ */
.services-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.svc3 {
    --tone-rgb: 99, 102, 241; --tone: #6366f1;
    display: flex !important; flex-direction: column; min-width: 0; padding: 24px !important; border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(var(--tone-rgb), .045), transparent 38%), var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 36px -30px rgba(15, 23, 42, .4);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .35s ease !important;
}
.svc3::before, .svc3::after { display: none !important; }
.svc3-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.svc3-icon {
    width: 52px; height: 52px; flex: none; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--tone); background: rgba(var(--tone-rgb), .1); border: 1px solid rgba(var(--tone-rgb), .18);
    transition: background-color .4s ease, color .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.svc3-cat {
    min-width: 0; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--muted);
    background: var(--surface2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc3 .sc-title { font-size: 17.5px; line-height: 1.65; margin-bottom: 8px; }
.svc3 .sc-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc3 .sc-features { background: var(--surface2); border: 1px solid var(--border-soft, var(--border)); }
.svc3 .sc-feat { align-items: flex-start; line-height: 1.7; }
.svc3 .sc-feat i { color: var(--tone); margin-top: 6px; }
.svc3 .sc-cta { margin-top: auto; color: var(--tone); }
.svc3 .sc-cta i { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--tone-rgb), .1); transition: transform .35s ease, background-color .35s ease, color .35s ease; }
@media (hover: hover) {
    .svc3:hover { transform: translateY(-2px); border-color: rgba(var(--tone-rgb), .3) !important; box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 22px 44px -30px rgba(var(--tone-rgb), .55); }
    .svc3:hover .svc3-icon { background: var(--tone); color: #fff; }
    .svc3:hover .sc-cta i { transform: translateX(-3px); background: var(--tone); color: #fff; }
    .svc3:hover .sc-icon, .svc3:hover .svc3-icon { rotate: none; }
}
.svc3:focus-visible { outline: 2px solid rgba(var(--tone-rgb), .6); outline-offset: 3px; }
@media (max-width: 639px) {
    .svc3 { padding: 18px !important; }
    .svc3 .sc-features .sc-feat:nth-child(n+3) { display: none; }
}

/* ═══ pricing plans (phase 3.10): 1 / 2 / 3 columns, recommended plan framed and first on phones ═══ */
.fpc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (min-width: 700px) { .fpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .fpc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fpc-grid:has(> :only-child) { grid-template-columns: minmax(0, 440px); justify-content: center; }
.fpc-card { border-radius: 18px; padding: 26px 22px 22px; border-width: 1px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 36px -26px rgba(15, 23, 42, .35); min-width: 0; }
.fpc-card-featured {
    border: 1.5px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4) border-box;
    box-shadow: 0 24px 50px -28px rgba(79, 70, 229, .55);
}
@media (min-width: 700px) { .fpc-card-featured, .fpc-card-featured:hover { transform: none; } }
@media (hover: hover) { .fpc-card:hover { transform: translateY(-3px); } }
.fpc-card-price { border-radius: 14px; background: linear-gradient(135deg, rgba(99, 102, 241, .07), rgba(6, 182, 212, .05)); border-color: rgba(99, 102, 241, .12); }
.fpc-price-num { font-size: clamp(32px, 8vw, 42px); }
.fpc-price-custom { font-size: clamp(26px, 6vw, 32px); }
.fpc-card-features { flex: 1; }
.fpc-card-btn { min-height: 48px; border-radius: 13px; }
@media (max-width: 699px) {
    .fpc-card-featured { order: -1; }
    .fpc-card { padding: 24px 18px 18px; }
}

/* ═══ image viewer (js/viewer.js) ═══ */
html.pv-lock, html.pv-lock body { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 2147483100; background: #05070d; color: #fff; opacity: 0; transition: opacity .2s ease; touch-action: none; }
.pv.open { opacity: 1; }
.pv[hidden] { display: none; }
.pv-bar { position: absolute; z-index: 3; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: linear-gradient(to bottom, rgba(5, 7, 13, .85), transparent); }
.pv-tools { display: flex; gap: 8px; }
.pv-count { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.pv-btn, .pv-nav {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .1);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s ease;
}
.pv-btn:hover, .pv-nav:hover { background: rgba(255, 255, 255, .2); }
.pv-btn:focus-visible, .pv-nav:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.pv-stage { position: absolute; inset: 0; overflow: hidden; cursor: zoom-in; }
.pv.is-zoomed .pv-stage { cursor: grab; }
.pv-img { position: absolute; top: 50%; left: 50%; max-width: none; opacity: 1; user-select: none; -webkit-user-drag: none; transform-origin: center; }
.pv.is-loading .pv-img { opacity: .35; }
.pv-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); }
.pv-prev { right: 14px; }
.pv-next { left: 14px; }
.pv.is-single .pv-nav { display: none; }
.pv-hint { position: absolute; z-index: 3; inset: auto 0 calc(14px + env(safe-area-inset-bottom)) 0; margin: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .6); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .pv-hint { display: none; } }
@media (max-width: 639px) { .pv-nav { top: auto; bottom: calc(44px + env(safe-area-inset-bottom)); transform: none; } }



/* ═══ project cards, richer (phase 3.10): category tone, coloured tools, a "view" chip on the cover ═══ */
.fpp-item[data-tone] { --card-tone: var(--tone-rgb, 99, 102, 241); }
.fpp-item .fpp-item-inner {
    background: linear-gradient(180deg, transparent 55%, rgba(var(--card-tone), .05)), var(--surface);
}
.fpp-item .fpp-item-inner::before { background: linear-gradient(90deg, rgb(var(--card-tone)), rgba(var(--card-tone), .45)); }
.fpp-item .fpp-badge-category i, .fpp-item .fpp-meta-cell i { color: rgb(var(--card-tone)); }
.fpp-item .fpp-item-year { color: rgb(var(--card-tone)); background: rgba(var(--card-tone), .09); }
.fpp-item .fpp-item-meta { background: rgba(var(--card-tone), .05); border: 1px solid rgba(var(--card-tone), .1); }
.fpp-item .fpp-item-tag { --tc: #64748b; border-color: color-mix(in srgb, var(--tc) 28%, transparent); background: color-mix(in srgb, var(--tc) 7%, transparent); color: var(--heading); }
.fpp-item .fpp-item-tag i { color: var(--tc); }
.fpp-item .fpp-item-view { color: rgb(var(--card-tone)); }
.fpp-item .fpp-view-icon { background: rgba(var(--card-tone), .1); }
.fpp-cover-cta {
    position: absolute; z-index: 2; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #fff;
    background: rgba(2, 6, 23, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18);
    opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.fpp-cover-cta i { font-size: 10px; }
@media (hover: hover) {
    .fpp-item:hover .fpp-cover-cta { opacity: 1; transform: none; }
    .fpp-item:hover .fpp-view-icon { background: rgb(var(--card-tone)); color: #fff; }
    .fpp-item:hover .fpp-item-inner { border-color: rgba(var(--card-tone), .35); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 46px -28px rgba(var(--card-tone), .55); }
}
@media (hover: none) { .fpp-cover-cta { display: none; } }
/* text never runs under the next box: cards grow with their text, nothing is positioned over it */
.fpp-item-body > *, .fbg-item-body > * { min-width: 0; overflow-wrap: anywhere; }

/* project gallery on phones (phase 3.10): lead picture wide, the rest in two columns */
@media (max-width: 639px) {
    .pd-gallery-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; }
    .pd-gallery-v2 .gallery-item.is-lead { grid-column: 1 / -1; grid-row: span 2; }
    .pd-gallery-v2.is-single { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
}


/* ── Blog cards (phase 3.11): the cover is shown whole and clean ──
   The cover pictures are 16:9, so the box is 16:9 and the picture fills it exactly: no crop, no dark fade, no badges on
   top of it. The category and the «جدید» label sit in the card body above the title instead. */
.fbg-item-cover { aspect-ratio: 16 / 9; }
.fbg-item-cover::after { content: none; }
.fbg-cover-img { object-position: center; }
.fbg-item-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.fbg-chip-cat, .fbg-chip-new {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fbg-chip-cat { color: #4f46e5; background: rgba(99, 102, 241, .08); border: 1px solid rgba(99, 102, 241, .16); }
.fbg-chip-cat i { font-size: 10px; }
.fbg-chip-new { color: #047857; background: rgba(16, 185, 129, .10); border: 1px solid rgba(16, 185, 129, .28); }
.fbg-chip-new i { font-size: 9px; }
[data-theme="midnight"] .fbg-chip-cat { color: #a5b4fc; background: rgba(129, 140, 248, .14); border-color: rgba(129, 140, 248, .28); }
[data-theme="midnight"] .fbg-chip-new { color: #6ee7b7; background: rgba(16, 185, 129, .14); border-color: rgba(52, 211, 153, .30); }

/* ── css/tones.css ── */
/* Brand tones (BrandTone enum) as CSS variables: elements carry data-tone="tone-x" instead of inline style="".
   Same values as Infrastructure/FrontStyle.cs. Lets the CSP drop style-src-attr 'unsafe-inline' (phase 3.8). */
[data-tone="tone-violet"] { --tone-rgb: 99, 102, 241; --tone: #6366f1; --tone-deep: #4f46e5; --tone2-rgb: 168, 85, 247; }
[data-tone="tone-purple"] { --tone-rgb: 168, 85, 247; --tone: #a855f7; --tone-deep: #9333ea; --tone2-rgb: 236, 72, 153; }
[data-tone="tone-indigo"] { --tone-rgb: 79, 70, 229; --tone: #4f46e5; --tone-deep: #4338ca; --tone2-rgb: 99, 102, 241; }
[data-tone="tone-blue"] { --tone-rgb: 59, 130, 246; --tone: #3b82f6; --tone-deep: #2563eb; --tone2-rgb: 168, 85, 247; }
[data-tone="tone-sky"] { --tone-rgb: 14, 165, 233; --tone: #0ea5e9; --tone-deep: #0284c7; --tone2-rgb: 59, 130, 246; }
[data-tone="tone-cyan"] { --tone-rgb: 6, 182, 212; --tone: #06b6d4; --tone-deep: #0891b2; --tone2-rgb: 14, 165, 233; }
[data-tone="tone-pink"] { --tone-rgb: 236, 72, 153; --tone: #ec4899; --tone-deep: #db2777; --tone2-rgb: 168, 85, 247; }
[data-tone="tone-slate"] { --tone-rgb: 100, 116, 139; --tone: #64748b; --tone-deep: #475569; --tone2-rgb: 99, 102, 241; }

/* utility tokens used instead of inline colours */
.text-heading-token { color: var(--heading); }
.text-body-token { color: var(--body); }
.text-muted-token { color: var(--muted); }
.bg-surface-token { background: var(--surface); }
.bg-page-token { background: var(--bg); }
.section-ruled { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* tone-driven pieces */
.tone-text { color: var(--tone); }
.tone-soft { background: rgba(var(--tone-rgb), .08); border: 1px solid rgba(var(--tone-rgb), .12); color: var(--tone); }
.tone-solid { background: linear-gradient(135deg, var(--tone), var(--tone-deep)); color: #fff; }
.svc-icon[data-tone] { background: rgba(var(--tone-rgb), .08); border: 1px solid rgba(var(--tone-rgb), .1); color: var(--tone); }
.img-box[data-tone] { background: linear-gradient(135deg, rgba(var(--tone-rgb), .12), rgba(var(--tone2-rgb), .12)); }
.img-box[data-tone] .icon-box i { color: rgba(var(--tone-rgb), .22); }
.tag-cat[data-tone] { background: rgba(var(--tone-rgb), .1); color: var(--tone); }
.trust-icon[data-tone] { background: linear-gradient(135deg, var(--tone), var(--tone-deep)); }

/* home */
.home-hero { padding-top: 112px; padding-bottom: 56px; }
@media (min-width: 640px) { .home-hero { padding-top: 140px; padding-bottom: 88px; } }
.hero-mesh-1 { background: var(--hero-mesh1); }
.hero-mesh-2 { background: var(--hero-mesh2); }
.hero-status { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.proc-start-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(99, 102, 241, .1); color: #6366f1; }


/* ── css/inline-styles.css ── */
/* generated by tools/build/extract-inline-styles.py — former style="" attributes of the views. Do not edit.
   !important keeps the result of an inline style (which beats every stylesheet rule). */
.s-003f22d { font-size:42px !important; color:rgba(99,102,241,.35) !important }
.s-03c4bb6 { justify-content:center !important }
.s-070db0b { background:#f59e0b !important }
.s-13fd969 { background:rgba(245,158,11,.08) !important; color:#f59e0b !important }
.s-1444c6e { font-size:16px !important }
.s-1930a30 { background:rgba(245,158,11,.1) !important; color:#f59e0b !important }
.s-1b0f499 { margin-top:16px !important }
.s-23c16f6 { --sc:#0088cc !important }
.s-2a1b75c { display:block !important }
.s-2e599d0 { background:rgba(168,85,247,.08) !important; color:#a855f7 !important }
.s-3b1d076 { width:100% !important; height:100% !important; object-fit:cover !important }
.s-4679c8e { background:rgba(239,68,68,.08) !important; color:#ef4444 !important }
.s-48d0bdf { --sc:#0077b5 !important }
.s-49f14f8 { margin-bottom:20px !important }
.s-4a724ce { max-width:360px !important }
.s-54c2afb { text-align:right !important }
.s-55585d5 { max-width:260px !important }
.s-57f9e31 { color:var(--muted) !important }
.s-604d289 { --sc:#6366f1 !important }
.s-6241688 { background:linear-gradient(135deg,#ef4444,#dc2626) !important }
.s-63bcaca { display:flex !important; flex-direction:column !important; gap:12px !important }
.s-63c3b02 { background:var(--surface2) !important; border:1px solid var(--border) !important }
.s-6a6a237 { color:#f59e0b !important }
.s-6b56f5a { background:#6366f1 !important }
.s-6b99de8 { display:none !important }
.s-6fd5d7c { padding:12px 20px 20px !important; display:flex !important; flex-direction:column !important; gap:10px !important }
.s-7497dd7 { background:rgba(16,185,129,.06) !important; color:#10b981 !important; border-color:rgba(16,185,129,.12) !important }
.s-769fed3 { padding:20px !important }
.s-7a46c25 { background:var(--bg) !important }
.s-7bcd49f { background:linear-gradient(135deg,#f59e0b,#d97706) !important }
.s-7bda773 { color:var(--body) !important }
.s-7eedbc9 { color:#c792ea !important }
.s-86c55e5 { background:#ec4899 !important }
.s-86de7ac { margin-top:18px !important }
.s-89604d9 { background:rgba(16,185,129,.1) !important; color:#10b981 !important }
.s-89e6bfa { background:linear-gradient(135deg,#10b981,#059669) !important }
.s-8ab46d4 { background:rgba(239,68,68,.1) !important; color:#ef4444 !important }
.s-8c6e39c { border-top:1px solid var(--border-soft) !important }
.s-8e11ed6 { padding:18px !important }
.s-8e8e196 { --sc:#1DA1F2 !important }
.s-8ff9d20 { background:var(--hero-mesh1) !important }
.s-90b7755 { background:#10b981 !important }
.s-94f8ec0 { --tc:#6366f1 !important }
.s-985fd95 { background:linear-gradient(135deg,#6366f1,#4f46e5) !important }
.s-9f49297 { color:#ec4899 !important }
.s-a6e1332 { min-height:70px !important }
.s-a73b76b { background:var(--bg) !important; border-top:1px solid var(--border-soft) !important }
.s-ab4f4be { background:rgba(236,72,153,.08) !important; color:#ec4899 !important }
.s-acd97a4 { color:#10b981 !important }
.s-ae12557 { display:contents !important }
.s-ae90bba { background:#94a3b8 !important }
.s-b1d5c9a { color:#546e7a !important }
.s-ba2779e { background:linear-gradient(135deg,rgba(99,102,241,.15),rgba(168,85,247,.15)) !important }
.s-baa17b2 { --sc:#25D366 !important }
.s-bdf0646 { color:#82aaff !important }
.s-c177eb6 { color:var(--heading) !important }
.s-c272864 { background:linear-gradient(135deg,#6366f1,#a855f7) !important }
.s-cb5297e { color:#ffcb6b !important }
.s-da4508f { color:#c3e88d !important }
.s-dab557b { color:#6366f1 !important }
.s-dd71319 { font-size:13px !important; margin:4px 0 !important }
.s-e080254 { background:rgba(99,102,241,.1) !important; color:#6366f1 !important }
.s-e632996 { color:#6366f1 !important; background:rgba(99,102,241,.06) !important }
.s-e710e52 { background:var(--hero-mesh2) !important }
.s-efd26d9 { background:linear-gradient(135deg,#6366f1,#8b5cf6) !important }
.s-f28118d { padding:22px !important }
.s-f3e47d3 { background:rgba(99,102,241,.08) !important; color:#6366f1 !important }
.s-f5f44ac { max-width:640px !important; margin:0 auto !important }
.s-f8c61af { color:#cbd5e1 !important }
.s-fe07045 { background:rgba(16,185,129,.08) !important; color:#10b981 !important }
