/* ==========================================================================
   Home — the night drive. Eleven chapters, each with one job.
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 00 · Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 140px 100px;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Burj Khalifa stands at 40% across the picture and the hoarding runs from
     42% to 94% with the logo at its right end; framed a little right of
     centre, a narrower screen keeps the whole slogan and the logo */
  object-position: 68% center;
  animation: heroSettle 2.4s var(--dare-out) both;
}
@keyframes heroSettle { from { transform: scale(1.12); } to { transform: none; } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 42%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.9) 100%);
}
.hero__scan { position: absolute; inset: 0; opacity: .5; }
/* Film grain over the hero: a still fractal-noise tile (it no longer moves:
   a constant shimmer added nothing the film does not already give) */
.hero__media::after {
  content: "";
  position: absolute; inset: -40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .07;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
}
/* Hold the copy to the left so the skyline carries the right of the frame */
.hero__inner > * { max-width: min(980px, 74%); }
/* The lede keeps a reading measure, about 70 characters a line */
.hero__inner > .hero__lede { max-width: min(640px, 100%); }
.hero__lede    { animation: rise 1s var(--dare-out) .6s both; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-3);
  animation: rise .5s var(--dare-out) .1s both;
}

/* Headline lines rise through a mask */
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; animation: rise 1.1s var(--dare-out) both; }
.hero__line:nth-child(1) > span { animation-delay: .25s; }
.hero__line:nth-child(2) > span { animation-delay: .4s; }
.hero__title em { font-style: normal; }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1100px) {
  .hero__inner > * { max-width: 100%; }
}

/* The hero film: edge to edge, the buttons at its foot, the shading only
   where the bar and the buttons need it */
.hero--video { justify-content: flex-end; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  transition: opacity 700ms ease;
}
/* The two buttons sit low in the frame, a size under the page's own, so
   the film keeps the stage (the phone keeps its own spacing, mobile.css) */
@media (min-width: 768px) {
  .hero--video { padding-bottom: 48px; }
  .hero--video .hero__actions { gap: 10px; }
  .hero--video .hero__actions .btn { height: 44px; padding-inline: 20px; font-size: 13px; }
  .hero--video .hero__actions .btn:has(> svg) { padding-inline-end: 0; }
  .hero--video .hero__actions .btn > svg { padding: 14px; margin-inline-start: 6px; }
}

/* The loop point: a short dip to black (home.js), out and back in */
.hero__video.is-dip { opacity: 0; transition-duration: 500ms; }
.hero--video .hero__media { background: #000; }
.hero--video .hero__scrim {
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 62%, rgba(0,0,0,.7) 100%);
}
.hero--video .hero__media::after { opacity: .04; }      /* a whisper of grain over the film */
@media (max-width: 768px) {
  .hero { padding-block: 120px 90px; }
  .hero__img { object-position: 68% center; }   /* the wide picture on a phone held sideways: the hoarding and its logo kept */
}

/* An upright phone shows the tall version of the hero, framed as shot */
/* An upright phone gets its own tall picture; the hoarding sits right of centre,
   so frame it there and keep the slogan and the logo whole */
@media (max-width: 900px) and (orientation: portrait) { .hero__img { object-position: right center; } }

/* --- 01 · Facts strip ---------------------------------------------------- */
/* Four figures under the film: a large number over a short label in each
   column, hairlines between. Below them the black eases into the white of
   the next section, so the film, the figures and the page read as one. */
