:root {
  --white: #ffffff;
  --offwhite: #f7f5f0;
  --stone: #efede6;
  --fog: #e3dfd5;
  --charcoal: #1f2933;
  --muted: #4b5563;
  --border: #d8d3c7;
  --surface: #f6f4ef;
  --surface-2: #fbfaf7;
  --surface-3: #f0ede6;
  --walnut: #232528;
  --brand-ink: #1f2933;
  --brand-ink-invert: #ffffff;
  --accent-gold: #a38a52;
  --radius-sm: 6px;
  --radius-md: 14px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --max-width: 1120px;
  --section-pad: clamp(38px, 5.5vw, 66px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--charcoal);
  font-family: "IBM Plex Sans", "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: transparent;
}

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

h1, h2, h3 {
  font-family: "Source Sans 3", "IBM Plex Sans", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - var(--space-8), var(--max-width));
  margin: 0 auto;
}

.site-header {
  background: var(--walnut);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-5) 0;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent-gold);
}

.logo {
  height: 33px;
  width: auto;
  display: block;
}

.site-header .logo {
  height: 99px;
}

.on-dark .brand {
  color: var(--accent-gold);
}

.site-nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 17px;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--charcoal);
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.site-header .nav-link:hover {
  color: #ffffff;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  isolation: isolate;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: calc(var(--section-pad) * 1.2) 0 calc(var(--section-pad) * 0.95);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.96) 0%, rgba(246, 244, 239, 0.7) 45%, rgba(246, 244, 239, 0.98) 100%),
    url("assets/hero_graphic.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(24px, 8vw, 120px);
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 4 / 3;
  background-image: url("assets/solutions_modular.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
  opacity: 0.75;
  filter: grayscale(1) contrast(0.9);
  transform: translateY(-50%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 2.8vw, 38px);
  margin: 0 0 calc(var(--space-3) * 0.8) 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-text p {
  margin: 0 0 calc(var(--space-5) * 0.8) 0;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
  background: var(--brand-ink);
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn:hover {
  opacity: 0.92;
}

.link-secondary {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: center;
}

.text-block h2,
.section h2 {
  font-size: 20px;
  margin: 0 0 calc(var(--space-2) * 0.8) 0;
}

.text-block h2 + p,
.section h2 + p {
  margin-top: calc(var(--space-1) * 0.8);
}

.text-block p,
.section p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.text-block p + p,
.section p + p {
  margin-top: var(--space-2);
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: start;
}

.editorial-title h2 {
  margin-bottom: 0;
}

.editorial-body p {
  margin: 0;
}

.editorial-body p + p {
  margin-top: var(--space-2);
}

.section-content {
  position: relative;
  z-index: 1;
}

.core-model {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.core-model::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(246, 244, 239, 0.9) 0%, rgba(246, 244, 239, 0.55) 55%, rgba(246, 244, 239, 0.92) 100%),
    url("assets/model_structure.png");
  background-size: 100% 100%, 60%;
  background-position: center, 110% 50%;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.core-model .container {
  position: relative;
  z-index: 1;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.section h2 + .card-grid {
  margin-top: var(--space-2);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.capability h3 {
  margin: 0 0 calc(var(--space-1) * 0.8) 0;
  font-size: 15px;
}

.capability p {
  margin: 0;
  color: var(--muted);
}

#overview .container {
  column-count: 2;
  column-gap: var(--space-6);
}

#overview h2,
#overview h3 {
  column-span: all;
}

#overview p,
#overview ul {
  break-inside: avoid;
}

#overview h3 {
  margin-top: var(--space-4);
}

.release-steps {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.release-steps p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.release-steps strong {
  color: var(--charcoal);
  font-weight: 600;
}


.card {
  border: 0;
  padding: var(--space-5);
  background: var(--surface-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 220px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 1px rgba(17, 24, 39, 0.04);
}

.card h3 {
  margin: 0;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullet-list li {
  margin-bottom: var(--space-2);
}

.cta {
  background: var(--surface-2);
  border: 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.cta-text h2 {
  margin-top: 0;
}

.cta-text p {
  margin-bottom: 20px;
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: var(--space-3);
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius-sm);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 6px;
}

.hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-fallback a {
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.model-title {
  font-size: clamp(30px, 3vw, 40px);
  margin: 0 0 calc(var(--space-2) * 0.8) 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.model-logo {
  height: 96px;
  width: auto;
  display: block;
  margin: 0 auto var(--space-3);
}

.model-lede {
  max-width: 60ch;
  color: #ffffff;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 6px rgba(17, 24, 39, 0.6);
  font-weight: 600;
}

.model-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.model-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/interior_optional.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) blur(3px);
  transform: scale(1.03);
  opacity: 0.12;
}

.model-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.9);
}

.model-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  justify-items: center;
}

.model-hero ::selection {
  background: rgba(255, 255, 255, 0.65);
  color: #111827;
}

.model-cta {
  margin-top: var(--space-4);
}

.solutions::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(246, 244, 239, 0.88) 0%, rgba(246, 244, 239, 0.6) 55%, rgba(246, 244, 239, 0.9) 100%),
    url("assets/solutions_modular.png");
  background-size: 100% 100%, 75%;
  background-position: center, 80% 50%;
  background-repeat: no-repeat;
  opacity: 0.25;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

.what-we-do::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.88), rgba(246, 244, 239, 0.94)),
    url("assets/interior_optional.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

.intro-band {
  background: var(--surface-2);
}

.intro-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.88), rgba(246, 244, 239, 0.94)),
    url("assets/hero_graphic.png");
  background-size: 100% 100%, 70%;
  background-position: center, 85% 50%;
  background-repeat: no-repeat;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.who-we-work-with::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.9), rgba(246, 244, 239, 0.96)),
    url("assets/ChatGPT Image 9 يناير 2026، 10_55_28 ص.png");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

.why-it-matters::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(246, 244, 239, 0.88) 0%, rgba(246, 244, 239, 0.6) 55%, rgba(246, 244, 239, 0.9) 100%),
    url("assets/hero_graphic.png");
  background-size: 100% 100%, 65%;
  background-position: center, 20% 50%;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.9), rgba(246, 244, 239, 0.96)),
    url("assets/cta_graphic.png");
  background-size: 100% 100%, 60%;
  background-position: center, 85% 50%;
  background-repeat: no-repeat;
  opacity: 0.2;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.9), rgba(246, 244, 239, 0.96)),
    url("assets/interior_optional.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

#capabilities::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(246, 244, 239, 0.9) 0%, rgba(246, 244, 239, 0.6) 55%, rgba(246, 244, 239, 0.92) 100%),
    url("assets/solutions_modular.png");
  background-size: 100% 100%, 70%;
  background-position: center, 85% 50%;
  background-repeat: no-repeat;
  opacity: 0.2;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

#release::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 244, 239, 0.9), rgba(246, 244, 239, 0.96)),
    url("assets/cta_graphic.png");
  background-size: 100% 100%, 55%;
  background-position: center, 85% 50%;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-name {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.footer-domain a {
  color: var(--muted);
}

.footer-contact a {
  color: var(--charcoal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  #overview .container {
    column-count: 1;
  }

  .hero::after {
    display: none;
  }

  .hero-grid,
  .two-col,
  .editorial-band,
  .cta-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  html, body {
    background: var(--surface);
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .btn,
  .link-secondary {
    border: 1px solid #000;
    color: #000;
    background: #fff;
  }

  .hero::before,
  .core-model::before,
  .model-hero::before {
    opacity: 0.08;
  }
}
