:root {
  --bg: #e4ebe8;
  --bg-deep: #d5e0dc;
  --fg: #0f2a27;
  --muted: #3d5652;
  --brand: #0a3d38;
  --accent: #0f6b5c;
  --accent-soft: rgba(15, 107, 92, 0.12);
  --line: rgba(15, 42, 39, 0.12);
  --surface: rgba(255, 255, 255, 0.55);
  --glow-a: rgba(15, 107, 92, 0.22);
  --glow-b: rgba(196, 160, 90, 0.16);
  --font-display: "Amiri", "Noto Naskh Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(165deg, #eef4f1 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}

.atmosphere__glow--a {
  width: min(70vw, 42rem);
  height: min(70vw, 42rem);
  top: -12%;
  inset-inline-end: -8%;
  background: var(--glow-a);
  animation: drift-a 18s var(--ease-out) infinite alternate;
}

.atmosphere__glow--b {
  width: min(55vw, 32rem);
  height: min(55vw, 32rem);
  bottom: 8%;
  inset-inline-start: -10%;
  background: var(--glow-b);
  animation: drift-b 22s var(--ease-out) infinite alternate;
}

.atmosphere__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(10, 61, 56, 0.045);
  animation: lattice-breathe 14s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6%, 8%, 0) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10%, -6%, 0) scale(1.12);
  }
}

@keyframes lattice-breathe {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--brand);
  color: #f5faf8;
  padding: 0.5rem 0.75rem;
  z-index: 20;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.85rem 1.5rem;
  overflow: hidden;
  background: rgba(228, 235, 232, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(228, 235, 232, 0.92);
}

.site-header__dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.site-header__dots-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header > .brand,
.site-header > .header-tools {
  position: relative;
  z-index: 1;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.01em;
  min-width: 0;
  flex: 1 1 auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.site-header nav > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.site-header nav > a:not(.btn):hover {
  color: var(--brand);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.lang-toggle__btn {
  appearance: none;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.25s ease;
}

.lang-toggle__btn:hover {
  color: var(--brand);
}

.lang-toggle__btn.is-active {
  color: var(--brand);
}

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

.lang-toggle__rule {
  width: 1px;
  height: 0.9rem;
  background: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 0.2rem;
  background: var(--brand);
  color: #f5faf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition:
    transform 0.3s var(--ease-out),
    background 0.25s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 10px 28px rgba(10, 61, 56, 0.18);
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10, 61, 56, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  box-shadow: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 61, 56, 0.35);
  padding-bottom: 0.1rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 3.5rem 1.5rem 4.5rem;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb--primary {
  width: min(58vw, 34rem);
  height: min(58vw, 34rem);
  inset-inline-end: -6%;
  top: 12%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 60% 60%, rgba(15, 107, 92, 0.35), rgba(10, 61, 56, 0.08) 70%);
  animation: orb-float 12s var(--ease-out) infinite alternate;
}

.orb--secondary {
  width: min(32vw, 18rem);
  height: min(32vw, 18rem);
  inset-inline-start: 4%;
  bottom: 14%;
  background:
    radial-gradient(circle at 40% 40%, rgba(196, 160, 90, 0.28), transparent 65%);
  animation: orb-float 16s var(--ease-out) infinite alternate-reverse;
}

.hero__ring {
  position: absolute;
  inset-inline-end: 8%;
  top: 22%;
  width: min(42vw, 24rem);
  height: min(42vw, 24rem);
  border: 1px solid rgba(10, 61, 56, 0.18);
  border-radius: 50%;
  animation: ring-pulse 8s ease-in-out infinite;
}

.hero__ring--delayed {
  inset-inline-end: 14%;
  top: 28%;
  width: min(30vw, 17rem);
  height: min(30vw, 17rem);
  animation-delay: 1.4s;
  border-color: rgba(196, 160, 90, 0.28);
}

@keyframes orb-float {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-3%, 4%, 0);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  max-width: 40rem;
  margin-inline-start: max(0px, calc((100vw - 68rem) / 2));
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
  margin: 0;
}

.section {
  padding: 5rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
}

.section__header {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section__header h2,
.approach__panel h2,
.contact__inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.25;
}

.section__header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .capability-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.capability {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.capability__index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.capability h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand);
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.approach {
  max-width: none;
  padding-inline: 0;
}

.approach__panel {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  background: #0a3d38;
  color: #f5faf8;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.approach__panel::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 55% 60% at 78% 18%,
      rgba(196, 160, 90, 0.22) 0%,
      rgba(15, 107, 92, 0.1) 34%,
      rgba(15, 107, 92, 0) 68%
    );
  filter: blur(48px);
  transform: translateZ(0);
  pointer-events: none;
}

.approach__panel h2,
.approach__lead,
.approach__panel > p:last-child {
  position: relative;
  z-index: 1;
}

.approach__panel h2 {
  color: #f5faf8;
}

.approach__lead {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.5;
  max-width: 32rem;
  color: #c4a574;
}

.approach__panel > p:last-child {
  margin: 0;
  max-width: 36rem;
  color: rgba(238, 246, 243, 0.85);
}

.contact {
  text-align: center;
  padding-bottom: 6rem;
}

.contact__inner {
  max-width: 32rem;
  margin: 0 auto;
}

.contact__inner p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

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

.hero__content .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero__content .reveal:nth-child(2) {
  transition-delay: 0.18s;
}
.hero__content .reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.hero__content .reveal:nth-child(4) {
  transition-delay: 0.42s;
}

.capability-list .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.capability-list .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.capability-list .reveal:nth-child(3) {
  transition-delay: 0.25s;
}

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

  .atmosphere__glow,
  .atmosphere__pattern,
  .orb,
  .hero__ring {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 1.05rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(42vw, 11.5rem);
  }

  html[lang="en"] .brand {
    max-width: min(46vw, 12.5rem);
  }

  .site-header nav > a:not(.btn) {
    display: none;
  }

  .header-tools {
    gap: 0.55rem;
    margin-inline-start: auto;
  }

  .site-header nav {
    gap: 0.45rem;
  }

  .btn-sm {
    padding: 0.42rem 0.7rem;
    font-size: 0.8rem;
  }

  .lang-toggle {
    gap: 0.35rem;
  }

  .lang-toggle__btn {
    font-size: 0.78rem;
    padding: 0.2rem 0.1rem;
  }

  .hero {
    padding-top: 2.75rem;
    min-height: calc(100svh - var(--header-h));
  }

  .hero__ring {
    opacity: 0.45;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
