@import url("./landing.css");

.about-page {
  background: var(--bg-light);
}
.about-hero {
  min-height: 650px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: visible;
}
.about-hero > img,
.about-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about-hero > img {
  object-fit: cover;
  object-position: center 42%;
}
.about-hero-overlay {
  background:
    linear-gradient(to bottom, transparent 84%, #063743 100%),
    linear-gradient(90deg, #011f2ce8 5%, #011f2c9c 48%, #011f2c2e 100%);
}
.about-hero-content {
  position: relative;
  z-index: 1;
  padding: 160px 0 100px;
}
.about-hero h1 {
  max-width: 820px;
  font-size: var(--font-size-hero-title);
  line-height: 1.02;
}
.about-hero .lead {
  max-width: 660px;
  margin: 26px 0 0;
  font-size: var(--font-size-hero-lead);
  color: #e5f6f3;
}
.about-intro {
  padding: 155px 0 110px;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about-intro h2,
.about-history h2,
.about-values h2,
.about-invite h2 {
  font-size: var(--font-size-section-title);
  line-height: 1.12;
}
.about-intro-copy p {
  font-size: var(--font-size-body);
  line-height: 1.68;
  color: var(--text-dark-muted);
}
.about-intro-copy p:first-child {
  color: var(--text-dark);
  font-weight: 600;
}
.about-history {
  padding: 150px 0 115px;
}
.about-history-heading {
  max-width: 740px;
  margin-bottom: 45px;
}
.about-history-heading p:not(.eyebrow) {
  font-size: var(--font-size-body);
}
.about-history-grid {
  display: grid;
  gap: 24px;
}
.about-history-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 16px 40px #011f2c12;
}
.about-history-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 34px;
}
.about-history-content strong {
  display: block;
  color: var(--accent-deep);
  font-size: 1rem;
  margin-bottom: 6px;
}
.about-history-content h3 {
  font-size: var(--font-size-feature-title);
  line-height: 1.2;
  margin-bottom: 12px;
}
.about-history-content p {
  color: var(--text-dark-muted);
  font-size: var(--font-size-body);
}
.about-history-content a {
  color: #007d76;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about-history-collage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 300px;
  padding: 8px;
}
.about-history-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.about-history-collage img:first-child {
  grid-row: 1 / 3;
}
.about-history-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
}
.about-history-card:nth-child(even) .about-history-content {
  grid-column: 2;
  grid-row: 1;
}
.about-history-card:nth-child(even) .about-history-collage {
  grid-column: 1;
  grid-row: 1;
}
.about-values {
  padding: 150px 0 125px;
}
.about-values .section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}
.about-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.about-value {
  padding: 38px;
  border: 1px solid #ffffff36;
  border-radius: 14px;
  background: #ffffff0b;
}
.about-value .number {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.about-value h3 {
  margin: 18px 0 12px;
  font-size: var(--font-size-feature-title);
}
.about-value p {
  margin: 0;
  color: #d4e8e8;
  font-size: var(--font-size-body);
  line-height: 1.65;
}
.about-invite {
  padding: 150px 0 110px;
  text-align: center;
}
.about-invite .section-inner {
  max-width: 800px;
}
.about-invite p:not(.eyebrow) {
  font-size: var(--font-size-section-lead);
  color: var(--text-dark-muted);
  margin-bottom: 30px;
}
.about-invite-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.about-invite .button-secondary {
  color: var(--text-dark);
}

/* Each section carries its own background into the next one. */
.about-page .about-wave {
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 126' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 45C160 18 265 92 418 66C570 40 670 14 820 55C980 96 1120 42 1280 62C1350 71 1392 60 1440 45V0H0Z'/%3E%3C/svg%3E");
  --wave-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 126' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath opacity='.52' stroke='%2342c8b8' stroke-width='1.8' d='M-30 39C130 4 276 105 438 60S688 20 848 69S1138 25 1302 61S1415 72 1470 42'/%3E%3Cpath opacity='.38' stroke='%232e9e95' stroke-width='1.4' d='M-30 67C139 102 257 16 442 52S728 103 910 49S1180 22 1470 82'/%3E%3Cpath opacity='.28' stroke='%2358cfc6' stroke-width='1.2' d='M-30 99C144 49 287 115 455 82S745 21 916 91S1217 102 1470 57'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
}

.about-page .about-wave:nth-of-type(even) {
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 126' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 69C130 30 265 54 405 79C555 105 651 15 810 42C965 69 1075 100 1230 55C1310 32 1390 47 1440 73V0H0Z'/%3E%3C/svg%3E");
}

.about-page .about-wave::before,
.about-page .about-wave::after {
  content: "";
  position: absolute;
  /* Never squeezed: 1440px design width, centred and clipped when narrower. */
  left: min(0px, calc(50% - 720px));
  width: max(100%, 1440px);
  height: 126px;
  pointer-events: none;
}

.about-page .about-wave::after {
  z-index: 2;
  bottom: -125px;
  background: var(--wave-surface);
  -webkit-mask: var(--wave-mask) bottom / 100% 100% no-repeat;
  mask: var(--wave-mask) bottom / 100% 100% no-repeat;
}

.about-page .about-wave::before {
  z-index: 3;
  bottom: -76px;
  background: var(--wave-lines) center / 100% 100% no-repeat;
}

.about-page .about-wave:nth-of-type(even)::before {
  transform: scaleX(-1);
}

.about-page .about-wave > .section-inner {
  position: relative;
  z-index: 4;
}

.about-page .about-hero {
  --wave-surface: #063743;
  z-index: 5;
}

.about-page .about-intro {
  --wave-surface: #edf8f6;
  background: var(--wave-surface);
  z-index: 4;
}

.about-page .about-history {
  --wave-surface: var(--bg-light);
  background: var(--wave-surface);
  z-index: 3;
}

.about-page .about-values {
  --wave-surface: #063743;
  background: var(--wave-surface);
  z-index: 2;
}

.about-page .about-invite {
  --wave-surface: #eaf7f4;
  background: var(--wave-surface);
  z-index: 1;
}

.about-page .site-footer {
  padding-top: 130px !important;
}

.about-page .site-footer::before {
  display: none;
}

.about-page .site-header {
  z-index: 20;
}
.about-page .mobile-menu {
  z-index: 21;
}

@media (max-width: 800px) {
  .about-intro-grid,
  .about-value-grid {
    grid-template-columns: 1fr;
  }
  .about-history-card,
  .about-history-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .about-history-card .about-history-content,
  .about-history-card:nth-child(even) .about-history-content {
    grid-column: 1;
    grid-row: 1;
  }
  .about-history-card .about-history-collage,
  .about-history-card:nth-child(even) .about-history-collage {
    grid-column: 1;
    grid-row: 2;
  }
}
@media (max-width: 600px) {
  .about-hero {
    min-height: 610px;
  }
  .about-hero-content {
    padding: 160px 0 90px;
  }
  .about-intro,
  .about-history,
  .about-values,
  .about-invite {
    padding: 105px 0 75px;
  }
  .about-history-content {
    padding: 28px;
  }
  .about-history-collage {
    height: 240px;
  }
  .about-value {
    padding: 28px;
  }
}

/* Animated section-join lines on the inner pages (see hero-wave-motion.js). */
body {
  overflow-x: clip;
}

.page-wave-lines {
  position: absolute;
  left: min(0px, calc(50% - 720px));
  width: max(100%, 1440px);
  height: 126px;
  overflow: visible;
  pointer-events: none;
  opacity: var(--wave-gate, 0);
}


.about-page .about-wave.wave-lines-motion::before {
  visibility: hidden;
}

.about-page .about-wave > .page-wave-lines {
  z-index: 3;
  bottom: -76px;
}

.about-page .about-wave:nth-of-type(even) > .page-wave-lines {
  transform: scaleX(-1);
}
