/* GSDT Design D · Datum — About GSDT · Stage 5 opening refinement (private review).
   Shared by Approach A (Cinematic Downtown Dubai) and Approach B (Technical Dubai Reveal). Loaded after design-d.css,
   home.css and s2.css. Uses the locked palette and the hero, HUD and annotation conventions of the approved pages;
   nothing here changes a shared stylesheet. */

/* ---------------------------------------------------------------- 01 · the opening (pinned) */
.abr { position: relative; }
.abr__track { position: relative; height: 1000vh; }
.abr__stage { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; background: var(--charcoal); }
.abr__fallback { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 42%; }
.js .abr__fallback { opacity: 0; transition: opacity .6s .1s; }
.abr.is-static .abr__fallback, .abr.no-canvas .abr__fallback { opacity: 1; }
.abr.is-mapped .abr__fallback { opacity: 0; }
.abr.is-static .abr__gl, .abr.is-static .abr__img { display: none; }
.abr__gl, .abr__img, .abr__map, .abr__vec { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.abr__gl, .abr__img { z-index: 0; }
.abr__map { z-index: 1; pointer-events: none; }
.abr__vec { z-index: 3; pointer-events: none; }
.abr__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--shade, 1); transition: opacity .2s linear;
  background:
    linear-gradient(90deg, rgba(26, 27, 29, .8) 0, rgba(26, 27, 29, .58) 26%, rgba(26, 27, 29, .18) 46%, rgba(26, 27, 29, 0) 60%),
    linear-gradient(0deg, rgba(26, 27, 29, .74) 0, rgba(26, 27, 29, 0) 36%),
    linear-gradient(180deg, rgba(26, 27, 29, .62) 0, rgba(26, 27, 29, 0) 20%); }
.abr.is-world .abr__shade { background:
    linear-gradient(0deg, rgba(26, 27, 29, .78) 0, rgba(26, 27, 29, 0) 24%),
    linear-gradient(180deg, rgba(26, 27, 29, .6) 0, rgba(26, 27, 29, 0) 18%); }
.abr__labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* copy: the approved hero arrangement — eyebrow, two-line title, lede and CTA at the foot of the stage */
.abr__content { position: sticky; top: 0; z-index: 6; height: 100vh; min-height: 640px; margin-top: calc(-1 * max(100vh, 640px)); pointer-events: none; }
.abr__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 46px; padding-top: calc(var(--header-h) + 24px); }
.abr__content a, .abr__content button { pointer-events: auto; }
.abr__text { grid-column: 1 / span 5; }
.abr__eyebrow { color: var(--cool); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.abr__title { margin-top: 18px; color: var(--warm); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.abr__title .ln { display: block; }
.abr__title .ln + .ln { color: var(--titanium); }
@media (min-width: 1081px) { .abr__title { font-size: min(var(--t-xl), 5vw, calc((max(100vh, 640px) - 470px) / 2.6)); } .abr__title .ln { white-space: nowrap; } }
.abr__paras { display: grid; margin-top: 22px; max-width: 31em; }
.abr__paras > p { grid-area: 1 / 1; color: var(--titanium); opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), visibility 0s linear .55s; }
.abr__paras > p.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .7s var(--ease-out) .12s, transform .7s var(--ease-out) .12s, visibility 0s; }
.abr__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
/* the world needs the stage: the title steps up and away, the third paragraph and the CTA remain */
.abr.is-world .abr__eyebrow, .abr.is-world .abr__title { opacity: 0; transform: translateY(-14px); }
.abr.is-world .abr__title { pointer-events: none; }
.abr.is-world .abr__text { grid-column: 1 / span 4; }
.abr.is-done .abr__text { opacity: 0; transform: translateY(-10px); transition: opacity .5s, transform .5s; }

/* ---------------------------------------------------------------- HUD: the approved annotation conventions */
.abr__hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: var(--titanium); font-size: 11px;
  text-shadow: 0 0 14px rgba(26, 27, 29, .8), 0 0 3px rgba(26, 27, 29, .7); }
