/*
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 * Hallmark · genre: modern-minimal · macrostructure: Long Document · design-system: DESIGN.md · designed-as-app
 * Theme: Esotech Signal Field · anchor: founder-authored engineering memorandum
 * Enrichment: full-hero founder portrait built from sprung image particles · navigation: N11 system reuse · footer: Ft1 system reuse
 * Contrast: pass (40–41) · nav: N11 · footer: Ft1 · slop: pass (42–45)
 * Honest: pass (46) · chrome: pass (47) · tokens: pass (48) · icons: pass (30)
 * Responsive: pass (49) · mobile: pass (34, 50–57) · verified 320–1920px
 */

html,
.founder-message {
  overflow-x: clip;
}

.founder-message {
  background: var(--surface-deep);
}

.founder-progress {
  position: fixed;
  z-index: 260;
  inset: 0 0 auto;
  height: 2px;
  background: color-mix(in oklch, var(--rule) 64%, transparent);
  pointer-events: none;
}

.founder-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-blue-bright);
  box-shadow: 0 0 1rem color-mix(in oklch, var(--brand-blue-bright) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.founder-document {
  position: relative;
}

.founder-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 112svh;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 75% 42%, color-mix(in oklch, var(--brand-blue) 14%, transparent), transparent 34%),
    color-mix(in oklch, var(--surface-deep) 96%, transparent);
}

.founder-hero__portrait,
.founder-hero__haze,
.founder-portrait__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.founder-hero__portrait {
  z-index: 0;
  margin: 0;
  pointer-events: none;
}

.founder-portrait__canvas {
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 460ms var(--ease-out);
}

.founder-portrait__canvas.is-ready {
  opacity: 1;
}

.founder-portrait__image {
  position: absolute;
  z-index: 0;
  top: 48%;
  left: 74%;
  display: block;
  width: min(47vw, 44rem);
  height: min(92svh, 60rem);
  object-fit: contain;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2rem 5rem color-mix(in oklch, var(--brand-blue) 22%, transparent));
  transition: opacity 460ms var(--ease-out);
}

.founder-portrait__canvas.is-ready + .founder-portrait__image {
  opacity: 0.18;
}

.founder-hero__haze {
  z-index: 1;
  background:
    linear-gradient(90deg, var(--surface-deep) 0%, color-mix(in oklch, var(--surface-deep) 94%, transparent) 39%, color-mix(in oklch, var(--surface-deep) 26%, transparent) 66%, transparent 84%),
    linear-gradient(0deg, color-mix(in oklch, var(--surface-deep) 32%, transparent), transparent 28%);
  pointer-events: none;
}

.founder-hero::before,
.founder-hero::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-blue-bright);
  z-index: 3;
  pointer-events: none;
}

.founder-hero::before {
  top: 6.5rem;
  left: max(1.25rem, calc((100% - 90rem) / 2));
  border-top: 1px solid;
  border-left: 1px solid;
}

.founder-hero::after {
  right: max(1.25rem, calc((100% - 90rem) / 2));
  bottom: 2.25rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.founder-hero__meta,
.founder-hero__scale {
  position: absolute;
  right: max(1.5rem, calc((100% - 90rem) / 2));
  left: max(1.5rem, calc((100% - 90rem) / 2));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: color-mix(in oklch, var(--brand-blue-bright) 78%, var(--ink-soft));
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  z-index: 3;
}

.founder-hero__meta {
  top: 6.75rem;
  padding-left: 2rem;
}

.founder-hero__scale {
  bottom: 2rem;
  color: var(--ink-muted);
}

.founder-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  min-height: 100svh;
  padding-block: 8rem 11rem;
}

