/* superaudio — style inspired by minimal swiss layout */

:root {
  --black: #000;
  --white: #fff;
  --bg: #f6f5f1; /* warm ivory — softer, more premium than pure white */
  --grey: #e8e8e8;
  --pad: 10px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.012em;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--black); color: var(--white); }

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 40; /* below .nav so the header can rise above the intro */
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

.preloader.is-done { opacity: 0; pointer-events: none; }

.preloader-text {
  font-size: 11px;
  font-weight: 400; /* lighter — ethereal, premium */
  letter-spacing: 0.02em;
  max-width: 70vw;
  text-align: left;
  text-wrap: balance; /* even, professional line breaks when it wraps */
  visibility: hidden; /* hidden until the char-split settles the final layout */
}

.preloader-text.is-split { visibility: visible; }

.preloader-text b { font-weight: 600; }

@media (max-width: 700px) {
  .preloader-text {
    max-width: min(76vw, 280px);
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    text-wrap: wrap; /* balance re-breaks lines mid-intro on mobile — keep them stable */
  }
}

.preloader-text .word { display: inline-block; white-space: nowrap; }

.preloader-text .char {
  display: inline-block;
  opacity: 0;
  filter: blur(6px); /* chars condense out of a soft haze */
}

/* ---------- header ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px var(--pad) 0;
}

/* information page scrolls under the fixed header: a progressive blur veil
   below the nav melts the content away as it approaches the top bar */
body:has(.info-main)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 49; /* right under the nav */
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 12%, rgba(246, 245, 241, 0));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent);
  mask-image: linear-gradient(to bottom, #000 38%, transparent);
}

.nav-group { display: flex; gap: 4px; }

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.pill {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 2px 3px 3px;
  border-radius: 1px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.15s ease, color 0.15s ease;
}

body.is-ready .pill { opacity: 1; transform: translateY(0); }

.pill:hover { background: var(--grey); color: var(--black); }
.pill.is-active { background: var(--grey); color: var(--black); }

