/* =============================================================================
   KurdiCode 2.0 — design system ("Soft Aurora")
   Loaded on every public page by render_head(), before the page's own sheet.
   Light first; a deep-navy dark theme; Kurdish (Sorani, RTL) through :lang(ckb).

   RULES FOR EVERY PAGE SHEET BUILT ON THIS FILE
   - Colours, radii, shadows, fonts: tokens only (var(--…)). Never a raw hex
     that changes between themes — add a token here instead.
   - Logical properties only (margin-inline-start, inset-inline-end,
     text-align: start). [dir="rtl"] only for genuinely directional art.
   - Nothing hidden without JavaScript. Script-only styling hangs off html.js.
   - Touch targets ≥ 44px; visible :focus-visible (the global ring below).

   COMPONENTS (class → what it is → markup notes)
   ---------------------------------------------------------------------------
   Layout
     .container            centred column, max 1200px, side gutter 16–32px
     .container-narrow     reading column (~760px)
     .section              vertical section padding (clamp 52–92px)
     .section-tint         cool band background for alternating sections
     .page-aurora          absolute colour wash + dot grid at the top of a page
                           (<div class="page-aurora" aria-hidden="true"></div> first in <main>)
     .page-hero            sub-page hero: .eyebrow, h1.page-title, p.page-intro, .page-meta
     .grid-2 .grid-3 .grid-4   responsive equal-column grids (collapse on phones)
   Section heading pattern
     .sec-head [.split]    wrapper; .split = title left, subtitle bottom-right ≥900px
       .sec-title          groups .eyebrow + h2
       .eyebrow            pill label with gradient dot (p or span)
       .sub                the subtitle paragraph
   Buttons
     .btn + .btn-primary | .btn-secondary | .btn-ghost | .btn-link
            + .btn-sm | .btn-lg | .btn-block      (50px pill; sm 40, lg 54)
     .btn.is-loading       shows .spinner, keeps the label, disables pointer
     .icon-btn             40px round icon button (theme toggle, menu, back to top)
     .spinner              inline 1em spinner (aria-hidden)
   Cards & bits
     .card [.is-interactive]  frosted card; interactive lifts + gradient edge on hover
     .card-pad             standard inner padding
     .stretched-link       put on the card's one real link (e.g. in the h3): its ::after
                           covers the card, so the whole card is clickable.
                           Secondary links inside the card: .card-secondary (sit above it)
     .icon-tile [.tint-sky|.tint-teal|.tint-lav|.tint-amber]  46px tinted icon square
                           (.icon-tile-sm 34px, .icon-tile-lg 54px)
     .tags > li|span       small pills (forced LTR — tech names)
     .badge + .status-launch | .status-development | .status-complete | .badge-role
                           status dot + text; .project-status is an alias of .badge
                           (aliases .badge-launch/.badge-dev/.badge-complete also work)
     .chip [aria-pressed=true]  filter chip button / static chip
     .link-arrow > .arrow  text link with a nudging arrow (arrow mirrors in RTL)
     .icon-flip, .flip     mirror a directional icon in RTL
   Content cards (rendered by app/content.php, usable on any page)
     .services-grid > .svc                    service card (render_services())
     .stack-grid > .stack-card                tech stack card (render_stack())
     .featured-grid > .proj  (.proj-cover, .proj-body, .proj-foot)   project card
     .past-grid > .past-card                  compact project card
     .team-list > .founder-card              team member card (render_team())
     .contact-links > li > .contact-link      contact channels (render_contact_links())
     .promises > li                           icon + short promise
   Forms (render_contact_form() prints the whole contact form)
     .form-card            frosted form panel; .form-head h3 + .req-note
     .form-grid            2-column field grid; .field (label + control + .field-error)
     .field.full           spans both columns
     .req                  required star;  .field-hint  small help text
     [aria-invalid=true]   error ring;     .field-error  message under the control
     .form-status [.is-ok|.is-error|.is-info]   live status box: always rendered (role=status),
                           zero height and no box while empty — never hide it
     .form-actions .form-note .hp-field (honeypot, visually removed)
   Rich text
     .prose                long-form HTML from the CMS (h2–h4, lists, tables,
                           blockquote, code, figures, hr). Also styles the stored
                           compat classes .legal-note, .legal-switch, .legal-toc
                           and .highlight (gradient text) and var(--cyan).
   Navigation & chrome (printed by app/layout.php)
     .skip-link  .site-banner  .site-header(.is-scrolled|.menu-open)  .header-inner
     .brand (span.brand-mark > img + .brand-word)  .nav  .header-actions  .lang-menu  .lang-toggle
                           (layout_brand_mark($class, $size) prints the logo mark
                           as <span class="$class [is-cropped]"><img></span>)
     .theme-toggle  .menu-btn  .mobile-menu  .site-footer  .footer-grid  .socials
     .crumbs               breadcrumb trail: nav.crumbs > ol > li (last: aria-current)
   States & pages
     .empty-state          icon + title + text + optional button
     .error-page           the branded 404/500 page (render_error_page())
     .reveal [.reveal-delay-1…8]  fade-up on scroll (JS only; never hides content without JS)
   Utilities
     .sr-only  .ltr (isolated LTR run)  .text-center  .muted  .mt-0 .mt-4 .mt-6 .mt-8
     .stack (vertical rhythm: children spaced by --stack-gap, default 16px)
   ============================================================================= */

