/* mohanugaim.com */

/* خط عام الإبل (HadiType) */
@font-face { font-family: "AmAlIbil"; src: url("fonts/TheYearofTheCamel-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "AmAlIbil"; src: url("fonts/TheYearofTheCamel-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "AmAlIbil"; src: url("fonts/TheYearofTheCamel-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; size-adjust: 112%; }

:root {
  --ar: "AmAlIbil", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --en: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --black: #000;
  --blue: #1B35B5;
  --white: #fff;
  --ink: #161616;
  --mute: #8A8A8A;
  --line: #E3E3E3;
  --ph: #EEEEEE;
  --g: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--ar); font-size: 17px; line-height: 1.85;
}
html[lang="en"] body { font-family: var(--en); font-size: 16px; line-height: 1.6; }
html[lang="ar"] [lang="en"] { font-family: var(--en); }
html[lang="en"] [lang="ar"] { font-family: var(--ar); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3 { font-weight: 700; }

/* رابط مسطّر صغير */
.u {
  display: inline-block; font-size: 14px; line-height: 1.4;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
a.u:hover, .bar nav a:hover, .card:hover h3 { opacity: .6; }

/* الشريط العلوي */
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 24px var(--g); font-size: 15px; line-height: 1.4;
}
.bar .name { font-weight: 700; font-size: 18px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.bar nav a[aria-current="page"] { border-bottom: 1.5px solid currentColor; }
body[data-page="home"] .bar { background: var(--blue); color: var(--white); }

/* الافتتاحية: مسطرة سنوات على أزرق زرقة الأمل */
.hero {
  background: var(--blue); color: var(--white);
  min-height: calc(100svh - 74px);
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); padding: 24px var(--g) 64px;
}
.tl { padding-top: 4px; }
.tl ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: clamp(10px, 2.2vh, 22px);
  border-inline-start: 1px solid rgba(255, 255, 255, .6);
}
.tl button {
  display: flex; align-items: center; gap: 14px;
  padding: 2px 0; background: none; border: 0; color: inherit; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 1;
}
.tl .tick { display: block; width: 12px; height: 1px; background: currentColor; transition: width .25s; }
.tl .y { opacity: .7; font-variant-numeric: tabular-nums; }
.tl button:disabled { cursor: default; opacity: .35; }
.tl button:not(:disabled):hover .y { opacity: 1; }
.tl button[aria-current="true"] .tick { width: 40px; }
.tl button[aria-current="true"] .y { opacity: 1; font-weight: 700; }
.feature { justify-self: start; align-self: start; max-width: 26rem; padding-top: 2vh; }
.feature .yr { margin: 0; font-size: 13px; font-weight: 700; }
.feature h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.12; margin: .25em 0 .45em; }
.feature p { font-size: 15px; margin: 0 0 1.4em; max-width: 34ch; }
html[lang="en"] .feature h1 { text-transform: uppercase; letter-spacing: -.01em; }

/* الأقسام */
.sec {
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1.5rem clamp(24px, 5vw, 80px);
  padding: clamp(56px, 8vw, 96px) var(--g);
  border-top: 1px solid var(--line);
}
.hero + .sec { border-top: 0; }
.side h2 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.15; margin: 0 0 .9rem; }
html[lang="en"] .side h2 { letter-spacing: -.01em; }

.page-head { padding: clamp(40px, 7vw, 88px) var(--g) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; margin: 0 0 .4em; }
.page-head + .sec { border-top: 0; padding-top: 16px; }

/* بطاقات الأعمال */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(24px, 4vw, 64px); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(16px, 3vw, 40px); }
.card { display: block; }
.card .ph { aspect-ratio: 3 / 2; }
.card .ph.sq { aspect-ratio: 1; }
.card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ink); }
.card h3 { font-size: 16px; line-height: 1.4; margin: 0; }
.card .meta { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.card .place { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--mute); }
.card.is-ph .cap { border-color: var(--line); }
.card.is-ph h3, .card.is-ph .meta, .card.is-ph .place { color: var(--mute); }
.card.is-ph .ph { background: repeating-linear-gradient(45deg, #F2F2F2 0 10px, #EAEAEA 10px 20px); }

.ph { position: relative; overflow: hidden; background: var(--ph); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* قوائم بسنوات */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 18rem) minmax(0, 1fr);
  gap: .5rem 1.5rem; padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.5;
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows span { color: var(--mute); }
.rows strong { font-weight: 500; }
.rows em { font-style: normal; color: var(--mute); }
.cv-group + .cv-group { margin-top: 48px; }
.cv-group h3 { font-size: 15px; margin: 0 0 10px; }

/* نصوص */
.prose p { max-width: 62ch; margin: 0 0 1.1em; }
.prose .lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.75; max-width: 40ch; }
html[lang="en"] .prose .lead { line-height: 1.45; }
.prose .u { margin-top: .4em; }

/* صفحة العمل */
.work-head { border-top: 0; padding-bottom: clamp(32px, 5vw, 56px); }
.work-head .yr { margin: 0; font-size: 13px; font-weight: 700; }
.work-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; margin: .2em 0 .35em; }
.meta-line { margin: 0; color: var(--mute); font-size: 15px; }
.hero-img { padding-inline: var(--g); }
.ph.wide { aspect-ratio: 16 / 9; }
.gal {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px); padding: 0 var(--g) clamp(56px, 8vw, 96px);
}
.gal .ph { aspect-ratio: 4 / 3; }
.stations {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(16px, 3vw, 40px);
}
.stations .ph { aspect-ratio: 4 / 3; }
.stations p { margin: 12px 0 0; font-size: 15px; display: flex; gap: 12px; }
.stations p span { color: var(--mute); min-width: 1.2em; }
.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 32px var(--g); border-top: 1px solid var(--line); font-size: 15px;
}
.pager a { display: flex; flex-direction: column; }
.pager a:last-child { text-align: end; }
.pager small { color: var(--mute); font-size: 13px; }
.pager a:hover { opacity: .6; }

/* تواصل */
.big { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.3; border-bottom: 2px solid currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }

footer#foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 28px var(--g); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute);
}
footer#foot a:hover { color: var(--ink); }

/* شاشات أصغر */
@media (max-width: 860px) {
  .sec { grid-template-columns: 1fr; }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8px; gap: 40px; }
  .tl { overflow-x: auto; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); scrollbar-width: none; }
  .tl ol { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; gap: 18px; border-inline-start: 0; }
  .tl button { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tl .tick { width: 1px; height: 10px; transition: height .25s; }
  .tl button[aria-current="true"] .tick { width: 1px; height: 22px; }
  .feature { justify-self: start; }
}
@media (max-width: 600px) {
  .two, .gal, .stations { grid-template-columns: 1fr; }
  .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bar nav { gap: 6px 20px; }
  .rows li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .rows em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .tl button { transition: none; }
}
.hero-img + .sec { border-top: 0; }

/* فيديو العمل */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