.founder-kicker,
.founder-chapter__rail > span,
.delivery-trace figcaption,
.delivery-trace__stops span,
.founder-ledger-row > span {
  color: var(--brand-blue-bright);
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.founder-kicker {
  margin: 0 0 1.5rem;
}

.founder-hero h1 {
  min-width: 0;
  max-width: 11.5ch;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 6.3vw, 5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.founder-hero h1 span {
  display: block;
}

.founder-hero h1 span:last-child {
  margin-top: 0.18em;
  color: var(--ink-strong);
}

.founder-hero h1 em {
  color: var(--brand-blue-bright);
  font-style: normal;
}

.founder-hero__copy > p:not(.founder-kicker) {
  max-width: 45ch;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.founder-hero__route {
  margin-top: 2rem;
}

.founder-chapter {
  position: relative;
  padding: clamp(7rem, 11vw, 11rem) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-deep);
}

.founder-chapter:nth-of-type(even) {
  background: color-mix(in oklch, var(--surface-raised) 92%, var(--surface-deep));
}

.founder-chapter__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 6fr) minmax(0, 8fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.founder-chapter__rail {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.founder-chapter__rail::before {
  content: "";
  display: block;
  width: 6rem;
  height: 1px;
  margin-bottom: 1.25rem;
  background: var(--brand-blue-bright);
  transform: scaleX(0.375);
  transform-origin: left center;
  transition: transform 420ms var(--ease-out);
}

.founder-chapter.is-current .founder-chapter__rail::before {
  transform: scaleX(1);
}

.founder-chapter__rail h2 {
  min-width: 0;
  max-width: 12ch;
  margin: 1.25rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.3vw, 3.35rem);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.founder-chapter__body {
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

.founder-chapter__body > p {
  margin: 0 0 2rem;
}

.founder-chapter__body > p:last-child {
  margin-bottom: 0;
}

.founder-growth {
  display: grid;
  gap: 1rem;
  margin: clamp(3rem, 7vw, 6rem) 0 !important;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-block: 1px solid var(--rule);
}

.founder-growth > span:first-child {
  max-width: 48ch;
}

.founder-growth strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--ink-strong);
  font-weight: 500;
}

.founder-growth strong > span {
  font-family: var(--font-data);
  font-size: clamp(3.6rem, 7.6vw, 7.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.85;
  letter-spacing: -0.065em;
}

.founder-growth strong small {
  color: var(--brand-blue-bright);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.founder-chapter__close,
.founder-declaration,
.founder-refusal {
  min-width: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.founder-chapter__close {
  margin-top: clamp(3rem, 7vw, 6rem) !important;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.2;
}

.founder-declaration {
  margin: clamp(3rem, 6vw, 5rem) 0 !important;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
}

.delivery-trace {
  margin: clamp(3.5rem, 7vw, 6rem) 0;
  padding: 1.5rem 0 2rem;
  border-block: 1px solid var(--rule);
}

.delivery-trace figcaption {
  margin-bottom: 2.5rem;
}

.delivery-trace__stops {
  display: grid;
  grid-template-columns: minmax(9rem, auto) minmax(4rem, 1fr) minmax(9rem, auto);
  gap: 1.25rem;
  align-items: center;
}

.delivery-trace__stops > div:last-child {
  text-align: right;
}

.delivery-trace__stops strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1;
}

.delivery-trace__rule {
  position: relative;
  display: block;
  height: 1px;
  background: var(--brand-blue-bright);
  transform-origin: left center;
}

.delivery-trace__rule::before,
.delivery-trace__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--brand-blue-bright);
  background: var(--surface-deep);
  transform: translateY(-50%) rotate(45deg);
}

.delivery-trace__rule::before { left: 0; }
.delivery-trace__rule::after { right: 0; background: var(--brand-blue-bright); }

.founder-motion-enabled .delivery-trace__rule {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-in-out);
}

.founder-motion-enabled .delivery-trace.is-visible .delivery-trace__rule {
  transform: scaleX(1);
}

.founder-mantra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 6rem) !important;
  border-block: 1px solid var(--rule);
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1;
}

.founder-mantra span {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--rule);
}

.founder-mantra span:first-child { padding-left: 0; }
.founder-mantra span:last-child { border-right: 0; }

.founder-purpose {
  border-color: color-mix(in oklch, var(--ink-dark) 22%, transparent);
  background: var(--surface-mist) !important;
  color: var(--ink-dark);
}

.founder-purpose .founder-chapter__rail > span {
  color: var(--brand-blue-dark-label);
}

.founder-purpose .founder-chapter__rail::before {
  background: var(--brand-blue-action);
}

.founder-purpose .founder-chapter__body {
  color: color-mix(in oklch, var(--ink-dark) 78%, var(--surface-mist));
}

.founder-purpose .founder-declaration,
.founder-purpose .founder-chapter__close,
.founder-purpose .founder-purpose__jobs,
.founder-purpose .founder-growth-path strong {
  color: var(--ink-dark);
}

.founder-purpose .founder-chapter__close,
.founder-purpose .founder-growth-path strong {
  border-color: color-mix(in oklch, var(--ink-dark) 24%, transparent);
}

.founder-purpose__jobs {
  min-width: 0;
  margin: clamp(3rem, 7vw, 6rem) 0 !important;
  padding: 0.25rem 0 0.25rem clamp(1.5rem, 4vw, 3.25rem);
  border-left: 2px solid var(--brand-blue-action);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.founder-growth-path {
  display: grid;
  margin-top: 2rem;
}

.founder-growth-path strong {
  padding: 0.75rem 0;
  border-bottom: 1px solid;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
}

.founder-ledger-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 2fr) minmax(0, 6fr);
  gap: 2rem;
  margin: 2.5rem 0 4rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--rule);
}