/* logo */
.logo {
  display: block;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo img { display: block; height: 18px; width: auto; }
body.is-ready .logo { opacity: 1; transform: translateY(0); }

/* staggered pill entrance */
.pill:nth-child(1) { transition-delay: 0s, 0s; }
.pill:nth-child(2) { transition-delay: 0.07s, 0.07s; }
.pill:nth-child(3) { transition-delay: 0.14s, 0.14s; }

/* ---------- home ---------- */

.home-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- project flow ---------- */

/* starts joined in the middle ("where tech meets art"), then the two halves
   glide apart to the sides once the opening rush has settled */
.flow-caption {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 45; /* above the flow so it stays readable */
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  mix-blend-mode: difference; /* black on white, inverts over the cards */
  opacity: 0;
  transition:
    opacity 1.2s ease 0.6s,
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}

/* joined state leaves room in the middle for the animated sine wave */
.flow-caption-left { transform: translate(calc(-100% - 62px), -50%); }
.flow-caption-right { transform: translate(62px, -50%); }

/* animated sinusoid between the two halves while they sit together */
.caption-wave {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 45;
  width: 100px;
  height: 20px;
  overflow: hidden;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.9s ease 0.6s;
  pointer-events: none;
}

.caption-wave svg { display: block; width: 125%; height: 100%; }

.caption-wave-path { animation: wave-travel 0.9s linear infinite; }

@keyframes wave-travel {
  to { transform: translateX(-30px); } /* exactly one wavelength — seamless */
}

body.is-ready .caption-wave { opacity: 1; }
body.captions-split .caption-wave,
body.project-open .caption-wave { opacity: 0; transition: opacity 0.5s ease; }

body.captions-split .flow-caption-left { transform: translate(calc(-50vw + 10px), -50%); }
body.captions-split .flow-caption-right { transform: translate(calc(50vw - 100% - 10px), -50%); }

body.is-ready .flow-caption { opacity: 1; }
body.project-open .flow-caption { visibility: hidden; }

/* after the split the captions turn into the live header — company name on
   the left, the centred product's name on the right; the white +
   mix-blend-difference combo keeps them readable over any background */
.flow-caption .cap-swap {
  display: inline-block;
  transition: opacity 0.35s ease;
}
.flow-caption .cap-swap.is-swapping { opacity: 0; }

/* the centred plugin's UI, zoomed and blended over the colour gradient
   like a print overlay — visible texture, not just a glow */
.flow-bg {
  display: none; /* blurred product echo removed with the colour wash — clean background */
  position: fixed;
  inset: 0;
  z-index: 7; /* above the tint so the UI overlays the colour wash */
  overflow: hidden;
  pointer-events: none;
}

.flow-bg-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130vw;
  max-width: none;
  mix-blend-mode: overlay;
  transform: translate(-50%, -50%) scale(1.25) rotate(-4deg);
  filter: blur(16px) saturate(1.25);
  opacity: 0;
  transition: opacity 1.4s ease, transform 8s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-bg-img.is-on {
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(1.4) rotate(-1deg); /* slow drift-zoom */
}

body.project-open .flow-bg { visibility: hidden; }

/* full-page tint: white gradient washed with the centred plugin's colour */
@property --tint {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(255, 255, 255, 0);
}

.flow-tint {
  display: none; /* colour wash removed — plain background for every product */
  position: fixed;
  inset: 0;
  z-index: 6; /* behind the flow, above the white page */
  pointer-events: none;
  /* layered wash: the product colour blooms from the centre while two softer
     off-axis pools of the same hue drift toward the corners — a real gradient
     rather than a flat halo */
  background:
    radial-gradient(115% 85% at 50% 55%,
      var(--tint), rgba(255, 255, 255, 0) 74%),
    radial-gradient(85% 65% at 12% 8%,
      color-mix(in srgb, var(--tint) 55%, #fff), rgba(255, 255, 255, 0) 58%),
    radial-gradient(85% 65% at 90% 88%,
      color-mix(in srgb, var(--tint) 70%, #fff), rgba(255, 255, 255, 0) 58%);
  opacity: 0;
  transition: opacity 1.2s ease, --tint 1s ease;
}

body.captions-split .flow-tint { opacity: 0.5; }
body.project-open .flow-tint { visibility: hidden; }

.flow-stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  cursor: grab;
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 1.1s ease,
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: none;
}

/* the flow only appears once the caption-loader has split to the sides */
body.captions-split .flow-stage { opacity: 1; transform: scale(1); }
.flow-stage:active { cursor: grabbing; }

.flow-item {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(260px, 46vw, 640px);
  will-change: transform, opacity, filter;
  transform: translateZ(0); /* keep each card on its own GPU layer */
  cursor: pointer;
}

.flow-card {
  position: relative;
  will-change: transform;
  transform-style: preserve-3d; /* lets the edge layers sit behind the face */
  transition: scale 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* slab thickness: masked copies stacked behind the face */
.edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.flow-item img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* cheap soft shadow: a gradient blob instead of a per-pixel drop-shadow */
.flow-card::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 12%;
  bottom: -10%;
  background: radial-gradient(ellipse 50% 50% at 50% 60%,
    rgba(0, 0, 0, 0.22), transparent 70%);
  transform: translateZ(-6px);
  pointer-events: none;
}

/* iridescent sheen, clipped to the cutout via mask (set inline from JS) */
.holo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  background:
    linear-gradient(115deg,
      transparent 32%,
      rgba(255, 255, 255, 0.65) 44%,
      rgba(160, 255, 244, 0.35) 50%,
      rgba(255, 170, 255, 0.30) 56%,
      transparent 68%);
  background-size: 240% 240%;
  mix-blend-mode: screen;
}

.flow-item:hover .flow-card { scale: 1.04; }

/* ---------- bundle deck (flow) ---------- */

.deck-card {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* front card sits in normal flow and defines the deck's size */
.deck-card.deck-pos-0 { position: relative; }
.deck-card.deck-pos-1,
.deck-card.deck-pos-2 {
  position: absolute;
  inset: 0;
}

.deck-card img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* closed: the other editions peek out behind the red one */
.deck-card.deck-pos-1 { transform: rotate(-6deg) translate(-4.5%, -2.5%) translateZ(-2px); }
.deck-card.deck-pos-2 { transform: rotate(5deg) translate(4.5%, -1.5%) translateZ(-4px); }

/* hover hint: the deck loosens slightly */
.flow-item:hover .bundle-deck:not(.is-open) .deck-card.deck-pos-1 { transform: rotate(-9deg) translate(-7.5%, -3.5%) translateZ(-2px); }
.flow-item:hover .bundle-deck:not(.is-open) .deck-card.deck-pos-2 { transform: rotate(8deg) translate(7.5%, -2.5%) translateZ(-4px); }

/* open: an elegant fan — the cards pivot around a shared point below the
   deck, like a hand of playing cards: even angles, same scale, no offsets */
.bundle-deck.is-open .deck-card {
  cursor: pointer;
  transform-origin: 50% 140%;
}
/* cards fan out in list order, left to right; the leftmost sits on top */
.bundle-deck.is-open .deck-card.deck-pos-0 { transform: rotate(-16deg) translateZ(1px); }
.bundle-deck.is-open .deck-card.deck-pos-1 { transform: rotate(0deg) translateZ(-1px); }
.bundle-deck.is-open .deck-card.deck-pos-2 { transform: rotate(16deg) translateZ(-2px); }

/* hovered card slides out of the fan along its own angle */
.bundle-deck.is-open .deck-card.deck-pos-0:hover { transform: rotate(-16deg) translateY(-4%) translateZ(1px); }
.bundle-deck.is-open .deck-card.deck-pos-1:hover { transform: rotate(0deg) translateY(-4%) translateZ(-1px); }
.bundle-deck.is-open .deck-card.deck-pos-2:hover { transform: rotate(16deg) translateY(-4%) translateZ(-2px); }

/* two-edition deck: a symmetric pair of angles, still left to right */
.bundle-deck.deck-n2.is-open .deck-card.deck-pos-0 { transform: rotate(-8deg) translateZ(1px); }
.bundle-deck.deck-n2.is-open .deck-card.deck-pos-1 { transform: rotate(8deg) translateZ(-1px); }
.bundle-deck.deck-n2.is-open .deck-card.deck-pos-0:hover { transform: rotate(-8deg) translateY(-4%) translateZ(1px); }
.bundle-deck.deck-n2.is-open .deck-card.deck-pos-1:hover { transform: rotate(8deg) translateY(-4%) translateZ(-1px); }

/* the sheen and the slab edges would sit oddly on an open fan */
.bundle-deck.is-open .holo { opacity: 0 !important; }
.edge { transition: opacity 0.3s ease; }
.bundle-deck.is-open .edge { opacity: 0; }

.deck-cap { display: none; }

/* ---------- demo track player ---------- */

.project-audio { margin-top: 2.6em; }

.audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.audio-play {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 1px;
  padding: 1px 6px 2px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.audio-play:hover { opacity: 0.6; }

.audio-label { opacity: 0.55; }

.audio-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.audio-wave {
  display: block;
  width: 100%;
  height: 72px;
  cursor: pointer;
}

/* ---------- project view ---------- */

.project-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--white);
  color: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s, background 0.5s ease;
  display: flex;
  overflow-y: auto; /* media below the fold stays reachable */
  padding: 60px var(--pad) 40px;
}

/* auto margins centre short content and scroll naturally when it overflows */
.project-scroll {
  margin: auto;
  width: 100%;
  max-width: 1500px;
}

.project-view.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s, background 0.5s ease;
}

.project-close {
  position: absolute;
  top: 9px;
  right: var(--pad);
  border: 0;
  font: inherit;
  cursor: pointer;
  opacity: 1;
  transform: none;
}

/* hero carousel: swipe (or tap Photo / Video) to swap the image and the film */
.hero-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;               /* the Photo/Video pills are the nav */
}
.hero-scroller::-webkit-scrollbar { display: none; }

/* Photo / Video switch under the hero — also mirrors the swipe position */
.hero-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.hero-nav[hidden] { display: none; }

.hero-dot {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 3px 12px 4px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.hero-dot.is-active {
  opacity: 1;
  background: var(--view-fg, #000);
  border-color: var(--view-fg, #000);
  color: var(--view-bg, #fff);
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78svh;
  border: 0;
}

/* media strip: photo gallery under the two columns */
.project-media { margin-top: 30px; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.project-inner {
  display: flex;
  align-items: center;
  gap: 5vw;
  max-width: 1500px;
  width: 100%;
}

.project-image { flex: 1 1 60%; min-width: 0; }

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78svh;
  object-fit: contain;
}

.project-info { flex: 0 0 300px; }

.project-info h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.014em;
  margin-bottom: 2.2em;
}

.project-info dl div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid currentColor;
  padding: 5px 0 6px;
}

.project-info dt { opacity: 0.55; }

.project-desc {
  margin-top: 2.4em;
  max-width: 34em;
  opacity: 0.8;
}

body.project-open .nav { visibility: hidden; }

@media (max-width: 700px) {
  .project-inner { flex-direction: column; gap: 24px; }
  .project-info { flex: none; width: 100%; }
}

/* ---------- information page ---------- */

.info-main {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) 60px; /* clear the fixed footer */
}

.info-columns {
  display: flex;
  gap: 90px;
  margin-top: 19vh;
}

.info-col { min-width: 160px; }

.info-col h2 {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 3.2em;
}

.info-col ul { list-style: none; }

.info-col li { line-height: 1.55; }

.info-statement {
  margin-top: 36px; /* the clients strip right above carries the auto margin */
  font-size: clamp(28px, 3.45vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.014em;
  font-weight: 500;
  max-width: 95%;
}

.info-contact {
  font-size: clamp(28px, 3.45vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.014em;
  font-weight: 500;
  margin-top: 1.4em;
  margin-bottom: 34px;
}

.info-contact a:hover { color: #888; }

/* word-reveal for big text */
.reveal .word { display: inline-block; white-space: nowrap; }
.reveal .word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-ready .reveal .word > span { opacity: 1; transform: translateY(0); }

/* ---------- scroll hint ---------- */

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  mix-blend-mode: difference; /* readable over any card colour */
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
  pointer-events: none;
}

body.captions-split .scroll-hint { opacity: 1; }
body.project-open .scroll-hint { opacity: 0; transition-delay: 0s; }

.scroll-hint-line {
  width: 1px;
  height: 26px;
  background: #fff;
  transform-origin: top;
  animation: hint-stretch 1.8s ease-in-out infinite;
}

@keyframes hint-stretch {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* ---------- custom cursor ---------- */

/* the native cursor disappears over the flow; a soft dot takes its place
   and blooms into a ring over whatever can be opened */
.flow-stage, .flow-stage:active, .flow-item,
.bundle-deck.is-open .deck-card { cursor: none; }

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

body.cursor-on .cursor-dot { opacity: 1; }
body.cursor-open .cursor-dot { width: 56px; height: 56px; }

/* ---------- clients marquee ---------- */

.clients-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 20;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease 0.8s;
  /* deep fade on both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%, #000 68%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000 68%, transparent);
}

body.is-ready .clients-marquee { opacity: 1; }
body.project-open .clients-marquee { visibility: hidden; }

.clients-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding-right: 64px;
  animation: clients-scroll 46s linear infinite;
}

.clients-marquee:hover .clients-track { animation-play-state: paused; }

/* ---------- dedicated clients band (home) ---------- */

.clients-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: none; /* temporarily hidden — restore to `display: flex` */
  align-items: center;
  gap: 28px;
  padding: 15px var(--pad);
  background: #ececec;
  color: var(--black);
  opacity: 0;
  transition: opacity 1.2s ease 0.8s;
}

body.captions-split .clients-band { opacity: 1; }
body.project-open .clients-band { visibility: hidden; }

@media (max-width: 700px) {
  .clients-band { padding: 10px var(--pad); }
  .clients-band .clients-track { gap: 36px; padding-right: 36px; }
  .clients-band .clients-track img { height: 16px; width: 78px; }
  .clients-band .clients-track img.logo-lg { height: 24px; width: 106px; }
}

.clients-marquee-band {
  position: static;
  flex: 1;
  min-width: 0;
  opacity: 1;
  transition: none;
  bottom: auto;
}

/* the band scrolls steadily — no pause, no speed games */
.clients-marquee-band:hover .clients-track { animation-play-state: running; }
.clients-marquee-band .clients-track { animation-duration: 55s; }
.clients-band .clients-track img { opacity: 0.65; }

.clients-track img {
  display: block;
  height: 26px;
  width: 120px;
  object-fit: contain; /* uniform visual weight for every logo */
  opacity: 0.85;
  filter: grayscale(1) contrast(1.05);
  transition: opacity 0.3s ease;
}

.clients-track img:hover { opacity: 1; }

/* wide, detailed marks need a larger box to read at the same weight */
.clients-track img.logo-lg { height: 38px; width: 170px; }

/* ---------- clients rotator (home) ---------- */

.clients-rotator {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: clamp(36px, 7vw, 96px);
  opacity: 0;
  transition: opacity 1.2s ease 0.8s;
  pointer-events: none;
}

body.is-ready .clients-rotator { opacity: 1; }
body.project-open .clients-rotator { visibility: hidden; }

.client-logo {
  width: 120px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.client-logo.is-out {
  opacity: 0;
  transform: translateY(7px);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1);
}

@media (max-width: 700px) {
  .clients-rotator { gap: 20px; }
  .client-logo { width: 76px; height: 20px; }
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* static variant used inside the information page flow — sits with the
   statement block, just above the big text */
.clients-marquee-static {
  position: static;
  margin-top: auto;
  padding-top: 48px;
  opacity: 1;
  transition: none;
}

/* ---------- information capabilities ---------- */

.info-capabilities { margin-top: 46px; }

.info-capabilities h2 {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 1.6em;
}

.info-capabilities ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.info-capabilities li { line-height: 1.55; }

.info-team ul { flex-direction: column; gap: 4px; } /* one name per line */
.info-team .role { opacity: 0.55; margin-left: 6px; }

/* ---------- footer ---------- */

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--pad) 8px;
  background: transparent;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* home: the footer floats just above the clients band and fades in with the
   rest of the interface */
.footer-home {
  bottom: 0;
  z-index: 26;
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
}
body.captions-split .footer-home { opacity: 1; }
body.project-open .footer-home { visibility: hidden; }

.footer .pill { padding: 1px 3px 2px; }

@media (max-width: 700px) {
  .nav-center { position: static; transform: none; }
  .nav { flex-wrap: wrap; gap: 6px; }
  .info-columns { flex-direction: column; gap: 40px; margin-top: 14vh; }
  .info-statement { margin-top: 28px; }
  .info-statement, .info-contact { font-size: 30px; }
  .info-main { padding-bottom: 24px; }
  /* on small screens the footer flows with the page instead of floating */
  body:has(.info-main) .footer {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px var(--pad) 20px;
  }
  .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-center { position: static; transform: none; }
}