.facts { background: var(--canvas); border-top: 1px solid var(--line-soft); }
.facts__list {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts__list li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 44px 32px 40px;
  border-inline-start: 1px solid var(--line-soft);
}
.facts__list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts__v {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: .9;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.facts__l { max-width: 22ch; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--text-dim); }
/* The fade: black to white on an eased curve, so it never shows a band */
.facts::after {
  content: "";
  display: block;
  height: clamp(64px, 6vw, 96px);      /* short: the figures and "What we do" stay close */
  background: linear-gradient(180deg,
    #000 0%, #060606 8%, #141414 17%, #2a2a2a 27%, #474747 37%, #6b6b6b 48%,
    #929292 59%, #b8b8b8 70%, #d9d9d9 81%, #f2f2f2 91%, #fff 100%);
}
@media (max-width: 900px) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li { padding: 28px 18px 30px; gap: 10px; border-inline-start: 0; }
  .facts__list li:nth-child(2n) { border-inline-start: 1px solid var(--line-soft); }
  .facts__list li:nth-child(2n+1) { padding-inline-start: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .facts__v { font-size: clamp(36px, 10vw, 46px); }
  .facts__l { font-size: 14px; }
}

/* --- 02 · Expertise — the hover deck (also on vision and expertise) ------ */
/* Section heads: the heading, then its words under it in one column of at
   most 640px, never spread to the far side of the page */
.vision__head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-5); margin-bottom: var(--s-8);
}
.vision__sub { max-width: 640px; }
.deck__intro { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.deck__aside { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; max-width: 640px; }

/* The hover deck (deck.js): a row of cards, each a fine line drawing.
   Pointing at one fades and blurs the rest, turns its drawing red and sets
   it moving, and opens its text beside it over the faded cards. Without a
   mouse the text simply sits with each card. Works on both grounds. */
.deck {
  position: relative;
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 40px;
}
.deck__card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-4);
  outline: none;
  transition: opacity var(--t-ui) var(--dare-out), filter var(--t-ui) var(--dare-out);
}
.deck__art {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 11%;
  border-radius: var(--r);
  background: var(--canvas) radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 18px 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-mute);
  transition: color var(--t-ui) var(--dare-out), box-shadow var(--t-ui) var(--dare-out);
}
.deck__art svg { width: 100%; height: 100%; overflow: visible; stroke-width: .6; }
.deck__card:focus-visible .deck__art { box-shadow: inset 0 0 0 2px var(--red); }