.abr .hud-top { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px));
  top: calc(var(--header-h) + 14px); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.abr .hud-tag { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 560; color: var(--warm); white-space: nowrap; }
.abr .hud-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 3px rgba(246, 243, 239, .14); }
.abr .hud-read { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--cool); text-align: right; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.abr .hud-read b { color: var(--warm); font-weight: 560; letter-spacing: .04em; text-transform: none; }
.abr .hud-cap { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 14px;
  display: flex; justify-content: flex-end; margin: 0; color: var(--cool); font-style: italic; font-size: 11px; letter-spacing: .01em; }
.abr .hud-cap span { max-width: 92ch; text-align: right; }
.abr-instr { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 44px); display: flex; align-items: center; gap: 18px;
  opacity: var(--instr, 0); transition: opacity .3s; }
.abr-north { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--warm); }
.abr-north svg { width: 24px; height: 30px; overflow: visible; transform: rotate(var(--north, 0deg)); }
.abr-north .ring { fill: none; stroke: rgba(196, 197, 199, .45); stroke-width: 1; }
.abr-north .nd { fill: var(--warm); }
.abr-north .tk { stroke: rgba(196, 197, 199, .6); stroke-width: 1; }
.abr-sb { display: grid; gap: 4px; justify-items: start; font-size: 10px; letter-spacing: .08em; color: var(--titanium); font-variant-numeric: tabular-nums; font-weight: 560; }
.abr-sb svg { width: var(--sbw, 120px); height: 14px; overflow: visible; }
.abr-sb .ax, .abr-sb .tk { stroke: var(--warm); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }

/* labels on the stage (HTML, so the type is Inter at full quality; leaders are drawn on canvas) */
.abr-lab { position: absolute; left: 0; top: 0; display: grid; gap: 3px; white-space: nowrap; opacity: 0; visibility: hidden; will-change: transform, opacity;
  font-size: 11px; line-height: 1.15; color: var(--titanium); text-shadow: 0 0 12px rgba(26, 27, 29, .9), 0 0 3px rgba(26, 27, 29, .85); }
.abr-lab b { font-weight: 600; font-size: 12.5px; letter-spacing: -.005em; color: var(--warm); }
.abr-lab .sub { font-size: 10px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; color: var(--cool); }
.abr-lab .num { font-variant-numeric: tabular-nums; }
.abr-lab.is-tag { display: block; font-size: 10px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; color: var(--cool); }
.abr-lab.is-tag b { font-size: 10px; letter-spacing: .14em; color: var(--warm); }
.abr-lab.is-place { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--titanium); }
.abr-lab.is-sea { display: block; font-size: 10px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--cool); font-style: italic; }
.abr-lab.is-ring { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .06em; color: var(--cool); font-variant-numeric: tabular-nums; }
.abr-lab.is-dim { display: block; font-size: 11px; font-weight: 560; letter-spacing: .04em; color: var(--warm); font-variant-numeric: tabular-nums; }
.abr-lab.is-dim .u { color: var(--cool); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 9.5px; margin-left: 6px; }
.abr-lab.is-coord { display: block; font-size: 11px; font-weight: 560; letter-spacing: .06em; color: var(--warm); font-variant-numeric: tabular-nums; }
.abr-lab.is-coord .h { color: var(--graphite); }
.abr-lab.is-contour { display: block; font-size: 9.5px; font-weight: 560; letter-spacing: .04em; color: var(--titanium); font-variant-numeric: tabular-nums; }
/* region cards: number, name, measured distance and bearing from Dubai */
.abr-lab.is-region { gap: 4px; }
.abr-lab.is-region .rn { display: flex; align-items: baseline; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--warm); }
.abr-lab.is-region .rn i { font-style: normal; color: var(--cool); font-weight: 560; letter-spacing: .06em; }
.abr-lab.is-region .rm { font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--titanium); font-variant-numeric: tabular-nums; }
.abr-lab.is-region.is-dim { opacity: .55; }
.abr-lab.is-presence b { font-size: 12px; }
.abr-lab.is-presence.is-flip { justify-items: end; text-align: right; }   /* set to the left of its marker, the label reads from the marker's side */
@media (max-width: 699px) { .abr-lab.is-presence .sub { white-space: normal; max-width: 120px; } }   /* phones: "Operational / office and team", so the label keeps its side of the marker */
.abr-lab.is-num { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--warm); font-variant-numeric: tabular-nums; }

