:root {
  color-scheme: light;
  --ink: #071012;
  --muted: #5c686c;
  --paper: #f7f9f9;
  --panel: #ffffff;
  --line: #dfe6e8;
  --teal: #1490aa;
  --teal-dark: #0b6578;
  --carbon: #05090a;
  --soft: #edf4f5;
  --gold: #c89b3c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  background:
    linear-gradient(90deg, rgba(20, 144, 170, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(5, 9, 10, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0 48%, rgba(237, 244, 245, 0.82) 48% 100%),
    radial-gradient(circle at 14% 12%, rgba(20, 144, 170, 0.14), transparent 28%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.construction-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  align-content: center;
  gap: 22px;
}

.construction-hero {
  min-height: clamp(420px, 64vh, 690px);
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(5, 9, 10, 0.04) 0 1px, transparent 1px 18px);
  box-shadow: 0 24px 70px rgba(7, 16, 18, 0.11);
}

.brand-mark {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-inline-start: 8px solid var(--teal);
  background: var(--panel);
}

.brand-mark img {
  width: min(320px, 76vw);
  display: block;
  mix-blend-mode: multiply;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.section-head span,
.status-panel span {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.construction-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 144, 170, 0.28);
  background: rgba(237, 244, 245, 0.88);
}

.construction-badge strong,
.construction-badge em {
  display: block;
}

.construction-badge em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.badge-icon {
  position: relative;
  width: 42px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--carbon);
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--teal) 0 22%, transparent 22% 34%, var(--teal) 34% 56%, transparent 56% 68%, var(--teal) 68% 100%),
    white;
}

.badge-icon::before {
  position: absolute;
  inset: -8px -2px auto -2px;
  height: 10px;
  content: "";
  border: 2px solid var(--carbon);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(135deg, var(--carbon) 0 20%, white 20% 36%, var(--carbon) 36% 58%, white 58% 74%, var(--carbon) 74% 100%);
}

.badge-icon span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 22px;
  height: 3px;
  background: var(--carbon);
  box-shadow: 0 7px 0 var(--carbon);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.8vw, 4.9rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.18;
}

.subtitle {
  color: #283235;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 62ch;
}

.en {
  direction: ltr;
}

.status-panel,
.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.status-panel {
  background: var(--carbon);
  color: white;
}

.status-panel div,
.summary-strip div {
  padding: 24px clamp(20px, 4vw, 34px);
}

.status-panel strong,
.status-panel em {
  display: block;
}

.status-panel span {
  color: #7fd2e2;
}

.status-panel em {
  color: #c9d7da;
  font-style: normal;
}

.summary-strip {
  background: rgba(255, 255, 255, 0.9);
}

/* A focused, content-free launch screen while the public site is closed. */
.is-under-construction {
  color: #071012 !important;
  background: #f3f7f8;
}

.is-under-construction::before {
  z-index: 0;
  background:
    linear-gradient(135deg, #ffffff 0%, #eef4f5 100%),
    radial-gradient(circle at 15% 20%, rgba(20, 144, 170, .12), transparent 34%),
    radial-gradient(circle at 90% 82%, rgba(200, 155, 60, .12), transparent 28%);
}

.is-under-construction .construction-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  padding: clamp(24px, 5vw, 64px) 0;
  gap: 0;
}

.is-under-construction .floating-lang {
  position: absolute;
  top: clamp(22px, 4vw, 48px);
  inset-inline-end: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  padding: 5px 10px !important;
  min-height: 32px !important;
  height: 32px !important;
  font-size: .78rem !important;
  font-weight: 800;
  width: auto !important;
  min-width: 0 !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  background: #fff !important;
  color: #071012 !important;
  border: 1px solid #cfd9dc !important;
  box-shadow: 0 6px 18px rgba(7,16,18,.12);
}

.is-under-construction .construction-hero {
  min-height: min(680px, 78vh);
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  border: 1px solid rgba(255,255,255,.16);
  border-inline-start: 5px solid var(--gold);
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

.is-under-construction .brand-mark {
  min-height: 240px;
  border: 0;
  background: transparent;
}

.is-under-construction .brand-mark img {
  width: min(280px, 70vw);
  mix-blend-mode: normal;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.28));
}

