/* =========================================================
   Jory&Co — About page
   Builds on main.css (tokens, buttons, ticker-box, marquee, footer, nav)
   Figma: Design AW (Updated) › About_A (7183:11170)
   ========================================================= */

.page-about .main { background: var(--black); }

/* ---------- shared bits (same as the Impact / Work pages) ---------- */
.btn-pill--sm { display: inline-flex; min-height: 0; height: 36px; padding: 0 18px; border-radius: 36px; width: auto; }
[data-lines] .line { display: block; overflow: hidden; padding: .16em .08em .26em; margin: -.16em -.08em -.26em; }
[data-lines] .line + .line { margin-top: -.42em; } /* adjoining line margins collapse (-.26 vs -.16): restore the full overlap so a multi-line heading keeps its height */
[data-lines] { display: flow-root; }
[data-lines] .line__inner { display: block; will-change: transform, opacity; }
html.js [data-fade] { opacity: 0; }
.nav-link.is-current .nav-link__dot { background: var(--new-green); }

/* little blurred caption chip on photos (Figma: Image credit / time tag) */
.ab-cap {
  position: absolute; z-index: 2;
  padding: 5px; line-height: 1.2;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  color: var(--white); white-space: nowrap;
}

/* centred 70px section title */
.ab-h2 {
  margin: 0; text-align: center;
  font-weight: 600; font-size: clamp(40px, 4.86vw, 70px); line-height: 1; letter-spacing: -0.03em;
}
.ab-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ab-head__text { max-width: 690px; margin: 50px 0 0; font-size: 17px; line-height: 1.4; }
.ab-head .ab-join { margin-top: 30px; }

/* ---------- Page header ---------- */
.ph { position: relative; padding: 257px 20px 0; }
.ph .hero__bar { position: absolute; }
.ph__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.ph__title {
  margin: 0; width: 100%;
  font-weight: 600; font-size: clamp(40px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em;
}
.ph__jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.ph__jump .icon-down { width: 8px; height: 8px; opacity: .5; color: var(--white); transition: color .3s, opacity .3s; }
.ph__jump .mono { transition: color .3s, opacity .3s; }
.ph__jump a:hover .mono, .ph__jump a:hover .icon-down { color: var(--new-green); opacity: 1; }
.ph__media {
  margin: 200px 0 0; position: relative;
  aspect-ratio: 1400 / 785; border-radius: var(--radius); overflow: hidden;
  background: #0a6fc2;
}
.ab-media__video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }

/* Rolling headline: "Design that changes behaviour" ⇄ "for brands that change the world" */
.ab-roll { height: 1.26em; overflow: hidden; position: relative; }
.ab-roll__track { display: block; will-change: transform; }
.ab-roll__line { display: block; height: 1.26em; line-height: 1.26; white-space: nowrap; will-change: transform, opacity, filter; }
html.js .ab-roll__track { opacity: 0; }

