/* ==========================================================================
   tareqdesign — Editorial Monograph About Page System (about-me.php)
   100% Unified with index.php, portfolio.php, blog.php & services.php
   Warm Obsidian (#080a0d) · Warm Paper (#f3f1ec) · Studio Teal (#23b5a4)
   Supports Arabic RTL, English LTR, Dark Mode & Light Mode (tt-light-style-on)
   ========================================================================== */

:root {
  --bg: #080a0d;
  --bg-2: #0e1217;
  --ink: #f3f1ec;
  --ink-2: rgba(243, 241, 236, 0.78);
  --ink-3: rgba(243, 241, 236, 0.56);
  --line: rgba(243, 241, 236, 0.09);
  --line-strong: rgba(243, 241, 236, 0.16);

  --brand: #23b5a4;
  --brand-bright: #4fd1c2;
  --brand-deep: #158074;
  --brand-ink: #071716;
  --amber: #dfb253;

  --glass-bg: rgba(16, 20, 26, 0.62);
  --glass-bg-strong: rgba(14, 18, 24, 0.88);
  --glass-rim: linear-gradient(155deg, rgba(243, 241, 236, 0.18), rgba(243, 241, 236, 0.04) 48%, rgba(35, 181, 164, 0.12));
  --glass-shadow: 0 24px 56px -28px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --sheen-color: rgba(255, 255, 255, 0.085);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 26px;
  --r-xl: 34px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Rethink Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
}

/* Light Mode Tokens */
body.tt-light-style-on.ab-page {
  --bg: #f6f5f1;
  --bg-2: #edeae2;
  --ink: #12171d;
  --ink-2: rgba(18, 23, 29, 0.76);
  --ink-3: rgba(18, 23, 29, 0.56);
  --line: rgba(18, 23, 29, 0.09);
  --line-strong: rgba(18, 23, 29, 0.18);
  --brand: #0f766e;
  --brand-bright: #0d9488;
  --brand-ink: #ffffff;
  --amber: #b47b17;
  --glass-bg: rgba(255, 255, 255, 0.80);
  --glass-bg-strong: rgba(255, 255, 255, 0.95);
  --glass-rim: linear-gradient(155deg, rgba(18, 23, 29, 0.12), rgba(18, 23, 29, 0.03) 50%, rgba(15, 118, 110, 0.16));
  --glass-shadow: 0 22px 50px -28px rgba(18, 23, 29, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --sheen-color: rgba(15, 118, 110, 0.065);
}

/* Safe Base Reset */
body.ab-page,
body.ab-page *,
body.ab-page *::before,
body.ab-page *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body.ab-page {
  margin: 0;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[lang="ar"] body.ab-page {
  font-family: var(--font-ar);
}

:where(body.ab-page a) {
  color: inherit;
  text-decoration: none;
}

:where(body.ab-page button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:where(body.ab-page img) {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

/* ==========================================================================
   1. Atmospheric Studio Field + Crystal Optical Orb Cursor
   ========================================================================== */
.ab-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 92% 72% at 50% -10%, #10161e 0%, var(--bg) 68%);
}

body.tt-light-style-on .ab-field {
  background: radial-gradient(ellipse 95% 75% at 50% -12%, #ffffff 0%, var(--bg) 72%);
}

.ab-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.24;
  will-change: transform;
}

body.tt-light-style-on .ab-bloom { opacity: 0.16; }

.ab-bloom.b1 {
  width: 58vw;
  height: 58vw;
  left: -14vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(28, 128, 118, 0.50), transparent 64%);
  animation: ab-drift1 34s ease-in-out infinite alternate;
}

.ab-bloom.b2 {
  width: 48vw;
  height: 48vw;
  right: -14vw;
  top: 28vh;
  background: radial-gradient(circle, rgba(212, 168, 86, 0.25), transparent 64%);
  animation: ab-drift2 42s ease-in-out infinite alternate;
}

@keyframes ab-drift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(12vw, 10vh, 0) scale(1.1); }
}
@keyframes ab-drift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-12vw, -10vh, 0) scale(1.08); }
}