.is-under-construction .hero-copy { text-align: start; }
.is-under-construction .eyebrow { color: #071012 !important; letter-spacing: .08em; }
.is-under-construction .construction-badge { border-color: rgba(200,155,60,.5); background: rgba(200,155,60,.12); }
.is-under-construction .construction-badge strong { color: #071012 !important; }
.is-under-construction .construction-badge em { color: #27383d !important; }
.is-under-construction h1 { color: #071012 !important; text-shadow: none; }
.is-under-construction .subtitle { color: #27383d !important; }
.is-under-construction .status-panel,
.is-under-construction .summary-strip { display: none; }
.is-under-construction .reveal-section { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .is-under-construction .construction-shell { width: min(100% - 24px, 560px); padding-top: 72px; }
  .is-under-construction .construction-hero { min-height: calc(100vh - 96px); grid-template-columns: 1fr; text-align: center; padding: 28px 22px 42px; }
  .is-under-construction .hero-copy { text-align: center; }
  .is-under-construction .construction-badge { margin-inline: auto; }
  .is-under-construction .brand-mark { min-height: 170px; }
  .is-under-construction .brand-mark img { width: min(220px, 62vw); }
}

.summary-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 38px rgba(7, 16, 18, 0.08);
}

.site-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.lang-en .site-logo {
  flex-direction: row-reverse;
}

.lang-ar .site-logo {
  gap: 10px;
}

.lang-ar .site-header nav {
  font-size: .9rem;
}

.site-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--carbon);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: rgba(20, 144, 170, 0.46);
  color: var(--teal-dark);
}

.floating-lang {
  position: fixed;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(7, 16, 18, 0.12);
}

.lang-en .site-header nav {
  font-size: 0.9rem;
}

.lang-en .published-hero h1 {
  max-width: 980px;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
}

.lang-en h1,
.lang-en h2,
.lang-en h3 {
  line-height: 1.12;
}

.lang-ar .hero-slide > div,
.lang-ar .content-section,
.lang-ar .rich-content,
.lang-ar .section-head,
.lang-ar .service-grid article,
.lang-ar .project-grid article,
.lang-ar .contact-grid {
  text-align: right;
}

.lang-en .hero-slide > div,
.lang-en .content-section,
.lang-en .rich-content,
.lang-en .section-head,
.lang-en .service-grid article,
.lang-en .project-grid article,
.lang-en .contact-grid {
  text-align: left;
}

.published-hero,
.content-section { display: block; }
.footer-contact-item { display: flex; align-items: center; gap: 9px; color: inherit; }
.footer-contact-item + .footer-contact-item { margin-top: 10px; }
.footer-contact-item > i { color: var(--gold); font-size: 18px; width: 20px; text-align: center; }

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto;
}

.published-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 42px;
  align-items: center;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 24px 70px rgba(7, 16, 18, 0.11);
}

.published-hero p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.published-hero img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
}

.content-section {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 0;
}

.rich-content {
  color: #263235;
  font-size: 1.04rem;
}

.rich-content img {
  height: auto;
  display: block;
  margin: 18px 0;
}

.expandable-content,
.expandable-text {
  position: relative;
}

.expandable-content.is-collapsed .expandable-inner {
  max-height: 220px;
  overflow: hidden;
}