/* world legend: established presence is marked differently from the six regions of international scope */
.abr__legend { position: absolute; z-index: 5; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 46px; width: 330px; pointer-events: none;
  opacity: var(--legend, 0); transform: translateY(calc((1 - var(--legend, 0)) * 10px)); visibility: var(--legend-vis, hidden);
  background: rgba(26, 27, 29, .78); border: 1px solid rgba(196, 197, 199, .18); padding: 13px 15px 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.abr__legend h3 { margin: 0 0 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); display: flex; justify-content: space-between; gap: 10px; }
.abr__legend h3 span { color: var(--cool); font-weight: 500; letter-spacing: .08em; }
.abr__legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.abr__legend li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; font-size: 11.5px; line-height: 1.3; color: var(--titanium); }
.abr__legend li b { color: var(--warm); font-weight: 560; }
.abr__legend li .k { font-size: 10px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; color: var(--cool); display: block; margin-bottom: 1px; }
.abr__legend svg { width: 22px; height: 16px; overflow: visible; margin-top: 1px; }
.abr__legend .mk-hq { fill: none; stroke: var(--warm); stroke-width: 1.2; }
.abr__legend .mk-hq-c { fill: var(--warm); }
.abr__legend .mk-op { fill: var(--warm); }
.abr__legend .mk-sup { fill: var(--charcoal, #1A1B1D); stroke: var(--warm); stroke-width: 1.2; }
.abr__legend .mk-reg { fill: rgba(196, 197, 199, .26); stroke: rgba(196, 197, 199, .55); stroke-width: 1; }
.abr__legend .mk-ctx { fill: none; stroke: rgba(246, 243, 239, .6); stroke-width: 1; stroke-dasharray: 3 2; }
.abr__legend .regs li.ctx b { color: var(--titanium); font-weight: 500; }
.abr-lab.is-region .rm i { font-style: normal; color: var(--cool); }
.abr__legend .mk-ring { fill: none; stroke: rgba(246, 243, 239, .5); stroke-width: 1; stroke-dasharray: 3 3; }
.abr__legend .note { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid rgba(196, 197, 199, .16); font-size: 10.5px; line-height: 1.4; color: var(--cool); font-style: italic; }
/* the region list replaces map cards on narrow screens */
.abr__legend .regs { display: none; }

/* ---------------------------------------------------------------- 02 · What We Do (head and the line of responsibility) */
.abr2 { position: relative; padding-top: clamp(84px, 9vw, 132px); padding-bottom: clamp(56px, 6vw, 96px); }
.abr2-edge { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.abr2-edge .wrap { position: relative; }
.abr2-edge__rule { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 0; height: 22px; }
.abr2-edge__rule i { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-strong); transform-origin: left; transform: scaleX(var(--edge, 1)); }
.abr2-edge__rule .label { position: absolute; right: 0; top: 8px; color: var(--cool); font-variant-numeric: tabular-nums; opacity: var(--edge, 1); }
.abr2-head { row-gap: 22px; }
.abr2-head__a { grid-column: 1 / span 6; }
.abr2-head__b { grid-column: 8 / span 5; align-self: end; }
.abr2__title { margin-top: 18px; }
.abr2-rail { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.abr2-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--fg); transform-origin: left; transform: scaleX(var(--rail, 1)); }
.abr2-rail li { position: relative; padding-top: 30px; display: grid; gap: 8px; opacity: var(--st, 1); transform: translateY(calc((1 - var(--st, 1)) * 8px)); }
.abr2-rail li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border: 1px solid var(--fg); border-radius: 50%; background: var(--warm); box-sizing: border-box; }
.abr2-rail li::after { content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg); }
.abr2-rail .n { font-size: 11px; font-weight: 560; letter-spacing: .08em; color: var(--fg-2); }
.abr2-rail .t { font-size: clamp(1.05rem, .95rem + .35vw, 1.3rem); letter-spacing: -.01em; font-weight: 500; color: var(--fg); }
.abr2-cont { margin-top: clamp(56px, 6vw, 88px); }
.abr2-cont__note { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--fg-2); }

