/* About Chris
   The portrait is a single continuous layer across the hero and opening
   section. The fixed mask creates the spill; scroll-driven transforms add
   depth in supporting browsers without making the content depend on motion. */

.page-founder main {
  overflow-x: clip;
}

.chris-hero {
  min-height: max(680px, calc(100svh - var(--header-h)));
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: visible;
  border-bottom: 0;
  background: #0b0c0e;
  padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(5.5rem, 8vw, 7rem);
}

.chris-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #0b0c0e 0%, rgba(11, 12, 14, .98) 28%, rgba(11, 12, 14, .76) 48%, rgba(11, 12, 14, .12) 77%),
    linear-gradient(0deg, #0b0c0e 0%, transparent 46%);
  content: "";
  pointer-events: none;
}

.chris-hero__content {
  min-block-size: var(--hero-deck-min);
  position: relative;
  z-index: 2;
}

.chris-hero h1 {
  max-width: var(--hero-title-measure);
  font-size: var(--hero-title-size);
  font-weight: var(--hero-title-weight);
  letter-spacing: var(--hero-title-tracking);
  line-height: var(--hero-title-leading);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}

.chris-hero .lede {
  width: min(var(--hero-lede-measure), 100%);
  max-width: var(--hero-lede-measure);
  margin-top: var(--hero-copy-gap);
  color: rgba(245, 243, 238, .74);
  font-size: var(--hero-lede-size);
  font-weight: 400;
  line-height: var(--hero-lede-leading);
}

.chris-hero__media {
  position: absolute;
  z-index: 0;
  top: -4%;
  right: -5vw;
  bottom: -34svh;
  width: min(67vw, 1020px);
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, .84) 78%, rgba(0, 0, 0, .34) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, .84) 78%, rgba(0, 0, 0, .34) 90%, transparent 100%);
  transform: translate3d(0, 0, 0) scale(1.045);
  transform-origin: 60% 35%;
}

.chris-hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b0c0e 0%, rgba(11, 12, 14, .78) 20%, rgba(11, 12, 14, .18) 50%, transparent 70%),
    linear-gradient(0deg, #0d0e10 0%, rgba(13, 14, 16, .9) 8%, transparent 27%);
  content: "";
}

.chris-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% 35%;
  filter: saturate(.76) contrast(1.06);
}

.chris-opening {
  z-index: 1;
  overflow: visible;
  background:
    linear-gradient(180deg, transparent 0%, rgba(13, 14, 16, .7) 22%, var(--paper) 48%);
  padding-top: clamp(10rem, 17vw, 16rem);
}

.chris-opening > .wrap {
  position: relative;
  z-index: 2;
}

.chris-purpose {
  min-height: clamp(720px, 82svh, 920px);
  isolation: isolate;
  overflow: hidden;
  background: #0b0c0e;
  padding: 0;
}

.chris-purpose .chris-purpose__layout {
  min-height: inherit;
  position: relative;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.chris-purpose__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0c0e;
}

.chris-purpose__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, .04) 0 34%, rgba(11, 12, 14, .64) 62%, #0d0e10 96%),
    linear-gradient(0deg, rgba(11, 12, 14, .52), transparent 38%);
  content: "";
  pointer-events: none;
}

.chris-purpose__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.84) contrast(1.04);
}