/* ---------- 1. Tokens: light (default) ---------- */
:root {
  color-scheme: light;

  /* Brand constants (from the logo mark) — glows, gradients and the logo only, never small text */
  --brand-navy-900: #03101E;
  --brand-navy-700: #152F46;
  --brand-cyan: #01B5FF;
  --brand-aqua: #06FFFC;
  --brand-amber: #FE9A06;
  --brand-gold: #FECA08;
  --brand-lavender: #A99BFF;

  /* Surfaces */
  --bg: #F8F7F4;
  --bg-tint: #F1F4F8;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --chip-bg: rgba(11, 26, 43, 0.035);
  --hover-bg: rgba(11, 26, 43, 0.05);
  --line: rgba(11, 26, 43, 0.08);
  --line-strong: rgba(11, 26, 43, 0.14);
  --field-line: rgba(11, 26, 43, 0.5);      /* input boundary: 3.4:1 on white (WCAG 1.4.11) */
  --field-bg: #FFFFFF;
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --scrim: rgba(7, 19, 33, 0.22);

  /* Ink */
  --ink: #0B1A2B;
  --text: #34465A;
  --muted: #5A6B7E;
  --accent: #0A6FAF;
  --accent-strong: #075A8F;
  --success: #0F7A4B;
  --danger: #B3380B;
  --amber-ink: #A45A00;
  --lav-ink: #5B4BD6;
  --teal-ink: #0E7490;
  --cyan: var(--accent);                /* stored CMS text uses style="color:var(--cyan)" */
  --focus: #0A7FC4;
  --req: #C2410C;

  /* Logo tints (wordmark) */
  --logo-bracket: #7C8B9C;
  --logo-kurdi: #0A86CC;
  --logo-code: #E08A00;

  /* Status badges: text / background / ring */
  --st-launch-fg: #0F7A4B;   --st-launch-bg: #E3F6EC;   --st-launch-line: rgba(15, 122, 75, 0.18);
  --st-dev-fg: #8F5000;      --st-dev-bg: #FFF2D6;      --st-dev-line: rgba(164, 90, 0, 0.18);
  --st-done-fg: #0A6A9E;     --st-done-bg: #E4F2FB;     --st-done-line: rgba(10, 106, 158, 0.16);

  /* Status boxes (form status, callouts) */
  --ok-bg: #E9F7F0;   --ok-line: rgba(15, 122, 75, 0.28);
  --err-bg: #FDEEE8;  --err-line: rgba(194, 65, 12, 0.3);
  --info-bg: #E8F3FB; --info-line: rgba(10, 111, 175, 0.26);

  /* Gradients */
  --grad-text: linear-gradient(100deg, #0A6FAF 5%, #0E86B8 45%, #5B5BD6 100%);
  --grad-brand: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-aqua) 100%);
  --grad-warm: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-gold) 100%);
  --grad-dot: conic-gradient(from 200deg, #01B5FF, #06FFFC, #A99BFF, #FECA08, #01B5FF);
  --grad-edge: linear-gradient(135deg, rgba(1, 181, 255, 0.55), rgba(169, 155, 255, 0.45) 50%, rgba(254, 202, 8, 0.55));
  --aurora:
    radial-gradient(38% 46% at 10% 14%, rgba(1, 181, 255, 0.20), transparent 70%),
    radial-gradient(34% 40% at 86% 6%, rgba(6, 255, 252, 0.20), transparent 70%),
    radial-gradient(30% 38% at 74% 56%, rgba(169, 155, 255, 0.22), transparent 70%),
    radial-gradient(26% 30% at 40% 70%, rgba(254, 202, 8, 0.13), transparent 70%);
  --aurora-soft:
    radial-gradient(40% 60% at 0% 0%, rgba(1, 181, 255, 0.10), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(169, 155, 255, 0.12), transparent 70%),
    radial-gradient(30% 40% at 90% 10%, rgba(254, 202, 8, 0.08), transparent 70%);
  --dot-grid: rgba(11, 26, 43, 0.075);
  --btn-primary-bg: linear-gradient(180deg, #1A3654 0%, #0B1A2B 100%);
  --btn-primary-fg: #FFFFFF;
  --btn-primary-ring: 0 0 0 1px rgba(11, 26, 43, 0.9);
  --btn-primary-shadow: 0 8px 22px -10px rgba(11, 26, 43, 0.55);

  /* Project cover washes (tone chosen by position) */
  --cover-base-1: #EAF6FD; --cover-base-2: #F1EEFF; --cover-base-3: #E8FAF8; --cover-base-4: #FFF6E6; --cover-base-5: #EEF2FF;
  --cover-dots: rgba(11, 26, 43, 0.10);

  /* Shadows (layered, navy-tinted) */
  --shadow-xs: 0 1px 2px rgba(11, 26, 43, 0.05);
  --shadow-sm: 0 1px 2px rgba(11, 26, 43, 0.04), 0 4px 12px -2px rgba(11, 26, 43, 0.05);
  --shadow-md: 0 1px 2px rgba(11, 26, 43, 0.04), 0 10px 28px -8px rgba(11, 26, 43, 0.10), 0 28px 56px -28px rgba(11, 26, 43, 0.12);
  --shadow-lg: 0 2px 4px rgba(11, 26, 43, 0.04), 0 18px 44px -14px rgba(11, 26, 43, 0.16), 0 44px 90px -40px rgba(10, 111, 175, 0.22);
  --shadow-glow: 0 14px 34px -12px rgba(10, 127, 196, 0.45);
  --header-shadow: 0 8px 24px -18px rgba(11, 26, 43, 0.25);

  /* Type */
  --font-latin-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-latin-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-kurdish: "Vazirmatn", "Noto Sans Arabic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Vazirmatn", "Noto Sans Arabic", Consolas, monospace;
  --font-display: var(--font-latin-display);
  --font-body: var(--font-latin-body);
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 3.6vw, 4.1rem);
  --lh-body: 1.65;
  --lh-heading: 1.1;
  --tracking-display: -0.032em;
  --tracking-heading: -0.022em;
  --tracking-label: 0.02em;

  /* Spacing (4-pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(52px, 2rem + 3.6vw, 92px);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px;
  --container-narrow: 760px;

  /* Radii */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-2xl: 36px; --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.28s;

  /* Chrome */
  --header-h: 72px;
  --z-header: 50;
  --z-menu: 49;
  --z-skip: 100;
  --z-overlay: 200;
}

