/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-0: #060b14;
  --bg-1: #0a1120;
  --bg-2: #0f1a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(140, 190, 255, 0.14);
  --border-strong: rgba(120, 220, 255, 0.35);

  --accent: #35e0ff;
  --accent-2: #7c5cff;
  --accent-3: #35ff9c;
  --accent-glow: rgba(53, 224, 255, 0.45);

  --text-0: #eaf2ff;
  --text-1: #b7c4dc;
  --text-2: #7d8bab;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --transition: 220ms cubic-bezier(0.2, 0.6, 0.3, 1);
}

/* ============================================================
   RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  font-weight: 600;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent); color: #00131a; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

/* ============================================================
   BACKGROUND FX — animated node network + grid
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% -10%, rgba(53, 224, 255, 0.10), transparent 45%),
              radial-gradient(ellipse at 90% 10%, rgba(124, 92, 255, 0.10), transparent 40%),
              var(--bg-0);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 190, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 190, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; padding: 96px 0; }
section.tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--text-2); font-size: 1.02rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-0);
}
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 18px var(--accent-glow);
}
.brand .mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-0); background: var(--surface); }
.nav-links a.active { color: var(--bg-0); background: var(--accent); font-weight: 600; }

.nav-cta {
  padding: 9px 18px !important;
  border: 1px solid var(--border-strong);
  border-radius: 999px !important;
  color: var(--text-0) !important;
  background: transparent !important;
}
.nav-cta:hover { background: var(--surface) !important; border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-0);
  font-size: 1.4rem;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 22px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { text-align: center; padding: 12px 16px; }
  .nav-toggle { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 6px 26px var(--accent-glow); transform: translateY(-2px); }

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

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 120px 0 90px;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero-copy { flex: 1 1 540px; min-width: 0; }

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 560px;
  margin-bottom: 36px;
  font-size: 1.08rem;
  color: var(--text-1);
}

.hero .btn-row { margin-bottom: 50px; }

.hero-portrait {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.hero-portrait-ring {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 70px var(--accent-glow);
}
.hero-portrait-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  border: 5px solid var(--bg-0);
}
@media (max-width: 960px) {
  .hero-grid { flex-direction: column-reverse; text-align: center; gap: 40px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .hero .eyebrow { justify-content: center; }
  .hero-portrait-ring { width: 220px; height: 220px; }
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-copy .keyword-strip { justify-content: flex-start; }
@media (max-width: 960px) { .hero-copy .keyword-strip { justify-content: center; } }
.keyword-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
}

/* ============================================================
   CARDS — generic
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(53,224,255,0.16), rgba(124,92,255,0.16));
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* grid helpers */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   HOME — highlight cards
   ============================================================ */
.highlight-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.highlight-card p { font-size: 0.92rem; color: var(--text-2); }
.card-link { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 0.88rem; color: var(--accent); }
.card-link:hover { text-decoration: underline; }

/* credibility strip */
.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.credibility-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  background: var(--bg-1);
}
.credibility-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(53,224,255,0.16), rgba(124,92,255,0.16));
  border: 1px solid var(--border);
  color: var(--accent);
}
.credibility-icon svg { width: 20px; height: 20px; }
.credibility-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.25;
}
.credibility-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) { .credibility-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .credibility-strip { grid-template-columns: 1fr; } }

/* featured projects band */
.featured-band { background: var(--bg-1); }
.featured-project-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text-0); }
.featured-project-card p { font-size: 0.9rem; color: var(--text-2); }

/* video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* testimonials */
.testimonial-card p { font-size: 0.95rem; color: var(--text-1); font-style: italic; margin-bottom: 14px; }
.testimonial-author { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text-0); }
.faq-item p { font-size: 0.92rem; color: var(--text-2); }
.faq-item a { color: var(--accent); }
.faq-item a:hover { text-decoration: underline; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 46px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text-0); }
.filter-btn.active { background: var(--accent); color: #05131c; border-color: var(--accent); font-weight: 700; }

.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media .placeholder-icon { color: var(--border-strong); width: 46px; height: 46px; opacity: 0.6; }
.media-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.media-fallback svg { width: 46px; height: 46px; color: var(--border-strong); opacity: 0.6; }
.project-tag-year {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(6,11,20,0.7); border: 1px solid var(--border);
  color: var(--accent);
}
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-category {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-3);
}
.project-body h3 { font-size: 1.12rem; }
.project-body p { font-size: 0.9rem; color: var(--text-2); flex: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 4px 10px; border-radius: 6px;
  background: var(--bg-2); color: var(--text-1); border: 1px solid var(--border);
}
.project-links { display: flex; gap: 16px; margin-top: 4px; }
.project-links a {
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
}
.project-links a:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ============================================================
   COURSES PAGE
   ============================================================ */
