﻿/* Editorial overview; theme fonts, colors and animation hooks stay inherited. */
#about.overview-section {
  --overview-rule: #d2dfe5;
  padding: 80px 0 0;
  overflow: hidden;
  scroll-margin-top: 112px;
}

/* Heading block on top, the two stories below it. */
#about .overview-introduction > .tv-choose-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 72px;
  padding-bottom: 64px;
}

/* Title on the left, project identity lined up with the second story column. */
#about .overview-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 64px;
  min-width: 0;
}

#about .overview-heading .title-wrap,
#about .overview-heading .sec-title,
#about .overview-builder-heading .title-wrap,
#about .overview-builder-heading .sec-title {
  margin-bottom: 0;
}

/* Break after "That" comes from the markup; no width cap so line two stays whole. */
#about .overview-heading .title-wrap {
  min-width: 0;
}

#about .overview-heading .sec-title {
  max-width: none;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
}

/* Keep words intact when the existing heading animation splits characters. */
#about .overview-word {
  display: inline-block;
  white-space: nowrap;
}

#about .overview-label {
  margin: 0 0 12px;
  color: var(--theme-color);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#about .overview-identity {
  justify-self: center;
  margin-top: 0;
  padding-left: 20px;
  border-left: 1px solid var(--theme-color);
  max-width: 30em;
}

#about .overview-identity p {
  margin: 0;
}

#about .overview-identity .overview-residences {
  color: var(--title-color);
  font-family: var(--title-font);
  max-width: 28ch;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 4px;
}

#about .overview-identity .overview-byline {
  margin-top: 8px;
}

/* Retain the original animated project mark. */
#about .overview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--title-color);
}

#about .overview-brand img {
  width: 160px;
  height: auto;
}

#about .overview-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  min-width: 0;
  padding-top: 40px;
  border-top: 1px solid var(--overview-rule);
}

#about .overview-story h3 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.3;
  text-wrap: balance;
}

#about .overview-story > p:last-child {
  margin-bottom: 0;
  text-align: left;
}

#about .overview-story {
  max-width: 65ch;
}

/* CMS editors can append an empty paragraph after the two stories. */
#about .overview-copy > p:has(> br:only-child) {
  display: none;
}

#about .overview-builder {
  position: relative;
  padding: 56px 0 64px;
  isolation: isolate;
}

/* Keep the existing full-width white credentials background without a shadow. */
#about .overview-builder::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  background: var(--white-color);
  z-index: -1;
}

#about .overview-builder-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 32px;
}

#about .overview-builder-heading .sec-title {
  font-size: 32px;
  line-height: 1.25;
}

#about .overview-builder-heading > p {
  max-width: 65ch;
  margin-bottom: 0;
}

#about .overview-statistics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--overview-rule);
  border-bottom: 1px solid var(--overview-rule);
}

#about .overview-statistics .feature-item {
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px;
  border-left: 1px solid var(--overview-rule);
}

#about .overview-statistics .feature-item:first-child {
  border-left: 0;
  padding-left: 0;
}

#about .overview-statistics .feature-item p {
  max-width: none;
  margin-bottom: 0;
}

/* Leave a clear rail for the existing fixed Request a Call tab. */
@media (max-width: 1399px) {
  #about > .container {
    padding-right: 56px;
  }

  #about .overview-builder-heading {
    gap: 40px;
  }
}

/* Small laptops */
@media (max-width: 1199px) {
  #about .overview-introduction > .tv-choose-left {
    gap: 56px;
  }

  #about .overview-heading,
  #about .overview-copy {
    gap: 48px;
  }

  #about .overview-copy {
    padding-top: 36px;
  }
}

/* Tablets landscape */
@media (max-width: 1024px) {
  #about.overview-section {
    padding-top: 56px;
  }

  #about .overview-introduction > .tv-choose-left {
    gap: 48px;
    padding-bottom: 48px;
  }

  #about .overview-heading,
  #about .overview-copy {
    gap: 40px;
  }

  #about .overview-copy {
    padding-top: 32px;
  }

  #about .overview-builder {
    padding: 48px 0;
  }

  #about .overview-builder-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #about .overview-statistics .feature-item {
    padding: 24px 16px;
  }
}

/* Tablets portrait: stories stack, identity stays beside the title */
@media (max-width: 991px) {
  #about .overview-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
  }

  #about .overview-identity {
    padding-left: 16px;
  }

  #about .overview-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #about .overview-story + .overview-story {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--overview-rule);
  }
}

/* Phones */
@media (max-width: 767px) {
  #about > .container {
    padding-left: 20px;
  }

  #about.overview-section {
    padding-top: var(--section-space-mobile);
  }

  #about .overview-introduction > .tv-choose-left {
    gap: 32px;
    padding-bottom: 40px;
  }

  #about .overview-heading .sec-title {
    max-width: none;
    font-size: 28px;
    line-height: 1.25;
  }

  #about .overview-heading {
    display: block;
  }

  #about .overview-identity {
    margin-top: 24px;
    padding-left: 12px;
  }

  #about .overview-identity .overview-residences {
    font-size: 18px;
  }

  #about .overview-copy {
    padding-top: 28px;
  }

  #about .overview-story {
    max-width: none;
  }

  #about .overview-story h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  #about .overview-story + .overview-story {
    margin-top: 24px;
    padding-top: 24px;
  }

  #about .overview-builder {
    padding: 40px 0;
  }

  #about .overview-builder-heading .sec-title {
    font-size: 26px;
  }

  #about .overview-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about .overview-statistics .feature-item {
    padding: 24px 12px;
  }

  #about .overview-statistics .feature-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  #about .overview-statistics .feature-item:nth-child(even) {
    padding-right: 0;
  }

  #about .overview-statistics .feature-item:nth-child(n + 3) {
    border-top: 1px solid var(--overview-rule);
  }
}

/* Small phones */
@media (max-width: 575px) {
  #about > .container {
    padding-left: 16px;
  }

  #about .overview-introduction > .tv-choose-left {
    gap: 28px;
    padding-bottom: 32px;
  }

  #about .overview-heading .sec-title {
    font-size: 26px;
  }

  #about .overview-identity {
    margin-top: 20px;
  }

  #about .overview-identity .overview-residences {
    font-size: 16px;
  }

  #about .overview-copy {
    padding-top: 24px;
  }

  #about .overview-story h3 {
    font-size: 20px;
  }

  #about .overview-builder-heading .sec-title {
    font-size: 24px;
  }

  #about .overview-statistics .feature-item {
    padding: 20px 10px;
  }
}

/* Very narrow phones */
@media (max-width: 374px) {
  #about .overview-heading .sec-title {
    font-size: 24px;
  }

  #about .overview-statistics {
    grid-template-columns: minmax(0, 1fr);
  }

  #about .overview-statistics .feature-item,
  #about .overview-statistics .feature-item:nth-child(even) {
    border-left: 0;
    padding: 20px 0;
  }

  #about .overview-statistics .feature-item + .feature-item {
    border-top: 1px solid var(--overview-rule);
  }
}
