/* Homepage — Our Story */
#esc .origin {
  --story-purple: #a56cff;
  --story-purple-soft: #c5a4ff;
  --story-line: rgba(159, 102, 255, 0.34);
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(54px, 4.5vw, 72px) 5%;
  background: transparent;
  overflow: visible;
}

/* Avoid double-spacing where the neighboring sections already have padding. */
#esc #how {
  padding-bottom: clamp(50px, 4vw, 64px);
}

#esc #who {
  padding-top: clamp(50px, 4vw, 64px);
}

#esc .origin::before,
#esc .origin::after {
  display: none;
}

#esc .origin-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 460px;
  grid-template-areas:
    "content timeline credentials"
    "proof proof credentials";
  column-gap: 36px;
  row-gap: 26px;
  align-items: center;
}

#esc .origin-content {
  grid-area: content;
  min-width: 0;
}

#esc .origin-eyebrow {
  margin-bottom: 22px;
  color: var(--story-purple-soft);
  font-size: 13px;
  letter-spacing: 0.17em;
}

#esc .origin-eyebrow::before {
  content: "// ";
}

#esc .origin h2 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #f5f3fa;
  font-size: clamp(42px, 3.2vw, 54px);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

#esc .origin h2 br {
  display: none;
}

#esc .origin h2 em {
  display: block;
  margin-top: 9px;
  color: var(--story-purple);
  font-style: normal;
}

#esc .origin-body {
  max-width: 700px;
  margin-bottom: 19px;
  color: #b9b6c4;
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 350;
  line-height: 1.62;
}

#esc .origin-body strong {
  color: #f0edf6;
}

#esc .origin-body a,
#esc .origin-body em {
  color: var(--story-purple-soft);
  font-style: normal;
  font-weight: 600;
}

#esc .origin-stamp {
  max-width: 720px;
  margin-top: 25px;
  padding: 17px 22px 17px 30px;
  border: 1px solid rgba(151, 101, 240, 0.35);
  border-left: 3px solid var(--story-purple);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(20, 18, 31, 0.92), rgba(12, 12, 20, 0.8));
  color: #dedbe5;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

#esc .origin-stamp em {
  color: var(--story-purple);
  font-style: normal;
  font-weight: 650;
}

#esc .origin-attribution {
  display: block;
  margin-top: 4px;
  color: #dedbe5;
}

#esc .origin-stamp::first-letter {
  color: var(--story-purple-soft);
}

#esc .origin-timeline {
  grid-area: timeline;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 590px;
  padding: 56px 0 56px 34px;
}

#esc .origin-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(151, 101, 240, 0.7) 12%, rgba(151, 101, 240, 0.7) 88%, transparent);
}

#esc .origin-milestone {
  position: relative;
}

#esc .origin-milestone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -41px;
  width: 14px;
  height: 14px;
  border: 4px solid rgba(165, 108, 255, 0.18);
  border-radius: 50%;
  background: var(--story-purple);
  box-shadow: 0 0 24px rgba(157, 90, 255, 0.75);
}

#esc .origin-milestone h3 {
  margin: 0 0 8px;
  color: var(--story-purple);
  font-family: "Space Mono", monospace;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

#esc .origin-milestone p {
  margin: 0;
  color: #aaa6b5;
  font-size: 14px;
  line-height: 1.45;
}

#esc .origin-credentials {
  grid-area: credentials;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

#esc .cred-card.founder-card {
  display: grid;
  grid-template-columns: minmax(185px, 0.86fr) minmax(245px, 1.14fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 0;
  position: relative;
  min-height: 315px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  isolation: isolate;
}

#esc .cred-card.founder-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 20px;
  left: 39%;
  z-index: -1;
  border: 1px solid rgba(165, 108, 255, 0.58);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(19, 18, 31, 0.98), rgba(10, 11, 18, 0.97));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

#esc .cred-card.founder-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

#esc .cred-card.founder-card:hover::after {
  border-color: rgba(181, 128, 255, 0.88);
  box-shadow: 0 18px 52px rgba(83, 40, 153, 0.22), inset 0 1px rgba(255, 255, 255, 0.045);
}

#esc .founder-photo,
#esc .founder-lead .founder-photo,
#esc .founder-sub .founder-photo {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 315px;
  aspect-ratio: auto;
  margin: 0;
  border: 1px solid rgba(174, 109, 255, 0.86);
  border-radius: 12px;
  background: #171421;
  box-shadow: 0 0 0 1px rgba(165, 108, 255, 0.14), 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

#esc .founder-photo img {
  object-position: center 18%;
}

#esc .founder-sub .founder-photo img {
  object-position: center 12%;
}

#esc .cred-card .cred-tag,
#esc .cred-card .cred-num,
#esc .cred-card .cred-label,
#esc .cred-card .li-link {
  grid-column: 2;
  position: relative;
  z-index: 1;
  margin-left: 0;
}

#esc .cred-card .cred-tag {
  align-self: end;
  padding: 45px 24px 0;
  color: var(--story-purple-soft);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.085em;
}

#esc .cred-card .cred-num {
  margin-bottom: 0;
  padding: 10px 24px 0;
  color: var(--story-purple);
  font-size: clamp(29px, 2.25vw, 38px);
  font-weight: 700;
  line-height: 1;
}

#esc .cred-card .cred-label {
  align-self: start;
  padding: 14px 24px 12px;
  color: #b9b5c4;
  font-size: 13px;
  line-height: 1.58;
}

#esc .cred-card .cred-label strong {
  color: #e6e2ed;
}