/* ---------- 2. Tokens: dark (deep-navy version of the same system) ----------
   Applied when the visitor chose dark (data-theme="dark", set before paint by
   the head script), or — with no script at all — when the system prefers dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071321;
  --bg-tint: #0A1828;
  --surface: #0E1C2D;
  --glass: rgba(18, 36, 56, 0.55);
  --glass-strong: rgba(16, 32, 50, 0.82);
  --chip-bg: rgba(186, 214, 240, 0.06);
  --hover-bg: rgba(186, 214, 240, 0.08);
  --line: rgba(186, 214, 240, 0.10);
  --line-strong: rgba(186, 214, 240, 0.18);
  --field-line: rgba(186, 214, 240, 0.5);   /* 3.9:1 on the dark field */
  --field-bg: rgba(7, 19, 33, 0.6);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --scrim: rgba(2, 8, 15, 0.55);
  --ink: #EEF4FA;
  --text: #B9C7D6;
  --muted: #8FA1B5;
  --accent: #5FD0FF;
  --accent-strong: #8ADDFF;
  --success: #6EE7B7;
  --danger: #FF9D6B;
  --amber-ink: #FFC247;
  --lav-ink: #B7A6FF;
  --teal-ink: #5EEAD4;
  --focus: #7FDBFF;
  --req: #FF9D6B;
  --logo-bracket: #7F93A8;
  --logo-kurdi: #3CC4FF;
  --logo-code: #FEB320;
  --st-launch-fg: #6EE7B7;   --st-launch-bg: rgba(52, 211, 153, 0.12);  --st-launch-line: rgba(110, 231, 183, 0.22);
  --st-dev-fg: #FFD66B;      --st-dev-bg: rgba(254, 202, 8, 0.10);      --st-dev-line: rgba(255, 214, 107, 0.22);
  --st-done-fg: #7FDBFF;     --st-done-bg: rgba(95, 208, 255, 0.10);    --st-done-line: rgba(127, 219, 255, 0.22);
  --ok-bg: rgba(52, 211, 153, 0.10);   --ok-line: rgba(110, 231, 183, 0.3);
  --err-bg: rgba(255, 120, 80, 0.10);  --err-line: rgba(255, 157, 107, 0.34);
  --info-bg: rgba(95, 208, 255, 0.08); --info-line: rgba(127, 219, 255, 0.28);
  --grad-text: linear-gradient(100deg, #5FD0FF 5%, #6FF3EC 45%, #B7A6FF 100%);
  --aurora:
    radial-gradient(38% 46% at 10% 14%, rgba(1, 181, 255, 0.22), transparent 70%),
    radial-gradient(34% 40% at 86% 6%, rgba(6, 255, 252, 0.10), transparent 70%),
    radial-gradient(30% 38% at 74% 56%, rgba(130, 110, 255, 0.20), transparent 70%),
    radial-gradient(26% 30% at 40% 70%, rgba(254, 154, 6, 0.07), transparent 70%);
  --aurora-soft:
    radial-gradient(40% 60% at 0% 0%, rgba(1, 181, 255, 0.10), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(130, 110, 255, 0.12), transparent 70%),
    radial-gradient(30% 40% at 90% 10%, rgba(254, 154, 6, 0.05), transparent 70%);
  --dot-grid: rgba(186, 214, 240, 0.08);
  --btn-primary-bg: linear-gradient(135deg, #5FD0FF 0%, #7DF0EC 100%);
  --btn-primary-fg: #06182A;
  --btn-primary-ring: 0 0 0 1px rgba(127, 219, 255, 0.5);
  --btn-primary-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.6);
  --cover-base-1: #0F2034; --cover-base-2: #0F2034; --cover-base-3: #0F2034; --cover-base-4: #0F2034; --cover-base-5: #0F2034;
  --cover-dots: rgba(186, 214, 240, 0.10);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 50px -16px rgba(0, 0, 0, 0.6), 0 40px 90px -40px rgba(1, 181, 255, 0.25);
  --shadow-glow: 0 14px 34px -12px rgba(95, 208, 255, 0.45);
  --header-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #071321;
    --bg-tint: #0A1828;
    --surface: #0E1C2D;
    --glass: rgba(18, 36, 56, 0.55);
    --glass-strong: rgba(16, 32, 50, 0.82);
    --chip-bg: rgba(186, 214, 240, 0.06);
    --hover-bg: rgba(186, 214, 240, 0.08);
    --line: rgba(186, 214, 240, 0.10);
    --line-strong: rgba(186, 214, 240, 0.18);
    --field-line: rgba(186, 214, 240, 0.5);   /* 3.9:1 on the dark field */
    --field-bg: rgba(7, 19, 33, 0.6);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --scrim: rgba(2, 8, 15, 0.55);
    --ink: #EEF4FA;
    --text: #B9C7D6;
    --muted: #8FA1B5;
    --accent: #5FD0FF;
    --accent-strong: #8ADDFF;
    --success: #6EE7B7;
    --danger: #FF9D6B;
    --amber-ink: #FFC247;
    --lav-ink: #B7A6FF;
    --teal-ink: #5EEAD4;
    --focus: #7FDBFF;
    --req: #FF9D6B;
    --logo-bracket: #7F93A8;
    --logo-kurdi: #3CC4FF;
    --logo-code: #FEB320;
    --st-launch-fg: #6EE7B7;   --st-launch-bg: rgba(52, 211, 153, 0.12);  --st-launch-line: rgba(110, 231, 183, 0.22);
    --st-dev-fg: #FFD66B;      --st-dev-bg: rgba(254, 202, 8, 0.10);      --st-dev-line: rgba(255, 214, 107, 0.22);
    --st-done-fg: #7FDBFF;     --st-done-bg: rgba(95, 208, 255, 0.10);    --st-done-line: rgba(127, 219, 255, 0.22);
    --ok-bg: rgba(52, 211, 153, 0.10);   --ok-line: rgba(110, 231, 183, 0.3);
    --err-bg: rgba(255, 120, 80, 0.10);  --err-line: rgba(255, 157, 107, 0.34);
    --info-bg: rgba(95, 208, 255, 0.08); --info-line: rgba(127, 219, 255, 0.28);
    --grad-text: linear-gradient(100deg, #5FD0FF 5%, #6FF3EC 45%, #B7A6FF 100%);
    --aurora:
      radial-gradient(38% 46% at 10% 14%, rgba(1, 181, 255, 0.22), transparent 70%),
      radial-gradient(34% 40% at 86% 6%, rgba(6, 255, 252, 0.10), transparent 70%),
      radial-gradient(30% 38% at 74% 56%, rgba(130, 110, 255, 0.20), transparent 70%),
      radial-gradient(26% 30% at 40% 70%, rgba(254, 154, 6, 0.07), transparent 70%);
    --aurora-soft:
      radial-gradient(40% 60% at 0% 0%, rgba(1, 181, 255, 0.10), transparent 70%),
      radial-gradient(40% 60% at 100% 100%, rgba(130, 110, 255, 0.12), transparent 70%),
      radial-gradient(30% 40% at 90% 10%, rgba(254, 154, 6, 0.05), transparent 70%);
    --dot-grid: rgba(186, 214, 240, 0.08);
    --btn-primary-bg: linear-gradient(135deg, #5FD0FF 0%, #7DF0EC 100%);
    --btn-primary-fg: #06182A;
    --btn-primary-ring: 0 0 0 1px rgba(127, 219, 255, 0.5);
    --btn-primary-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.6);
    --cover-base-1: #0F2034; --cover-base-2: #0F2034; --cover-base-3: #0F2034; --cover-base-4: #0F2034; --cover-base-5: #0F2034;
    --cover-dots: rgba(186, 214, 240, 0.10);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 50px -16px rgba(0, 0, 0, 0.6), 0 40px 90px -40px rgba(1, 181, 255, 0.25);
    --shadow-glow: 0 14px 34px -12px rgba(95, 208, 255, 0.45);
    --header-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- 3. Language typography ----------
   Kurdish (Sorani) is written in Arabic script: its own faces, a taller line, and never letter-spacing or capitals (spacing breaks the joined letters).
   Islands of the other language inside a page carry lang="" and get their
   own faces the same way. */
:root:lang(ckb), :root:lang(en) [lang="ckb"], and never letter-spacing or capitals (spacing breaks the joined letters).
   Islands of the other language inside a page carry lang="" and get their
   own faces the same way. */
:root:lang(ar) {
  --font-display: var(--font-kurdish);
  --font-body: var(--font-kurdish);
  --lh-body: 1.9;
  --lh-heading: 1.4;
  --tracking-display: 0;
  --tracking-heading: 0;
  --tracking-label: 0;
}
/* English pages keep the Arabic-script faces out of the code font, so a stray
   symbol never downloads a Kurdish font file. */
:root:lang(en) { --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace; }
:root:lang(ckb) [lang="en"], :root:lang(ar) [lang="en"] {
  --font-display: var(--font-latin-display);
  --font-body: var(--font-latin-body);
  --lh-body: 1.65;
  --lh-heading: 1.1;
}
:root:lang(en) [lang="ckb"], :root:lang(ckb) [lang="en"], :root:lang(ar) [lang="en"] { font-family: var(--font-body); }
:lang(ckb), :lang(ar) { letter-spacing: 0 !important; text-transform: none !important; font-style: normal; }

/* ---------- 4. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}
body > main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: var(--tracking-display); }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(1, 181, 255, 0.22); color: var(--ink); }
strong, b { color: var(--ink); font-weight: 600; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; height: 1px; background: var(--line); margin-block: var(--s-6); }

/* ---------- 5. Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section-tint { background: linear-gradient(180deg, transparent, var(--bg-tint) 18%, var(--bg-tint) 82%, transparent); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 721px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stack { display: grid; gap: var(--stack-gap, 16px); align-content: start; }

/* ---------- 6. Accessibility helpers ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline-offset: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
bdi.ltr { display: inline; }

/* ---------- 7. Page wash + sub-page hero ---------- */
.page-aurora {
  position: absolute; inset: 0 0 auto 0; height: 1080px; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.page-aurora::before {
  content: ""; position: absolute; inset: -10% -5% 0 -5%;
  background: var(--aurora); filter: blur(24px);
}
.page-aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
}
.page-aurora.is-short { height: 620px; }
.page-hero { padding-block: clamp(36px, 1.5rem + 4vw, 80px) clamp(28px, 1rem + 3vw, 56px); display: grid; gap: 18px; justify-items: start; }
.page-hero .page-title, .page-title { font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: var(--tracking-display); text-wrap: balance; }
:root:lang(ckb) .page-title, :root:lang(ar) .page-title { line-height: 1.4; }
.page-intro { font-size: var(--fs-lg); color: var(--text); max-width: 62ch; text-wrap: pretty; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-sm); color: var(--muted); }
.page-meta i { color: var(--accent); margin-inline-end: 6px; }

/* ---------- 8. Buttons ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: var(--r-pill); border: 0;
  font: 600 0.97rem/1.2 var(--font-body);
  text-align: center; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn i { font-size: 0.92em; }
.btn-primary {
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--btn-primary-ring), var(--btn-primary-shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--btn-primary-ring), var(--shadow-glow); }
.btn-secondary {
  background: var(--glass-strong); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xs);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--hover-bg); }
.btn-link {
  --h: 44px; padding-inline: 4px; background: none; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.btn-link:hover { color: var(--accent-strong); }
.btn-sm { --h: 40px; padding-inline: 18px; font-size: 0.9rem; }
.btn-lg { --h: 54px; padding-inline: 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn.is-loading { cursor: progress; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon, .btn.is-loading .btn-label > i { display: none; }
.spinner {
  width: 1em; height: 1em; flex-shrink: 0; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent;
  animation: kc-spin 0.7s linear infinite;
}
@keyframes kc-spin { to { transform: rotate(360deg); } }
.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; display: inline-grid; place-items: center;
  border-radius: var(--r-pill); border: 0; background: var(--glass-strong); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }

/* ---------- 9. Header ---------- */
.site-banner {
  position: relative; z-index: calc(var(--z-header) + 1);
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.5; text-align: center;
}
.site-banner .container { padding-block: 10px; }
.site-banner a { text-decoration: underline; text-underline-offset: 3px; }
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled, .site-header.menu-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: var(--header-shadow);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: var(--s-4); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  min-height: 44px; border-radius: 10px;
  font: 500 1.14rem/1 var(--font-mono); color: var(--ink); letter-spacing: -0.01em;
  font-synthesis: none;
}
/* Logo mark: <span class="brand-mark [is-cropped]"><img></span> (layout_brand_mark()).
   The span is the sized, clipping box; the image fills it. .is-cropped (the
   shipped icon only) enlarges the image so the box shows the artwork's
   232–792 window of its 1024 canvas, like the design; uploaded icons show whole. */
