/* About page. Its own layout: a wall of real work, a statement that fills in, a switch, and the neighbours. */

.ab { overflow-x: clip; }

/* ---------- 1. Hero: copy on the left, a moving wall of client sites on the right ---------- */

.ab-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; min-height: min(100vh, 980px); overflow: hidden; background: #fff; }
.ab-hero-copy { position: relative; z-index: 2; padding: calc(80px + 3rem) clamp(1.5rem, 4vw, 4rem) 4rem var(--hx-side); }
.ab-place { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: clamp(1.25rem, 2.2vw, 1.9rem); font-size: 1rem; font-weight: 500; color: var(--hx-mute); font-variant-numeric: tabular-nums; }
.ab-hero .hx-h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.042em; text-align: left; color: var(--hx-text); }
.ab-sub { max-width: 31rem; margin-top: clamp(1.25rem, 2.2vw, 1.9rem); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--hx-mute); }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.1rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.ab-rating { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: clamp(2.25rem, 4.4vw, 3.75rem); color: var(--hx-text); }
.ab-rating .hx-g { width: 22px; height: 22px; }
.ab-rating strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.ab-rating .hx-stars { margin: 0; font-size: 1.05rem; letter-spacing: 0.1em; }
.ab-rating small { font-size: 0.9375rem; color: var(--hx-mute); }
.ab-rating:hover small { color: var(--hx-text); }

/* the lines under the headline arrive one after another */
.hx-js .ab-hero [data-hx-in] { animation: ab-in 0.9s var(--hx-ease) 0.45s both; }
.hx-js .ab-hero .ab-sub { animation-delay: 0.55s; }
.hx-js .ab-hero .ab-actions { animation-delay: 0.65s; }
.hx-js .ab-hero .ab-rating { animation-delay: 0.75s; }
.hx-js .ab-wall { animation: ab-fade 1.4s ease 0.2s both; }
@keyframes ab-in { to { opacity: 1; transform: none; } }
@keyframes ab-fade { from { opacity: 0; } }

/* The wall: three columns of real sites, drifting in opposite directions, leaning a little. */
.ab-wall { position: absolute; inset: 0 0 0 48%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.ab-wall-tilt { position: absolute; top: -14%; left: 6%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 1.4vw, 1.4rem); width: 112%; transform: rotate(-7deg); transform-origin: 50% 50vh; }
.ab-col { overflow: visible; }
.ab-col-run { display: grid; gap: clamp(0.9rem, 1.4vw, 1.4rem); animation: ab-up 92s linear infinite; will-change: transform; }
.ab-col-2 .ab-col-run { animation-name: ab-down; animation-duration: 108s; }
.ab-col-3 .ab-col-run { animation-duration: 124s; }
.ab-tile { display: block; aspect-ratio: 16 / 11.5; overflow: hidden; border-radius: clamp(10px, 1vw, 16px); background: var(--hx-tint); box-shadow: 0 0 0 1px rgba(12, 20, 36, 0.08), 0 30px 50px -30px rgba(12, 20, 36, 0.45); }
.ab-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* each list is printed four times, so even halfway through its loop a column covers the whole wall;
   moving by half its height (plus half a gap) loops without a seam */
@keyframes ab-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - clamp(0.45rem, 0.7vw, 0.7rem))); } }
@keyframes ab-down { from { transform: translateY(calc(-50% - clamp(0.45rem, 0.7vw, 0.7rem))); } to { transform: translateY(0); } }

/* ---------- 2. Five promises: a quiet list, one line in focus at a time ---------- */

