/* Hero homepage — HTML profile cards inside iPhone frame (scaled from card.html 360px → 280px) */
.hero-profile-cards-mount {
  position: absolute;
  top: -1.5rem;
  right: 0;
  width: 42%;
  max-width: 280px;
  aspect-ratio: 779 / 1594;
  height: auto;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.hero-profile-cards-mount .hero-card-in-phone {
  --hero-s: 0.7778;
  --screen-top: 2.8%;
  --screen-left: 4.9%;
  --screen-right: 5.1%;
  --screen-bottom: 2.5%;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-profile-cards-mount .hero-card-in-phone__screen {
  position: absolute;
  top: var(--screen-top);
  left: var(--screen-left);
  right: var(--screen-right);
  bottom: var(--screen-bottom);
  overflow: hidden;
  border-radius: 5.5% / 2.8%;
  z-index: 1;
}

.hero-profile-cards-mount .hero-card-in-phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

.hero-profile-cards-mount .hero-card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.hero-profile-cards-mount .hero-card-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Scaled profile card — all sizes × --hero-s */
.hero-profile-cards-mount .hero-profile-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  font-family: "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: calc(16px * var(--hero-s));
  scrollbar-width: none;
}

.hero-profile-cards-mount .hero-profile-card::-webkit-scrollbar { display: none; }

.hero-profile-cards-mount .hero-profile-cover {
  position: relative;
  height: calc(200px * var(--hero-s));
  overflow: hidden;
  background: #000;
}

.hero-profile-cards-mount .hero-profile-cover video,
.hero-profile-cards-mount .hero-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-profile-cards-mount .hero-profile-cover img.hero-cover-static {
  filter: grayscale(100%) contrast(1.05);
}

.hero-profile-cards-mount .hero-profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-profile-cards-mount .hero-profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: calc(-42px * var(--hero-s));
  position: relative;
  z-index: 2;
}

.hero-profile-cards-mount .hero-profile-avatar {
  width: calc(84px * var(--hero-s));
  height: calc(84px * var(--hero-s));
  border-radius: 50%;
  border: calc(3px * var(--hero-s)) solid rgba(255, 255, 255, 0.9);
  object-fit: contain;
  object-position: center bottom;
  background: #334155;
  box-shadow: 0 calc(8px * var(--hero-s)) calc(24px * var(--hero-s)) rgba(0, 0, 0, 0.25);
}

.hero-profile-cards-mount .hero-profile-glass {
  margin: calc(10px * var(--hero-s)) calc(14px * var(--hero-s)) 0;
  padding: calc(18px * var(--hero-s)) calc(16px * var(--hero-s)) calc(14px * var(--hero-s));
  border-radius: calc(22px * var(--hero-s));
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  text-align: center;
}

.hero-profile-cards-mount .hero-profile-brand,
.hero-profile-cards-mount .hero-profile-name,
.hero-profile-cards-mount .hero-profile-title,
.hero-profile-cards-mount .hero-profile-location {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-weight: 900;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0.35px 0 0 currentColor,
    -0.35px 0 0 currentColor,
    0 0.35px 0 currentColor;
}

.hero-profile-cards-mount .hero-profile-brand {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: calc(1.28rem * var(--hero-s));
  font-weight: 900 !important;
  font-style: italic;
  font-synthesis: weight style;
  letter-spacing: 0.07em;
  line-height: 1.1;
  margin-bottom: calc(5px * var(--hero-s));
  color: #fff !important;
}

.hero-profile-cards-mount .hero-profile-name {
  font-size: calc(0.82rem * var(--hero-s));
  opacity: 1;
  margin-bottom: calc(2px * var(--hero-s));
  line-height: 1.2;
}

.hero-profile-cards-mount .hero-profile-title,
.hero-profile-cards-mount .hero-profile-location {
  font-size: calc(0.6rem * var(--hero-s));
  opacity: 0.88;
  line-height: 1.2;
}

.hero-profile-cards-mount .hero-profile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: calc(12px * var(--hero-s)) 0 calc(10px * var(--hero-s));
}

.hero-profile-cards-mount .hero-profile-bio {
  font-size: calc(0.72rem * var(--hero-s));
  line-height: 1.45;
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-profile-cards-mount .hero-profile-readmore {
  display: inline-block;
  margin-top: calc(6px * var(--hero-s));
  font-size: calc(0.72rem * var(--hero-s));
  text-decoration: underline;
  opacity: 0.9;
}

.hero-profile-cards-mount .hero-profile-services {
  padding: calc(14px * var(--hero-s)) calc(14px * var(--hero-s)) calc(20px * var(--hero-s));
}

.hero-profile-cards-mount .hero-profile-services h3 {
  font-size: calc(0.95rem * var(--hero-s));
  font-weight: 700;
  margin-bottom: calc(10px * var(--hero-s));
  color: #fff;
}

.hero-profile-cards-mount .hero-service-item {
  display: grid;
  grid-template-columns: calc(56px * var(--hero-s)) 1fr;
  gap: calc(10px * var(--hero-s));
  padding: calc(10px * var(--hero-s));
  margin-bottom: calc(8px * var(--hero-s));
  border-radius: calc(16px * var(--hero-s));
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.hero-profile-cards-mount .hero-service-item img {
  width: calc(56px * var(--hero-s));
  height: calc(56px * var(--hero-s));
  border-radius: calc(10px * var(--hero-s));
  object-fit: cover;
}

.hero-profile-cards-mount .hero-service-title {
  font-size: calc(0.78rem * var(--hero-s));
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: calc(2px * var(--hero-s));
  color: #fff !important;
}

.hero-profile-cards-mount .hero-service-desc {
  font-size: calc(0.65rem * var(--hero-s));
  opacity: 0.75;
  line-height: 1.35;
  margin-bottom: calc(8px * var(--hero-s));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-profile-cards-mount .hero-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--hero-s));
}

.hero-profile-cards-mount .hero-service-tag {
  font-size: calc(0.58rem * var(--hero-s));
  padding: calc(4px * var(--hero-s)) calc(8px * var(--hero-s));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.hero-profile-cards-mount .hero-service-tag.in-person {
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
}

/* Character avatar placeholder (industries without hero video) */
.hero-carousel-avatar-img {
  transition-property: opacity, scale, translate;
  transition-duration: 1.35s, 500ms, 500ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.16, 1, 0.3, 1), cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}

.landing-cta-gradient .group.relative:hover .hero-carousel-avatar-img {
  scale: 1.08;
}

@media (prefers-reduced-motion: reduce) {
  .hero-profile-cards-mount .hero-card-slide,
  .hero-carousel-avatar-img {
    transition: none;
  }
}