.brand-mark { display: block; width: 34px; height: 34px; flex-shrink: 0; overflow: hidden; filter: drop-shadow(0 4px 8px rgba(3, 16, 30, 0.22)); }
.brand-mark > img, .mark-tile > img { width: 100%; height: 100%; max-width: none; }
.is-cropped > img { width: calc(100% * 1024 / 560); height: calc(100% * 1024 / 560); max-width: none; margin: calc(-100% * 232 / 560); }
:root[data-theme="dark"] .brand-mark { filter: drop-shadow(0 0 0.6px rgba(127, 219, 255, 0.8)); }
.brand-word { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.brand .b-br { color: var(--logo-bracket); }
.brand .b-kurdi { color: var(--logo-kurdi); }
.brand .b-code { color: var(--logo-code); }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--text); font-weight: 500; font-size: 0.94rem; line-height: 1.4;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; inset: -2px 0; border-radius: inherit; } /* 44px touch target (tablets) */
.nav a:hover { color: var(--ink); background: var(--hover-bg); }
.nav a[aria-current] { color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: var(--s-3); }
.header-actions .btn { white-space: nowrap; }

/* Language switch: one plain link per language, "EN | کوردی | العربية", the
   page's own language filled. nav.lang-toggle > ul > li > a.lang-item
   (span.lang-tag is the short form, span.lang-name the language's own name). */
.lang-toggle {
  display: inline-flex; align-items: center; padding: 3px; flex-shrink: 0;
  min-height: 44px; border-radius: var(--r-pill);
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong);
  direction: ltr;
  transition: box-shadow var(--dur) var(--ease);
}
.lang-toggle ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.lang-item {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px;
  border-radius: var(--r-pill); font: 600 0.8rem/1 var(--font-latin-body); color: var(--muted);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-item .lang-tag { display: none; }
.lang-item.lang-ku .lang-name, .lang-item.lang-ar .lang-name { font-family: var(--font-kurdish); font-size: 0.88rem; }
.lang-item.is-active { background: var(--ink); color: var(--bg); }
.lang-item:hover:not(.is-active) { color: var(--ink); }
.lang-toggle:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 380px) {
  .lang-item { padding-inline: 8px; }
}

/* The header's language control: one globe button (details/summary, so it
   works without script; site.js closes it on an outside click or Escape)
   opening the list of languages, each in its own script, the page's one
   ticked. The three-way row above stays in the phone menu and the footer. */
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::marker { content: ""; }
.lang-menu[open] > summary { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.lang-menu-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: var(--z-menu);
  min-width: 212px; padding: 6px; border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  animation: kc-menu-in 0.2s var(--ease);
}
.lang-menu-panel ul { list-style: none; display: grid; gap: 2px; }
.lang-option {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-md);
  color: var(--ink); font: 500 0.95rem/1.3 var(--font-body);
  transition: background-color var(--dur) var(--ease);
}
.lang-option:hover { background: var(--hover-bg); }
.lang-option-name { flex: 1 1 auto; }
.lang-option.lang-ku .lang-option-name, .lang-option.lang-ar .lang-option-name { font-family: var(--font-kurdish); }
.lang-option-tag { font: 600 0.72rem/1 var(--font-mono); color: var(--muted); letter-spacing: 0.04em; direction: ltr; }
.lang-option .fa-check { font-size: 0.75rem; color: var(--accent); visibility: hidden; }
.lang-option.is-active { background: var(--chip-bg); }
.lang-option.is-active .fa-check { visibility: visible; }

.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
html:not(.js) .theme-toggle, html:not(.js) .menu-btn { display: none; }
.menu-btn { display: none; }
.menu-btn .fa-xmark { display: none; }
.menu-btn[aria-expanded="true"] .fa-xmark { display: inline-block; }
.menu-btn[aria-expanded="true"] .fa-bars { display: none; }