.deck__cap { display: flex; align-items: baseline; gap: 14px; }
.deck__n {
  flex: none;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-ui) var(--dare-out);
}
.deck__t {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.deck__eyebrow { display: none; }
.deck__text { color: var(--text-dim); }

/* Our stage: a red number and the brand spark breathing in its corner */
.deck__card--us .deck__n { color: var(--red-ink); }
.deck__card--us .deck__art::after {
  content: "";
  position: absolute; top: 16px; inset-inline-end: 16px;
  width: 12px; height: 12px;
  background: var(--red);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: breath 4s ease-in-out infinite;
}
@keyframes breath { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* Active: red drawing, red number, and the drawing comes alive */
.deck__card.is-active { z-index: 2; }
.deck__card.is-active .deck__art { color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.deck__card.is-active .deck__n { color: var(--red-ink); }

.deck__art g { transform-box: view-box; transform-origin: 50% 50%; animation-play-state: paused; }
.deck__card.is-active .deck__art g,
.deck__card.is-active .deck__art rect { animation-play-state: running; }
.art-spin        { animation: deckSpin 16s linear infinite paused; }
.deck__card:hover .art-spin, .deck__card:focus-visible .art-spin { animation-play-state: running; }
.art-spin--slow  { animation-duration: 28s; }
.art-spin--rev   { animation-direction: reverse; animation-duration: 22s; }
.art-zoom        { animation: deckZoom 2.6s ease-in-out infinite alternate; }
.art-pulse       { animation: deckPulse 3.2s ease-in-out infinite paused; }
.deck__card:hover .art-pulse, .deck__card:focus-visible .art-pulse { animation-play-state: running; }
.art-rise rect {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: deckRise 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 90ms);
  animation-play-state: paused;
}
@keyframes deckSpin  { to { transform: rotate(360deg); } }
@keyframes deckZoom  { to { transform: scale(1.1); } }
@keyframes deckPulse { 50% { transform: rotate(45deg) scale(.86); } }
@keyframes deckRise  { 50% { transform: scaleY(.55); } }

/* With a mouse, on a wide screen: the text opens beside the card */
@media (hover: hover) and (min-width: 1000px) {
  .deck.has-active .deck__card:not(.is-active) { opacity: .16; filter: blur(5px); }
  .deck__copy {
    position: absolute;
    top: 0; width: 100%;
    display: flex; flex-direction: column; gap: var(--s-4);
    padding: var(--s-5) var(--s-2) 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-ui) var(--dare-out), transform var(--t-ui) var(--dare-out);
  }
  .deck__card--r .deck__copy { left: calc(100% + 40px);  transform: translateX(-24px); }
  .deck__card--l .deck__copy { right: calc(100% + 40px); transform: translateX(24px); }
  .deck__card.is-active .deck__copy { opacity: 1; transform: none; transition-delay: 80ms; }
  .deck__eyebrow { display: block; color: var(--red-ink); }
  .deck__text {
    font-family: var(--display);
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .deck--4 .deck__text { font-size: clamp(17px, 1.3vw, 20px); }
}

/* Narrow screens: one card per row, the drawing beside its words */
@media (max-width: 999px) {
  .deck { grid-auto-flow: row; grid-auto-columns: auto; gap: var(--s-6); }
  .deck__card {
    display: grid;
    grid-template-columns: clamp(104px, 26vw, 176px) minmax(0, 1fr);
    grid-template-areas: "art cap" "art copy";
    grid-template-rows: auto 1fr;
    column-gap: var(--s-5); row-gap: var(--s-2);
    align-items: start;
  }
  .deck__art { grid-area: art; }
  .deck__cap { grid-area: cap; }
  .deck__copy { grid-area: copy; }
  .deck__card--us .deck__art::after { top: 10px; inset-inline-end: 10px; width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .deck__art g, .deck__art rect, .deck__card--us .deck__art::after { animation: none !important; }
  .deck__card, .deck__copy { transition-duration: 1ms; }
  .deck.has-active .deck__card:not(.is-active) { filter: none; }
}

/* --- 03 · Flagship ------------------------------------------------------- */
.flagship__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--s-5);
  margin-block: var(--s-6) var(--s-7);
}
.flagship__aside { display: flex; flex-direction: column; gap: var(--s-4); max-width: 640px; }

.flagship__figs { margin-top: var(--s-7); }
/* Under the flagship only its figures: each a calm number and one label, a
   size down from the page's display figures so they read at a glance */
.flagship__figs .fig { gap: 10px; padding: 24px 26px; }
.flagship__figs .t-fig { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; }
.flagship__figs .fig__label { font-size: 13px; font-weight: 400; color: var(--text-soft); }
@media (max-width: 767px) {
  .flagship__figs .fig { padding: 18px 18px 20px; gap: 8px; }
  .flagship__figs .t-fig { font-size: 26px; }
}

@media (max-width: 1000px) {
  .flagship__head { grid-template-columns: 1fr; }
}
/* The photograph carries the story: place, title and link on a deep fade at
   its foot; the tags sit at the right. On a phone they drop under the photo,
   which is too short to hold them. */
.flagship__frame--story::after { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.88) 100%); }
.flagship__cap--story { align-items: flex-end; inset: auto 48px 44px; }
.flagship__text { max-width: 560px; }
.flagship__text .flagship__loc { margin-bottom: var(--s-4); color: var(--text-soft); }
.flagship__text h2 { margin-bottom: var(--s-4); }
@media (max-width: 860px) {
  .flagship__frame--story::after { display: none; }
  .flagship__cap--story { position: static; inset: auto; padding: var(--s-5) 0 0; flex-direction: column; align-items: flex-start; }
  .flagship__frame--story { overflow: visible; }
}

/* --- 04 · The Corridor --------------------------------------------------- */
.corridor { background: var(--wash); }
.corridor__head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-5); margin-bottom: var(--s-8);
}
.corridor__sub { max-width: 640px; }
/* On a desktop the heading holds one line and its words sit beside it, on the same baseline */
@media (min-width: 900px) {
  .corridor__head {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 128px); align-items: end;
  }
  .corridor__head h2 { white-space: nowrap; }
  .corridor__sub { justify-self: end; max-width: 46ch; padding-bottom: .4em; }
}

/* The aerial map (assets/aerial); a number opens its card as a dialog over
   the blurred page (map.js). The map is the size of the screen, edge to edge,
   and opens up as it scrolls in: home.js narrows its frame (--mx, --my, a
   clip inset) from the page's margins down to nothing, so it starts as a
   framed picture in the column and ends filling the whole screen. Only the
   clip moves, so the map never has to redraw. Its buttons ride the frame. */
