/* Homepage commercial clarity and founder proof.
   Loaded only by the EN/RU homepage wrappers. */

.homepage-commercial-title { text-wrap: balance; }
#hero .hero-label { max-width: 100%; line-height: 1.5; }

#manifest .manifest-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
}
#manifest .m-desc { margin-bottom: 24px; }
#manifest .m-outcome {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(93, 226, 255, 0.18);
  color: rgba(189, 238, 249, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.085em;
  line-height: 1.55;
  text-transform: uppercase;
}

.homepage-founder-proof {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 7vw, 106px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18% 28%, rgba(93, 226, 255, 0.075), transparent 30%),
    radial-gradient(circle at 82% 70%, rgba(184, 167, 220, 0.045), transparent 34%),
    linear-gradient(180deg, #07090b 0%, #080a0d 100%);
}
.homepage-founder-proof::before,
.homepage-founder-proof::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}
.homepage-founder-proof::before {
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
}
.homepage-founder-proof::after {
  top: 50%;
  left: 118px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(93, 226, 255, 0.08);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 54px rgba(93, 226, 255, 0.018), 0 0 90px rgba(93, 226, 255, 0.045);
}
.homepage-founder-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 80px));
  min-width: 0;
  margin-inline: auto;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}
.homepage-founder-photo-wrap { position: relative; min-width: 0; }
.homepage-founder-photo-wrap::before {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 1px solid rgba(93, 226, 255, 0.16);
  border-radius: 26px;
  content: "";
  pointer-events: none;
  transform: rotate(-3deg);
}
.homepage-founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.9) brightness(0.9) contrast(1.03);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}
.homepage-founder-copy { min-width: 0; max-width: 850px; }
.homepage-founder-eyebrow {
  margin: 0 0 16px;
  color: var(--ai-cyan, #5de2ff);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.homepage-founder-copy h2 {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 820;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}
.homepage-founder-scope {
  margin: 20px 0 0;
  color: rgba(142, 231, 255, 0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}
.homepage-founder-body {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.72;
}
.homepage-founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.homepage-founder-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid rgba(93, 226, 255, 0.42);
  color: #f7fbfc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}
.homepage-founder-link--secondary {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
}
.homepage-founder-link:focus-visible {
  outline: 2px solid var(--ai-cyan, #5de2ff);
  outline-offset: 4px;
}

.portfolio-entry-projects li.homepage-project-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.portfolio-entry-projects .homepage-project-case { min-width: 0; }
.portfolio-entry-projects .homepage-project-case small { text-align: right; }
.portfolio-entry-projects .homepage-project-live {
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 9px 0;
  color: rgba(201, 225, 232, 0.76);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.portfolio-entry-projects .homepage-project-live::before,
.portfolio-entry-projects .homepage-project-live::after { content: none !important; }

@media (hover: hover) and (pointer: fine) {
  .homepage-founder-link:hover {
    border-color: var(--ai-cyan, #5de2ff);
    background: rgba(93, 226, 255, 0.08);
  }
  .homepage-founder-link--secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
  }
  .portfolio-entry-projects .homepage-project-live:hover {
    color: var(--portfolio-entry-cyan, #72d8f0);
  }
}

@media (min-width: 981px) {
  .homepage-commercial-title {
    max-width: 11.8ch !important;
    font-size: clamp(58px, 4.65vw, 76px) !important;
    line-height: 0.96 !important;
  }
  body.lang-ru .homepage-commercial-title {
    max-width: 12.6ch !important;
    font-size: clamp(54px, 4.3vw, 72px) !important;
    line-height: 0.99 !important;
  }
}

@media (max-width: 980px) {
  .homepage-commercial-title,
  body.lang-ru .homepage-commercial-title {
    width: 100% !important;
    max-width: 11.8ch !important;
    font-size: clamp(34px, 9vw, 56px) !important;
    line-height: 0.99 !important;
  }
  body.lang-ru .homepage-commercial-title {
    max-width: 12.8ch !important;
    font-size: clamp(36px, 8.8vw, 58px) !important;
    line-height: 1.02 !important;
  }
  #manifest .manifest-card { min-height: 0; }
  .homepage-founder-shell {
    width: min(100% - 48px, 820px);
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 30px;
  }
  .homepage-founder-proof::after {
    left: 40px;
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 700px) {
  #hero .hero-label { letter-spacing: 0.14em; }
  #manifest .m-outcome { padding-top: 17px; font-size: 10.5px; }
  .homepage-founder-proof { padding: 64px 0; }
  .homepage-founder-proof::after {
    top: 92px;
    left: auto;
    right: -82px;
    width: 220px;
    height: 220px;
    transform: none;
  }
  .homepage-founder-shell {
    width: min(100% - 40px, 620px);
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }
  .homepage-founder-photo-wrap { width: 104px; }
  .homepage-founder-photo-wrap::before {
    inset: -6px;
    border-radius: 20px;
  }
  .homepage-founder-photo { border-radius: 17px; }
  .homepage-founder-copy { width: 100%; max-width: none; }
  .homepage-founder-copy h2 {
    max-width: 15ch;
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1.01;
  }
  .homepage-founder-scope {
    margin-top: 16px;
    font-size: 10px;
    letter-spacing: 0.075em;
  }
  .homepage-founder-body {
    margin-top: 18px;
    font-size: 15.5px;
  }
  .homepage-founder-links {
    width: 100%;
    margin-top: 24px;
  }
  .homepage-founder-link { flex: 1 1 180px; }
  .portfolio-entry-projects li.homepage-project-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .portfolio-entry-projects .homepage-project-case small { text-align: left; }
  .portfolio-entry-projects .homepage-project-live {
    min-height: 44px;
    margin-left: 22px;
    padding: 0 0 12px;
    align-items: center !important;
    justify-content: flex-start;
    flex-direction: row !important;
  }
}

@media (max-width: 380px) {
  .homepage-founder-shell { width: calc(100% - 32px); }
  .homepage-founder-photo-wrap { width: 92px; }
  .homepage-founder-copy h2 {
    max-width: none;
    font-size: clamp(31px, 9.4vw, 38px);
  }
  .homepage-founder-link { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-founder-proof *,
  .homepage-founder-proof *::before,
  .homepage-founder-proof *::after,
  .portfolio-entry-projects .homepage-project-live {
    animation: none !important;
    transition: none !important;
  }
}
