/* Lightweight structural styles used only by the About page. */
body.company-refresh {
  background: var(--design-paper, #f5f5f5);
  color: var(--design-ink, #333333);
}

.company-refresh .company-main {
  position: relative;
  z-index: 1;
  overflow: clip;
  background: transparent;
}

.company-shell {
  width: min(100% - clamp(2rem, 7vw, 7rem), 90rem);
  margin-inline: auto;
}

.company-section {
  position: relative;
  padding: var(--design-section-space, clamp(6.5rem, 11vw, 11rem)) 0;
}

.company-hero {
  position: relative;
  isolation: isolate;
}

.founder-stage,
.company-profile-stage {
  background: transparent;
}

.founder-stage {
  content-visibility: auto;
  contain-intrinsic-size: auto 112rem;
}

.founder-stack {
  display: grid;
  gap: clamp(7rem, 14vw, 14rem);
}

.founder-profile {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(25rem, 1.18fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.founder-profile:nth-child(even) {
  grid-template-columns: minmax(25rem, 1.18fr) minmax(18rem, 0.82fr);
}

.founder-profile:nth-child(even) .founder-profile__portrait {
  order: 2;
}

.founder-profile__portrait {
  position: relative;
  margin: 0;
  perspective: 1200px;
  outline: none;
}

.founder-profile__portrait::before {
  position: absolute;
  z-index: -1;
  inset: -5% 7% 5% -6%;
  border: 1px solid rgba(1, 82, 131, 0.16);
  border-radius: 49% 51% 42% 58% / 58% 43% 57% 42%;
  content: "";
}

.founder-profile:nth-child(even) .founder-profile__portrait::before {
  inset: 5% -6% -5% 7%;
  border-color: rgba(255, 89, 89, 0.18);
  border-radius: 61% 39% 51% 49% / 44% 61% 39% 56%;
}

.founder-profile__flip {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.founder-profile__portrait:hover .founder-profile__flip,
.founder-profile__portrait:focus-visible .founder-profile__flip {
  transform: rotateY(180deg);
}

.founder-profile__portrait:focus-visible {
  outline: 2px solid var(--design-blue, #015283);
  outline-offset: 0.45rem;
  border-radius: 1.25rem;
}

.founder-profile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 2rem 6rem rgba(51, 51, 51, 0.12);
}

.founder-profile__image--back {
  transform: rotateY(180deg);
}

.founder-profile__body {
  padding-top: clamp(0.5rem, 3vw, 3rem);
}

.founder-profile__role {
  margin: 0 0 0.85rem;
  color: var(--design-blue, #015283);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.founder-profile__name {
  margin: 0 0 clamp(2.2rem, 5vw, 4.5rem);
  color: var(--design-ink, #333333);
  font-size: clamp(2rem, 3.4vw, 4rem);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.founder-profile__name span {
  display: block;
  margin-top: 0.55rem;
  color: var(--design-ink-muted, rgba(51, 51, 51, 0.56));
  font-family: var(--design-label-font, var(--font-heiti, sans-serif));
  font-size: 0.24em;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.founder-profile__body p:not([class]) {
  margin: 0;
  color: var(--design-copy-color, rgba(51, 51, 51, 0.74));
  font-size: var(--design-body-small-size, clamp(0.88rem, 1.05vw, 1rem));
  font-weight: var(--design-body-weight, 500);
  letter-spacing: var(--design-body-letter-spacing, 0.075em);
  line-height: var(--design-body-line-height, 2.2);
}

.company-profile-stage {
  content-visibility: auto;
  contain-intrinsic-size: auto 38rem;
}

.company-profile-list {
  margin: 0;
  border-top: 1px solid var(--design-line, rgba(51, 51, 51, 0.14));
}

.company-profile-list > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.36fr) 1fr;
  align-items: baseline;
  gap: 2rem;
  padding: clamp(1.6rem, 2.6vw, 2.4rem) 0;
  border-bottom: 1px solid var(--design-line, rgba(51, 51, 51, 0.14));
}

.company-profile-list dt,
.company-profile-list dd {
  margin: 0;
  letter-spacing: 0.09em;
  line-height: 1.8;
}

.company-profile-list dt {
  color: rgba(51, 51, 51, 0.52);
  font-size: 0.76rem;
}

.company-profile-list dd {
  color: var(--design-ink, #333333);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 600;
}

/* About reveal effects avoid blur filters and animate only compositor-friendly properties. */
.company-refresh [data-reveal] {
  filter: none;
  transform: translateY(1rem);
  transition:
    opacity var(--design-motion-medium, 640ms) var(--design-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform var(--design-motion-medium, 640ms) var(--design-ease, cubic-bezier(0.22, 1, 0.36, 1));
  transition-delay: var(--reveal-delay, 0ms);
}

.company-refresh [data-reveal].is-revealed {
  filter: none;
  transform: translateY(0);
}

@media (width < 768px) {
  .founder-profile,
  .founder-profile:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .founder-profile {
    gap: 2.6rem;
  }
}

@media (width >= 768px) and (width < 1200px) {
  .founder-profile {
    grid-template-columns: minmax(14rem, 0.82fr) minmax(18rem, 1.18fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .founder-profile:nth-child(even) {
    grid-template-columns: minmax(18rem, 1.18fr) minmax(14rem, 0.82fr);
  }

  .founder-profile__portrait {
    width: min(100%, 28rem);
  }

  .founder-profile:nth-child(even) .founder-profile__portrait {
    order: 2;
  }
}

@media (width < 768px) {
  .company-shell {
    width: min(100% - 2rem, 90rem);
  }
}

@media (max-width: 700px) {
  .mvv-asset-stage {
    padding-block: var(--design-section-space-mobile, 5.8rem);
  }
}

@media (width < 768px) {
  .founder-stage {
    padding-block: var(--design-section-space-mobile, 5.8rem);
  }
}

@media (width < 768px) {
  .company-section:where(:not(.mvv-asset-stage, .founder-stage)) {
    padding-block: var(--design-section-space-mobile, 5.8rem);
  }

  .founder-stack {
    gap: 6.5rem;
  }

  .founder-profile__portrait,
  .founder-profile:nth-child(even) .founder-profile__portrait {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  .founder-profile:nth-child(even) .founder-profile__portrait {
    order: initial;
  }

  .founder-profile__body,
  .founder-profile:nth-child(even) .founder-profile__body {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .founder-profile__body p:not([class]) {
    font-size: 0.83rem;
    line-height: 2.1;
  }

  .company-profile-list > div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-profile__flip {
    transition-duration: 1ms;
  }

  .company-refresh [data-reveal] {
    transform: none;
    transition-duration: 1ms;
  }
}
