/* About
   One continuous founder story. Native scroll moves the copy while a single
   textile seam carries the page from student order to hands-on production. */

.about-story-page {
  --about-ink: var(--brand-matte, #10120f);
  --about-paper: var(--brand-paper, #f4f5f0);
  --about-electric: var(--brand-green, #9be879);
  --about-acid: var(--brand-acid, #c5ff32);
  --about-line-dark: rgba(16, 18, 15, .17);
  --about-line-light: rgba(244, 245, 240, .16);
  --about-progress: .25;
  --about-word-alpha: .065;
  color: var(--about-ink);
  background: var(--about-ink);
}

.about-story-page main.founder-story {
  overflow: clip;
  color: var(--about-ink);
  background: var(--about-paper);
}

.about-story-page .founder-story *,
.about-story-page .founder-story *::before,
.about-story-page .founder-story *::after {
  box-sizing: border-box;
}

.about-story-page .founder-story h1,
.about-story-page .founder-story h2,
.about-story-page .founder-story p {
  margin-top: 0;
}

.about-story-page .founder-story h1,
.about-story-page .founder-story h2 {
  text-wrap: balance;
}

/* Hero: the claim is immediate. The thread is atmosphere, not a second story. */
.about-story-page .founder-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: clamp(34px, 5vw, 80px);
  min-height: max(720px, 100svh);
  padding: clamp(138px, 16vh, 196px) clamp(24px, 5vw, 84px) clamp(54px, 7vh, 82px);
  overflow: hidden;
  background:
    radial-gradient(70% 58% at 78% 50%, rgba(155, 232, 121, .11), transparent 68%),
    var(--about-paper);
  border-bottom: 1px solid var(--about-line-dark);
  isolation: isolate;
}

.about-story-page .founder-hero__copy {
  position: relative;
  z-index: 3;
  grid-column: 1 / 11;
  align-self: center;
  min-width: 0;
}

.about-story-page .founder-hero h1 {
  max-width: 10.6ch;
  margin: 0;
  font-family: var(--brand-display, "Hanken Grotesk", sans-serif);
  font-size: clamp(68px, 8.9vw, 166px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.075em;
}

.about-story-page .founder-hero__line {
  display: block;
}

.about-story-page .founder-hero__line--quiet {
  color: rgba(16, 18, 15, .33);
}

.about-story-page .founder-hero__copy > p {
  max-width: 52ch;
  margin: clamp(34px, 4vw, 54px) 0 0;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 480;
  line-height: 1.5;
  letter-spacing: -.015em;
}

.about-story-page .founder-hero__actions {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--about-line-dark);
}

.about-story-page .founder-hero__actions > p {
  max-width: 37ch;
  margin: 0;
  color: rgba(16, 18, 15, .63);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 540;
  line-height: 1.46;
}

.about-story-page .founder-hero__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.about-story-page .founder-hero__visual {
  position: absolute;
  inset: 76px 0 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.about-story-page .founder-hero__thread {
  position: absolute;
  right: -5%;
  top: 8%;
  width: min(70vw, 1120px);
  height: 76%;
  overflow: visible;
  transform: rotate(-2deg);
}

.about-story-page .founder-hero__thread path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.about-story-page .founder-hero__thread-shadow {
  stroke: rgba(16, 18, 15, .13);
  stroke-width: 2;
}

.about-story-page .founder-hero__thread-live {
  stroke: var(--about-acid);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1900;
  stroke-dashoffset: 1900;
  filter: drop-shadow(0 0 12px rgba(197, 255, 50, .22));
}

.about-story-page .founder-hero__route {
  position: absolute;
  right: clamp(24px, 5vw, 84px);
  top: 50%;
  max-width: 18ch;
  color: rgba(16, 18, 15, .48);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 620;
  line-height: 1.35;
  transform: translateY(-50%);
}

/* Controls */
.about-story-page .founder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  color: var(--about-paper);
  background: var(--about-ink);
  border: 1px solid var(--about-ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color .24s ease,
    background-color .24s ease,
    border-color .24s ease,
    transform .4s var(--brand-ease, cubic-bezier(.22, 1, .36, 1));
}

.about-story-page .founder-button:hover {
  color: var(--about-ink);
  background: var(--about-electric);
  border-color: var(--about-electric);
  transform: translateY(-3px);
}

.about-story-page .founder-button--acid {
  color: var(--about-ink);
  background: var(--about-acid);
  border-color: var(--about-acid);
}

.about-story-page .founder-button--acid:hover {
  background: var(--about-electric);
  border-color: var(--about-electric);
}

.about-story-page .founder-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: opacity .2s ease;
}

.about-story-page .founder-text-link:hover {
  opacity: .55;
}

/* Journey: a sticky atmosphere behind ordinary, native-scrolling content. */
.about-story-page .founder-journey {
  position: relative;
  padding: 0;
  overflow: visible;
  color: var(--about-paper);
  background:
    radial-gradient(90% 66% at 50% 42%, rgba(155, 232, 121, .045), transparent 72%),
    var(--about-ink);
  isolation: isolate;
}

.about-story-page .founder-story.founder-origin::before {
  content: none;
}

.about-story-page .founder-journey__stage {
  position: sticky;
  top: 72px;
  z-index: 0;
  height: calc(100svh - 72px);
  margin-bottom: calc(-100svh + 72px);
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.about-story-page .founder-journey__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(244, 245, 240, .045) 50%, transparent 50.04%),
    linear-gradient(transparent 49.96%, rgba(244, 245, 240, .035) 50%, transparent 50.04%);
  background-size: clamp(70px, 7vw, 112px) clamp(70px, 7vw, 112px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 2%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 2%, transparent 74%);
  opacity: .72;
}

.about-story-page .founder-journey__word-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
  contain: layout paint style;
}

.about-story-page .founder-journey__word {
  display: block;
  color: var(--about-electric);
  font-family: var(--brand-display, "Hanken Grotesk", sans-serif);
  font-size: clamp(112px, 19vw, 350px);
  font-weight: 750;
  line-height: .72;
  letter-spacing: -.08em;
  opacity: var(--about-word-alpha);
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  backface-visibility: hidden;
}

.about-story-page .founder-journey__seam {
  position: absolute;
  left: 50%;
  top: 7%;
  bottom: 7%;
  width: 1px;
  background: rgba(244, 245, 240, .14);
}

.about-story-page .founder-journey__seam i {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(to bottom, var(--about-electric), var(--about-acid));
  box-shadow: 0 0 16px rgba(197, 255, 50, .22);
  transform: scaleY(var(--about-progress));
  transform-origin: center top;
}

.about-story-page .founder-journey__pulse {
  position: absolute;
  left: 50%;
  top: 7%;
  width: 11px;
  height: 11px;
  background: var(--about-acid);
  border: 3px solid var(--about-ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(197, 255, 50, .76), 0 0 24px rgba(197, 255, 50, .28);
  transform: translate3d(-50%, 0, 0);
}

.about-story-page .founder-journey__brand {
  position: absolute;
  right: clamp(24px, 5vw, 84px);
  bottom: clamp(26px, 4vw, 54px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--about-paper);
  font-size: 16px;
  font-weight: 730;
  letter-spacing: .16em;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.about-story-page .founder-journey__brand .brand-dots {
  display: inline-flex;
  gap: 5px;
}

.about-story-page .founder-journey__brand .brand-dots span {
  width: 7px;
  height: 7px;
  background: var(--about-acid);
  border-radius: 50%;
}

.about-story-page .founder-journey__beats {
  position: relative;
  z-index: 2;
}

.about-story-page .founder-journey__beat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-height: 86svh;
  padding: clamp(78px, 10vh, 116px) clamp(24px, 7vw, 116px);
}

.about-story-page .founder-journey__copy {
  grid-column: 1 / 7;
  max-width: 820px;
  opacity: .38;
  transition: opacity .52s ease;
}

.about-story-page .founder-journey__beat:nth-child(even) .founder-journey__copy {
  grid-column: 7 / 13;
  justify-self: end;
}

.about-story-page .founder-journey__beat.is-active .founder-journey__copy,
.about-story-page:not(.about-story-runtime) .founder-journey__copy {
  opacity: 1;
}

.about-story-page .founder-journey__copy h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--about-paper);
  font-family: var(--brand-display, "Hanken Grotesk", sans-serif);
  font-size: clamp(48px, 5.4vw, 94px);
  font-weight: 670;
  line-height: .9;
  letter-spacing: -.062em;
}

