/* About page. Scoped to .about-page. Uses site tokens. */

.about-page {
  --about-text: #f5f5f7;
  --about-muted: #c1c5ce;
  --about-body: #b4b7be;
  --about-dim: #969ba5;
  --about-line: #202126;
  --about-blue: #51b5dc;
  --about-label: #54b6df;
  --qabout-text: #f5f5f7;
  --qabout-muted: #c1c5ce;
  position: relative;
  z-index: 1;
  overflow-x: clip;
  color: var(--about-text);
}

.about-page .inner-page {
  padding-top: 0;
  padding-bottom: 0;
}

/* Match #main-nav .nav-inner: same max-width and inline padding. */
.about-wrap {
  width: 100%;
  max-width: var(--page-max-width, 1440px);
  margin-inline: auto;
  padding-inline: var(--page-gutter, var(--page-padding, 64px));
  padding-top: 0;
  padding-bottom: 0;
  min-width: 0;
}

body:has(.about-page) footer {
  margin-top: 0;
}

/* Opening: 100px below the shared header; 128px below the collage. */
.about-page .qabout {
  box-sizing: border-box;
  color: var(--qabout-text);
  padding: calc(var(--header-min-height, 88px) + 100px) 0 128px;
  font-family: inherit;
}

.about-page .qabout *,
.about-page .qabout *::before,
.about-page .qabout *::after {
  box-sizing: border-box;
}

.about-page .qabout-intro {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.about-page .qabout-eyebrow {
  margin: 0 0 40px;
  color: var(--qabout-muted);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.about-page .qabout h1 {
  margin: 0;
  font-size: clamp(34px, 3.35vw, 48px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--qabout-text);
  text-align: center;
  text-wrap: balance;
}

.about-page .qabout-description {
  max-width: 760px;
  margin: 44px auto 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--qabout-muted);
  text-align: center;
  text-wrap: pretty;
}

.about-page .qabout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.about-page .qabout-actions .qabout-button,
.about-page .qabout-actions .outline-button {
  margin-top: 0;
}

.about-page .qabout-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 27px;
  margin-top: 40px;
  border: 1px solid #449fc6;
  border-radius: 10px;
  background: linear-gradient(110deg, #10196f, #6ed9e2);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.about-page .qabout-button:hover {
  filter: brightness(1.12);
}

.about-page .qabout-button:focus-visible {
  outline: 3px solid #6ed9e2;
  outline-offset: 5px;
}

.about-page .qabout-collage {
  position: relative;
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 1191 / 527;
  margin: 144px auto 0;
}

.about-page .qabout-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.about-page .qabout-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

@media (min-width: 1600px) {
  .about-page .qabout-collage {
    margin-top: 160px;
  }
}

.about-page .about-story {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.about-page .story-row,
.about-page .hq-row {
  display: grid;
  grid-template-columns: 1fr 1.85fr;
  align-items: start;
  padding: 120px 0;
  border-top: 1px solid var(--about-line);
}

.about-page .story-row {
  gap: 64px;
}

.about-page .hq-row {
  gap: 48px;
}

.about-page .story-row h2,
.about-page .hq-row h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
  color: var(--about-text);
  text-align: left;
}

.about-page .story-row p,
.about-page .hq-row p {
  margin: 0 0 24px;
  color: var(--about-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
  text-align: left;
}

.about-page .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 15px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.about-page .hq-details a:focus-visible {
  outline: 2px solid #4a9eff;
  outline-offset: 3px;
}

.about-page .hq-row figure {
  margin: 0;
  min-width: 0;
}

.about-page .hq-row picture,
.about-page .hq-row img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.about-page .hq-row img {
  border-radius: 12px;
}

.about-page .hq-row figcaption {
  margin: 12px 0 0;
  color: var(--about-dim);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.about-page .hq-row .small-label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--about-label);
}

.about-page .hq-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 24px;
}

.about-page .hq-details address {
  margin: 0;
  font-style: normal;
}

.about-page .hq-details p:last-child {
  margin-bottom: 0;
}

.about-page .hq-details a {
  color: var(--about-blue);
  text-decoration: none;
}

.about-page .hq-details a:hover {
  color: #7eb8ff;
}

@media (max-width: 900px) {
  .about-page .qabout {
    padding: calc(var(--header-min-height, 88px) + 80px) 0 96px;
  }

  .about-page .qabout-collage {
    margin-top: 112px;
  }

  .about-page .qabout-photo {
    border-radius: 9px;
  }
}

@media (max-width: 700px) {
  .about-page .story-row,
  .about-page .hq-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 72px 0;
  }

  .about-page .hq-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .about-page .qabout {
    padding: calc(var(--header-min-height, 72px) + 64px) 0 80px;
  }

  .about-page .qabout-eyebrow {
    margin-bottom: 28px;
  }

  .about-page .qabout h1 {
    font-size: clamp(30px, 7.6vw, 38px);
  }

  .about-page .qabout-description {
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.75;
  }

  .about-page .qabout-actions {
    margin-top: 32px;
  }

  .about-page .qabout-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 88px;
    aspect-ratio: auto;
  }

  .about-page .qabout-photo {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
  }

  .about-page .qabout-photo--panel {
    grid-column: 1 / -1;
    aspect-ratio: 1635 / 962;
  }

  .about-page .qabout-photo--walk,
  .about-page .qabout-photo--whiteboard {
    aspect-ratio: 4 / 3;
  }

  .about-page .qabout-photo img {
    object-position: center;
  }

  .about-page .qabout-photo--dinner img {
    object-fit: contain;
  }

  .about-page .qabout-photo--gathering img {
    object-fit: contain;
  }

  .about-page .qabout-photo--networking img {
    object-fit: contain;
  }
}

/* Desktop collage sizing only. Photo coordinates, corners, and vertical
   margins stay as they are. Tablet/mobile rules above remain in effect. */
@media (min-width: 901px) {
  .about-page .qabout-collage {
    width: min(76vw, 1120px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1191 / 527;
    margin-inline: auto;
  }
}

/* Stage tile only: fill the tile with the taller source aspect ratio so
   the visible photo has the collage corner radius and no letterbox. */
.about-page .qabout-photo--panel {
  height: auto;
  aspect-ratio: 1635 / 962;
  background: transparent;
}

.about-page .qabout-photo--panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* Walk tile only: show the complete Singapore photograph. Letterbox is
   intentional so cover-cropping does not hide the walkers or skyline. */
.about-page .qabout-photo--walk {
  background: transparent;
}

.about-page .qabout-photo--walk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
