/* Mitrone — صفحة «من نحن» (page-templates/about.php). فوق home-v2.css (الهيدر والفوتر والـtokens).
   المقاسات مأخوذة من المرجع design/refs/about/Mitrone-About-Preview.webp (1024px → 1440px = ×1.406). */

.m-about { --ab-lime: #C7EF36; --ab-ink: #0B1F38; --ab-copy: #1C2733; --ab-col: 204px; overflow-x: clip; }
.m-about main.frame { gap: 0; padding-block: 0 64px; }

/* عنوان صغير بشرطة ليمونية على يمينه */
.ab-kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--deep); font-weight: 700; font-size: 1.5rem; line-height: 1.5; }
.ab-kicker::before { content: ""; flex: none; inline-size: 30px; block-size: 4px; border-radius: 4px; background: var(--ab-lime); }

/* ===== ١. الهيرو (مفتوح على خلفية الصفحة، من غير حاوية) ===== */
.ab-hero {
  display: grid; grid-template-columns: minmax(0, 485px) minmax(0, 1fr); align-items: center; column-gap: 72px;
  padding-block: 40px 56px; padding-inline: 60px 40px;
}
.ab-hero__copy { display: grid; justify-items: start; }
.ab-hero h1 { margin: 22px 0 0; color: var(--ab-ink); font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 1.2rem + 3.3vw, 4.375rem); line-height: 1.25; }
.ab-hero__lead { margin: 18px 0 0; color: var(--ab-copy); font-size: 1.4375rem; line-height: 1.55; max-inline-size: 16.7em; }
.ab-hero__btn {
  margin-block-start: 28px; min-block-size: 64px; min-inline-size: 350px; border-radius: 16px; font-size: 1.3125rem; font-weight: 700;
  background: linear-gradient(180deg, #0D4D92 0%, #073B73 55%, #062F5E 100%);
  box-shadow: 0 10px 22px rgba(7, 59, 115, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ab-hero__btn:hover { background: linear-gradient(180deg, #0B4586 0%, #06346A 55%, #052852 100%); }

/* ورقة «من دفتر ميترون»: ورقة أمامية + ورقتين خلفها بحواف ظاهرة (مش ظل بطاقة) */
.ab-hero__visual { display: grid; justify-items: center; padding-block: 18px; }
.ab-note { position: relative; container-type: inline-size; inline-size: min(100%, 598px); margin: 0; }
.ab-note__sheet, .ab-note__page {
  border-radius: 22px; border: 1.5px solid rgba(255, 255, 255, .95);
  background: linear-gradient(160deg, rgba(255, 255, 255, .86) 0%, rgba(240, 247, 255, .74) 48%, rgba(220, 236, 252, .72) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ab-note__sheet { position: absolute; inset: 0; }
/* الحواف بتبان كخط ورق رقيق: لون أفتح من الخلفية + خط داخلي، وظل خفيف جدًا */
.ab-note__sheet--1 { transform: translate(-14px, 14px) rotate(-4.2deg); box-shadow: 0 2px 6px rgba(12, 74, 140, .06), inset 0 0 0 1px rgba(0, 129, 198, .05); opacity: .9; }
.ab-note__sheet--2 { transform: translate(12px, -12px) rotate(1.6deg); box-shadow: 0 1px 4px rgba(12, 74, 140, .05), inset 0 0 0 1px rgba(0, 129, 198, .05); opacity: .78; }
.ab-note__page {
  position: relative; transform: rotate(-1.8deg); overflow: hidden;
  padding: clamp(18px, 4.6cqi, 28px) clamp(20px, 10.5cqi, 63px) clamp(22px, 7cqi, 42px) clamp(20px, 9.4cqi, 56px);
  box-shadow: 0 16px 38px rgba(12, 74, 140, .12), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 129, 198, .05);
}
/* المقاسات الداخلية بالنسبة لعرض الورقة (container query units على .ab-note: 598px = 100cqi) */
.ab-note__page > * { position: relative; }
.ab-note__paper { position: absolute !important; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.ab-note--paper .ab-note__page { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ab-note__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block-end: clamp(10px, 2.6cqi, 16px); border-block-end: 1px solid rgba(7, 59, 115, .10); }
.ab-note__label { color: var(--deep); font-weight: 700; font-size: clamp(.8125rem, 3.5cqi, 1.3125rem); }
.ab-note__mark { inline-size: clamp(24px, 5.4cqi, 33px); block-size: auto; }
.ab-note__title { margin: clamp(12px, 4cqi, 24px) 0 0; color: var(--ab-ink); font-family: var(--display); font-weight: 700; font-size: clamp(1.0625rem, 5.3cqi, 2rem); line-height: 1.4; }
.ab-note__text { margin: clamp(6px, 1.6cqi, 10px) 0 0; color: #3A4757; font-size: clamp(.875rem, 4.1cqi, 1.5rem); line-height: 1.45; max-inline-size: 15.6em; }
/* الملاحظة بخط اليد: بديل مؤقت بخط النصوص لحد ما يوصل أصل المصمم (النص نفسه مقروء دايمًا) */
.ab-note__hand { margin: clamp(14px, 4.4cqi, 26px) 0 0; padding: 0; }
.ab-note__lines { margin: 0; color: #1D4AA6; font-weight: 500; font-size: clamp(1.0625rem, 5.5cqi, 2.0625rem); line-height: 1.5; }
.ab-note__line { display: block; }
.ab-note__marked { position: relative; white-space: nowrap; }
.ab-note__stroke { position: absolute; inset-inline-start: -4%; inset-block-end: -.34em; inline-size: 108%; block-size: .42em; overflow: visible; pointer-events: none; }
.ab-note__stroke path { fill: none; stroke: var(--ab-lime); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ab-note__hand.has-asset { position: relative; }
.ab-note__hand-img { display: block; inline-size: 100%; block-size: auto; }
.ab-note__hand.has-asset .ab-note__lines { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* مكان الخط فوق أصل المصمم (يتظبط بالأرقام اللي المصمم يحددها) */
.ab-note__stroke--asset { inset-inline-start: var(--mark-x, 38%); inset-block-end: var(--mark-y, 2%); inline-size: var(--mark-w, 30%); block-size: 12px; }

/* الحركة: الخط بيترسم مرة واحدة. الحالة الافتراضية = النهائية (مرسوم). */
.ab-note.is-armed .ab-note__stroke path { stroke-dashoffset: 1; }
.ab-note.is-armed.is-drawn .ab-note__stroke path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.45, .05, .2, 1) .35s; }

/* ===== ٢–٤. قصتنا + فلسفتنا + ٩٥٪: عمود عنوان (يمين) + عمود نص بنفس البداية ===== */
.ab-row { display: grid; grid-template-columns: var(--ab-col) minmax(0, 1fr); align-items: start; }
.ab-title { position: relative; margin: 0; padding-block-end: 16px; color: var(--ab-ink); font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1rem + 2.8vw, 3.5rem); line-height: 1.25; }
.ab-title::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 50px; block-size: 4px; border-radius: 4px; background: var(--ab-lime); }
.ab-body { max-inline-size: 860px; color: var(--ab-copy); font-size: 1.375rem; line-height: 1.6; }
.ab-body > p { margin: 0; max-inline-size: 780px; text-wrap: pretty; }
.ab-body > p + p { margin-block-start: 20px; }

/* قصتنا: على خلفية الصفحة المفتوحة، بشريط أفتح بعرض الشاشة كله زي المرجع */
.ab-story { position: relative; padding-block: 34px 42px; }
.ab-story::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(50% - 50vw); background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .58)); }
.ab-story .ab-body { padding-block-start: 14px; }

/* فلسفتنا: بطاقة زجاجية عريضة وهادئة */
.ab-philo { display: grid; gap: 30px; padding-block: 24px 0; }
.ab-philo__card {
  padding: 32px 0 48px; padding-inline-end: 56px; border-radius: 28px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .62) 0%, rgba(240, 247, 255, .5) 55%, rgba(226, 239, 252, .5) 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(12, 74, 140, .06), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(0, 129, 198, .05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ab-philo__card .ab-title { padding-inline-start: 44px; font-size: clamp(1.75rem, 1rem + 2.1vw, 3rem); }
.ab-philo__card .ab-title::after { inset-inline-start: 44px; inline-size: 45px; }
.ab-philo__card .ab-body { padding-block-start: 52px; }
.ab-quote { margin: 0 0 26px; color: var(--ab-ink); font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, .8rem + 1.75vw, 2.375rem); line-height: 1.32; }
.ab-quote p { margin: 0; }
.ab-quote__l, .team__bio-l { display: inline; }
/* كسر السطر زي المرجع على الديسكتوب بس */
@media (min-width: 1001px) { .ab-quote__l, .team__bio-l { display: block; } }
.ab-quote__open, .ab-quote__close { color: var(--ab-lime); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.6em; line-height: 0; vertical-align: -.32em; }
.ab-quote__open { margin-inline-end: .18em; }
.ab-quote__close { margin-inline-start: .14em; }

/* شريط ٩٥٪: منخفض، ليموني باهت، والرقم والجملة وحدة واحدة على نفس عمود النص */
.ab-stat {
  margin: 0; min-block-size: 90px; display: grid; align-items: center; padding-block: 12px; padding-inline-end: 40px;
  border-radius: 20px; background: linear-gradient(90deg, rgba(240, 249, 210, .92), rgba(246, 251, 226, .92));
  border: 1px solid rgba(214, 238, 140, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.ab-stat__inner { grid-column: 2; display: flex; align-items: center; gap: 30px; }
.ab-stat__num { flex: none; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: 1; white-space: nowrap; }
.ab-stat__sep { flex: none; inline-size: 3px; block-size: 42px; border-radius: 3px; background: var(--ab-lime); }
.ab-stat__txt { color: var(--ab-ink); font-weight: 500; font-size: 1.875rem; line-height: 1.45; text-wrap: balance; }

/* ===== ٥. فريق ميترون ===== */
.ab-team { margin-block-start: 30px; padding: 30px 40px 44px; scroll-margin-block-start: 110px; }
.ab-team:focus { outline: none; }
.ab-team__title { position: relative; margin: 0; padding-block-end: 18px; text-align: center; color: var(--ab-ink); font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1rem + 2.8vw, 3.5rem); line-height: 1.25; }
.ab-team__title::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 50%; translate: 50% 0; inline-size: 104px; block-size: 4px; border-radius: 4px; background: var(--ab-lime); }

.team { display: grid; grid-template-columns: 372px minmax(0, 500px); justify-content: center; align-items: center; column-gap: 126px; margin-block-start: 30px; }

/* البرواز: منشور إنستجرام زجاجي (ثابت؛ الصورة جوّاه بس اللي بتتبدّل) */
.team__frame { position: relative; }
.team__sheet { position: absolute; inset: 0; border-radius: 22px; border: 1.5px solid rgba(255, 255, 255, .95); background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(226, 239, 252, .6)); transform: translate(-12px, 10px) rotate(-2.6deg); box-shadow: 0 2px 6px rgba(12, 74, 140, .06); }
.team__card {
  position: relative; display: grid; gap: 14px; padding: 16px 24px 14px; border-radius: 22px; overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .95);
  background: linear-gradient(160deg, rgba(255, 255, 255, .88) 0%, rgba(240, 247, 255, .8) 55%, rgba(222, 237, 252, .78) 100%);
  box-shadow: 0 18px 40px rgba(12, 74, 140, .13), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 129, 198, .05);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.team__frame--asset .team__card { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.team__frame-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: fill; pointer-events: none; }
.team__bar { position: relative; direction: ltr; display: flex; align-items: center; justify-content: space-between; min-block-size: 32px; }
.team__logo { inline-size: 100px; block-size: auto; }
.team__insta { display: grid; place-items: center; inline-size: 26px; block-size: 26px; color: var(--ab-ink); }
.team__insta svg { inline-size: 24px; block-size: 24px; }

/* مساحة الصورة 4:5 بالظبط */
.team__photos { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #9CCBF0 0%, #6FAEE3 100%); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.team__photo { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.team__photo.is-on { opacity: 1; visibility: visible; }
.team__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.team__ph { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; fill: #2F6FA8; opacity: .9; }

.team__nav { position: relative; display: flex; align-items: center; justify-content: space-between; }
.team__arrow { position: relative; display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ab-ink); cursor: pointer; }
.team__arrow::before { content: ""; position: absolute; inline-size: 34px; block-size: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(12, 74, 140, .12); }
.team__arrow svg { position: relative; inline-size: 18px; block-size: 18px; }
.team__arrow--next svg { transform: scaleX(-1); }
.team__arrow:hover::before { background: #fff; }
.team__dots { display: flex; gap: 7px; }
.team__dots i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: rgba(7, 59, 115, .22); }
.team__dots i.is-on { background: var(--ab-lime); box-shadow: 0 0 0 1px rgba(150, 190, 20, .35); }

/* بيانات العضو */
.team__info { display: grid; justify-items: start; }
.team__members { display: grid; inline-size: 100%; }
.team__member { display: none; }
.team__member.is-on { display: block; }
.team__name { margin: 26px 0 0; color: var(--ab-ink); font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 1rem + 3.3vw, 4.25rem); line-height: 1.25; }
.team__role { margin: 14px 0 0; color: #4A5A70; font-weight: 500; font-size: clamp(1.25rem, .9rem + 1vw, 1.875rem); line-height: 1.45; }
.team__bio { margin: 26px 0 0; color: var(--ab-copy); font-size: 1.4375rem; line-height: 1.55; max-inline-size: 20em; }
.team__pills { display: flex; justify-content: center; gap: 4px; inline-size: 100%; margin-block-start: 30px; }
.team__pill { position: relative; inline-size: 48px; block-size: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.team__pill::before { content: ""; position: absolute; inset-inline: 6px; inset-block-start: 50%; block-size: 5px; translate: 0 -50%; border-radius: 5px; background: rgba(7, 59, 115, .16); }
.team__pill.is-on::before { background: var(--ab-lime); }
.team__pill:hover:not(.is-on)::before { background: rgba(7, 59, 115, .3); }

@media (prefers-reduced-motion: no-preference) {
  .team__photo { transition: opacity .35s ease, visibility 0s linear .35s; }
  .team__photo.is-on { transition: opacity .35s ease, visibility 0s; }
  .team__member.is-on { animation: abIn .35s ease both; }
  .ab-hero__btn { transition: background-color .18s ease, transform .18s ease; }
  .ab-hero__btn:hover { transform: translateY(-1px); }
}
@keyframes abIn { from { opacity: 0; transform: translateY(6px); } }

/* ===== ٦. شريط التواصل ===== */
.ab-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block-start: 26px;
  min-block-size: 117px; padding: 20px 100px 20px 122px; border-radius: 22px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(40, 110, 190, .35), rgba(40, 110, 190, 0) 55%), linear-gradient(100deg, #0A3C78 0%, #072F60 55%, #06264F 100%);
  box-shadow: 0 14px 34px rgba(7, 47, 96, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ab-cta h2 { margin: 0; text-wrap: balance; color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, .8rem + 1.6vw, 2.25rem); line-height: 1.45; }
.ab-cta__btn {
  flex: none; min-block-size: 56px; min-inline-size: 360px; border-radius: 16px; background: var(--ab-lime); color: var(--ab-ink);
  font-family: var(--display); font-weight: 700; font-size: 1.3125rem; box-shadow: 0 6px 16px rgba(2, 20, 45, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ab-cta__btn:hover { background: #B9E12B; }
.ab-cta__btn:focus-visible { outline-color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .m-about { --ab-col: 180px; }
  .ab-hero { padding-inline: 24px 8px; column-gap: 48px; }
  .team { column-gap: 72px; }
  .ab-cta { padding-inline: 48px; }
}
/* 768 وأقل: الهيرو والفريق عمود واحد */
@media (max-width: 1000px) {
  .ab-hero { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 32px 4px 44px; }
  .ab-hero__visual { padding-inline: 18px; }
  .team { grid-template-columns: minmax(0, 372px); column-gap: 0; row-gap: 22px; }
  .team__info { justify-items: center; text-align: center; }
  .team__info .ab-kicker { justify-content: center; }
  .team__name { margin-block-start: 14px; }
  .team__bio { margin-inline: auto; }
  .ab-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 32px; }
  .ab-cta__btn { min-inline-size: 0; inline-size: min(100%, 360px); margin-inline: auto; }
  .ab-stat { padding-inline: 32px; }
  .ab-stat__inner { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ab-row { grid-template-columns: minmax(0, 1fr); }
  .ab-story { padding-block: 28px 32px; }
  .ab-story .ab-body { padding-block-start: 20px; }
  .ab-body { font-size: 1.0625rem; line-height: 1.8; }
  .ab-body > p + p { margin-block-start: 16px; }
  .ab-philo { gap: 20px; padding-block-start: 16px; }
  .ab-philo__card { padding: 26px 24px 30px; }
  .ab-philo__card .ab-title { padding-inline-start: 0; }
  .ab-philo__card .ab-title::after { inset-inline-start: 0; }
  .ab-philo__card .ab-body { padding-block-start: 22px; }
  .ab-quote { margin-block-end: 18px; }
  .ab-stat { min-block-size: 0; padding: 16px 20px; }
  .ab-stat__inner { grid-column: 1; gap: 16px; }
  .ab-stat__num { font-size: 2.5rem; }
  .ab-stat__sep { block-size: 36px; }
  .ab-stat__txt { font-size: 1.125rem; }
  .ab-team { margin-block-start: 20px; padding: 26px 14px 30px; }
  .team__card { padding: 12px 14px 10px; gap: 10px; }
  .ab-hero__lead { font-size: 1.125rem; }
  .ab-hero__btn { min-inline-size: 0; inline-size: 100%; min-block-size: 56px; font-size: 1.125rem; }
  .ab-kicker { font-size: 1.125rem; }
  .team__bio { font-size: 1.125rem; }
  .team__role { font-size: 1.25rem; }
  .ab-cta { margin-block-start: 20px; padding: 24px 20px; }
  .ab-cta__btn { inline-size: 100%; font-size: 1.125rem; }
}
@media (max-width: 380px) {
  .ab-stat__num { font-size: 2.125rem; }
  .ab-stat__inner { gap: 12px; }
  .ab-hero__visual { padding-inline: 12px; }
}

/* ===== 0.19.3 — أصول المصمم: الورقة = ملف أزرق بصاعقة (1240×920)، والسؤال بخط اليد بنفس اللوحة فوقه.
   النصوص HTML على الوش الفاتح للملف (بيبدأ من ~27% من الارتفاع)، والسؤال في التلت الأخير. ===== */
.ab-note--paper .ab-note__sheet { display: none; }
.ab-note--paper .ab-note__page { aspect-ratio: 1240 / 920; transform: none; box-shadow: none; overflow: visible; border: 0; border-radius: 0;
  padding-block: 23% 0; padding-inline: 10% 19%; }
.ab-note--paper .ab-note__head { padding-block-end: 1.6cqi; }
.ab-note--paper .ab-note__label { font-size: clamp(.75rem, 3cqi, 1.125rem); }
.ab-note--paper .ab-note__mark { inline-size: clamp(20px, 4.6cqi, 28px); }
.ab-note--paper .ab-note__title { margin-block-start: 2.4cqi; font-size: clamp(.9375rem, 4.4cqi, 1.75rem); line-height: 1.35; }
.ab-note--paper .ab-note__text { margin-block-start: 1cqi; font-size: clamp(.8125rem, 3.2cqi, 1.25rem); line-height: 1.45; max-inline-size: 19em; }
.ab-note--paper .ab-note__hand.has-asset { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.ab-note--paper .ab-note__hand-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.ab-note--paper .ab-note__stroke--asset { block-size: 1.6cqi; }
/* الموبايل: مساحة الكتابة جوّه الملف بتضيق، فالملف والسؤال فوق بلوحتهم، والنصوص تحتهم بمقاسها العادي */
@media (max-width: 600px) {
  .ab-note--paper .ab-note__page { aspect-ratio: auto; padding: calc(74.2% + 14px) 6px 0; }
  .ab-note--paper .ab-note__paper, .ab-note--paper .ab-note__hand.has-asset { inset: 0 0 auto 0; block-size: auto; aspect-ratio: 1240 / 920; }
  .ab-note--paper .ab-note__hand-img { block-size: 100%; }
  .ab-note--paper .ab-note__title { font-size: 1.0625rem; }
  .ab-note--paper .ab-note__text { font-size: .9375rem; max-inline-size: none; }
}