.about-story-page .founder-journey__copy p {
  max-width: 42ch;
  margin: clamp(26px, 3vw, 38px) 0 0;
  color: rgba(244, 245, 240, .7);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 460;
  line-height: 1.5;
  letter-spacing: -.014em;
}

.about-story-page .founder-journey[data-about-active="textile"] .founder-journey__word,
.about-story-page .founder-journey[data-about-active="presence"] .founder-journey__word {
  color: var(--about-acid);
}

.about-story-page .founder-journey[data-about-active="presence"] .founder-journey__brand {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity .55s ease, transform .7s var(--brand-ease, cubic-bezier(.22, 1, .36, 1));
}

/* Close: the decision, without a form or another information block. */
.about-story-page .founder-close {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(40px, 7vw, 108px);
  min-height: 78svh;
  padding: clamp(96px, 12vw, 178px) clamp(24px, 7vw, 116px);
  overflow: hidden;
  color: var(--about-paper);
  background: var(--about-ink);
  border-top: 1px solid var(--about-line-light);
  isolation: isolate;
}

.about-story-page .founder-story.founder-close::before {
  content: "";
  position: absolute;
  left: clamp(24px, 7vw, 116px);
  right: clamp(24px, 7vw, 116px);
  top: 0;
  z-index: -1;
  height: 4px;
  background: linear-gradient(90deg, var(--about-electric), var(--about-acid) 72%, transparent);
  transform: scaleX(.36);
  transform-origin: left;
}

