/* =====================================================================
   Directline — about page (about.html)
   hero: the line (a drawn path with a runner through four stations) ·
   manifesto whose words light up with the scroll · the name DIRECT/LINE ·
   four principles as cards that stack while scrolling (sticky, native) ·
   eight services orbiting the D mark · numbers counted from the published
   work · Doha and Dubai with live clocks · clients · three steps.
   ===================================================================== */
.t-lime { background: #eef08a; color: #2a164d; }
.t-lav  { background: #e3dbf3; color: #2a164d; }
.t-plum { background: #553083; color: #fff; }
.t-deep { background: #2a164d; color: #fff; }

.ab-h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.25; margin: 14px 0 0; letter-spacing: -.5px; }
.ab-h2 span { color: var(--purple); }
.ab-h2.light { color: #fff; } .ab-h2.light span { color: var(--lime); }
.ab-head { margin-bottom: 48px; max-width: 820px; }

/* ======================= hero ======================= */
.ab-hero { position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; padding: 90px 0 40px; min-height: min(92svh, 860px); display: flex; flex-direction: column; justify-content: center; }
.ab-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); }
.ab-hero-inner { position: relative; z-index: 2; }
.ab-title { font-size: clamp(44px, 6.6vw, 104px); line-height: 1.12; margin: 22px 0 26px; letter-spacing: -1px; }
.ab-title > span { display: block; }
.ab-title em { font-style: normal; color: var(--lime); }
.ab-lead { font-size: clamp(16px, 1.4vw, 20px); color: #cfc2dd; max-width: 680px; line-height: 1.9; }
.motion-ok .ab-title > span { animation: ab-rise 1.1s cubic-bezier(.22,1,.36,1) both; }
.motion-ok .ab-title > span + span { animation-delay: .14s; }
.motion-ok .ab-lead { animation: ab-rise 1.1s .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes ab-rise { from { opacity: 0; translate: 0 50px; } }

.ab-line { position: relative; height: 200px; margin-top: 40px; z-index: 1; }
.ab-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 12px rgb(243 239 48 / .55)); }
.motion-ok .ab-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ab-draw 2.2s .5s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes ab-draw { to { stroke-dashoffset: 0; } }
.ab-runner { position: absolute; top: 0; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgb(243 239 48 / .35), 0 0 30px 8px rgb(243 239 48 / .6); opacity: 0; }
.ab-stations { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin-top: -10px; list-style: none; }
.ab-stations li { border-top: 1px solid #ffffff2e; padding-top: 16px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; display: flex; align-items: baseline; gap: 12px; }
.ab-stations b { font: 500 12px/1 'IBM Plex Sans Arabic', sans-serif; color: var(--lime); letter-spacing: 1px; }
.motion-ok .ab-stations li { animation: ab-rise .9s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(1s + var(--k) * .35s); }

/* ======================= manifesto ======================= */
.ab-manifesto { padding: 130px 0 110px; }
.ab-words { font-size: clamp(26px, 3.3vw, 50px); line-height: 1.75; font-weight: 600; margin-top: 26px; max-width: 1120px; }
.ab-words .w { transition: color .35s, opacity .35s; }
.motion-ok .ab-words .w { color: var(--ink); opacity: .16; }
.motion-ok .ab-words .w.on { opacity: 1; }
.motion-ok .ab-words .w.hl.on { color: var(--purple); }

/* ======================= the name ======================= */
.ab-name { padding: 60px 0 120px; overflow: hidden; }
.ab-name-rows { margin-top: 50px; }
.ab-name-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.ab-name-row.is-alt { grid-template-columns: auto 1fr; }
.ab-name-row.is-alt .ab-big { order: 2; }
.ab-big { font: 700 clamp(90px, 17vw, 260px)/.9 'IBM Plex Sans Arabic', Arial, sans-serif; letter-spacing: -4px; color: transparent;
  -webkit-text-stroke: 2px var(--purple); transition: color .9s cubic-bezier(.22,1,.36,1), translate 1s cubic-bezier(.22,1,.36,1); }
.ab-name-row .ab-big { text-align: left; }
.ab-name.is-in .ab-name-row:first-child .ab-big { color: var(--purple); }
.ab-name.is-in .ab-name-row.is-alt .ab-big { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.motion-ok .ab-name-row .ab-big { translate: 8% 0; } .motion-ok .ab-name-row.is-alt .ab-big { translate: -8% 0; }
.motion-ok .ab-name.is-in .ab-big { translate: 0 0; }
.ab-name-copy { max-width: 380px; }
.ab-name-copy h3 { font-size: 30px; margin-bottom: 8px; }
.ab-name-copy p { color: #5d5168; font-size: 16px; }
.ab-name-link { height: 70px; position: relative; margin: 6px 0; }
.ab-name-link i { position: absolute; left: 12%; right: 12%; top: 50%; height: 4px; border-radius: 4px; background: var(--lime); transform-origin: left; transform: scaleX(var(--p, 1)); }
.ab-name-link i::before, .ab-name-link i::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ink); }
.ab-name-link i::before { left: -6px; } .ab-name-link i::after { right: -6px; }

/* ======================= values: stacked cards ======================= */
.ab-values { padding: 40px 0 120px; }
.ab-stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.ab-card { position: sticky; top: calc(120px + var(--n) * 22px); min-height: 420px; border-radius: 28px; padding: 50px 54px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  box-shadow: 0 -10px 40px rgb(42 22 77 / .10); transform-origin: 50% 0; }
.ab-num { font: 600 14px/1 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 2px; opacity: .7; }
.ab-card h3 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; margin: 18px 0 16px; }
.ab-card p { font-size: 18px; max-width: 520px; opacity: .85; }
.ab-card figure { margin: 0; height: 320px; border-radius: 18px; overflow: hidden; rotate: -3deg; box-shadow: 0 30px 60px rgb(0 0 0 / .2); }
.ab-card:nth-child(even) figure { rotate: 3deg; }
.ab-card figure img { width: 100%; height: 100%; object-fit: cover; }

/* ======================= orbit ======================= */
.ab-orbit { background: var(--brand-grad); color: #fff; padding: 120px 0; overflow: hidden; }
.ab-orbit-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.ab-orbit-copy > p:not(.eyebrow) { color: #cfc2dd; font-size: 17px; margin: 20px 0 30px; max-width: 460px; }
.ab-orb { --R: min(250px, 38vw); position: relative; width: calc(var(--R) * 2 + 140px); max-width: 100%; aspect-ratio: 1; margin-inline: auto; }
.ab-ring { position: absolute; inset: 70px; border-radius: 50%; border: 1px dashed #ffffff40; }
.ab-ring.r2 { inset: calc(70px + var(--R) * .42); border: 1px solid #ffffff24; }
.ab-core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 0 14px rgb(243 239 48 / .12), 0 0 80px 20px rgb(243 239 48 / .25); }
.ab-core img { width: 100%; height: 100%; object-fit: cover; }
.ab-sats { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; animation: ab-spin 60s linear infinite; }
.ab-sats li { position: absolute; left: 50%; top: 50%; transform: rotate(calc(var(--a) * 45deg)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -45deg)); }
.ab-sats a { display: block; translate: -50% -50%; white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 30px rgb(0 0 0 / .25); animation: ab-spin 60s linear infinite reverse; transition: background .2s, scale .2s; }
.ab-sats li:nth-child(4n+1) a { background: var(--lime); } .ab-sats li:nth-child(4n+3) a { background: #e3dbf3; }
.ab-sats a:hover, .ab-sats a:focus-visible { scale: 1.08; background: var(--lime); }
.ab-orb:hover .ab-sats, .ab-orb:hover .ab-sats a, .ab-orb:focus-within .ab-sats, .ab-orb:focus-within .ab-sats a,
.motion-paused .ab-sats, .motion-paused .ab-sats a { animation-play-state: paused; }
html:not(.motion-ok) .ab-sats, html:not(.motion-ok) .ab-sats a { animation: none; }
@keyframes ab-spin { to { rotate: 360deg; } }

/* ======================= numbers ======================= */
.ab-numbers { padding: 120px 0 60px; }
.ab-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.ab-stats li { padding: 34px 26px 30px 0; border-left: 1px solid var(--border); }
.ab-stats li:last-child { border-left: 0; }
.ab-stats b { display: block; font: 700 clamp(64px, 8vw, 128px)/1 'IBM Plex Sans Arabic', sans-serif; color: var(--purple); letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.ab-stats li:nth-child(2) b { color: var(--ink); }
.ab-stats span { display: block; margin-top: 14px; color: #5d5168; font-size: 16px; max-width: 220px; }
.ab-stats-note { margin-top: 22px; font-size: 13px; color: var(--muted); }
.ab-stats-note a { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }

/* ======================= cities ======================= */
.ab-cities { padding: 90px 0 120px; }
.ab-city-row { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; }
.ab-city { display: flex; align-items: center; gap: 28px; padding: 34px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 30px 60px rgb(42 22 77 / .06); }
.ab-clock { width: 130px; height: 130px; flex-shrink: 0; }
.ab-clock > circle:first-child { fill: #f6f3fa; stroke: var(--ink); stroke-width: 3; }
.ab-ticks line { stroke: #b9a9cd; stroke-width: 1.5; } .ab-ticks line.big { stroke: var(--ink); stroke-width: 3; }
.ab-clock .h, .ab-clock .m { stroke: var(--ink); stroke-linecap: round; } .ab-clock .h { stroke-width: 5; } .ab-clock .m { stroke-width: 3; }
.ab-clock .s { stroke: var(--purple); stroke-width: 1.5; } .ab-clock .c { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.ab-clock line { transform-origin: 50px 50px; }
.ab-city-en { font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.ab-city h3 { font-size: clamp(36px, 4vw, 58px); line-height: 1.2; margin: 4px 0 6px; }
.ab-time { color: #5d5168; font-size: 15px; } .ab-time span { font-weight: 700; color: var(--ink); font-size: 18px; }
.ab-city-link { position: relative; height: 4px; margin: 0 -2px; }
.ab-city-link i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--purple) 0 10px, transparent 10px 18px); }
.ab-city-link span { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--ink); left: 0; }
.motion-ok .ab-city-link span { animation: ab-ping 3.2s ease-in-out infinite alternate; }
.motion-paused .ab-city-link span { animation-play-state: paused; }
@keyframes ab-ping { to { left: calc(100% - 14px); } }
.ab-reach { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.ab-reach a { padding: 14px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transition: background .2s, color .2s; }
.ab-reach a:hover { background: var(--lime); color: var(--ink); }

/* ======================= steps ======================= */
.ab-steps { padding: 120px 0; }
.ab-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-step-list li { padding: 34px 30px; border-radius: 22px; background: #efeaf6; position: relative; overflow: hidden; }
.ab-step-list b { font: 700 80px/1 'IBM Plex Sans Arabic', sans-serif; color: #fff; display: block; margin-bottom: 18px; -webkit-text-stroke: 2px var(--purple); }
.ab-step-list h3 { font-size: 24px; margin-bottom: 8px; }
.ab-step-list p { color: #5d5168; }

/* ======================= responsive ======================= */
@media (max-width: 1000px) {
  .ab-orbit-inner { grid-template-columns: 1fr; }
  .ab-card { grid-template-columns: 1fr; padding: 34px 30px; min-height: 0; }
  .ab-card figure { height: 220px; }
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-stats li:nth-child(2) { border-left: 0; } .ab-stats li { border-bottom: 1px solid var(--border); }
  .ab-city-row { grid-template-columns: 1fr; gap: 0; }
  .ab-city-link { width: 4px; height: 60px; margin: 0 auto; }
  .ab-city-link i { background: repeating-linear-gradient(180deg, var(--purple) 0 10px, transparent 10px 18px); }
  .ab-city-link span { left: 50% !important; margin-left: -7px; animation: none !important; top: 50%; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .ab-hero { padding: 60px 0 30px; min-height: 0; }
  .ab-line { height: 120px; margin-top: 20px; }
  .ab-stations { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .ab-manifesto { padding: 90px 0 70px; }
  .ab-name-row, .ab-name-row.is-alt { grid-template-columns: 1fr; gap: 10px; }
  .ab-name-row.is-alt .ab-big { order: 0; }
  .ab-big { letter-spacing: -2px; -webkit-text-stroke-width: 1.5px; }
  .ab-card { top: calc(100px + var(--n) * 14px); border-radius: 22px; }
  .ab-card p { font-size: 16px; }
  .ab-orbit { padding: 90px 0; }
  .ab-orb { --R: 31vw; width: 100%; }
  .ab-ring { inset: 12%; }
  .ab-core { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 22px; }
  .ab-sats a { font-size: 12px; padding: 7px 12px; }
  .ab-stats li { padding: 26px 0 22px 14px; }
  .ab-stats b { letter-spacing: -2px; }
  .ab-stats span { font-size: 14px; }
  .ab-city { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px; }
  .ab-clock { width: 96px; height: 96px; }
  .ab-step-list { grid-template-columns: 1fr; }
}
