/* Founder page — CYN design system (aligned with About) */

.founder-page {
  --ink: #0e2a38;
  --teal: #5bbFBF;
  --mist: #8ec9c4;
  --amber: #f4a261;
  --coral: #f26b5b;
  --cream: #fafcfc;
  --surface-muted: #f4f9f9;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(91, 191, 191, 0.28);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --section-y: 3.25rem;
  --section-y-lg: 5rem;
  --block-gap: 2rem;
  --content-gap: 1.5rem;
}

/* —— Layout primitives —— */
.founder-page .fa-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .founder-page .fa-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .founder-page .fa-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.founder-page .fa-container--narrow {
  max-width: 48rem;
}

.founder-page .fa-main {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding-top: 4.25rem;
}

@media (min-width: 640px) {
  .founder-page .fa-main {
    padding-top: 4.75rem;
  }
}

.founder-page .fa-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 55% at 10% 0%, rgba(91, 191, 191, 0.1), transparent 52%),
    radial-gradient(ellipse 60% 45% at 95% 20%, rgba(244, 162, 97, 0.07), transparent 48%),
    #fff;
}

.founder-page .fa-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.founder-page .fa-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Sections —— */
.founder-page .fa-section {
  position: relative;
  z-index: 1;
  padding: var(--section-y) 0;
}

@media (min-width: 1024px) {
  .founder-page .fa-section {
    padding: var(--section-y-lg) 0;
  }
}

.founder-page .fa-section--muted {
  background: var(--surface-muted);
}

.founder-page .fa-section__body {
  margin-top: var(--block-gap);
}

.founder-page .fa-section__body--tight {
  margin-top: var(--content-gap);
}

/* —— Section headers —— */
.founder-page .fa-section-header {
  max-width: 36rem;
}

.founder-page .fa-section-header .eyebrow {
  margin-bottom: 0;
}

.founder-page .fa-section-header h2 {
  margin-top: 1rem;
}

.founder-page .fa-section-header__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(14, 42, 56, 0.68);
  max-width: 38rem;
}

.founder-page .fa-section-header--center {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.founder-page .fa-section-header--center .eyebrow {
  justify-content: center;
}

.founder-page .fa-section-header--center .fa-section-header__lead {
  margin-left: auto;
  margin-right: auto;
}

/* —— Split column (background) —— */
.founder-page .fa-split {
  display: grid;
  gap: var(--block-gap);
  align-items: start;
}

@media (min-width: 1024px) {
  .founder-page .fa-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
  }

  .founder-page .fa-split .fa-section-header {
    position: sticky;
    top: 6rem;
  }
}

/* —— Hero —— */
.founder-page .fa-hero {
  position: relative;
  z-index: 1;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding: calc(var(--section-y) + 1rem) 0 var(--section-y-lg);
  overflow: hidden;
}

.founder-page .fa-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .founder-page .fa-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }
}

.founder-page .fa-hero__copy {
  max-width: 36rem;
}

.founder-page .fa-hero__name {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.founder-page .fa-hero__role {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14, 42, 56, 0.5);
}

.founder-page .fa-hero__rule {
  width: 4rem;
  height: 3px;
  margin: 1.25rem 0;
  background: linear-gradient(90deg, var(--teal), var(--mist));
  border-radius: 999px;
}

.founder-page .fa-hero__tagline {
  max-width: 32rem;
}

.founder-page .fa-hero__quote {
  margin-top: 1rem;
  max-width: 32rem;
}

.founder-page .fa-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.founder-page .fa-chip {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(14, 42, 56, 0.78);
}

.founder-page .fa-hero__visual {
  justify-self: center;
  width: min(100%, 400px);
}

@media (min-width: 1024px) {
  .founder-page .fa-hero__visual {
    justify-self: end;
    width: min(100%, 440px);
  }
}

.founder-page .fa-hero__frame {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 40px 80px -32px rgba(14, 42, 56, 0.22),
    0 0 0 1px rgba(91, 191, 191, 0.22);
}

.founder-page .fa-hero__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

/* —— Prose —— */
.founder-page .fa-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(14, 42, 56, 0.72);
}

.founder-page .fa-prose p + p {
  margin-top: 1.25rem;
}

.founder-page .fa-pull {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0 1.25rem;
  border-left: 3px solid var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* —— Bento —— */
.founder-page .fa-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .founder-page .fa-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .founder-page .fa-bento {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }

  .founder-page .fa-bento__cell--featured {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .founder-page .fa-bento__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .founder-page .fa-bento__cell:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .founder-page .fa-bento__cell:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
}

.founder-page .fa-bento__cell {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 32px -24px rgba(14, 42, 56, 0.12);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.35s ease;
}

.founder-page .fa-bento__cell:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 191, 191, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 48px -20px rgba(91, 191, 191, 0.28);
}

.founder-page .fa-bento__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
}

.founder-page .fa-bento__cell--featured .fa-bento__num {
  font-size: clamp(3rem, 7vw, 4.5rem);
}

.founder-page .fa-bento__label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(14, 42, 56, 0.65);
}

/* —— Story —— */
.founder-page .fa-story {
  text-align: center;
}

.founder-page .fa-story .eyebrow::before,
.founder-page .fa-story .eyebrow::after {
  display: none;
}

.founder-page .fa-story__quote {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.28;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}

.founder-page .fa-story__text {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(14, 42, 56, 0.68);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.founder-page .fa-story__attrib {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14, 42, 56, 0.45);
}

/* —— Publications —— */
.founder-page .fa-pubs {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .founder-page .fa-pubs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.founder-page .fa-pub {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px -20px rgba(14, 42, 56, 0.1);
  transition: transform 0.4s var(--ease-spring), border-color 0.35s ease, box-shadow 0.35s ease;
}

.founder-page .fa-pub:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 191, 191, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 40px -18px rgba(91, 191, 191, 0.22);
}

.founder-page .fa-pub__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(91, 191, 191, 0.4);
}

.founder-page .fa-pub h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.founder-page .fa-pub p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(14, 42, 56, 0.65);
}

.founder-page .fa-work-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: var(--block-gap);
}

.founder-page .fa-award {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(14, 42, 56, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(14, 42, 56, 0.75);
  box-shadow: 0 8px 24px -16px rgba(14, 42, 56, 0.12);
}

.founder-page .fa-github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(14, 42, 56, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.founder-page .fa-github-link:hover {
  color: var(--teal);
}

.founder-page .site-footer {
  position: relative;
  z-index: 10;
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .founder-page .fa-reveal {
    opacity: 1;
    transform: none;
  }

  .founder-page .fa-bento__cell:hover,
  .founder-page .fa-pub:hover {
    transform: none;
  }

  .founder-page .fa-split .fa-section-header {
    position: static;
  }
}
