/* about page styles for the Adam and Eve Property Care build (Willow Bend design system). Loaded after style.css.
   All measurements taken from the reference at 1440x900. */

/* header: opaque white on this page (hero section below is white) */
.site-header { background: var(--paper); }
.site-header .brand-lockup { color: var(--ink); }
.site-header .header-cta { color: var(--ink); }
.site-header .header-cta .arrow-link { color: var(--ink); }
.site-header .header-cta .rule { background: #a0a1a5; opacity: 1; }

/* on this page the header hairline runs the full content width (0 to the rail edge)
   and sits on the header's bottom edge, per the reference */
@media (min-width: 1101px) {
  .site-header .header-cta .rule {
    position: absolute;
    left: 0;
    right: var(--rail);
    bottom: 0;
    width: auto;
    margin-top: 0;
  }
}

/* hero intro: text column left, aerial photo full-bleed right -------------
   photo tops at 166 flush with the h1; frost column carries the milky tint */

.about-intro {
  background: var(--paper);
  display: grid;
  grid-template-columns: 403px 1fr;
  column-gap: 17px;
  padding: 166px 0 0 var(--gutter);
  align-items: start;
}

.about-intro .frost { background: rgba(255, 255, 255, 0.5); }

.about-intro .intro-copy h1 { margin-bottom: 64px; }

.about-intro .intro-copy p {
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 389px;
  color: var(--ink);
}

.about-intro .intro-copy p.lede {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 403px;
}

.about-photo { position: relative; }

.about-photo img {
  width: 100%;
  height: 946px;
  object-fit: cover;
}

.stat-lockup {
  position: absolute;
  left: 120px;
  bottom: 90px;
  color: var(--paper);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-display);
}

.stat-lockup .num {
  font-size: 120px;
  font-weight: 200;
  line-height: 0.85;
}

.stat-lockup .num sup {
  font-size: 54px;
  font-weight: 200;
  vertical-align: 58px;
  margin-left: 2px;
}

.stat-lockup .words {
  font-size: 38px;
  font-weight: 300;
  line-height: 1.15;
  text-transform: lowercase;
  padding-top: 8px;
}

/* mission + values: ink section, dim backdrop strip + portrait at right ----- */

.mission {
  position: relative;
  background: var(--ink);
  padding-top: 227px;
  padding-bottom: 282px;
  overflow: hidden;
}

.mission-inner { padding-left: var(--gutter); }

.mission .kicker {
  font-size: 24px;
  line-height: 1.1667;
  color: #a0a1a5;
  margin-bottom: 0;
}

.mission-heading {
  font-weight: 400;
  line-height: 1.40625;   /* 90/64, per the reference */
  color: #fff;
}

.mission-lede {
  margin-top: 21px;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  max-width: 780px;
}

.values-grid {
  display: grid;
  grid-template-columns: 384px 384px;
  column-gap: 23px;
  row-gap: 25px;
  margin-top: 121px;
}

.value {
  border-right: 1px solid #606065;
  border-bottom: 1px solid #606065;
  padding-bottom: 38px;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff;
}

.value p {
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  margin-top: 25px;
  max-width: 330px;
}

.mission-media { pointer-events: none; }

.mission-media .backdrop {
  position: absolute;
  right: 0;
  top: 222px;
  width: 24.5vw;
  height: 811px;
  object-fit: cover;
  filter: brightness(0.6);
}

.mission-media .portrait {
  position: absolute;
  right: 7%;
  top: 197px;
  width: clamp(340px, 33.3vw, 479px);
  height: 861px;
  object-fit: cover;
}

/* white gap strips between full-bleed blocks; each carries a short
   band-edge hairline segment at 80vw, per the reference ------------------- */

.gap-strip {
  height: 104px;
  background: var(--paper);
  position: relative;
}

.gap-strip::after,
.closing-strip::after {
  content: "";
  position: absolute;
  left: var(--content-stop);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #606065;
}

/* team grids: white, 5 columns, ink card borders --------------------------- */

.team {
  background: var(--paper);
  padding: 119px var(--gutter) 60px;
}

.team-office { border-top: 1px solid #a0a1a5; }

.team h2 { margin-bottom: 62px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

.person {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.person .photo {
  width: 100%;
  aspect-ratio: 247 / 320;
  height: auto;
  object-fit: cover;
}

.person .meta {
  position: relative;
  flex: 1;
  min-height: 155px;
  padding: 24px 8px 74px 0;
}

.person .meta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1667;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--ink);
}

.person .meta > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin-top: 0;
}

/* plus marker: grey when the card has no bio, ink when it opens one */
.person .plus,
.person .bio summary {
  position: absolute;
  right: 16px;
  bottom: 24px;
  width: 24px;
  height: 24px;
}

.person .plus::before,
.person .plus::after,
.person .bio summary::before,
.person .bio summary::after {
  content: "";
  position: absolute;
  background: #b5b5b5;
}

.person .plus::before,
.person .bio summary::before { left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; }
.person .plus::after,
.person .bio summary::after { top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; transition: transform 0.25s ease; }

/* bio accordion: the plus toggles a bio inside the card; the row grows */
.person .bio summary {
  cursor: pointer;
  list-style: none;
}

