:root {
  --ink: #0b1518;
  --ink-2: #243338;
  --muted: #66767b;
  --line: rgba(11, 21, 24, 0.12);
  --paper: #eef2f1;
  --paper-2: #e4ebea;
  --sea: #0d5558;
  --sea-deep: #08393b;
  --mist: #f7faf9;
  --brass: #8a734f;
  --white: #f8fbfb;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display-ar: "El Messiri", "IBM Plex Sans Arabic", serif;
  --display-en: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(13, 85, 88, 0.08), transparent 60%),
    radial-gradient(700px 480px at 0% 35%, rgba(138, 115, 79, 0.07), transparent 55%),
    linear-gradient(180deg, #f4f7f6 0%, var(--paper) 45%, #e8efee 100%);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.en .display,
body.en .hero-name,
body.en .contact-title,
body.en .brand {
  font-family: var(--display-en);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.top {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--pad);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.top.is-solid {
  background: rgba(238, 242, 241, 0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.top:not(.is-solid) {
  color: var(--white);
}

.top:not(.is-solid) .brand,
.top:not(.is-solid) .nav a {
  color: #f8fbfb;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.top:not(.is-solid) .btn-line,
.top:not(.is-solid) .lang-btn {
  border-color: rgba(255, 255, 255, 0.34);
  color: #f8fbfb;
  background: rgba(255, 255, 255, 0.08);
}

.brand {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 1.35rem;
  margin-inline: auto;
  font-size: 0.92rem;
  opacity: 0.92;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

html[dir="ltr"] .nav a::after {
  transform-origin: left;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
}

.lang-btn,
.btn {
  appearance: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 0.72rem;
  border-radius: 0.3rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-line {
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 0.3rem;
  border-color: var(--line);
  background: transparent;
}

.btn-solid {
  background: var(--sea-deep);
  color: var(--white);
  padding: 0.95rem 1.4rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.btn-solid:hover {
  background: var(--sea);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.95rem 1.4rem;
  border-radius: 0.35rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  padding: 0.95rem 1.25rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 10%;
  transform: scale(1.06);
  animation: drift 22s var(--ease) infinite alternate;
  filter: saturate(1.05) contrast(1.04);
}

html[dir="ltr"] .hero-media img {
  object-position: 60% 10%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(6, 14, 16, 0.82) 0%, rgba(6, 14, 16, 0.42) 36%, rgba(6, 14, 16, 0.08) 58%, rgba(6, 14, 16, 0) 78%),
    linear-gradient(180deg, rgba(6, 14, 16, 0.28) 0%, rgba(6, 14, 16, 0.05) 22%, rgba(6, 14, 16, 0.15) 48%, rgba(6, 14, 16, 0.78) 78%, rgba(6, 14, 16, 0.94) 100%);
}

html[dir="ltr"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 14, 16, 0.82) 0%, rgba(6, 14, 16, 0.42) 36%, rgba(6, 14, 16, 0.08) 58%, rgba(6, 14, 16, 0) 78%),
    linear-gradient(180deg, rgba(6, 14, 16, 0.28) 0%, rgba(6, 14, 16, 0.05) 22%, rgba(6, 14, 16, 0.15) 48%, rgba(6, 14, 16, 0.78) 78%, rgba(6, 14, 16, 0.94) 100%);
}

.hero-frame {
  padding: clamp(6.5rem, 14vh, 9rem) var(--pad) clamp(4rem, 9vh, 6rem);
  max-width: 50rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(248, 251, 251, 0.78);
}

.hero-name {
  margin: 0;
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #f8fbfb;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-name::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 1.1rem;
  margin-inline-end: auto;
  background: linear-gradient(90deg, #c4b08a, #8a734f);
}

.hero-line {
  margin: 1.25rem 0 1.85rem;
  max-width: 32rem;
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  color: rgba(248, 251, 251, 0.9);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  inset-inline-start: var(--pad);
  bottom: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(248, 251, 251, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.2rem;
  background: rgba(248, 251, 251, 0.55);
  animation: pulse-line 1.8s ease-in-out infinite;
}

.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) forwards;
}

.reveal-hero:nth-child(1) { animation-delay: 0.08s; }
.reveal-hero:nth-child(2) { animation-delay: 0.2s; }
.reveal-hero:nth-child(3) { animation-delay: 0.34s; }
.reveal-hero:nth-child(4) { animation-delay: 0.48s; }

.signal {
  display: grid;
  gap: 0;
  padding: 0 var(--pad);
  background: var(--ink);
  color: var(--white);
}

.signal-item {
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.35rem;
}

.signal-item:last-child {
  border-bottom: 0;
}

.signal-num {
  font-family: var(--display-ar);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #d7ecec;
}

body.en .signal-num {
  font-family: var(--display-en);
}

.signal-label {
  color: rgba(248, 251, 251, 0.68);
  font-size: 0.98rem;
}

.band {
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
  max-width: 1200px;
  margin-inline: auto;
}

.band-index {
  margin: 0 0 1.4rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 600;
}

.display {
  margin: 0;
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.band-head {
  max-width: 40rem;
  margin-bottom: 2.8rem;
}

.band-head p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-layout {
  display: grid;
  gap: 2rem;
}

.about-side p {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 36rem;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ticks li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.ticks li:last-child {
  border-bottom: 1px solid var(--line);
}

.craft-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.craft-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.craft-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.craft-no {
  font-family: var(--display-en);
  font-size: 1.35rem;
  color: var(--brass);
  padding-top: 0.2rem;
}

.craft-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-family: var(--display-ar);
}

body.en .craft-list h3 {
  font-family: var(--display-en);
}

.craft-list p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.clients-wrap {
  background:
    linear-gradient(180deg, transparent, rgba(13, 85, 88, 0.05) 20%, rgba(13, 85, 88, 0.05) 80%, transparent);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 1.35rem 0;
  animation: marquee 32s linear infinite;
  font-family: var(--display-ar);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  opacity: 0.78;
}

html[dir="ltr"] .marquee-track {
  animation-name: marquee-ltr;
  font-family: var(--display-en);
}

.marquee-track span {
  white-space: nowrap;
}

.client-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.client-grid li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 600;
}

.client-grid li:last-child {
  border-bottom: 1px solid var(--line);
}

.client-grid .muted {
  font-weight: 500;
  color: var(--muted);
  font-size: 1.05rem;
}

.sys-grid {
  display: grid;
  gap: 0;
}

.sys-grid article {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.sys-grid article:last-child {
  border-bottom: 1px solid var(--line);
}

.sys-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display-ar);
  font-size: 1.3rem;
}

body.en .sys-grid h3 {
  font-family: var(--display-en);
}

.sys-grid p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.contact {
  margin: 0 var(--pad) clamp(2rem, 5vw, 3.5rem);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.4rem, 4vw, 3.5rem);
  background:
    radial-gradient(700px 420px at 80% 0%, rgba(13, 85, 88, 0.35), transparent 55%),
    linear-gradient(160deg, #0b1518 0%, #123033 55%, #0b1518 100%);
  color: var(--white);
  border-radius: 0.2rem;
}

.contact .band-index {
  color: #cbb892;
}

.contact-title {
  margin: 0;
  font-family: var(--display-ar);
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 14ch;
}

.contact-lead {
  margin: 1.2rem 0 1.8rem;
  color: rgba(248, 251, 251, 0.72);
  font-size: 1.08rem;
  max-width: 34rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-meta {
  margin: 1.6rem 0 0;
  color: rgba(248, 251, 251, 0.55);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem var(--pad) 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(1%, -1.2%, 0); }
}

@keyframes pulse-line {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }

  .signal {
    grid-template-columns: repeat(3, 1fr);
  }

  .signal-item {
    padding: 2.2rem 0;
    border-bottom: 0;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
    padding-inline-end: 1.5rem;
  }

  .signal-item:last-child {
    border-inline-end: 0;
  }

  .about-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: end;
  }

  .craft-list li {
    gap: 2rem;
    padding: 2rem 0;
  }

  .client-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .sys-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.8rem;
  }
}

@media (min-width: 1100px) {
  .hero-frame {
    padding-bottom: 5.5rem;
  }

  .craft-list li {
    grid-template-columns: 5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .reveal-hero,
  .marquee-track,
  .hero-scroll::after,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
