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

:root {
  --black: #000;
  --white: #fff;
  --bg: #d9d9d9; /* site-wide background, all pages */
  --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,
body:has(.works-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); }

/* sound on/off toggle — sits with the nav pills, icon only */
.sound-toggle {
  border: 0;
  cursor: pointer;
  font: inherit; /* buttons don't inherit — needed for the em-based height */
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  /* match the text pills' height exactly (font 11px × 1.3 + 2/3px padding) */
  height: calc(1.3em + 5px);
  padding: 0 8px;
}
.sound-toggle svg { display: block; }
.sound-toggle .snd-off { display: none; }
.sound-toggle.is-off .snd-wave { display: none; }
.sound-toggle.is-off .snd-off { display: block; }
.nav-group { display: flex; align-items: flex-start; gap: 6px; }
.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; }

/* entry reel: the client roster streams under the caption — one or two marks
   in focus at a time, the rest dissolved into blur — slowly at first, then
   rushing, before the whole thing collapses into the enter hint */
.enter-reel {
  position: fixed;
  top: calc(50% + 46px);
  left: 0;
  right: 0;
  height: 58px;
  z-index: 44;
  overflow: hidden;
  pointer-events: none;
  opacity: 0; /* the reel's own fade envelope is driven per-frame in JS */
}

/* the collapse: whatever is left funnels into the centre */
body.reel-collapse .enter-reel {
  transform: scaleX(0.12);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.enter-reel-track {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
}

.enter-reel-item {
  flex: 0 0 auto;
  width: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: filter, opacity;
}

.enter-reel-item img {
  display: block;
  height: 21px;
  width: 98px;
  object-fit: contain;
  filter: grayscale(1);
}
.enter-reel-item img.logo-lg { height: 29px; width: 132px; }
.enter-reel-item img.logo-sq { height: 30px; width: 44px; }

@media (max-width: 700px) {
  .enter-reel { top: calc(50% + 38px); height: 42px; }
  .enter-reel-item { width: 118px; }
  .enter-reel-item img { height: 17px; width: 78px; }
  .enter-reel-item img.logo-lg { height: 23px; width: 106px; }
  .enter-reel-item img.logo-sq { height: 24px; width: 36px; }
}

/* the gate: once everything is loaded the site waits for one click — the
   hint (styled like every other pill) breathes softly under the wave, and
   that click unlocks the audio */
.enter-hint {
  position: fixed;
  top: calc(50% + 44px); /* lands exactly where the reel funnelled shut */
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
body.can-enter .enter-hint { opacity: 1; }
body.can-enter .enter-hint .pill {
  opacity: 1;
  transform: none;
  animation: enter-breathe 2.4s ease-in-out infinite;
}
@keyframes enter-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
body.can-enter { cursor: pointer; }
body.captions-split .enter-hint { opacity: 0; }

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;
}

@media (hover: hover) and (pointer: fine) {
  .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 */
@media (hover: hover) and (pointer: fine) {
  .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: a clear side-by-side spread — the three editions separate cleanly
   (slight fan angles kept for character) so each one is easy to read and pick */
.bundle-deck.is-open .deck-card {
  cursor: pointer;
  transform-origin: 50% 130%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
/* cards spread in list order, left to right; the leftmost sits on top */
.bundle-deck.is-open .deck-card.deck-pos-0 { transform: translateX(-58%) rotate(-10deg) scale(0.92) translateZ(1px); }
.bundle-deck.is-open .deck-card.deck-pos-1 { transform: translateY(-4%) scale(0.92) translateZ(-1px); }
.bundle-deck.is-open .deck-card.deck-pos-2 { transform: translateX(58%) rotate(10deg) scale(0.92) translateZ(-2px); }

/* two-edition deck base spread */
.bundle-deck.deck-n2.is-open .deck-card.deck-pos-0 { transform: translateX(-38%) rotate(-6deg) scale(0.94) translateZ(1px); }
.bundle-deck.deck-n2.is-open .deck-card.deck-pos-1 { transform: translateX(38%) rotate(6deg) scale(0.94) translateZ(-1px); }

/* selection: a discreet lift along the card's own angle — same size, no
   dimming. MOUSE ONLY: on touch a hover-lift makes iOS demand a second tap
   (which then lands in the gap and closes the deck), so the first tap must
   be the click. */
@media (hover: hover) and (pointer: fine) {
  .bundle-deck.is-open .deck-card.deck-pos-0:hover { transform: translateX(-58%) rotate(-10deg) translateY(-3.5%) scale(0.92) translateZ(3px); }
  .bundle-deck.is-open .deck-card.deck-pos-1:hover { transform: translateY(-7.5%) scale(0.92) translateZ(3px); }
  .bundle-deck.is-open .deck-card.deck-pos-2:hover { transform: translateX(58%) rotate(10deg) translateY(-3.5%) scale(0.92) translateZ(3px); }
  .bundle-deck.deck-n2.is-open .deck-card.deck-pos-0:hover { transform: translateX(-38%) rotate(-6deg) translateY(-3.5%) scale(0.94) translateZ(3px); }
  .bundle-deck.deck-n2.is-open .deck-card.deck-pos-1:hover { transform: translateX(38%) rotate(6deg) translateY(-3.5%) scale(0.94) translateZ(3px); }
}

/* 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; }

/* edition name under each spread card — the selection is labelled */
.deck-cap {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
  pointer-events: none;
}
.bundle-deck.is-open .deck-cap { opacity: 0.85; }

/* ---------- 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(--bg);
  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(--black);
  border-color: var(--black);
  color: var(--bg);
}

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

/* display:flex above would beat the browser's own [hidden] rule, leaving an
   empty slide in the row: the hero would scroll on products with no video,
   and the consent notice would bleed over the photo. */
.hero-slide[hidden] { display: none; }

.hero-video-slide { position: relative; }
.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(420px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .project-gallery { grid-template-columns: 1fr; }
}

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

.project-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 72px);
  max-width: 1500px;
  width: 100%;
}

/* the artwork stays well under its own pixel count, so it reads sharp on
   retina screens too (a box near 1:1 with the file looks soft at 2x) */
.project-image { flex: 1 1 auto; min-width: 0; max-width: 720px; }

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78svh;
  object-fit: contain;
  margin: 0 auto; /* stays centred once capped at its native width */
}

.project-info { flex: 0 1 340px; min-width: 0; }

.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;
  /* top padding clears the blurred veil under the header, so the client
     strip is never washed out by it */
  padding: 120px var(--pad) 0;
}

