
  :root {
    --bg: #f2f4f2;
    --paper: #fbfcfb;
    --ink: #17201d;
    --muted: #5b6863;
    --line: #d6ddd9;
    --accent: #2447d6;
    --accent-soft: #e3e8fb;
    --ok: #1f7a55;
    --err: #b33a3a;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #111514; --paper: #171c1a; --ink: #e7ecea; --muted: #97a39e;
      --line: #2a322f; --accent: #8ea3ff; --accent-soft: #1f2748;
      --ok: #6fcf9f; --err: #f08a8a; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #111514; --paper: #171c1a; --ink: #e7ecea; --muted: #97a39e;
    --line: #2a322f; --accent: #8ea3ff; --accent-soft: #1f2748;
    --ok: #6fcf9f; --err: #f08a8a; color-scheme: dark;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  ::selection { background: var(--accent-soft); }

  .wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }
  .label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  h1, h2, h3 { text-wrap: balance; margin: 0; }
  h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
  h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
  p { margin: 0; }

  /* Header */
  header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
  .brand { font-family: var(--serif); font-size: 24px; text-decoration: none; letter-spacing: -0.01em; }
  .brand span { color: var(--accent); }
  nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
  nav a { text-decoration: none; color: var(--muted); }
  nav a:hover { color: var(--ink); }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 15px var(--sans);
    background: var(--ink); color: var(--bg);
    border: none; border-radius: 999px;
    padding: 11px 20px; text-decoration: none; cursor: pointer;
    transition: background 0.15s ease;
  }
  .btn:hover { background: var(--accent); color: #fff; }
  nav .btn { padding: 8px 16px; font-size: 14px; color: var(--bg); }
  nav .btn:hover { color: #fff; }

  /* Hero */
  .hero { padding-block: 72px 80px; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-block: 18px 22px;
  }
  .hero h1 em { font-style: italic; color: var(--accent); }
  .hero .lede { font-size: 19px; color: var(--muted); max-width: 46ch; }
  .hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
  .hero .actions a.plain { font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

  .pipe {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
  }
  .pipe svg { width: 100%; height: auto; display: block; }
  .pipe .caption { display: flex; justify-content: space-between; margin-top: 12px; }
  .pipe .status { font-family: var(--mono); font-size: 12px; color: var(--ok); }
  .pipe .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; animation: blink 2s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.3; } }
  .n-box { fill: var(--bg); stroke: var(--line); }
  .n-box.core { fill: var(--accent-soft); stroke: var(--accent); }
  .n-text { fill: var(--ink); font: 500 13px var(--sans); }
  .n-sub { fill: var(--muted); font: 11px var(--mono); }
  .edge { fill: none; stroke: var(--line); stroke-width: 1.5; }
  .packet { fill: var(--accent); }

  /* Sections */
  section { padding-block: 80px; border-top: 1px solid var(--line); }
  .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; margin-bottom: 44px; align-items: end; }
  .sec-head p { color: var(--muted); max-width: 52ch; }

  /* Audience */
  .who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .who div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
  .who p { color: var(--muted); font-size: 16px; }

  /* Services */
  .svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding-block: 28px; border-top: 1px solid var(--line); }
  .svc:last-child { border-bottom: 1px solid var(--line); }
  .svc .body { display: flex; flex-direction: column; gap: 12px; }
  .svc .body p { color: var(--muted); }
  .svc .eg { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; align-self: flex-start; }
  .svc .eg b { color: var(--accent); font-weight: 500; }

  /* Process */
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
  .steps li { list-style: none; border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
  .steps li::before { counter-increment: step; content: "Step " counter(step); font-family: var(--mono); font-size: 12px; color: var(--accent); }
  .steps p { color: var(--muted); font-size: 16px; }
  ol.steps { padding: 0; margin: 0; }

  /* Story */
  .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
  .story .text { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
  .story .text p.big { font-family: var(--serif); font-size: 24px; line-height: 1.4; }
  .story .text p { color: var(--muted); }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
  .facts div { border-left: 2px solid var(--accent); padding-left: 14px; }
  .facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .facts span { font-size: 14px; color: var(--muted); }
  .vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .vm div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
  .vm p { font-family: var(--serif); font-size: 21px; line-height: 1.45; }

  /* Contact */
  .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
  .contact .intro { display: flex; flex-direction: column; gap: 16px; }
  .contact .intro p { color: var(--muted); }
  .contact .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 8px; }
  form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
  .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label { font-size: 14px; font-weight: 500; }
  .field label small { font-weight: 400; color: var(--muted); }
  input[type="text"], input[type="email"], textarea {
    font: 16px var(--sans); color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 11px 13px; width: 100%;
  }
  input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
  textarea { min-height: 130px; resize: vertical; }
  .drop {
    border: 1.5px dashed var(--line); border-radius: 10px; padding: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: var(--bg);
  }
  .drop.over { border-color: var(--accent); background: var(--accent-soft); }
  .drop .fname { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
  .drop label.pick { font: 500 14px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .err-text { font-size: 13px; color: var(--err); min-height: 0; }
  .form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .status-msg { font-size: 14px; }
  .status-msg.ok { color: var(--ok); }
  .status-msg.err { color: var(--err); }

  footer.site { border-top: 1px solid var(--line); padding-block: 28px; }
  footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

  @media (max-width: 820px) {
    .hero .wrap, .sec-head, .svc, .story, .contact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .who, .steps { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vm { grid-template-columns: minmax(0, 1fr); }
    nav a:not(.btn) { display: none; }
    .hero { padding-block: 48px 56px; }
    section { padding-block: 56px; }
  }
  @media (max-width: 480px) {
    .row { grid-template-columns: minmax(0, 1fr); }
    .facts strong { font-size: 24px; }
    form { padding: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .packet { display: none; }
    .pipe .status::before { animation: none; }
  }

  /* Multi-page additions */
  nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
  .nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }

  .page-hero { padding-block: 64px 56px; }
  .page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
  .page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
  .page-hero h1 em { font-style: italic; color: var(--accent); }
  .page-hero .lede { font-size: 19px; color: var(--muted); max-width: 56ch; }

  .more { font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
  .more:hover { text-decoration: underline; text-underline-offset: 4px; }
  .sec-head .side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .cards a { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s ease, transform 0.15s ease; }
  .cards a:hover { border-color: var(--accent); transform: translateY(-2px); }
  .cards p { color: var(--muted); font-size: 15px; }
  .cards .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }

  .cta-band { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .cta-band h2 { color: var(--bg); max-width: 20ch; }
  .cta-band p { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); margin-top: 10px; }
  .cta-band .btn { background: var(--bg); color: var(--ink); }
  .cta-band .btn:hover { background: var(--accent); color: #fff; }

  .svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding-block: 44px; border-top: 1px solid var(--line); }
  .svc-detail:first-child { border-top: none; padding-top: 0; }
  .svc-detail .left { display: flex; flex-direction: column; gap: 12px; }
  .svc-detail .left p { color: var(--muted); }
  .svc-detail .right { display: flex; flex-direction: column; gap: 18px; }
  .svc-detail ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .svc-detail li { padding-left: 22px; position: relative; font-size: 16px; }
  .svc-detail li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--accent); }
  .fit { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
  .fit b { font-weight: 600; }

  .steps-big { display: flex; flex-direction: column; margin: 0; padding: 0; counter-reset: s; }
  .steps-big li { list-style: none; display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 32px; border-top: 1px solid var(--line); }
  .steps-big li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
  .steps-big p { color: var(--muted); }
  .steps-big .get { font-size: 15px; }
  .steps-big .get span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

  .faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 18px; font-weight: 500; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { color: var(--muted); padding-bottom: 20px; max-width: 64ch; }

  .founder { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
  .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; flex-shrink: 0; }
  .founder strong { display: block; }
  .founder span { font-size: 14px; color: var(--muted); }
  .values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .values div { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
  .values p { color: var(--muted); font-size: 16px; }

  .next { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: n; }
  .next li { display: flex; gap: 12px; font-size: 16px; }
  .next li::before { counter-increment: n; content: counter(n); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 500 13px var(--mono); display: grid; place-items: center; }

  .legal { max-width: 68ch; display: flex; flex-direction: column; gap: 22px; }
  .legal h2 { font-size: 24px; }
  .legal p { color: var(--muted); }
  .todo { background: var(--accent-soft); color: var(--ink); border: 1px dashed var(--accent); border-radius: 6px; padding: 1px 6px; font-family: var(--mono); font-size: 14px; }
  .notice { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0; padding: 16px 18px; font-size: 15px; }

  footer.site { padding-block: 48px 28px; }
  footer.site .grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  footer.site .col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
  footer.site .col a { text-decoration: none; color: var(--muted); }
  footer.site .col a:hover { color: var(--ink); }
  footer.site .col p { color: var(--muted); max-width: 30ch; }
  footer.site .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

  @media (max-width: 820px) {
    .nav-toggle { display: inline-block; }
    header.site nav { display: none; }
    header.site.open nav { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px 24px 24px; }
    header.site.open nav a:not(.btn) { display: block; font-size: 18px; }
    .svc-detail, .steps-big li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .svc-detail ul, .values { grid-template-columns: minmax(0, 1fr); }
    footer.site .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { padding: 28px; }
    .page-hero { padding-block: 44px 40px; }
  }

  /* Honeypot */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Language switcher */
  .langs { display: flex; gap: 2px; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
  .langs a { text-decoration: none; color: var(--muted); padding: 4px 9px; border-radius: 999px; }
  .langs a:hover { color: var(--ink); }
  .langs a[aria-current="true"] { background: var(--ink); color: var(--bg); }
  header.site .end { display: flex; align-items: center; gap: 12px; }
  .pipe svg { direction: ltr; }

  /* Arabic / RTL */
  [dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] .btn, [dir="rtl"] .nav-toggle { font-family: 'IBM Plex Sans Arabic', var(--sans); }
  [dir="rtl"] h2, [dir="rtl"] .hero h1, [dir="rtl"] .page-hero h1, [dir="rtl"] .brand, [dir="rtl"] .story .text p.big, [dir="rtl"] .vm p, [dir="rtl"] .facts strong, [dir="rtl"] .steps-big li::before { font-family: 'Noto Naskh Arabic', var(--serif); }
  [dir="rtl"] .hero h1, [dir="rtl"] .page-hero h1 { line-height: 1.35; letter-spacing: 0; }
  [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.4; }
  [dir="rtl"] .hero h1 em, [dir="rtl"] .page-hero h1 em { font-style: normal; }
  [dir="rtl"] .label { text-transform: none; letter-spacing: 0; font-family: 'IBM Plex Sans Arabic', var(--sans); font-size: 13px; }
  [dir="rtl"] .steps-big .get span { text-transform: none; letter-spacing: 0; font-family: 'IBM Plex Sans Arabic', var(--sans); }
  [dir="rtl"] .svc-detail li { padding-left: 0; padding-right: 22px; }
  [dir="rtl"] .svc-detail li::before { left: auto; right: 0; }
  [dir="rtl"] .facts div { border-left: none; padding-left: 0; border-right: 2px solid var(--accent); padding-right: 14px; }
  [dir="rtl"] .notice { border-left: 1px solid var(--line); border-right: 3px solid var(--accent); }
  [dir="rtl"] .svc .eg, [dir="rtl"] .svc-detail .eg { font-family: 'IBM Plex Sans Arabic', var(--sans); }
  [dir="rtl"] .steps li::before { font-family: 'IBM Plex Sans Arabic', var(--sans); }
  [dir="rtl"] .langs { direction: ltr; }
  [dir="rtl"] .cards a:hover { transform: translateY(-2px); }
  [dir="rtl"] .hp { left: auto; right: -9999px; }
  @media (max-width: 820px) {
    header.site .langs { font-size: 11px; }
  }
  nav a.btn[aria-current="page"] { color: var(--bg); text-decoration: none; background: var(--accent); }
  [dir="rtl"] .n-text, [dir="rtl"] .n-sub, [dir="rtl"] .pipe .status { font-family: 'IBM Plex Sans Arabic', var(--sans); }
  /* Whole attachment box opens the file picker */
  .drop { position: relative; cursor: pointer; }
  .drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .drop.has-file { border-style: solid; border-color: var(--accent); }
  .drop.has-file .fname { color: var(--ink); font-weight: 500; }
  .legal .mail { color: var(--ink); font-family: var(--mono); font-size: 15px; user-select: all; overflow-wrap: anywhere; }
  [dir="rtl"] .legal { direction: ltr; text-align: left; }
  [dir="rtl"] .contact .meta, [dir="rtl"] footer.site .bottom { font-family: 'IBM Plex Sans Arabic', var(--sans); letter-spacing: 0; }
