.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 124px var(--pad) 44px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

/* Full-screen abstract architectural glass planes (SVG) */
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-geo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Single editorial stage — no rigid columns */
.hero-compose {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: auto;
  flex: 1;
  min-height: calc(100svh - 180px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  top: 80px;
  width: min(620px, 38vw);
  max-width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 4vw, 56px);
  container-type: inline-size;
}

.hero h1 {
  margin-top: 24px;
  font-size: var(--fs-hero);
  line-height: .92;
  font-weight: 300;
  letter-spacing: -.06em;
}

html[lang="uk"] .hero h1 {
  letter-spacing: -.05em;
}

.headline-line {
  display: block;
  overflow: hidden;
  padding: 0 .08em .08em 0;
}

.headline-line i {
  display: block;
  font-style: normal;
}

.hero h1 .headline-line:last-child {
  color: var(--blue-dark);
}

.hero-lead {
  max-width: 28em;
  margin-top: 30px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -.03em;
  color: var(--blue-dark);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.hero-link {
  color: var(--black);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -.02em;
  transition: color .25s ease;
}

.hero-link:hover {
  color: var(--blue-dark);
}

/* —— Project gallery: cascading horizontal stack —— */
.hero-gallery {
  --card-w: clamp(250px, 23vw, 340px);
  --card-overlap: calc(var(--card-w) * .18);
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  left: auto;
  bottom: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(64%, calc(var(--card-w) * 3 - var(--card-overlap) * 2 + 12px));
  max-width: 920px;
  /* Nudge down so the ascending staircase still reads as centered */
  transform: translateY(calc(-46% + 28px));
  pointer-events: none;
}

.hero-card {
  --card-lift: 0px;
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  margin-left: calc(var(--card-overlap) * -1);
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
  transform: translate3d(0, var(--card-lift), 0);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.hero-card:first-child {
  margin-left: 0;
}

.hero-card-media {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 12px;
  background: var(--ink);
  opacity: 1;
  box-shadow:
    0 16px 36px rgba(10, 39, 72, .2),
    0 6px 14px rgba(10, 39, 72, .12);
  transition: box-shadow .7s cubic-bezier(.22, 1, .36, 1);
}

.hero-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.hero-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 39, 72, .28) 100%);
  opacity: .45;
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.hero-card-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  display: block;
  width: max-content;
  max-width: calc(var(--card-w) * .68);
  margin: 0;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(10, 39, 72, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Left → right ascending staircase: Movantu, Law, Kosimo */
.hero-card-near {
  --card-lift: 0px;
  order: 1;
  z-index: 1;
}

.hero-card-near .hero-card-media img {
  object-position: 35% center;
}

.hero-card-east {
  --card-lift: -35px;
  order: 2;
  z-index: 2;
}

.hero-card-east .hero-card-media img {
  object-position: center 20%;
}

.hero-card-south {
  --card-lift: -70px;
  order: 3;
  z-index: 3;
}

.hero-card-south .hero-card-media img {
  object-position: center 40%;
}

.hero-card:hover,
.hero-card:focus-visible {
  z-index: 5;
  transform: translate3d(0, calc(var(--card-lift) - 8px), 0);
  outline: none;
}

.hero-card:hover .hero-card-media,
.hero-card:focus-visible .hero-card-media {
  box-shadow:
    0 22px 44px rgba(10, 39, 72, .26),
    0 8px 18px rgba(10, 39, 72, .14);
}

.hero-card:hover .hero-card-media::after,
.hero-card:focus-visible .hero-card-media::after {
  opacity: .22;
}

.hero-card:hover .hero-card-media img,
.hero-card:focus-visible .hero-card-media img {
  transform: scale(1.03);
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(100% - 96px);
  margin-top: 36px;
}

.hero-stat {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.hero-stat strong {
  font-size: 70px;
  line-height: .8;
  font-weight: 300;
  letter-spacing: -.06em;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.hero-divider {
  width: 1px;
  height: 62px;
  transform: rotate(20deg);
  background: rgba(10,39,72,.28);
}

.hero-down {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 28px;
}

@media (max-width: 1180px) {
  .hero-copy {
    width: min(560px, 42vw);
  }

  .hero-gallery {
    --card-w: clamp(210px, 20vw, 280px);
    width: min(60%, calc(var(--card-w) * 3 - var(--card-overlap) * 2 + 12px));
  }

  .hero-stat strong {
    font-size: 56px;
  }
}

@media (max-width: 900px) {
  .hero-compose {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 48px;
  }

  .hero-copy {
    top: 24px;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .hero-gallery {
    --card-w: clamp(150px, 32vw, 200px);
    --card-overlap: calc(var(--card-w) * .16);
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-top: 28px;
    transform: none;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
    padding-bottom: 4px;
  }

  .hero-card-east {
    --card-lift: -28px;
  }

  .hero-card-south {
    --card-lift: -56px;
  }

  .hero-card-name {
    left: 8px;
    bottom: 8px;
    max-width: calc(var(--card-w) * .7);
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: .06em;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 112px 20px 32px;
  }

  .hero h1 {
    line-height: .96;
    letter-spacing: -.055em;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-down {
    right: 16px;
    bottom: 20px;
  }

  .hero-bottom {
    gap: 21px;
    max-width: calc(100% - 76px);
    margin-top: 0;
  }

  .hero-stat strong {
    font-size: 50px;
  }

  .hero-stat span {
    font-size: 10px;
  }

  .hero-divider {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    margin-top: 18px;
  }

  .hero-gallery {
    --card-w: clamp(120px, 30vw, 150px);
    --card-overlap: calc(var(--card-w) * .15);
    margin-top: 22px;
    padding-top: 60px;
  }

  .hero-card-east {
    --card-lift: -22px;
  }

  .hero-card-south {
    --card-lift: -44px;
  }

  .hero-card-name {
    left: 6px;
    bottom: 6px;
    max-width: calc(var(--card-w) * .72);
    padding: 4px 7px;
    font-size: 8px;
  }

  .hero-card:hover,
  .hero-card:focus-visible {
    transform: translate3d(0, calc(var(--card-lift) - 5px), 0);
  }

  .hero-down {
    right: 12px;
    bottom: 14px;
  }

  .hero-bottom {
    gap: 14px;
    max-width: calc(100% - 68px);
  }

  .hero-stat {
    gap: 8px;
  }

  .hero-stat strong {
    font-size: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .hero-card-media,
  .hero-card-media img,
  .hero-card-media::after {
    transition: none;
  }

  .hero-card:hover,
  .hero-card:focus-visible {
    transform: translate3d(0, var(--card-lift), 0);
  }

  .hero-card:hover .hero-card-media img,
  .hero-card:focus-visible .hero-card-media img {
    transform: none;
  }
}