/* ---------------------------------------------------------------- tablets and phones: individually art-directed */
@media (max-width: 1080px) {
  .abr__text { grid-column: 1 / span 9; }
  .abr.is-world .abr__text { grid-column: 1 / span 9; }
  .abr2-head__a, .abr2-head__b { grid-column: 1 / -1; }
}
@media (max-width: 1080px), (max-aspect-ratio: 23/20) {
  .abr__track { height: 900vh; }
  .abr__stage { height: 100svh; min-height: 0; }
  .abr__content { height: 100svh; min-height: 0; margin-top: -100svh; }
  .abr__inner { padding-bottom: 40px; }
  .abr__shade { background: linear-gradient(0deg, rgba(26, 27, 29, .93) 0, rgba(26, 27, 29, .78) 34%, rgba(26, 27, 29, .3) 56%, rgba(26, 27, 29, 0) 70%), linear-gradient(180deg, rgba(26, 27, 29, .62) 0, rgba(26, 27, 29, 0) 20%); }
  .abr.is-world .abr__shade { background: linear-gradient(0deg, rgba(26, 27, 29, .96) 0, rgba(26, 27, 29, .9) 30%, rgba(26, 27, 29, 0) 50%), linear-gradient(180deg, rgba(26, 27, 29, .6) 0, rgba(26, 27, 29, 0) 18%); }
  .abr .hud-cap span { max-width: 46ch; }
  .abr-instr { top: calc(var(--header-h) + 40px); gap: 12px; }
  .abr__legend { left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); width: auto; top: var(--legend-top, 50%); bottom: auto;
    background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .abr__legend h3 { margin-bottom: 7px; }
  .abr__legend .regs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0 0 9px; padding: 0 0 8px; border-bottom: 1px solid rgba(196, 197, 199, .16); list-style: none; }
  .abr__legend .regs li { display: block; font-size: 10.5px; line-height: 1.25; }
  .abr__legend .regs li b { font-weight: 560; color: var(--warm); }
  .abr__legend .regs li span { display: none; }
  .abr__legend ul.keys { gap: 4px; }
  .abr__legend .keys li { font-size: 10.5px; line-height: 1.25; grid-template-columns: 16px 1fr; gap: 7px; align-items: center; }
  .abr__legend .keys li .k { display: inline; margin-right: 6px; }
  .abr__legend svg { width: 16px; height: 12px; margin-top: 0; }
  .abr__legend .note { margin-top: 7px; padding-top: 6px; font-size: 10px; line-height: 1.35; }
  .abr.is-world .abr__paras > p.is-on { font-size: .95rem; }
  .abr2-rail { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .abr2-rail::before { display: none; }
}
@media (max-width: 699px) {
  .abr__text, .abr.is-world .abr__text { grid-column: 1 / -1; }
  .abr__title { font-size: clamp(2.05rem, 0.55rem + 6.7vw, 3.3rem); margin-top: 14px; }
  .abr__paras { margin-top: 14px; }
  .abr__paras > p { font-size: 1rem; }
  .abr__ctas { margin-top: 18px; }
  .abr .hud-read { font-size: 10px; letter-spacing: .06em; }
  .abr .hud-cap { font-size: 10px; bottom: 10px; }
  .abr2-rail { grid-template-columns: 1fr; }
  .abr2-rail li { padding: 0 0 0 30px; }
  /* the world key, set tighter on phones (Closeout R1: the presence entries are worded in full) */
  .abr__legend h3 { margin-bottom: 5px; }
  .abr__legend .regs { gap: 2px 12px; margin-bottom: 6px; padding-bottom: 6px; }
  .abr__legend .regs li, .abr__legend .keys li { line-height: 1.18; }
  .abr__legend ul.keys { gap: 2px; }
  .abr__legend .keys li .k { letter-spacing: .1em; margin-right: 5px; }
  .abr__legend .note { margin-top: 5px; padding-top: 5px; line-height: 1.3; }
}
@media (max-width: 420px) {
  .abr .hud-top { flex-direction: column; align-items: flex-start; gap: 5px; }
  .abr .hud-read { text-align: left; }
  .abr-instr { top: calc(var(--header-h) + 50px); }
}
@media (max-width: 699px) and (max-height: 700px), (min-width: 700px) and (max-width: 1080px) and (max-height: 820px) {
  .abr.is-key .abr__paras { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s; }
}
@media (max-width: 699px) and (max-height: 640px) {
  .abr__paras > p { font-size: .92rem; line-height: 1.42; }
  .abr__title { font-size: 2.05rem; }
  .abr__inner { padding-bottom: 30px; }
  .abr__ctas { margin-top: 12px; }
  .abr.is-key .abr__ctas { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s; }   /* the key needs the foot on short phones */
}