.expandable-text.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.expandable-content.is-collapsed::after {
  position: absolute;
  inset-inline: 0;
  bottom: 46px;
  height: 70px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.read-more-btn {
  width: fit-content;
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(29, 127, 167, 0.32);
  background: #fff;
  color: var(--teal-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.theme-agroup .read-more-btn {
  border-color: rgba(209, 163, 72, 0.42);
  color: var(--agroup-navy);
}

.theme-agroup .contact-section .read-more-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.service-grid,
.project-grid,
.partner-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.service-grid article,
.project-grid article,
.partner-logo {
  border: 1px solid var(--line);
  background: white;
}

.service-grid article {
  padding: 22px;
}

.service-grid span {
  color: var(--teal);
  font-weight: 900;
}

.service-grid p,
.project-grid p,
.muted {
  color: var(--muted);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: var(--soft);
}

.project-grid article div {
  padding: 18px;
}

.project-grid span {
  color: var(--teal-dark);
  font-weight: 900;
}

.partner-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-logo {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.partner-logo img {
  max-height: 76px;
  object-fit: contain;
}

.contact-grid {
  grid-template-columns: 1fr minmax(280px, 0.7fr);
}

.contact-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-grid li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-cta {
  width: fit-content;
  display: inline-flex;
  margin-top: 10px;
  padding: 12px 22px;
  background: var(--carbon);
  color: white;
  font-weight: 900;
}

.published-hero.hero-slider {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--carbon);
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: inherit;
  display: grid;
  align-items: center;
  padding: clamp(40px, 8vw, 94px);
  color: white;
  background:
    linear-gradient(90deg, rgba(5, 9, 10, 0.78), rgba(5, 9, 10, 0.52), rgba(5, 9, 10, 0.18)),
    var(--hero-image) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 900ms ease;
  pointer-events: none;
}

.hero-slide > div {
  opacity: 0;
  transform: translateY(28px);
}

.hero-slide.is-active > div {
  animation: hero-copy-in 780ms cubic-bezier(.2, .75, .25, 1) 180ms forwards;
}

.hero-slide.is-active h1 { animation: hero-copy-in 680ms ease 320ms both; }
.hero-slide.is-active p { animation: hero-copy-in 680ms ease 440ms both; }
.hero-slide.is-active .hero-cta { animation: hero-copy-in 680ms ease 560ms both; }

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide > div,
  .hero-slide.is-active > div,
  .hero-slide.is-active h1,
  .hero-slide.is-active p,
  .hero-slide.is-active .hero-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

[dir="rtl"] .hero-slide {
  background:
    linear-gradient(270deg, rgba(5, 9, 10, 0.78), rgba(5, 9, 10, 0.52), rgba(5, 9, 10, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide > div {
  max-width: 820px;
}

.hero-slide h1,
.hero-slide p {
  color: white;
}

.hero-slide p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-slider-controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 34px;
  z-index: 4;
  width: max-content;
  display: flex;
  justify-content: center;
  gap: 12px;
  direction: ltr;
  transform: translateX(-50%);
}

.hero-slider-controls button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hero-slider-controls button.is-active {
  background: white;
}

.theme-cinematic {
  background: #f4f4f2;
}

.theme-cinematic::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 244, 242, 0.96)),
    var(--paper);
}

.theme-cinematic .site-header {
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(5, 9, 10, 0.12);
}

.theme-cinematic .site-logo img {
  width: 38px;
  height: 38px;
}

.theme-cinematic .site-header nav {
  gap: 24px;
  color: #1c2528;
  font-size: 0.92rem;
}

.theme-cinematic .published-hero {
  position: relative;
  min-height: 640px;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: hidden;
  padding: clamp(42px, 8vw, 120px);
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(5, 9, 10, 0.58), rgba(5, 9, 10, 0.62)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: 0 28px 80px rgba(5, 9, 10, 0.22);
}

.theme-cinematic .published-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.theme-cinematic .published-hero .eyebrow {
  color: #f2b84d;
}

.theme-cinematic .published-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  color: white;
  font-size: clamp(2.5rem, 6.4vw, 5.7rem);
  line-height: 1.08;
}

.theme-cinematic .published-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.theme-cinematic .published-hero > img {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-start: 24px;
  width: 76px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.theme-cinematic .hero-cta {
  background: white;
  color: var(--carbon);
}

.theme-cinematic .content-section {
  border: 0;
  background: white;
  box-shadow: none;
}

.theme-cinematic .section-head {
  justify-items: center;
  text-align: center;
}

.theme-cinematic .section-head span {
  color: #f2a51a;
}

.theme-cinematic .section-head h2 {
  max-width: 760px;
}

.theme-cinematic .rich-content {
  max-width: 900px;
  margin-inline: auto;
  color: #263235;
  text-align: center;
}

.theme-cinematic .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-cinematic .service-grid article,
.theme-cinematic .project-grid article {
  border: 0;
  background: transparent;
}

.theme-cinematic .service-grid article {
  padding: 0;
}

.theme-cinematic .service-grid article::after,
.theme-cinematic .project-grid article::after {
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 4px;
  content: "";
  background: rgba(242, 165, 26, 0.75);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.theme-cinematic .service-grid article:hover::after,
.theme-cinematic .project-grid article:hover::after {
  transform: scaleX(1);
}

.theme-cinematic .service-grid span,
.theme-cinematic .project-grid span {
  color: #8a6a24;
  font-size: 0.82rem;
}

.theme-cinematic .service-grid h3,
.theme-cinematic .project-grid h3 {
  color: #172024;
}

.theme-cinematic .service-grid article {
  padding: 18px;
  border: 1px solid #e7e7e3;
  background: #fbfbfa;
}

.theme-cinematic .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-cinematic .project-grid img {
  aspect-ratio: 16 / 11;
  filter: saturate(0.95) contrast(1.02);
}

.theme-cinematic .project-grid article div {
  padding: 14px 0 0;
}

.theme-cinematic .partner-grid {
  justify-items: center;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.theme-cinematic .partner-logo {
  width: 100%;
  min-height: 96px;
  border: 0;
  background: transparent;
  filter: grayscale(1);
  opacity: 0.74;
}

.theme-cinematic .partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.theme-cinematic .contact-section {
  margin-bottom: 0;
  padding-block: clamp(42px, 7vw, 82px);
  background: #f8f8f6;
  text-align: center;
}

.theme-cinematic .contact-grid {
  max-width: 900px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}

.theme-cinematic .contact-grid ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-cinematic .site-footer {
  width: min(1200px, calc(100% - 32px));
  margin-top: 0;
  padding: 46px clamp(24px, 5vw, 54px);
  background: #151d22;
  color: #d8e1e3;
}

.theme-agroup {
  --agroup-navy: #18242e;
  --agroup-blue: #1d7fa7;
  --agroup-gold: #d1a348;
  --agroup-silver: #f4f6f7;
  background: #ffffff;
}

.theme-agroup::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 247, 0.9)),
    linear-gradient(90deg, rgba(29, 127, 167, 0.08) 1px, transparent 1px);
  background-size: auto, 72px 72px;
}

.theme-agroup .site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  width: 100%;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 54px) 0 clamp(18px, 4vw, 54px);
  border: 0;
  background: linear-gradient(180deg, rgba(8, 15, 20, 0.58), rgba(8, 15, 20, 0.06));
  box-shadow: none;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

