/* ==========================================================================
   OKAT Media, homepage
   Loaded on index.html only. Every section is laid out to read completely on
   its own. The classes home.js adds (is-live, is-pinned, is-tabbed) switch on
   the scroll-driven layouts, so a script that never arrives leaves a
   finished page rather than an empty one.
   ========================================================================== */

.page-home .lead { font-size: clamp(1.02rem, 1.35vw, 1.18rem); }

/* ---------- hero ---------- */
.hm-hero {
  position: relative;
  padding-top: clamp(118px, 16vh, 176px);
  overflow: hidden;
}
.hm-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
  text-align: center;
}
.hm-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vh, 44px);
}
.hm-wall { margin-top: clamp(18px, 4.4vh, 52px); perspective: 1600px; }
.hm-wall-in { transform-origin: 50% 0%; }

/* The 3D work wall, moved here from style.css with the old hero.
   hero-carousel.js lays the cards out; data.js swaps in the set from /admin. */
.hero-carousel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.hero-carousel::before,
.hero-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 90;
  width: clamp(60px, 12vw, 220px);
  pointer-events: none;
}
.hero-carousel::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.hero-carousel::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
/* perspective lives here so every card shares one vanishing point */
.hc-stage {
  position: relative;
  height: min(clamp(340px, 45vw, 680px), 58vh);
  perspective: 1900px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.hc-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(168px, 19.5vw, 336px);
  height: clamp(237px, 27.5vw, 474px);
  margin-left: calc(clamp(168px, 19.5vw, 336px) / -2);
  margin-top: calc(clamp(237px, 27.5vw, 474px) / -2);
  border-radius: clamp(10px, 1.1vw, 16px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* contain, not cover: these are posters and key art, and cropping a square
   or landscape piece into a portrait card cut headlines in half */
.hc-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* everything but the middle card sits behind a scrim, so the centre reads first */
.hc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 11, 0.45);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hc-card.is-centre::after { opacity: 0; }
.hc-card.is-centre {
  cursor: zoom-in;
  border-color: color-mix(in srgb, var(--lime) 55%, transparent);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7), 0 0 70px color-mix(in srgb, var(--lime) 30%, transparent);
}
.hc-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
/* Pause control for the wall (SC 2.2.2). It sits inside the carousel so it
   travels with it, and it is reachable by keyboard without hovering. */
.hc-pause {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 95;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 12, 11, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.hc-pause svg { width: 17px; height: 17px; fill: currentColor; }
.hero-carousel:hover .hc-pause,
.hc-pause:hover,
.hc-pause:focus-visible { opacity: 1; background: rgba(11, 12, 11, 0.85); border-color: rgba(255, 255, 255, 0.45); }
@media (hover: none) { .hc-pause { opacity: 0.9; } }

/* ---------- disciplines ticker ---------- */
.hm-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hm-ticker-track { display: flex; width: max-content; will-change: transform; }
.hm-ticker-set { display: flex; align-items: center; }
.hm-ticker-set span {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 62px;
  padding-right: 30px;
  font: 600 0.74rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.hm-ticker-set span::after { content: ''; width: 7px; height: 7px; background: var(--lime); }

/* ---------- logos ---------- */
.hm-logos { padding: clamp(54px, 9vh, 96px) 0; }
.hm-logos-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(26px, 4vh, 40px);
}
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-track { display: flex; align-items: center; width: max-content; will-change: transform; }
/* margin, not gap: the marquee wraps at exactly half the track's width, and a
   gap leaves the two halves half a gap apart */
/* A block of definite size, not a grid cell: a grid row sized itself from the
   image's natural height, so a 120px-tall logo overflowed its 76px slot and
   the marquee's overflow cut its bottom off. */
.logo-slide {
  flex: 0 0 auto;
  display: block;
  width: 164px;
  height: 76px;
  margin-right: clamp(22px, 3vw, 44px);
  padding: 8px 14px;
}
.logo-slide img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0.78; transition: opacity 0.3s; }
.logo-marquee:hover .logo-slide img { opacity: 1; }

