/* ==========================================================================
   Founder — homepage trust block + full profile page
   ========================================================================== */

/* ── Homepage teaser ── */

.ne-founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 56px;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(36, 49, 39, 0.04);
}

.ne-founder-media {
  min-width: 0;
}

.ne-founder-photo {
  display: block;
  width: 100%;
  /* height: auto is load-bearing. wp_get_attachment_image() writes a height
     attribute, which counts as a specified height and stops aspect-ratio
     resolving — the portrait rendered 742px tall instead of 375px. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  background: var(--surface);
}

/* Shown until a portrait is uploaded — a deliberate placeholder rather than
   an empty frame or a broken image. */
.ne-founder-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 60% at 50% 22%, rgba(var(--gold-rgb), 0.34), rgba(var(--gold-rgb), 0) 62%),
    linear-gradient(160deg, var(--tint) 0%, var(--surface) 100%);
  border: 1px dashed rgba(36, 49, 39, 0.2);
}

.ne-founder-initials {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(36, 49, 39, 0.32);
}

.ne-founder-body {
  min-width: 0;
}

.ne-founder-title {
  margin: 0 0 4px;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.ne-founder-role {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

.ne-founder-sep {
  margin: 0 6px;
  color: var(--muted);
}

.ne-founder-place {
  font-weight: 600;
  color: var(--muted);
}

.ne-founder-lede {
  margin: 0 0 20px;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--body);
}

.ne-founder-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.ne-founder-stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ne-founder-stat-value {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ne-founder-stat-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.ne-founder-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--text);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.ne-founder-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.ne-founder-cta:hover {
  color: #fff;
  text-decoration: none;
  background: var(--deep);
}

.ne-founder-cta:hover svg {
  transform: translateX(4px);
}

/* ── Full profile page ── */

.founder-page {
  max-width: 1180px;
}

.founder-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 20px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.founder-hero-media img,
.founder-hero-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.founder-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  font-weight: 800;
  color: rgba(36, 49, 39, 0.32);
  background:
    radial-gradient(70% 60% at 50% 22%, rgba(var(--gold-rgb), 0.34), rgba(var(--gold-rgb), 0) 62%),
    linear-gradient(160deg, var(--tint) 0%, var(--surface) 100%);
  border: 1px dashed rgba(36, 49, 39, 0.2);
}

.founder-name {
  margin: 0 0 4px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.founder-role {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
}

.founder-place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.founder-place svg {
  width: 15px;
  height: 15px;
}

.founder-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.founder-stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.founder-stat-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.founder-stat-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.founder-sections {
  display: grid;
  /* Same blowout guard as the trek page: an auto column would be floored by
     its widest item's min-content width. */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* ── Experience timeline ── */

.founder-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-job {
  position: relative;
  padding: 0 0 22px 22px;
  border-left: 2px solid var(--border);
}

.founder-job:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.founder-job::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ne-gold, var(--gold-soft));
  border: 2px solid var(--card);
}

.founder-job-title {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.founder-job-org {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.founder-job-dates {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-ink);
  background: rgba(var(--gold-rgb), 0.34);
  border-radius: 999px;
  white-space: nowrap;
}

.founder-job-items {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.founder-job-items li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}

/* ── Certifications, talks, education ── */

.founder-certs,
.founder-speaking,
.founder-education {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-certs li,
.founder-speaking li,
.founder-education li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.founder-certs li:last-child,
.founder-speaking li:last-child,
.founder-education li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.founder-cert-name,
.founder-talk-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.founder-cert-meta,
.founder-talk-meta {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-skills li {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2f4436;
  background: rgba(var(--gold-rgb), 0.18);
  border-radius: 999px;
}

.founder-meta-line {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--body);
}

.founder-cta-card .section-link {
  margin-top: 6px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .ne-founder,
  .founder-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Keep the source crop's own 4:5 below 900px. The old 16/10 banner was
     chosen when this frame held an abstract placeholder — forcing a portrait
     photograph into it discarded 50% of the image height with object-fit,
     cutting the top of the subject's head off. Width is capped instead, so
     the block still does not run away vertically. */
  .ne-founder-photo,
  .founder-hero-media img,
  .founder-hero-placeholder {
    aspect-ratio: 4 / 5;
  }

  .ne-founder-media,
  .founder-hero-media {
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .ne-founder-stats,
  .founder-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
  }
}

@media (max-width: 600px) {
  .ne-founder {
    margin-top: 40px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .founder-hero {
    padding: 20px 18px;
  }

  .ne-founder-lede {
    font-size: 15px;
  }

  .founder-job {
    padding-left: 18px;
  }

  .founder-job-dates {
    display: block;
    margin: 5px 0 0;
    width: fit-content;
  }
}

/* ── Gallery ── */

.founder-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-gallery figure {
  margin: 0;
}

.founder-gallery img,
.founder-gallery-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.founder-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.founder-gallery img {
  transition: transform 0.4s ease;
}

.founder-gallery a:hover img {
  transform: scale(1.04);
}

.founder-gallery figcaption {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.founder-gallery-placeholder {
  border-style: dashed;
  background:
    radial-gradient(70% 60% at 50% 26%, rgba(var(--gold-rgb), 0.28), rgba(var(--gold-rgb), 0) 62%),
    linear-gradient(160deg, var(--tint) 0%, var(--surface) 100%);
}

@media (max-width: 700px) {
  .founder-gallery {
    /* Two up rather than one: three portrait-ish frames stacked full width
       would push the rest of the profile a long way down. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