.mobile-menu {
  /* Hangs just below the header, wherever the header is (the announcement
     bar can push it down). */
  position: absolute; top: calc(100% + 8px); inset-inline: 12px; z-index: var(--z-menu);
  max-height: calc(100dvh - var(--header-h) - 20px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px; border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  transform-origin: top center;
  animation: kc-menu-in 0.22s var(--ease);
}
@keyframes kc-menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } }
.menu-scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-menu) - 1);
  background: var(--scrim);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: kc-fade-in 0.2s var(--ease);
}
@keyframes kc-fade-in { from { opacity: 0; } }
.mobile-menu ul { list-style: none; }
.mobile-menu > nav li + li { border-top: 1px solid var(--line); }
.mobile-menu > nav ul a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm);
  font: 600 1.06rem/1.3 var(--font-display); color: var(--ink);
}
.mobile-menu > nav ul a i { color: var(--muted); font-size: 0.8rem; }
.mobile-menu > nav ul a:hover { background: var(--hover-bg); }
.mobile-menu > nav ul a[aria-current] { background: var(--hover-bg); }
.mobile-menu-foot {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  padding: 12px 4px 4px; margin-top: 6px; border-top: 1px solid var(--line);
}
/* Three languages side by side, each taking a third of the row. */
.mobile-menu-foot .lang-toggle { min-height: 50px; padding: 4px; width: 100%; }
.mobile-menu-foot .lang-toggle ul { width: 100%; }
.mobile-menu-foot .lang-toggle li { flex: 1 1 0; min-width: 0; }
.mobile-menu-foot .lang-item { width: 100%; justify-content: center; min-height: 42px; padding-inline: 8px; }
.mobile-menu-foot .btn { width: 100%; }
/* Quick ways in, under the links: WhatsApp · Email · Call */
.mobile-menu-contact { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 10px 4px 2px; }
.mm-contact {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 66px; padding: 10px 8px; border-radius: var(--r-md);
  background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 0.8rem/1.2 var(--font-body); color: var(--ink);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mm-contact i { font-size: 1.2rem; color: var(--accent); }
.mm-contact.mm-whatsapp i { color: var(--whatsapp); }
.mm-contact:hover { background: var(--hover-bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
html.menu-is-open { overflow: hidden; }

/* Once the page has moved, the header becomes a floating glass pill. */
@media (min-width: 961px) {
  .site-header { padding-top: 0; transition: padding var(--dur) var(--ease); }
  .site-header .header-inner {
    border-radius: var(--r-pill);
    transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease), min-height 0.35s var(--ease);
  }
  .site-header.is-scrolled { background: transparent; border-bottom-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 10px; }
  .site-header.is-scrolled .header-inner {
    min-height: 62px; padding-inline: 10px 8px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 0 0 1px var(--line), var(--glass-highlight), var(--shadow-md);
  }
  .site-header.is-scrolled .brand { font-size: 1.04rem; }
}

/* ---------- 10. Section heading pattern ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 13px; padding-inline-start: 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent); font: 600 0.8rem/1.2 var(--font-body); letter-spacing: var(--tracking-label);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.sec-head { display: grid; gap: var(--s-4); margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-heading); text-wrap: balance; }
:root:lang(ckb) .sec-head h2, :root:lang(ar) .sec-head h2 { line-height: 1.35; }
.sec-head .sub { font-size: var(--fs-lg); color: var(--text); max-width: 60ch; text-wrap: pretty; }
.sec-title { display: grid; gap: var(--s-4); justify-items: start; }
@media (min-width: 900px) {
  .sec-head.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: var(--s-8); align-items: end; }
  .sec-head.split .sub { padding-bottom: 6px; }
}

/* ---------- 11. Cards, tiles, tags, badges, chips ---------- */
.card {
  position: relative; isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.card.is-interactive:hover, .card.is-interactive:focus-within { transform: translateY(-3px); box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-md); }
.card.is-interactive:hover::after, .card.is-interactive:focus-within::after { opacity: 1; }
.card-pad { padding: clamp(20px, 2.4vw, 28px); }

/* One real link per card; its ::before covers the card. */
.stretched-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::before { outline: 2px solid var(--focus); outline-offset: 3px; }
.card-secondary { position: relative; z-index: 2; }

.icon-tile {
  --tile-fg: var(--accent); --tile-bg: rgba(1, 181, 255, 0.11); --tile-line: rgba(1, 181, 255, 0.22);
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 14px; color: var(--tile-fg); font-size: 1.08rem;
  background: linear-gradient(145deg, var(--tile-bg), transparent 130%);
  box-shadow: inset 0 0 0 1px var(--tile-line), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
:root[data-theme="dark"] .icon-tile { box-shadow: inset 0 0 0 1px var(--tile-line); }
.icon-tile-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 0.85rem; }
.icon-tile-lg { width: 54px; height: 54px; border-radius: 16px; font-size: 1.25rem; }
.tint-sky   { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.tint-teal  { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.tint-amber { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }
.tint-lav   { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags > * {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: var(--r-pill);
  font: 500 0.78rem/1.3 var(--font-latin-body); color: var(--text);
  background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line);
  direction: ltr; unicode-bidi: isolate;
}

.badge, .project-status {
  --b-fg: var(--accent); --b-bg: color-mix(in srgb, var(--accent) 9%, transparent); --b-line: color-mix(in srgb, var(--accent) 22%, transparent);
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; width: fit-content;
  padding: 5px 11px; padding-inline-start: 9px; border-radius: var(--r-pill);
  font: 600 0.76rem/1.3 var(--font-body); white-space: nowrap;
  color: var(--b-fg); background: var(--b-bg); box-shadow: inset 0 0 0 1px var(--b-line);
}
.badge::before, .project-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.status-launch, .badge-launch { --b-fg: var(--st-launch-fg); --b-bg: var(--st-launch-bg); --b-line: var(--st-launch-line); }
.status-development, .badge-dev { --b-fg: var(--st-dev-fg); --b-bg: var(--st-dev-bg); --b-line: var(--st-dev-line); }
.status-complete, .badge-complete { --b-fg: var(--st-done-fg); --b-bg: var(--st-done-bg); --b-line: var(--st-done-line); }
.badge-role { --b-fg: var(--accent); }
.badge-plain::before { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--glass-strong); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 500 0.9rem/1.2 var(--font-body);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Compact 40px controls keep their look but get a 44px-tall touch target. */
button.chip, a.chip { position: relative; }
.btn-sm::after, button.chip::after, a.chip::after { content: ""; position: absolute; inset: -2px 0; border-radius: inherit; }
button.chip:hover, a.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .count { font-size: 0.78em; opacity: 0.75; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
  font: 600 0.9rem/1.3 var(--font-body); color: var(--accent);
  border-radius: 6px; transition: color var(--dur) var(--ease);
}
/* Links keep their compact look but get a 44px-tall touch target. */
a.link-arrow:not(.stretched-link) { position: relative; }
a.link-arrow:not(.stretched-link)::after { content: ""; position: absolute; inset: -6px -4px; border-radius: inherit; }
.link-arrow .arrow { font-size: 0.78em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--accent-strong); }
.link-arrow:hover .arrow, .card.is-interactive:hover .link-arrow .arrow { transform: translateX(3px); }
[dir="rtl"] .arrow, [dir="rtl"] .flip, [dir="rtl"] .icon-flip { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .arrow, [dir="rtl"] .card.is-interactive:hover .link-arrow .arrow { transform: scaleX(-1) translateX(3px); }
.inline-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--accent-strong); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- 12. Content cards ---------- */
/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc { padding: 26px 24px 30px; display: grid; gap: 12px; align-content: start; background: var(--glass-strong); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.svc-num { font: 500 0.78rem/1 var(--font-mono); color: var(--muted); direction: ltr; }
.svc h3 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; }
:root:lang(ckb) .svc h3, :root:lang(ar) .svc h3 { line-height: 1.5; }
.svc p { font-size: 0.93rem; line-height: 1.65; }
:root:lang(ckb) .svc p, :root:lang(ar) .svc p { line-height: 1.85; }
.services-grid > :nth-child(4n+1) .icon-tile { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.services-grid > :nth-child(4n+2) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.services-grid > :nth-child(4n+3) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.services-grid > :nth-child(4n+4) .icon-tile { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }

/* Tech stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack-card { padding: 24px; display: grid; gap: 18px; align-content: start; }
.stack-card-head { display: flex; align-items: center; gap: 14px; }
.stack-card h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.stack-grid > :nth-child(3n+1) .icon-tile { --tile-fg: var(--accent); }
.stack-grid > :nth-child(3n+2) .icon-tile { --tile-fg: var(--lav-ink);  --tile-bg: rgba(130, 110, 255, 0.16); --tile-line: rgba(130, 110, 255, 0.26); }
.stack-grid > :nth-child(3n+3) .icon-tile { --tile-fg: var(--teal-ink); --tile-bg: rgba(6, 214, 210, 0.14);   --tile-line: rgba(6, 190, 190, 0.26); }

/* Featured projects: count-aware rows — the grid always fills its last row. */
.featured-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 721px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1025px) {
  .featured-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .featured-grid > *, .featured-grid > :first-child:nth-last-child(odd) { grid-column: span 2; }
  .featured-grid:has(> :last-child:nth-child(3n+2)) > :nth-child(-n+2) { grid-column: span 3; }
  .featured-grid:has(> :last-child:nth-child(3n+1)) > :nth-child(-n+4) { grid-column: span 3; }
  .featured-grid > :only-child { grid-column: 1 / -1; }
}
.proj { padding: 10px; display: flex; flex-direction: column; background: var(--glass-strong); }
.proj-cover {
  --c1: rgba(1, 181, 255, 0.42); --c2: rgba(6, 255, 252, 0.40); --c3: rgba(254, 202, 8, 0.30); --cbase: var(--cover-base-1);
  position: relative; overflow: hidden; min-height: 128px; border-radius: 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px;
  background:
    radial-gradient(60% 90% at 12% 10%, var(--c1), transparent 70%),
    radial-gradient(50% 80% at 88% 0%, var(--c2), transparent 70%),
    radial-gradient(60% 90% at 70% 110%, var(--c3), transparent 70%),
    var(--cbase);
  box-shadow: inset 0 0 0 1px var(--line);
}
.proj-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--cover-dots) 1px, transparent 1.3px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000);
}
[dir="rtl"] .proj-cover::after { -webkit-mask-image: linear-gradient(270deg, transparent 30%, #000); mask-image: linear-gradient(270deg, transparent 30%, #000); }
.featured-grid > :nth-child(5n+2) .proj-cover { --c1: rgba(169, 155, 255, 0.50); --c2: rgba(1, 181, 255, 0.30); --c3: rgba(255, 190, 220, 0.34); --cbase: var(--cover-base-2); }
.featured-grid > :nth-child(5n+3) .proj-cover { --c1: rgba(6, 255, 252, 0.45); --c2: rgba(52, 211, 153, 0.30); --c3: rgba(169, 155, 255, 0.34); --cbase: var(--cover-base-3); }
.featured-grid > :nth-child(5n+4) .proj-cover { --c1: rgba(254, 202, 8, 0.45); --c2: rgba(254, 154, 6, 0.26); --c3: rgba(1, 181, 255, 0.26); --cbase: var(--cover-base-4); }
.featured-grid > :nth-child(5n+5) .proj-cover { --c1: rgba(1, 181, 255, 0.34); --c2: rgba(169, 155, 255, 0.40); --c3: rgba(6, 255, 252, 0.26); --cbase: var(--cover-base-5); }
.proj-cover.has-image { padding: 0; min-height: 0; aspect-ratio: 16 / 9; background: var(--bg-tint); }
.proj-cover.has-image img { width: 100%; height: 100%; object-fit: cover; }
.proj-cover.has-image::after { display: none; }
.proj-cover .icon-tile {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 16px; font-size: 1.25rem; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 18px -8px rgba(11, 26, 43, 0.3);
}
:root[data-theme="dark"] .proj-cover .icon-tile { box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 18px -8px rgba(0, 0, 0, 0.5); }
.proj-cover .badge { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; box-shadow: inset 0 0 0 1px var(--b-line), 0 2px 6px -2px rgba(11, 26, 43, 0.15); }
.proj-cover .watermark { position: absolute; inset-inline-end: 18px; bottom: -18px; font-size: 5.5rem; color: var(--ink); opacity: 0.07; pointer-events: none; }
.proj-body { padding: 20px 14px 10px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj-body h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
:root:lang(ckb) .proj-body h3, :root:lang(ar) .proj-body h3 { line-height: 1.55; }
.proj-body h3 a:hover { color: var(--accent); }
.proj-body > p { font-size: 0.94rem; line-height: 1.65; }
:root:lang(ckb) .proj-body > p, :root:lang(ar) .proj-body > p { line-height: 1.85; }
.proj-note { display: flex; align-items: baseline; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.proj-note i { color: var(--amber-ink); }
.proj-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.proj-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; } /* row gap = the links' 44px touch areas never overlap */
.proj-foot .more { pointer-events: none; }

/* Earlier projects (compact) */
.past-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.past-card { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.past-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.past-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
.past-card h3 { font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
:root:lang(ckb) .past-card h3, :root:lang(ar) .past-card h3 { line-height: 1.55; }
.past-card p { font-size: 0.9rem; line-height: 1.6; }
.past-card .proj-foot { padding-top: 14px; }
.past-grid > :nth-child(4n+1) .icon-tile { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.past-grid > :nth-child(4n+2) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.past-grid > :nth-child(4n+3) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.past-grid > :nth-child(4n+4) .icon-tile { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }

/* Team member */
.team-list { display: grid; gap: 20px; }
.founder-card {
  width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--glass-strong);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-md);
}
.founder-card::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: -40%; inset-inline-end: -10%; width: 55%; height: 140%;
  background: radial-gradient(closest-side, rgba(1, 181, 255, 0.14), transparent), radial-gradient(closest-side at 70% 60%, rgba(169, 155, 255, 0.14), transparent);
  filter: blur(10px); pointer-events: none;
}
.avatar {
  position: relative; width: 112px; height: 112px; border-radius: 30px;
  display: grid; place-items: center; color: #7FE6FF; font-size: 2.3rem;
  background: linear-gradient(150deg, var(--brand-navy-700), var(--brand-navy-900));
  box-shadow: 0 18px 36px -16px rgba(3, 16, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar::after {
  content: ""; position: absolute; inset: -5px; border-radius: 34px; padding: 2px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-aqua) 40%, var(--brand-gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.85;
}
.founder-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.founder-head h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); font-weight: 700; }
.founder-bio { margin-block: 14px 24px; font-size: var(--fs-md); line-height: 1.75; max-width: 78ch; }
:root:lang(ckb) .founder-bio, :root:lang(ar) .founder-bio { line-height: 1.95; }
.founder-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.founder-meta > span, .founder-meta > a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 36px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.86rem; line-height: 1.35; color: var(--text);
}
.founder-meta i { color: var(--accent); font-size: 0.85rem; }
.founder-meta > a { position: relative; color: var(--ink); font-weight: 600; transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.founder-meta > a::after { content: ""; position: absolute; inset: -4px 0; border-radius: inherit; } /* 44px touch target */
.founder-meta > a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* Contact channels + promises */
.promises { list-style: none; display: grid; gap: 10px; }
.promises li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.contact-links {
  list-style: none; padding: 6px; border-radius: var(--r-lg);
  background: var(--glass-strong);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.contact-links li + li { border-top: 1px solid var(--line); }
.contact-link { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 14px; border-radius: var(--r-md); transition: background-color var(--dur) var(--ease); }
a.contact-link:hover { background: var(--hover-bg); }
.contact-link .icon-tile { width: 40px; height: 40px; border-radius: 12px; font-size: 0.95rem; }
.contact-links li:nth-child(4n+1) .icon-tile { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.contact-links li:nth-child(4n+2) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.contact-links li:nth-child(4n+3) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.contact-links li:nth-child(4n+4) .icon-tile { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }
.contact-link-body { display: grid; min-width: 0; flex: 1; }
.contact-link-body small { font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: var(--tracking-label); }
.contact-link-body strong { font-weight: 600; color: var(--ink); font-size: 0.97rem; overflow-wrap: anywhere; }
.contact-link-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.84rem; color: var(--accent); flex-shrink: 0; }
.contact-link-go i { font-size: 0.75em; transition: transform var(--dur) var(--ease); }
a.contact-link:hover .contact-link-go i { transform: translateX(3px); }
[dir="rtl"] a.contact-link:hover .contact-link-go i { transform: scaleX(-1) translateX(3px); }

/* ---------- 13. Forms ---------- */
.form-card {
  padding: clamp(22px, 3vw, 40px); border-radius: var(--r-xl);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-lg);
}
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.form-head h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.req-note { font-size: 0.84rem; color: var(--muted); display: inline-flex; gap: 4px; }
.req { color: var(--req); font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; position: relative; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 0.88rem/1.3 var(--font-body); color: var(--ink); display: inline-flex; flex-wrap: wrap; gap: 4px; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field-hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--field-bg); color: var(--ink);
  font: 400 0.97rem/1.5 var(--font-body);
  box-shadow: inset 0 0 0 1px var(--field-line), var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--field-line)), var(--shadow-xs); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid transparent; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--req), 0 0 0 4px color-mix(in srgb, var(--req) 14%, transparent); }
