/* ==========================================================================
   Founder page
   Requires theme.css first (banner, breadcrumbs, buttons, eyebrow).
   ========================================================================== */

.fd-page {
  padding: var(--ims-section) 0;
  background: var(--ims-surface);
}

/* ---- Sidebar ------------------------------------------------------------ */

.fd-aside {
  background: var(--ims-paper);
  border: 1px solid var(--ims-rule);
  border-top: 3px solid var(--ims-brand);
}

.fd-aside__portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ims-surface-2);
}

.fd-aside__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.fd-aside__initials {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ims-ink-soft);
}

.fd-aside__body {
  padding: 24px 24px 28px;
}

.fd-aside__name {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ims-ink);
}

.fd-aside__role {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ims-brand);
}

/* ---- Contact list ------------------------------------------------------- */

.fd-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-contact__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--ims-ink-soft);
  border-top: 1px solid var(--ims-rule);
}

.fd-contact__item:last-child {
  border-bottom: 1px solid var(--ims-rule);
}

.fd-contact__item i {
  flex: 0 0 16px;
  font-size: 15px;
  color: var(--ims-brand);
}

.fd-contact__item a {
  color: var(--ims-ink);
  word-break: break-word;
}

.fd-contact__item a:hover,
.fd-contact__item a:focus {
  color: var(--ims-brand);
  text-decoration: none;
}

/* ---- Biography ---------------------------------------------------------- */

.fd-bio {
  margin-bottom: 44px;
}

.fd-bio__para {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ims-ink-soft);
}

/* First paragraph sets the tone, so it gets a little more presence */
.fd-bio__para--lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ims-ink);
}

/* ---- Milestones ---------------------------------------------------------
   A plain list. The old page used animated progress bars for "skills" —
   see the note in SETUP.md for why those are gone.
   ------------------------------------------------------------------------ */

.fd-wins {
  margin-bottom: 44px;
  padding: 30px 30px 34px;
  background: var(--ims-paper);
  border: 1px solid var(--ims-rule);
}

.fd-wins__title {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ims-ink);
}

.fd-wins__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fd-win;
}

.fd-wins__item {
  position: relative;
  padding: 16px 0 16px 44px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ims-ink-soft);
  border-top: 1px solid var(--ims-rule);
  counter-increment: fd-win;
}

.fd-wins__item:first-child {
  border-top: 0;
}

/* Numbered because these are a sequence of things achieved, not a menu */
.fd-wins__item::before {
  content: counter(fd-win, decimal-leading-zero);
  position: absolute;
  top: 17px;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ims-brand);
}

/* ---- Company block ------------------------------------------------------ */

.fd-company {
  padding-top: 30px;
  border-top: 2px solid var(--ims-ink);
}

.fd-company__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ims-ink);
}

.fd-company__body {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ims-ink-soft);
}

.fd-company__body strong {
  font-weight: 700;
  color: var(--ims-ink);
}

.fd-company__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* ---- Call to action ----------------------------------------------------- */

.fd-cta {
  padding: 72px 0;
  background: var(--ims-deep);
}

.fd-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ims-gap-lg);
}

.fd-cta__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ims-ink-invert);
}

.fd-cta__lead {
  margin: 0;
  font-size: 15px;
  color: var(--ims-ink-invert-soft);
}

.fd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Breakpoints -------------------------------------------------------- */

@media (max-width: 991px) {
  .fd-aside { margin-bottom: 40px; }
}

@media (max-width: 767px) {
  .fd-page { padding: var(--ims-section-sm) 0; }

  .fd-bio__para--lead { font-size: 16px; }

  .fd-wins { padding: 24px 22px 26px; }

  .fd-cta { padding: 52px 0; }
  .fd-cta__title { font-size: 21px; }

  .fd-company__actions .ims-btn,
  .fd-cta__actions .ims-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