/* ---------- how we work ---------- */
.hm-manifesto { padding: clamp(96px, 16vh, 190px) 0 clamp(80px, 12vh, 150px); }
.hm-manifesto-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.hm-manifesto-text {
  max-width: 1240px;
  font: 800 clamp(1.7rem, 3.3vw, 3.5rem)/1.12 var(--display);
  letter-spacing: -0.035em;
}
.hm-manifesto-text .hl { color: var(--lime); }
/* live: every word starts dim and inks in as it is read; the three
   highlights turn lime when the reading light reaches them */
.hm-manifesto.is-live .hm-manifesto-text .w { opacity: 0.16; }
.hm-manifesto.is-live .hm-manifesto-text .hl { color: inherit; }
.hm-manifesto.is-live .hl .w { transition: color 0.6s; }
.hm-manifesto.is-live .hl.is-lit .w { color: var(--lime); }
.hm-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 10vh, 120px);
  border-top: 1px solid var(--line);
}
.hm-fact { padding: 24px 28px 0 0; }
.hm-fact h3 { font: 700 1.28rem/1.2 var(--display); letter-spacing: -0.02em; }
.hm-fact p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- one idea, every format ---------- */
.hm-formats {
  position: relative;
  padding: clamp(96px, 15vh, 180px) var(--gutter);
  overflow: hidden;
}
.hm-formats-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hm-vf-stage { margin-top: clamp(36px, 6vh, 64px); }
/* still: the five formats side by side at their true proportions, the
   billboard on a row of its own */
