/* ==========================================================================
   ABOUT PAGE
   A short ocean-photo band at the top with the tagline, then the light
   service-page style (service-light.css) for everything below.
   The page's <body> has:  class="theme-light has-dark-hero"

   Contents
     (the header-over-photo rules live in service-light.css: .has-dark-hero)
     2. Photo band (hero)
     3. Founder (Michael Scavo)
     4. Small layout variations of the service-page parts
     5. Responsive
   ========================================================================== */


/* ---------- 2. Photo band (hero) ---------- */

.ab-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 30svh;
  padding: calc(var(--header-h) + clamp(12px, 1.6vw, 24px)) 0 clamp(28px, 3vw, 44px);
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.ab-hero__media {
  position: absolute;
  inset: 0;
}

.ab-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

/* even tint so the white text reads (no fade to black) */
.ab-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 22, 30, .62) 0%, rgba(6, 22, 30, .3) 60%, rgba(6, 22, 30, .2) 100%);
}

.ab-hero__content {
  position: relative;
}

.ab-hero__content > * {
  animation: fade-up .9s var(--ease) backwards;
}

.ab-hero__content > :nth-child(2) { animation-delay: .1s; }

.ab-hero .eyebrow {
  color: #8fd6f5;
}

/* "Peace of mind / is just an inspection away." in the home page's style */
.ab-title {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

.ab-title span {
  display: block;
  width: max-content;
  max-width: 100%;
}

.ab-title__big {
  font: 800 1em / 1.02 var(--font-display);
  letter-spacing: -.01em;
}

.ab-title__small {
  margin-top: .2em;
  font: 600 .535em / 1.2 var(--font-body);
  color: rgba(255, 255, 255, .96);
}


/* ---------- 3. Founder ---------- */

.ab-founder {
  padding-top: clamp(64px, 8vw, 120px);
  overflow-x: clip;          /* floating pieces never cause sideways scrolling */
}

.ab-founder .sl-hero__grid {
  align-items: start;
}

.ab-role {
  margin-top: 18px;
  font: 400 .82rem / 1.4 var(--font-nav);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sl-soft);
}

.ab-bio {
  display: grid;
  gap: 14px;
  max-width: 54ch;
  margin-top: clamp(24px, 3vw, 36px);
  color: #3d4d56;
}

.ab-bio p:first-child {
  font: 300 clamp(1.12rem, 1.4vw, 1.32rem) / 1.5 var(--font-display);
  color: var(--sl-ink);
}

/* Photo on the right, with the floating accent squares and icons */
.ab-photo {
  position: relative;
  max-width: 470px;
  margin: 0 0 0 auto;
  padding: 6% 6% 6% 0;
}

.ab-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 28px;
  box-shadow: 0 40px 60px -34px rgba(15, 26, 32, .55);
}

.ab-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: calc(6% + 18px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--white);
  background: rgba(10, 18, 22, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ab-photo .sl-square--a { right: 0; top: 0; width: 16%; }
.ab-photo .sl-square--b { left: -8%; top: 38%; bottom: auto; width: 11%; }
.ab-photo .sl-chip--a  { left: -10%; top: 12%; }
.ab-photo .sl-chip--b  { right: -2%; bottom: 22%; }


/* ---------- 4. Small layout variations ---------- */

/* Map beside the areas list */
.ab-area .sl-visual--map {
  aspect-ratio: auto;
}


/* ---------- 5. Responsive ---------- */

@media (max-width: 1000px) {
  .ab-photo {
    margin: 0 auto;
  }


}

@media (max-width: 600px) {

  .ab-hero {
    min-height: 0;
  }

  /* keep the floating pieces inside the screen */
  .ab-photo {
    padding: 6% 4%;
  }

  .ab-photo .sl-chip--a  { left: 0; }
  .ab-photo .sl-chip--b  { right: 0; }
  .ab-photo .sl-square--b { left: 0; }
  .ab-photo figcaption   { left: calc(4% + 14px); }
}
