/* Static client gallery. Scoped so the software marquee stays unchanged. */
.stats { grid-template-columns: repeat(6, minmax(174px, 1fr)); gap: 0; padding: 30px 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.stats article { display: grid; grid-template-columns: 32px auto; grid-template-rows: 44px auto; align-items: center; justify-content: center; justify-items: center; gap: 12px 10px; padding-inline: 16px; transition: transform .35s var(--ease), filter .35s ease; }
.stats article > div { display: contents; }
.stats article .stat-icon { position: static; grid-column: 1; grid-row: 1; }
.stats article strong { grid-column: 2; grid-row: 1; text-align: center; }
.stats article small { grid-column: 1 / -1; grid-row: 2; align-self: start; min-height: 3em; text-align: center; margin-top: 0; }
.stats strong { font-size: clamp(34px, 3vw, 44px); line-height: 1; letter-spacing: -.055em; }
.stats small { margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: normal; color: #d6e4f2; text-shadow: none; }
.stats .stat-icon { width: 32px; height: 32px; border-radius: 9px; animation: none; }
.stat-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stats article:not(:last-child)::after { display: block; }
@media (max-width: 480px) {
  .stats { padding: 24px 8px; }
  .stats article { grid-template-columns: 32px auto; grid-template-rows: 36px auto; padding-inline: 8px; row-gap: 10px; }
  .stats article .stat-icon { position: static; grid-column: 1; grid-row: 1; }
  .stats article strong { grid-column: 2; grid-row: 1; }
  .stats article small { grid-row: 2; }
  .stats .stat-icon { width: 32px; height: 32px; border-radius: 9px; }
  .stat-icon svg { width: 19px; height: 19px; }
  .stats small { font-size: 12px; }
}
.clients.clients--gallery {
  width: calc(100% - 64px);
  max-width: 1600px;
  padding-top: clamp(80px, 9vw, 128px);
  padding-inline: 0;
  overflow: visible;
  scroll-margin-top: 100px;
}

.clients--gallery .clients__heading { width: 100%; max-width: 800px; }
.clients--gallery .clients__heading h2 {
  font-size: clamp(32px, 4.3vw, 60px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.clients--gallery .clients__heading > p:last-of-type {
  max-width: 540px;
  margin-top: 18px;
  line-height: 1.8;
}
.clients__rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: 28px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.brand-wall {
  --brand-columns: 6;
  --brand-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px var(--brand-gap);
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.brand-wall__item {
  flex: 0 0 calc((100% - (var(--brand-columns) - 1) * var(--brand-gap)) / var(--brand-columns));
  min-width: 0;
  text-align: center;
}
.brand-wall__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 18px;
  border: 1px solid transparent;
  background: transparent;
}
.brand-wall__art img {
  display: block;
  width: 100%;
  max-width: 146px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .4s ease, transform .45s var(--ease);
}
/* Preserve white lettering in supplied black-backed artwork without a box. */
.brand-wall__art img[src$="westside.png"],
.brand-wall__art img[src$="brand-creative.png"] {
  filter: grayscale(1) brightness(4);
  mix-blend-mode: screen;
}
.brand-wall__item--wide .brand-wall__art { padding-inline: 16px; }
.brand-wall__item--wide img { max-width: 170px; }
.brand-wall__item--wide img[src$="a1.png"] { max-width: 190px; height: 66px; }
.brand-wall__art img[src$="krg-connects.png"] { max-width: 170px; height: 70px; }
.brand-wall__item--crest img { height: 76px; max-width: 92px; }
.brand-wall__item--crest img[src$="siri-music.png"] { height: 94px; max-width: 112px; }
.brand-wall__art img[src$="edin.png"] { max-width: 112px; height: 42px; }
@media (hover: hover) and (pointer: fine) {
  .brand-wall__item:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 7px rgba(125, 206, 255, .85)) drop-shadow(0 0 20px rgba(116, 110, 255, .6)); transform: translateY(-4px) scale(1.08); }
  .brand-wall__item:hover img[src$="westside.png"],
  .brand-wall__item:hover img[src$="brand-creative.png"] { filter: grayscale(1) brightness(4) drop-shadow(0 0 7px rgba(125, 206, 255, .85)) drop-shadow(0 0 20px rgba(116, 110, 255, .6)); }
}
.brand-wall__item > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .brand-wall { --brand-columns: 3; }
}
@media (max-width: 540px) {
  .clients.clients--gallery { width: calc(100% - 32px); padding-top: 76px; }
  .brand-wall { --brand-columns: 2; --brand-gap: 12px; margin-top: 30px; gap: 20px var(--brand-gap); }
  .brand-wall__art { height: 108px; padding: 16px; }
  .brand-wall__art img { height: 48px; max-width: 132px; }
  .brand-wall__item--crest img { height: 64px; max-width: 80px; }
  .brand-wall__item > span { font-size: 10px; }
}

/* Original software colours, with a lift on hover rather than whitening. */
.stack-showcase { position: relative; isolation: isolate; }
.tools-depth {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(82, 75, 173, .1), transparent 68%);
  mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent);
}
.tools-depth__plane {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0);
  transition: transform .65s ease-out;
}
.tools-depth__plane img {
  position: absolute;
  display: block;
  width: clamp(130px, 21vw, 320px);
  height: clamp(130px, 20vw, 250px);
  object-fit: contain;
  filter: saturate(.65);
  opacity: .06;
  animation: tools-depth-float 9s ease-in-out infinite alternate;
}
.tools-depth__plane img:nth-child(1) { left: 8%; top: 27%; opacity: .085; --tool-angle: -21deg; }
.tools-depth__plane img:nth-child(2) { left: 39%; top: 23%; width: clamp(190px, 29vw, 390px); height: clamp(190px, 28vw, 370px); opacity: .15; --tool-angle: 11deg; animation-delay: -3s; }
.tools-depth__plane img:nth-child(3) { right: 0; top: 56%; width: clamp(180px, 30vw, 430px); opacity: .065; --tool-angle: -16deg; animation-delay: -6s; }
.tools-depth__plane img:nth-child(4) { left: 55%; top: 7%; width: clamp(180px, 28vw, 410px); opacity: .045; --tool-angle: 8deg; animation-delay: -2s; }
.tools-depth__plane img:nth-child(5) { left: 25%; top: 14%; opacity: .08; --tool-angle: 18deg; animation-delay: -4s; }
.tools-depth__plane img:nth-child(6) { right: 5%; top: 31%; opacity: .045; --tool-angle: -9deg; animation-delay: -7s; }
.tools-depth__plane img:nth-child(7) { left: 13%; top: 62%; width: clamp(180px, 34vw, 500px); opacity: .045; --tool-angle: -6deg; animation-delay: -5s; }
@keyframes tools-depth-float {
  from { transform: perspective(900px) translateY(10px) rotateX(18deg) rotate(var(--tool-angle)); }
  to { transform: perspective(900px) translateY(-14px) rotateX(25deg) rotate(var(--tool-angle)); }
}
.stack-showcase .tool-marquee__set > span { background: radial-gradient(ellipse, rgba(29, 56, 82, .22), transparent 72%); }
.software-sparkle {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  text-shadow: 0 0 7px currentColor;
  animation: software-sparkle-fade 950ms ease-out forwards;
}
@keyframes software-sparkle-fade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); }
  15% { opacity: .95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(.15) rotate(100deg); }
}
.stack-showcase .tool-marquee { padding-block: 24px 32px; }
.stack-showcase .tool-marquee { width: var(--shell); margin-inline: auto; overflow: visible; }
.stack-showcase .tool-marquee::before,
.stack-showcase .tool-marquee::after { display: none; }
.stack-showcase .tool-marquee__track { width: 100%; animation: none; transform: none; will-change: auto; }
.stack-showcase .tool-marquee__set { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 12px; width: 100%; padding: 0; }
.stack-showcase .tool-marquee__set[aria-hidden="true"] { display: none; }
.stack-showcase .tool-marquee__set > span { display: grid; place-items: center; min-width: 0; min-height: 112px; padding: 18px 8px; isolation: isolate; }
.stack-showcase .tool-marquee__set img { position: relative; z-index: 1; filter: none; opacity: 1; }
.stack-showcase .tool-marquee__set > span:nth-child(n+7) img { width: min(100%, 168px); height: 34px; }
.stack-showcase .tool-marquee__set > span::before,
.stack-showcase .tool-marquee__set > span::after {
  content: none;
  display: none;
  place-items: center;
  inset: 50% 0 auto auto;
  width: 50%;
  z-index: 0;
  padding: 0 2px;
  font: 700 clamp(15px, 1.65vw, 24px)/1.1 "Space Grotesk", sans-serif;
  letter-spacing: -.03em;
  text-align: center;
  white-space: normal;
  color: var(--white);
  opacity: 0;
  transform: translateY(-50%) scale(.9);
  transition: opacity .35s ease, transform .45s var(--ease);
}
.stack-showcase .tool-marquee__set > span::before { content: none; }
.stack-showcase .tool-marquee__set > span:nth-child(n+7)::before,
.stack-showcase .tool-marquee__set > span:nth-child(n+7)::after { font-size: clamp(11px, 1.05vw, 16px); }
.stack-showcase .tool-marquee:hover .tool-marquee__track,
.stack-showcase .tool-marquee:focus-within .tool-marquee__track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .stats article:hover { transform: translateY(-3px); filter: drop-shadow(0 3px 10px rgba(87, 216, 255, .2)); }
  .stack-showcase .tool-marquee__set > span:hover img {
    filter: drop-shadow(0 0 8px rgba(87, 216, 255, .65)) drop-shadow(0 0 20px rgba(116, 110, 255, .48));
    transform: translateY(-5px) scale(1.1);
  }
  .stack-showcase .tool-marquee__set > span:hover::before,
  .stack-showcase .tool-marquee__set > span:hover::after { opacity: .5; transform: translateY(-50%) scale(1); }
}
.about-studio {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  padding-block: 80px 110px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.about-studio__intro h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.16; }
.about-studio__overview { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.about-studio__overview h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.16; }
.about-studio__founder-name { margin: 20px 0 0; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.045em; }
.about-studio__portrait {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 24, 40, .32);
}
.about-studio__intro + .about-studio__story { align-self: center; }
.about-studio__intro .about-studio__byline { margin-top: 30px; color: var(--white); font-weight: 600; }
.about-studio__byline span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.about-studio__story p { margin: 0 0 20px; color: #b7c8da; font-size: 14px; line-height: 1.9; }
.about-studio__specialties { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 11px; }
@media (max-width: 760px) {
  .about-studio { grid-template-columns: 1fr; gap: 28px; padding-block: 60px 80px; }
  .about-studio__overview { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
  .stack-showcase .tool-marquee__set { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .stack-showcase .tool-marquee__set > span { min-height: 96px; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .stats article { transition: none; }
  .stats article:hover { transform: none; }
  .tools-depth__plane { transform: none; transition: none; }
  .tools-depth__plane img { animation: none; }
  .software-sparkle { display: none; }
  .brand-wall__art img { transition: none; }
  .brand-wall__item:hover img { transform: none; }
  .stack-showcase .tool-marquee__track { animation: none; }
  .stack-showcase .tool-marquee__set img { transition: none; }
  .stack-showcase .tool-marquee__set > span:hover img { transform: none; }
  .stack-showcase .tool-marquee__set > span::before,
  .stack-showcase .tool-marquee__set > span::after { transition: none; }
}
