/* ------------------------------------------------------------------ *
 * The company page. Loads after page.css, which supplies the hero,
 * section heads, tiles, steps and closing CTA it shares with the
 * service pages. Only what is unique to this page lives here.
 * ------------------------------------------------------------------ */

/* ---------------------------------------------------------------- */
/* Story: heading on the left, the narrative beside it               */
/* ---------------------------------------------------------------- */
.ab-split{
  display: grid;
  /* Fixed heading column so the prose keeps a readable measure rather than
     collapsing to six words a line. */
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: 66rem;
  margin: 0 auto;
}
.ab-split .svc-h2{ text-align: left; }
.ab-prose p{
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(var(--ink-soft), .7);
  text-wrap: pretty;
}
.ab-prose p:last-child{ margin-bottom: 0; }
.ab-prose strong{ font-weight: 600; color: rgb(var(--ink)); }

/* ---------------------------------------------------------------- */
/* The two agencies underneath Atlas                                 */
/* ---------------------------------------------------------------- */
.ab-houses{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--s-6);
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ab-house{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid rgba(var(--primary), .2);
  border-radius: 20px;
  background-image: var(--card-grad);
  box-shadow:
    inset 0 1px 0 rgba(var(--hi), .07),
    0 24px 56px -34px rgba(0, 0, 0, .95);
  transition: transform .35s var(--ease-spring), border-color .25s ease;
}
.ab-house:hover{ transform: translateY(-4px); border-color: rgba(var(--primary), .4); }
.ab-house-where{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--primary), .92);
}
.ab-house-where .ic{ width: .875rem; height: .875rem; }
.ab-house h3{
  margin: 0;
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: rgb(var(--ink));
}
.ab-house p{
  margin: 0;
  font-size: .9375rem;
  line-height: 1.75;
  color: rgba(var(--ink-soft), .64);
}
.ab-house-link{
  margin-top: auto;
  padding-top: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  font-size: .9375rem;
  font-weight: 600;
  color: rgb(var(--ink));
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--primary), .45);
  transition: border-color .2s ease, color .2s ease;
}
.ab-house-link:hover{ border-color: rgba(var(--primary), .95); color: rgb(var(--primary)); }
.ab-house-link:focus-visible{ outline: 2px solid rgba(var(--primary), .9); outline-offset: 4px; border-radius: 3px; }

/* ---------------------------------------------------------------- */
/* People: portrait beside the bio, not underneath a scrim           */
/* ---------------------------------------------------------------- */
.ab-people{ display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 60rem; margin: 0 auto; padding: 0; list-style: none; }
.ab-person{
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.ab-portrait{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(var(--primary), .22);
  border-radius: 18px;
  background-color: rgb(var(--surface));
  box-shadow: 0 26px 60px -36px rgba(0, 0, 0, .95);
}
.ab-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Brian's shot is already black and white; this brings Madi's to match. */
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}
.ab-portrait .pos-brian{ object-position: center 38%; }
.ab-portrait .pos-madi{ object-position: center center; }
/* Madi's card crop is mirror-extended at the bottom to reach 4:5, which is
   invisible under the home page's scrim but soft out here. A light fade into
   the card hides it and reads as a treatment on both portraits. */
.ab-portrait::before{
  content: '';
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background-image: linear-gradient(to top, rgba(3, 7, 18, .92) 0%, rgba(3, 7, 18, .5) 42%, transparent 100%);
  pointer-events: none;
}

/* Same colour pass the home page uses, so the two sets of photos match. */
.ab-portrait::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(175deg, rgb(var(--primary)) 0%, rgb(var(--secondary)) 100%);
  mix-blend-mode: color;
  opacity: .3;
  pointer-events: none;
}
.ab-role{
  margin: 0 0 var(--s-2);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(var(--primary), .92);
}
.ab-name{
  margin: 0 0 var(--s-4);
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: rgb(var(--ink));
}
.ab-person-bio p{
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(var(--ink-soft), .68);
}
.ab-does{
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .5rem 1.5rem;
}
.ab-does li{
  position: relative;
  padding-left: 1.5rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(var(--ink-soft), .66);
}
.ab-does li::before{
  content: '';
  position: absolute;
  top: .55em;
  left: 0;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background-image: linear-gradient(140deg, rgb(var(--primary)), rgb(var(--secondary)));
}

/* ---------------------------------------------------------------- */
/* Numbers lifted from the two agency sites                          */
/* ---------------------------------------------------------------- */
.ab-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--s-6);
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.ab-stat dt{
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgb(var(--ink));
}
.ab-stat dd{
  margin: var(--s-3) 0 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(var(--ink-soft), .6);
}

@media (max-width: 760px){
  .ab-split{ grid-template-columns: 1fr; }
  .ab-person{ grid-template-columns: 1fr; }
  .ab-portrait{ max-width: 15rem; }
}

@media (prefers-reduced-motion: reduce){
  .ab-house{ transition: none; }
}
