/* Tarfa - dark industrial-tech system */

/* IBM Plex Sans Arabic (SIL Open Font License 1.1, see /assets/fonts/OFL.txt). Self-hosted, Arabic + Latin subsets. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070b14;
  --bg-elevated: #0b1220;
  --bg-card: #121a2b;
  --bg-alt: #0e1524;
  --border: #1e2a40;
  --border-strong: #2a3b58;
  --text: #e8eef8;
  --text-muted: #9aa8c0;
  --text-dim: #6e7d96;
  --teal: #3be0c5;
  --blue: #5b8cff;
  --focus: #7ad9ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1120px;
  --narrow: 760px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #6ff0d8; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: #041018;
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-sm { font-size: 0.95rem; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #041018 !important;
  font-weight: 700 !important;
}
.nav-cta:hover { filter: brightness(1.08); color: #041018 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 420px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59, 224, 197, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(91, 140, 255, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  max-width: 18ch;
}

h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.lede,
.section-lede {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #041018;
}
.btn-primary:hover { filter: brightness(1.08); color: #041018; }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-meta li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 26, 43, 0.7);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-panel { display: flex; justify-content: center; }

.panel-card {
  width: min(100%, 360px);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(59, 224, 197, 0.06), transparent 40%),
    var(--bg-card);
  box-shadow: var(--shadow);
}

.panel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.panel-row:last-of-type { border-bottom: none; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.teal { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.dot.blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.dot.muted { background: var(--text-dim); }

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  border: 1px solid rgba(59, 224, 197, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.panel-bar {
  margin-top: 1rem;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.panel-bar-fill {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
}

.panel-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.problem-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.problem-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.stack-figure {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: center;
}
.stack-figure figcaption {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.stack-desktop { margin-inline: auto; }
.stack-mobile { display: none; }

.stack-step {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.stack-step strong { color: var(--text); }
.stack-step.accent { border-color: var(--blue); }
.stack-step.outline {
  border-style: dashed;
  border-color: var(--teal);
}
.stack-arrow {
  color: var(--blue);
  padding: 0.35rem 0;
  font-size: 1.1rem;
}
.stack-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-icon { margin-bottom: 0.85rem; }
.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  flex: 1;
}
.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.card li { margin-bottom: 0.35rem; }

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.step-num {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}
.timeline p {
  margin: 0;
  color: var(--text-muted);
}

.about-callout {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(59, 224, 197, 0.06);
}
.about-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

#about p { color: var(--text-muted); }

/* Contact */
.section-contact {
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(91, 140, 255, 0.12), transparent 45%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-details .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.contact-details a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.contact-details a:hover { color: var(--teal); }

.contact-form {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.25);
}

.form-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.form-note.is-success { color: var(--teal); }

.contact-form .btn { width: 100%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg-elevated);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.footer-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--teal); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .cards,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  h1 { max-width: none; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .site-nav a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }
  .site-nav a:hover { background: var(--bg-card); }
  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .stack-desktop { display: none; }
  .stack-mobile { display: grid; justify-items: stretch; gap: 0; max-width: 320px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.25rem 0; }
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Bilingual wordmark */
.brand-ar {
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--teal);
  padding-left: 0.6rem;
  margin-left: 0.1rem;
  border-left: 1px solid var(--border-strong);
  line-height: 1;
  letter-spacing: 0;
}
[lang="ar"] { font-family: "Noto Kufi Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.92rem;
}

/* Event promo (Ai Everything Abu Dhabi, 6-7 Oct 2026). Hidden after the event via .event-over on <html>. */
.event-over .event-promo,
.announce-dismissed .announce {
  display: none !important;
}

.announce {
  position: relative;
  z-index: 101;
  background:
    linear-gradient(90deg, rgba(59, 224, 197, 0.16), rgba(91, 140, 255, 0.18)),
    var(--bg-elevated);
  border-bottom: 1px solid rgba(59, 224, 197, 0.28);
  color: var(--text);
  font-size: 0.92rem;
}
.announce::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--blue), transparent);
  opacity: 0.8;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  min-height: 44px;
  padding-block: 0.4rem;
  padding-right: 2.5rem;
  position: relative;
}

.announce-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
  margin: 0;
  line-height: 1.35;
}
.announce-text strong { font-weight: 650; }

.announce-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--teal);
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(59, 224, 197, 0.35);
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.45);
  white-space: nowrap;
}

.announce-pulse {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(59, 224, 197, 0.6);
  animation: tarfa-pulse 2s ease-out infinite;
}
@keyframes tarfa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 224, 197, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(59, 224, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 224, 197, 0); }
}

.announce-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #041018;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.announce-link:hover { color: #041018; filter: brightness(1.08); }

.announce-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.announce-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(7, 11, 20, 0.5);
}

/* Event card in the hero */
.hero-panel {
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.event-card {
  position: relative;
  width: min(100%, 380px);
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(59, 224, 197, 0.10), rgba(91, 140, 255, 0.08) 55%, transparent) padding-box,
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--teal), var(--blue)) border-box;
  box-shadow: var(--shadow), 0 0 40px rgba(59, 224, 197, 0.10);
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.event-title {
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.event-facts {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.event-facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.event-facts svg { color: var(--blue); flex: none; }

.event-copy {
  margin: 0 0 1.1rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.event-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.event-link:hover { color: var(--teal); }

/* Arabic summary in the footer */
.footer-ar {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-panel { align-items: stretch; }
  .event-card { width: 100%; max-width: 560px; }
  .panel-card { align-self: center; }
}

@media (max-width: 640px) {
  .announce { font-size: 0.86rem; }
  .announce-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem 0.6rem;
    padding-block: 0.55rem;
  }
  .announce-text { display: contents; }
  .announce-text .announce-pulse { display: none; }
  .announce-text strong { flex-basis: 100%; }
  .announce-meta { font-size: 0.72rem; }
  .announce-link { padding: 0.25rem 0.7rem; font-size: 0.8rem; }
}

/* Founder credibility strip */
.cred-strip {
  border-block: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(59, 224, 197, 0.07), rgba(91, 140, 255, 0.07)),
    var(--bg-elevated);
}
.cred-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem;
}
.cred-lead {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.cred-lead strong { color: var(--teal); font-weight: 700; }
.cred-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.cred-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.cred-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.cred-link {
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

/* Founder section */
.founder-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.founder-head h2 { margin-bottom: 0.2rem; }
.founder-monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--teal), var(--blue)) border-box;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  box-shadow: 0 0 30px rgba(59, 224, 197, 0.12);
}
.founder-role {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}
.founder-lede { max-width: 70ch; }