[dir="rtl"] .theme-agroup .site-header {
  padding: 0 clamp(18px, 4vw, 54px) 0 clamp(18px, 4vw, 54px);
}

.theme-agroup.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(14, 27, 34, 0.13);
}

.theme-agroup .site-logo {
  min-width: 190px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.theme-agroup.is-scrolled .site-logo {
  color: var(--agroup-navy);
}

.is-scrolled .site-logo {
  color: var(--carbon) !important;
}

.theme-agroup .site-logo img {
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}

.theme-agroup.is-scrolled .site-logo img {
  filter: none;
}

.theme-agroup .site-header nav {
  align-self: stretch;
  gap: 0;
  margin-inline-start: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.theme-agroup.is-scrolled .site-header nav {
  color: #42515b;
}

.theme-agroup .site-header nav a {
  display: inline-flex;
  align-items: center;
  padding: 22px 15px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-agroup.is-scrolled .site-header nav a {
  border-inline-start-color: #edf1f2;
}

.theme-agroup .site-header nav a::after {
  height: 3px;
  background: var(--agroup-gold);
}

.theme-agroup .lang-switch {
  min-height: 100%;
  align-self: stretch;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.theme-agroup.is-scrolled .lang-switch {
  background: var(--agroup-blue);
  color: #fff;
}

.theme-agroup .published-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 420px);
  overflow: hidden;
  padding: clamp(92px, 12vw, 148px) clamp(24px, 8vw, 128px) clamp(50px, 8vw, 86px);
  border: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 36, 46, 0.9), rgba(24, 36, 46, 0.64) 48%, rgba(24, 36, 46, 0.25)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: 0 32px 86px rgba(14, 27, 34, 0.22);
}

.theme-agroup .published-hero.hero-slider {
  width: 100vw;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw);
  padding: 0;
}

