:root {
  --ink: #000;
  --paper: #fff;
  --soft: #f8f8f8;     /* cards, quiet surfaces */
  --pill: #f3f3f3;     /* buttons */
  --faint: rgba(0, 0, 0, .2);   /* labels, unlit text */
  --pad: 40px;         /* page side margin */
  --r: 3px;            /* corner rounding, everywhere */
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 800px) { :root { --pad: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
::selection { background: var(--ink); color: #fff; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  font: 16px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.03em;
  background: var(--paper); color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.label { margin: 0; font-size: 14px; line-height: 1; letter-spacing: -.023em; color: var(--faint); text-align: center; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: var(--r);
  background: var(--pill); color: var(--ink);
  font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.pill:hover { background: #e9e9e9; }
.pill.dark { background: var(--ink); color: #fff; }
a.pill:not([href]) { cursor: default; }
/* For keyboard users: jump past the cloud's many pieces. Hidden until focused. */
.skip { position: fixed; left: 8px; top: 8px; z-index: 60; transform: translateY(-200%); }
.skip:focus { transform: none; }
.pill.dark:hover { background: #1f1f1f; }
.pill svg { width: 14px; height: 14px; flex: none; }
.pill.chat { padding-left: 11px; gap: 7px; }
span.pill { cursor: default; }
span.pill:hover { background: var(--pill); }
/* The label rolls up and its twin (a shadow of the same text) rolls in from below. */
.roll { display: inline-block; height: 1.25em; line-height: 1.25; overflow: hidden; }
.roll > span { display: block; text-shadow: 0 1.25em 0 currentColor; transition: transform .45s var(--ease); }
.pill:hover .roll > span { transform: translateY(-1.25em); }

/* ---------- top bar (scrolls away with the cloud) ---------- */
/* The bar itself has no layer of its own, so the name can blend with the pieces passing under it. */
.bar {
  position: absolute; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 18px; pointer-events: none;
}
/* Held above the page until the cloud is let out, then dropped in. */
.bar > * { position: relative; z-index: 20; pointer-events: auto; transform: translateY(-64px); transition: transform 1s var(--ease) .45s; }
.ready .bar > * { transform: none; }
.bar nav { display: flex; gap: 8px; }
.mark {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-right: 12px;
  font-size: 22px; font-weight: 500; letter-spacing: -.04em; line-height: 1;
  text-decoration: none;
  /* Black on white, and the reverse of whatever picture drifts beneath it. */
  color: #fff; mix-blend-mode: difference;
}
.mark:focus-visible { outline-color: #fff; }
.mark svg { flex: none; width: 1.36em; height: 1.18em; transition: transform .7s var(--ease); }
.mark:hover svg, .dock .icon.spin:hover svg { transform: rotate(360deg); }
.mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: .1em; }

/* ---------- the cloud ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; }
.stage {
  position: absolute; inset: 0; overflow: clip;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage.dragging, .stage.dragging .card { cursor: grabbing; }
.cloud { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.card {
  position: absolute; left: 0; top: 0; display: block;
  padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card.cutout img { object-fit: contain; }
.card:focus { outline: none; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }

.tip {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  padding: 6px 10px; border-radius: var(--r); background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity .15s;
}
.tip.on { opacity: 1; }
.tip span { opacity: .55; margin-left: 6px; }

/* ---------- loading line, shown before the cloud is let out ---------- */
.loader { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; transition: opacity .45s; }
.loader-line {
  display: flex; align-items: center; margin: 0;
  font-size: clamp(17px, 1.55vw, 22px); line-height: 1.2; white-space: nowrap;
  animation: appear .7s both;
}
@keyframes appear { from { opacity: 0; } }
.loader-gap { position: relative; width: .3em; height: 0; transition: width .8s var(--ease); }
.loader-gap img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: none; border-radius: var(--r); transform: scale(0); transition: transform .8s var(--ease) .08s; }
.loader.open .loader-gap { width: 150px; }
.loader.open .loader-gap img { transform: scale(1); }
.loader.gone { opacity: 0; }
.loader.gone .loader-gap img { transform: scale(.5); transition: transform .5s ease-in; }
.loader-count {
  position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center;
  font-size: 14px; letter-spacing: -.023em; color: var(--faint); font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .loader-line { flex-direction: column; }
  .loader-gap { width: auto; height: 0; transition: height .8s var(--ease); }
  .loader.open .loader-gap { width: auto; height: 120px; }
}

/* ---------- clients strip ---------- */
.ticker { overflow: hidden; }
.ticker-track { display: flex; gap: 3px; width: max-content; animation: slide 50s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 1.5px)); } }
.client {
  position: relative; flex: none;
  width: clamp(170px, 20.8vw, 300px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--soft); border-radius: var(--r);
  color: #b5b5b5; text-decoration: none;
  font-size: clamp(18px, 1.9vw, 27px); font-weight: 600; letter-spacing: -.045em;
  transition: color .25s;
}
.client:hover, .client:focus-visible { color: var(--ink); }
.client img { display: block; width: 44%; height: auto; filter: brightness(0); opacity: .3; transition: opacity .25s; }
.client:hover img, .client:focus-visible img { opacity: 1; }
.client .go {
  position: absolute; left: 14px; top: 14px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.client:hover .go, .client:focus-visible .go { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 40px;
  padding: 60px var(--pad); text-align: center;
}
.lede, .quote {
  margin: 0;
  font-size: clamp(22px, 1.95vw, 28px); line-height: 1.15; font-weight: 400;
  text-wrap: balance;
}
.lede { max-width: 608px; }
.quote { max-width: 650px; }
.lede .para { display: block; }
.lede .para + .para { margin-top: 1.15em; }
.lede .w { color: var(--faint); transition: color .3s; }
.lede .w.on { color: var(--ink); }
.made { position: relative; }
.dots { display: flex; justify-content: center; padding: 11px 0 11px 14px; }
.dot {
  position: relative; flex: none; width: 38px; height: 38px; margin-left: -14px; padding: 0;
  border: 0; border-radius: 50%; overflow: hidden; background: var(--soft);
  box-shadow: 0 0 0 2px var(--paper); cursor: pointer;
  transition: transform .35s var(--ease);
}
.dot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dots.faces { gap: 8px; padding-left: 0; }
.dot.still { cursor: default; }
.dots.faces .dot { width: 44px; height: 44px; margin-left: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.dot:hover, .dot:focus-visible { z-index: 1; transform: translateY(-5px) scale(1.12); }
/* Hangs under the row without pushing the paragraph off centre. */
.made-note {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: max-content; max-width: min(600px, calc(100vw - 2 * var(--pad))); margin: 12px 0 0;
  font-size: 14px; line-height: 18px; letter-spacing: -.023em; color: rgba(0, 0, 0, .4);
}
.made-note b { font-weight: 400; color: var(--ink); }

/* ---------- work grid ---------- */
.work { padding: 0 var(--pad); }
.work .label { padding: 40px 0; }
/* Rows of one or two tiles. In a row of two, each tile's width follows its picture's
   proportions (--share), so both stand the same height and neither is cropped. */
.grid { --gap: 16px; display: flex; flex-wrap: wrap; gap: 40px var(--gap); align-items: flex-start; }
.tile {
  display: block; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
  width: calc((100% - var(--gap) * (var(--n, 1) - 1)) * var(--share, 1) - .5px);
}
.tile .media { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--soft) center / cover no-repeat; }
.tile .chip {
  position: absolute; left: 14px; top: 14px; padding: 9px 12px; border-radius: var(--r);
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .45s var(--ease);
}
.tile:hover .chip, .tile:focus-visible .chip { opacity: 1; transform: none; }
.tile.s2 .media { aspect-ratio: 443 / 553; } .tile.s3 .media { aspect-ratio: 638 / 486; }
.tile.s4 .media { aspect-ratio: 901 / 676; } .tile.s6 .media { aspect-ratio: 1360 / 772; }
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile video { position: absolute; inset: 0; }
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile .name { display: block; margin: 16px 0 8px; font-size: 16px; line-height: 1; letter-spacing: -.02em; }
.tile .what { display: block; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; color: rgba(0, 0, 0, .4); }

.reveal { opacity: 0; transform: scale(.95); transition: opacity .9s, transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Labels and words drift up into place the first time they come into view. */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .9s, transform 1.1s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.rise + .rise { transition-delay: .1s; }
.rise + .rise + .rise { transition-delay: .2s; }

/* ---------- kind words ---------- */
.quotes { display: grid; justify-items: center; gap: 40px; padding: 200px var(--pad); text-align: center; }
.quote { min-height: 5.75em; }
.quote.in { transition: opacity .3s, transform 1.1s var(--ease); transition-delay: 0s; }
.quote.in.swap { opacity: 0; }
.switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.tab {
  position: relative; overflow: hidden;
  display: flex; align-items: center; height: 60px; padding: 8px;
  border: 0; border-radius: 130px; background: transparent;
  text-align: left; cursor: pointer;
  transition: background .4s, padding .5s var(--ease);
}
.tab .avatar {
  position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--soft); color: rgba(0, 0, 0, .35);
  font-size: 14px; font-weight: 500; letter-spacing: 0;
  transition: background .3s, color .3s;
}
.tab .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tab:hover .avatar { color: var(--ink); }
.tab .txt {
  position: relative; display: grid; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .5s var(--ease), margin .5s var(--ease), opacity .3s;
}
.tab b { font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.02em; }
.tab small { font-size: 16px; line-height: 20px; letter-spacing: -.02em; color: rgba(0, 0, 0, .3); }
.tab[aria-pressed="true"] { padding-right: 18px; background: var(--soft); cursor: default; }
.tab[aria-pressed="true"] .avatar { background: var(--ink); color: #fff; }
.tab[aria-pressed="true"] .txt { max-width: 280px; margin-left: 8px; opacity: 1; }
.tab .fill { position: absolute; inset: 0; background: rgba(0, 0, 0, .035); transform: scaleX(0); transform-origin: 0 50%; }
.quotes.live .tab[aria-pressed="true"] .fill { animation: fill 9s linear forwards; }
.quotes:hover .tab .fill { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- closing screen ---------- */
.end {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
}
.end-mid { position: relative; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 80px var(--pad); pointer-events: none; }
.end-mid > * { pointer-events: auto; }
.big { display: flex; align-items: center; gap: .22em; margin: 0; font-size: clamp(40px, 4.45vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.big svg { width: .98em; height: .85em; }
@keyframes turn { to { transform: rotate(360deg); } }
.end-mid .row { display: flex; gap: 8px; }
.end-bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 8px 10px; }
.end-bar div { display: flex; flex-wrap: wrap; gap: 8px; }
.pill time { font-weight: 400; }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail img {
  position: absolute; left: 0; top: 0; width: 180px;
  border-radius: var(--r); opacity: 0; will-change: transform, opacity;
}
.trail img.pop { animation: pop 1.1s var(--ease) forwards; }
.trail img.slow { animation-duration: 3.4s; }
@keyframes pop {
  0% { opacity: 0; scale: .7; }
  14% { opacity: 1; scale: 1; }
  70% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: .94; }
}

/* ---------- small floating menu, shown once past the cloud ---------- */
.dock {
  position: fixed; left: 50%; bottom: 10px; z-index: 30;
  display: flex; gap: 3px; padding: 3px; border-radius: var(--r);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translate(-50%, 160%); visibility: hidden;
  transition: transform .6s cubic-bezier(.3, 0, 0, 1), visibility 0s .6s;
}
.dock.on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s cubic-bezier(.3, 0, 0, 1); }
.dock .icon { width: 52px; padding: 0; justify-content: center; background: none; }
.dock .icon:hover { background: var(--pill); }
.dock .icon svg { width: 17px; height: 17px; transition: transform .7s var(--ease); }
.dock .icon.spin svg { width: 24px; height: 21px; }

/* ---------- a single piece, opened ---------- */
.detail {
  position: fixed; inset: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
  padding: 84px 40px 40px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; touch-action: pan-y;
  transition: opacity .35s, visibility 0s .35s;
}
.detail.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.detail-art { position: relative; min-width: 0; min-height: 0; }
.detail-art img, .detail-art video { position: absolute; display: block; transform-origin: 0 0; border-radius: var(--r); }
.detail-art video { object-fit: cover; }
.detail-art video[hidden] { display: none; }
.detail-info { align-self: end; padding-bottom: 6px; }
.detail-info .eyebrow { margin: 0 0 10px; font-size: 14px; color: var(--faint); }
.detail-info h2 { margin: 0 0 14px; font-size: 44px; line-height: 1; font-weight: 400; letter-spacing: -.03em; text-wrap: balance; }
.detail-info p.copy { margin: 0 0 28px; font-size: 15px; line-height: 1.45; color: rgba(0, 0, 0, .55); }
.detail-nav { display: flex; gap: 8px; }
.detail .close { position: absolute; top: 8px; right: 8px; }
.detail .count { position: absolute; top: 8px; left: 18px; margin: 0; font-size: 14px; line-height: 40px; letter-spacing: -.023em; color: rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 24px; padding: 72px 20px 24px; }
  .detail-info h2 { font-size: 34px; }
}
@media (max-width: 640px) {
  .grid { gap: 32px; }
  .tile { width: 100%; }
  .tile .media, .tile.s3 .media, .tile.s4 .media, .tile.s6 .media { aspect-ratio: 4 / 3; }
  .tile.s2 .media { aspect-ratio: 4 / 5; }
}
@media (max-width: 800px) {
  .grid { --gap: 12px; gap: 32px var(--gap); }
  .quotes { padding: 120px var(--pad); }
  .tab[aria-pressed="true"] .txt { max-width: 200px; }
  .end-bar { justify-content: center; }
  .end-bar div { justify-content: center; }
  .mark { font-size: 20px; }
}
@media (max-width: 560px) {
  .dot:nth-child(n+13) { display: none; }
  .pill { padding: 0 13px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .client[aria-hidden] { display: none; }
  .reveal, .rise { opacity: 1; transform: none; transition: none; }
  .bar > * { transform: none; transition: none; }
  .big svg { animation: none; }
  .tile .chip, .mark svg, .dock .icon svg { transition: none; }
  .lede .w, .quote, .detail, .detail.open, .tip, .dock, .dock.on, .tile img, .roll > span, .dot, .tab, .tab .txt { transition: none; }
  .pill:hover .roll > span { transform: none; }
  .quotes.live .tab[aria-pressed="true"] .fill { animation: none; }
  .trail { display: none; }
}