.person .bio summary::-webkit-details-marker { display: none; }

.person .bio summary::before,
.person .bio summary::after { background: var(--ink); }

.person .bio[open] summary::after { transform: scaleY(0); }

.person .bio .bio-copy { margin-top: 56px; }

.person .bio .bio-copy p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}

/* testimonial divider between the two team groups -------------------------- */

.divider-strip { background: var(--paper); }

.divider-strip .rule,
.closing-strip .rule { height: 1px; background: #a0a1a5; }

.strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 94px 310px 36px var(--gutter);
}

.testimonial { margin: 0; max-width: 518px; }

.testimonial .t-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--ink);
}

.testimonial .t-quote {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.testimonial .t-name {
  margin-top: 21px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1667;
  text-transform: lowercase;
  color: var(--ink);
}

.divider-strip .stars-lockup {
  position: static;
  margin-top: 65px;
  color: #606065;
  flex: none;
}

.divider-strip .stars-lockup .five { font-size: 112px; }
.divider-strip .stars-lockup .stack { font-size: 33px; line-height: 1.15; }
.divider-strip .stars-lockup .stack .stars { font-size: 19px; letter-spacing: 0.24em; }

.team-field { padding-top: 119px; padding-bottom: 59px; }

.closing-strip {
  background: var(--paper);
  position: relative;
  height: 92px;
}

/* join cta: full-bleed crew photo, headline anchored low ------------------- */

.join-cta {
  position: relative;
  height: 831px;
  overflow: hidden;
}

.join-cta .frost { background: rgba(255, 255, 255, 0.5); }

.join-cta .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left bottom;
}

.join-cta .inner {
  position: absolute;
  left: 68px;
  bottom: 126px;
  z-index: 5;
}

.join-cta .display-xl { color: #fff; }

.join-cta .arrow-link { margin-top: 50px; }

/* mobile -------------------------------------------------------------------- */

@media (max-width: 1100px) {

  /* reference drops the header CTA remnants (arrow + hairline) on mobile */
  .site-header .header-cta { display: none; }

  .about-intro {
    grid-template-columns: 1fr;
    padding: calc(var(--header-h) + 70px) 0 0;
  }

  .about-photo { order: 1; }

  .about-intro .intro-copy {
    order: 2;
    padding: 44px var(--gutter) 10px;
  }

  .about-intro .intro-copy h1 { margin-bottom: 30px; }

  .about-intro .intro-copy p.lede { font-size: 26px; margin-bottom: 20px; }

  .about-photo img { height: 132vw; }

  .stat-lockup { left: 24px; bottom: 24px; gap: 9px; }
  .stat-lockup .num { font-size: 64px; }
  .stat-lockup .num sup { font-size: 30px; vertical-align: 30px; }
  .stat-lockup .words { font-size: 22px; padding-top: 4px; }

  .mission {
    padding-top: 90px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
  }

  .mission-inner { order: 1; }
  .mission-media { order: 2; padding: 0 var(--gutter); }

  .mission-inner { padding-left: var(--gutter); padding-right: var(--gutter); }

  .mission .kicker { font-size: 18px; }

  .mission-lede { margin-top: 14px; }

  .values-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 64px;
  }

  .value h3 { font-size: 28px; }
  .value { padding-bottom: 34px; border-right: 0; }

  .mission-media .backdrop { display: none; }

  .mission-media .portrait {
    position: static;
    width: 100%;
    height: 110vw;
    display: block;
    margin-top: 56px;
  }

  /* reference hides both white gap strips below desktop */
  .gap-strip, .closing-strip { display: none; }

  .team { padding: 56px var(--gutter) 56px; }
  .team h2 { margin-bottom: 44px; }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 24px;
  }

  .person .meta { min-height: 116px; padding: 12px 8px 56px 0; }
  .person .meta h3 { font-size: 19px; }
  .person .meta > p { font-size: 13px; line-height: 1.5; margin-top: 3px; }

  .person .plus,
  .person .bio summary { width: 18px; height: 18px; right: 10px; bottom: 14px; }
  .person .plus::before,
  .person .bio summary::before { height: 2px; margin-top: -1px; }
  .person .plus::after,
  .person .bio summary::after { width: 2px; margin-left: -1px; }

  .person .bio .bio-copy { margin-top: 28px; }
  .person .bio .bio-copy p { font-size: 14px; line-height: 1.7; }

  .strip-inner {
    flex-direction: column;
    padding: 56px var(--gutter) 56px;
  }

  .testimonial .t-title { font-size: 26px; }
  .testimonial .t-quote { font-size: 16px; }
  .testimonial .t-name { font-size: 20px; }

  .divider-strip .stars-lockup { margin-top: 48px; }
  .divider-strip .stars-lockup .five { font-size: 72px; }
  .divider-strip .stars-lockup .stack { font-size: 22px; }
  .divider-strip .stars-lockup .stack .stars { font-size: 13px; letter-spacing: 0.2em; }

  .team-field { padding-top: 60px; padding-bottom: 56px; }

  .join-cta { height: 62vh; min-height: 480px; }

  .join-cta .inner { left: var(--gutter); right: var(--gutter); bottom: 56px; }

  .join-cta .arrow-link { margin-top: 32px; }
}