.about-story-page .founder-close h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--about-paper);
  font-family: var(--brand-display, "Hanken Grotesk", sans-serif);
  font-size: clamp(54px, 6.7vw, 116px);
  font-weight: 680;
  line-height: .88;
  letter-spacing: -.065em;
}

.about-story-page .founder-close p {
  max-width: 44ch;
  margin: 30px 0 0;
  color: rgba(244, 245, 240, .66);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
}

.about-story-page .founder-close__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.about-story-page .founder-text-link--light {
  color: var(--about-paper);
}

/* Phone is a separate composition. One claim owns the screen at a time.
   The desktop thread and oversized stage word are intentionally removed:
   they competed with the story on a narrow viewport and read as duplicate copy. */
@media (max-width: 899px), (max-width: 1023px) and (pointer: coarse) {
  .about-story-page {
    --about-word-alpha: 0;
  }

  html.mobile-autopilot body.about-story-page .mobile-route-stitch {
    display: none;
  }

  .about-story-page main.founder-story {
    overflow: visible;
  }

  .about-story-page .founder-hero {
    display: flex;
    min-height: max(680px, 100svh);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding:
      calc(var(--mobile-nav-height, 62px) + clamp(42px, 8svh, 72px))
      max(22px, env(safe-area-inset-right))
      max(54px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
    background:
      radial-gradient(92% 54% at 86% 8%, rgba(155, 232, 121, .12), transparent 72%),
      var(--about-paper);
  }

  .about-story-page .founder-hero__copy {
    width: 100%;
  }

  .about-story-page .founder-hero h1 {
    max-width: 9.4ch;
    font-size: clamp(46px, 12.9vw, 60px);
    line-height: .92;
    letter-spacing: -.062em;
  }

  .about-story-page .founder-hero__copy > p {
    max-width: 33ch;
    margin-top: 32px;
    font-size: clamp(16px, 4.35vw, 18px);
    line-height: 1.48;
  }

  .about-story-page .founder-hero__actions {
    display: block;
    width: 100%;
    margin-top: clamp(42px, 7svh, 62px);
    padding-top: 22px;
  }

  .about-story-page .founder-hero__actions > p {
    max-width: 32ch;
    font-size: 15px;
  }

  .about-story-page .founder-hero__links {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .about-story-page .founder-hero__visual {
    display: none;
  }

  .about-story-page .founder-journey__stage {
    display: none;
    height: 0;
    margin: 0;
  }

  .about-story-page .founder-journey__beat {
    display: flex;
    min-height: clamp(540px, 72svh, 680px);
    align-items: center;
    padding:
      clamp(74px, 10svh, 96px)
      max(24px, env(safe-area-inset-right))
      clamp(70px, 9svh, 90px)
      max(24px, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(244, 245, 240, .1);
    background:
      radial-gradient(100% 72% at 92% 26%, rgba(155, 232, 121, 0), transparent 68%);
    transition: background-color .55s ease;
  }

  .about-story-page .founder-journey__beat.is-active {
    background:
      radial-gradient(100% 72% at 92% 26%, rgba(155, 232, 121, .075), transparent 68%);
  }

  .about-story-page .founder-journey__copy,
  .about-story-page .founder-journey__beat:nth-child(even) .founder-journey__copy {
    width: 100%;
    max-width: 520px;
    opacity: .34;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity .52s ease,
      transform .7s cubic-bezier(.22, 1, .36, 1);
  }

  .about-story-page .founder-journey__beat.is-active .founder-journey__copy {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .about-story-page .founder-journey__copy h2 {
    max-width: 12ch;
    font-size: clamp(40px, 10.9vw, 52px);
    line-height: .96;
    letter-spacing: -.052em;
  }

  .about-story-page .founder-journey__copy p {
    max-width: 34ch;
    margin-top: 28px;
    font-size: clamp(16px, 4.25vw, 18px);
    line-height: 1.5;
  }

  .about-story-page .founder-close {
    display: flex;
    min-height: clamp(620px, 82svh, 760px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 44px;
    padding:
      88px
      max(24px, env(safe-area-inset-right))
      max(116px, calc(84px + env(safe-area-inset-bottom)))
      max(24px, env(safe-area-inset-left));
  }

  .about-story-page .founder-close::before {
    right: 20px;
    left: 20px;
  }

  .about-story-page .founder-close h2 {
    max-width: 11.5ch;
    font-size: clamp(42px, 11.4vw, 56px);
    line-height: .94;
    letter-spacing: -.056em;
  }

  .about-story-page .founder-close p {
    max-width: 33ch;
    margin-top: 28px;
    font-size: 17px;
  }
}

@media (max-width: 430px) {
  .about-story-page .founder-hero__links {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .about-story-page .founder-button {
    min-height: 50px;
    padding: 0 21px;
  }

  .about-story-page .founder-journey__beat {
    min-height: 80svh;
  }

  :lang(fr) .about-story-page .founder-hero h1 {
    font-size: clamp(48px, 13.3vw, 66px);
  }

  :lang(fr) .about-story-page .founder-journey__copy h2 {
    font-size: clamp(41px, 11.7vw, 56px);
  }
}

@media (max-width: 899px) and (orientation: landscape) {
  .about-story-page .founder-hero {
    min-height: max(470px, 100svh);
    padding-top: 82px;
  }

  .about-story-page .founder-hero h1 {
    max-width: 9ch;
    font-size: clamp(46px, 7.6vw, 68px);
  }

  .about-story-page .founder-hero__copy > p {
    max-width: 43ch;
    font-size: 15px;
  }

  .about-story-page .founder-hero__actions {
    display: flex;
    margin-top: 24px;
  }

  .about-story-page .founder-hero__links {
    margin-top: 0;
  }

  .about-story-page .founder-journey__beat {
    min-height: max(390px, 100svh);
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .about-story-page .founder-journey__copy h2 {
    max-width: 15ch;
    font-size: clamp(38px, 6.8vw, 54px);
  }

  .about-story-page .founder-journey__copy p {
    max-width: 45ch;
    font-size: 15px;
  }
}

@media (hover: none) {
  .about-story-page .founder-button:hover {
    color: var(--about-paper);
    background: var(--about-ink);
    border-color: var(--about-ink);
    transform: none;
  }

  .about-story-page .founder-button--acid:hover {
    color: var(--about-ink);
    background: var(--about-acid);
    border-color: var(--about-acid);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story-page .founder-hero__thread-live {
    stroke-dashoffset: 0;
  }

  .about-story-page .founder-button,
  .about-story-page .founder-text-link,
  .about-story-page .founder-journey__copy,
  .about-story-page .founder-journey__brand {
    transition: none;
  }

  .about-story-page .founder-journey__stage {
    display: none;
  }

  .about-story-page .founder-journey__beat {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .about-story-page .founder-journey__copy,
  .about-story-page .founder-journey__beat:nth-child(even) .founder-journey__copy {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