/* ---------- Intro ---------- */
.ab-intro { margin-top: 200px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.ab-intro__text { max-width: 1008px; margin: 0; text-align: center; font-weight: 600; font-size: clamp(20px, 1.74vw, 25px); line-height: 1.4; }
.ab-intro__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ab-intro__links .mono { transition: color .3s; }
.ab-intro__links a:hover .mono { color: var(--new-green); }

/* ---------- What we stand for ---------- */
.ab-stand { margin-top: 200px; }
.ab-stand__grid {
  list-style: none; margin: 100px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.ab-tile {
  position: relative; isolation: isolate;
  height: 217px; border-radius: var(--radius);
  background: var(--white-10);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; outline: none; cursor: default;
}
/* hover: a solid green fill behind black type */
.ab-tile__glow {
  position: absolute; inset: 0; z-index: -1; border-radius: var(--radius);
  background: var(--new-green);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.ab-tile__title {
  font-weight: 600; font-size: clamp(22px, 2.08vw, 30px); line-height: 1.2;
  transform: translateY(14px);
  transition: color .4s ease, transform .6s var(--ease-out);
}
.ab-tile__not {
  margin-top: 20px; color: var(--black);
  opacity: 0; transform: translateY(10px); filter: blur(6px);
  transition: opacity .45s ease, transform .6s var(--ease-out), filter .6s var(--ease-out);
}
.ab-tile:hover .ab-tile__glow, .ab-tile:focus-visible .ab-tile__glow { opacity: 1; }
.ab-tile:hover .ab-tile__title, .ab-tile:focus-visible .ab-tile__title { color: var(--black); transform: translateY(0); }
.ab-tile:hover .ab-tile__not, .ab-tile:focus-visible .ab-tile__not { opacity: 1; transform: none; filter: blur(0); transition-delay: .06s; }

/* ---------- Studio carousel ---------- */
.ab-car { margin: 200px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow: hidden; }
.ab-car__stage {
  position: relative; outline: none;
  /* centre slide is 790×445 of 1400 */
  height: calc((100vw - 2 * var(--gutter)) * 0.5643 * 445 / 790);
  max-height: 445px; touch-action: pan-y; cursor: grab;
}
.ab-car__stage.is-drag { cursor: grabbing; }
.ab-car__slide {
  position: absolute; top: 0; left: 50%; margin: 0;
  width: min(56.43%, 790px); aspect-ratio: 790 / 445;
  border-radius: var(--radius); overflow: hidden;
  transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden;
  user-select: none; -webkit-user-drag: none;
}
.ab-car__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* pre-blurred copy: its opacity (not an animated filter) gives the neighbour blur */
.ab-car__slide .ab-car__blur {
  position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
  filter: blur(10px); opacity: var(--near, 0); z-index: 2; will-change: opacity;
}
.ab-car__slide .ab-cap { z-index: 3; }
.ab-car__slide .ab-cap { left: 10px; bottom: 10px; transition: opacity .4s ease; }
.ab-car__slide:not(.is-active) .ab-cap { opacity: 0; }
.ab-car__slide:not(.is-active) { cursor: pointer; }
.ab-car .quotes__arrows { margin-top: 20px; }

/* ---------- Our values ---------- */
.ab-values .section__head, .ab-awards .section__head { margin-bottom: 20px; }
.ab-values__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.ab-value {
  position: relative; isolation: isolate; overflow: hidden;
  height: 170px; padding: 0 55px; border-radius: var(--radius);
  background: var(--white-10);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  outline: none;
}
.ab-value__glow {
  position: absolute; inset: 0; z-index: -1; border-radius: var(--radius);
  background: var(--new-green);
  opacity: 0; transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.ab-value__title {
  margin: 0; font-weight: 600; font-size: clamp(36px, 4.86vw, 70px); line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap; transition: transform .7s var(--ease-out), color .4s ease;
}
.ab-value__text {
  margin: 0; max-width: 400px; font-size: 17px; line-height: 1.4; text-align: right;
  opacity: 0; transform: translateX(16px); filter: blur(8px);
  transition: opacity .5s ease, transform .7s var(--ease-out), filter .7s var(--ease-out), color .4s ease;
}
.ab-value:hover .ab-value__glow, .ab-value:focus-visible .ab-value__glow { opacity: 1; }
.ab-value:hover .ab-value__title, .ab-value:focus-visible .ab-value__title { transform: translateX(10px); color: var(--black); }
.ab-value:hover .ab-value__text, .ab-value:focus-visible .ab-value__text { opacity: 1; transform: none; filter: blur(0); color: var(--black); }

/* ---------- Awards ---------- */
.ab-awards__grid { list-style: none; margin: 0; padding: 100px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.ab-award {
  height: 316px; padding: 30px 14px 0; border-radius: var(--radius);
  background: var(--white-10);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: background-color .4s ease;
}
.ab-award__badge {
  width: 100px; height: 100px; flex: none; border-radius: 50%; overflow: hidden; margin-bottom: 30px;
  transition: transform .8s var(--ease-out);
}
.ab-award__badge--ring { border: 1px solid var(--white); }
.ab-award__badge img { width: 100%; height: 100%; display: block; }
.ab-award__name { margin: 0 0 15px; max-width: 100%; font-weight: 600; font-size: 20px; line-height: 1.2; }
.ab-award .mono { margin: 0 0 15px; }
.ab-award__text { margin: 0; max-width: 100%; font-size: 14px; line-height: 1.4; opacity: .5; }
.ab-award:hover { background: rgba(255,255,255,.14); }
.ab-award:hover .ab-award__badge { transform: rotate(-12deg) scale(1.06); }

/* ---------- Team ---------- */
.ab-team { margin-top: 200px; }
.ab-team__grid {
  list-style: none; margin: 100px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 50px 20px; align-items: start;
}
.ab-person__btn {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
.ab-person__btn--static { cursor: default; }
.ab-person__photo { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.ab-person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s ease; }
.ab-person__time { right: 10px; bottom: 10px; font-variant-numeric: tabular-nums; }
.ab-person__time .colon { animation: ab-blink 2s steps(1) infinite; }
@keyframes ab-blink { 50% { opacity: .25; } }
.ab-person__name { margin-top: 20px; font-weight: 600; font-size: 18px; line-height: 1.4; }
.ab-person__role { margin-top: 10px; opacity: .5; line-height: 1.4; }
.ab-person__btn:not(.ab-person__btn--static):hover .ab-person__photo img,
.ab-person.is-open .ab-person__photo img { transform: scale(1.05); }
.ab-person__btn:focus-visible { outline: 1px solid var(--new-green); outline-offset: 6px; border-radius: var(--radius); }
.ab-person__bio { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.ab-person__bioin { min-height: 0; overflow: hidden; }
.ab-person__bio p { margin: 20px 0 0; font-size: 14px; line-height: 1.4; opacity: 0; filter: blur(6px); transition: opacity .4s ease, filter .6s var(--ease-out); }
.ab-person__close { margin-top: 20px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; opacity: 0; transition: opacity .4s ease; }
.ab-person__close .mono { transition: color .3s, opacity .3s; }
.ab-person__close:hover .mono { color: var(--new-green); opacity: 1; }
.ab-person.is-open .ab-person__bio { grid-template-rows: 1fr; }
.ab-person.is-open .ab-person__bio p { opacity: 1; filter: blur(0); transition-delay: .12s; }
.ab-person.is-open .ab-person__close { opacity: 1; transition-delay: .2s; }

/* ---------- Clients ---------- */
.ab-clients { margin-top: 200px; }
.ab-clients__grid { list-style: none; margin: 100px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.ab-client {
  aspect-ratio: 183 / 182; border-radius: var(--radius);
  background: var(--white-10);
  display: grid; place-items: center; padding: 20px; text-align: center;
  transition: background-color .4s ease;
}
.ab-client img { max-width: 100%; height: auto; opacity: .85; transition: opacity .4s ease, transform .7s var(--ease-out); }
.ab-client--name span { font-weight: 600; font-size: 17px; line-height: 1.2; opacity: .85; transition: opacity .4s ease; }
.ab-client:hover { background: rgba(255,255,255,.14); }
.ab-client:hover img, .ab-client:hover span { opacity: 1; }
.ab-client:hover img { transform: scale(1.04); }

/* CTA keeps the homepage spacing */
.page-about .ticker-box--cta { margin-top: 200px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ab-awards__grid { grid-template-columns: repeat(3, 1fr); }
  .ab-team__grid { grid-template-columns: repeat(4, 1fr); }
  .ab-clients__grid { grid-template-columns: repeat(5, 1fr); }
  .ab-value { padding: 0 36px; }
}
@media (max-width: 760px) {
  .ph { padding-top: 140px; }
  .ph__media { margin-top: 100px; }
  .ab-roll { height: auto; }
  .ab-roll__line { height: auto; line-height: 1.05; white-space: normal; }
  .ab-roll__line + .ab-roll__line { margin-top: .1em; }
  .ab-roll__line:nth-child(3) { display: none; }
  .ab-intro, .ab-stand, .ab-car, .ab-team, .ab-clients, .page-about .ticker-box--cta { margin-top: 120px; }
  .ab-stand__grid { grid-template-columns: 1fr; margin-top: 50px; }
  .ab-tile { height: 160px; }
  .ab-tile__title { transform: none; }
  .ab-tile__not { opacity: .5; color: var(--white); transform: none; filter: none; margin-top: 14px; }
  .ab-car__stage { height: calc((100vw - 2 * var(--gutter)) * 0.8 * 445 / 790); }
  .ab-car__slide { width: 80%; }
  .ab-value { height: auto; padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .ab-value__title { white-space: normal; }
  .ab-value__text { text-align: left; opacity: .6; transform: none; filter: none; font-size: 15px; }
  .ab-awards__grid { grid-template-columns: repeat(2, 1fr); padding-top: 50px; }
  .ab-award { height: auto; padding-bottom: 30px; }
  .ab-team__grid { grid-template-columns: repeat(2, 1fr); margin-top: 60px; gap: 36px 14px; }
  .ab-clients__grid { grid-template-columns: repeat(3, 1fr); margin-top: 60px; gap: 10px; }
  .ab-client--name span { font-size: 13px; }
}
@media (hover: none) {
  .ab-value__text { opacity: .6; transform: none; filter: none; }
}

/* images sit above their blur-up preview */
.ab-person__photo img, .ab-car__slide img { position: relative; z-index: 1; }
.ab-team__grid > li, .ab-awards__grid > li, .ab-clients__grid > li { min-width: 0; }
.ab-person__role { white-space: normal; }

/* team card hover: name + role turn green */
.ab-person__name, .ab-person__role { transition: color .3s ease, opacity .3s ease; }
.ab-person__btn:not(.ab-person__btn--static):hover .ab-person__name,
.ab-person__btn:not(.ab-person__btn--static):hover .ab-person__role,
.ab-person__btn:focus-visible .ab-person__name,
.ab-person__btn:focus-visible .ab-person__role,
.ab-person.is-open .ab-person__name,
.ab-person.is-open .ab-person__role { color: var(--new-green); opacity: 1; }

/* ---------- Awards: endless looping carousel ---------- */
.ab-awards__viewport { margin-top: 100px; overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
.ab-awards__viewport .ab-awards__grid {
  --award-w: max(200px, calc((100vw - 2 * var(--gutter) - 5 * 20px) / 6));
  display: flex; gap: 20px; padding: 0; width: max-content; will-change: transform; cursor: grab;
}
.ab-awards__viewport .ab-award { flex: none; width: var(--award-w); }
.ab-awards__viewport.is-drag .ab-awards__grid { cursor: grabbing; }
@media (max-width: 1180px) { .ab-awards__viewport .ab-awards__grid { --award-w: 240px; } }
@media (max-width: 760px) { .ab-awards__viewport { margin-top: 50px; } .ab-awards__viewport .ab-awards__grid { --award-w: 220px; } }

/* client logos pulled from their sites, knocked out to white to sit with the rest */
.ab-client--logo img { width: calc(var(--w) * var(--logo-s, 1)); height: auto; max-width: 86%; }
.ab-client--logo img[src*="/clients/"] { filter: brightness(0) invert(1); }
@media (max-width: 1180px) { .ab-clients__grid { --logo-s: .9; } }
@media (max-width: 760px) { .ab-clients__grid { --logo-s: .72; } }