.field input[dir="ltr"] { text-align: start; }
:root[dir="rtl"] .field input[dir="ltr"] { text-align: end; }
.field-error { display: flex; gap: 6px; align-items: baseline; font-size: 0.84rem; font-weight: 500; color: var(--danger); }
.field-error::before { content: "!"; flex-shrink: 0; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: var(--bg); font: 700 0.7rem/1 var(--font-latin-body); transform: translateY(2px); }
.field-error:empty { display: none; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
/* Flex column with margins (not a grid gap), so the empty status box below
   takes no room while it stays rendered. */
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; margin-top: 6px; }
.form-actions > * + * { margin-top: 14px; }
.form-actions > .form-status:empty + * { margin-top: 0; }
.form-actions .btn { --h: 54px; font-size: 1rem; }
.form-note { font-size: 0.84rem; color: var(--muted); text-align: center; line-height: 1.55; }
.form-note i { color: var(--success); margin-inline-end: 6px; }
/* The live region is always rendered (never display:none, visibility:hidden or
   [hidden]), so screen readers already track it when the first message lands.
   Empty, it is a zero-height block; the box look applies only with content. */
.form-status { display: block; font-size: 0.93rem; line-height: 1.55; color: var(--ink); }
.form-status:not(:empty) {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--info-line);
}
.form-status.is-ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
.form-status.is-error { background: var(--err-bg); box-shadow: inset 0 0 0 1px var(--err-line); }
.form-status > i { margin-top: 3px; flex-shrink: 0; color: var(--accent); }
.form-status.is-ok > i { color: var(--success); }
.form-status.is-error > i { color: var(--danger); }
.form-status strong { display: block; color: var(--ink); }
.form-status a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- 14. Rich text (CMS content) ---------- */
.prose { color: var(--text); font-size: var(--fs-md); line-height: 1.75; overflow-wrap: break-word; }
:root:lang(ckb) .prose, :root:lang(ar) .prose { line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { font-size: 1.05rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  position: relative; padding: 16px 22px; padding-inline-start: 26px; border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(1, 181, 255, 0.07), rgba(169, 155, 255, 0.07) 55%, rgba(254, 202, 8, 0.07));
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
}
.prose blockquote::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-lavender), var(--brand-gold)); }
.prose code { padding: 0.15em 0.4em; border-radius: 6px; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.prose pre { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { padding: 0; background: none; box-shadow: none; }
.prose img { border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.prose figure figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--chip-bg); }
.prose hr { margin-block: 2em; }
.prose strong { color: var(--ink); }
/* Compatibility classes carried by stored legal text */
.legal-note {
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--info-line);
  color: var(--ink); font-size: 0.95rem;
}
.legal-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-switch a::after { content: ""; position: absolute; inset: -2px 0; border-radius: inherit; } /* 44px touch target */
.legal-switch a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.legal-switch a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.legal-toc { padding: 16px 20px; border-radius: var(--r-md); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.94rem; }
.legal-toc ol, .legal-toc ul { padding-inline-start: 1.2em; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.highlight, .grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: 0.06em;
}


