/* Founder's story page: forest green, charcoal, black and white. Loaded only on founder.html. */
.founder {
  --black: #17191C;
  --forest: #14291F;
  --evergreen: #244B36;
  --sage: #A6B8A9;
  --red-dirt: var(--evergreen);
  --red-dirt-dark: var(--forest);
  --concrete: #F4F5F1;
  --muted: rgba(23, 25, 28, .78);
  --muted-on-dark: var(--sage);
  --line: rgba(115, 123, 132, .35);
}
.founder .hero, .founder .site-footer, .founder .site-header:has(.nav.open) { background: var(--forest); }
.founder .ridge-top { background: var(--black); color: var(--forest); }
.founder .footer-bottom { border-top-color: rgba(166, 184, 169, .35); }
.founder .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--black); }
.founder .on-dark .btn:not(.btn-outline), .founder .site-header .btn { border-color: var(--sage); }
@media (max-width: 1280px) {
  .founder .nav { background: var(--forest); }
  .founder .nav a:not(.btn), .founder .nav a:not(.btn):hover, .founder .nav a[aria-current="page"] { border-bottom-color: rgba(166, 184, 169, .35); }
}

/* Hero */
.founder-hero { min-height: min(100svh, 880px); }
.founder-hero::before { background: linear-gradient(90deg, rgba(20, 41, 31, .96), rgba(20, 41, 31, .84) 52%, rgba(20, 41, 31, .3) 90%); }
.founder-hero h1 { max-width: 20ch; font-size: clamp(2rem, .9rem + 3.6vw, 4.25rem); }
.founder-eyebrow { margin-bottom: 1.25rem; color: var(--sage); font-weight: 700; }
.founder-eyebrow a { color: var(--sage); text-underline-offset: 4px; }
.founder-name { margin: 1.75rem 0 0; padding-left: 16px; border-left: 3px solid var(--sage); }
.founder-name strong { display: block; font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-stretch: 112%; line-height: 1.25; }

/* Story */
.founder-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-story-side { position: sticky; top: 32px; }
.founder-story-side h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.founder-story-side figure { margin: 0; overflow: hidden; border-radius: 4px; }
.founder-story-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.founder-story-text p { max-width: 62ch; margin-bottom: 1.4em; }
.founder-story-text .lead { font-weight: 600; }
.founder-pull { margin-block: 2em; padding-left: clamp(16px, 2vw, 28px); border-left: 4px solid var(--evergreen); color: var(--evergreen); font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); font-weight: 800; font-stretch: 112%; line-height: 1.2; }

/* Timeline */
.founder-journey { background: var(--forest); color: var(--white); }
.founder-journey-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-journey h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); overflow-wrap: normal; }
.timeline { position: relative; margin: 0; padding: 0 0 0 clamp(40px, 5vw, 64px); list-style: none; }
.timeline::before { content: ""; position: absolute; inset: 8px auto 8px 9px; width: 2px; background: var(--sage); transform-origin: top; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.timeline.reveal { opacity: 1; transform: none; }
.timeline.reveal::before { transform: scaleY(0); }
.timeline.reveal.in::before { transform: none; }
.timeline li { position: relative; padding-bottom: clamp(32px, 4vw, 52px); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: calc(-1 * clamp(40px, 5vw, 64px)); width: 20px; height: 20px; border: 3px solid var(--sage); border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px var(--forest); }
.timeline-next::before { background: var(--forest) !important; }
.timeline-next::after { content: ""; position: absolute; inset: 28px auto 0 calc(-1 * clamp(40px, 5vw, 64px)); width: 20px; background: var(--forest); }
.timeline-step { display: block; margin-bottom: 6px; color: var(--sage); font-size: .9375rem; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 8px; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); }
.timeline p { color: var(--concrete); }

/* Vision */
.founder-vision { position: relative; display: flex; align-items: center; min-height: clamp(520px, 72vh, 760px); padding-block: clamp(64px, 9vw, 120px); overflow: hidden; background: var(--forest); color: var(--white); isolation: isolate; }
.founder-vision-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.founder-vision::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 25, 28, .94), rgba(20, 41, 31, .82) 55%, rgba(20, 41, 31, .28)); }
.founder-vision h2 { max-width: 16ch; margin-bottom: 1.5rem; }
.founder-vision .lead { max-width: 54ch; }

/* Commitments */
.founder-commitments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.founder-commitment { padding: clamp(20px, 2.2vw, 28px); border-top: 4px solid var(--evergreen); border-radius: 4px; background: var(--white); box-shadow: 0 6px 18px rgba(20, 41, 31, .08); transition: opacity .6s ease-out, transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.founder-commitment:hover { border-top-color: var(--sage); box-shadow: 0 14px 30px rgba(20, 41, 31, .16); }
.founder-commitment.in:hover { transform: translateY(-4px); }
.founder-commitment h3 { margin-bottom: 10px; color: var(--evergreen); }
.founder-commitment a { color: var(--evergreen); font-weight: 700; text-underline-offset: 3px; }

/* Closing */
.founder-closing { padding-block: clamp(80px, 12vw, 176px); background: var(--black); color: var(--white); }
.founder-closing blockquote { margin: 0 0 clamp(28px, 4vw, 44px); }
.founder-closing blockquote p { max-width: 20ch; margin-bottom: 1.25rem; font-size: clamp(2rem, 1rem + 4.2vw, 4.75rem); font-weight: 800; font-stretch: 125%; line-height: 1.05; text-transform: uppercase; }
.founder-closing em { color: var(--sage); font-style: normal; }
.founder-closing blockquote footer { color: var(--sage); font-weight: 700; }
.founder-closing + * { margin-top: 0; }

/* Motion. site.js adds .reveal only when motion is allowed, so everything is visible without it. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .founder-hero .hero-img { animation: founder-zoom 28s ease-out both; transform-origin: 60% 60%; }
  @keyframes founder-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
  .founder-hero h1, .founder-eyebrow, .founder-name { animation: founder-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .founder-hero h1 { animation-delay: .1s; }
  .founder-name { animation-delay: .25s; }
  @keyframes founder-rise { from { opacity: 0; transform: translateY(18px); } }
}

@media (max-width: 1100px) {
  .founder-commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .founder-story, .founder-journey-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-story-side { position: static; }
  .founder-hero::before { background: linear-gradient(rgba(20, 41, 31, .9), rgba(20, 41, 31, .82)); }
  .founder-vision::before { background: linear-gradient(rgba(23, 25, 28, .9), rgba(20, 41, 31, .82)); }
}
@media (max-width: 560px) {
  .founder-commitments { grid-template-columns: minmax(0, 1fr); }
}
