
:root {
    --brand-orange: #E85D1A;
    --brand-orange-light: #F07940;
    --brand-dark: #0d0b0a;
    --brand-dark2: #1a1512;
    --brand-dark3: #231f1b;
    --brand-cream: #f5efe8;
    --brand-cream2: #ede4d8;
    --text-light: #e8e0d6;
    --text-muted: #9a8f83;
    --section-pad: 100px 0;
    --radius: 4px;
    --font-ar: 'Tajawal', 'Noto Naskh Arabic', serif;
    --font-en: 'DM Sans', sans-serif;
    --font-display-en: 'Playfair Display', serif;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--brand-dark);
    color: var(--text-light);
    font-family: var(--font-ar);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
  }
  body.en { font-family: var(--font-en); direction: ltr; }
  body.en .ar { display: none !important; }
  body.en .en { display: block !important; }
  body:not(.en) .ar { display: block !important; }
  body:not(.en) .en { display: none !important; }
  .en-inline { display: none; }
  body.en .en-inline { display: inline !important; }
  body.en .ar-inline { display: none !important; }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--brand-dark); }
  ::-webkit-scrollbar-thumb { background: var(--brand-orange); border-radius: 2px; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 60px;
    background: linear-gradient(to bottom, rgba(13,11,10,0.95), transparent);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
  }
  nav.scrolled { background: rgba(13,11,10,0.97); padding: 14px 60px; }
  .nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
  }
  .logo-mark {
    width: 46px; height: 46px;
    background: var(--brand-orange);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: white;
    letter-spacing: 1px;
    flex-shrink: 0;
  }
  .logo-text { font-size: 13px; font-weight: 500; color: var(--text-light); letter-spacing: 2px; text-transform: uppercase; }
  .nav-links { display: flex; align-items: center; gap: 36px; }
  .nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 13px;
    font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase;
    transition: color 0.2s; position: relative;
  }
  .nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:1px; background:var(--brand-orange); transform:scaleX(0); transition:transform 0.3s; }
  body.en .nav-links a::after { left:0; right:0; }
  .nav-links a:hover { color: white; }
  .nav-links a:hover::after { transform:scaleX(1); }
  .lang-btn {
    background: transparent; border: 1px solid var(--brand-orange);
    color: var(--brand-orange); padding: 8px 20px; border-radius: 2px;
    cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 1px;
    transition: all 0.2s; font-family: inherit;
  }
  .lang-btn:hover { background: var(--brand-orange); color: white; }

  /* HERO */
  #hero {
    min-height: 100vh; position: relative; display: flex; align-items: flex-start;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(232,93,26,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 10% 80%, rgba(232,93,26,0.08) 0%, transparent 50%),
                var(--brand-dark);
  }
  .hero-film-strip {
    position: absolute; top: 0; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--brand-dark3) 0, var(--brand-dark3) 18px, var(--brand-orange) 18px, var(--brand-orange) 22px);
    opacity: 0.6;
  }
  .hero-film-strip-bottom {
    position: absolute; bottom: 0; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--brand-dark3) 0, var(--brand-dark3) 18px, var(--brand-orange) 18px, var(--brand-orange) 22px);
    opacity: 0.6;
  }
  .hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image: linear-gradient(rgba(232,93,26,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(232,93,26,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .hero-content { position: relative; z-index: 1; padding: 120px 60px 80px; max-width: 1200px; margin: 0 auto; width: 100%; }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(232,93,26,0.12); border: 1px solid rgba(232,93,26,0.3);
    padding: 8px 18px; border-radius: 2px; margin-bottom: 32px;
    font-size: 12px; letter-spacing: 2px; color: var(--brand-orange-light); text-transform: uppercase;
  }
  .hero-tag::before { content:''; width:6px; height:6px; background:var(--brand-orange); border-radius:50%; }
  .hero-title {
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 700; line-height: 1.05;
    color: white; margin-bottom: 28px;
  }
  body.en .hero-title { font-family: var(--font-display-en); font-style: italic; }
  .hero-title span { color: var(--brand-orange); display: block; }
  .hero-sub {
    font-size: 17px; color: var(--text-muted); max-width: 560px;
    margin-bottom: 48px; line-height: 1.8;
  }
  body.en .hero-sub { font-weight: 300; letter-spacing: 0.3px; }
  .hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--brand-orange); color: white;
    padding: 14px 32px; border-radius: 2px; text-decoration: none;
    font-size: 14px; font-weight: 500; letter-spacing: 1px;
    transition: all 0.3s; border: none; cursor: pointer;
  }
  .btn-primary:hover { background: var(--brand-orange-light); transform: translateY(-2px); }
  .btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: white;
    padding: 14px 32px; border-radius: 2px; text-decoration: none;
    font-size: 14px; font-weight: 400; border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
  }
  .btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.05); }
  .hero-stats {
    display: flex; gap: 48px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.08);
    align-self: flex-start;
  }
  .stat-item { text-align: center; min-width: 72px; }
  .stat-num { font-size: 36px; font-weight: 700; color: var(--brand-orange); display: block; line-height: 1; margin-bottom: 6px; }
  .stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; }

  /* SECTIONS */
  section { padding: var(--section-pad); }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
  .section-header { margin-bottom: 64px; }
  .section-tag {
    display: inline-block; font-size: 11px; letter-spacing: 3px;
    color: var(--brand-orange); text-transform: uppercase; margin-bottom: 16px;
  }
  .section-title {
    font-size: clamp(32px, 4vw, 52px); font-weight: 700; color: white;
    line-height: 1.1;
  }
  body.en .section-title { font-family: var(--font-display-en); }
  .section-line {
    width: 48px; height: 3px; background: var(--brand-orange);
    margin-top: 20px; margin-bottom: 20px;
  }
  body.en .section-line { margin-left: 0; }
  .section-desc { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.9; }

  /* STRATEGY */
  #strategy { background: var(--brand-dark2); }
  .strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  body.en .strategy-grid { direction: ltr; }
  .strategy-pillars { display: flex; flex-direction: column; gap: 28px; }
  .pillar {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 28px; background: var(--brand-dark3);
    border-radius: var(--radius); border-right: 3px solid var(--brand-orange);
    transition: all 0.3s;
  }
  body.en .pillar { border-right: none; border-left: 3px solid var(--brand-orange); }
  .pillar:hover { background: rgba(232,93,26,0.06); transform: translateX(-4px); }
  body.en .pillar:hover { transform: translateX(4px); }
  .pillar-icon {
    width: 48px; height: 48px; background: rgba(232,93,26,0.12);
    border-radius: 2px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 22px;
  }
  .pillar-title { font-size: 17px; font-weight: 600; color: white; margin-bottom: 8px; }
  .pillar-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
  .strategy-image {
    position: relative; border-radius: 4px; overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--brand-dark3);
    display: flex; align-items: center; justify-content: center;
  }
  .strategy-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
  .strategy-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,11,10,0.8), transparent 60%);
  }
  .strategy-badge {
    position: absolute; bottom: 24px; left: 24px; z-index: 1;
    background: var(--brand-orange); color: white; padding: 12px 20px; border-radius: 2px;
  }
  body.en .strategy-badge { left: auto; right: 24px; }
  .strategy-badge span { font-size: 28px; font-weight: 700; display: block; }
  .strategy-badge small { font-size: 11px; letter-spacing: 1px; opacity: 0.9; }

  /* SERVICES */
  #services { background: var(--brand-dark); }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .service-card {
    background: var(--brand-dark2); padding: 48px 40px;
    position: relative; overflow: hidden; transition: all 0.4s;
    cursor: default;
  }
  .service-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-orange); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s;
  }
  body.en .service-card::before { transform-origin: left; }
  .service-card:hover { background: var(--brand-dark3); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-num { font-size: 64px; font-weight: 700; color: rgba(232,93,26,0.1); line-height: 1; margin-bottom: 20px; font-family: var(--font-display-en); }
  .service-icon-wrap {
    width: 56px; height: 56px; background: rgba(232,93,26,0.1); border-radius: 2px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 26px;
  }
  .service-name { font-size: 20px; font-weight: 600; color: white; margin-bottom: 12px; }
  .service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

  /* PROCESS */
  #process { background: var(--brand-dark3); }
  .process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
  .process-steps::before {
    content: ''; position: absolute; top: 36px; left: 5%; right: 5%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
    z-index: 0;
  }
  .process-row { display: contents }
  
  .step { padding: 0 24px; text-align: center; position: relative; z-index: 1; }
  .step-num {
    width: 72px; height: 72px; border-radius: 50%;
    border: 2px solid var(--brand-orange); background: var(--brand-dark3);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: var(--brand-orange);
    margin: 0 auto 28px; font-family: var(--font-display-en);
  }
  .step-title { font-size: 17px; font-weight: 600; color: white; margin-bottom: 12px; }
  .step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

  /* PROJECTS */
  #projects { background: var(--brand-dark); }
  .projects-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
  .project-card {
    position: relative; overflow: hidden; aspect-ratio: 3/4;
    background: var(--brand-dark2); cursor: pointer;
  }
  /*.project-card:first-child { grid-column: span 2; aspect-ratio: 21/9; }*/
  .project-poster {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.5) saturate(0.7);
    transition: all 0.5s;
  }
  .project-card:hover .project-poster { filter: brightness(0.7) saturate(1); transform: scale(1.03); }
  .project-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
    background: linear-gradient(to top, rgba(13,11,10,0.95), transparent);
  }
  .project-genre {
    display: inline-block; background: var(--brand-orange); color: white;
    padding: 4px 12px; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 12px;
    text-transform: uppercase;
  }
  .project-name { font-size: 22px; font-weight: 700; color: white; margin-bottom: 6px; }
  .project-sub { font-size: 13px; color: var(--text-muted); }

  /* AWARDS */
  #awards { background: var(--brand-dark2); }
  .awards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .award-card {
    background: var(--brand-dark3); border: 1px solid rgba(232,93,26,0.15);
    padding: 32px; border-radius: var(--radius); text-align: center; transition: all 0.3s;
  }
  .award-card:hover { border-color: var(--brand-orange); transform: translateY(-4px); }
  .award-laurel { font-size: 36px; margin-bottom: 16px; display: block; filter: sepia(100%) saturate(200%) hue-rotate(-15deg); }
  .award-type {
    font-size: 11px; letter-spacing: 2px; color: var(--brand-orange);
    text-transform: uppercase; margin-bottom: 10px;
  }
  .award-name { font-size: 16px; font-weight: 600; color: white; margin-bottom: 6px; }
  .award-year { font-size: 13px; color: var(--text-muted); }

  /* TEAM */
  #team { background: var(--brand-dark); }
  .team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
  .team-card {
    background: var(--brand-dark2); border-radius: var(--radius); overflow: hidden;
    transition: all 0.3s;
  }
  .team-card:hover { transform: translateY(-6px); }
  .team-photo {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    filter: grayscale(80%); transition: filter 0.3s;
  }
  .team-card:hover .team-photo { filter: grayscale(20%); }
  .team-info { padding: 20px; border-top: 2px solid var(--brand-orange); }
  .team-name { font-size: 15px; font-weight: 600; color: white; margin-bottom: 4px; }
  .team-role { font-size: 12px; color: var(--brand-orange); letter-spacing: 1px; text-transform: uppercase; }

  /* CLIENTS */
  #clients { background: var(--brand-dark3); }
  .clients-intro { font-size: 16px; color: var(--text-muted); max-width: 600px; margin-bottom: 56px; line-height: 1.9; }
  .clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .client-item {
    background: var(--brand-dark2); padding: 28px 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    letter-spacing: 1px; text-align: center; transition: all 0.3s;
    min-height: 80px;
  }
  .client-item:hover { background: rgba(232,93,26,0.08); color: white; }

  /* VISION */
  #vision {
    background: var(--brand-dark);
    position: relative; overflow: hidden;
  }
  .vision-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232,93,26,0.1) 0%, transparent 60%);
  }
  .vision-content { position: relative; z-index: 1; }
  .vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .vision-block h3 {
    font-size: 28px; font-weight: 700; color: white; margin-bottom: 24px;
    display: flex; align-items: center; gap: 14px;
  }
  body.en .vision-block h3 { font-family: var(--font-display-en); }
  .vision-icon {
    width: 48px; height: 48px; background: var(--brand-orange);
    border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 22px;
  }
  .vision-list { list-style: none; padding: 0; }
  .vision-list li {
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 15px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 12px;
  }
  .vision-list li::before { content: '◆'; color: var(--brand-orange); font-size: 8px; margin-top: 7px; flex-shrink: 0; }

  /* WHY US */
  #why { background: var(--brand-dark2); }
  .why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .why-card {
    padding: 40px 32px; background: var(--brand-dark);
    position: relative; overflow: hidden; border-radius: var(--radius);
  }
  .why-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-orange);
  }
  .why-icon { font-size: 40px; margin-bottom: 20px; display: block; }
  .why-title { font-size: 20px; font-weight: 600; color: white; margin-bottom: 14px; }
  .why-desc { font-size: 14px; color: var(--text-muted); line-height: 1.9; }

  /* IMPACT */
  #impact { background: var(--brand-dark3); }
  .impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
  .impact-card {
    padding: 36px 28px; background: var(--brand-dark2); border-radius: var(--radius);
    text-align: center; border: 1px solid rgba(232,93,26,0.1); transition: all 0.3s;
  }
  .impact-card:hover { border-color: rgba(232,93,26,0.4); }
  .impact-title { font-size: 15px; font-weight: 600; color: var(--brand-orange); margin-bottom: 12px; }
  .impact-desc { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

  /* CONTACT */
  #contact {
    background: var(--brand-dark);
    position: relative; overflow: hidden;
  }
  .contact-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(232,93,26,0.08) 0%, transparent 55%);
  }
  .contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .contact-cta-title { font-size: clamp(36px, 4vw, 56px); font-weight: 700; color: white; line-height: 1.1; margin-bottom: 24px; }
  body.en .contact-cta-title { font-family: var(--font-display-en); }
  .contact-cta-title span { color: var(--brand-orange); }
  .contact-details { display: flex; flex-direction: column; gap: 20px; }
  .contact-row {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; background: var(--brand-dark2); border-radius: var(--radius);
    border-right: 3px solid var(--brand-orange); text-decoration: none;
    color: white; transition: all 0.3s;
  }
  body.en .contact-row { border-right: none; border-left: 3px solid var(--brand-orange); }
  .contact-row:hover { background: var(--brand-dark3); transform: translateX(-4px); }
  body.en .contact-row:hover { transform: translateX(4px); }
  .contact-icon {
    width: 44px; height: 44px; background: rgba(232,93,26,0.12); border-radius: 2px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
  }
  .contact-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
  .contact-value { font-size: 15px; font-weight: 500; }

  /* FOOTER */
  footer {
    background: var(--brand-dark2); padding: 40px 60px;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(232,93,26,0.15);
  }
  .footer-logo { display: flex; align-items: center; gap: 12px; }
  .footer-copy { font-size: 13px; color: var(--text-muted); }
  .footer-updated { font-size: 12px; color: rgba(155,143,131,0.5); }

  /* TIMELINE */
  #story { background: var(--brand-dark2); }
  .timeline { position: relative; padding: 0; }
  .timeline::before {
    content: ''; position: absolute; top: 40px; bottom: 40px;
    left: 50%; transform: translateX(-50%); width: 1px;
    background: linear-gradient(to bottom, transparent, var(--brand-orange) 20%, var(--brand-orange) 80%, transparent);
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    column-gap: 40px;
    align-items: center;
    margin-bottom: 64px;
  }
  .timeline-year {
    grid-column: 2;
    width: 80px; height: 80px; border-radius: 50%;
    border: 2px solid var(--brand-orange); background: var(--brand-dark2);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: var(--brand-orange);
    flex-shrink: 0; font-family: var(--font-display-en);
    position: relative; z-index: 1;
  }
  /* RTL default: col 1 = right side, col 3 = left side */
  .timeline-item:nth-child(odd) .timeline-content  { grid-column: 1; grid-row: 1; text-align: start; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 3; grid-row: 1; text-align: start; }
  /* LTR (EN): col 1 = left side, col 3 = right side — flip so it still alternates nicely */
  body.en .timeline-item:nth-child(odd) .timeline-content  { grid-column: 3; }
  body.en .timeline-item:nth-child(even) .timeline-content { grid-column: 1; }
  .timeline-content {
    background: var(--brand-dark3); padding: 32px;
    border-radius: var(--radius); border-top: 3px solid var(--brand-orange);
  }
  .timeline-phase { font-size: 11px; letter-spacing: 2px; color: var(--brand-orange); text-transform: uppercase; margin-bottom: 10px; }
  .timeline-text { font-size: 14px; color: var(--text-muted); line-height: 1.9; }

  /* NAV TOGGLE */
  .nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .nav-toggle {
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    padding: 4px; gap: 5px; width: 36px; height: 36px; flex-shrink: 0;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-light); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* FOUNDER GRID */
  .founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    nav { padding: 20px 30px; }
    .container { padding: 0 30px; }
    .strategy-grid, .vision-grid, .contact-inner, .founder-grid { grid-template-columns: 1fr; gap: 32px; }
    .services-grid, .process-steps { grid-template-columns: repeat(2,1fr); }
    .team-grid { grid-template-columns: repeat(2,1fr); }
    .clients-grid { grid-template-columns: repeat(3,1fr); }
    .awards-grid { grid-template-columns: repeat(2,1fr); }
    .impact-grid { grid-template-columns: repeat(2,1fr); }
    .hero-stats { margin-top: 48px; }
    .hero-content { padding: 100px 30px 60px; }
    /* On tablet, break the display:contents so each row becomes its own 2-col grid */
    .process-steps { display: block; }
    .process-steps::before { display: none; }
    .process-row {
      display: grid; grid-template-columns: 1fr 1fr;
      position: relative; gap: 0;
    }
    .process-row + .process-row { margin-top: 48px; }
    .process-row::before {
      content: ''; position: absolute; top: 36px; left: 5%; right: 5%; height: 1px;
      background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
      z-index: 0;
    }
  }
  
  @media (max-width: 640px) {
    :root { --section-pad: 60px 0; }

    /* ── NAV ── */
    nav { padding: 14px 20px; }
    nav.scrolled { padding: 12px 20px; }

    .nav-toggle { display: flex; }

    /* Mobile dropdown panel — slides down from top */
    .nav-links {
      position: fixed;
      top: 0; left: 0; right: 0;
      background: rgba(13,11,10,0.97);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 70px 0 20px;
      z-index: 99;
      transform: translateY(-110%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.38s ease;
      border-bottom: 1px solid rgba(232,93,26,0.25);
    }
    .nav-links.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .nav-links a {
      padding: 15px 24px;
      font-size: 15px;
      letter-spacing: 1px;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      color: var(--text-muted);
    }
    .nav-links a:hover, .nav-links a:active { color: white; background: rgba(232,93,26,0.06); }
    .nav-links a::after { display: none; }

    /* ── GENERAL GRID COLLAPSES ── */
    .services-grid, .team-grid, .projects-grid, .why-grid, .awards-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .clients-grid { grid-template-columns: repeat(2,1fr); }
    .impact-grid { grid-template-columns: 1fr 1fr; }
    .project-card:first-child { grid-column: span 1; }

    /* ── HERO ── */
    .hero-content { padding: 80px 20px 56px; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
    .hero-tag { font-size: 10px; padding: 6px 12px; }

    /* ── CONTAINER ── */
    .container { padding: 0 20px; }

    /* ── FOUNDER ── */
    .founder-grid {
      grid-template-columns: 1fr;
      gap: 24px;
      margin-bottom: 40px;
    }
    
   

    /* ── TIMELINE ── */
    /*
     * Mobile timeline: vertical line on the inline-start side (right in RTL,
     * left in LTR). Year circles sit on the line; content cards fill the rest.
     */
    .timeline {
      padding-right: 68px; /* RTL: room for line + circles on the right */
    }
    body.en .timeline { padding-right: 0; padding-left: 68px; }

    .timeline::before {
      display: block;
      top: 0; bottom: 0;
      width: 2px; transform: none;
      right: 26px; left: auto;
      background: linear-gradient(to bottom,
        transparent 2%,
        var(--brand-orange) 8%,
        var(--brand-orange) 92%,
        transparent 98%);
    }
    body.en .timeline::before { right: auto; left: 26px; }

    .timeline-item {
      display: block !important;
      position: relative;
      margin-bottom: 36px;
    }

    /* All year circles: absolutely positioned on the line */
    .timeline-item .timeline-year {
      position: absolute;
      right: -68px; left: auto; top: 0;
      width: 52px; height: 52px;
      font-size: 11px;
    }
    body.en .timeline-item .timeline-year { right: auto; left: -68px; }

    /* All content cards: full width */
    .timeline-item .timeline-content {
      width: 100%;
      padding: 22px 20px;
    }

    /* ── FOOTER ── */
    footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 20px; }
  }

  /* ANIMATIONS */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* PLACEHOLDER FOR MISSING IMAGES */
  .img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-dark3); color: var(--text-muted); font-size: 48px;
  }