.corridor { overflow-x: clip; padding-bottom: 0; }   /* the map runs right down to the next section, no black band under it */
.corridor__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.corridor__map {
  --mx: var(--gutter); --my: 12svh;
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  height: 100svh;
  overflow: hidden;
  clip-path: inset(var(--my) var(--mx));
  background: #cdc2ad;            /* the map's ground, while it loads */
}
/* Open to the full screen, the top buttons drop below the header, which stays on screen */
.corridor__map .amap__tour  { top: calc(16px + max(var(--my), 80px)); left: calc(16px + var(--mx)); }
.corridor__map .amap__reset { top: calc(16px + max(var(--my), 80px)); right: calc(16px + var(--mx)); }
.corridor__map .amap__now   { left: calc(16px + var(--mx)); bottom: calc(34px + var(--my)); }
.corridor__map .acredit     { left: calc(10px + var(--mx)); bottom: calc(8px + var(--my)); }
.corridor__map .maplibregl-ctrl-bottom-right { right: var(--mx); bottom: var(--my); }
/* If the aerial map cannot run, the drawn map comes back at its own shape */
.corridor__map.is-fallback { width: 100%; margin-inline: 0; height: auto; aspect-ratio: 1312 / 574; min-height: 320px; background: none; clip-path: none; overflow: visible; }
.corridor__hint { display: none; }

/* The list stand-in, kept for the drawn map's fallback */
.corridor__mlist { display: none; list-style: none; margin-bottom: var(--s-5); }
#ddMapMore { display: none; }

@media (max-width: 768px) {
  .corridor__map { --my: 8svh; }
  /* A phone keeps its link to the full map, so a little room under it */
  .corridor { padding-bottom: var(--s-6); }
  #ddMapMore { display: inline-flex; margin-top: var(--s-5); }
}

/* --- 02 · What we do: three full-height panels (also on expertise) ------- */
/* A black band of three photographs, one capability each. The text in each
   panel is sticky, each a step lower than the last (300, 200, 100px from the
   top), so as the band scrolls past they settle into a staircase. Pointing
   at a panel brightens its photograph, spins its numbered ring red and draws
   a red rule under the title, while the other two darken. */
.section--caps { padding-bottom: 0; }
/* Straight after the fade the white is already open space, so "What we do" starts sooner */
.facts + .section--caps { padding-top: clamp(48px, 4.5vw, 64px); }
.caps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s-8);
  background: #000;
}
.cap {
  position: relative;
  min-height: clamp(560px, 80vh, 960px);
  padding-bottom: 56px;
  overflow: clip;                     /* clips the zoom without breaking the sticky text */
  isolation: isolate;
  color: #fff;
}
.cap__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 100%;          /* the foot of the photo is never cut: subjects stand in its lower part */
  transform: scale(1.02);
  transform-origin: 50% 100%;
  filter: saturate(.72) brightness(.88);
  transition: transform 1600ms var(--dare-out), filter 800ms ease;
}
.cap::before {                     /* the shade that keeps the words readable */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.66) 50%, rgba(0,0,0,.74) 100%);
  transition: opacity 800ms ease;
}
.cap::after {                      /* hairline between panels */
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: rgba(255,255,255,.08);
}
.cap:first-child::after { display: none; }

.cap__wrap {
  position: sticky;
  top: var(--stick, 120px);
  margin: 72px clamp(24px, 3vw, 44px) 0;
  max-width: 440px;
}
.cap:nth-child(1) .cap__wrap { --stick: 300px; }
.cap:nth-child(2) .cap__wrap { --stick: 200px; }
.cap:nth-child(3) .cap__wrap { --stick: 100px; }