/* ---------------------------------------------------------------- reduced motion and no-canvas: nothing pinned, the resolved world and all copy */
.abr.is-static .abr__track { height: auto; }
.abr.is-static .abr__stage { position: relative; height: max(100vh, 680px); }
.abr.is-static .abr__content { position: relative; height: auto; margin-top: 0; min-height: 0; }
.abr.is-static .abr__inner { height: auto; padding-top: 42px; padding-bottom: 56px; }
.abr.is-static .abr__paras { display: grid; gap: 16px; }
.abr.is-static .abr__paras > p { grid-area: auto; opacity: 1; transform: none; visibility: visible; }
.abr.is-static .abr__eyebrow, .abr.is-static .abr__title { opacity: 1; transform: none; }
.abr.is-static .abr__text { grid-column: 1 / span 7; }
.abr.is-static .abr__shade { background: linear-gradient(0deg, rgba(26, 27, 29, .7) 0, rgba(26, 27, 29, 0) 26%), linear-gradient(180deg, rgba(26, 27, 29, .55) 0, rgba(26, 27, 29, 0) 16%); }
@media (max-width: 1080px) {
  .abr.is-static .abr__stage { height: auto; aspect-ratio: 390 / 600; min-height: 0; }
  .abr.is-static .abr__text { grid-column: 1 / -1; }
}

/* review toggle steps aside over the pinned opening on narrower screens (as on the approved pages) */
@media (max-width: 1080px) { .review-toggle.is-aside { opacity: 0; pointer-events: none; } }

/* review scrubber (?scrub=1) — a review tool, not part of the page design */
.abr-scrubbing, .abr-scrubbing body { overflow: hidden; }
.abr-scrub { position: fixed; z-index: 80; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: rgba(26, 27, 29, .9); border: 1px solid rgba(196, 197, 199, .25); color: var(--warm); font-size: 11px; }
.abr-scrub input { flex: 1 1 220px; accent-color: #F6F3EF; }
.abr-scrub button { font: inherit; color: inherit; background: none; border: 1px solid rgba(196, 197, 199, .4); padding: 4px 9px; cursor: pointer; letter-spacing: .08em; text-transform: uppercase; }
.abr-scrub .pp { border-color: var(--warm); min-width: 62px; }
.abr-scrub .v { color: var(--cool); min-width: 3.6em; }
.abr-scrub .mk { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1080px) and (max-height: 700px) { .abr__legend .note { display: none; } }
.abr__legend .regs li b i { font-style: normal; color: var(--cool); font-weight: 500; }

/* Credit follows the CTA in normal flow and has a solid contrast surface. */
.abr__credit { display: table; margin: 12px 0 0; padding: 4px 7px; max-width: 100%;
  color: #f6f3ef; background: #1a1b1d; font-size: 12px; line-height: 1.4; }
@media (max-width: 699px) { .abr .abr__inner { padding-bottom: max(14px, env(safe-area-inset-bottom)); } }