.course-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.course-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden;
}
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-meta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-pill {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 4px 10px; border-radius: 6px;
  color: var(--accent); background: rgba(53,224,255,0.08); border: 1px solid var(--border);
}
.course-body h3 { font-size: 1.1rem; }
.course-body p { font-size: 0.9rem; color: var(--text-2); flex: 1; }
.course-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price-tag { font-family: var(--font-mono); font-weight: 700; color: var(--text-0); }

/* ============================================================
   SESSIONS PAGE
   ============================================================ */
.session-type-card { text-align: center; }
.session-type-card .icon-badge { margin: 0 auto 18px; }
.session-type-card h3 { margin-bottom: 8px; }
.session-type-card p { font-size: 0.9rem; color: var(--text-2); }

.session-list { display: flex; flex-direction: column; gap: 16px; }
.session-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 22px 26px;
}
.session-info h3 { font-size: 1.02rem; margin-bottom: 8px; }
.session-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2);
}
.session-meta span { display: inline-flex; align-items: center; gap: 6px; }
.session-meta .dot { color: var(--accent); }

.cta-banner {
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(53,224,255,0.08), rgba(124,92,255,0.08));
}
.cta-banner h2 { margin-bottom: 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: var(--text-2); max-width: 520px; margin: 0 auto 26px; }
.cta-banner .btn-row { justify-content: center; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about-bio p { margin-bottom: 16px; font-size: 0.98rem; color: var(--text-1); }
.about-bio .social-row { margin-top: 8px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 40px; height: 40px; }
.contact-row h4 { font-size: 0.92rem; color: var(--text-0); margin-bottom: 3px; }
.contact-row p, .contact-row a { font-size: 0.88rem; color: var(--text-2); }
.contact-row a:hover { color: var(--accent); }

.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-1); transition: var(--transition);
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 0.8rem; color: var(--text-2);
  margin-bottom: 7px; font-family: var(--font-mono);
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53,224,255,0.12);
}
.form-note { font-size: 0.78rem; color: var(--text-2); }
.form-note-success { color: var(--accent-3); }
.form-note-error { color: #ff6b6b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 34px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-inner p { font-size: 0.82rem; color: var(--text-2); }
.footer-social { display: flex; gap: 10px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* page hero (non-home pages) */
.page-hero { padding: 80px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* ============================================================
   NAV RIGHT WRAPPER + LANGUAGE TOGGLE
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.lang-btn:hover { color: var(--text-0); }
.lang-btn.active { background: var(--accent); color: var(--bg-0); font-weight: 600; }

@media (max-width: 860px) {
  .nav-right { gap: 10px; }
}

/* ============================================================
   RTL (ARABIC) SUPPORT
   ============================================================ */
/* Redefining the font tokens themselves (rather than listing selectors) means
   every element on the page — headings, body copy, mono-styled labels/chips,
   buttons, form fields — automatically picks up the same Arabic-appropriate
   font under RTL, with no risk of missing a selector. */
html[dir="rtl"] {
  --font-display: "Cairo", "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Cairo", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Cairo", "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

/* Tag pills hold real Latin-script tool names (Python, ROS2, etc.) even on
   Arabic pages, so keep them left-to-right for correct rendering. Keyword
   chips are NOT included here — those hold translated Arabic concept words
   (e.g. "التعلم العميق") and should read normally in RTL. */
html[dir="rtl"] .tag-pill {
  direction: ltr;
  unicode-bidi: embed;
}
html[dir="rtl"] .project-tag-year {
  right: auto;
  left: 12px;
}
