/* Hallmark · checked: 2026-11-05 · genre: modern-minimal (inferred)
 * fixed: 7a, 2a, 2b, 10a, 34, 38i, 38iii, 54, 63, 64, 67, 30a, 33, 62 · structural: printed (24b, 42, 58)
 * built: the project · redesign: polish · v2.0.0 */
/* ApexFlow homepage, "printed annual" direction: one axis at 35-42%, a night masthead with the live 3D district,
   open type, solid fields of colour and real photographs. Loaded on the EN and AR homepages only. */
.ax-home { --axis: 35%; --light: #EFF1F0; }
.ax-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero: the masthead is the 3D district ---------- */
.ax-hero3d { background: var(--ax-dark); color: var(--light); position: relative; overflow: clip; }
.ax-hero3d__scene { position: relative; height: clamp(360px, 60svh, 760px); background: #2b1f1f; }
.ax-hero3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-hero3d__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s var(--ax-ease); }
.ax-hero3d__scene.is-live canvas { opacity: 1; }

.ax-hero3d__key { grid-column: 1; grid-row: 2; align-self: start; margin: .4em 0 0; display: flex; flex-direction: column; gap: 10px; font: 400 .875rem/1.3 var(--ax-sans); color: rgba(239, 241, 240, .78); }
.ax-hero3d__key span { display: inline-flex; align-items: center; gap: 8px; }
.ax-hero3d__key span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FF7A45; }
.ax-hero3d__key .out::before { background: #5BE3C8; }
.ax-hero3d__copy { display: grid; grid-template-columns: 42fr 58fr; column-gap: 0; padding-top: clamp(28px, 3.4vw, 52px); padding-bottom: clamp(64px, 8vw, 120px); }
.ax-home .ax-hero3d .ax-h1 { grid-column: 1 / -1; margin: 0 0 clamp(24px, 3vw, 44px); max-width: none; text-align: start; color: var(--light);
  font: 600 clamp(2.6rem, 7vw, 7.75rem)/.96 var(--ax-sans); letter-spacing: -.05em; }
.ax-hero3d__side { grid-column: 2; grid-row: 2; max-width: 34em; }
.ax-home .ax-hero3d .ax-hero__sub { margin: 0 0 28px; text-align: start; max-width: none; color: rgba(239, 241, 240, .86); font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.ax-hero3d .ax-cta-row { justify-content: flex-start; }
.ax-hero3d .ax-link { color: #FF8A63; }

/* ---------- intro: title, note, facts ---------- */
.ax-intro { padding: clamp(96px, 10vw, 140px) 0 clamp(88px, 9vw, 120px); }
.ax-intro__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; column-gap: 20px; }
.ax-intro__h { grid-column: 1 / 7; margin: 0; font: 500 clamp(2.75rem, 5vw, 4.75rem)/1 var(--ax-sans); letter-spacing: -.045em; }
.ax-intro__note { grid-column: 9 / 13; margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--ax-ink); }
.ax-facts { display: flex; justify-content: space-between; gap: 24px; margin: clamp(72px, 8vw, 120px) 0 0; }
.ax-facts dt { font: 500 clamp(1.75rem, 3vw, 2.75rem)/1 var(--ax-sans); letter-spacing: -.035em; }
.ax-facts dd { margin: 10px 0 0; font-size: .9375rem; color: var(--ax-ink-2); max-width: 16em; }

/* ---------- shared heads hang from the axis ---------- */
.ax-home .ax-head, .ax-home .ax-head.ax-center { text-align: start; margin-inline-start: var(--axis); max-width: calc(100% - var(--axis)); }
.ax-home .ax-head .ax-h2, .ax-home .ax-head .ax-lede { margin-inline: 0; }
.ax-home .ax-h2 { font-weight: 500; letter-spacing: -.045em; }

/* ---------- services: rows from the axis, the product's own fragments at the margin ---------- */
.ax-home #services { background: #FFFDFA; }
.ax-home .ax-tiles { display: block; }
.ax-home .ax-tile, .ax-home .ax-tile--wide { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); column-gap: clamp(24px, 3vw, 48px); align-items: start;
  min-height: 0; padding: 0; margin: 0 0 clamp(80px, 9vw, 128px); background: none; box-shadow: none; border-radius: 0; color: var(--ax-ink); transform: none; }