.theme-agroup .published-hero.hero-slider .hero-slide {
  min-height: 100vh;
  padding: clamp(110px, 14vw, 170px) clamp(24px, 9vw, 140px) clamp(54px, 8vw, 92px);
}

[dir="rtl"] .theme-agroup .published-hero {
  background:
    linear-gradient(270deg, rgba(24, 36, 46, 0.9), rgba(24, 36, 46, 0.64) 48%, rgba(24, 36, 46, 0.25)),
    var(--hero-image) center / cover no-repeat;
}

.theme-agroup .published-hero::before {
  display: none;
}

.theme-agroup .hero-slide {
  background:
    linear-gradient(90deg, rgba(24, 36, 46, 0.88), rgba(24, 36, 46, 0.62) 52%, rgba(24, 36, 46, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

[dir="rtl"] .theme-agroup .hero-slide {
  background:
    linear-gradient(270deg, rgba(24, 36, 46, 0.88), rgba(24, 36, 46, 0.62) 52%, rgba(24, 36, 46, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

.theme-agroup .published-hero > div {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.theme-agroup .hero-slide > div {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.theme-agroup .published-hero > .hero-slider-controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 34px;
  z-index: 4;
  width: max-content;
  max-width: none;
  transform: translateX(-50%);
}

.theme-agroup .published-hero .eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4cf82;
}

.theme-agroup .published-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(2.5rem, 5.7vw, 5.2rem);
}

.theme-agroup .published-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.theme-agroup .published-hero > img {
  position: relative;
  z-index: 1;
  width: min(310px, 82vw);
  justify-self: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.theme-agroup .hero-cta {
  background: var(--agroup-gold);
  color: #17222b;
}

.agroup-stats {
  width: min(1120px, calc(100% - 56px));
  margin: -62px auto 34px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  box-shadow: 0 20px 58px rgba(14, 27, 34, 0.16);
}

.agroup-stats div {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 20px;
  border-inline-start: 1px solid #e8edef;
  text-align: center;
}

.agroup-stats div:first-child {
  border-inline-start: 0;
}

.agroup-stats strong {
  color: var(--agroup-blue);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.agroup-stats span {
  color: #5e6b72;
  font-size: 0.86rem;
  font-weight: 900;
}

.theme-agroup .content-section {
  border: 0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(14, 27, 34, 0.07);
}

.theme-agroup main > .content-section {
  border-top: 8px solid #eef2f3;
}

.theme-agroup main > .content-section:last-of-type {
  border-bottom: 8px solid #eef2f3;
}

.theme-agroup .section-head {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 34px;
  justify-items: center;
  text-align: center;
}

.theme-agroup .section-head span {
  color: var(--agroup-gold);
}

.theme-agroup .section-head h2 {
  color: var(--agroup-navy);
}

.theme-agroup .section-head::after {
  width: 74px;
  height: 3px;
  content: "";
  background: var(--agroup-blue);
}

.theme-agroup .rich-content {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.theme-agroup.lang-ar .section-head,
.theme-agroup.lang-ar .rich-content {
  margin-inline: 0 auto;
  justify-items: start;
  text-align: right;
}

.theme-agroup.lang-en .section-head,
.theme-agroup.lang-en .rich-content {
  margin-inline: 0 auto;
  justify-items: start;
  text-align: left;
}

.theme-agroup .service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-agroup .service-grid article {
  min-height: 255px;
  align-content: start;
  padding: 28px 22px;
  border: 1px solid #e4eaed;
  background:
    linear-gradient(180deg, #fff, #f8fafb);
}

.theme-agroup .service-grid article::after {
  position: absolute;
  inset-inline: 22px;
  bottom: 18px;
  height: 3px;
  content: "";
  background: var(--agroup-gold);
  transform: scaleX(0.28);
  transform-origin: center;
  transition: transform 220ms ease;
}

.theme-agroup .service-grid article:hover::after {
  transform: scaleX(1);
}

.theme-agroup .service-grid span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--agroup-blue);
  color: #fff;
  font-size: 1rem;
}

.theme-agroup .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-agroup .project-grid article {
  border: 0;
  background: #fff;
  box-shadow: 0 18px 44px rgba(14, 27, 34, 0.1);
}

.theme-agroup .project-grid img {
  aspect-ratio: 16 / 10;
}

.theme-agroup .project-grid article div {
  position: relative;
  padding: 20px;
}

.theme-agroup .project-grid span {
  color: var(--agroup-blue);
}

.theme-agroup .partner-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.theme-agroup .partner-logo {
  min-height: 120px;
  border: 1px solid #e4eaed;
  background: #fff;
}

.theme-agroup .contact-section {
  background: var(--agroup-navy);
  color: #fff;
}

.theme-agroup .contact-section .section-head h2,
.theme-agroup .contact-section .rich-content {
  color: #fff;
}

.theme-agroup .contact-grid li {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.theme-agroup .site-footer {
  width: min(1200px, calc(100% - 32px));
  padding: 28px 34px;
  background: #101820;
  color: #cfd9de;
}

.project-detail-hero {
  width: 100%;
  min-height: min(760px, 78vh);
  margin: 0;
  display: grid;
  align-items: end;
  padding: clamp(34px, 7vw, 82px);
  color: white;
  background:
    linear-gradient(90deg, rgba(5, 9, 10, 0.82), rgba(5, 9, 10, 0.42), rgba(5, 9, 10, 0.12)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: none;
}

[dir="rtl"] .project-detail-hero {
  background:
    linear-gradient(270deg, rgba(5, 9, 10, 0.82), rgba(5, 9, 10, 0.42), rgba(5, 9, 10, 0.12)),
    var(--hero-image) center / cover no-repeat;
}

.project-detail-hero > div {
  max-width: 760px;
}

.project-detail-hero h1 {
  color: white;
}

.project-detail-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.page-banner {
  min-height: clamp(300px, 48vh, 560px);
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
}

.projects-page-banner {
  background-image: linear-gradient(90deg, rgba(8, 20, 30, .72), rgba(8, 20, 30, .28)), var(--hero-image);
  background-position: center;
  background-size: cover;
  border: 0;
  box-shadow: none;
}

.projects-page-banner > div {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.section-head h2 a {
  color: inherit;
  text-decoration: none;
}

.section-head h2 a:hover {
  color: var(--accent, #1689a6);
}

.projects-index .section-head {
  margin-bottom: 34px;
}

.projects-index .section-head p {
  margin: 10px 0 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(22, 137, 166, 0.28);
  color: inherit;
  text-decoration: none;
}

.pagination a.is-active,
.pagination a:hover {
  background: #1689a6;
  color: #fff;
}

.read-more-link {
  display: inline-block;
  margin-top: 18px;
  color: #1689a6;
  font-weight: 700;
  text-decoration: none;
}

.read-more-link:hover {
  text-decoration: underline;
}

.video-embed {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto;
  aspect-ratio: 16 / 9;
  background: #101820;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.page-banner + .content-section .section-head {
  display: none;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-detail-gallery figure {
  margin: 0;
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 34px rgba(7, 16, 18, 0.08);
}

.project-detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
}

.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  background: rgba(8, 13, 18, .94);
}
.gallery-lightbox img { max-width: min(92vw, 1200px); max-height: 82vh; object-fit: contain; }
.gallery-lightbox button { color: white; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); cursor: pointer; }
.gallery-close, .gallery-prev, .gallery-next { position: absolute; width: 44px; height: 44px; font-size: 1.8rem; }
.gallery-close { top: 18px; inset-inline-end: 20px; }
.gallery-prev { inset-inline-start: 20px; top: 50%; }
.gallery-next { inset-inline-end: 20px; top: 50%; }
.gallery-lightbox p { position: absolute; bottom: 14px; max-width: 80vw; color: white; text-align: center; }

.project-detail-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .construction-shell,
  .published-hero,
  .content-section,
  .site-footer,
  .site-header {
    width: min(100% - 24px, 720px);
  }

  .construction-hero,
  .published-hero,
  .status-panel,
  .summary-strip,
  .service-grid,
  .project-grid,
  .partner-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-agroup .site-header {
    padding: 10px 14px;
  }

  .theme-agroup .site-header nav {
    width: 100%;
    margin-inline-start: 0;
  }

  .theme-agroup .site-header nav a {
    padding: 10px 0;
    border-inline-start: 0;
  }

  .theme-agroup .lang-switch {
    min-height: 40px;
  }

  .theme-agroup .published-hero {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100vh;
    padding: 110px 22px 54px;
  }

  .agroup-stats {
    width: min(100% - 24px, 720px);
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-mark {
    min-height: 220px;
    border-inline-start: 0;
    border-top: 6px solid var(--teal);
  }

  .site-footer {
    flex-direction: column;
  }

  .theme-agroup .published-hero,
  .theme-agroup .site-header {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .project-detail-gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery-lightbox { padding: 64px 12px 72px; }
  .gallery-lightbox img { max-width: 96vw; max-height: 72vh; }
  .gallery-prev { inset-inline-start: 8px; }
  .gallery-next { inset-inline-end: 8px; }
}

@media (max-width: 520px) {
  .construction-shell {
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .construction-hero,
  .status-panel,
  .summary-strip {
    border-inline: 0;
  }

  .construction-hero,
  .published-hero,
  .content-section {
    padding: 22px;
  }
}

.reveal-section {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-float {
  transition: transform 220ms linear;
  will-change: transform;
}

body.is-scrolling .hero-float {
  transform: translateY(var(--hero-shift, 0px));
}

/* Public site surfaces use full-width bands instead of floating cards. */
.content-section,
.site-footer,
.status-panel,
.summary-strip,
.construction-hero,
.construction-shell {
  width: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.content-section {
  margin-inline: 0;
  border-inline: 0;
  scroll-margin-top: 86px;
}

.project-grid,
.partner-grid {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.project-grid article,
.partner-grid article,
.interactive-card {
  border-radius: 0;
  box-shadow: none;
}

.project-grid article {
  background: transparent;
  border: 0;
}

.project-grid article > div {
  padding: 16px 18px 20px;
}

.project-grid article h3 {
  margin-top: 0;
}

.project-grid article:hover,
.interactive-card:hover {
  transform: none;
  box-shadow: none;
}

.site-footer {
  margin-inline: 0;
}

@media (max-width: 520px) {
  .project-grid,
  .partner-grid {
    width: 100%;
  }
}

/* Final project-card text spacing override for all public themes. */
body.is-published .project-grid article > div {
  padding: 24px 24px 28px !important;
}

body.is-published .project-grid a.project-card-link > div {
  padding: 24px 24px 28px !important;
}

body.is-published .site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 32px;
  padding: 48px max(24px, 5vw) 22px;
  background: #101820;
  color: #d6e0e4;
}
.footer-brand img { width: 44px; height: 44px; object-fit: contain; background: white; padding: 4px; vertical-align: middle; }
.footer-brand strong { margin-inline-start: 10px; color: white; font-size: 1.1rem; }
.footer-brand p { max-width: 330px; color: #aab8be; line-height: 1.8; }
.footer-column { display: grid; align-content: start; gap: 10px; }
.footer-column h3 { margin: 0 0 8px; color: white; font-size: 1rem; }
.footer-column a, .footer-column span { color: #b9c5ca; }
.footer-column a:hover { color: var(--agroup-gold, #d1a348); }
.footer-bottom { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa0a7; font-size: .82rem; }
@media (max-width: 900px) { body.is-published .site-footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { body.is-published .site-footer { grid-template-columns: 1fr; padding-inline: 22px; } .footer-bottom { grid-column: auto; } }
}

@media (min-width: 901px) {
  .lang-en .site-logo {
    flex-direction: row !important;
    direction: ltr;
  }

  .lang-en .site-logo img {
    order: 1;
  }

  .lang-en .site-logo span {
    order: 2;
  }

  body.is-published .site-header nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--carbon);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header .menu-toggle,
  .site-header .lang-switch {
    border: 0;
    background: transparent !important;
    color: #fff;
    box-shadow: none;
  }

  .site-header .menu-toggle {
    font-size: 1.55rem;
  }

  .site-header .lang-switch::before {
    content: '文A';
    font-size: .92rem;
  }

  body.is-scrolled .site-header .menu-toggle,
  body.is-scrolled .site-header .lang-switch {
    color: var(--carbon);
  }
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
    margin-top: 0;
    padding: 10px 14px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    direction: ltr;
    position: sticky;
    gap: 8px;
  }

  .site-logo { margin-inline-end: auto; }
  .lang-ar .site-header {
    min-height: 0;
    padding: 8px !important;
  }
  .site-header .lang-switch { order: 2; }
  .site-header .menu-toggle { order: 3; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .menu-toggle span { display: none; }
  .menu-toggle { width: 42px; justify-content: center; padding: 7px; font-size: 1.35rem; line-height: 1; }
  .site-header .lang-switch {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
    position: relative;
  }
  .site-header .lang-switch::before {
    content: 'A/ع';
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: 0;
  }
  .site-header nav {
    display: flex;
    order: 5;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transform-origin: top center;
    visibility: hidden;
    padding-top: 8px;
    padding-inline: 14px;
    border-top: 1px solid var(--line);
    background: rgba(11, 18, 24, .96);
    backdrop-filter: blur(12px);
    direction: rtl;
    pointer-events: none;
    transition: max-height 360ms ease, opacity 240ms ease, transform 360ms ease, visibility 360ms ease;
  }
  .site-header.nav-open nav {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .site-header.nav-open nav a { color: #fff; }
  .site-header nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .site-header nav a {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 220ms ease;
  }
  .site-header.nav-open nav a {
    opacity: 1;
    transform: translateY(0);
  }
  .site-header .lang-switch { min-height: 40px; padding: 7px 10px; }

  .lang-en .site-header .menu-toggle { order: 1; }
  .lang-en .site-header .lang-switch { order: 2; }
  .lang-en .site-header .site-logo {
    order: 3;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
  .lang-en .site-header nav { direction: ltr; }
}

.site-header nav a {
  position: relative;
  padding-bottom: 6px;
  transition: color 180ms ease;
}

.site-header nav a::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--teal-dark);
}

.site-header nav a:hover::after,
.site-header nav a.is-active::after {
  transform: scaleX(1);
}

.interactive-card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card-link .project-card-action {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold, #cda349);
  font-size: .82rem;
  font-weight: 800;
}

.project-card-link:hover .project-card-action,
.project-card-link:focus-visible .project-card-action {
  color: var(--ink, #17202a);
  text-decoration: underline;
}

.interactive-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(20, 144, 170, 0.12), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.interactive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 144, 170, 0.48);
  box-shadow: 0 20px 44px rgba(7, 16, 18, 0.12);
}

.interactive-card:hover::before {
  opacity: 1;
}

.service-grid article,
.project-grid article,
.partner-logo {
  animation: card-rise 700ms ease both;
  animation-play-state: paused;
}

.reveal-section.is-visible .service-grid article,
.reveal-section.is-visible .project-grid article,
.reveal-section.is-visible .partner-logo {
  animation-play-state: running;
}

.reveal-section.is-visible .service-grid article:nth-child(2),
.reveal-section.is-visible .project-grid article:nth-child(2),
.reveal-section.is-visible .partner-logo:nth-child(2) {
  animation-delay: 80ms;
}

.reveal-section.is-visible .service-grid article:nth-child(3),
.reveal-section.is-visible .project-grid article:nth-child(3),
.reveal-section.is-visible .partner-logo:nth-child(3) {
  animation-delay: 160ms;
}

.reveal-section.is-visible .service-grid article:nth-child(4),
.reveal-section.is-visible .project-grid article:nth-child(4),
.reveal-section.is-visible .partner-logo:nth-child(4) {
  animation-delay: 240ms;
}

.reveal-section.is-visible .partner-logo:nth-child(5) {
  animation-delay: 320ms;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-section,
  .hero-float,
  .interactive-card,
  .service-grid article,
  .project-grid article,
  .partner-logo {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