/* ---------- 15. Breadcrumbs ---------- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--line-strong); color: color-mix(in srgb, var(--muted) 60%, transparent); }
.crumbs a { color: var(--text); border-radius: 4px; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
/* flat markup variant: nav.crumbs > a, span */
.crumbs > a, .crumbs > span { display: inline-flex; margin-inline-end: 8px; }

/* ---------- 16. Empty state ---------- */
.empty-state {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: clamp(32px, 5vw, 56px) 24px; border-radius: var(--r-xl);
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line);
}
.empty-state .icon-tile { width: 56px; height: 56px; font-size: 1.3rem; border-radius: 18px; }
.empty-state h2, .empty-state h3 { font-size: var(--fs-h3); }
.empty-state p { max-width: 48ch; color: var(--text); }

/* ---------- 17. Error page ---------- */
.error-page { padding-block: clamp(56px, 4rem + 6vw, 140px); }
.error-page .container { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 720px; }
.error-code {
  font: 800 clamp(4.5rem, 3rem + 7vw, 8rem)/1 var(--font-latin-display); letter-spacing: -0.05em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr;
}
.error-page h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; text-wrap: balance; }
.error-page .error-text { font-size: var(--fs-lg); max-width: 52ch; text-wrap: pretty; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- 18. Footer ----------
   .footer-top: brand + tagline + socials | Explore | Contact | Founded by
   .footer-bottom: copyright | legal links | language switch + back to top */
.site-footer { position: relative; padding-block: clamp(48px, 5vw, 72px) 32px; margin-top: auto; }
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(1, 181, 255, 0.45), rgba(169, 155, 255, 0.45), rgba(254, 202, 8, 0.45), transparent);
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--aurora-soft); opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer-tagline { font-size: 0.95rem; line-height: 1.65; color: var(--text); max-width: 36ch; text-wrap: pretty; }
.footer-heading {
  margin-bottom: 14px;
  font: 700 0.78rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.footer-list { list-style: none; display: grid; gap: 2px; }
.footer-list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border-radius: 6px;
  color: var(--text); font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}