.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; }
/* square badges: taller and narrower, so they carry the same optical weight */
.clients-track img.logo-sq { height: 36px; width: 56px; }

/* a client set in plain type rather than its mark — sized to sit at the same
   optical weight as the logos beside it */
.client-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.clients-track .client-name {
  height: 26px;
  width: 120px;
  font-size: 17px;
  opacity: 0.85;
}
.enter-reel-item .client-name { font-size: 14px; }

@media (max-width: 700px) {
  .clients-band .clients-track .client-name { height: 16px; width: 78px; font-size: 12px; }
  .enter-reel-item .client-name { font-size: 11px; }
}

/* ---------- 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; }

/* capabilities grouped by area — easier to scan than one long row, and the
   sub-headings give the page real structure for search engines */
.cap-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
}

.cap-group h3 {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.55;
  margin-bottom: 0.9em;
}

.cap-group ul {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
}

@media (max-width: 700px) {
  .cap-groups { gap: 22px 40px; }
}

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

/* ---------- works ---------- */

.works-main {
  min-height: 100svh;
  padding: 15vh var(--pad) 40px; /* clears the fixed header */
}

/* the list is long: the footer rides at the end of it, never pinned */
body:has(.works-main) .footer,
body:has(.info-main) .footer {
  position: static;
  padding: 30px var(--pad) 20px;
}

.works-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 9vh;
}

.works-head h2 {
  font-size: 11px;
  font-weight: 500;
  flex: 0 0 auto;
}

/* the one line that carries the scale of it all */
.works-summary {
  font-size: clamp(22px, 2.6vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.014em;
  font-weight: 500;
  max-width: 18em;
}

.works-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.works-table th {
  font-weight: 500;
  opacity: 0.55;
  padding: 0 12px 7px 0;
  border-bottom: 1px solid currentColor;
}

.works-table td {
  padding: 9px 12px 9px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  vertical-align: baseline;
}

.works-table tbody tr:first-child td { border-top: 0; }

/* a hovered row lifts out of the list */
.works-table tbody tr { transition: opacity 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .works-table tbody:hover tr { opacity: 0.42; }
  .works-table tbody tr:hover { opacity: 1; }
}

.w-product { width: 30%; }
.w-company { width: 27%; opacity: 0.75; }
.w-job     { width: 31%; }
.w-year    { width: 12%; text-align: right; padding-right: 0; }

/* each discipline reads as its own small mark, not a run-on list.
   NB: inline-block, not flex — a flexed <td> drops out of the table's
   column sizing and collapses the whole column. */
td.w-job { padding-top: 6px; }

.w-tag {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 7px 2px;
  margin: 0 3px 3px 0;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0.62;
}

.works-table td.w-year { font-variant-numeric: tabular-nums; opacity: 0.55; }

@media (max-width: 700px) {
  .works-main { padding-top: 13vh; }
  .works-head { margin-bottom: 6vh; gap: 14px; }
  .works-summary { font-size: 26px; }

  /* the table folds into a stack: product + year on top, details beneath */
  .works-table thead { display: none; }
  .works-table tbody tr,
  .works-table td { display: block; }
  .works-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    padding: 11px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
  }
  /* the desktop column percentages would still squeeze the stacked cells */
  .works-table td { border: 0; padding: 0; width: auto; }
  .works-table td.w-product { grid-column: 1; grid-row: 1; }
  .works-table td.w-year { grid-column: 2; grid-row: 1; }
  .works-table td.w-company { grid-column: 1 / -1; grid-row: 2; }
  .works-table td.w-job { grid-column: 1 / -1; grid-row: 3; padding-top: 0; }
  .works-table td.w-company { margin-top: 2px; }
  .works-table td.w-job { margin-top: 6px; }
}