.ab-grain {
  position: fixed;
  inset: -10%;
  width: 120%;
  height: 120%;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.tt-light-style-on .ab-grain { opacity: 0.022; }

/* Crystal Optical Cursor (Zero Blur) */
.ab-cursor-light,
.ab-cursor-dot,
.ab-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.ab-cursor-light {
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(circle, rgba(35, 181, 164, 0.065) 0%, transparent 66%);
  transition: opacity 0.4s ease;
}

.ab-cursor-dot {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  z-index: 9999;
  background: var(--brand-bright);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), opacity 0.25s ease;
}

.ab-cursor-ring {
  width: 84px;
  height: 84px;
  margin-left: -42px;
  margin-top: -42px;
  border-radius: 50%;
  z-index: 9998;
  display: grid;
  place-items: center;
  backdrop-filter: brightness(1.16) contrast(1.08) saturate(145%);
  -webkit-backdrop-filter: brightness(1.16) contrast(1.08) saturate(145%);
  background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.03) 34%, transparent 62%, rgba(35, 181, 164, 0.14) 100%);
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.56),
    inset 0 -6px 14px rgba(35, 181, 164, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 12px 30px -10px rgba(0, 0, 0, 0.52);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s ease;
}

.ab-cursor-ring svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  opacity: 0;
  transform: scale(0.5) rotate(-25deg);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

html.has-pointer.has-cursor .ab-cursor-light,
html.has-pointer.has-cursor .ab-cursor-dot,
html.has-pointer.has-cursor .ab-cursor-ring { opacity: 1; }
html.has-pointer.cursor-link .ab-cursor-dot { width: 0; height: 0; margin: 0; }
html.has-pointer.cursor-link .ab-cursor-ring { width: 58px; height: 58px; margin-left: -29px; margin-top: -29px; }
html.has-pointer.cursor-media .ab-cursor-dot { width: 0; height: 0; margin: 0; }
html.has-pointer.cursor-media .ab-cursor-ring { width: 92px; height: 92px; margin-left: -46px; margin-top: -46px; background: radial-gradient(circle at 30% 26%, rgba(79, 209, 194, 0.30), rgba(21, 128, 116, 0.22) 60%, rgba(8, 10, 13, 0.36) 100%); }
html.has-pointer.cursor-media .ab-cursor-ring svg { opacity: 1; transform: scale(1) rotate(0deg); }

@media (hover: none), (pointer: coarse) {
  .ab-cursor-light, .ab-cursor-dot, .ab-cursor-ring { display: none !important; }
}

/* ==========================================================================
   2. Primitives & Editorial Typography
   ========================================================================== */
.ab-main {
  position: relative;
  z-index: 2;
}

.ab-wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  min-width: 0;
}

.ab-glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}

