/*-- -------------------------- -->
<---       Mission / Story      -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #mission {
    padding: var(--sectionPadding);
    overflow: hidden;
    background-color: var(--white);
  }
  #mission .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  #mission .cs-image-group {
    width: 100%;
    max-width: 33rem;
    margin-inline: auto;
    position: relative;
  }
  #mission .cs-picture {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
  }
  #mission .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #mission .cs-picture-large {
    width: 100%;
    aspect-ratio: 1/1;
  }
  #mission .cs-picture-small {
    width: 55%;
    max-width: 16rem;
    aspect-ratio: 7/8;
    position: absolute;
    bottom: -1.5rem;
    right: -1rem;
    border: 5px solid var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }
  #mission .cs-badge {
    width: 5.5rem;
    height: 5.5rem;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    position: absolute;
    top: -1rem;
    right: -0.5rem;
    box-shadow: 0 4px 20px rgba(74, 103, 65, 0.4);
  }
  #mission .cs-badge-label {
    font-family: var(--bodyFont);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.3;
  }
  #mission .cs-badge-label--accent {
    color: var(--accentLight);
  }
  #mission .cs-content {
    width: 100%;
    max-width: 33rem;
    margin-inline: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media only screen and (min-width: 64rem) {
  #mission .cs-container {
    flex-direction: row;
    align-items: center;
  }
  #mission .cs-image-group {
    width: 50%;
    max-width: 38rem;
    flex: none;
  }
  #mission .cs-content {
    width: 50%;
    max-width: none;
  }
  #mission .cs-picture-large {
    aspect-ratio: auto;
    height: 34rem;
  }
}

/*-- -------------------------- -->
<---          Values            -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #values {
    padding: var(--sectionPadding);
    background-color: var(--cream);
    position: relative;
  }
  #values:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231c1a17' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
  }
  #values .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  #values .cs-content {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #values .cs-values-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #values .cs-value-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition:
      transform 0.3s,
      box-shadow 0.3s;
  }
  #values .cs-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }
  #values .cs-value-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #fff;
    flex-shrink: 0;
  }
  #values .cs-value-icon svg {
    width: 1.375rem;
    height: 1.375rem;
  }
  #values .cs-value-title {
    font-family: var(--headerFont);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--headerColor);
    margin: 0 0 0.75rem 0;
  }
  #values .cs-value-text {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--bodyTextColor);
    margin: 0;
  }
}
@media only screen and (min-width: 48rem) {
  #values .cs-values-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---            Team            -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #team {
    padding: var(--sectionPadding);
    background-color: var(--white);
  }
  #team .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
  }
  #team .cs-content {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #team .cs-team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  #team .cs-team-card {
    display: flex;
    flex-direction: column;
  }
  #team .cs-team-picture {
    width: 100%;
    aspect-ratio: 1/1;
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
  }
  #team .cs-team-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s;
  }
  #team .cs-team-card:hover .cs-team-picture img {
    transform: scale(1.04);
  }
  #team .cs-team-info {
    padding: 0 0.25rem;
  }
  #team .cs-team-name {
    font-family: var(--headerFont);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--headerColor);
    margin: 0 0 0.25rem 0;
  }
  #team .cs-team-role {
    font-family: var(--bodyFont);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
  }
  #team .cs-team-bio {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--bodyTextColor);
    margin: 0;
  }
}
@media only screen and (min-width: 36rem) {
  #team .cs-team-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 64rem) {
  #team .cs-team-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---      Parallax Divider      -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #parallax-cta {
    padding: clamp(7.5rem, 15vw, 12.5rem) 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  #parallax-cta:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 26, 23, 0.75);
    z-index: -1;
  }
  #parallax-cta:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("../assets/images/parallax-warm.jpg") center/cover no-repeat;
    background-attachment: fixed;
  }
  #parallax-cta .cs-container {
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #parallax-cta .cs-topper {
    color: var(--accent);
  }
  #parallax-cta .cs-title {
    font-family: var(--headerFont);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
  }
  #parallax-cta .cs-button-solid {
    font-family: var(--bodyFont);
    font-size: 1rem;
    font-weight: 700;
    line-height: 3.25rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 2.5rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s;
  }
  #parallax-cta .cs-button-solid:before {
    content: "";
    width: 0%;
    height: 100%;
    background: var(--secondary);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #parallax-cta .cs-button-solid:hover:before {
    width: 100%;
  }
}
@supports not (background-attachment: fixed) {
  #parallax-cta:after {
    background-attachment: scroll;
  }
}

/*-- -------------------------- -->
<---    Timeline / Milestones   -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #timeline {
    padding: var(--sectionPadding);
    background-color: var(--cream);
  }
  #timeline .cs-container {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
  }
  #timeline .cs-content {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #timeline .cs-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }
  /* vertical connector line */
  #timeline .cs-timeline:before {
    content: "";
    width: 2px;
    background: var(--creamDark);
    position: absolute;
    top: 0.5rem;
    bottom: 0;
    left: calc(5rem + 1.25rem + 0.625rem); /* year col + column-gap + half-dot */
  }
  #timeline .cs-timeline-item {
    display: grid;
    grid-template-columns: 5rem 1.25rem 1fr;
    column-gap: 1.25rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
  }
  #timeline .cs-timeline-item:last-child {
    padding-bottom: 0;
  }
  #timeline .cs-timeline-year {
    font-family: var(--headerFont);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--primary);
    text-align: right;
    padding-top: 0.125rem;
    grid-column: 1;
  }
  #timeline .cs-timeline-dot {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--primary);
    margin-top: 0.2rem;
    grid-column: 2;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  #timeline .cs-timeline-body {
    grid-column: 3;
  }
  #timeline .cs-timeline-title {
    font-family: var(--headerFont);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--headerColor);
    margin: 0 0 0.5rem 0;
  }
  #timeline .cs-timeline-text {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--bodyTextColor);
    margin: 0;
  }
}
