/* Location pages (brand-strategy-consultant-*): a UAE story told in one scroll.
   Hero, then what shapes a brand here, then the work emirate by emirate, then questions and an invitation. */
.uae-page { background: #000; }
.uae { color: var(--ink, #ededea); font-family: var(--display); }
.uae i { font-style: italic; }
.uae-lab { margin: 0 0 18px; font-style: italic; font-size: clamp(14px, .95vw, 20px); color: #8d8d88; }

/* Hero: one full screen, the photograph and the line */
.uae-hero { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.uae-hero__ph { position: absolute; inset: 0; background-size: cover; animation: uae-zoom 14s cubic-bezier(.2, .6, .2, 1) both; }
.uae-hero__ph::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 42%, rgba(0, 0, 0, .05) 75%); }
@keyframes uae-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.uae-hero__tx { position: relative; padding: 0 var(--gut, 60px) clamp(44px, 9vh, 120px); }
.uae-hero__k { margin: 0 0 clamp(14px, 2vh, 26px); font-weight: 400; font-style: italic; font-size: clamp(15px, 1.05vw, 22px); color: #d6d6d0; }
.uae-hero__t { margin: 0; max-width: 12em; font-weight: 300; font-size: clamp(46px, 7vw, 150px); line-height: .94; letter-spacing: -.028em; }

/* Intro: a calm paragraph with room around it */
.uae-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 80px);
  padding: clamp(90px, 16vh, 200px) var(--gut, 60px); }
.uae-intro__p { margin: 0; max-width: 24em; font-weight: 300; font-size: clamp(24px, 2.2vw, 44px); line-height: 1.3; letter-spacing: -.01em; }

/* Section heads */
.uae-head { padding: 0 var(--gut, 60px); margin-bottom: clamp(40px, 7vh, 90px); }
.uae-head__t { margin: 0; font-weight: 300; font-size: clamp(40px, 5.4vw, 112px); line-height: .95; letter-spacing: -.025em; }

/* What shapes a brand here: five numbered insights, one row each */
.uae-ins { padding-bottom: clamp(100px, 18vh, 220px); }
.uae-in { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 60px); align-items: baseline;
  margin: 0 var(--gut, 60px); padding: clamp(28px, 4.5vh, 56px) 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.uae-in:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.uae-in__n { font-style: italic; font-size: clamp(14px, .95vw, 19px); color: #8d8d88; }
.uae-in__t { margin: 0; font-weight: 300; font-size: clamp(28px, 2.9vw, 60px); line-height: 1.04; letter-spacing: -.02em; }
.uae-in__p { margin: 0; max-width: 30em; font-size: clamp(16px, 1.05vw, 21px); line-height: 1.62; color: #c9c9c4; }

/* The work, emirate by emirate: a big name, then a photo mosaic */
.uae-work { padding-bottom: clamp(60px, 10vh, 140px); }
.uae-em { padding: 0 var(--gut, 60px) clamp(90px, 14vh, 180px); }
.uae-em__h { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: baseline; gap: clamp(16px, 3vw, 60px);
  padding-bottom: clamp(18px, 3vh, 34px); margin-bottom: clamp(18px, 3vh, 34px); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.uae-em__n { font-style: italic; font-size: clamp(14px, .95vw, 19px); color: #8d8d88; }
.uae-em__t { margin: 0; font-weight: 300; font-size: clamp(52px, 8.5vw, 190px); line-height: .9; letter-spacing: -.035em; }
.uae-em__s { margin: 0; font-style: italic; font-size: clamp(14px, .95vw, 19px); color: #a3a39e; text-align: right; }
.uae-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1vw, 18px); }
.uae-tile { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: #0b0b0b; }
.uae-tile.c4 { grid-column: span 4; } .uae-tile.c5 { grid-column: span 5; } .uae-tile.c6 { grid-column: span 6; }
.uae-tile.c7 { grid-column: span 7; } .uae-tile.c12 { grid-column: span 12; }
.uae-tile.is-tall { height: clamp(340px, 40vw, 760px); }
.uae-tile.is-mid { height: clamp(300px, 30vw, 580px); }
.uae-tile__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-size: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.uae-tile__ph .cv__logo { width: 52%; filter: drop-shadow(0 1px 14px rgba(0, 0, 0, .4)); transition: opacity .5s ease; }
.uae-tile__ph .cv__logo img { max-height: 84px; }
.uae-tile__ph.is-logo-top { align-items: flex-start; padding-top: 9%; }
.uae-tile.is-tall .uae-tile__ph .cv__logo img { max-height: 120px; }
.uae-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 46%); opacity: .9; transition: opacity .5s ease; }
.uae-tile__tx { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(14px, 1.4vw, 26px); }
.uae-tile__k { display: block; margin-bottom: 4px; font-style: italic; font-size: clamp(12px, .8vw, 16px); color: rgba(255, 255, 255, .72); }
.uae-tile__h { display: block; font-size: clamp(15px, 1.05vw, 21px); line-height: 1.25; }
.uae-tile.is-tall .uae-tile__h { font-weight: 300; font-size: clamp(22px, 1.9vw, 38px); line-height: 1.12; }
@media (hover: hover) {
  .uae-tile:hover .uae-tile__ph { transform: scale(1.05); }
  .uae-tile:hover .cv__logo { opacity: 0; }
  .uae-tile:hover::after { opacity: 1; }
}

/* Questions and the invitation */
.uae-faq { padding-bottom: clamp(100px, 16vh, 200px); }
.uae-faq .loc2__acc { margin: 0 var(--gut, 60px); max-width: 60em; }
.uae-end { padding: clamp(60px, 10vh, 140px) var(--gut, 60px) clamp(120px, 20vh, 260px); border-top: 1px solid rgba(255, 255, 255, .16); }
.uae-end__t { margin: 0 0 clamp(20px, 3vh, 36px); max-width: 14em; font-weight: 300; font-size: clamp(40px, 5.4vw, 112px); line-height: .98; letter-spacing: -.025em; }
.uae-end__a { font-style: italic; font-size: clamp(20px, 1.6vw, 32px); color: var(--ink, #ededea); }

/* Gentle arrival as each part scrolls in (only with JavaScript; without it everything shows) */
.uae-js .uae-rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.uae-js .uae-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .uae-hero__ph { animation: none; }
  .uae-js .uae-rv { opacity: 1; transform: none; transition: none; }
}

/* Tablets and phones */
@media (max-width: 1024px) {
  .uae-intro { grid-template-columns: 1fr; }
  .uae-in { grid-template-columns: 44px minmax(0, 1fr); }
  .uae-in__p { grid-column: 2; }
  .uae-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uae-tile[class*=" c"] { grid-column: span 1; }
  .uae-tile.c7, .uae-tile.c12 { grid-column: span 2; }
  .uae-tile.is-tall, .uae-tile.is-mid { height: clamp(260px, 52vw, 520px); }
  .uae-em__h { grid-template-columns: 44px minmax(0, 1fr); }
  .uae-em__s { grid-column: 2; text-align: left; }
}
@media (max-width: 600px) {
  .uae-grid { grid-template-columns: 1fr; }
  .uae-tile[class*=" c"] { grid-column: auto; height: 108vw; }
}

/* A short note under a group's name (e.g. what the Public Investment Fund is) */
.uae-em__note { margin: 0 0 clamp(22px, 3.5vh, 40px) calc(70px + clamp(16px, 3vw, 60px)); max-width: 40em;
  font-size: clamp(16px, 1.1vw, 22px); line-height: 1.55; color: #c9c9c4; }
@media (max-width: 1024px) { .uae-em__note { margin-left: calc(44px + clamp(16px, 3vw, 60px)); } }

/* Shortcuts to the other location pages */
.uae-more { padding: 0 0 clamp(100px, 16vh, 200px); }
.uae-more .mk__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1vw, 18px); margin: 0 var(--gut, 60px); }
.mk__c { position: relative; display: block; overflow: hidden; height: clamp(260px, 26vw, 520px); color: #fff; text-decoration: none; background: #0b0b0b; }
.mk__ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.mk__c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%); }
.mk__tx { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 1.6vw, 30px); }
.mk__n { display: block; font-weight: 300; font-size: clamp(30px, 3.2vw, 64px); line-height: 1; letter-spacing: -.02em; }
.mk__s { display: block; margin-top: 8px; font-style: italic; font-size: clamp(13px, .95vw, 18px); color: rgba(255, 255, 255, .72); }
.mk__go { position: absolute; top: clamp(14px, 1.4vw, 24px); right: clamp(16px, 1.6vw, 28px); z-index: 1; font-size: 22px; opacity: 0; transform: translateX(-6px); transition: opacity .4s ease, transform .4s ease; }
@media (hover: hover) { .mk__c:hover .mk__ph { transform: scale(1.05); } .mk__c:hover .mk__go { opacity: 1; transform: none; } }
@media (max-width: 760px) { .uae-more .mk__row { grid-template-columns: 1fr; } }

/* Every page leads to all the projects: a clear link after the showcase, and a card beside the other markets */
.uae-allp { margin: calc(-1 * clamp(40px, 7vh, 100px)) var(--gut, 60px) 0; }
.uae-all { display: inline-flex; align-items: baseline; gap: .5em; padding: .55em 1.1em .6em; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px; color: var(--ink, #ededea); text-decoration: none; font-size: clamp(17px, 1.2vw, 24px); transition: background .35s ease, color .35s ease; }
.uae-all span { transition: transform .35s ease; }
@media (hover: hover) { .uae-all:hover { background: #ededea; color: #000; } .uae-all:hover span { transform: translateX(4px); } }
.uae-more .mk__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* pages that are not market pages themselves show all three markets and All projects: four across */
.uae-more .mk__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uae-more .mk__row--4 .mk__n { font-size: clamp(26px, 2.4vw, 48px); }
/* the sector row sits right above the market row, so it keeps a shorter gap below */
.uae-more--sec { padding-bottom: clamp(48px, 8vh, 96px); }
.mk__quad { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.mk__quad span { background-size: cover; background-position: center; }
.mk__go--on { opacity: 1; transform: none; }
@media (hover: hover) { .mk__c--all:hover .mk__quad { transform: scale(1.05); } }
@media (max-width: 1024px) { .uae-more .mk__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk__c--all { grid-column: span 2; } .mk__row--4 .mk__c--all { grid-column: auto; } }
@media (max-width: 760px) { .uae-more .mk__row { grid-template-columns: 1fr; } .mk__c--all { grid-column: auto; } }

/* The image scroll on phones (location pages): the same two lines as on desktop, sized by a small script so the
   longest place name fits the screen; a smaller final line; half the photos, so the stream stays smooth */
@media (max-width: 760px) {
  .uae-page .swtx__lines { padding: 0 16px; }
  .uae-page .swtx__final { font-size: clamp(38px, 11.5vw, 72px); }
  .uae-page .swtx__pic:nth-child(2n) { display: none; }
}
