@import url("../../../style.css");

body.about-page {
   --about-nav-offset: 78px;
   --about-gutter: clamp(34px, 6vw, 108px);
   --about-feature-height: clamp(320px, 34vw, 480px);
   background:
      linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
      url("../../../assets/images/indoors.jpg") center top / cover no-repeat fixed;
   color: #151922;
   scroll-snap-type: none;
}

body.about-page section {
   min-height: auto;
}

.about-main {
   position: relative;
   z-index: 40;
   padding: 180px;
}

.about-main > section {
   position: relative;
   z-index: 1;
}

.about-hero,
.about-split,
.about-reviews,
.about-team {
   width: 100%;
   margin: 0;
   padding-left: var(--about-gutter);
   padding-right: var(--about-gutter);
}

.about-hero {
   min-height: calc(100svh - var(--about-nav-offset));
   padding-top: clamp(10px, 2vw, 20px);
   padding-bottom: clamp(10px, 2vw, 20px);
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.about-hero__kicker,
.section-kicker {
   font-size: 0.72rem;
   font-weight: 700;
   letter-spacing: 0.24em;
   text-transform: uppercase;
   color: rgba(50, 55, 251, 0.82);
}

.about-hero h1 {
   margin-top: 0;
   font-size: clamp(2.4rem, 8vw, 5.2rem);
   line-height: 0.9;
   letter-spacing: -0.03em;
   text-transform: uppercase;
   color: var(--blue-dark);
}

.about-hero p {
   margin-top: 16px;
   max-width: 72ch;
   color: rgba(21, 25, 34, 0.86);
   line-height: 1.74;
}

.about-cert-strip {
   margin-top: 24px;
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}

.about-cert-strip span {
   padding: 9px 12px;
   border: 1px solid rgba(50, 55, 251, 0.24);
   color: #1b2432;
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   background: rgba(255, 255, 255, 0.32);
}

.about-split {
   display: grid;
   grid-template-columns: 1fr;
   gap: clamp(18px, 2.2vw, 34px);
}

.about-card {
   padding: clamp(20px, 3vw, 38px) 0;
   background: transparent;
   border: 0;
   box-shadow: none;
}

.about-card + .about-card {
   padding-left: 0;
   border-left: 0;
}

.about-card--detail {
   display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
   gap: clamp(18px, 2.2vw, 34px);
   align-items: start;
   min-height: var(--about-feature-height);
}

.about-detail-title {
   align-self: start;
}

.about-detail-copy p:first-child {
   margin-top: 0;
}

.about-card--history {
   display: grid;
   grid-template-columns: minmax(0, 9fr) minmax(0, 9fr) minmax(0, 2fr);
   gap: clamp(38px, 4.6vw, 72px);
   align-items: start;
   min-height: var(--about-feature-height);
}

.about-detail-copy p,
.about-history-copy p {
   text-align: justify;
   text-justify: inter-word;
}

.about-history-copy p:first-child {
   margin-top: 0;
}

.about-history-copy p {
   text-align: justify;
   text-justify: inter-word;
}

.about-history-copy p + p {
   margin-top: 20px;
}

.about-history-title {
   margin: 0;
   align-self: end;
   justify-self: start;
   white-space: nowrap;
   transform: rotate(-90deg);
   transform-origin: left center;
}

.about-card h2,
.about-section-head h2 {
   margin-top: 0;
   font-size: clamp(1.8rem, 3.6vw, 3.2rem);
   line-height: 0.95;
   letter-spacing: -0.02em;
   text-transform: uppercase;
   color: #151922;
}

.about-card p {
   margin-top: 14px;
   color: rgba(21, 25, 34, 0.84);
   line-height: 1.72;
}

.about-card .about-detail-title h2,
.about-card .about-history-title {
   font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.about-history-media {
   margin-top: 0;
   aspect-ratio: 1 / 1;
   overflow: hidden;
   border: 1px solid rgba(16, 16, 16, 0.2);
   background: rgba(255, 255, 255, 0.44);
}

.about-history-media img {
   width: 100%;
   height: 100%;
   display: block;
   object-fit: cover;
   object-position: center;
   filter: grayscale(0.1) contrast(1.04);
   transform: scale(1.06);
}

.about-reviews,
.about-team {
   margin-top: 28px;
}

.about-section-head {
   margin-bottom: 14px;
}

.about-review-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: clamp(18px, 2.2vw, 34px);
}

.about-review-card {
   padding: 24px 0;
   background: transparent;
   border: 0;
   box-shadow: none;
}

.about-review-card + .about-review-card {
   padding-left: 0;
   border-left: 0;
}

.testimonials-stars {
   color: var(--blue-dark);
   letter-spacing: 0.1em;
}

.about-review-card blockquote {
   margin-top: 12px;
   font-size: 0.98rem;
   line-height: 1.75;
   color: rgba(21, 25, 34, 0.92);
}

.about-review-card p {
   margin-top: 14px;
   font-size: 0.8rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: rgba(21, 25, 34, 0.72);
}

.about-review-card p span {
   display: block;
   margin-top: 4px;
   font-size: 0.68rem;
   letter-spacing: 0.12em;
}

.about-team-grid {
   display: grid;
   grid-template-columns: repeat(6, minmax(0, 1fr));
   gap: 10px;
}

.about-team-grid .team-card {
   grid-column: span 2;
}

.about-team-grid .team-card:nth-child(1) {
   grid-column: 2 / span 2;
}

.about-team-grid .team-card:nth-child(2) {
   grid-column: 4 / span 2;
}

.about-team-grid .team-card:nth-child(3) {
   grid-column: 1 / span 2;
}

.about-team-grid .team-card:nth-child(4) {
   grid-column: 3 / span 2;
}

.about-team-grid .team-card:nth-child(5) {
   grid-column: 5 / span 2;
}

.team-card {
   padding: 0;
   background: rgba(255, 255, 255, 0.28);
   border: 0;
   box-shadow: none;
}

.team-card img {
   width: 50%;
   margin: 14px auto 0;
   aspect-ratio: 1 / 1;
   border-radius: 999px;
   object-fit: cover;
   display: block;
}

.team-card h3 {
   margin: 12px 12px 0;
   font-size: 0.86rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: #151922;
   text-align: center;
}

.team-card p {
   margin: 8px 12px 12px;
   color: rgba(21, 25, 34, 0.72);
   font-size: 0.7rem;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   text-align: center;
}

body.about-page .footer-shell {
   background: transparent;
}

@media (max-width: 1200px) {
   body.about-page {
      --about-gutter: clamp(24px, 4vw, 56px);
   }

   .about-team-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
   }

   .about-team-grid .team-card,
   .about-team-grid .team-card:nth-child(1),
   .about-team-grid .team-card:nth-child(2),
   .about-team-grid .team-card:nth-child(3),
   .about-team-grid .team-card:nth-child(4),
   .about-team-grid .team-card:nth-child(5) {
      grid-column: auto;
   }
}

@media (max-width: 920px) {
   body.about-page {
      --about-nav-offset: 72px;
      --about-gutter: 24px;
      background-attachment: scroll;
   }

   .about-main {
      padding-bottom: 24px;
   }

   .about-hero {
      min-height: calc(100svh - var(--about-nav-offset));
      padding-top: 10px;
      padding-bottom: 18px;
   }

   .about-hero h1 {
      font-size: clamp(2rem, 13vw, 3.4rem);
   }

   .about-split,
   .about-review-grid {
      grid-template-columns: 1fr;
   }

   .about-card--detail,
   .about-card--history {
      grid-template-columns: 1fr;
      gap: 14px;
   }

   .about-history-title {
      transform: none;
      justify-self: start;
      align-self: start;
      white-space: normal;
   }

   .about-card + .about-card,
   .about-review-card + .about-review-card {
      border-left: 0;
      padding-left: 0;
      border-top: 0;
      margin-top: 0;
      padding-top: 0;
   }

   .about-team-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
   }

   .team-card img {
      width: 56%;
   }
}

@media (max-width: 560px) {
   .about-team-grid {
      grid-template-columns: 1fr;
   }
}