#esc .cred-card .cred-label a {
  color: var(--story-purple-soft);
}

#esc .cred-card .li-link {
  justify-self: start;
  align-self: start;
  margin: 0 24px 40px;
  padding: 10px 13px;
  border-color: rgba(165, 108, 255, 0.45);
  color: var(--story-purple-soft);
  font-size: 11px;
  white-space: nowrap;
}

#esc .cred-card .li-link:hover,
#esc .cred-card .li-link:focus-visible {
  border-color: var(--story-purple);
  background: rgba(165, 108, 255, 0.1);
  color: #f3ebff;
  outline: none;
}

#esc .origin-proof-grid {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 2px;
}

#esc .origin-proof {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 84px;
  padding: 17px 20px;
  border: 1px solid rgba(155, 104, 238, 0.36);
  border-radius: 10px;
  background: linear-gradient(130deg, rgba(21, 19, 33, 0.88), rgba(12, 12, 20, 0.72));
}

#esc .origin-proof svg {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-right: 16px;
  fill: none;
  stroke: var(--story-purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(165, 108, 255, 0.35));
}

#esc .origin-proof svg path:not([d^="M7 2"]):not([d^="M3.5"]):not([d^="M15"]):not([d^="M16.5"]) {
  vector-effect: non-scaling-stroke;
}

#esc .origin-proof span {
  min-width: 0;
}

#esc .origin-proof strong,
#esc .origin-proof small {
  display: block;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
}

#esc .origin-proof strong {
  color: var(--story-purple-soft);
  font-size: 13px;
  line-height: 1.35;
}

#esc .origin-proof small {
  margin-top: 5px;
  color: #9c97ac;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.055em;
}

@media (max-width: 1240px) {
  #esc .origin-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    grid-template-areas:
      "content credentials"
      "timeline timeline"
      "proof proof";
    align-items: start;
  }

  #esc .origin-timeline {
    flex-direction: row;
    min-height: 0;
    padding: 44px 0 6px;
  }

  #esc .origin-timeline::before {
    top: 12px;
    right: 8.33%;
    bottom: auto;
    left: 8.33%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(151, 101, 240, 0.7) 12%, rgba(151, 101, 240, 0.7) 88%, transparent);
  }

  #esc .origin-milestone {
    flex: 1 1 0;
    padding: 0 clamp(8px, 2.5vw, 34px);
    text-align: center;
  }

  #esc .origin-milestone::before {
    top: -39px;
    left: calc(50% - 11px);
  }

  #esc .origin-milestone h3 br {
    display: none;
  }

  #esc .cred-card.founder-card {
    grid-template-columns: minmax(160px, 0.8fr) minmax(230px, 1.2fr);
  }
}

@media (max-width: 900px) {
  #esc .origin {
    padding: 56px 6%;
  }

  #esc .origin-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "timeline"
      "credentials"
      "proof";
    row-gap: 46px;
  }

  #esc .origin-content,
  #esc .origin-body,
  #esc .origin-stamp {
    max-width: none;
  }

  #esc .origin-credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #esc .cred-card.founder-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 0;
    border: 1px solid rgba(165, 108, 255, 0.45);
    border-radius: 12px;
    background: linear-gradient(150deg, rgba(19, 18, 31, 0.96), rgba(10, 11, 18, 0.96));
    overflow: hidden;
  }

  #esc .cred-card.founder-card::after {
    display: none;
  }

  #esc .founder-photo,
  #esc .founder-lead .founder-photo,
  #esc .founder-sub .founder-photo {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 16 / 12;
    border: 0;
    border-bottom: 1px solid rgba(165, 108, 255, 0.35);
    border-radius: 0;
  }

  #esc .founder-photo img,
  #esc .founder-sub .founder-photo img {
    object-position: center 20%;
  }

  #esc .cred-card .cred-tag,
  #esc .cred-card .cred-num,
  #esc .cred-card .cred-label,
  #esc .cred-card .li-link {
    grid-column: 1;
  }

  #esc .cred-card .cred-tag {
    padding: 22px 22px 0;
  }

  #esc .cred-card .cred-num {
    padding: 10px 22px 0;
  }

  #esc .cred-card .cred-label {
    padding: 13px 22px 18px;
  }

  #esc .cred-card .li-link {
    margin: 0 22px 22px;
  }
}

@media (max-width: 640px) {
  #esc .origin {
    padding: 52px 6%;
  }

  #esc .origin h2 {
    font-size: clamp(35px, 11vw, 48px);
    line-height: 1.02;
  }

  #esc .origin-timeline {
    flex-direction: column;
    gap: 32px;
    padding: 2px 0 2px 30px;
  }

  #esc .origin-timeline::before {
    top: 4px;
    right: auto;
    bottom: 4px;
    left: 1px;
    width: 1px;
    height: auto;
    background: linear-gradient(transparent, rgba(151, 101, 240, 0.72) 10%, rgba(151, 101, 240, 0.72) 90%, transparent);
  }

  #esc .origin-milestone {
    padding: 0;
    text-align: left;
  }

  #esc .origin-milestone::before {
    top: 2px;
    left: -37px;
  }

  #esc .origin-milestone h3 br {
    display: none;
  }

  #esc .origin-credentials,
  #esc .origin-proof-grid {
    grid-template-columns: 1fr;
  }

  #esc .origin-proof {
    min-height: 76px;
  }

  #esc .origin-stamp {
    padding: 17px 18px 17px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #esc .cred-card.founder-card::after,
  #esc .cred-card .li-link {
    transition: none;
  }
}
