.projects-page { background: var(--ice); }
.projects-page .desktop-nav .nav-current { opacity: 1; }
.projects-page .desktop-nav .nav-current::after { transform: scaleX(1); }
.projects-page .mobile-menu .nav-current { color: var(--orange); }

.projects-hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 176px 0 100px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 40%, rgba(23,127,234,.2), transparent 30%),
    linear-gradient(118deg, #06152f, var(--navy));
}
.projects-hero::after {
  content: "06";
  position: absolute;
  inset: auto 4vw -13vw auto;
  color: rgba(255,255,255,.025);
  font-size: clamp(330px, 40vw, 650px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.1em;
}
.projects-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 84%, transparent);
}
.projects-orbit { position: absolute; border: 1px solid rgba(70,151,236,.2); border-radius: 50%; }
.projects-orbit-one { width: 520px; height: 520px; inset: -250px -120px auto auto; }
.projects-orbit-two { width: 310px; height: 310px; inset: auto auto -170px 8%; border-color: rgba(243,111,33,.2); }
.projects-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 72px; }
.projects-hero-copy { max-width: 880px; }
.projects-hero h1 { margin: 0; font-size: clamp(54px, 6.4vw, 92px); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.projects-hero h1 em { color: var(--orange); font-style: normal; }
.projects-hero-copy > p:last-child { max-width: 720px; margin: 32px 0 0; color: #b8c7db; font-size: 17px; line-height: 1.8; }
.projects-hero-meta { display: grid; grid-template-columns: auto 26px; align-items: center; gap: 16px 12px; padding: 26px; border: 1px solid rgba(255,255,255,.18); background: rgba(5,15,33,.48); backdrop-filter: blur(10px); }
.projects-hero-meta span { font-size: 12px; font-weight: 800; letter-spacing: .11em; }
.projects-hero-meta i { width: 26px; height: 1px; background: linear-gradient(90deg, var(--blue-bright), var(--orange)); }
html[dir="rtl"] .projects-hero-meta { direction: ltr; }

.project-showcase { padding: 128px 0 140px; background: var(--ice); }
.projects-section-heading { display: grid; grid-template-columns: 1.15fr .7fr; align-items: end; gap: 80px; margin-bottom: 64px; }
.projects-section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(40px, 4.3vw, 65px); line-height: 1.03; letter-spacing: -.052em; text-wrap: balance; }
.projects-section-heading h2 em { color: var(--blue-bright); font-style: normal; }
.projects-section-heading > p {
  max-width: 470px;
  margin: 0;
  padding: 22px 24px 22px 26px;
  color: var(--navy);
  background: var(--white);
  border-inline-start: 3px solid var(--orange);
  box-shadow: 0 14px 36px rgba(11,31,68,.09);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 22px 56px rgba(11,31,68,.07); transition: transform .32s ease, box-shadow .32s ease; }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 32px 72px rgba(11,31,68,.14); }
.project-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #050f22; }
.project-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.project-number { position: absolute; inset: 18px 18px auto auto; min-width: 42px; height: 30px; display: grid; place-items: center; padding: 0 9px; color: var(--navy); background: var(--orange); font-size: 11px; font-weight: 850; letter-spacing: .08em; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
html[dir="rtl"] .project-number { inset: 18px auto auto 18px; }
.project-content { position: relative; min-height: 285px; padding: 32px 34px 36px; }
.project-content::before { content: ""; position: absolute; inset: 0 34px auto; height: 2px; background: linear-gradient(90deg, var(--orange) 0 56px, var(--line) 56px); }
.project-category { margin: 0 0 18px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.project-card h3 { margin: 0 0 18px; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.18; letter-spacing: -.035em; }
.project-content > p:last-child { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.78; }

.projects-cta { position: relative; overflow: hidden; padding: 105px 0; color: white; background: linear-gradient(118deg, #06152f, var(--navy)); }
.projects-cta::after { content: ""; position: absolute; inset: -170px -120px auto auto; width: 420px; height: 420px; border: 78px solid rgba(10,102,194,.12); border-radius: 50%; }
.projects-cta-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 80px; }
.projects-cta h2 { max-width: 850px; margin: 0; font-size: clamp(40px, 4.3vw, 65px); line-height: 1.03; letter-spacing: -.052em; text-wrap: balance; }
.projects-cta h2 em { color: var(--orange); font-style: normal; }
.projects-cta .button { min-width: 230px; }

html[dir="rtl"] .projects-hero h1,
html[dir="rtl"] .projects-section-heading h2,
html[dir="rtl"] .projects-cta h2 { letter-spacing: -.025em; }
html[dir="rtl"] .project-category { font-size: 12px; letter-spacing: 0; }
html[dir="rtl"] .project-content > p:last-child { font-size: 16px; }
html[dir="rtl"] .projects-cta .button svg { transform: scaleX(-1); }

@media (max-width: 1060px) {
  .projects-hero { min-height: 680px; }
  .projects-hero-layout { grid-template-columns: 1fr; }
  .projects-hero-meta { width: max-content; grid-template-columns: repeat(7, auto); }
  .projects-section-heading { grid-template-columns: 1fr; gap: 25px; }
  .projects-section-heading > p { max-width: 700px; }
}

@media (max-width: 760px) {
  .projects-hero { min-height: 590px; padding: 130px 0 76px; }
  .projects-hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .projects-hero-copy > p:last-child { font-size: 15px; }
  .projects-hero-meta { width: 100%; grid-template-columns: repeat(7, auto); gap: 8px; padding: 18px; }
  .projects-hero-meta i { width: 100%; }
  .project-showcase { padding: 88px 0 94px; }
  .projects-section-heading { margin-bottom: 42px; }
  .projects-section-heading h2, .projects-cta h2 { font-size: clamp(38px, 11vw, 52px); }
  .project-grid { grid-template-columns: 1fr; gap: 26px; }
  .project-content { min-height: auto; padding: 29px 26px 32px; }
  .project-content::before { inset-inline: 26px; }
  .projects-cta { padding: 86px 0; }
  .projects-cta-layout { grid-template-columns: 1fr; align-items: start; gap: 38px; }
  .projects-cta .button { width: 100%; }
}

@media (max-width: 430px) {
  .projects-hero-meta { grid-template-columns: repeat(4, 1fr); }
  .projects-hero-meta i { display: none; }
  .projects-hero-meta span { text-align: center; }
  .project-card h3 { font-size: 25px; }
}