.cap__n {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cap__n::before {                  /* the dashed ring, which spins on hover */
  content: "";
  position: absolute; inset: 0;
  border: 1px dashed rgba(255,255,255,.55);
  border-radius: 50%;
  transition: border-color 400ms ease;
}
.cap__t {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.cap__t::after {
  content: "";
  display: block;
  width: 36px; height: 2px;
  margin-top: 16px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 600ms cubic-bezier(.65, 0, .35, 1);
}
.cap__text {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.76);
  transition: color 500ms ease;
}

@media (hover: hover) {
  .cap:hover .cap__img { transform: scale(1.08); filter: saturate(1) brightness(1); }
  .cap:hover::before { opacity: .86; }
  .cap:hover .cap__n::before { border-color: var(--red); }
  .cap:hover .cap__t::after { transform: scaleX(1); }
  .cap:hover .cap__text { color: #fff; }
  .caps:hover .cap:not(:hover) .cap__img { filter: grayscale(.7) brightness(.6); }
}

/* Narrow screens: the panels stack, and the text simply sits in each */
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; margin-top: var(--s-7); }
  /* square on a tablet, 4:5 on a phone, so a 2:3 photo always keeps its lower two thirds */
  .cap { min-height: 0; aspect-ratio: 1 / 1; padding-bottom: 40px; }
  .cap::after { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .cap__wrap { position: relative; top: auto; margin-top: 48px; }
  .cap__t::after { transform: scaleX(1); }
}
@media (max-width: 560px) { .cap { aspect-ratio: 4 / 5; } }
/* Phones (main.js adds .is-pinned): the band holds still on the screen while
   it scrolls, and the three panels take turns in it, the photograph and the
   words crossfading from one to the next; then the page carries on. All
   three sit stacked in one sticky screen; the band is a screen tall per panel. */
@media (max-width: 767px) {
  .caps.is-pinned { display: block; position: relative; height: calc(var(--caps-n, 3) * 100svh); }
  .caps.is-pinned .cap {
    position: sticky; top: 0;
    height: 100svh; aspect-ratio: auto; min-height: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 0 64px;
    opacity: 0;
    transition: opacity 650ms ease;
  }
  .caps.is-pinned .cap + .cap { margin-top: -100svh; }
  .caps.is-pinned .cap::after { display: none; }
  .caps.is-pinned .cap::before { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.88) 100%); }
  .caps.is-pinned .cap__img { object-position: 50% 30%; transform: scale(1.06); transition: transform 1400ms var(--dare-out); }
  .caps.is-pinned .cap__wrap {
    position: relative; top: auto; margin: 0 20px;
    transform: translateY(18px);
    transition: transform 800ms var(--dare-out);
  }
  .caps.is-pinned .cap.is-on { opacity: 1; z-index: 1; }
  .caps.is-pinned .cap.is-on .cap__img { transform: none; }
  .caps.is-pinned .cap.is-on .cap__wrap { transform: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .caps.is-pinned .cap, .caps.is-pinned .cap__img, .caps.is-pinned .cap__wrap { transition: none; }
}

/* --- 05 · All nine sites: editorial cards ------------------------------- */
/* No box: each site is a photograph, then a large outlined number beside its
   name and road, and under a fine rule its two figures with their labels,
   closed by a black rule, as a magazine lays out a series. The row starts at
   the text edge and runs off the right of the screen; the rest are a drag, a
   swipe or an arrow away (home.js). */
.rail-sec { padding-block: clamp(64px, 7vw, 96px); background: var(--canvas); overflow: hidden; }
.rail__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); margin-bottom: var(--s-6);
}
.rail__meta { display: flex; align-items: center; gap: var(--s-5); }

.rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);   /* the first card snaps to the text edge, not the screen edge */
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
/* While the rail is actually being dragged, stop the cards selecting text
   and stop the snap fighting the pointer. */
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.is-dragging .scard { pointer-events: none; }
.rail__track { display: flex; gap: 28px; }

.scard {
  flex: none;
  width: clamp(300px, 30vw, 460px);
  display: flex; flex-direction: column;
  scroll-snap-align: start;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  transition: border-color 400ms ease;
}
.scard__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #ececea; }
.scard__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1100ms var(--dare-out);
}
.scard__row { display: flex; align-items: flex-start; gap: 18px; padding-top: 22px; }
.scard__no {
  flex: none;
  font-family: var(--display); font-weight: 500;
  font-size: 48px; line-height: .8; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  transition: -webkit-text-stroke-color 400ms ease;
}
.scard__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scard__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(19px, 1.5vw, 23px); line-height: 1.15; letter-spacing: -0.015em;
}
.scard__road { font-size: 13px; color: var(--text-mute); }
/* The two figures: value over label, side by side under a fine rule */
.scard__facts {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 20px; padding-block: 16px 20px;
  border-top: 1px solid var(--line);
}
.scard__facts > span { display: flex; flex-direction: column; gap: 4px; }
.scard__facts > span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.scard__facts b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.scard__facts i { font-style: normal; font-size: 12px; color: var(--text-mute); }
@media (hover: hover) {
  .scard:hover { border-bottom-color: var(--red); }
  .scard:hover .scard__img { transform: scale(1.04); }
  .scard:hover .scard__no { -webkit-text-stroke-color: var(--red); }
}
.scard:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (max-width: 560px) { .scard { width: 82vw; } .scard__no { font-size: 40px; } }

