/* ═══════════════════════════════════════════════════════════
   HOME · OUR CLIENTS  — "Hang Time" strip (index.html #home-clients)
   Client tiles hang from the top edge in a rising staircase and
   drift sideways; hover shows the client with a scrambled caption
   and a "Visit site" pill; optional synthesized sound.
   Built by home-clients.js. Veox brand colours.
   ═══════════════════════════════════════════════════════════ */
/* CUSTOMISE */
#home-clients {
  --ht-paper: #faf3e1;
  --ht-ink: #0c0c0c;
  --ht-accent: #ff5555;
  --ht-green: #a3d78a;
  --ht-sand: #f5e7c6;
  --ht-tile-w: clamp(220px, 28.8vw, 560px);
  --ht-min-h: .40;   /* tile height at the left edge (share of section height) */
  --ht-max-h: .62;   /* tile height at the right edge */
  --ht-hover: .06;   /* extra height on hover */
}

#home-clients {
  position: relative; overflow: hidden; padding: 0 !important;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1000px;
  background: var(--ht-paper); color: var(--ht-ink);
  font-family: var(--font-body, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
#home-clients.ht-on, #home-clients.ht-on * { cursor: none; }
@media (hover: none), (pointer: coarse) { #home-clients.ht-on, #home-clients.ht-on * { cursor: auto; } }

/* SEO / no-JS client list (hidden once the strip is built) */
.ht-list { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .6rem; padding: 7rem 5% 0; list-style: none; margin: 0; }
.ht-list a { display: inline-block; padding: .55rem 1rem; border-radius: 50px; border: 1px solid rgba(12,12,12,.15); font-weight: 700; font-size: .9rem; }
#home-clients.ht-on .ht-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }

/* strip */
.ht-strip { position: absolute; left: 0; right: 0; top: 0; height: 80%; touch-action: pan-y; outline: none; }
.ht-strip:focus-visible { box-shadow: inset 0 0 0 2px var(--ht-accent); }
.ht-tile {
  position: absolute; left: 0; top: 0; width: var(--ht-tile-w); overflow: hidden;
  display: block; color: inherit; text-decoration: none; will-change: transform, height;
  -webkit-user-drag: none; user-select: none;
}
.ht-drop { position: absolute; inset: 0; transform: translateY(-105%); transition: transform .9s cubic-bezier(.22,1,.36,1); }
#home-clients.ht-in .ht-drop { transform: none; }
.ht-art {
  position: absolute; top: 0; bottom: 0; left: -6%; width: 112%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--bg); color: var(--fg);
  transform: translateX(var(--px, 0)) scale(var(--zoom, 1)); transform-origin: 50% 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.ht-art::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 18px 18px;
}
.ht-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ht-mono {
  position: relative; font-family: var(--font-display, sans-serif); font-weight: 900;
  font-size: clamp(3rem, 7.4vw, 9rem); letter-spacing: -.06em; line-height: .9; text-align: center;
  padding: 0 .1em; white-space: nowrap;
}
.ht-num, .ht-dom {
  position: absolute; left: 14px; z-index: 1; pointer-events: none; font-family: var(--font-body, sans-serif); font-weight: 800;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75;
}
.ht-num { top: 14px; }
.ht-dom { bottom: 14px; text-transform: lowercase; letter-spacing: .04em; }

.ht-pill {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 50px;
  background: var(--ht-accent); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  text-decoration: none; box-shadow: 0 8px 22px -6px rgba(255,85,85,.6);
  transform: translateX(calc(100% + 16px)); transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.ht-tile.is-hot .ht-pill { transform: none; }
.ht-pill svg { width: 13px; height: 13px; }

/* caption under the hovered tile */
.ht-cap {
  position: absolute; z-index: 3; left: 0; top: 0; max-width: min(460px, 80vw); pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.ht-cap.is-on { opacity: 1; }
.ht-cap-name { display: block; font-family: var(--font-display, sans-serif); font-weight: 800; font-size: clamp(.95rem, 1.35vw, 1.25rem); letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; }
.ht-cap-line { display: block; margin-top: 4px; font-size: .82rem; font-weight: 700; color: rgba(12,12,12,.6); }
.ht-cap-quote { display: block; margin-top: 8px; font-family: var(--font-head, serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: rgba(12,12,12,.8); }
.ht-cap-quote:empty { display: none; }

/* bottom: wordmark, studio line, menu square */
.ht-bottom {
  position: absolute; left: clamp(16px, 2.4vw, 40px); right: clamp(16px, 2.4vw, 40px); bottom: 54px;
  display: flex; align-items: flex-end; gap: 4vw; pointer-events: none;
}
.ht-word {
  margin: 0; font-family: var(--font-display, sans-serif); font-weight: 900; color: var(--ht-ink);
  font-size: clamp(3.4rem, 12.5vw, 15rem); line-height: .82; letter-spacing: -.075em; white-space: nowrap;
}
.ht-word em { font-style: normal; color: var(--ht-accent); }
.ht-studio { max-width: 340px; margin-left: auto; padding-bottom: .4em; pointer-events: auto; }
.ht-studio b { display: block; font-family: var(--font-display, sans-serif); font-size: .82rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .7rem; }
.ht-studio b::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--ht-ink); margin-bottom: .7rem; }
.ht-studio p { margin: 0; font-size: .95rem; line-height: 1.5; color: rgba(12,12,12,.78); }
.ht-menu {
  flex: none; width: 54px; height: 44px; margin-left: 2vw; margin-bottom: .5em; pointer-events: auto;
  display: grid; place-content: center; gap: 6px; background: var(--ht-ink); text-decoration: none; transition: background .25s;
}
.ht-menu i { display: block; width: 26px; height: 2px; background: var(--ht-paper); }
.ht-menu:hover { background: var(--ht-accent); }

/* footer bar */
.ht-foot {
  position: absolute; left: clamp(16px, 2.4vw, 40px); right: clamp(16px, 2.4vw, 40px); bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ht-ink);
}
.ht-foot > div { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.ht-foot a, .ht-foot button { color: inherit; text-decoration: none; background: none; border: 0; padding: 4px 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
.ht-foot a:hover { color: var(--ht-accent); }
.ht-foot .sep { opacity: .35; }
.ht-sound { display: inline-flex; align-items: center; gap: 5px; }
.ht-sound svg { width: 15px; height: 15px; }
.ht-sound .off { display: none; }
.ht-sound[aria-pressed="false"] .on { display: none; }
.ht-sound[aria-pressed="false"] .off { display: block; }
.ht-foot :focus-visible, .ht-studio :focus-visible, .ht-menu:focus-visible, .ht-pill:focus-visible { outline: 2px solid var(--ht-accent); outline-offset: 3px; }

/* "Drag" cursor */
.ht-cursor {
  position: absolute; z-index: 5; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ht-ink); color: var(--ht-paper); pointer-events: none;
  display: grid; place-items: center; font-size: 0; font-weight: 800; letter-spacing: .04em;
  transition: width .3s cubic-bezier(.22,1,.36,1), height .3s cubic-bezier(.22,1,.36,1), margin .3s cubic-bezier(.22,1,.36,1), font-size .2s, background .25s, opacity .2s;
  opacity: 0;
}
#home-clients.ht-pointer .ht-cursor { opacity: 1; }
.ht-cursor.is-drag { width: 74px; height: 74px; margin: -37px 0 0 -37px; font-size: .78rem; }
.ht-cursor.is-link { background: var(--ht-accent); }
body.ht-hide-dot #cursor-dot, body.ht-hide-dot #cursor-star { opacity: 0 !important; }
@media (hover: none), (pointer: coarse) { .ht-cursor { display: none; } }

/* phones */
@media (max-width: 760px) {
  #home-clients { --ht-tile-w: 62vw; --ht-min-h: .38; --ht-max-h: .54; --ht-hover: 0; min-height: 620px; }
  .ht-strip { height: 68%; }
  .ht-cap-line { font-size: .78rem; }
  .ht-bottom { flex-direction: column; align-items: flex-start; gap: .9rem; bottom: 48px; }
  .ht-studio { margin-left: 0; max-width: none; padding: 0; }
  .ht-studio b::before { display: none; }
  .ht-studio b { margin-bottom: .4rem; }
  .ht-studio p { font-size: .84rem; }
  .ht-menu { display: none; }
  .ht-word { font-size: 21vw; }
  .ht-foot { font-size: .62rem; justify-content: flex-end; bottom: 14px; }
  .ht-foot > div:first-child { display: none; }
  .ht-mono { font-size: 15vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-drop, .ht-art, .ht-pill { transition: none; }
}
/* brand logo on a tile: white card in the centre of the coloured tile */
#home-clients .ht-logo{position:absolute;inset:18% 14%;display:grid;place-items:center;background:#fff;border-radius:18px;padding:12%;box-shadow:0 18px 40px -22px rgba(0,0,0,.45)}
#home-clients .ht-logo img{max-width:100%;max-height:100%;object-fit:contain}
