/* About Us — Paper "Cubbi Website — About Us" (2SX-0 / 4VD-0). */

.about-hero {
  background: var(--surface);
  padding: 1.5rem 0 2rem;
}
.about-hero .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.about-hero h1 {
  color: var(--green-700);
  margin-bottom: 1.25rem;
}
.about-hero p {
  max-width: 52rem;
  color: var(--green-700);
}
.about-hero-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.page-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

/* Timeline: alternating cream/white bands, giant year numerals, icon tiles. */
.era {
  padding: 4.5rem 0;
}
.era-cream {
  background: var(--cream-100);
}
.era .container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: center;
}
.era-flip .container {
  grid-template-columns: 1fr 380px;
}
.era-flip .era-tile {
  order: 2;
}
.era-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.era-tile-green { background: var(--green-100); }
.era-tile-lilac { background: var(--lilac-500); }
.era-tile-mid   { background: var(--green-100); }
.era-tile-icon {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
}
.era-year {
  font-size: clamp(4.5rem, 10vw, 8.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--green-700);
  margin: 0;
}
.era-heading {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.65;
  color: var(--green-700);
  margin: 0.35rem 0 0.85rem;
}
.era-copy p {
  color: var(--ink-muted);
  max-width: 51rem;
}

/* Founders */
.founders {
  background: var(--lilac-500);
  padding: 4.5rem 0 3.5rem;
}
.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}
.founder + .founder {
  margin-top: 3rem;
}
.founder-photo {
  display: block;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--cream-100);
  overflow: hidden;
}
.founder-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* CUB-253: keep faces centred in the square crops (Tanyka's tile is a re-cropped asset). */
.era-tile-photo img[src*="early-days"] {
  object-position: 50% 20%;
}
.era-tile-photo img[src*="first-baby"] {
  object-position: 50% 58%; /* Olivia asked for the image shifted up in the tile */
}
.era-tile-photo img[src*="dragons-den"] {
  object-position: 67% 50%;
}
.founder-photo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo-tile img {
  width: 96px;
  height: 96px;
  opacity: 0.85;
}
.founder-name {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--green-700);
  margin-bottom: 0.25rem;
}
.founder .founder-role {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.9rem;
}
.founder p:last-child {
  color: var(--green-900);
  margin-bottom: 0;
}

/* Download strip */
.download-strip {
  background: var(--lilac-100);
  padding: 1.1rem 0;
}
.download-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.download-strip p {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-900);
}
.download-strip .store-badges {
  display: flex;
  gap: 0.65rem;
}
.download-strip .store-badges img {
  height: 41px;
  width: auto;
}

@media (max-width: 63.9rem) {
  .about-hero .container,
  .era .container,
  .era-flip .container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  /* Design's mobile order: heading, image, then intro copy. */
  .about-hero .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .about-hero-copy {
    display: contents;
  }
  .about-hero-copy h1 { order: 0; margin-bottom: 0; }
  .about-hero-photo { order: 1; }
  .about-hero-copy p { order: 2; margin-bottom: 0; }
  .era-flip .era-tile {
    order: 0;
  }
  .era-tile {
    max-width: 24rem;
  }
  .founder {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* CUB-230: timeline tiles carry real photos from the founders' shoot. */
.era-tile-photo {
  overflow: hidden;
  padding: 0;
}
.era-tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
