/* :root{
  --ink:#10322C; --ink-900:#0A211D; --ink-700:#1B4A40; --ink-600:#235a4e;
  --gold:#C2883C; --gold-300:#E0AC63; --gold-soft:#EFD9B2;
  --paper:#F6F0E6; --paper-2:#FBF7EF; --card:#FFFFFF;
  --text:#26302C; --muted:#5E6B64; --line:rgba(16,50,44,.13); --line-2:rgba(16,50,44,.07);
  --shadow-sm:0 1px 2px rgba(10,33,29,.06),0 2px 10px rgba(10,33,29,.05);
  --shadow-md:0 10px 30px rgba(10,33,29,.10);
  --shadow-lg:0 30px 70px rgba(10,33,29,.22);
  --display:"Newsreader",Georgia,serif; --body:"Hanken Grotesk",system-ui,sans-serif; --mono:"JetBrains Mono",monospace;
  --maxw:1140px;
} */
:root {
  /* Primary Brand Colors */
  /* --ink: var(--navy2); */
  --ink: #0492c2;
  --ink-900: #025d7c;
  /* --ink-700: #0378a0; */
  --ink-700: #0492c2;
  /* --ink-600: #0488b5; */
  --ink-600: #0492c2;
  /* --background: var(--navy2); */

  /* Gold Accent */
  /* --gold: #c9a84c; */
  --gold: #f7631b;
  /* --gold-300: #e2c06a; */
  --gold-300: #f7631b;
  /* --gold-soft: #f0d080; */
  --gold-soft: #f7631b;

  /* Backgrounds */
  /* --paper: #f4f8fb; */
  /* --paper: #e0e0e0; */
  /* --paper: #ffffff; */
  /* --paper-2: #ffffff; */
  --card: #ffffff;
  --paper: #f1f5f9;
  --paper-2: #f1f5f9;

  /* Text */
  /* --text: #4a4a6a; */
  --text: black;
  /* --muted: #7a7a9a; */
  --muted: black;

  /* Borders */
  --line: rgba(4, 146, 194, 0.15);
  --line-2: rgba(4, 146, 194, 0.08);

  /* Shadows */
  --shadow-sm:
    0 1px 2px rgba(4, 146, 194, 0.06), 0 2px 10px rgba(4, 146, 194, 0.05);

  --shadow-md: 0 10px 30px rgba(4, 146, 194, 0.12);

  --shadow-lg: 0 30px 70px rgba(4, 146, 194, 0.22);

  /* Typography */
  --display: "Newsreader", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Layout */
  --maxw: 1140px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body);
  /* color: var(--text); */
  color: black;
  background: var(--paper-2);
  /* background: #f3f8fa !important; */
  /* background: #1d1f21 !important; */
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 1rem;
}
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  /* color: var(--gold); */
  color: #f7631b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  /* background: var(--gold); */
  background: #0492c2;
  opacity: 0.7;
}
.rule {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* background: rgba(251, 247, 239, 0.82); */
  background: #0492c2;
  /* background: linear-gradient(160deg, var(--ink) 5%, var(--ink-900) 70%); */
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mono-mark {
  width: 38px;
  height: 38px;
  /* border: 1.5px solid var(--gold); */
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  /* color: var(--ink); */
  color: #f7631b;
  font-size: 16px;
  flex: none;
}
.brand b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  /* color: var(--ink); */
  color: #ffffff;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  /* color: var(--ink-700); */
  color: black;
  position: relative;
}
.nav-links a:hover {
  /* color: var(--gold); */
  color: #ffffff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-gold {
  /* background: linear-gradient(180deg, var(--gold-300), var(--gold)); */
  /* background-image: linear-gradient(to bottom, #f7631b); */
  background: #0492c2;
  color: #ffffff;
  /* box-shadow: 0 6px 16px rgba(194, 136, 60, 0.3); */
  box-shadow: 0 5px 15px rgba(4, 146, 194, 0.3); /* ظل ناعم بنفس لون الزر */
}
.btn-gold:hover {
  /* box-shadow: 0 10px 26px rgba(194, 136, 60, 0.42);
  transform: translateY(-3px); */
  /* background-image: linear-gradient(to bottom, #f7631b, #0492c2); */
  background: #f7631b;
  transform: translateY(-3px); /* رفعة بسيطة تعطي شعوراً بالتفاعل */
  box-shadow: 0 5px 15px rgba(4, 146, 194, 0.3); /* ظل ناعم بنفس لون الزر */
  /* color: var(--bs-light) !important; */
  color: white !important;
}
.btn-ink {
  /* background: var(--ink); */
  /* color: #f2ede2; */
  /* background-image: linear-gradient(to bottom, #0492c2); */
  background: #0492c2;
  color: #ffffff;
  /* box-shadow: 0 6px 16px rgba(194, 136, 60, 0.3); */
  box-shadow: 0 5px 15px rgba(4, 146, 194, 0.3); /* ظل ناعم بنفس لون الزر */
}
.btn-ink:hover {
  /* background: var(--ink-700); */
  /* background-image: linear-gradient(to bottom, #f7631b, #0492c2); */
  background: #f7631b;
  transform: translateY(-3px); /* رفعة بسيطة تعطي شعوراً بالتفاعل */
  box-shadow: 0 5px 15px rgba(4, 146, 194, 0.3); /* ظل ناعم بنفس لون الزر */
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.nav .btn {
  padding: 10px 20px;
  font-size: 14px;
}
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.mobile-menu {
  display: none;
}

@media (max-width: 414px) {
  .brand .mono-mark {
    font-size: 14px;
  }
  .brand b {
    font-size: 13px;
  }
}
/* زر تبديل الثيم */
/* .theme-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line); */
/* background:var(--card); */
/* background: #0492c2; */
/* background: #f7631b; */
/* color:var(--ink); */
/* color: white;
  cursor: pointer;
  font-size: 15px;
  transition:
    background 0.15s,
    color 0.15s;
} */
/* .theme-btn:hover { */
/* background:#eef3f8; */
/* background: #f7631b; */
/* background: #0492c2;
} */

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      60% 60% at 88% 8%,
      rgba(194, 136, 60, 0.1),
      transparent 70%
    ),
    var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(16, 50, 44, 0.1) 1px,
    transparent 1.4px
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7),
    transparent 70%
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 54px;
  align-items: center;
  padding: 74px 0 80px;
}
.hero h1 {
  /* قُلّص الحد الأقصى قليلًا ليسع الاسم كاملًا في سطر واحد */
  font-size: clamp(24px, 5.2vw, 38px);
  white-space: nowrap;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero h1 .last {
  /* كان block فينزل "Bathily" لسطر جديد. inline يبقي الاسم في سطر واحد. */
  display: inline;
  font-style: italic;
  font-weight: 400;
  /* color: var(--ink-700); */
  color: #f7631b;
}
.roles {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.roles span {
  position: relative;
  padding-inline-end: 16px;
}
.roles span:not(:last-child)::after {
  content: "·";
  position: absolute;
  inset-inline-end: 0;
  color: var(--gold);
}
.hero-lede {
  /* font-size: clamp(16px, 2vw, 17px); */
  font-size: clamp(16px, 1vw, 12px);
  color: var(--text);
  max-width: 46ch;
  margin: 26px 0 0;
  line-height: 1.55;
  text-align: justify;
}
.hero-lede .em {
  font-family: var(--display);
  font-style: italic;
  /* color: var(--ink); */
  color: #f7631b;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.audiences {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.audiences small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* color: var(--muted); */
  color: #f7631b;
  display: block;
  margin-bottom: 10px;
}
.audiences .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 13.5px;
  color: var(--ink-700);
  /* background: rgba(16, 50, 44, 0.05); */
  background: rgba(16, 50, 44, 0.02);
  /* border: 1px solid var(--line-2); */
  border: 1px solid #0492c2;
  padding: 6px 13px;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .hero-grid {
    /* display: block; */
    padding: 40px 20px 45px;
  }

  .hero h1 {
    font-size: clamp(28px, 11vw, 32px);
    line-height: 1;
    margin-bottom: 0;
  }

  .roles {
    margin-top: 14px;
    gap: 5px 10px;
    font-size: 10px;
  }

  .roles span {
    padding-inline-end: 10px;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.45;
    margin: 16px 0 0;
    max-width: 100%;
  }

  .hero-cta {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-start;
  }

  .hero-cta .btn {
    width: auto;
    padding: 9px 15px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .audiences {
    margin-top: 22px;
    padding-top: 18px;
  }

  .audiences small {
    margin-bottom: 7px;
  }

  .audiences .row {
    gap: 6px;
  }

  .chip {
    font-size: 12px;
    padding: 5px 10px;
  }
}
/* seal emblem */
/* .seal-wrap {
  display: flex;
  justify-content: center;
}
.seal {
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  position: relative;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  50% {
    transform: translateY(-10px);
  }
}
.seal .spin {
  animation: spin 40s linear infinite;
  transform-origin: center;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.seal text {
  font-family: var(--mono);
  font-size: 7.4px;
  letter-spacing: 0.34em;
  fill: var(--ink-700);
  text-transform: uppercase;
}
.seal .mono {
  font-family: var(--display); */
/* كانت 52px ضخمة داخل الدائرة */
/* font-size: 38px;
  font-weight: 500;
  fill: var(--ink);
  font-style: italic;
}
.seal .est {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.3em; */
/* fill: var(--gold); */
/* fill: #f7631b;
} */
/* ===== Mobile / responsive ===== */

/* Tablets and small laptops */
/* @media (max-width: 768px) {
  .seal {
    width: min(300px, 72vw);
    height: min(300px, 72vw);
  }
} */

/* Phones */
/* @media (max-width: 480px) {
  .seal {
    width: min(230px, 66vw);
    height: min(230px, 66vw);
    animation-duration: 9s; */
/* gentler float on mobile */
/* margin-top: 15px;
  }
  .seal .est {
    letter-spacing: 0.22em;
  }  */
/* keeps FR·EN from crowding */
/* } */

/* Very small phones */
/* @media (max-width: 360px) {
  .seal {
    width: min(190px, 74vw);
    height: min(190px, 74vw);
  }
} */

/* Respect users who prefer less motion (also saves battery) */
/* @media (prefers-reduced-motion: reduce) {
  .seal,
  .seal .spin {
    animation: none;
  }
} */
/* seal emblem */
.seal-wrap {
  display: flex;
  justify-content: center;
}
.seal {
  /* width: min(340px, 80vw);
  height: min(340px, 80vw); */
  width: min(240px, 60vw);
  height: min(240px, 60vw);
  position: relative;
  top: -50px;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  50% {
    transform: translateY(-10px);
  }
}
.seal .spin {
  animation: spin 40s linear infinite;
  transform-origin: center;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.seal text {
  font-family: var(--mono);
  font-size: 9.4px;
  letter-spacing: 0.34em;
  fill: var(--ink-700);
  text-transform: uppercase;
}
.seal .mono {
  font-family: var(--display);
  /* كانت 52px ضخمة داخل الدائرة */
  font-size: 38px;
  /* font-size: 52px; */
  font-weight: 500;
  fill: var(--ink);
  /* fill: #000; */
  font-style: italic;
}
.seal .est {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.3em;
  /* fill: var(--gold); */
  fill: #f7631b;
}
/* ===== Mobile / responsive ===== */

/* Tablets and small laptops */

@media (max-width: 768px) {
  .seal {
    width: min(300px, 72vw);
    height: min(300px, 72vw);
  }
  /* .seal {
    top: -80px;
    left: -30px;
  } */
}

/* Phones */
@media (max-width: 480px) {
  .seal {
    width: min(230px, 66vw);
    height: min(230px, 66vw);
    animation-duration: 9s; /* gentler float on mobile */
    margin-top: 15px;
  }
  .seal .est {
    letter-spacing: 0.22em;
  } /* keeps FR·EN from crowding */
}

/* Very small phones */
@media (max-width: 360px) {
  .seal {
    width: min(190px, 74vw);
    height: min(190px, 74vw);
  }
}

/* Respect users who prefer less motion (also saves battery) */
@media (prefers-reduced-motion: reduce) {
  .seal,
  .seal .spin {
    animation: none;
  }
}
/* generic section */
.section {
  /* المسافة بين الأقسام كانت 88px علويًا وسفليًا */
  padding: 52px 0;
  border-top: 1px solid var(--line-2);
}
.section-title {
  font-size: clamp(20px, 3.4vw, 35px);
  /* font-size: clamp(26px, 7vw, 42px); */

  font-weight: 500;
  letter-spacing: -0.02em;
}
.section-title .it {
  font-size: clamp(30px, 3.4vw, 39px);
  font-style: italic;
  color: var(--ink-700);
}
/* .lead { */
/* font-size: clamp(16px, 1vw, 12px); */
/* font-size: clamp(14px, 1vw, 16px); */
/* color: var(--text); */
/* color: black;
  max-width: 62ch;
  line-height: 1.6;
  text-align: justify;
} */
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  text-align: justify;
}
/* .muted { */
/* font-size: clamp(16px, 1vw, 12px); */
/* font-size: clamp(13px, 1vw, 15px);
  color: var(--muted);
} */
.lead {
  font-size: clamp(14px, 1.2vw, 17px);
  color: black;
  max-width: 62ch;
  line-height: 1.6;
  text-align: justify;
}

.muted {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--muted);
  line-height: 1.6;
}
/* =========================
   Mobile Responsive
   ========================= */

@media (max-width: 768px) {
  .section {
    padding: 55px 20px;
  }

  .section-title {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .section-title .it {
    font-size: clamp(27px, 7vw, 36px);
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
    text-align: left;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .muted {
    font-size: 14px;
    line-height: 1.6;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 45px 16px;
  }

  .section-title {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .section-title .it {
    font-size: 28px;
  }

  .lead {
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    text-align: justify;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .muted {
    font-size: 13px;
    line-height: 1.6;
  }
}
/* approach pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  /* display: flex; */
  /* gap: 18px; */
}
.pillar {
  background: var(--paper-2);
  padding: 28px;
  display: flex;
  gap: 18px;
  transition: background 0.25s;
}
.pillar:hover {
  /* background: #fff; */
  background: #0492c2;
}
.pillar .n {
  font-family: var(--mono);
  font-size: 13px;
  color: #f7631b;
  font-weight: 500;
  flex: none;
  padding-top: 5px;
}
.pillar .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-bottom: 10px;
}
.pillar .ic svg {
  width: 23px;
  height: 23px;
}

.pillar .ic svg:hover {
  color: #ffffff;
  /* color: #0492c2; */
}
.pillar h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pillar p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
/* =========================
   Tablet Responsive
   ========================= */

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 2px;
    border-radius: 14px;
  }

  .pillar {
    padding: 22px 20px;
    gap: 14px;
  }

  .pillar .n {
    font-size: 12px;
    padding-top: 4px;
  }

  .pillar .ic {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .pillar .ic svg {
    width: 21px;
    height: 21px;
  }

  .pillar h3 {
    font-size: 17px;
    margin-bottom: 5px;
  }

  .pillar p {
    font-size: 14px;
    line-height: 1.55;
  }
}
/* =========================
   Small Mobile
   ========================= */

@media (max-width: 480px) {
  .pillars {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .pillar {
    padding: 18px 16px;
    gap: 10px;
  }

  .pillar .n {
    font-size: 11px;
    padding-top: 3px;
  }

  .pillar .ic {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    margin-bottom: 6px;
  }

  .pillar .ic svg {
    width: 19px;
    height: 19px;
  }

  .pillar h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .pillar p {
    font-size: 13px;
    line-height: 1.55;
  }
}
/* vision pull quote */
.vision {
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  padding: 64px;
  overflow: hidden;
  text-align: center;
}
.vision::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(16, 50, 44, 0.1) 1px,
    transparent 1.4px
  );
  background-size: 24px 24px;
}
.vision > * {
  position: relative;
}
.vision .q {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.25;
  max-width: 22ch;
  margin: 14px auto 0;
  letter-spacing: -0.01em;
}
.vision .q .hl {
  font-size: clamp(26px, 4vw, 35px);
  /* color: var(--gold); */
  color: #f7631b;
  font-style: normal;
  font-weight: 500;
}
.vision .by {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* color: var(--muted); */
  color: black;
}

/* flagship project */
.flagship {
  background: linear-gradient(160deg, var(--ink) 5%, var(--ink-900) 70%);
  /* background: var(--ink-700); */
  color: #e8ede9;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}
.flagship::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  /* background:
    radial-gradient(
      40% 50% at 90% 0%,
      rgba(224, 172, 99, 0.16),
      transparent 60%
    ),
    radial-gradient(
      50% 50% at 0% 100%,
      rgba(224, 172, 99, 0.08),
      transparent 60%
    ); */
  background: radial-gradient(50% 60% at 90% 0%, #0492c2, transparent 60%);
  /* radial-gradient(60% 60% at 0% 100%, #f7631b, transparent 60%); */
}
.flag-orbit {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  /* border: 1px solid rgba(224, 172, 99, 0.18); */
  border: 1px solid #f7631b;
  border-radius: 50%;
  pointer-events: none;
}
.flag-orbit::after {
  content: "";
  position: absolute;
  inset: 46px;
  /* border: 1px solid rgba(224, 172, 99, 0.12); */
  border: 1px solid #f7631b;
  border-radius: 50%;
}
.flag-inner {
  position: relative;
  /* padding: 64px; */
  padding: 32px 18px;
}
.flagship .eyebrow {
  /* color: var(--gold-300); */
  /* color: #f7631b; */
  color: white;
}
.flagship .eyebrow::before {
  /* background: var(--gold-300); */
  background: white;
}
.flagship h2 {
  color: #fff;
  /* font-size: clamp(30px, 4.6vw, 42px); */
  font-size: clamp(20px, 3.4vw, 35px);

  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.flagship h2 .it {
  font-style: italic;
  color: var(--gold-300);
}
.flagship .intro {
  /* color: #bfcec7; */
  color: white;
  font-size: 17px;
  max-width: 54ch;
  margin: 20px 0 0;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.feat {
  /* background: rgba(255, 255, 255, 0.04); */
  background: rgba(16, 50, 44, 0.02);
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  border: 1px solid #f7631b;
  border-radius: 14px;
  padding: 22px;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.feat:hover {
  transform: translateY(-4px);
  /* background: rgba(255, 255, 255, 0.07); */
  background: rgba(10, 172, 242, 0.07);
  /* border-color: rgba(224, 172, 99, 0.4); */
  border-color: #f7631b;
}
.feat .ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  /* background: rgba(224, 172, 99, 0.14); */
  background: #f7631b;
  /* color: var(--gold-300); */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feat .ic svg {
  width: 21px;
  height: 21px;
}
.feat b {
  display: block;
  color: #fff;
  font-size: 16.5px;
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 5px;
}
.feat p {
  margin: 0;
  font-size: 14px;
  /* color: #a9bab2; */
  color: #fff;
}
.outcome {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.outcome svg {
  width: 26px;
  height: 26px;
  /* color: var(--gold-300); */
  color: #f7631b;
  flex: none;
  margin-top: 3px;
}
.outcome p {
  margin: 0;
  /* color: #d3ded8; */
  color: #ffffff;
  font-size: 17px;
  font-family: var(--display);
  font-style: italic;
  line-height: 1.5;
}
/* =========================
   Flagship - Tablet
   ========================= */

@media (max-width: 768px) {
  .flagship {
    border-radius: 20px;
  }

  .flag-inner {
    padding: 45px 28px;
  }

  .flagship h2 {
    font-size: clamp(25px, 6vw, 32px);
    line-height: 1.2;
    max-width: 100%;
  }

  .flagship .intro {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
    margin-top: 15px;
  }

  .flag-orbit {
    width: 260px;
    height: 260px;
    top: -60px;
    right: -60px;
  }

  .flag-orbit::after {
    inset: 34px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .feat {
    padding: 18px;
  }

  .feat .ic {
    width: 40px;
    height: 40px;
    margin-bottom: 11px;
  }

  .feat b {
    font-size: 16px;
  }

  .feat p {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .outcome {
    margin-top: 28px;
    padding-top: 22px;
    gap: 12px;
  }

  .outcome svg {
    width: 23px;
    height: 23px;
  }

  .outcome p {
    font-size: 15px;
    line-height: 1.5;
  }
}
/* =========================
   Flagship - Small Mobile
   ========================= */

@media (max-width: 480px) {
  .flagship {
    border-radius: 16px;
  }

  .flag-inner {
    padding: 32px 18px;
  }

  .flagship h2 {
    font-size: 24px;
    line-height: 1.25;
    max-width: 100%;
  }

  .flagship .intro {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
    text-align: justify;
  }

  .flag-orbit {
    width: 190px;
    height: 190px;
    top: -45px;
    right: -45px;
  }

  .flag-orbit::after {
    inset: 25px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 25px;
  }

  .feat {
    padding: 16px;
    border-radius: 11px;
  }

  .feat .ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin-bottom: 9px;
  }

  .feat .ic svg {
    width: 18px;
    height: 18px;
  }

  .feat b {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .feat p {
    font-size: 13px;
    line-height: 1.5;
  }

  .outcome {
    margin-top: 24px;
    padding-top: 18px;
    gap: 10px;
  }

  .outcome svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
  }

  .outcome p {
    font-size: 14px;
    line-height: 1.55;
    text-align: justify;
    letter-spacing: 0.5px;
  }
}
/* expertise differentiators */
.diff-list {
  display: grid;
  gap: 0;
}
.diff {
  display: grid;
  /* grid-template-columns: auto 1fr auto; */
  grid-template-columns: 24px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.diff:first-child {
  border-top: 1px solid var(--line);
}
.diff .n {
  font-family: var(--mono);
  font-size: 13px;
  /* color: var(--gold); */
  color: #f7631b;
  font-weight: 500;
}
.diff p {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  /* color: black; */
  line-height: 1.35;
}
.diff .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  /* background: var(--gold); */
  background: #f7631b;
  opacity: 0.5;
  justify-self: end;
}

/* =========================
   Difference List - Tablet
   ========================= */

@media (max-width: 768px) {
  .diff {
    grid-template-columns: 30px 1fr auto;
    gap: 14px;
    padding: 20px 0;
    align-items: center;
  }

  .diff .n {
    font-size: 12px;
  }

  .diff p {
    font-size: 19px;
    line-height: 1.45;
  }

  .diff .dot {
    width: 8px;
    height: 8px;
  }
}
/* =========================
   Difference List - Mobile
   ========================= */

@media (max-width: 480px) {
  .diff-list {
    width: 100%;
  }

  .diff {
    grid-template-columns: 24px 1fr auto;
    gap: 10px;
    padding: 16px 0;
    align-items: start;
  }

  .diff .n {
    font-size: 11px;
    padding-top: 3px;
  }

  .diff p {
    font-size: 14px;
    line-height: 1.5;
  }

  .diff .dot {
    width: 7px;
    height: 7px;
    margin-top: 7px;
  }
}
/* tech */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.tech {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s,
    border-color 0.2s;
}
.tech:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.tech .d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* background: var(--gold); */
  background: #f7631b;
}
/* =========================
   Tech Pills - Tablet
   ========================= */

@media (max-width: 768px) {
  .tech-pills {
    gap: 8px;
    margin-top: 8px;
  }

  .tech {
    gap: 7px;
    font-size: 14px;
    padding: 9px 14px;
    border-radius: 10px;
  }

  .tech .d {
    width: 7px;
    height: 7px;
    flex: none;
  }
}
/* =========================
   Tech Pills - Mobile
   ========================= */

@media (max-width: 480px) {
  .tech-pills {
    gap: 6px;
    margin-top: 6px;
  }

  .tech {
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    /* padding: 7px 11px; */
    padding: 6px 9px;
    border-radius: 9px;
  }

  .tech .d {
    width: 6px;
    height: 6px;
  }
}
/* contact */
.contact {
  background: var(--paper);
  border-radius: 26px;
  padding: 66px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(16, 50, 44, 0.1) 1px,
    transparent 1.4px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
}
.contact > * {
  position: relative;
}
.contact h2 {
  font-size: clamp(30px, 4.6vw, 39px);
  font-weight: 500;
}
.contact h2 .it {
  font-style: italic;
  color: var(--ink-700);
}
.contact p {
  font-size: 18px;
  color: var(--text);
  max-width: 46ch;
  margin: 18px auto 30px;
}
.btns {
  position: relative;
  z-index: 1000;
}
.contact .btns {
  /* display: flex; */
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1001;
  pointer-events: auto !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btns .btn {
  transition: all 0.3s ease;
  /* background: #0492c2; */
}
/* Active button */

.btns .btn.active {
  /* background: #d4af37; */
  background: #f7631b;
  color: #111;
  /* border-color: #d4af37; */
  border-color: #0492c2;
  transform: translateY(-2px);
  /* box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35); */
  box-shadow: 0 8px 20px #f7631b;
}

/* Optional hover */

.btns .btn:hover {
  transform: translateY(-2px);
  color: #f7631b;
}
/* .contact .btn-gold {
  background: linear-gradient(180deg, #f7631b, #0492c2);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(4, 146, 194, 0.3); 
}

.contact .btn-ghost {
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(160deg, var(--ink) 5%, var(--ink-900) 70%);
} */
.lang-note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* color: var(--muted); */
  color: #f7631b;
}
.lang-note b {
  /* color: var(--gold); */
  color: #f7631b;
}
/* ================================
   Contact Section - Responsive
   ================================ */

@media (max-width: 768px) {
  .contact {
    padding: 45px 25px;
    border-radius: 20px;
  }

  .contact h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .contact p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
    margin: 15px auto 25px;
  }

  .contact .btns {
    display: flex;
    width: 100%;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }

  .btns .btn {
    min-width: 140px;
    padding: 11px 20px;
    font-size: 14px;
  }

  .lang-note {
    margin-top: 25px;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.12em;
  }
}

/* ================================
   Small Mobile
   ================================ */

@media (max-width: 480px) {
  .contact {
    padding: 35px 18px;
    border-radius: 18px;
  }

  .contact h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .contact p {
    font-size: 15px;
    line-height: 1.65;
    margin: 14px auto 22px;
  }

  .contact .btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btns .btn {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    padding: 12px 18px;
    font-size: 14px;
  }

  .lang-note {
    margin-top: 22px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

/* ================================
   Extra Small Mobile
   ================================ */

@media (max-width: 375px) {
  .contact {
    padding: 30px 15px;
    border-radius: 16px;
  }

  .contact h2 {
    font-size: 25px;
  }

  .contact p {
    font-size: 14px;
    line-height: 1.6;
  }

  .contact .btns {
    gap: 8px;
  }

  .btns .btn {
    max-width: 230px;
    padding: 10px 15px;
    font-size: 13px;
  }

  .lang-note {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

/* footer */
.footer {
  background: var(--ink-700) !important;
  /* background: #0492c2 !important; */
  /* color: #9db1a8; */
  color: white;
  padding: 54px 0 30px;
  margin-top: 8px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .brand b {
  color: #fff;
  /* color: black; */
}
.footer .brand .mono-mark {
  /* color: #fff; */
  color: #f7631b;
  /* border-color: var(--gold-300); */
  border-color: #ffffff;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  /* color: #9db1a8; */
  color: black;
}
.footer-links a:hover {
  /* color: var(--gold-300); */
  color: #ffffff;
}
.footer-bottom {
  padding-top: 22px;
  font-size: 13px;
  /* color: #75887f; */
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 54px 0 50px;
  }
  .seal-wrap {
    order: -1;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .flag-inner,
  .vision,
  .contact {
    padding: 40px 26px;
  }
  .section {
    padding: 62px 0;
  }
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .nav .btn-gold {
    display: none;
  }
  .hamburger {
    display: flex;
    color: white;
  }
  /* .mobile-menu.open {
    display: block;
    position: fixed;
    inset: 73px 0 0;
    background: var(--paper-2);
    z-index: 45;
    padding: 28px;
  } */
  .mobile-menu.open {
    display: block;
    position: fixed;
    inset: 73px 0 0;
    background: var(--paper-2);
    /* كان z-index:45 فيغطّيها الهيدر أحيانًا، وبلا overflow فلا تمرير
       للروابط الزائدة عن ارتفاع الشاشة. */
    z-index: 900;
    padding: 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .mobile-menu.open nav {
    display: grid;
    gap: 4px;
  }

  /* .mobile-menu.open a {
    padding: 15px 6px;
    font-size: 15px;
    font-family: var(--display);
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
  } */
  .mobile-menu.open a {
    padding: 15px 6px;
    font-size: 16px;
    font-family: var(--display);
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
  }

  .mobile-menu.open .btn {
    width: 35%;
    margin-top: 18px;
    /* padding: 15px; */
    padding: 5px;
    color: white;
    font-size: 14px;
  }
  .diff {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .diff .dot {
    display: none;
  }
  .container {
    padding: 0 20px;
  }
}
@media (max-width: 414) {
  .nav-links {
    display: none;
  }
  .nav .btn-gold {
    display: none;
  }
  .hamburger {
    display: flex;
    color: white;
  }
  .mobile-menu.open {
    display: block;
    position: fixed;
    inset: 73px 0 0;
    background: var(--paper-2);
    z-index: 45;
    padding: 28px;
  }
  .mobile-menu.open nav {
    display: grid;
    gap: 4px;
  }
  .mobile-menu.open a {
    padding: 15px 6px;
    font-size: 15px;
    font-family: var(--display);
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
  }
  .mobile-menu.open .btn {
    width: 100%;
    margin-top: 18px;
    padding: 15px;
  }
  .diff {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .diff .dot {
    display: none;
  }
  .container {
    padding: 0 20px;
  }
}
@media print {
  .nav,
  .hamburger,
  .mobile-menu,
  .hero-cta,
  .contact .btns,
  .footer-links,
  .seal .spin {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 12px;
  }
  .section {
    padding: 18px 0;
    border: none;
    page-break-inside: avoid;
  }
  .flagship,
  .vision,
  .contact {
    box-shadow: none;
  }
  * {
    animation: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ============================================================
   طبقة الاستجابة — كل المقاسات
   المشكلة الأساسية عند 1024px: الصفحة تستخدم .container.px-0
   التي تلغي الحشو الجانبي، فيلتصق المحتوى بحافة الشاشة متى كان
   عرضها أقل من --maxw. نعيد حشوًا جانبيًا آمنًا في كل الأحوال.
   ============================================================ */
.container,
.container.px-0 {
  padding-inline: clamp(16px, 4vw, 28px);
  max-width: var(--maxw);
  margin-inline: auto;
}

/* شاشات متوسطة (أجهزة لوحية وشاشات 1024) */
@media (max-width: 1024px) and (max-width: 1100px) {
  .seal {
    /* width: min(230px, 72vw);
    height: min(230px, 72vw); */
    width: min(240px, 60vw);
    height: min(240px, 60vw);
  }
  .seal {
    top: -80px;
    left: -20px;
  }
  .hero-grid {
    gap: 28px;
  }
  .seal-wrap {
    transform: scale(0.88);
  }
  .section {
    padding: 44px 0;
  }
}

/* لوحي عمودي */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .seal-wrap {
    margin-inline: auto;
    transform: scale(0.8);
  }
  .section {
    padding: 38px 0;
  }
  .seal {
    top: -30px;
    left: 10px;
  }
}

/* هواتف */
@media (max-width: 640px) {
  .section {
    padding: 32px 0;
  }
  .hero h1 {
    white-space: normal;
  } /* يُسمح بالالتفاف على الضيق جدًا */
  .seal-wrap {
    transform: scale(0.72);
  }
  .seal .mono {
    font-size: 34px;
  }
}

/* هواتف صغيرة */
@media (max-width: 400px) {
  .container,
  .container.px-0 {
    padding-inline: 14px;
  }
  .section {
    padding: 26px 0;
  }
  .seal-wrap {
    transform: scale(0.64);
  }
}

/* لا تمرير أفقي في أي مقاس */
html {
  overflow-x: clip;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
/* ============================================================
   استجابة الموبايل — إصلاحات
   ① أزرار اللغة (.dnav-lang) داخل <nav class="nav-links"> الذي
      يُخفى على الموبايل، فتختفي معه. نُظهرها بشكل مستقل.
   ② زر "Get in touch" كان مخفيًا أيضًا؛ نُبقيه مصغّرًا.
   ③ القائمة المنسدلة تُمرَّر (أُضيف overflow-y أعلاه).
   ============================================================ */
@media (max-width: 680px) {
  /* شريط اللغة داخل .nav-links، والابن لا يظهر إن كان أبوه مخفيًا.
     لذا نُبقي الحاوية ظاهرة ونُخفي روابطها فقط. */
  .nav-links {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .nav-links > a {
    display: none !important;
  }
  .nav .dnav-lang {
    display: inline-flex !important;
    position: static;
    margin-inline-start: auto;
    transform: scale(0.92);
  }
  /* اجعل حاوية الهيدر تتيح ظهوره */
  .nav .wrap,
  .nav .container,
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  /* زر الإجراء يظهر مصغّرًا بدل الاختفاء */
  .nav .btn-gold {
    display: inline-flex !important;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hamburger {
    flex: 0 0 auto;
  }
}

/* شاشات ضيقة جدًا: أخفِ زر الإجراء من الهيدر (موجود داخل القائمة) */
@media (max-width: 430px) {
  .nav .btn-gold {
    display: none !important;
  }
  .nav .dnav-lang {
    transform: scale(0.86);
  }
}

/* القائمة المنسدلة: مساحة سفلية حتى يظهر آخر رابط فوق حواف الهاتف */
.mobile-menu.open nav {
  padding-bottom: 40px;
}

/* ============================================================
   طبقة الاستجابة — كل المقاسات
   المشكلة الأساسية عند 1024px: الصفحة تستخدم .container.px-0
   التي تلغي الحشو الجانبي، فيلتصق المحتوى بحافة الشاشة متى كان
   عرضها أقل من --maxw. نعيد حشوًا جانبيًا آمنًا في كل الأحوال.
   ============================================================ */
.container,
.container.px-0 {
  padding-inline: clamp(16px, 4vw, 28px);
  max-width: var(--maxw);
  margin-inline: auto;
}

/* شاشات متوسطة (أجهزة لوحية وشاشات 1024) */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 28px;
  }
  .seal-wrap {
    transform: scale(0.88);
  }
  .section {
    padding: 44px 0;
  }
}

/* لوحي عمودي */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .seal-wrap {
    margin-inline: auto;
    transform: scale(0.8);
  }
  .section {
    padding: 38px 0;
  }
}

/* هواتف */
@media (max-width: 640px) {
  .section {
    padding: 32px 0;
  }
  .hero h1 {
    white-space: normal;
  } /* يُسمح بالالتفاف على الضيق جدًا */
  .seal-wrap {
    transform: scale(0.72);
  }
  .seal .mono {
    font-size: 34px;
  }
}

/* هواتف صغيرة */
@media (max-width: 400px) {
  .container,
  .container.px-0 {
    padding-inline: 14px;
  }
  .section {
    padding: 26px 0;
  }
  .seal-wrap {
    transform: scale(0.64);
  }
}

/* لا تمرير أفقي في أي مقاس */
html {
  overflow-x: clip;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}

/* ============================================================
   إصلاح نطاق الهيدر 681px – 960px
   css/style.css تُخفي .nav-links وتُظهر البرجر عند ≤960px، بينما
   قواعد إظهار أزرار اللغة والثيم كانت عند ≤680px فقط — فتختفي
   في ما بينهما (ومنها مقاس 768). نوحّد النطاق هنا.
   ============================================================ */
@media (max-width: 960px) {
  /* الحاوية تبقى ظاهرة لأن أزرار اللغة بداخلها، ونُخفي روابطها فقط */
  .nav-links {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
  }
  .nav-links > a {
    display: none !important;
  }

  .nav .dnav-lang,
  .nav .theme-btn {
    display: inline-flex !important;
    flex: 0 0 auto;
  }
  .hamburger {
    display: flex !important;
    flex: 0 0 auto;
  }

  /* زر الإجراء يظهر مصغّرًا */
  .nav .btn-gold {
    display: inline-flex !important;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* شاشات ضيقة: الاكتفاء باللغة والثيم والبرجر */
@media (max-width: 430px) {
  .nav .btn-gold {
    display: none !important;
  }
  .nav .dnav-lang {
    transform: scale(0.88);
  }
}

/* القائمة المنسدلة كانت تُفتح عند ≤680px فقط، فعند 768 يُضاف
   class="open" دون أي تنسيق فيبقى ارتفاعها صفرًا. نوحّد النطاق 960. */
@media (max-width: 960px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: block;
    position: fixed;
    inset: 73px 0 0;
    background: var(--paper-2);
    z-index: 900;
    padding: 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .mobile-menu.open nav {
    display: grid;
    gap: 4px;
    padding-bottom: 40px;
  }
  .mobile-menu.open a {
    padding: 15px 6px;
    font-size: 20px;
    font-family: var(--display);
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
  }
  .mobile-menu.open .btn {
    width: 100%;
    margin-top: 18px;
    padding: 15px;
  }
}
/* ============================================================
   توازن الهوامش
   ① الشاشات الصغيرة: كان الحشو 15px فقط فيبدو النص ملتصقًا بالحواف.
   ② الشاشات الكبيرة: كان --maxw ثابتًا 1140px فيترك فراغًا يصل
      إلى 418px على 1920 — نوسّعه تدريجيًا مع عرض الشاشة.
   ============================================================ */
:root {
  --maxw: min(1480px, 92vw);
}

.container,
.container.px-0 {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 48px);
}

@media (max-width: 640px) {
  .container,
  .container.px-0 {
    padding-inline: 22px;
  }
}
@media (max-width: 400px) {
  .container,
  .container.px-0 {
    padding-inline: 18px;
  }
}
@media (min-width: 1700px) {
  :root {
    --maxw: 1560px;
  }
}

/* الأجهزة اللوحية والشاشات المتوسطة: 92vw يترك هامشًا واسعًا
   دون داعٍ، فنوسّع المحتوى في هذا النطاق تحديدًا. */
@media (min-width: 900px) and (max-width: 1300px) {
  :root {
    --maxw: 96vw;
  }
  .container,
  .container.px-0 {
    padding-inline: clamp(24px, 3vw, 34px);
  }
}