.ab-five { padding: var(--hx-pad) 0; background: #fff; }
.ab-five-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 2rem clamp(2.5rem, 7vw, 7rem); }
.ab-five-side { position: sticky; top: 140px; }
.ab-five .hx-h2 { max-width: 9ch; }
.ab-five-list { margin: 0; padding: 0; list-style: none; }
.ab-five-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 1.8vw, 1.6rem); padding: clamp(1.75rem, 3.2vw, 2.75rem) 0; border-top: 1px solid var(--hx-line); }
.ab-five-list li:first-child { padding-top: 0.4rem; border-top: 0; }
.ab-five-list h3 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.038em; color: var(--hx-text); }
.ab-five-list p { max-width: 30rem; margin-top: 0.75rem; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--hx-mute); }
.ab-five-tick { display: grid; place-items: center; width: clamp(2rem, 2.6vw, 2.5rem); height: clamp(2rem, 2.6vw, 2.5rem); margin-top: 0.05rem; border-radius: 50%; background: var(--hx-blue); color: #fff; }
.ab-five-tick svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
/* with the script running: lines wait faded, come forward at the middle of the screen, and stay ticked once passed */
.ab-five-list.is-live li > div { opacity: 0.22; transition: opacity 0.5s; }
.ab-five-list.is-live .ab-five-tick { background: var(--hx-tint); color: var(--hx-blue); transition: background 0.5s, color 0.5s, transform 0.6s var(--hx-ease); transform: scale(0.82); }
.ab-five-list.is-live .ab-five-tick svg { stroke-dashoffset: 24; transition: stroke-dashoffset 0.6s var(--hx-ease) 0.1s; }
.ab-five-list.is-live li.is-done > div { opacity: 0.5; }
.ab-five-list.is-live li.is-now > div { opacity: 1; }
.ab-five-list.is-live li.is-done .ab-five-tick, .ab-five-list.is-live li.is-now .ab-five-tick { background: var(--hx-blue); color: #fff; transform: none; }
.ab-five-list.is-live li.is-done .ab-five-tick svg, .ab-five-list.is-live li.is-now .ab-five-tick svg { stroke-dashoffset: 0; }

/* ---------- 4. Home, and the businesses we work with ---------- */

.ab-home { padding: var(--hx-pad) 0; background: #fff; }
.ab-home-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: end; gap: 2rem clamp(2rem, 6vw, 6rem); }
.ab-home .hx-h2 { max-width: 12ch; }
.ab-home .hx-lead { margin: 0; }
.ab-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.2vw, 1.1rem); margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; list-style: none; }
.ab-logos li { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 1.1rem; padding: clamp(1.75rem, 3vw, 2.75rem) 1.25rem clamp(1.1rem, 1.8vw, 1.5rem); border-radius: clamp(16px, 1.6vw, 22px); background: var(--c, #fff); box-shadow: inset 0 0 0 1px rgba(12, 20, 36, 0.08); transition: transform 0.6s var(--hx-ease), box-shadow 0.6s; }
.ab-logos li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(12, 20, 36, 0.08), 0 30px 50px -34px rgba(12, 20, 36, 0.5); }
.ab-logos img { align-self: center; width: auto; max-width: min(80%, 220px); height: clamp(64px, 7.4vw, 104px); object-fit: contain; }
.ab-logos span { font-size: 0.9375rem; text-align: center; color: var(--hx-mute); }
.ab-logos li.is-dark span { color: rgba(255, 255, 255, 0.7); }
.ab-logos li:not(.is-dark) span { color: rgba(40, 20, 28, 0.72); }
.ab-home-more { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- Phones ---------- */

@media (max-width: 860px) {
  .ab-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ab-hero-copy { padding: calc(80px + 2.25rem) var(--hx-gutter) 0; }
  .ab-hero .hx-h1 { font-size: clamp(2.3rem, 10.6vw, 3.2rem); }
  .ab-sub { font-size: 1.0625rem; }
  .ab-actions .hx-btn { flex: 1 1 auto; justify-content: space-between; }
  .ab-rating { margin-top: 1.75rem; }
  .ab-wall { position: relative; inset: auto; height: 62vh; min-height: 400px; margin-top: 2rem; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .ab-wall-tilt { left: -14%; width: 128%; gap: 0.7rem; }
  .ab-col-run { gap: 0.7rem; animation-duration: 68s; }
  .ab-col-2 .ab-col-run { animation-duration: 80s; }
  .ab-col-3 .ab-col-run { animation-duration: 92s; }
  @keyframes ab-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 0.35rem)); } }
  @keyframes ab-down { from { transform: translateY(calc(-50% - 0.35rem)); } to { transform: translateY(0); } }


  .ab-five-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ab-five-side { position: static; }
  .ab-five .hx-h2 { max-width: none; font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .ab-five-list li { gap: 0.9rem; padding: 1.5rem 0; }
  .ab-five-list h3 { font-size: clamp(1.45rem, 6.6vw, 1.8rem); }
  .ab-five-tick { width: 1.9rem; height: 1.9rem; }

  .ab-home-head { grid-template-columns: minmax(0, 1fr); }
  .ab-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-logos img { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-col-run { animation: none; }
}
