/* ══════════════════════════════════════════════════════════════════════════════
   LEAN LEDGER — FOUNDER PAGE REDESIGN
   Technical Grotesque direction (matches home page)
   
   HANDOFF: Replace wwwll/about/static/about/css/about_founder_page.css
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
.af {
  /* Core palette — matches home */
  --bg: #f3f4f6;
  --surface: #ffffff;
  --fg: #10203a;
  --muted: #57606a;
  --border: #d8dde3;
  --accent: #16a34a;
  --accent-light: #e9f7ef;
  --accent-dark: #15803d;
  --navy: #10203a;
  --navy-surface: #182b49;
  --navy-border: #2a3f61;

  /* Typography — Technical Grotesque stack */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* Dark mode overrides */
.dark .af {
  --bg: #10203a;
  --surface: #182b49;
  --fg: #f0f6fc;
  --muted: #a7b6cc;
  --border: #2a3f61;
  --accent: #3fb950;
  --accent-light: rgba(63,185,80,0.1);
  --accent-dark: #2ea043;
  --navy: #f0f6fc;
  --navy-surface: #2a3f61;
  --navy-border: #3a5075;
}

/* ── Full-bleed helper ── */
.af-full {
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .af-full {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 768px) {
  .af-full {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── Grid texture background ───────────────────────────────────────────────── */
.af-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.25;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, black, transparent 70%);
}

.af-grid-bg--dark {
  background:
    linear-gradient(var(--navy-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, black, transparent 70%);
}

/* ── Scroll animations ── */
@keyframes afFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.af-animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.af-animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .af-animate-in { opacity: 1; transform: none; transition: none; }
}

/* ── Kicker / section label — // LABEL pattern ─────────────────────────────── */
.af-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: block;
}
.af-section-label::before {
  content: "// ";
}

/* ── Terminal frame for photos ─────────────────────────────────────────────── */
.af-term {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--accent-light);
}
.af-term img {
  display: block;
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════════ */
.af-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.af-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.af-hero-content {
  max-width: 540px;
}

.af-hero-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.af-hero-tag::before {
  content: "// ";
}

.af-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.af-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.af-hero-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 460px;
}

.af-hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.af-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.af-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.af-meta-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.af-hero-photo {
  max-width: 480px;
  justify-self: end;
}

/* Placeholder when no image */
.af-hero-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--accent-light);
  color: var(--accent);
}
.af-photo-icon {
  width: 64px;
  height: 64px;
  border: 2.5px dashed var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}
.af-photo-icon svg { width: 28px; height: 28px; }
.af-photo-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .af-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .af-hero-photo {
    max-width: 100%;
    justify-self: start;
    order: -1;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   STORY
   ══════════════════════════════════════════════════════════════════════════════ */
.af-story {
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}
.af-story h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 560px;
}

.af-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.af-story-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.af-story-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}
.af-story-text strong {
  color: var(--fg);
  font-weight: 600;
}

.af-story-image-card {
  max-width: 100%;
}
.af-story-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder */
.af-image-placeholder {
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent-light);
}

@media (max-width: 900px) {
  .af-story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .af-story-image-card {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHOTO STRIP
   ══════════════════════════════════════════════════════════════════════════════ */
.af-photo-strip-wrap {
  padding: 2rem 0;
}
.af-photo-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.af-strip-cell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 180px;
}
.af-strip-cell:nth-child(1) {
  grid-row: 1 / span 2;
  min-height: 380px;
}
.af-strip-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.af-strip-cell:hover img {
  transform: scale(1.03);
}

.af-strip-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent);
  opacity: 0.5;
}
.af-strip-placeholder svg { width: 32px; height: 32px; }
.af-strip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  max-width: 160px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .af-photo-strip {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .af-strip-cell,
  .af-strip-cell:nth-child(1) {
    grid-row: auto;
    min-height: 240px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BEYOND THE NUMBERS
   ══════════════════════════════════════════════════════════════════════════════ */
.af-beyond {
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}
.af-beyond h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.af-beyond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.af-beyond-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.af-beyond-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Interest tags */
.af-interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.af-interest-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.af-interest-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Beyond media — large primary photo with two stacked alongside */
.af-beyond-media {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: 0.85rem;
}
.af-beyond-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 190px;
}
.af-beyond-card-primary {
  grid-row: 1 / span 2;
  min-height: 340px;
}
.af-beyond-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.af-beyond-card:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .af-beyond-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .af-beyond-media {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .af-beyond-card-primary {
    grid-row: auto;
    min-height: 240px;
  }
  .af-beyond-card {
    min-height: 220px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PULL QUOTE
   ══════════════════════════════════════════════════════════════════════════════ */
.af-quote {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
  text-align: center;
}
.af-quote-inner {
  max-width: 640px;
  margin: 0 auto;
}
.af-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}
.af-quote-text {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.af-quote-attribution {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CTA — dark navy background with grid texture
   ══════════════════════════════════════════════════════════════════════════════ */
.af-cta {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 4rem 1.5rem;
  overflow: hidden;
}
.af-cta-inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.af-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}
.af-cta p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}
.af-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.af-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.af-btn-primary:hover {
  background: #60a5fa;
  color: var(--navy);
}

.af-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.af-btn-secondary:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BACK LINK
   ══════════════════════════════════════════════════════════════════════════════ */
.af-back-link-section {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  max-width: 1120px;
  margin: 0 auto;
}
.af-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.af-back-link:hover {
  gap: 0.75rem;
}
.af-back-link svg {
  width: 16px;
  height: 16px;
}
