/* ---------- About: the founders. A gold portrait tile the founder breaks out of, beside a dawn panel. ---------- */
.pg #overview > .fc { order: 3; }

.fc {
  --r: clamp(20px, 2.4vw, 30px);
  --gold: #e3a35f;
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: clamp(64px, 8vw, 96px) 0 34px;
  container-type: inline-size;
}

.fc__stage {
  position: relative;
  display: grid;
  grid-template-columns: 32% 1fr;
  aspect-ratio: 2.5 / 1;
}

/* ---------- The dawn panel ---------- */
.fc__panel {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: hidden;
  border-radius: var(--r);
  background: #14213d;
  box-shadow: inset 0 0 0 1px rgba(244, 237, 224, 0.1), 0 30px 60px -28px rgba(20, 33, 61, 0.55);
}

/* The site's sunrise, soft and low */
.fc__panel::before {
  content: "";
  position: absolute;
  inset: 30% -10% -45% 22%;
  background:
    radial-gradient(42% 55% at 30% 72%, rgba(236, 178, 102, 1), transparent 70%),
    radial-gradient(48% 50% at 74% 76%, rgba(217, 151, 87, 1), transparent 70%),
    radial-gradient(60% 55% at 50% 40%, rgba(41, 64, 115, 0.95), transparent 72%),
    radial-gradient(35% 40% at 88% 50%, rgba(41, 64, 115, 0.8), transparent 70%);
  filter: blur(28px);
}

.fc__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

/* ---------- The gold tile and the founder breaking out of it ---------- */
.fc__tile {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  border-radius: var(--r);
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(255, 228, 180, 0.55), transparent 70%),
    linear-gradient(180deg, #ebb46e 0%, var(--gold) 55%, #c98546 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 10px 0 30px -12px rgba(20, 33, 61, 0.6);
}

.fc__people {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32%;
  pointer-events: none;
}

/* Below the tile's top edge the photo is trimmed to the tile's rounded shape... */
.fc__people--body {
  overflow: hidden;
  border-radius: var(--r);
}

/* ...and above it, a copy shows only what rises out of the top, so hair spills freely in every direction */
.fc__people--head .fc__person--umair {
  -webkit-mask-image: linear-gradient(#000 18.03%, transparent 18.03%);
  mask-image: linear-gradient(#000 18.03%, transparent 18.03%);
}
.fc__people--head .fc__person--abdul {
  -webkit-mask-image: linear-gradient(#000 23.08%, transparent 23.08%);
  mask-image: linear-gradient(#000 23.08%, transparent 23.08%);
}

.fc__person {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 122%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}

/* Placed from each photo's measurements so the shirt always runs past both edges of the tile */
.fc__person--umair { height: 122%; }
.fc__person--abdul { height: 130%; left: -13%; transform: none; }

.fc__person:not(.is-on) { opacity: 0; transform: translate(-50%, 16%); }
.fc__person--abdul:not(.is-on) { transform: translateY(16%); }
.fc__person.is-on { transition-delay: 0.12s; }

/* ---------- The words ---------- */
.fc__words {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-items: center;
  padding: 3.6cqw 5.5cqw 7.4cqw 6cqw;
  color: #f4ede0;
}

.fc__text {
  grid-area: 1 / 1;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.fc__text:not(.is-on) { opacity: 0; transform: translateY(10px); pointer-events: none; }
.fc__text.is-on { transition-delay: 0.18s; }

/* Same type system as the rest of the site: label, heading, body */
.fc__role {
  margin: 0 0 6px;
  color: #f4ede0;
  font: 400 16px / 1.1 var(--sans);
  letter-spacing: -0.01em;
}

.fc__name {
  margin: 0 0 18px;
  font-size: clamp(30px, 4cqw, 46px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.fc__bio {
  max-width: 520px;
  margin: 0;
  color: #f4ede0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* ---------- The switch: liquid glass with a sliding thumb ---------- */
.fc__switch {
  --i: 0;
  position: absolute;
  z-index: 4;
  right: 2.4cqw;
  bottom: 2.4cqw;
  display: grid;
  /* Two equal halves, each as wide as the longer name, so the thumb always lines up */
  grid-template-columns: repeat(2, 1fr);
  width: max-content;
  padding: 5px;
  border-radius: 999px;
  background: rgba(244, 237, 224, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(244, 237, 224, 0.22),
    0 10px 30px -12px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
}

/* Chromium can bend what's behind the glass, like the blur along the screen's edge */
.fc__switch.is-liquid {
  backdrop-filter: url(#fc-liquid) blur(14px) saturate(1.6);
}

.fc__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #efe7d8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px -4px rgba(0, 0, 0, 0.45);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.5, 1), width 0.3s var(--ease);
}

.fc__switch button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #f4ede0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

.fc__switch button[aria-selected="true"] { color: #14213d; }

.fc__switch button:focus-visible {
  outline: 2px solid #f4ede0;
  outline-offset: 1px;
}

.no-gpu .fc__switch {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(41, 64, 115, 0.85);
}

/* ---------- Tablets: the words get a little more room ---------- */
@media (max-width: 1023px) {
  .fc__stage { grid-template-columns: 38.1% 1fr; aspect-ratio: 2.1 / 1; }
  .fc__people { width: 38.1%; }
  .fc__bio { display: none; }
}

/* ---------- Phones: the tile on top, the words beneath ---------- */
@media (max-width: 699px) {
  .fc { margin-top: 84px; }
  .fc__stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
  }
  .fc__panel { grid-row: 1 / 3; }
  /* A portrait-sized tile, centred inside the panel, so the photo never fills a whole screen */
  .fc__tile,
  .fc__people {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: min(100% - 44px, 300px);
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 22px;
  }
  .fc__people--body { position: relative; }
  .fc__people--head { left: 50%; top: 0; bottom: auto; transform: translateX(-50%); }
  .fc__words { grid-column: 1; grid-row: 2; padding: 26px 22px 26px; }
  .fc__bio { display: block; }
  .fc__name { font-size: 34px; }
  .fc__switch { bottom: 18px; left: 50%; right: auto; transform: translateX(-50%); }
  .fc__words { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .fc__person,
  .fc__text,
  .fc__thumb { transition: opacity 0.2s linear; }
}