.founder-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.founder-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.founder-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.founder-card-intro {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.founder-xp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.founder-xp li {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--teal);
}
.founder-xp strong { color: var(--text); font-size: 0.98rem; }
.founder-xp span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.founder-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.founder-list li { margin-bottom: 0.55rem; }
.founder-list li::marker { color: var(--teal); }
.founder-list strong { color: var(--text); font-weight: 650; }
.founder-langs {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.founder-langs .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.founder-more { margin: 1.5rem 0 0; }

@media (max-width: 1000px) {
  .founder-grid { grid-template-columns: 1fr 1fr; }
  .founder-grid .founder-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-monogram { width: 60px; height: 60px; font-size: 1.2rem; border-radius: 16px; }
  .cred-inner { align-items: flex-start; flex-direction: column; }
}

/* Language switcher (English | العربية) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
}
.site-nav .lang-switch a {
  font-size: 0.88rem;
  padding: 0;
}
.site-nav .lang-switch a[aria-current="page"] {
  color: var(--teal);
  font-weight: 700;
  pointer-events: none;
}
.lang-sep { color: var(--text-dim); }
.lang-switch [lang="ar"] { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }

/* Secondary Latin wordmark on the Arabic page */
.brand-sub {
  font-weight: 600;
  font-size: 0.9em;
  color: var(--teal);
  padding-right: 0.6rem;
  margin-right: 0.1rem;
  border-right: 1px solid var(--border-strong);
  line-height: 1;
}

/* Flow diagram rendered as HTML at all widths (Arabic page) */
.stack-figure .stack-always {
  display: grid;
  justify-items: stretch;
  gap: 0;
  max-width: 360px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .site-nav .lang-switch {
    margin-top: 0.35rem;
    justify-content: center;
    padding: 0.55rem 0.85rem;
  }
  .site-nav .lang-switch a { display: inline; padding: 0; }
  .site-nav .lang-switch a:hover { background: none; }
}

/* ================= RTL overrides (Arabic page: <html lang="ar" dir="rtl">) =================
   Flex and grid layouts mirror automatically with dir="rtl"; this block flips the
   physical properties and turns off Latin-only typography (letter-spacing, uppercase, mono). */
html[dir="rtl"] body,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .tag,
html[dir="rtl"] .announce-meta,
html[dir="rtl"] .event-badge,
html[dir="rtl"] .cred-points,
html[dir="rtl"] .contact-details .label,
html[dir="rtl"] .founder-langs .label,
html[dir="rtl"] .btn,
html[dir="rtl"] .form-field input,
html[dir="rtl"] .form-field textarea,
html[dir="rtl"] [lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}
html[dir="rtl"] body { line-height: 1.75; }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .brand,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .tag,
html[dir="rtl"] .announce-meta,
html[dir="rtl"] .event-badge,
html[dir="rtl"] .cred-points,
html[dir="rtl"] .contact-details .label,
html[dir="rtl"] .founder-langs .label {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { line-height: 1.4; }
html[dir="rtl"] h1 { max-width: 20ch; }
html[dir="rtl"] .eyebrow { font-size: 0.9rem; font-weight: 600; }
html[dir="rtl"] .event-badge,
html[dir="rtl"] .contact-details .label,
html[dir="rtl"] .founder-langs .label { font-size: 0.82rem; font-weight: 600; }
html[dir="rtl"] .announce-meta { font-size: 0.85rem; }
html[dir="rtl"] .cred-points { font-size: 0.88rem; }
html[dir="rtl"] .step-num,
html[dir="rtl"] .founder-monogram { font-family: "IBM Plex Sans Arabic", var(--mono); }

html[dir="rtl"] .skip-link { left: auto; right: 1rem; }

html[dir="rtl"] .brand-ar {
  padding-left: 0;
  margin-left: 0;
  border-left: 0;
  padding-right: 0.6rem;
  margin-right: 0.1rem;
  border-right: 1px solid var(--border-strong);
}

html[dir="rtl"] .announce-inner { padding-right: 0; padding-left: 2.5rem; }
html[dir="rtl"] .announce-close { right: auto; left: 0; }

html[dir="rtl"] .card ul,
html[dir="rtl"] .founder-list { padding-left: 0; padding-right: 1.1rem; }

html[dir="rtl"] .about-callout {
  border-left: 0;
  border-right: 3px solid var(--teal);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

html[dir="rtl"] .founder-xp li {
  padding-left: 0;
  border-left: 0;
  padding-right: 0.85rem;
  border-right: 2px solid var(--teal);
}

html[dir="rtl"] .footer-ar { text-align: left; }

/* LTR islands inside the Arabic page: emails, URLs, Latin names */
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
html[dir="rtl"] input[type="email"]::placeholder { text-align: right; }
html[dir="rtl"] .ltr-name { display: inline-block; }
