/* ───────── tokens ───────── */
:root {
  --ink: #fff;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* the "camera": the old scene is yanked out, the new one lands with a long settle */
  /* starts from rest, so the leaving text eases off instead of lurching */
  --exit: cubic-bezier(.4, 0, .25, 1);
  --enter: cubic-bezier(.2, .9, .3, 1);
  --cam: cubic-bezier(.6, .02, .18, 1);
  --dur: 1.3s;
  --gutter: clamp(16px, 3vw, 48px);
  --col: 12vw;              /* left edge of the socials column */
  --side: 5vw;              /* headline and copy, pushed out around the carousel */
  --mx: 0;
  --my: 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  color: var(--ink);
}
/* Safari on iOS 26 paints the strip behind the clock with the page background, so
   it follows the current slide's sky (script.js sets --edge / --edge-bottom from
   each slide's data-edge). The bottom half carries the slide's ground colour in
   case the toolbar strip ever shows past the sky's bleed. */
html {
  background-color: var(--edge, #0b0b0d);
  /* a soft blend, not a hard split: while the page loads this is all you see, and a
     hard edge read as a line across the screen */
  background-image: linear-gradient(var(--edge, #0b0b0d) 30%, var(--edge-bottom, #0b0b0d) 70%);
  transition: background-color .9s var(--cam, ease);
}
body { background: transparent; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: #f2a7b5; color: #111; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }

/* ───────── stage + slides ───────── */
/*
  The stage is ordinary page content, not position: fixed. Safari on iOS 26 won't
  draw fixed content behind its floating glass toolbar, so a fixed stage stopped
  at the toolbar and left a flat band. As page content sized to the large
  viewport (100lvh) it runs the full screen, behind the toolbar. The page itself
  never scrolls (overflow hidden, touch-action none), so nothing moves.
  Everything inside is still laid out in the small viewport (100svh, the part
  above the toolbar); only the skies run on below it.
*/
.stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100lvh;
  overflow: hidden;
  touch-action: none;
}

.slide {
  --shift: 1;
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.slide.is-active  { visibility: visible; pointer-events: auto; z-index: 2; }
.slide.is-leaving { visibility: visible; z-index: 1; }
/* drawn once, invisibly, behind the current slide so its images are ready (script.js) */
.slide.is-warming { visibility: visible; opacity: .001; z-index: 0; pointer-events: none; }

/*
  Camera move, timed from the reference frame by frame:
  1. EXIT (0–0.6s): the old scene is pulled up and out fast. Nearer planes
     travel further, so the headline clears first, the character follows,
     the sky barely moves and smears into a blur.
  2. ENTER (from 0.38s, 1s long): the new sky blurs in over the top, then
     the character and the text rise from below the frame and decelerate hard,
     settling slowly. The text (eyebrow, headline, services, button) moves as
     one block.
  Each element travels --shift × --d × one screen height.
  --shift: 0 = in place, 1 = parked below, -1 = parked above.
  --d is --din while entering/resting and --dout while leaving.
*/
.layer {
  --d: var(--din, 0);
  transform: translate3d(0, calc(var(--shift) * var(--d) * 100svh), 0);
  transition: transform 1s var(--enter) calc(.38s + var(--lag, 0s));
}
.slide.is-leaving .layer {
  --d: var(--dout, 0);
  transition: transform .6s var(--exit);
}

.layer { position: absolute; inset: 0 0 auto; height: 100svh; }
.layer--bg    { z-index: 1; top: -15svh; height: 130svh; --din: .14; --dout: .14; }
.layer--mid   { z-index: 2; --din: 1;   --dout: .55; }
/* the text doesn't ride the camera in: it stays put and reveals itself once the
   new scene is mostly in (below). On the way out it drifts a little as it fades. */
.layer--title { z-index: 3; --din: 0; --dout: .12; }
.layer--fg    { z-index: 4; --din: 1;   --dout: .75; pointer-events: none; }


/* Ungroup on scroll. Each picture is split into its own layers (sky, clouds,
   birds, the bust, the hill...) and every layer travels its own distance, so
   while a scene moves the picture comes apart in depth and settles back into
   one image as it lands. Cut layers share the sky's box, so at rest they sit
   exactly on it. .piece adds an extra distance to one object inside a layer
   (--k arriving, --ko leaving, in screen heights). */
.layer--cut { z-index: 1; top: -15svh; height: 130svh; pointer-events: none; }
/* a cut arriving from less than a screen away fades in with its sky, so it never
   shows over the old scene before the move starts; leaving, it stays crisp over
   the blurring sky, which is what makes the layers read as separate */
.slide .layer--cut { transition: transform 1s var(--enter) .38s, opacity .6s cubic-bezier(.4, 0, .2, 1) .25s; }
.slide.is-entering .layer--cut { opacity: 0; }
.slide.is-leaving .layer--cut { transition: transform .6s var(--exit); }
/* a cut that touches the bottom of its picture (clouds, a hill) never rises
   faster than the sky, or its flat lower edge would show: going up it lags
   (--dlo), going down it may travel as far as it likes */
.layer--low { transform: translate3d(0, calc(max(var(--shift) * var(--d), var(--shift) * var(--dlo, .05)) * 100svh), 0); }
/* --kd / --ku (optional) set the distance separately for when the scene sits
   below (arriving forward, leaving backward) and above, so stacked parts can
   always spread apart instead of sliding into each other */
.piece {
  --kk: var(--k, 0);
  translate: 0 calc((max(var(--shift), 0) * var(--kd, var(--kk)) + min(var(--shift), 0) * var(--ku, var(--kk))) * 100svh);
  transition: translate 1s var(--enter) calc(.38s + var(--lag, 0s));
}
.slide.is-leaving .piece { --kk: var(--ko, var(--k, 0)); transition: translate .6s var(--exit); }
.stage.is-rushing .slide.is-active .piece { transition-duration: .85s; transition-delay: calc(.1s + var(--lag, 0s)); }
.slide.no-anim .piece { transition: none !important; }

/* Smooth fade: as well as travelling, every layer of the old scene fades out as
   it leaves and every layer of the new one fades in as it arrives. The skies keep
   their own blur, and the new sky always lands on top of the old one, so the
   screen never dips to an empty colour in between. */
.slide .layer:is(.layer--mid, .layer--fg, .layer--cut) {
  transition: transform 1s var(--enter) calc(.38s + var(--lag, 0s)), opacity .85s cubic-bezier(.4, 0, .2, 1) calc(.3s + var(--lag, 0s));
}
.slide.is-entering .layer:is(.layer--mid, .layer--fg, .layer--cut) { opacity: 0; }
.slide.is-leaving .layer:is(.layer--mid, .layer--fg, .layer--cut, .layer--title) {
  opacity: 0;
  transition: transform .6s var(--exit), opacity .5s cubic-bezier(.4, 0, .2, 1);
}
.slide.is-entering.is-back .home__sea { opacity: 0; }

/* the incoming sky fades in over the old scene as it moves. No blur: blurring
   a full-screen sky every frame of the change made each slide change stutter */
.slide .layer--bg {
  transition:
    transform 1s var(--enter) .38s,
    opacity .6s cubic-bezier(.4, 0, .2, 1) .25s;
}
.slide.is-leaving .layer--bg { transition: transform .6s var(--exit); }
.slide.is-entering .layer--bg { opacity: 0; }
/* fast scrolling: the next scene starts rising sooner and a little quicker (script.js) */
.stage.is-rushing .slide.is-active .layer {
  transition-duration: .85s;
  transition-delay: calc(.1s + var(--lag, 0s));
}
.stage.is-rushing .slide.is-active .layer--bg {
  transition-duration: .85s, .45s;
  transition-delay: .1s, .05s;
}

/*
  Text reveal, timed against the camera move (all from the moment of the change):
    0ms    old text fades out (300ms) as its layer drifts away
    500ms  headline rises out of its mask (lead, 900ms, hard ease-out)
    580ms  eyebrow fades in place (decoration)
    660ms  services fade up 16px (support)
    720ms  button and copy fade up 16px (support)
  Back up (.is-back) mirrors it: the headline drops in from above.
  Fast scrolling (.is-rushing) starts it all at about 220ms.
  Transitions, not keyframes, so a change mid-reveal just turns around smoothly.
*/
.slide { --t0: .5s; }
.stage.is-rushing .slide.is-active { --t0: .22s; }
.line {
  overflow: hidden;
  padding: .12em .1em .16em;   /* room in the mask for tall letters, descenders (g, y) and */
  margin: -.12em -.1em -.16em; /* round letters whose curve pokes past the word's edge (the e of Creative) */
}
.line > span {
  display: block;
  transition: transform .9s var(--enter) var(--t0);
}
.eyebrow { transition: opacity .6s ease calc(var(--t0) + .08s); }
.services {
  transition: opacity .7s var(--enter) calc(var(--t0) + .16s),
              transform .7s var(--enter) calc(var(--t0) + .16s);
}
.copy {
  transition: opacity .7s var(--enter) calc(var(--t0) + .22s),
              transform .7s var(--enter) calc(var(--t0) + .22s);
}
.slide.is-entering .line > span { transform: translate3d(0, 145%, 0); }   /* fully below the mask, no letter tips showing */
.slide.is-entering.is-back .line > span { transform: translate3d(0, -150%, 0); }
.slide.is-entering .eyebrow { opacity: 0; }
.slide.is-entering .services,
.slide.is-entering .copy { opacity: 0; transform: translate3d(0, 16px, 0); }
.slide.is-entering.is-back .services,
.slide.is-entering.is-back .copy { transform: translate3d(0, -16px, 0); }
.slide.is-leaving .eyebrow,
.slide.is-leaving .line > span,
.slide.is-leaving .services,
.slide.is-leaving .copy {
  opacity: 0;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
}

/* park instantly, without animating */
.slide.no-anim .layer,
.slide.no-anim .eyebrow,
.slide.no-anim .line > span,
.slide.no-anim .services,
.slide.no-anim .copy { transition: none !important; }

/* mouse parallax lives on an inner wrapper so it can move on its own timing */
.px {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--mx) * var(--pd) * -1px), calc(var(--my) * var(--pd) * -1px), 0);
  transition: transform 1s var(--ease-out);
}

.fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

/* ───────── fallback backgrounds (show until/if images fail) ───────── */
.s1 .layer--bg { background: linear-gradient(180deg, #010b2a 0%, #14204a 45%, #2c3a66 75%, #3e4c75 100%); }
.s2 .layer--bg { background: linear-gradient(180deg, #3f6466 0%, #7f9187 48%, #e9a76a 78%, #f0b47c 100%); }
.s3 .layer--bg { background: linear-gradient(180deg, #6f9aa8 0%, #93b4ba 55%, #e3a3a6 78%, #c98a93 100%); }
.s4 .layer--bg { background: linear-gradient(180deg, #8d9690 0%, #a2aaa3 72%, #2b2e2a 72%, #1d1f1c 100%); }
.home .layer--bg { background: linear-gradient(180deg, #cddde8 0%, #e6eaee 55%, #f7f8fa 100%); }

.missing > img { display: none; }

/* phones and tablets: the top of each sky fades into its edge colour, which is
   also the colour Safari paints behind the clock, so the two read as one sky */
/* The bottom works the same way: below the sky the slide's ground colour takes
   over through a soft fade, so however tall the browser's toolbar is, no hard
   edge can show behind it. */
@media (hover: none) and (pointer: coarse) {
  .layer--bg::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: calc(100% + 40svh);   /* the sky's 130svh plus 40svh below it */
    background:
      linear-gradient(var(--edge-top) 68%, transparent) top / 100% 22svh no-repeat,     /* solid above the screen, fading over its top 7svh */
      linear-gradient(transparent, var(--edge-bottom) 8svh) bottom / 100% 48svh no-repeat; /* fades in over the sky's last 8svh, all behind the toolbar */
    pointer-events: none;
  }
}
.s1 { --edge-top: #010b2a; --edge-bottom: #3e4c75; }
.s2 { --edge-top: #395e67; --edge-bottom: #eda157; }
.s3 { --edge-top: #44848f; --edge-bottom: #dc9ea2; }
.s4 { --edge-top: #738077; --edge-bottom: #161916; }
.home { --edge-top: #cfdde8; --edge-bottom: #f6f7f9; }

/* ───────── headline + copy ───────── */
.title {
  position: absolute;
  left: var(--col);
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1.4em .2em;
  opacity: .9;
}
.eyebrow--below { margin: 1.6em 0 0 .2em; }

.headline {
  font-weight: 800;
  font-size: clamp(3rem, 8.4vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.line { display: block; }

/* the department's services, in columns under its word: the row runs
   exactly as wide as the headline, first word flush left, last flush right */
.services {
  list-style: none;
  contain: inline-size;      /* never widens the title; it takes the headline's width */
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  column-gap: 14px;
  margin: 1.3em 0 0;
  padding: 14px .02em 0 .3em;   /* optical: the big letters sit inside their boxes */
  border-top: 1px solid color-mix(in srgb, currentColor 45%, transparent);   /* a hairline ties the row to the word */
  font-size: clamp(10px, 1.06vw, 15px);   /* shrinks with the headline, so the row always fits */
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
}
/* each service sits on two set lines, so the columns stay tidy */
.services li span { display: block; white-space: nowrap; }
/* "Marketing Strategy" is the longest service, so its row sets a touch tighter to stay within the word */
.s3 .services { letter-spacing: .06em; column-gap: 10px; }
.slide[data-ink="light"] .services { text-shadow: 0 1px 2px rgba(20, 16, 30, .25), 0 2px 16px rgba(20, 16, 30, .4); }
/* small laptops, tablets and phones are too narrow for columns: the services
   stack, one per line, still no wider than the headline */
@media (max-width: 1000px) {
  .services { grid-auto-flow: row; row-gap: 7px; font-size: 11px; letter-spacing: .1em; margin-top: 1.2em; }
  .services li span { display: inline; white-space: normal; }
  .s4 .services { justify-content: center; justify-items: center; text-align: center; }
}

.copy {
  position: absolute;
  right: var(--col);
  width: min(34ch, 27vw);
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
/* a soft dark halo keeps light text readable over bright skies */
.copy p { text-shadow: 0 1px 14px rgba(20, 16, 30, .28); text-wrap: pretty; }
.slide[data-ink="dark"] .copy p { text-shadow: none; }

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.discover {
  --btn-ink: #fff;
  --btn-on: #141414;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px 0 24px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.discover svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease-out); }
.discover:hover { background: var(--btn-ink); border-color: var(--btn-ink); color: var(--btn-on); }
.discover:hover svg { transform: translateX(4px); }
.discover:active { transform: scale(.97); }
.slide[data-ink="dark"] .discover { --btn-ink: #141414; --btn-on: #f3f1ec; }

/* dark-ink slides */
.slide[data-ink="dark"] { color: #121212; }

/* ───────── subjects ───────── */
.subject { position: absolute; }
.subject img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: float var(--float, 7s) ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(var(--bob, -10px)) rotate(var(--rot, 0deg)); }
}

/* placeholder silhouette when an image file is missing */
.subject.missing {
  border: 1.5px dashed rgba(255, 255, 255, .55);
  border-radius: 40% 40% 12px 12px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
}
.subject.missing::after {
  content: attr(data-ph);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.s4 .subject.missing { border-color: rgba(0, 0, 0, .4); background: rgba(0, 0, 0, .08); }

/* ───────── slide layouts (desktop) ───────── */
/* slides 1–3: headline and copy sit low, on one shared bottom line */
.s1 .title, .s2 .title, .s3 .title,
.s1 .copy,  .s2 .copy,  .s3 .copy { top: auto; bottom: 17svh; }
/* text pulls out to the sides so the project carousel has the centre */
.slide .title { left: var(--side); }
.slide .copy  { right: var(--side); width: min(30ch, 22vw); }
.headline     { font-size: clamp(3rem, 7.2vw, 7.6rem); }

/* 1 · above it all */
/* the marble bust dissolving into its cloud is painted into the sky itself */

/* 2 · past the horizon */
/* Every plate is a cut of one 3840×2160 frame. .plate rebuilds that frame
   exactly like the sky's object-fit: cover (the layer is 130svh tall), so a
   cut placed by its % offset lands where it was painted. */
.s2 .layer--mid { pointer-events: none; }
.plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(130svh * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%) scale(1.06);
}
/* the wall was painted touching the top of the frame, so its plates (and the
   moon and birds inside it) get a smaller frame, set so the whole wall stands
   from just under the header to just above the slide controls */
.plate--obj { width: calc(90svh * 16 / 9); top: calc(50% + 12svh); }
.plate img { position: absolute; display: block; height: auto; }
.p-sky    { left: 0;        top: 0;        width: 100%; }
.p-clouds { left: 0;        top: 55.0926%; width: 100%;     animation: cloud-drift 46s ease-in-out infinite alternate; }
.p-birds  { left: 50.9115%; top: 51.9444%; width: 7.1094%;  animation: birds-fly 22s ease-in-out infinite alternate; }
.p-glow   { left: 13.5417%; top: 0;        width: 72.5%;    animation: glow-breathe 9s ease-in-out infinite; } /* its top fade is baked into the file */
.p-moon   { left: 42.8125%; top: 22.963%;  width: 14.0625%; animation: float 16s ease-in-out infinite; --bob: -1.4%; }
.p-wall   { left: 36.1458%; top: .3704%;   width: 27.5521%; }
.p-rim    { left: 36.875%;  top: 1.6667%;  width: 26.0938%; }
/* the low clouds slide slowly past the wall; the birds cross the opening */
@keyframes cloud-drift {
  from { transform: translate3d(-1.8%, 0, 0); }
  to   { transform: translate3d(1.8%, -1.5%, 0); }
}
@keyframes birds-fly {
  from { transform: translate3d(-90%, 40%, 0) scale(.94); }
  to   { transform: translate3d(70%, -55%, 0) scale(1.04); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}
/* the drifting plates get their own GPU layers up front, so the first time the
   slide arrives nothing has to be re-rasterised mid-move */
.p-clouds, .p-birds, .p-glow, .p-moon { will-change: transform, opacity; }

/* 3 · drift away */
/* an Egyptian queen floats over the pyramids inside a fine dotted line system */
.subject--queen { height: 60svh; aspect-ratio: 755 / 1381; left: calc(50% - 60svh * 755 / 2762); top: 16svh; --bob: -10px; --rot: 1deg; --float: 7s; }
.subject--queen img { position: relative; }
.subject--queen .q-part + .q-part { position: absolute; inset: 0; }
.queen__lines { position: absolute; left: -46.38%; top: -8.7%; width: 186.96%; height: 117.41%; overflow: visible; pointer-events: none; }

/* 4 · look up */
.s4 .title { top: 44svh; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
/* the centered headline reaches far right, so this copy sits nearer the edge */
.s4 .copy  { top: 46svh; }
.subject--balloon { aspect-ratio: 3 / 4; }
.subject--balloon img { animation: drift var(--float, 18s) ease-in-out infinite alternate; }
.b1 { width: 9vw;  left: 30vw; top: 9svh;  --float: 16s; }
.b2 { width: 5vw;  left: 52vw; top: 5svh;  --float: 21s; filter: blur(.6px); opacity: .9; }
.b3 { width: 3vw;  left: 63vw; top: 17svh; --float: 25s; filter: blur(1.2px); opacity: .8; }
@keyframes drift {
  from { transform: translate(-1.6vw, 0); }
  to   { transform: translate(1.6vw, -10px); }
}
/* a stealth plane glides just under the balloons, contrails trailing back toward them */
.subject--plane { width: 35.6vw; aspect-ratio: 950 / 337; left: 46.9vw; top: 22svh; }
.subject--plane img { animation: glide 14s ease-in-out infinite alternate; }
@keyframes glide {
  from { transform: translate(-1vw, 3px); }
  to   { transform: translate(1vw, -3px); }
}
/* she stands on the hill in front of the carousel's left edge */
.subject--woman { height: 27svh; aspect-ratio: 11 / 20; left: 27vw; bottom: 4svh; }
.subject--woman img { animation: none; }

/* ───────── home: the opening scene, above the clouds ───────── */
/* Dark words on the pale sky, a row of world landmarks drifting under the buttons. */
.home { color: #15171a; }


/* The cloud sea sits in the same box as the sky (130svh, scaled 1.06) so the
   two line up at rest; during a slide change it travels a full screen like a
   subject, and while you stay it drifts slowly. Only the band of cloud is an
   image (transparent above), so the plane stays light. */
.home__sea { z-index: 2; top: -15svh; height: 130svh; pointer-events: none; }
/* The band of cloud has a flat bottom edge, so it must never travel faster than
   its sky in a direction that brings that edge into view. Leaving, it goes with
   its sky and fades; arriving from above (scrolling back up to home), it comes
   with the sky and fades in with it. Arriving from below it still rises in on
   its own, since its edge stays under the frame the whole way. */
.slide .home__sea {
  --dout: .14;
  transition: transform 1s var(--enter) .38s, opacity .6s cubic-bezier(.4, 0, .2, 1) .25s;
}
.slide.is-back .home__sea { --din: .14; }
.slide.is-entering.is-back .home__sea { opacity: 0; }
.slide.is-leaving .home__sea {
  opacity: 0;
  transition: transform .6s var(--exit), opacity .45s cubic-bezier(.4, 0, .2, 1);
}
.slide.is-leaving.is-rushed .home__sea { transition-duration: .6s, .25s; }
/* Landmarks of the places we build brands stand in the sky, their feet sunk in
   the cloud sea. They never move on their own: the sky drifts behind them and
   the clouds drift across their feet, so it feels like gliding through a city
   above the clouds. Each sits on a line about 82% down the screen (the layer
   starts 15svh above the screen), placed clear of the words in the middle. */
.home__skyline { position: absolute; inset: 0; }
.tower {
  position: absolute;
  bottom: calc(36svh + var(--b, 0svh));
  left: var(--x);
  width: auto;
  height: var(--h);
  translate: -50% 0;
  filter: saturate(.9) contrast(.94);
  /* the foot fades into mist, so no base edge ever shows above the clouds */
  -webkit-mask-image: linear-gradient(to top, transparent, #000 22%);
  mask-image: linear-gradient(to top, transparent, #000 22%);
}
.tower--china   { --x: 11vw; --h: 21svh; }
.tower--egypt   { --x: 21vw; --h: 10svh; --b: 3svh; opacity: .92; }
.tower--newyork { --x: 31vw; --h: 18svh; }
.tower--qatar   { --x: 72vw; --h: 15svh; }
.tower--ksa     { --x: 78.5vw; --h: 19svh; }
.tower--uae     { --x: 85vw; --h: 27svh; }

/* A few small birds glide across the sky behind the departments and buttons.
   Seen side-on with their heads to the left, each crosses the whole screen
   right to left, slips out on the left and comes round again from the right,
   flying dead level while their wings beat. Only
   tiny transforms, and they rest on any slide you are not looking at. The band
   is placed in screen terms (the layer starts 15svh above the screen). */
.home__birds { position: absolute; left: 0; right: 0; top: calc(15svh + 53svh); height: 17svh; }
.bird {
  position: absolute;
  top: var(--y);
  left: 0;
  width: calc(26px * var(--s));
  animation: bird-fly var(--dur) linear var(--del) infinite;
  will-change: transform;
}
.bird svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.bird .body, .bird .w {
  fill: #33465a;
  opacity: calc(.4 + var(--s) * .35);
}
.bird .w {
  transform-box: view-box;
  transform-origin: 17px 10.6px;
  animation: wing-beat var(--flap) ease-in-out infinite alternate;
}
.bird .w--far { opacity: calc(.2 + var(--s) * .2); transform-origin: 22px 10.3px; }
/* heads point left, so they fly right to left: in on the right, out on the left */
@keyframes bird-fly {
  from { transform: translate3d(104vw, 0, 0); }
  to   { transform: translate3d(-6vw, 0, 0); }
}
/* seen side-on, a wing beat is the wing sweeping from above the body to below it */
@keyframes wing-beat { from { transform: scaleY(1); } to { transform: scaleY(-.7); } }
.slide:not(.is-active) :is(.bird, .bird .w) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .home__birds { display: none; } }

.home__clouds { position: absolute; inset: 0; transform: scale(1.06); }
.home__clouds picture {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max(100%, 130svh * 2752 / 1536);
  aspect-ratio: 2752 / 656;
  translate: -50% 0;
  animation: sea-drift 21s ease-in-out infinite alternate;
  will-change: transform;
}
.home__clouds img { display: block; width: 100%; height: 100%; }
/* the cloud sea rises with the skyline when you leave home (--ko on .home__lift),
   faster than its sky, so the flat bottom of the picture would come into view:
   the same white carries on below it, out of sight at rest */
.home__lift { position: absolute; inset: 0; }
.home .home__clouds picture::after { content: ""; position: absolute; top: calc(100% - 1px); left: 0; right: 0; height: 45svh; background: #f7f9fb; }
/* The sky is alive while you stay: the sky slowly pans and breathes, and the
   cloud sea drifts across it on its own, slower rhythm, so the two never move
   in step. Both are a single transform on an image already on its own layer,
   and both pause on any slide you are not looking at. */
:is(.home, .finale) .layer--bg .fill { animation: sky-drift 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes sky-drift {
  from { transform: scale(1.09) translate3d(-2%, .4%, 0); }
  to   { transform: scale(1.14) translate3d(2%, -1%, 0); }
}
@keyframes sea-drift {
  from { transform: translate3d(-2.8%, 0, 0) scale(1); }
  50%  { transform: translate3d(0, -1.4%, 0) scale(1.03); }
  to   { transform: translate3d(2.8%, -.5%, 0) scale(1.01); }
}
.slide:not(.is-active) :is(.home__clouds picture, .layer--bg .fill) { animation-play-state: paused; }

:is(.home, .finale) .layer--title .px {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 19svh;
  text-align: center;
}
:is(.slide.home, .slide.finale) .title,
:is(.slide.home, .slide.finale) .copy {
  position: relative;
  inset: auto;
  width: auto;
  transform: none;
  text-align: center;
}
:is(.home, .finale) .eyebrow { margin: 0 0 1.8em; opacity: .66; letter-spacing: .18em; }
:is(.home, .finale) .headline {
  font-size: clamp(2.6rem, 5.6vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}
:is(.home, .finale) .copy { max-width: 60ch; }
.home .copy p { margin: 26px auto 0; max-width: 44ch; text-wrap: balance; font-size: 15px; color: rgba(21, 23, 26, .72); }
.home__depts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home__depts button { text-transform: inherit; letter-spacing: inherit; position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.home__depts span { font-size: 9px; letter-spacing: .06em; opacity: .45; }
.home__depts button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.home__depts button:hover::after { transform: scaleX(1); transform-origin: left; }
:is(.home, .finale) .actions { justify-content: center; gap: 28px; margin-top: 30px; }
.home .discover--solid { background: #15171a; border-color: #15171a; color: #f6f7f9; }
.home .discover--solid:hover { background: transparent; color: #15171a; }
.home__see {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home__see svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease-out); }
.home__see:hover svg { transform: translateY(3px); }

/* the last page: the same centred stack as home, light on the night sky */
.finale { --edge-top: #2b302d; --edge-bottom: #070a08; }
/* the night sea: its own band of cloud (see .home__clouds), and both planes sit a
   little lower than on home so the moonlit horizon stays below the words */
.finale .home__clouds picture { aspect-ratio: 2752 / 576; }
/* a real clip of mist rolling through pine trees fills the background. The still
   picture under it is the clip's first frame, so nothing jumps when the video
   starts. A soft dark wash keeps the white words readable over the clouds. */
.finale .finale__birds { top: 18svh; height: 16svh; }
.finale__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.finale__video.is-playing { opacity: 1; }
.finale .layer--bg .px::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 9, .5) 0%, rgba(6, 10, 9, .38) 45%, rgba(6, 10, 9, .55) 100%);
}
.finale .layer--bg { background: linear-gradient(180deg, #2b302d 0%, #121815 55%, #070a08 100%); }
/* arriving at the contact page the forest doesn't slide in: it dissolves in place
   over the old scene, slowly, while easing back from a slight zoom, like one
   picture morphing into the next */
.finale.slide:not(.is-leaving) .layer--bg {
  --din: 0;
  transition: transform 1s var(--enter) .38s, opacity 1.3s cubic-bezier(.45, 0, .3, 1) .08s;
}
.finale .layer--bg .px { transition: transform 1s var(--ease-out), scale 2s cubic-bezier(.22, .7, .2, 1) .08s; }
.finale.is-entering .layer--bg .px { scale: 1.08; }
.finale .layer--title .px { padding-top: 21svh; }
.finale .copy p { margin: 26px auto 0; max-width: 44ch; font-size: 16px; text-wrap: balance; text-shadow: 0 1px 14px rgba(0, 0, 40, .5); }
.finale .eyebrow { color: #efe7de; opacity: .85; }
.finale .discover { --btn-ink: #efe7de; --btn-on: #000038; text-transform: none; letter-spacing: .02em; font-size: 13px; }
.finale .finale__solid { background: #efe7de; border-color: #efe7de; color: #000038; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.finale .finale__solid:hover { background: transparent; color: #efe7de; }
.finale__offices {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px 44px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 13px;
}
.finale__offices strong { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #efe7de; }
.finale__offices a { opacity: .85; transition: opacity .2s; }
/* the pale sky behind: the same soft shadow as the line above keeps the offices readable */
.finale__offices strong, .finale .eyebrow { text-shadow: 0 1px 12px rgba(20, 40, 80, .45); }
.finale__offices a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
body[data-scene="finale"] .counter { opacity: 0; }

/* ───────── frame / chrome ───────── */
.chrome {
  position: absolute; /* not fixed: see .stage */
  inset: 0 0 auto;
  height: 100svh;
  z-index: 10;
  pointer-events: none;
  color: #fff;
  font-size: 11px;
}
/* dark-ink slides darken the header only; the footer sits on dark ground */
.chrome header { transition: color .9s var(--cam); }
body[data-ink="dark"] .chrome header { color: #121212; }
/* on the home scene the footer sits on white cloud, so it darkens too, and the
   counter (which numbers the four departments) steps aside */
.chrome footer { transition: color .9s var(--cam); }
.counter { transition: opacity .6s var(--cam); }
body[data-scene="home"] .chrome footer { color: #15171a; }
body[data-scene="home"] .counter { opacity: 0; }
.chrome a, .chrome button { pointer-events: auto; }

.mark {
  position: absolute;
  top: calc(var(--gutter) - 6px);
  left: var(--gutter);
}
.mark__img { display: block; transition: opacity .9s var(--cam); }
.mark__img img { display: block; height: 46px; width: auto; }
.mark__img--dark { position: absolute; inset: 0; opacity: 0; }
body[data-ink="dark"] .mark__img--light { opacity: 0; }
body[data-ink="dark"] .mark__img--dark { opacity: 1; }
.nav {
  position: absolute;
  right: var(--gutter);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* the menu button: a small frosted circle, the collapsed form of the glass menu */
/* top right, apart from the centred menu: the Arabic switch, then the menu button */
.tools {
  position: absolute;
  top: calc(var(--gutter) - 6px);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px rgba(4, 6, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: inherit;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-decoration: none;
  transition: transform .3s var(--ease-out), background .3s;
}
.lang:hover { transform: scale(1.04); background: linear-gradient(160deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .1)); }
.nav--menu {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px rgba(4, 6, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .3s var(--ease-out), background .3s;
}
.nav--menu:hover { transform: scale(1.06); background: linear-gradient(160deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .1)); }
.nav--menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* The main menu along the top: About, Services, Clients, Portfolio, Blog,
   Contact, each its own page. A frosted pill centred above the scene, in the
   header's ink, so it reads on light and dark skies alike. Inner pages share it. */
.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px rgba(4, 6, 30, .14), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.topnav a {
  padding: 11px 16px;
  border-radius: 999px;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: .82;
  transition: opacity .25s, background .25s;
}
.topnav__lang, .topnav__icon { display: none; }   /* phones only: icons, and the language switch in the bar */
.topnav a:hover, .topnav a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .34); }
.chrome .topnav { position: absolute; top: calc(var(--gutter) - 6px); left: 50%; translate: -50% 0; height: 46px; }
.page .topnav { justify-self: center; border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .45); box-shadow: 0 6px 18px rgba(40, 60, 90, .08); }
a.menu__link { text-decoration: none; color: inherit; }

/* floating contact: a pill bottom-right; it opens a small card of choices */
.reach {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) - 12px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: #15171a;
}
.reach__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px 0 15px;
  border-radius: 999px;
  background: #fff;
  color: #15171a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(10, 12, 30, .18), 0 1px 3px rgba(10, 12, 30, .12);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.reach__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10, 12, 30, .22), 0 1px 3px rgba(10, 12, 30, .12); }
.reach__btn:active { transform: scale(.97); }
.reach__btn svg { width: 17px; height: 17px; }
.reach__icon { fill: currentColor; }
.reach__x { display: none; fill: none; stroke: currentColor; stroke-width: 2; }
.reach.is-open .reach__icon { display: none; }
.reach.is-open .reach__x { display: block; }
.reach__panel {
  width: 260px;
  padding: 16px 10px 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(10, 12, 30, .22), 0 2px 6px rgba(10, 12, 30, .1);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: opacity .2s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
}
.reach.is-open .reach__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .35s var(--ease-out), visibility 0s;
}
.reach__title { padding: 0 10px 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.reach__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color .2s;
}
.reach__opt:hover { background: #f1f2f4; }
.reach__opt svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #15171a; fill: #fff; }
.reach__opt:first-of-type svg { background: #25d366; }
.reach__opt strong { display: block; font-size: 14px; font-weight: 600; }
.reach__opt small { display: block; font-size: 12px; opacity: .6; }

/* counter: digits roll vertically with the camera */
.counter {
  position: absolute;
  left: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  font-weight: 500;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.counter__now { display: block; height: 1.2em; overflow: hidden; }
.counter__reel { display: block; transition: transform var(--dur) var(--cam); }
.counter__reel span { display: block; height: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.socials {
  position: absolute;
  left: var(--col);
  bottom: calc(var(--gutter) - 2px);
  display: flex;
  gap: 18px;
}
.socials svg { width: 13px; height: 13px; fill: currentColor; opacity: .9; transition: opacity .2s; }
.socials a:hover svg { opacity: .55; }

.arrows {
  position: absolute;
  left: 50%;
  bottom: calc(var(--gutter) - 8px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.arrows button { width: 28px; height: 28px; display: grid; place-items: center; transition: opacity .4s; }
.arrows button:disabled { opacity: .3; cursor: default; }
.arrows svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease-out); }
.arrows [data-prev]:not(:disabled):hover svg { transform: translateX(-3px); }
.arrows [data-next]:not(:disabled):hover svg { transform: translateX(3px); }
.arrows__rule { width: 1px; height: 16px; background: currentColor; opacity: .5; }

:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }

@keyframes bar-in { from { opacity: 0; scale: .9; } }

/* ───────── phone ───────── */
@media (max-width: 760px) {
  :root { --col: 6vw; }
  .mark__img img { height: 40px; }
  .tools { gap: 8px; }
  .lang { height: 42px; padding: 0 14px; font-size: 15px; }
  .nav--menu { width: 42px; height: 42px; }
  .socials { left: auto; right: 50%; transform: translateX(50%); }
  .arrows { display: none; }

  /* Phones: headline, services and button form one stack at the bottom, so they
     can never run into each other on a short screen. The long paragraph stays in
     the Discover panel. */
  .layer--title .px {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--col) calc(var(--gutter) + 52px);
  }
  .slide .title,
  .slide .copy {
    position: relative;
    inset: auto;
    width: auto;
    text-align: left;
    white-space: normal;
  }
  /* the title loses the desktop centring */
  .slide .title { transform: none; }
  .copy p { display: none; }
  .actions { flex-direction: row-reverse; justify-content: flex-end; margin-top: 18px; }
  .headline { font-size: clamp(2.3rem, 11vw, 3.3rem); }
  .eyebrow { font-size: 10px; margin-bottom: 1em; }
  .services,
  .s4 .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px 16px;
    margin-top: .9em;
    font-size: 9.5px;
    letter-spacing: .1em;
    text-align: left;
  }
  .services li span { display: inline; white-space: nowrap; }
  .discover { min-height: 38px; padding: 0 14px 0 18px; font-size: 10px; gap: 8px; }
  .discover svg { width: 14px; height: 14px; }
  /* slide 4: the hill is dark, so its stack sits up in the grey sky, under the plane */
  .s4 .layer--title .px { justify-content: flex-start; padding-top: 41svh; }
  /* keep the bust centred and lift it clear of the headline on phones */
  /* still lifted clear of the headline, but large enough to reach the bottom of
     the screen behind Safari's toolbar (scale x (0.5 - lift) must stay >= 0.5) */
  .s1 .fill          { object-position: 50% 50%; transform: scale(1.08) translateY(-3%); }   /* phone crop has David centred */
  /* the whole wall stands in the open sky above the text: its plates use a
     smaller frame than the sky, lifted toward the top */
  .plate--obj { width: 180vw; top: calc(50% - 8svh); }
  /* the queen fills the open sky above the text */
  .subject--queen   { height: 40svh; left: calc(50% - 40svh * 755 / 2762); top: 14svh; }
  .b1 { width: 22vw; left: 10vw; top: 11svh; }
  .b2 { width: 13vw; left: 56vw; top: 18svh; }
  .b3 { width: 8vw;  left: 82vw; top: 7svh; } /* lifted so the plane can pass beneath all three */
  .subject--plane { width: 58vw; left: 36vw; top: 25svh; }   /* phones: a little lower, in the clear sky above the word */
  .subject--woman   { height: 20svh; left: 5vw; bottom: 8svh; }
}

/* phones: the home stack sits in the open sky above the clouds, the paragraph stays */
@media (max-width: 760px) {
  :is(.home, .finale) .layer--title .px { justify-content: flex-start; align-items: center; padding: 13svh var(--col) 0; }   /* under the logo row */
  :is(.slide.home, .slide.finale) .title,
  :is(.slide.home, .slide.finale) .copy { text-align: center; }
  :is(.home, .finale) .eyebrow { font-size: 9.5px; letter-spacing: .14em; margin-bottom: 1.4em; }
  :is(.home, .finale) .headline { font-size: clamp(2.1rem, 9.8vw, 3rem); }
  :is(.home, .finale) .copy p { display: block; margin-top: 18px; max-width: 32ch; font-size: 14px; line-height: 1.5; }
  .home__depts { display: grid; grid-template-columns: auto auto; justify-content: center; justify-items: start; gap: 8px 28px; margin-top: 18px; font-size: 10px; }
  :is(.home, .finale) .actions { flex-direction: column; justify-content: center; gap: 16px; margin-top: 22px; }
  .home__clouds picture { width: max(100%, 130svh * 3072 / 5504); aspect-ratio: 1600 / 1044; }
  /* phones: a smaller skyline, sunk deeper so the cloud sea covers its feet */
  .tower { bottom: calc(30svh + var(--b, 0svh)); -webkit-mask-image: none; mask-image: none; }
  /* phones: the cloud sea sits a little lower, so the skyline stands clear of it */
  .home .home__clouds { translate: 0 2%; }
  .home .home__clouds picture::after { background: #fefefe; }
  /* phones: the menu is its own full-width row under the logo, all six items
     in view, nothing to scroll */
  /* phones: the menu bar sits in the top row, between the logo and the 3-line
     button. Each link is an icon (its name stays for screen readers), the page
     you are on is highlighted, and the language switch ends the bar after a
     thin line; the separate language pill goes. */
  .topnav,
  .chrome .topnav,
  .page .topnav {
    position: absolute;
    top: calc(var(--gutter) - 6px);
    left: 50%;
    right: auto;
    bottom: auto;
    translate: -50% 0;
    z-index: 40;
    display: flex;
    justify-content: flex-start;
    gap: 0;
    width: max-content;
    height: 42px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .85);
    background: linear-gradient(170deg, rgba(244, 248, 252, .86), rgba(221, 232, 241, .82) 52%, rgba(248, 236, 228, .84));
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 10px 26px rgba(20, 30, 50, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
    color: #15171a;
    pointer-events: auto;
    animation: bar-in .6s cubic-bezier(.34, 1.4, .64, 1) both;
  }
  .page .topnav { position: relative; top: auto; left: auto; translate: none; }
  .topnav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 28px;
    height: 34px;
    padding: 0 4px;
    border-radius: 999px;
    opacity: .7;
    transition: background .3s, opacity .3s;
  }
  .topnav a:hover { background: none; }
  .topnav a[aria-current="page"] { opacity: 1; background: rgba(21, 23, 26, .09); }
  .topnav__icon { display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .topnav__icon .dot { fill: currentColor; stroke: none; }
  .topnav a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topnav .topnav__lang { display: flex; margin-inline-start: 2px; padding: 0 7px 0 9px; font-family: "Inter", system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1; opacity: 1; }
  .topnav__lang::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: currentColor; opacity: .3; }
  .tools .lang, .page__tools .lang { display: none; }
  .tower--china   { --x: 9vw;  --h: 16svh; }
  .tower--egypt   { --x: 25vw; --h: 7.5svh; --b: 2svh; }
  .tower--newyork { --x: 38vw; --h: 13svh; }
  .tower--qatar   { --x: 64vw; --h: 11svh; }
  .tower--ksa     { --x: 76vw; --h: 14svh; }
  .tower--uae     { --x: 89vw; --h: 21svh; }
  /* the flock flies in the open sky above the cloud sea; lower down, the clouds
     (which sit in front of them) swallowed all but one */
  .home__birds { top: 80svh; height: 11svh; }
  .finale .finale__birds { top: 16svh; height: 12svh; }
  .bird { width: calc(26px * var(--s)); }
  .bird .body, .bird .w { opacity: calc(.55 + var(--s) * .35); }
  .finale .layer--title .px { padding-top: 12svh; }
  .finale .home__clouds picture { width: max(100%, 130svh * 1536 / 2752); aspect-ratio: 1536 / 1052; }
  .finale .home__clouds { translate: 0 12%; }
  .finale .copy p { font-size: 14px; }
  .finale__offices { gap: 12px 22px; margin-top: 24px; font-size: 12px; }
}

/* ───────── menu ───────── */
/*
  Frosted glass in the colours of the home sky: pale blue at the top warming to
  a peach haze, dark ink for the words, the same as the headline. The menu opens
  as a slim rail of icons in the top-right corner and widens into a panel with
  labels; About, Services and the rest open in a second glass sheet beside it.
  The page stays visible behind under a light sky-coloured veil.
*/
.menu {
  --m-ink: #15171a;           /* the headline's ink */
  --m-dim: rgba(21, 23, 26, .62);
  --m-rule: rgba(21, 23, 26, .1);
  --m-gold: #3f5d7c;          /* accent: the blue of the sky's shadow side */
  --m-bg: #fff;               /* text on accent */
  --glass: linear-gradient(170deg, rgba(244, 248, 252, .8), rgba(221, 232, 241, .72) 52%, rgba(248, 236, 228, .76));
  --glass-edge: rgba(255, 255, 255, .85);
  --rail: 68px;
  --nav-w: 300px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(205, 221, 232, .34);
  color: var(--m-ink);
  overflow: hidden;
  opacity: 0;
  transition: opacity .35s ease .15s;
}
.menu.is-open { opacity: 1; transition: opacity .35s ease; }
.menu::backdrop { background: transparent; }
.menu ::selection { background: var(--m-gold); color: var(--m-bg); }
.menu :focus-visible { outline: 1.5px solid var(--m-gold); outline-offset: 3px; }
.menu ul, .menu ol { list-style: none; }

/* the colour behind the glass */
.menu__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 48% at 82% 30%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(36% 40% at 62% 74%, rgba(255, 208, 184, .5), transparent 70%),
    radial-gradient(26% 30% at 92% 84%, rgba(160, 200, 236, .55), transparent 70%);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .6s ease, transform 1s var(--enter);
}
.menu.is-open .menu__glow { opacity: 1; transform: none; }

.menu__grid { position: absolute; inset: var(--gutter); pointer-events: none; }
.menu__grid > * { pointer-events: auto; }

/* shared glass surface */
.menu__nav,
.menu__side {
  position: absolute;
  top: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 30px 80px rgba(40, 60, 90, .2), 0 2px 6px rgba(40, 60, 90, .06), inset 0 1px 0 rgba(255, 255, 255, .95);
}

/* the rail that becomes the panel */
.menu__nav {
  right: 0;
  display: flex;
  flex-direction: column;
  width: var(--rail);
  max-height: 100%;
  padding: 18px 12px 16px;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  transition: width .5s var(--exit), opacity .3s ease .2s, transform .4s var(--exit) .1s;
}
.menu.is-open .menu__nav {
  width: var(--nav-w);
  opacity: 1;
  transform: none;
  transition: opacity .3s ease, transform .5s var(--enter), width .75s var(--enter) .22s;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 4px 0 10px;
}
.menu__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.menu__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .25s;
}
.menu__close:hover { background: rgba(21, 23, 26, .07); }
.menu__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease-out); }
.menu__close:hover svg { transform: rotate(90deg); }

.menu__search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin: 14px 0 10px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(21, 23, 26, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  transition: border-color .25s, background .25s;
}
.menu__search:focus-within { border-color: rgba(21, 23, 26, .4); background: rgba(255, 255, 255, .85); }
.menu__search svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.menu__search input::placeholder { color: var(--m-dim); }
.menu__search input::-webkit-search-cancel-button { opacity: .5; }

.menu__nav ol { display: grid; gap: 2px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--m-ink);
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.menu__link:hover { background: rgba(255, 255, 255, .55); }
.menu__link[aria-expanded="true"] { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 3px rgba(40, 60, 90, .1), inset 0 1px 0 #fff; }
.menu__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu__icon .dot { fill: currentColor; stroke: none; }

/* labels, search and footer arrive once the rail has widened */
.menu__title, .menu__link > span, .menu__search input, .menu__foot {
  opacity: 0;
  transform: translate3d(-6px, 0, 0);
  transition: opacity .2s ease, transform .3s var(--exit);
}
.menu.is-open :is(.menu__title, .menu__link > span, .menu__search input, .menu__foot) {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease calc(.5s + var(--i, 0) * .035s), transform .6s var(--enter) calc(.5s + var(--i, 0) * .035s);
}
.menu__link > span { display: inline-block; }

/* a hairline that glows in the middle, between groups */
.menu__sep {
  height: 1px;
  margin: 8px 6px;
  background: linear-gradient(90deg, transparent, rgba(63, 93, 124, .35) 50%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 16px 10px 2px;
  border-top: 1px solid var(--m-rule);
}
.menu__socials { display: flex; gap: 18px; }
.menu__socials svg { width: 14px; height: 14px; fill: currentColor; opacity: .85; transition: opacity .25s; }
.menu__socials a:hover svg { opacity: 1; }
.menu__lang { font-family: "Inter", system-ui, sans-serif; font-size: 14px; letter-spacing: .1em; font-weight: 500; opacity: .85; transition: opacity .25s; }
.menu__lang:hover { opacity: 1; }

/* the content sheet beside the panel */
.menu__side {
  right: calc(var(--nav-w) + 16px);
  bottom: 0;
  width: min(820px, calc(100% - var(--nav-w) - 16px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 23, 26, .22) transparent;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(16px, 0, 0) scale(.985);
  transform-origin: right top;
  transition: opacity .25s ease, transform .35s var(--exit), visibility 0s linear .35s;
}
.menu.is-open:not([data-view="main"]) .menu__side {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s ease, transform .6s var(--enter), visibility 0s;
}
.menu__panel { padding: 40px clamp(28px, 3.4vw, 48px) 44px; }
.menu__panel[hidden] { display: none; }
.menu.is-open .menu__panel.is-swapping { animation: panel-in .5s var(--enter) both; }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }

.menu__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m-gold);
  margin-bottom: 18px;
}

/* search results */
.results { display: grid; gap: 6px; }
.results button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  transition: background .25s;
}
.results button:hover, .results button:focus-visible { background: rgba(255, 255, 255, .6); }
.results img, .results .results__icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, .7);
}
.results .results__icon { display: grid; place-items: center; }
.results .results__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.results strong { font-size: 15px; font-weight: 600; }
.results small { font-size: 12.5px; color: var(--m-dim); }

/* services and the other panels: departments in two columns */
.menu__back { display: none; }
.depts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px clamp(24px, 3vw, 44px);
}
.dept__name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--m-rule);
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.01em;
}
.dept__num { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--m-gold); font-variant-numeric: tabular-nums; }
.dept__list { display: grid; gap: 13px; }
.dept__list strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.dept__list span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--m-dim); text-wrap: pretty; }

.menu__lead { max-width: 52ch; margin: -2px 0 32px; font-size: 16px; line-height: 1.55; color: var(--m-dim); text-wrap: pretty; }
.dept__list a, .menu__jump {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s;
}
.dept__list a:hover, .menu__jump:hover { background-size: 100% 1px; color: var(--m-gold); }
.menu__jump { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; }
.menu__jump svg, .menu__more svg, .menu__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease-out); }
.menu__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m-gold);
}
.menu__more:hover svg, .menu__cta:hover svg, .menu__jump:hover svg { transform: translateX(4px); }
.menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 20px;
  border: 1px solid var(--m-gold);
  border-radius: 999px;
  background: var(--m-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--m-bg);
  transition: background .3s, color .3s;
}
.menu__cta { border-color: var(--m-ink); background: var(--m-ink); color: #fff; }   /* like Start a project on the home page */
.menu__cta:hover { background: transparent; color: var(--m-ink); }
/* filter chips: dark ink when chosen, like the home buttons */
.menu .chip { border-color: rgba(21, 23, 26, .18); background: rgba(255, 255, 255, .4); }
.menu .chip:hover { background: rgba(255, 255, 255, .85); border-color: rgba(21, 23, 26, .3); color: var(--m-ink); }
.menu .chip[aria-pressed="true"] { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
/* client logos: transparent logos on clean white tiles, in their own colours */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.logos li {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  background: #fff;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.logos img {
  position: absolute;
  inset: 16% 14%;
  width: 72%;
  height: 68%;
  object-fit: contain;
}
.logos li { box-shadow: 0 1px 2px rgba(40, 60, 90, .08); }
.logos li:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 60, 90, .16); }

@media (max-width: 1100px) and (min-width: 761px) {
  .depts { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* phones: the panel fills the screen inside a small margin; a section replaces it, with a way back */
@media (max-width: 760px) {
  .menu { --nav-w: 100%; }
  .menu__grid { inset: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .menu__nav { bottom: 0; max-height: none; padding: 16px 10px 14px; }
  .menu__link { height: 50px; font-size: 16px; }
  .menu__side { inset: 0; width: auto; transform: translate3d(24px, 0, 0); }
  .menu.is-open:not([data-view="main"]) .menu__nav { opacity: 0; visibility: hidden; transform: translate3d(-24px, 0, 0); }
  .menu__nav { transition: width .5s var(--exit), opacity .3s ease .2s, transform .4s var(--exit) .1s, visibility 0s; }
  /* While searching, the title and search box stay on top and the results sit under them. */
  .menu.is-open[data-view="search"] .menu__nav { bottom: auto; opacity: 1; visibility: visible; transform: none; }
  .menu[data-view="search"] .menu__nav :is(ol, .menu__foot) { display: none; }
  .menu[data-view="search"] .menu__side { top: calc(var(--search-h, 136px) + 10px); }
  .menu__results :is(.menu__back, .menu__label) { display: none; }
  .menu__panel { padding: 22px 20px 36px; }
  .menu__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .menu__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .depts { grid-template-columns: 1fr; gap: 32px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ───────── story panel (Discover) ───────── */
/* Rises from below like the next scene, with the same landing curve. */
.story {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh; /* fill behind Safari's see-through bars too */
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f2eee8;
  color: #161514;
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  transition: transform .95s var(--enter);
}
.story.is-open { transform: none; }
.story.is-closing { transition: transform .6s var(--exit); }
.story::backdrop {
  background: rgba(8, 8, 10, .55);
  opacity: 0;
  transition: opacity .6s ease;
}
.story.is-open::backdrop { opacity: 1; }
.story ::selection { background: #161514; color: #f2eee8; }

.story__item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  height: 100%;
}
.story__item[hidden] { display: none; }

.story__media {
  position: relative;
  overflow: hidden;
  background: var(--bg) center / cover no-repeat;
}
.story__subject { position: absolute; object-fit: contain; }
.story__subject--queen   { height: 82%; left: 28%; top: 9%; }
.story__subject--balloon { width: 30%; left: 18%; top: 12%; }
.story__subject--woman   { height: 26%; left: 60%; bottom: 10%; }

.story__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(72px, 12svh, 140px) clamp(28px, 6vw, 96px) 64px;
  font-size: 17px;
  line-height: 1.65;
}
.story__body > p { max-width: 58ch; margin-bottom: 1.1em; color: #3a3733; text-wrap: pretty; }
.story__index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  color: #8a847b !important;
  margin-bottom: 18px !important;
}
.story__title {
  font-size: clamp(3rem, 5.6vw, 5.6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  margin-bottom: 36px;
  color: #161514;
}
.story__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
}
.story__cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: #161514;
  color: #f2eee8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease-out);
}
.story__cta:hover { background: #3b3732; }
.story__back {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.story__back:hover { text-decoration-thickness: 2px; }

.story__close {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #161514;
  color: #f2eee8;
  transition: transform .35s var(--ease-out);
}
.story__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.story__close:hover { transform: rotate(90deg); }
/* Discover: the department's projects under the story */
.story__media, .story__body > :not(.story__work) { transition: opacity .22s ease; }
.story__item.is-swapping .story__media,
.story__item.is-swapping .story__body > :not(.story__work) { opacity: 0; }
.story__item.is-project .story__subject,
.story__item.is-project .story__body > p:not(.story__index):not(.story__proj) { display: none; }
.story__proj { max-width: 52ch; color: #3a3733; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.story__work .card[aria-current] .card__cover { outline: 2px solid #161514; outline-offset: 4px; }
.story__work { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(22, 21, 20, .14); }
.story__work-title { margin-bottom: 24px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.story__work .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
.story__work .card__title { font-size: 15px; }
@media (max-width: 760px) { .story__work .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story__work .card__cat { color: rgba(22, 21, 20, .55); }
.story__see {
  display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 36px auto 0; padding: 0 24px;
  border: 1.5px solid rgba(22, 21, 20, .4); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.story__see[hidden] { display: none; }
.story__see svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.story__see:hover { background: #161514; border-color: #161514; color: #f2eee8; }
.story :focus-visible { outline: 2px solid #161514; outline-offset: 4px; }

@media (max-width: 760px) {
  .story { overflow-y: auto; overscroll-behavior: contain; }
  .story__item { grid-template-columns: 1fr; grid-template-rows: 42svh auto; height: auto; min-height: 100%; }
  /* a chosen project: a taller preview that scrolls through its pages; past the
     last page the swipe carries on down to the text */
  .story__item.is-project { grid-template-rows: 64svh auto; }
  .story__item.is-project .story__media { overscroll-behavior: auto; -webkit-overflow-scrolling: touch; }
  .story__body { overflow: visible; padding: 40px 6vw 56px; font-size: 16px; }
  .story__title { margin-bottom: 24px; }
  .story__close { position: fixed; }
}

/* ───────── reduced motion: no travel, a plain crossfade between scenes ───────── */
@media (prefers-reduced-motion: reduce) {
  .menu__nav, .menu.is-open .menu__nav, .menu__side, .menu.is-open:not([data-view="main"]) .menu__side { transform: none; transition: opacity .3s ease, visibility 0s; }
  .menu.is-open .menu__nav { width: var(--nav-w); }
  .menu.is-open :is(.menu__title, .menu__link > span, .menu__search input, .menu__foot) { transform: none; transition: opacity .3s ease; }
  .menu.is-open .menu__panel.is-swapping { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .layer, .px, .counter__reel { transform: none !important; transition: none !important; }
  .piece { translate: none !important; transition: none !important; }
  .eyebrow, .line > span, .services, .copy { transform: none !important; opacity: 1 !important; transition: none !important; }
  .slide { opacity: 0; transition: opacity .5s ease; }
  .slide.is-active { opacity: 1; }
  .slide.is-entering .layer--bg,
  .slide.is-leaving .layer--bg { opacity: 1; }
  .finale.is-entering .layer--bg .px { scale: 1; }
  .subject img, .plate img, .home__clouds picture, :is(.home, .finale) .layer--bg .fill { animation: none !important; }
  .story, .story.is-closing { transform: none; opacity: 0; transition: opacity .35s ease; }
  .story.is-open { opacity: 1; }
}

/* ───────── project cards + viewer ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 28px 20px;
}
.card { display: block; text-align: left; color: inherit; }
.card__cover {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
}
.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.card:hover .card__cover img { transform: scale(1.04); }
.card__cat {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}
.card__title { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cards--menu { margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

/* the viewer rises from below like the story panel and scrolls on its own */
.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh; /* fill behind Safari's see-through bars too */
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0f1013;
  color: #f2eee8;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 100%, 0);
  transition: transform .95s var(--enter);
}
.viewer.is-open { transform: none; }
.viewer.is-closing { transition: transform .6s var(--exit); }
.viewer::backdrop { background: rgba(8, 8, 10, .55); }
.viewer__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(15, 16, 19, .82);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.viewer__close {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.viewer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease-out); }
.viewer__close:hover svg { transform: translateX(-3px); }
.viewer__meta { text-align: center; }
.viewer__cat { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.viewer__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.viewer__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f2eee8;
  color: #0f1013;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .3s var(--ease-out);
}
.viewer__cta:hover { transform: translateY(-2px); }
.viewer__summary {
  max-width: 52ch;
  margin: 40px auto 36px;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  opacity: .75;
  text-wrap: balance;
}
.viewer__summary:empty { display: none; }
.viewer__pages { display: grid; gap: 14px; width: min(var(--page-w, 1080px), 100% - 2 * var(--gutter)); margin: 0 auto; }
.viewer__pages img { width: 100%; height: auto; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.viewer__more { width: min(1080px, 100% - 2 * var(--gutter)); margin: 90px auto 0; padding-bottom: 80px; }
.viewer__more-title {
  margin-bottom: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 238, 232, .18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* service details */
.viewer__service { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.viewer__label { margin: 0 0 14px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.viewer__includes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 30px; border-radius: 12px; overflow: hidden; }
.viewer__includes li { padding: 18px 20px; background: rgba(255, 255, 255, .06); font-size: 15px; font-weight: 500; }
.viewer__ask {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-bottom: 54px; padding: 0 22px;
  border-radius: 999px; background: #efe7de; color: #000038;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .3s var(--ease-out);
}
.viewer__ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.viewer__ask:hover { transform: translateY(-2px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 16px; border: 1px solid rgba(242, 238, 232, .3); border-radius: 999px;
  font-size: 13px; font-weight: 500; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { background: #efe7de; border-color: #efe7de; color: #000038; }
.chip[aria-pressed="true"] { background: #efe7de; border-color: #efe7de; color: #000038; }
.chips--filter { margin-top: -8px; }
.card[hidden] { display: none; }
.viewer__service:not([hidden]) ~ .viewer__more { margin-top: 70px; }
/* More projects shows six; See more opens the rest */
.viewer__more { padding-bottom: 72px; }
.viewer__see {
  display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 40px auto 0; padding: 0 24px;
  border: 1.5px solid rgba(242, 238, 232, .5); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.viewer__see[hidden] { display: none; }
.viewer__more .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .viewer__more .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.viewer__see svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.viewer__see:hover { background: #efe7de; border-color: #efe7de; color: #000038; }
/* the viewer's footer: the menu's light glass card, its pastel glow, no picture */
.viewer__contact {
  --m-ink: #15171a;
  padding: clamp(48px, 7vw, 96px) var(--gutter) max(clamp(48px, 7vw, 96px), env(safe-area-inset-bottom));
  text-align: center;
}
.viewer__contact-sky { display: none; }
.viewer__contact-in {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(22px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 26px;
  background: linear-gradient(170deg, #f4f8fc, #dde8f1 52%, #f8ece4);
  color: var(--m-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.viewer__contact-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 52% at 84% 22%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(38% 46% at 18% 84%, rgba(255, 208, 184, .55), transparent 70%),
    radial-gradient(30% 40% at 92% 88%, rgba(160, 200, 236, .6), transparent 70%),
    radial-gradient(28% 36% at 10% 12%, rgba(196, 214, 236, .55), transparent 70%);
}
.viewer__contact-eyebrow { display: block; margin-bottom: 1.6em; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #3f5d7c; }
.viewer__contact-title { font-size: clamp(2rem, 4.8vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.viewer__contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 40px; }
.viewer__contact .discover {
  min-width: 150px; justify-content: center; padding: 0 24px;
  border-color: var(--m-ink); background: transparent; color: var(--m-ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; text-shadow: none;
}
.viewer__contact .discover:hover, .viewer__contact .viewer__contact-solid { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
.viewer__contact .viewer__contact-solid:hover { background: transparent; color: var(--m-ink); }
.viewer__contact .finale__offices { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(21, 23, 26, .1); color: rgba(21, 23, 26, .7); text-shadow: none; }
.viewer__contact .finale__offices strong { color: var(--m-ink); }
.viewer__contact .finale__offices a { color: inherit; }
@media (max-width: 760px) {
  .viewer__contact { padding-left: 12px; padding-right: 12px; }
  .viewer__contact-in { border-radius: 22px; }
  .viewer__contact-actions { flex-direction: column; align-items: center; margin-top: 30px; }
  .viewer__contact .discover { width: min(260px, 100%); }
  .viewer__contact .finale__offices { gap: 12px 22px; margin-top: 30px; font-size: 12px; }
}

/* services are buttons: they keep the row's type and gain a quiet underline on hover */
.services button { font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; text-shadow: inherit; color: inherit; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease-out); }
.services button:hover, .services button:focus-visible { background-size: 100% 1px; }
.menu__svc { font: inherit; text-align: left; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease-out), color .3s; }
.menu__svc:hover, .menu__svc:focus-visible { background-size: 100% 1px; color: var(--m-gold); }

@media (max-width: 760px) {
  .viewer__includes { grid-template-columns: 1fr; }
  .viewer__bar { grid-template-columns: auto 1fr; padding: 12px 18px; }
  .viewer__meta { text-align: left; }
  .viewer__cta { display: none; }
  .viewer__pages { gap: 8px; width: 100%; }
  .viewer__pages img { border-radius: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card__title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer, .viewer.is-closing { transform: none; opacity: 0; transition: opacity .35s ease; }
  .viewer.is-open { opacity: 1; }
}

/* phones: the contact pill shrinks to a round button so it clears the
   social icons centred in the footer; the label stays for screen readers */
@media (max-width: 760px) {
  .reach__btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .reach__btn svg { width: 20px; height: 20px; }
  .reach__btn span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .reach__panel { width: min(280px, calc(100vw - 2 * var(--gutter))); }
}
/* Discover: the chosen project's pages, one under the other. On a laptop they
   take over the picture side, which scrolls on its own; on a phone they follow the text. */
.story__item.is-project .story__media { overflow-y: auto; overscroll-behavior: contain; background: #e9e6e1; }
.story__media .story__pages { display: grid; gap: 0; }
.story__media .story__pages img { display: block; width: 100%; height: auto; }
.story__body .story__pages { display: grid; gap: 8px; margin-top: 32px; }
.story__body .story__pages img { display: block; width: 100%; height: auto; border-radius: 6px; background: rgba(21, 23, 26, .05); }
.cards__empty { margin: 24px 0 0; font-size: 15px; opacity: .7; }

/* ───────── dashboard choices for a slide ───────── */
/* your own design: one picture over the slide's art (the art stays in the page, unseen) */
.layer--design { z-index: 2; top: -15svh; height: 130svh; pointer-events: none; }
.layer--design picture, .layer--design img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide.has-design .layer:not(.layer--design, .layer--title) { visibility: hidden; }
/* the name's look: font, colour (inline), size and weight; on a laptop also its place */
.title[data-look] .headline { font-family: var(--tfont, inherit), "Inter", system-ui, sans-serif; font-weight: var(--tweight, 800); font-size: calc(clamp(3rem, 7.2vw, 7.6rem) * var(--tsize, 1)); }
@media (min-width: 761px) {
  .slide .title[data-placed] { left: var(--tx); top: var(--ty); right: auto; bottom: auto; transform: none; text-align: start; white-space: normal; max-width: 80vw; }
}
@media (max-width: 760px) {
  .title[data-look] .headline { font-size: calc(clamp(2.3rem, 11vw, 3.3rem) * var(--tsize, 1)); }
}