/* --- 06 · The team (also on expertise) ----------------------------------- */
/* Tall portraits in a row that runs off the right edge (team.js). Each
   person is cut out and stands on the section's soft grey floor, so the
   cards have no edges of their own; the row sits on the foot of the section
   and the next one cuts the portraits off. Name and title sit in a small
   bracket at the top left. Pointing at someone brings them forward, turns
   the bracket red and opens their description; the others fade back. */
.section--team {
  padding-bottom: 0;
  overflow-x: clip;
  /* white above, a studio grey at the floor the portraits stand on */
  background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas) 34%, #ebebed 100%);
}

/* One line: the title, and the arrows at its right */
.team__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4) var(--s-6);
}
.team__bar {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--s-5);
  margin-top: var(--s-7);
}
.team__head .team__bar { margin-top: 0; }
.team__intro { max-width: 620px; margin: var(--s-3) 0 0; }
.team__bar.is-static { display: none; }
.team__nav { display: flex; gap: 8px; }
.team__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-sm);
  background: rgba(10, 10, 10, .06);
  color: var(--text);
  cursor: pointer;
  transition: background-color 320ms cubic-bezier(.65, 0, .35, 1), color 320ms cubic-bezier(.65, 0, .35, 1), opacity 320ms ease, scale 140ms ease-out;
}
.team__btn svg { width: 16px; height: 16px; }
.team__btn--prev svg { transform: scaleX(-1); }
.team__btn:active { scale: .93; }
.team__btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) {
  .team__btn:not([disabled]):hover { background: var(--text); color: var(--canvas); }
  .team__btn:not([disabled]):hover svg path { animation: btn-arrow 620ms cubic-bezier(.65, 0, .35, 1); }
}

