.hero {
  padding: 24px 0 16px;
}

.hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--heroRing);
  box-shadow: var(--shadowCard);
  isolation: isolate;
  --pos: var(--heroPos);
}

.hero-media,
.hero-shade,
.hero-shade-bottom {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 1;
}

.hero-shade,
.hero-shade-bottom {
  z-index: 2;
  pointer-events: none;
}

.hero-shade {
  background: linear-gradient(
    var(--heroGradDir),
    rgba(61, 139, 139, 0.95) 0%,
    rgba(175, 206, 206, 0.45) 50%,
    rgba(61, 139, 139, 0) 100%
  );
}

.hero-shade-bottom {
  background: linear-gradient(180deg, transparent 50%, rgba(1, 49, 47, 0.1));
}

.hero-copy {
  position: absolute;
  left: var(--heroLeft);
  top: 0;
  bottom: 0;
  z-index: 3;
  width: var(--heroContentW);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-title {
  margin: 8px 0 var(--heroGap);
  font-size: var(--heroH1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 700;
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: var(--heroP);
  line-height: 1.55;
  color: #fff;
  max-width: 466px;
}

.cards3 {
  display: grid;
  grid-template-columns: var(--cols3);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-media.is-offset {
  --pos: calc(50% - 36px) 50%;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 24px;
  margin: 8px 0 10px;
  color: var(--text);
}

.card-copy {
  margin: 0 0 16px;
  color: var(--textMuted);
}

.card-link {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: var(--emailLS);
}

.icon-arrow {
  display: inline-block;
  vertical-align: -3px;
  flex: 0 0 auto;
}

.scale {
  width: var(--wrapW);
  margin: 0 auto;
  padding-left: var(--statPadLeft);
  padding-right: var(--statPadRight);
  display: grid;
  grid-template-columns: var(--bigstat);
  gap: 60px;
  align-items: start;
}

.scale-lead {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  color: var(--accent);
  font-weight: 700;
}

.scale-stat {
  font-size: var(--bBigStat);
  line-height: 0.9;
  letter-spacing: -0.005em;
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

.scale-subhead {
  margin: 0 0 0.83em;
  padding-top: 12px;
  font-size: 30px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.15;
}

.scale-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--textMuted);
}

.photo-grid {
  display: var(--scaleGrid);
  grid-template-columns: var(--photoCols);
  gap: 14px;
  aspect-ratio: 4 / 3;
  align-self: start;
}

.photo-frame,
.photo-stack {
  position: relative;
  height: 100%;
  min-height: 0;
}

.photo-frame {
  border-radius: 16px;
  overflow: hidden;
}

.photo-frame.is-wide {
  --pos: calc(50% - 108px) 50%;
}

.photo-frame.is-shift {
  --pos: calc(50% + 64px) 50%;
}

.photo-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .hero-card {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(1, 49, 47, 0.88) 0%,
      rgba(61, 139, 139, 0.78) 48%,
      rgba(61, 139, 139, 0) 100%
    );
  }

  .hero-copy {
    position: relative;
    left: auto;
    width: 100%;
    justify-content: flex-start;
    padding: 28px 18px 32px;
    min-height: 400px;
  }

  .hero-title {
    line-height: 1.15;
    margin: 0 0 16px;
  }

  .photo-grid {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    height: auto;
  }
}