/* ---------- legal (privacy & cookies) ---------- */

.legal-main {
  min-height: 100svh;
  padding: 15vh var(--pad) 40px;
}
body:has(.legal-main) .footer { position: static; padding: 30px var(--pad) 20px; }

.legal-body { max-width: 62ch; }

.legal-body section { margin-bottom: 46px; }

.legal-body h3 {
  font-size: 11px;
  font-weight: 500;
  padding-bottom: 7px;
  margin-bottom: 16px;
  border-bottom: 1px solid currentColor;
}

.legal-body h4 {
  font-size: 11px;
  font-weight: 500;
  margin: 22px 0 6px;
}

.legal-body p { line-height: 1.65; margin-bottom: 12px; opacity: 0.82; }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.94em;
}

.legal-list { list-style: none; margin: 0 0 12px; }
.legal-list li { line-height: 1.65; opacity: 0.82; padding-left: 14px; position: relative; }
.legal-list li::before { content: "—"; position: absolute; left: 0; opacity: 0.5; }

.legal-dl { margin: 14px 0 16px; }
.legal-dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  padding: 6px 0;
}
.legal-dl dt { opacity: 0.55; }

/* anything still awaiting real content is impossible to miss */
[data-needs-info] {
  background: rgba(0, 0, 0, 0.07);
  padding: 0 5px;
  border-radius: 2px;
}

.legal-table { margin: 6px 0 4px; }
.legal-table td.w-job { padding-top: 9px; opacity: 0.75; }
.legal-table .w-product { width: 22%; }
.legal-table .w-company { width: 20%; }
.legal-table .w-job { width: 40%; }
.legal-table .w-year { width: 18%; }

.legal-updated { opacity: 0.55; }

/* consent controls */
.consent-panel { margin-top: 14px; }
.consent-state { opacity: 1; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.consent-actions .pill { border: 0; cursor: pointer; font: inherit; }
.consent-actions .pill[disabled] { opacity: 0.35; cursor: default; }

/* the placeholder that stands in for an unloaded YouTube player */
.video-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: var(--bg);
}
.video-gate[hidden] { display: none; }
.video-gate p { max-width: 34ch; opacity: 0.7; line-height: 1.55; }
.video-gate-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.video-gate .pill { border: 0; cursor: pointer; font: inherit; }

.pill-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 1px 6px 2px;
}
.pill-ghost:hover { background: var(--black); color: var(--bg); }

@media (max-width: 700px) {
  .legal-main { padding-top: 13vh; }
  .legal-table thead { display: none; }
}

/* first-visit cookie notice — sits above everything, dismissed by a choice */
.cookie-banner {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px 13px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-on { opacity: 1; transform: none; }

.cookie-banner p { line-height: 1.5; flex: 1 1 300px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.cookie-banner-actions .pill {
  border: 0;
  cursor: pointer;
  font: inherit;
  opacity: 1;          /* the nav pills animate in; this one is already here */
  transform: none;
}

@media (max-width: 700px) {
  .cookie-banner { gap: 12px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .pill { flex: 1; text-align: center; }
}

/* ---------- 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-main { padding-top: 104px; }
  .info-statement { margin-top: 28px; }
  .info-statement, .info-contact { font-size: 30px; }
  .info-main { padding-bottom: 24px; }
  body:has(.info-main) .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-center { position: static; transform: none; }
}

/* work that is signed but not yet announced: the client and the year are
   real, the title is veiled. Nothing real sits behind the blur — the markup
   literally reads "Unannounced" — so the source leaks nothing. */
.works-table tr.w-soon td { opacity: 0.6; }

.w-veil {
  display: inline-block;
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
}

.w-soon .w-tag { opacity: 0.9; letter-spacing: 0.04em; }