.team {
  --card: clamp(250px, 32vw, 460px);
  --gap: clamp(14px, 5vw, 80px);
  list-style: none;
  display: flex;
  gap: var(--gap);
  margin-top: var(--s-7);
  /* out to the right edge of the screen */
  margin-inline-end: calc((100% - 100vw) / 2);
  padding-inline-end: calc((100vw - 100%) / 2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.team::-webkit-scrollbar { display: none; }
.team:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.team.is-dragging, .team.is-settling { scroll-snap-type: none; }
.team.is-dragging { cursor: grabbing; user-select: none; }

.team__card {
  position: relative;
  flex: none;
  width: var(--card);
  aspect-ratio: 720 / 909;
  scroll-snap-align: start;
}

/* The portrait fills the card from the foot */
.team__photo {
  position: absolute; inset: 0;
  color: rgba(10, 10, 10, .18);
  transition: opacity 500ms ease, filter 500ms ease;
}
.team__photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 1100ms var(--dare-out);
}
.team__ph { position: absolute; left: 12%; bottom: 0; width: 76%; stroke-width: .7; }
.team__soon { position: absolute; left: 34px; top: 120px; font-size: 10px; color: var(--text-mute); }

/* The bracket with the name */
.team__label {
  position: absolute; z-index: 2;
  top: 22px; left: 0;
  display: flex; gap: 14px;
  max-width: 40%;                     /* clear of the head, which stands from 20% down */
}
.team__brace {
  flex: none;
  width: 10px;
  border: 1px solid rgba(10, 10, 10, .2);
  border-right: 0;
  border-radius: 0;
  transition: border-color 400ms ease;
}
.team__text { padding-block: 8px; }
.team__name {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.team__role {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
/* The bio panel. On a wide screen it opens beside the portrait, over the
   gap and the faded neighbour, sliding out from the card's edge; .is-flip
   (team.js) sends it to the left when the right has no room. */
.team__card { outline: none; }
.team__card:focus-visible .team__brace { border-color: var(--red); box-shadow: -3px 0 0 -1px var(--red); }
.team__side {
  position: absolute; z-index: 6;
  top: 50%; left: calc(100% + 20px);
  width: clamp(290px, 24vw, 372px);
  max-height: calc(100% - 32px);
  overflow-y: auto;
  padding: 30px 30px 28px;
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .22), 0 2px 10px rgba(0, 0, 0, .05);
  cursor: auto;
  opacity: 0; visibility: hidden;
  transform: translate(-16px, -50%);
  transition: opacity 320ms ease, transform 640ms var(--dare-out), visibility 0s linear 640ms;
}
.team__card.is-flip .team__side,
.team__card:last-child .team__side { left: auto; right: calc(100% + 20px); transform: translate(16px, -50%); }
.team__card.is-lit .team__side {
  opacity: 1; visibility: visible;
  transform: translate(0, -50%);
  transition: opacity 360ms ease 90ms, transform 640ms var(--dare-out) 90ms, visibility 0s;
}
.team__side-role {
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-ink);
}
.team__side-name {
  margin-top: 10px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1;
  color: var(--text);
}
.team__bio { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.team__bio + .team__bio { margin-top: 10px; }
.team__in { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 500; }
.team__card.is-lit .team__brace { border-color: var(--red); }
.team__card.is-lit .team__photo img { transform: scale(1.035); }
.team.has-lit .team__card:not(.is-lit) .team__photo { opacity: .45; filter: grayscale(1); }
.team.has-lit .team__card:not(.is-lit) .team__label { opacity: .5; }
.team__label { transition: opacity 500ms ease; }

/* First view: the portraits rise into place one after another */
.team--anim .team__photo img { transform: translateY(12%); opacity: 0; }
.team--anim .team__label { opacity: 0; transform: translateY(10px); }
.team--anim.is-in .team__photo img {
  transform: none; opacity: 1;
  transition: transform 1300ms var(--dare-out) calc(var(--i) * 110ms), opacity 900ms ease calc(var(--i) * 110ms);
}
.team--anim.is-in .team__label {
  opacity: 1; transform: none;
  transition: opacity 700ms ease calc(var(--i) * 110ms + 300ms), transform 700ms var(--dare-out) calc(var(--i) * 110ms + 300ms);
}

@media (max-width: 999px) {
  .team { --card: min(58vw, 380px); }
}
/* Narrower screens (mostly touch): a tap opens the bio as a sheet over
   the foot of the card instead, frosted so the portrait shows through */
@media (max-width: 899px) {
  .team__side,
  .team__card.is-flip .team__side,
  .team__card:last-child .team__side {
    top: auto; left: 10px; right: 10px; bottom: 10px;
    width: auto; max-height: calc(100% - 20px);
    padding: 16px 18px 18px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: var(--r-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
    transform: translateY(14px);
  }
  .team__card.is-lit .team__side { transform: none; }
  .team__side-name { margin-top: 6px; padding-bottom: 12px; font-size: 19px; }
  .team__bio { margin-top: 12px; font-size: 13px; line-height: 1.6; }
}
@media (max-width: 560px) {
  .team { --card: 78vw; --gap: 14px; }
  .team__nav { display: none; }
  .team__bar { justify-content: flex-start; }
  .team__label { max-width: 70%; }
}
/* Phones: a plain card per person. The portrait on top, nothing laid over
   it; under it the name and the title, then a "Read bio" cue. A tap opens
   the bio as a sheet over the portrait only, never over the name. */
@media (max-width: 767px) {
  .section--team { padding-bottom: var(--s-7); }   /* room under the names before the next section */
  .team { --card: 76vw; --gap: 16px; margin-top: var(--s-5); }
  .team__card { aspect-ratio: auto; display: flex; flex-direction: column; }
  .team__photo { position: relative; inset: auto; aspect-ratio: 720 / 909; }
  .team__label { position: static; order: 2; max-width: none; margin-top: 16px; }
  .team__brace { display: none; }
  .team__text { padding: 0; display: flex; flex-direction: column; gap: 5px; }
  .team__name {
    font-family: var(--display); font-weight: 500;
    font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; text-transform: none;
  }
  .team__role { margin-top: 0; font-size: 11px; letter-spacing: .14em; }
  .team__card.has-bio .team__text::after {
    content: "Read bio";
    margin-top: 10px; padding-bottom: 2px;
    align-self: flex-start;
    font-size: 12px; font-weight: 500; letter-spacing: .02em;
    color: var(--text);
    border-bottom: 1px solid currentColor;
  }
  .team__card.is-lit .team__text::after { content: "Close"; color: var(--red-ink); }
  .team__side,
  .team__card.is-flip .team__side,
  .team__card:last-child .team__side {
    top: 10px; bottom: auto; left: 10px; right: 10px;
    max-height: calc(var(--card) * 1.2625 - 20px);     /* the portrait's height: 909 / 720 of its width */
  }
  .team.has-lit .team__card:not(.is-lit) .team__label { opacity: 1; }
}

/* --- 07 · Sectors -------------------------------------------------------- */
.sectors { padding-block: var(--section-y); overflow: hidden; }
.sectors__title { margin-bottom: var(--s-7); }
.sectors__row { margin-top: var(--s-5); }
/* Regular weight: at the body's 300 the filled words read thinner than the
   outlined ones beside them */
.sectors__row .marquee__item { gap: var(--s-6); padding-inline-end: var(--s-6); align-items: center; font-weight: 400;
  font-size: clamp(34px, 4vw, 58px); }                     /* 90% of .t-display */
@media (max-width: 767px) {
  .sectors__row .marquee__item { font-size: clamp(31px, 9.3vw, 38px); }
}
.sectors__row .red { font-size: .35em; }

/* Brands we've worked with: white logos drifting over a fixed dashed grid,
   with no rule above or below it.
   Each logo sets its optical height with --h (a round badge needs more
   height than a wide wordmark to look the same size). */
.brands__head { margin-top: var(--s-9); margin-bottom: var(--s-5); }
.brands {
  --cell: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M.5 0V48M0 .5H48' fill='none' stroke='%23FFFFFF' stroke-opacity='.08' stroke-dasharray='3 4'/%3E%3C/svg%3E") 0 0 / var(--cell) var(--cell);
  /* The grid fades out on all four sides, so the strip has no edge of its own */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
          mask-composite: intersect;
}
.brands__track { list-style: none; }
.brands__cell {
  flex: none;
  display: grid; place-items: center;
  width: clamp(176px, 20vw, 288px);
  height: calc(var(--cell) * 3);
}
.brands__cell img {
  display: block;
  width: auto; height: calc(var(--h, 40px) * .9); max-width: 80%;   /* 90% of each logo's set height */
  object-fit: contain;
  opacity: .5;
  transition: opacity var(--t-ui) var(--dare-out);
}
.brands__cell:hover img { opacity: 1; }
@media (max-width: 768px) {
  .brands { --cell: 36px; background-size: var(--cell) var(--cell); }
  .brands__cell img { height: calc(var(--h, 40px) * .63); }
}
@media (prefers-reduced-motion: reduce) {
  .brands__track { width: auto; flex-wrap: wrap; justify-content: center; }
}

/* --- 08 · Beyond Dubai --------------------------------------------------- */
.beyond {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
  background: var(--media-bg);
}
.beyond__media {
  position: absolute;
  inset: 0 0 0 42%;
  /* Rounded on the side that meets the copy; the far side bleeds off */
  clip-path: inset(0 round var(--r-lg) 0 0 var(--r-lg));
}
.beyond__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* The photo itself fades out toward its foot, into the black that the
     closing section's photograph rises out of: no edge between the two */
  -webkit-mask-image: linear-gradient(180deg, #000 46%, rgba(0,0,0,.72) 64%, rgba(0,0,0,.3) 80%, transparent 94%);
          mask-image: linear-gradient(180deg, #000 46%, rgba(0,0,0,.72) 64%, rgba(0,0,0,.3) 80%, transparent 94%);
}
.beyond__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.2) 100%);
}
/* Constrain the children, not the .wrap itself — .wrap owns the page gutter */
.beyond__inner { position: relative; z-index: var(--z-base); }
.beyond__inner > * { max-width: 640px; }
.beyond__inner h2 { margin-block: var(--s-5) var(--s-5); }
.beyond__lede { max-width: 46ch; }
.beyond__figs {
  display: flex; flex-wrap: wrap; gap: var(--s-7);
  margin-block: var(--s-7);
}
.beyond__figs .fig { padding: 0; border-radius: 0; box-shadow: none; }   /* over the photo, no frame */
.beyond__figs .t-fig { font-size: clamp(30px, 3.4vw, 46px); }

/* On narrow screens the photo becomes a full-bleed backdrop. It stays a dark
   band in both themes — the copy on top is white either way, matching how the
   section reads on desktop. */
@media (max-width: 900px) {
  .beyond__media { inset: 0; clip-path: none; opacity: .5; }
  .beyond__media::after { background: rgba(0,0,0,.66); }
}