.chris-purpose__copy {
  min-height: inherit;
  position: relative;
  z-index: 1;
  width: min(48vw, 43rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding:
    clamp(5rem, 8vw, 8rem)
    max(var(--layout-gutter), calc((100vw - var(--max-w)) / 2 + var(--layout-gutter)))
    clamp(5rem, 8vw, 8rem)
    clamp(3rem, 6vw, 6rem);
}

.chris-purpose__copy h2 {
  max-width: 10ch;
}

.chris-purpose__copy .editorial-intro-copy {
  margin-top: 2rem;
}

.page-founder .editorial-section-camel {
  background:
    radial-gradient(circle at 86% 18%, rgba(200, 93, 53, .09), transparent 30%),
    #151619;
}

@keyframes chris-portrait-depth {
  0% {
    opacity: 1;
    transform: translate3d(0, -2.5%, 0) scale(1.06);
  }

  56% {
    opacity: 1;
  }

  100% {
    opacity: .18;
    transform: translate3d(0, 8%, 0) scale(1.015);
  }
}

@supports (animation-timeline: scroll()) {
  .chris-hero__media {
    animation: chris-portrait-depth linear both;
    animation-range: 0 135svh;
    animation-timeline: scroll(root block);
    will-change: transform, opacity;
  }
}

@media (max-width: 980px) {
  .page-founder .founder-quote {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(2.5rem, 7vw, 4rem);
  }

  .page-founder .founder-quote > div,
  .page-founder .founder-quote .section-copy {
    min-width: 0;
    max-width: 100%;
    grid-column: 1;
  }

  .page-founder .founder-quote blockquote {
    max-width: 12ch;
    font-size: clamp(3rem, 9.5vw, 5.4rem);
    line-height: .94;
  }

  .page-founder .founder-quote .section-copy {
    max-width: 43rem;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
  }

  .chris-purpose {
    min-height: 0;
  }

  .chris-purpose .chris-purpose__layout {
    min-height: 0;
    display: block;
  }

  .chris-purpose__media {
    min-height: clamp(440px, 68vw, 650px);
    position: relative;
    inset: auto;
  }

  .chris-purpose__media::after {
    background: linear-gradient(0deg, #0d0e10 0%, rgba(13, 14, 16, .18) 32%, transparent 58%);
  }

  .chris-purpose__media img {
    position: absolute;
    inset: 0;
    object-position: 45% 42%;
  }

  .chris-purpose__copy {
    min-height: 0;
    width: 100%;
    margin-left: 0;
    background: #0d0e10;
    padding:
      clamp(3.5rem, 9vw, 5rem)
      max(var(--layout-gutter), env(safe-area-inset-right))
      clamp(5rem, 12vw, 7rem)
      max(var(--layout-gutter), env(safe-area-inset-left));
  }

  .chris-hero::before {
    background:
      linear-gradient(90deg, #0b0c0e 0%, rgba(11, 12, 14, .88) 42%, rgba(11, 12, 14, .18) 100%),
      linear-gradient(0deg, #0b0c0e 0%, rgba(11, 12, 14, .32) 62%, transparent 100%);
  }

  .chris-hero__media {
    width: min(78vw, 780px);
  }
}

@media (max-width: 720px) {
  .page-founder .editorial-section-camel {
    padding-block: clamp(5rem, 17vw, 6.5rem);
  }

  .page-founder .founder-quote {
    gap: 2.5rem;
  }

  .page-founder .founder-quote blockquote {
    max-width: none;
    font-size: clamp(2.55rem, 10vw, 3.15rem);
    line-height: .96;
    letter-spacing: -.05em;
  }

  .page-founder .founder-quote cite {
    margin-top: 1.35rem;
  }

  .page-founder .founder-quote .section-copy {
    font-size: 1rem;
    line-height: 1.7;
  }

  .chris-purpose__media {
    min-height: clamp(360px, 95vw, 500px);
  }

  .chris-purpose__media img {
    object-position: 40% center;
  }

  .chris-purpose__copy {
    padding-top: 3.25rem;
  }

  .chris-hero {
    min-height: max(680px, calc(100svh - var(--header-h)));
    padding: 5.5rem 0 4.5rem;
  }

  .chris-hero::before {
    background:
      linear-gradient(0deg, #0b0c0e 0%, rgba(11, 12, 14, .87) 44%, rgba(11, 12, 14, .12) 76%),
      linear-gradient(90deg, rgba(11, 12, 14, .56), transparent 72%);
  }

  .chris-hero h1 {
    max-width: var(--hero-title-measure);
    font-size: var(--hero-title-size);
    letter-spacing: var(--hero-title-tracking);
    line-height: var(--hero-title-leading);
  }

  .chris-hero .lede {
    max-width: var(--hero-lede-measure);
    color: rgba(245, 243, 238, .74);
    font-size: var(--hero-lede-size);
    line-height: var(--hero-lede-leading);
  }

  .chris-hero__content {
    min-block-size: 0;
  }

  .chris-hero__media {
    top: -20%;
    right: auto;
    bottom: -17svh;
    left: 0;
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 61%, rgba(0, 0, 0, .8) 76%, rgba(0, 0, 0, .24) 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 61%, rgba(0, 0, 0, .8) 76%, rgba(0, 0, 0, .24) 91%, transparent 100%);
  }

  .chris-hero__media::after {
    background:
      linear-gradient(0deg, #0d0e10 0%, rgba(13, 14, 16, .9) 8%, transparent 29%),
      linear-gradient(90deg, rgba(11, 12, 14, .46), transparent 70%);
  }

  .chris-hero__media img {
    object-position: 18% 25%;
  }

  .chris-opening {
    padding-top: clamp(8rem, 31vw, 11rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chris-hero__media {
    animation: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