.ax-home .ax-tile:hover { transform: none; box-shadow: none; }
.ax-home .ax-tile:last-child { margin-bottom: 0; }
.ax-home .ax-tile__copy { grid-column: 1; flex: none; padding-inline-start: calc(var(--axis) * .5); }
.ax-home .ax-tile__visual { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
.ax-home .ax-tile .ax-more { grid-column: 1; padding: 4px 0 0; padding-inline-start: calc(var(--axis) * .5); color: var(--ax-signal-ink); }
.ax-home .ax-tile h3 { max-width: 15em; font: 500 clamp(1.75rem, 3vw, 3rem)/1.04 var(--ax-sans); letter-spacing: -.04em; transition: color .25s var(--ax-ease); }
.ax-home .ax-tile:hover h3 { color: var(--ax-signal-ink); }
.ax-home .ax-tile p, .ax-home .ax-tile--dark p { color: var(--ax-ink); font-size: 1.0625rem; max-width: 34ch; }
.ax-home .ax-tile--dark .ax-more { color: var(--ax-signal-ink); }
.ax-home .ax-tile--dark .ax-tile__visual { background: var(--ax-dark); border-radius: var(--ax-r-md); padding: clamp(18px, 2.4vw, 28px); color: var(--light); }

/* ---------- process: lines that step across ---------- */
.ax-stair { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(40px, 4vw, 56px); }
.ax-stair li { grid-column: 1 / -1; }
.ax-stair li:nth-child(2) { grid-column: 3 / -1; } .ax-stair li:nth-child(3) { grid-column: 5 / -1; } .ax-stair li:nth-child(4) { grid-column: 7 / -1; }
.ax-stair__line { margin: 0; font: 500 clamp(2.25rem, 4.6vw, 4.75rem)/1 var(--ax-sans); letter-spacing: -.045em; white-space: nowrap; }
.ax-stair__line--last { color: var(--ax-signal-ink); }
.ax-stair li > p:last-child { margin: 12px 0 0; max-width: 34ch; font-size: 1.0625rem; color: var(--ax-ink-2); }

/* ---------- UAE: gutterless mosaic of real photographs and flat colour ---------- */
.ax-uae { background: var(--ax-dark); }
.ax-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(340px, 52svh) minmax(300px, 46svh); }
.ax-mosaic figure { margin: 0; overflow: hidden; }
.ax-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ax-ease); }
.ax-mosaic figure:hover img { transform: scale(1.03); }
.ax-mosaic__a { grid-column: 1 / 3; grid-row: 1; }
.ax-mosaic__b { grid-column: 3; grid-row: 1; background: var(--ax-teal); color: var(--light); padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; }
.ax-mosaic__b .ax-h2 { color: var(--light); font-size: clamp(2rem, 3.4vw, 3.25rem); margin-bottom: 16px; }
.ax-mosaic__b p { margin: 0; color: var(--light); font-size: 1.0625rem; max-width: 30ch; }
.ax-mosaic__c { grid-column: 2 / 4; grid-row: 2; }
.ax-mosaic__d { grid-column: 1; grid-row: 2; background: #B83210; color: #FFFDFA; padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.ax-mosaic__d p { margin: 0; font: 500 clamp(1.375rem, 2.2vw, 2rem)/1.15 var(--ax-sans); letter-spacing: -.03em; }
.ax-mosaic__d .ax-link, .ax-dark .ax-mosaic__d .ax-link { color: #FFFDFA; }

/* ---------- about: portrait as a drop capital ---------- */
.ax-about { background: #FFFDFA; }
.ax-about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
.ax-about__facts { grid-column: 1 / 3; list-style: none; margin: .45em 0 0; padding: 0; font-size: .875rem; line-height: 1.5; color: var(--ax-ink-2); }
.ax-about__facts li + li { margin-top: 6px; }
.ax-about__facts a { color: var(--ax-ink); }
.ax-about__grid > div { grid-column: 3 / 13; }
.ax-about__p { margin: 0; font: 400 clamp(1.5rem, 2.5vw, 2.375rem)/1.2 var(--ax-sans); letter-spacing: -.025em; color: var(--ax-ink); }
.ax-about__p img { float: inline-start; width: 3.6em; height: 3.6em; object-fit: cover; margin-top: .12em; margin-inline-end: .5em; }
.ax-about__p--soft { color: var(--ax-ink-3); margin-top: 1.2em; clear: both; }
.ax-about__p--soft a { color: var(--ax-ink); }

/* ---------- FAQ: large questions, answers beside, all open ---------- */
.ax-qa__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; margin-bottom: clamp(56px, 6vw, 84px); }
.ax-qa__row h2, .ax-qa__row h3 { grid-column: 1 / 8; margin: 0; font: 500 clamp(1.5rem, 2.2vw, 2.125rem)/1.12 var(--ax-sans); letter-spacing: -.035em; }
.ax-qa__head h2 { color: var(--ax-ink-3); }
.ax-qa__row p { grid-column: 9 / 13; margin: .2em 0 0; font-size: 1.0625rem; line-height: 1.55; max-width: 42ch; color: var(--ax-ink); }

/* ---------- phone composition ---------- */
@media (max-width: 860px) {
  .ax-home { --axis: 0%; }
  .ax-hero3d__scene { height: 48svh; min-height: 300px; }
  .ax-hero3d__copy { grid-template-columns: 1fr; }
  .ax-hero3d__side { grid-column: 1; }
  .ax-home .ax-hero3d .ax-h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .ax-hero3d__key { grid-row: auto; flex-direction: row; gap: 18px; font-size: .875rem; margin: 0 0 22px; }
  .ax-hero3d__side { grid-row: auto; }
  .ax-intro__top { display: block; }
  .ax-intro__h { font-size: 11vw; margin-bottom: 18px; }
  .ax-facts { display: grid; grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .ax-facts dt { font-size: 1.625rem; }
  .ax-home .ax-tile, .ax-home .ax-tile--wide { grid-template-columns: 1fr; row-gap: 18px; }
  .ax-home .ax-tile__copy, .ax-home .ax-tile .ax-more, .ax-home .ax-tile__visual { grid-column: 1; grid-row: auto; padding-inline-start: 0; }
  .ax-stair { display: block; }
  .ax-stair li { margin-inline-start: 0 !important; }
  .ax-stair li + li { margin-top: 40px; }
  .ax-stair li:nth-child(2) { padding-inline-start: 6vw; } .ax-stair li:nth-child(3) { padding-inline-start: 12vw; } .ax-stair li:nth-child(4) { padding-inline-start: 18vw; }
  .ax-stair__line { font-size: 8.4vw; white-space: normal; }
  .ax-mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .ax-mosaic > * { grid-column: 1 !important; grid-row: auto !important; }
  .ax-mosaic figure { aspect-ratio: 4 / 3; }
  .ax-about__grid { display: flex; flex-direction: column; }
  .ax-about__facts { order: 2; }
  .ax-about__p { font-size: 1.375rem; line-height: 1.25; }
  .ax-about__p img { width: 4.6em; height: 4.6em; }
  .ax-about__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; }
  .ax-about__facts li + li { margin-top: 0; }
  .ax-about__grid > div { margin-bottom: 0; }
  .ax-qa__row { display: block; margin-bottom: 52px; }
  .ax-qa__row h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
  .ax-qa__row p { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-hero3d__scene canvas, .ax-mosaic img, .ax-home .ax-tile h3 { transition: none; }
}

/* ---------- found photographs ---------- */
.ax-intro__fig { margin: clamp(56px, 6vw, 88px) 0 0; margin-inline-start: auto; width: min(100%, 42%); }
.ax-intro__fig img, .ax-band img { width: 100%; height: auto; display: block; }
.ax-intro__fig figcaption, .ax-band figcaption { margin-top: 10px; font-size: .8125rem; color: var(--ax-ink-3); }
.ax-band figure { margin: 0; }
.ax-band img { height: min(78svh, 820px); object-fit: cover; }
.ax-band figcaption { padding-inline: var(--ax-gutter); padding-bottom: 12px; }
@media (max-width: 860px) { .ax-intro__fig { width: 100%; } .ax-band img { height: 56svh; } }
.ax-home .ax-tile__copy .ax-more { padding-inline-start: 0; }
.ax-band img { object-position: 50% 70%; }

/* Arabic: connected script takes no negative tracking */
[dir="rtl"] .ax-home .ax-h1, [dir="rtl"] .ax-home h2, [dir="rtl"] .ax-home h3, [dir="rtl"] .ax-home .ax-stair__line, [dir="rtl"] .ax-home dt, [dir="rtl"] .ax-home .ax-about__p, [dir="rtl"] .ax-home .ax-mosaic__d p { letter-spacing: 0; }
[dir="rtl"] .ax-home .ax-hero3d .ax-h1 { line-height: 1.15; }
@media (max-width: 860px) { [dir="rtl"] .ax-home .ax-hero3d .ax-h1 { font-size: 9vw; } }

/* ---------- global markets ---------- */
.ax-global { padding-block: clamp(80px, 9vw, 140px); background: var(--ax-dark); color: var(--light); }
.ax-global__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.ax-global__head h2 { margin: 0; font: 500 clamp(2rem, 4.2vw, 4rem)/1.02 var(--ax-sans); letter-spacing: -.045em; color: var(--light); }
.ax-global__head p { margin: 0; max-width: 54ch; font-size: 1.0625rem; line-height: 1.55; color: rgba(239, 241, 240, .86); }
.ax-global__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.ax-global__list a { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 200px; padding: 22px; background: var(--ax-dark-2); color: var(--light); text-decoration: none; transition: background-color .2s var(--ax-ease); }
.ax-global__list a:hover { background: #222833; }
.ax-global__list span { font: 500 clamp(1.25rem, 1.8vw, 1.625rem)/1.1 var(--ax-sans); letter-spacing: -.03em; }
.ax-global__list small { font-size: .9375rem; line-height: 1.45; color: rgba(239, 241, 240, .78); }
.ax-global__more { margin: clamp(28px, 3vw, 44px) 0 0; }
.ax-global .ax-link { color: #FF8A63; }
[dir="rtl"] .ax-global__head h2, [dir="rtl"] .ax-global__list span { letter-spacing: 0; }
@media (max-width: 1100px) { .ax-global__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ax-global__head { grid-template-columns: 1fr; row-gap: 14px; } .ax-global__list { grid-template-columns: 1fr 1fr; } .ax-global__list a { min-height: 150px; gap: 20px; padding: 18px; } }