.hm-vf-frame { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.hm-vf-layer { flex: var(--r) 1 0%; min-width: 0; margin: 0; }
.hm-vf-layer.is-wide { flex-basis: 100%; }
.hm-vf-layer > img,
.hm-vf-layer > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--r);
  object-fit: cover;
  background: var(--black);
}
.hm-vf-layer figcaption { margin-top: 10px; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.hm-vf-layer .hm-vf-name { display: block; font: 800 1.1rem/1.1 var(--display); letter-spacing: -0.03em; color: var(--text); }
.hm-vf-layer .hm-vf-spec,
.hm-vf-layer .hm-vf-credit { display: block; }
.hm-vf-c,
.hm-vf-ratio,
.hm-vf-hud { display: none; }

/* live: one pinned frame that reshapes through the five formats */
.hm-formats.is-live {
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: clamp(92px, 12vh, 124px) var(--gutter) clamp(20px, 3.6vh, 36px);
}
.hm-formats.is-live .h-sec { font-size: clamp(2rem, 3.9vw, 4.4rem); }
.hm-formats.is-live .hm-vf-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: clamp(18px, 3vh, 30px) 0;
}
.hm-formats.is-live .hm-vf-frame { position: relative; display: block; width: 280px; height: 500px; }
.hm-formats.is-live .hm-vf-layer { position: absolute; inset: 0; overflow: hidden; background: var(--black); }
.hm-formats.is-live .hm-vf-layer > img,
.hm-formats.is-live .hm-vf-layer > video { height: 100%; aspect-ratio: auto; }
.hm-formats.is-live .hm-vf-layer figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hm-formats.is-live .hm-vf-c {
  position: absolute;
  z-index: 3;
  display: block;
  width: 22px;
  height: 22px;
  border: 0 solid var(--lime);
}
.hm-formats.is-live .hm-vf-c.tl { top: -11px; left: -11px; border-top-width: 2px; border-left-width: 2px; }
.hm-formats.is-live .hm-vf-c.tr { top: -11px; right: -11px; border-top-width: 2px; border-right-width: 2px; }
.hm-formats.is-live .hm-vf-c.bl { bottom: -11px; left: -11px; border-bottom-width: 2px; border-left-width: 2px; }
.hm-formats.is-live .hm-vf-c.br { bottom: -11px; right: -11px; border-bottom-width: 2px; border-right-width: 2px; }
.hm-formats.is-live .hm-vf-ratio {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: block;
  padding: 6px 8px;
  background: rgba(11, 12, 11, 0.72);
  font: 600 0.7rem/1 var(--body);
  letter-spacing: 0.06em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.hm-formats.is-live .hm-vf-hud {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(16px, 3vw, 48px);
  padding-top: 16px;
  padding-right: 76px; /* clear of the WhatsApp button */
  border-top: 1px solid var(--line);
}
.hm-vf-idx { font: 800 1.5rem/1 var(--display); letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-vf-idx b { color: var(--lime); font-weight: 800; }
.hm-vf-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; }
.hm-vf-now .hm-vf-name { font: 800 clamp(1.4rem, 2.2vw, 2rem)/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.hm-vf-now .hm-vf-spec { color: var(--muted); font-size: 0.9rem; }
.hm-vf-hud > .hm-vf-credit { color: var(--muted); font-size: 0.85rem; text-align: right; }

/* ---------- selected work ---------- */
.hm-work { position: relative; overflow: hidden; }
.hm-work-pin { padding: clamp(96px, 15vh, 160px) 0 clamp(40px, 6vh, 64px); }
.hm-work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(20px, 3.4vh, 38px);
}
.hm-work-head .h-sec { margin-top: 14px; }
.hm-work-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hm-work-count { font: 800 1.5rem/1 var(--display); letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-work-count b { color: var(--lime); font-weight: 800; }
/* still: a sideways scroller the reader swipes or scrolls by hand */
.hm-work-track {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  padding: 0 var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
}
.hm-work-end { flex: 0 0 1px; }
.wcard {
  --h: min(56vh, 520px);
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: calc(var(--h) * var(--r));
  max-width: 86vw;
  scroll-snap-align: start;
}
.wcard-img { position: relative; aspect-ratio: var(--r); overflow: hidden; background: var(--panel); }
.wcard-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.wcard:hover .wcard-img > img { transform: scale(1.035); }
.wcard-go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font: 500 1.3rem/1 var(--body);
  opacity: 0;
  transform: translate(8px, -8px);
  transition: opacity 0.35s, transform 0.55s var(--ease-out);
}
.wcard:hover .wcard-go,
.wcard:focus-visible .wcard-go { opacity: 1; transform: none; }
.wcard-info { display: flex; justify-content: space-between; gap: 18px; padding-top: 16px; }
.wcard-client { font: 600 0.7rem/1.3 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.wcard-title { margin-top: 8px; font: 800 clamp(1.1rem, 1.4vw, 1.55rem)/1.1 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; transition: color 0.3s; }
.wcard:hover .wcard-title { color: var(--lime); }
.wcard-idx { padding-top: 2px; font: 600 0.8rem/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
/* pinned: vertical scroll drives the track sideways (1000px and wider) */
.hm-work.is-pinned .hm-work-pin {
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  padding: clamp(92px, 12vh, 124px) 0 clamp(20px, 3.6vh, 36px);
}
.hm-work.is-pinned .hm-work-track {
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
}
.hm-work.is-pinned .wcard { --h: max(260px, calc(100vh - 420px)); max-width: none; }
.hm-work.is-pinned .hm-work-end { flex: 0 0 var(--gutter); }

/* ---------- what we do ---------- */
.hm-services { position: relative; padding: clamp(96px, 15vh, 180px) 0; }
.hm-svc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.hm-svc-head .h-sec { margin-top: 14px; }
.hm-svc-lead { max-width: 34ch; }
.hm-svc-list { border-top: 1px solid var(--line); }
.hm-svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30ch) auto;
  grid-template-areas: "name desc arr";
  align-items: center;
  gap: 24px;
  padding: clamp(16px, 2.4vh, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.hm-svc-name {
  grid-area: name;
  display: block;
  font: 800 clamp(1.6rem, 3.4vw, 4rem)/1.04 var(--display);
  letter-spacing: -0.04em;
}
/* the whole row is the link; the name's overlay stretches across it */
.hm-svc-name::after { content: ''; position: absolute; inset: 0; z-index: 1; }
/* the span moves, not the link: a transform on the link would make it the
   overlay's containing block and shrink the click area to the words */
.hm-svc-name > span { display: inline-block; transition: transform 0.7s var(--ease-out), color 0.3s; }
.hm-svc-row:hover .hm-svc-name > span { transform: translateX(clamp(10px, 1.4vw, 26px)); }
.hm-svc-name:focus-visible > span { color: var(--lime); }
.hm-svc-desc { grid-area: desc; color: var(--muted); font: 500 0.88rem/1.45 var(--body); text-align: right; }
.hm-svc-desc a { position: relative; z-index: 2; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hm-svc-arr {
  grid-area: arr;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  font: 500 1.15rem/1 var(--body);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.hm-svc-row:hover .hm-svc-arr { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hm-svc-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(210px, 19vw, 300px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s;
  will-change: transform;
}
.hm-svc-float.on { opacity: 1; }
.hm-svc-float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) {
  .hm-svc-float { display: none; }
}

/* ---------- stats: the one lime band on the page ---------- */
.hm-stats { background: var(--lime); color: var(--ink); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-stat { padding: clamp(36px, 6.5vh, 70px) clamp(16px, 2.2vw, 32px); border-left: 1px solid rgba(11, 12, 11, 0.18); }
.hm-stat:first-child { padding-left: 0; border-left: 0; }
.hm-stat-n {
  display: block;
  font: 800 clamp(2.4rem, 4.6vw, 5.2rem)/0.9 var(--display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.hm-stat p { max-width: 26ch; margin-top: 14px; font: 500 0.9rem/1.45 var(--body); }

/* ---------- in their words ---------- */
.hm-voices { padding: clamp(96px, 15vh, 180px) 0; }
.hm-voices .h-sec { margin-top: 14px; }
.hm-voices-grid { display: grid; gap: clamp(30px, 6vw, 120px); margin-top: clamp(44px, 7vh, 86px); }
.hm-voices-grid.is-tabbed { grid-template-columns: minmax(230px, 0.75fr) 2fr; }
.hm-voices-side { min-width: 0; }
.hm-voices-side[hidden] { display: none; }
.hm-voices-tabs { border-top: 1px solid var(--line); }
.hm-voices-tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font: 600 0.98rem/1.3 var(--body);
  color: var(--muted);
  transition: color 0.3s;
}
.hm-voices-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--line);
  transition: background-color 0.3s;
}
.hm-voices-tab[aria-selected="true"] { color: var(--text); }
.hm-voices-tab[aria-selected="true"]::before { background: var(--lime); }
.hm-voices-tab .bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(0);
}
.hm-voices-hold {
  margin-top: 18px;
  font: 600 0.8rem/1 var(--body);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hm-voices-hold:hover { color: var(--text); }
.hm-quotes { display: grid; gap: clamp(40px, 6vh, 64px); }
.hm-voices-grid.is-tabbed .hm-quotes { gap: 0; align-content: start; min-height: 340px; }
.hm-quote { margin: 0; }
.hm-quote[hidden] { display: none; }
.hm-quote blockquote { font: 700 clamp(1.6rem, 3.1vw, 3rem)/1.16 var(--display); letter-spacing: -0.03em; }
.hm-quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.hm-quote figcaption b { color: var(--text); font-weight: 600; }

/* ---------- call to action ---------- */
.hm-cta { padding: clamp(100px, 16vh, 190px) 0 clamp(70px, 11vh, 130px); }
.hm-cta .h-sec { margin-top: 14px; }
.hm-cta-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: clamp(30px, 6vw, 110px);
  margin-top: clamp(28px, 4vh, 44px);
}
.hm-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hm-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font: 500 0.92rem/1.4 var(--body);
  font-style: normal;
  color: var(--muted);
}
.hm-contact-where { grid-column: 1 / -1; }
@media (max-width: 560px) { .hm-contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- brand sting: full screen on pure black, the video's own ground ---------- */
.hm-sting {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.hm-sting-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
  transform-origin: 50% 42%;
}
/* bottom-right, clear of the WhatsApp button */
.hm-sting-ui {
  position: absolute;
  right: max(var(--gutter), 90px);
  bottom: clamp(18px, 3.4vh, 32px);
  z-index: 3;
  display: flex;
  gap: 8px;
}
html:not(.js-on) .hm-sting-ui { display: none; }
.hm-sting-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(243, 243, 243, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: 600 0.78rem/1 var(--body);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hm-sting-btn:hover { border-color: var(--text); }
/* tall screens get a widescreen band rather than a full-height stage */
@media (max-aspect-ratio: 4/3) {
  .hm-sting { height: auto; min-height: 0; padding: clamp(40px, 8vh, 64px) 0 clamp(20px, 4vh, 32px); }
  .hm-sting-vid { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .hm-sting-ui { position: static; justify-content: center; padding: 14px var(--gutter) 4px; }
}

/* ---------- smaller screens ---------- */
/* the line moves under the name before the name runs out of room, so every
   service name keeps one line on a laptop */
@media (max-width: 1280px) {
  .hm-svc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name arr" "desc desc"; row-gap: 8px; }
  .hm-svc-desc { text-align: left; }
}
@media (max-width: 960px) {
  .hm-facts { grid-template-columns: 1fr 1fr; }
  .hm-voices-grid.is-tabbed { grid-template-columns: minmax(0, 1fr); }
  .hm-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hm-logos-head,
  .hm-manifesto-top,
  .hm-svc-head,
  .hm-work-head { flex-direction: column; align-items: flex-start; }
  .hm-work-side { align-items: flex-start; }
  .logo-slide { width: 132px; height: 64px; }
  .hm-fact { padding: 20px 16px 20px 0; }
  .hm-vf-layer { flex: 0 0 calc(50% - 8px); }
  .hm-vf-layer.is-wide { flex-basis: 100%; }
  .hm-formats.is-live .hm-vf-hud { grid-template-columns: auto 1fr; }
  .hm-formats.is-live .hm-vf-hud > .hm-vf-credit { display: none; }
  .wcard { --h: 52vh; }
  .hm-stats-grid { grid-template-columns: 1fr 1fr; }
  .hm-stat,
  .hm-stat:first-child { padding: 24px 12px 24px 0; border-left: 0; border-top: 1px solid rgba(11, 12, 11, 0.18); }
  .hm-stat-n { font-size: 2.05rem; }
  .hm-voices-tabs { display: flex; overflow-x: auto; border-top: 0; }
  .hm-voices-tab { flex: 0 0 auto; width: auto; padding-right: 18px; border-bottom: 0; }
}

/* ---------- preloader ---------- */
/* Only ever painted when the page can run it: JavaScript on and no reason to
   skip (see the inline script in the head). The failsafe hides it after six
   seconds whatever happens, so a script that dies cannot leave the page
   covered. */
.hm-pre { display: none; }
html.js-on:not(.no-intro) .hm-pre {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  animation: hm-pre-failsafe 0s linear 6s forwards;
}
@keyframes hm-pre-failsafe { to { visibility: hidden; } }
.hm-pre-mark {
  display: flex;
  align-items: baseline;
  font: 800 clamp(4.4rem, 17vw, 16rem)/0.8 var(--display);
  letter-spacing: -0.035em;
  color: var(--text);
  transform-origin: 50% 50%;
}
.hm-pre-word { display: flex; overflow: hidden; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.hm-pre-word span { display: block; }
.hm-pre-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(22px, 5vh, 46px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  font: 600 0.68rem/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hm-pre-bar { position: relative; flex: 1; height: 1px; overflow: hidden; background: var(--line); }
.hm-pre-bar i { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* A quote coming up in the rotation eases in. Display toggles restart the
   animation, so no script is involved. */
.hm-voices-grid.is-tabbed .hm-quote:not([hidden]) blockquote { animation: hm-quote-in 0.9s var(--ease-out) both; }
.hm-voices-grid.is-tabbed .hm-quote:not([hidden]) figcaption { animation: hm-quote-in 0.8s var(--ease-out) 0.15s both; }
@keyframes hm-quote-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .hm-voices-grid.is-tabbed .hm-quote blockquote,
  .hm-voices-grid.is-tabbed .hm-quote figcaption { animation: none; }
}