.footer-list a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text); font-size: 0.95rem; }
.footer-contact i { width: 18px; flex-shrink: 0; text-align: center; color: var(--accent); font-size: 0.92rem; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 36px; }
/* The founder, compact */
.founder-mini { display: flex; gap: 14px; align-items: flex-start; }
.founder-mini-avatar {
  position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; color: #7FE6FF; font-size: 1.3rem;
  background: linear-gradient(150deg, var(--brand-navy-700), var(--brand-navy-900));
  box-shadow: 0 12px 24px -12px rgba(3, 16, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.founder-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-mini-body { display: grid; gap: 6px; min-width: 0; }
.founder-mini-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.founder-mini-name strong { font: 700 1.05rem/1.3 var(--font-display); color: var(--ink); }
.founder-mini-cred, .founder-mini-loc { font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.founder-mini-loc i { color: var(--accent); margin-inline-end: 4px; }
.founder-mini-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.founder-mini-links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.founder-mini-links a:hover { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.founder-mini-links .founder-mini-more { width: auto; padding-inline: 12px; border-radius: var(--r-pill); font: 600 0.84rem/1 var(--font-body); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; }
.footer-copy { font-size: 0.86rem; color: var(--muted); margin-inline-end: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin-inline: -10px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--ink); background: var(--hover-bg); }
.footer-links a[aria-current] { color: var(--ink); }
.footer-end { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.socials { display: flex; gap: 8px; list-style: none; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--text); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.socials a:hover { color: var(--accent); transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.socials a:hover .fa-whatsapp { color: var(--whatsapp); }
.to-top i { font-size: 0.9rem; }
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { gap: 14px 20px; }
  .footer-copy { width: 100%; margin-inline-end: 0; }
}

/* ---------- 18b. WhatsApp ----------
   .btn-whatsapp: the green button (contact, questions, footer)
   .wa-fab: the floating "Chat on WhatsApp" at the foot of every page */
:root { --whatsapp: #25D366; --whatsapp-deep: #128C7E; }
.btn-whatsapp {
  background: linear-gradient(135deg, #2BD572 0%, var(--whatsapp-deep) 100%); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(18, 140, 126, 0.5), 0 8px 22px -10px rgba(18, 140, 126, 0.7);
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(18, 140, 126, 0.5), 0 14px 34px -12px rgba(37, 211, 102, 0.55); }
.btn-whatsapp i { font-size: 1.15em; }
.wa-fab {
  position: fixed; inset-block-end: max(18px, env(safe-area-inset-bottom)); inset-inline-end: max(18px, env(safe-area-inset-right)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px; padding-inline-end: 20px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--glass-highlight), var(--shadow-lg);
  font: 600 0.92rem/1.2 var(--font-body);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-fab-icon {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #2BD572, var(--whatsapp-deep)); color: #fff; font-size: 1.35rem;
  box-shadow: 0 6px 14px -6px rgba(18, 140, 126, 0.7);
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.55), var(--glass-highlight), var(--shadow-lg); }
html.js .wa-fab { animation: kc-fab-in 0.6s var(--ease) 1s both; }
@keyframes kc-fab-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@media (max-width: 720px) {
  .wa-fab { min-height: 52px; font-size: 0.86rem; padding-inline-end: 16px; }
  .wa-fab-icon { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* ---------- 19. Reveal on scroll ----------
   Only when the page script is running AND has checked what is already on
   screen (html.kc-reveal): anything in view when the page loads is never
   hidden, and nothing stays hidden if the script fails to load. */
html.js.kc-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
html.js.kc-reveal .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal-delay-1 { --d: 1; } .reveal-delay-2 { --d: 2; } .reveal-delay-3 { --d: 3; } .reveal-delay-4 { --d: 4; }
.reveal-delay-5 { --d: 5; } .reveal-delay-6 { --d: 6; } .reveal-delay-7 { --d: 7; } .reveal-delay-8 { --d: 8; }

/* ---------- 20. Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mt-6 { margin-top: var(--s-6) !important; }
.mt-8 { margin-top: var(--s-8) !important; }
.nowrap { white-space: nowrap; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1140px) {
  .services-grid, .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav, .header-actions > .btn { display: none; }
  .menu-btn { display: inline-grid; }
  /* The links are gone, so the controls keep to the end of the header themselves. */
  .header-actions { margin-inline-start: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  /* Without script the menu button cannot open anything: show the links as a row. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; row-gap: 4px; }
  html:not(.js) .nav { display: block; order: 3; width: 100%; margin-inline: -14px; overflow-x: auto; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
}
@media (min-width: 961px) {
  .mobile-menu, .menu-scrim { display: none !important; }
}
/* Just above the phone layout the full header is tight (Kurdish labels are
   longer): narrower link padding keeps it inside the container. */
@media (min-width: 961px) and (max-width: 1120px) {
  .header-inner { gap: var(--s-3); }
  .nav a { padding-inline: 10px; }
  .header-actions { margin-inline-start: var(--s-2); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .services-grid, .stack-grid, .past-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid, .stack-grid { gap: 12px; }
  .svc { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; padding: 20px 20px 22px; }
  .svc-top { display: contents; }
  .svc-num { display: none; }
  .svc h3 { grid-column: 2; align-self: center; }
  .svc p { grid-column: 1 / -1; }
  .stack-card { padding: 20px; gap: 14px; }
  .founder-card { grid-template-columns: minmax(0, 1fr); }
  .avatar { width: 84px; height: 84px; border-radius: 24px; font-size: 1.8rem; }
  .avatar::after { border-radius: 28px; }
  .footer-end { width: 100%; }
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .contact-link-go span { display: none; }
  .header-actions { gap: 6px; margin-inline-start: auto; }
}
/* The narrowest phones: three round buttons and the wordmark must share 320px. */
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 0.9rem; gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
  .header-actions { gap: 4px; }
  .header-actions > .icon-btn { width: 40px; height: 40px; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .wa-fab { animation: none; }
  html.js.kc-reveal .reveal, html.js.kc-reveal .reveal:not(.is-in) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card.is-interactive:hover, .card.is-interactive:focus-within, .btn:hover, .socials a:hover { transform: none; }
  .spinner { animation: kc-spin 1.6s linear infinite !important; }
}

/* ---------- 23. Print ---------- */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --ink: #000; --text: #111; --muted: #444; --accent: #000; --line: #ccc; color-scheme: light; }
  html, body { background: #fff !important; color: #111; }
  .skip-link, .site-banner, .site-header, .mobile-menu, .menu-scrim, .site-footer .footer-end, .page-aurora,
  .theme-toggle, .lang-toggle, .lang-menu, .hp-field, .form-card, .to-top, .wa-fab, .marquee, .hero-orbs { display: none !important; }
  .card, .form-card, .contact-links, .founder-card { box-shadow: none !important; border: 1px solid #ccc; backdrop-filter: none !important; background: #fff !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .highlight, .grad-text, .error-code { background: none !important; color: #000 !important; -webkit-text-fill-color: #000; }
  a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; word-break: break-all; }
  .prose a::after { content: " (" attr(href) ")"; }
  /* The printed address flows after the link text, not in the invisible
     touch-target / stretched-link ::after box those links use on screen. */
  a[href^="http"]:not(.btn)::after, .prose a::after { position: static; inset: auto; }
  h1, h2, h3 { break-after: avoid; }
  .card, figure, table, blockquote { break-inside: avoid; }
}

/* ---------- 24. Script-dependent pieces ---------- */
/* A form that can only send with script is replaced by its <noscript> note. */
html:not(.js) [data-contact-form] { display: none; }
/* Sections focused after an in-page jump do not need a ring. */
[tabindex="-1"]:focus:not(:focus-visible), section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
html:not(.js) .form-card .req-note { display: none; }
