/*-- -------------------------- -->
<---            About            -->
<--- -------------------------- -*/

/* Full-bleed image left / text panel right. Stacks image-on-top on
   mobile. */
@media only screen and (min-width: 0rem) {
  #about {
    width: 100%;
    border-top: 1px solid #291409;
  }
  #about .cs-container {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #about .cs-image-group {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: visible;
    position: relative;
  }
  #about .cs-image-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    border-radius: 0;
    box-shadow: none;
  }
  #about .cs-content {
    width: 100%;
    background-color: #fff;
    padding: 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: visible;
  }
  #about .cs-content img.cs-about-dragonfly {
    width: clamp(1.75rem, 5vw, 2.5rem);
    height: auto;
    max-width: none;
    object-fit: contain;
    border-radius: 0;
    position: absolute;
    right: 0.5rem;
    top: 1.5rem;
    transform: rotate(-8deg);
    z-index: 5;
    pointer-events: none;
    box-shadow: none;
  }
  #about .cs-content img.cs-about-dragonfly-2 {
    left: 0.5rem;
    right: auto;
    top: 32%;
    bottom: auto;
    transform: rotate(8deg) scaleX(-1);
  }
  #about .cs-content img.cs-about-dragonfly-3 {
    left: auto;
    right: 1.5rem;
    top: 58%;
    bottom: auto;
    transform: rotate(14deg);
  }
  #about .cs-content img.cs-about-dragonfly-4 {
    left: 0.75rem;
    right: auto;
    top: auto;
    bottom: 2rem;
    transform: rotate(-4deg) scaleX(-1);
  }
  #about .cs-title {
    font-family: var(--headingFont);
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2em;
    color: var(--navy);
    margin: 0 0 1.25rem;
  }
  /* Mobile shows a standalone heading above the photo; desktop shows
     the one nested in the text panel instead. Same text, only one
     visible (and in the accessibility tree) at a time. */
  #about .cs-title-mobile {
    padding: 2rem 1.5rem 0;
    margin: 0 0 1.5rem;
  }
  #about .cs-title-desktop {
    display: none;
  }
  #about .cs-text {
    font-family: var(--bodyFont);
    font-size: 1rem;
    line-height: 1.65em;
    color: var(--bodyTextColor);
    margin: 0;
  }
  #about .cs-awareness-heading {
    font-family: var(--headingFont);
    font-weight: 500;
    font-size: 1.375rem;
    line-height: 1.3em;
    color: var(--navy);
    margin: 0 0 0.75rem;
  }
  #about .cs-awareness-text {
    font-family: var(--bodyFont);
    font-size: 1rem;
    line-height: 1.65em;
    color: var(--bodyTextColor);
    margin: 0 0 1.5rem;
  }

  /* Accreditation bar: row of professional body logos, no card box.
     Different logo shapes (wide/square/wide) so object-fit:contain keeps
     each one's own aspect ratio instead of stretching. */
  #about .cs-card-group {
    width: 100%;
    margin: 1.75rem 0 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  #about .cs-item {
    list-style: none;
    padding: 0 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #about .cs-item:first-child {
    padding-left: 0;
  }
  #about .cs-item:not(:first-child) {
    border-left: 1px solid var(--secondaryLight);
  }
  #about .cs-item img {
    width: 100%;
    height: 2.25rem;
    max-width: none;
    object-fit: contain;
    display: block;
  }

  /* Accordion: native details/summary, no JS needed */
  #about .cs-accordion {
    width: 100%;
    margin: 0 0 2rem;
  }
  #about .cs-accordion-item {
    width: 100%;
    border-top: 1px solid var(--secondaryLight);
  }
  #about .cs-accordion-item:last-child {
    border-bottom: 1px solid var(--secondaryLight);
  }
  #about .cs-accordion-item summary {
    width: 100%;
    padding: 1.125rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--bodyFont);
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    position: relative;
  }
  #about .cs-accordion-item summary::-webkit-details-marker {
    display: none;
  }
  #about .cs-accordion-chevron {
    width: 1rem;
    height: 1rem;
    flex: none;
    margin-right: 1rem;
    color: var(--navy);
    transition: transform 0.3s;
  }
  #about .cs-accordion-item[open] .cs-accordion-chevron {
    transform: rotate(180deg);
  }
  #about .cs-accordion-body {
    padding: 0 0 1.25rem;
  }
  #about .cs-accordion-body p {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    line-height: 1.6em;
    color: var(--bodyTextColor);
    margin: 0;
  }
  #about .cs-accordion-body p + p {
    margin-top: 0.75rem;
  }
}

/* Mobile only - rounded headshot with the surrounding space filled to
   match the text panel below it, rather than full-bleed edge-to-edge. */
@media only screen and (max-width: 63.9375rem) {
  #about {
    background-color: #fff;
  }
  #about .cs-title-mobile {
    background-color: #fff;
    padding: 2rem 1.5rem 2rem;
    margin: 0;
    font-size: clamp(1.25rem, 6.5vw, 2rem);
    white-space: nowrap;
    text-align: center;
  }
  #about .cs-image-group {
    width: 60%;
    max-width: 15rem;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    background-color: #fff;
    padding: 0 0 0.75rem;
    box-sizing: border-box;
  }
  #about .cs-image-group img {
    border-radius: 50%;
  }
}

/* Desktop - 64rem: side-by-side row, text panel vertically centred */
@media only screen and (min-width: 64rem) {
  #about .cs-awareness-mobile {
    display: none;
  }
  #about .cs-container {
    flex-direction: row;
    align-items: stretch;
  }
  #about .cs-image-group {
    flex: 0 0 50%;
    aspect-ratio: auto;
  }
  #about .cs-content {
    flex: 0 0 50%;
    justify-content: center;
    padding: 3rem clamp(3rem, 6vw, 6rem);
  }
  #about .cs-title {
    font-size: 2.5rem;
  }
  #about .cs-title-mobile {
    display: none;
  }
  #about .cs-title-desktop {
    display: block;
  }
}