.ab-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.ab-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, -40%), var(--sheen-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.ab-glass:hover::after { opacity: 1; }

.ab-chrome {
  background: linear-gradient(180deg, #f7f5f0 10%, #cfd8d5 56%, #7fb9b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.tt-light-style-on .ab-chrome {
  background: linear-gradient(180deg, #12171d 12%, #1d5d57 68%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html:not([lang="ar"]) .ab-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}

.ab-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.ab-sec-title {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

html[lang="ar"] .ab-sec-title {
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.ab-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.3s var(--ease);
}

.ab-inline-link:hover {
  color: var(--brand-bright);
  border-color: var(--brand);
  gap: 13px;
}

.ab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s ease, color 0.3s ease;
}

.ab-btn:hover { transform: translateY(-2px); }

.ab-btn-solid {
  color: var(--brand-ink) !important;
  background: linear-gradient(180deg, #32c4b3 0%, #20a797 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 24px -10px rgba(0, 0, 0, 0.65);
}

body.tt-light-style-on .ab-btn-solid {
  color: #ffffff !important;
  background: linear-gradient(180deg, #12877d 0%, #0f766e 100%);
}

.ab-btn-glass {
  color: var(--ink) !important;
  background: var(--glass-bg);
}

.ab-btn-lg { padding: 16px 30px; font-size: 15.5px; }

.ab-line { display: block; overflow: hidden; }
.ab-line-in { display: block; will-change: transform; }

/* ==========================================================================
   3. Section 1: Editorial Monograph Hero + Studio Collage (#abHero)
   ========================================================================== */
.ab-hero {
  padding: clamp(124px, 14vw, 174px) 0 clamp(44px, 6vw, 72px);
}

.ab-crumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.ab-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ab-crumb a:hover { color: var(--brand); }
.ab-crumb .ab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.ab-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.ab-clock-pill i { color: var(--brand); font-size: 11px; }

.ab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.ab-hero-copy {
  text-align: start;
}

.ab-hero-title {
  margin: 0 0 22px;
  font-size: clamp(38px, 5.2vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}

html[lang="ar"] .ab-hero-title {
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.ab-hero-lead {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 560px;
}

.ab-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.ab-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ab-social-pill {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.25s ease, transform 0.35s var(--ease);
}

.ab-social-pill:hover {
  color: var(--brand-bright);
  transform: translateY(-2px);
}

/* Studio Editorial Collage */
.ab-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.ab-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  margin: 0;
}

.ab-frame--main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.ab-frame--sub {
  grid-column: span 6;
  aspect-ratio: 16 / 10.5;
}

.ab-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}

.ab-frame:hover img { transform: scale(1.04); }

.ab-frame-caption {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 600;
  color: #f3f1ec;
}

/* ==========================================================================
   4. Section 2: Studio Proof Metrics Bar (#abStats)
   ========================================================================== */
.ab-stats-sec {
  padding: 0 0 clamp(68px, 8vw, 112px);
}

.ab-stats-bar {
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.ab-stat-cell {
  padding: clamp(24px, 3vw, 36px);
  text-align: start;
  border-inline-end: 1px solid var(--line);
}

.ab-stat-cell:last-child { border-inline-end: 0; }

.ab-stat-cell strong {
  display: block;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.ab-stat-cell span {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ==========================================================================
   5. Section 3: Editorial Story & Philosophy (#abStory)
   ========================================================================== */
.ab-story-sec {
  padding: 0 0 clamp(76px, 9vw, 124px);
}

.ab-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.ab-story-side {
  text-align: start;
}

.ab-story-side h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ab-signature-wrap {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.ab-signature-wrap img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.ab-sig-dark { display: none !important; }
body.tt-light-style-on .ab-sig-light { display: none !important; }
body.tt-light-style-on .ab-sig-dark { display: block !important; }

.ab-signature-wrap small {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.ab-story-copy {
  text-align: start;
}

.ab-story-copy p {
  margin: 0 0 20px;
  font-size: clamp(16.5px, 1.3vw, 19.5px);
  line-height: 1.82;
  color: var(--ink-2);
}

.ab-story-copy p strong {
  color: var(--ink);
  font-weight: 700;
}

.ab-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.ab-principle {
  border-radius: var(--r-md);
  padding: 20px;
  text-align: start;
}

.ab-principle span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 8px;
}

.ab-principle h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.ab-principle p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-3);
}

/* ==========================================================================
   6. Section 4: Studio Journey Timeline (2006 — Present) (#abTimeline)
   ========================================================================== */
.ab-timeline-sec {
  padding: 0 0 clamp(76px, 9vw, 124px);
}

.ab-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-xl);
  overflow: hidden;
}

.ab-era {
  padding: clamp(24px, 3vw, 34px);
  text-align: start;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-era:last-child { border-inline-end: 0; }

.ab-era-year {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.ab-era h3 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.ab-era p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.66;
  color: var(--ink-3);
}

/* ==========================================================================
   7. Section 5: Expertise & Craft Stack (CMS-Driven) (#abExpertise)
   ========================================================================== */
.ab-expertise-sec {
  padding: 0 0 clamp(76px, 9vw, 124px);
}

.ab-exp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.ab-exp-card {
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.6vw, 40px);
  text-align: start;
}

.ab-exp-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ab-exp-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(35, 181, 164, 0.12);
  border: 1px solid rgba(35, 181, 164, 0.28);
  color: var(--brand-bright);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.ab-exp-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: start;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 700;
  color: var(--ink);
}

.ab-exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ab-exp-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.3s var(--ease);
}

body.tt-light-style-on .ab-exp-list li {
  background: rgba(18, 23, 29, 0.02);
}

.ab-exp-list li:hover {
  border-color: rgba(35, 181, 164, 0.42);
  transform: translateX(4px);
}
html[dir="rtl"] .ab-exp-list li:hover {
  transform: translateX(-4px);
}

.ab-exp-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(35, 181, 164, 0.12);
  color: var(--brand-bright);
  display: grid;
  place-items: center;
  font-size: 13.5px;
  flex-shrink: 0;
}

.ab-exp-num {
  margin-inline-start: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   8. Section 6: Editorial Visual Triptych (#abGallery)
   ========================================================================== */
.ab-gallery-sec {
  padding: 0 0 clamp(76px, 9vw, 124px);
}

.ab-triptych {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.ab-trip-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  display: block;
  min-height: 280px;
}

.ab-trip-card--lg {
  grid-column: span 6;
  aspect-ratio: 16 / 10.5;
}

.ab-trip-card--sm {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}

.ab-trip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}

.ab-trip-card:hover img { transform: scale(1.045); }

.ab-trip-label {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 600;
  color: #f3f1ec;
}

/* ==========================================================================
   9. Section 7: Partners & Collaborators Glass Wall (#abPartners)
   (Oversized inner img technique compensates for 400x400 logo padding)
   ========================================================================== */
.ab-partners-sec {
  padding: 0 0 clamp(76px, 9vw, 124px);
}

.ab-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ab-logo-tile {
  height: 112px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.ab-logo-tile:hover {
  transform: translateY(-3px);
}

.ab-logo-tile img {
  width: 210px;
  height: 210px;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.ab-logo-tile:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.ab-client-dark { display: none !important; }
body.tt-light-style-on .ab-client-light { display: none !important; }
body.tt-light-style-on .ab-client-dark { display: block !important; }

/* ==========================================================================
   10. Section 8: Calm Editorial Closing CTA (#abCta)
   ========================================================================== */
.ab-cta {
  padding: clamp(78px, 10vw, 136px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}

.ab-cta-inner {
  max-width: 820px;
  margin-inline: auto;
}

.ab-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 74px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
}

html[lang="ar"] .ab-cta h2 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.ab-cta p {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.68;
  color: var(--ink-2);
}

.ab-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   11. Responsive Breakpoints (320px -> 1440px Zero-Overflow Guarantee)
   ========================================================================== */
@media (max-width: 1080px) {
  .ab-hero-grid,
  .ab-story-grid,
  .ab-exp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .ab-stats-bar,
  .ab-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ab-stat-cell,
  .ab-era {
    border-bottom: 1px solid var(--line);
  }
  .ab-principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .ab-trip-card--lg { grid-column: 1 / -1; }
  .ab-trip-card--sm { grid-column: span 6; aspect-ratio: 16 / 11; }
  .ab-logos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .ab-hero { padding-top: 122px; }
  .ab-stats-bar,
  .ab-timeline-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ab-stat-cell,
  .ab-era {
    border-inline-end: 0;
  }
  .ab-stat-cell:last-child,
  .ab-era:last-child { border-bottom: 0; }
  .ab-frame--sub { grid-column: 1 / -1; }
  .ab-trip-card--sm { grid-column: 1 / -1; }
  .ab-logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ab-logo-tile { height: 96px; }
  .ab-logo-tile img { width: 178px; height: 178px; }
  .ab-cta-actions { flex-direction: column; }
  .ab-cta-actions .ab-btn { width: min(320px, 100%); white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-bloom { animation: none !important; }
  .ab-cursor-light, .ab-cursor-dot, .ab-cursor-ring { display: none !important; }
}