.founder-ledger-row p {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.founder-ledger-row--people > span {
  color: var(--ink-strong);
}

.founder-refusal {
  margin: clamp(4rem, 8vw, 7rem) 0 !important;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--brand-blue-bright);
  background: color-mix(in oklch, var(--brand-blue) 8%, transparent);
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.12;
}

.founder-responsibility {
  padding-bottom: clamp(8rem, 14vw, 14rem);
}

.founder-still {
  min-width: 0;
  margin: clamp(5rem, 10vw, 9rem) 0 1.5rem !important;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.founder-still__lines {
  color: var(--brand-blue-bright);
  font-family: var(--font-data);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.85;
}

.founder-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.founder-signature div {
  display: grid;
  gap: 0.25rem;
}

.founder-signature strong {
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.founder-signature span {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

@media (max-width: 64rem) {
  .founder-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .founder-chapter__grid {
    grid-template-columns: minmax(18rem, 6fr) minmax(0, 8fr);
    gap: 3rem;
  }

  .founder-chapter__rail h2 {
    font-size: clamp(2.7rem, 5.2vw, 4.2rem);
  }
}

@media (max-width: 48rem) {
  .founder-hero {
    min-height: 118svh;
    background:
      radial-gradient(circle at 50% 27%, color-mix(in oklch, var(--brand-blue) 14%, transparent), transparent 35%),
      color-mix(in oklch, var(--surface-deep) 96%, transparent);
  }

  .founder-portrait__image {
    top: 28%;
    left: 50%;
    width: min(88vw, 27rem);
    height: min(62svh, 40rem);
    opacity: 0.64;
  }

  .founder-portrait__canvas.is-ready + .founder-portrait__image {
    opacity: 0.16;
  }

  .founder-hero__haze {
    background:
      linear-gradient(0deg, var(--surface-deep) 0%, color-mix(in oklch, var(--surface-deep) 96%, transparent) 43%, color-mix(in oklch, var(--surface-deep) 34%, transparent) 69%, transparent 88%),
      linear-gradient(90deg, color-mix(in oklch, var(--surface-deep) 28%, transparent), transparent 72%);
  }

  .founder-hero__meta span:last-child,
  .founder-hero__scale span:nth-child(2) {
    display: none;
  }

  .founder-chapter__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-hero__grid {
    display: flex;
    align-items: flex-end;
    min-height: 112svh;
    padding-block: 5rem 6.5rem;
  }

  .founder-hero__copy {
    width: 100%;
  }

  .founder-hero h1 {
    max-width: 10.5ch;
    font-size: clamp(3.2rem, 14vw, 4.65rem);
  }

  .founder-chapter {
    padding: clamp(6rem, 22vw, 8rem) 0;
  }

  .founder-chapter__grid {
    gap: 4rem;
  }

  .founder-chapter__rail {
    position: static;
  }

  .founder-chapter__rail h2 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .founder-growth strong > span {
    font-size: clamp(2.35rem, 12vw, 4rem);
    letter-spacing: -0.055em;
  }

  .delivery-trace__stops {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .delivery-trace__stops > div:last-child {
    text-align: left;
  }

  .delivery-trace__rule {
    width: 1px;
    height: 4rem;
    margin-left: 0.25rem;
    transform-origin: center top;
  }

  .delivery-trace__rule::before,
  .delivery-trace__rule::after {
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
  }

  .delivery-trace__rule::before { top: 0; }
  .delivery-trace__rule::after { bottom: 0; }

  .founder-motion-enabled .delivery-trace__rule {
    transform: scaleY(0);
  }

  .founder-motion-enabled .delivery-trace.is-visible .delivery-trace__rule {
    transform: scaleY(1);
  }

  .founder-mantra {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-mantra span,
  .founder-mantra span:first-child {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .founder-mantra span:last-child {
    border-bottom: 0;
  }

  .founder-ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .founder-signature {
    align-items: stretch;
    flex-direction: column;
  }

  .founder-signature .action {
    align-self: flex-start;
  }
}

@media (max-width: 24rem) {
  .founder-hero__meta,
  .founder-hero__scale {
    font-size: 0.65rem;
  }

  .founder-hero h1 {
    font-size: clamp(3rem, 15vw, 3.65rem);
  }

  .founder-kicker,
  .founder-chapter__rail > span,
  .delivery-trace figcaption,
  .delivery-trace__stops span,
  .founder-ledger-row > span {
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-progress {
    display: none;
  }

  .founder-chapter__rail::before,
  .delivery-trace__rule {
    transition: none !important;
    transform: none !important;
  }

  .founder-portrait__canvas,
  .founder-portrait__image {
    transition: none;
  }
}
