/* A shared sea-distance card, kept in the hero's flow at every screen size. */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 20vw, 280px);
  padding-right: max(76px, 6.3vw, env(safe-area-inset-right, 0px));
}

.home-hero .hero-copy {
  min-width: 0;
  max-width: none;
  padding-right: clamp(28px, 4vw, 64px);
}

.home-hero .hero-sea {
  position: relative;
  inset: auto;
  display: block;
  align-self: end;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 clamp(28px, 5svh, 56px);
  padding: 8px;
  transform: none;
  border: 1px solid #fffdf6;
  border-radius: 18px;
  background: #fffdf6;
  color: #173f34;
  box-shadow: 0 16px 40px #092b2840;
}

.home-hero .hero-sea > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.8;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 11px;
}

.hero-sea-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 12px 12px;
  text-align: left;
}

.hero-sea-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid #d6e1d8;
  border-radius: 50%;
  background: #edf3ed;
  color: #315c50;
}

.hero-sea-icon svg { display: block; width: 26px; height: 26px; }
.hero-sea-text { display: block; min-width: 0; }
.hero-sea-distance {
  display: block;
  font-size: 36px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.045em;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.hero-sea-distance small { font-size: .52em; font-weight: 500; letter-spacing: 0; }
.hero-sea-label {
  display: block;
  margin-top: 5px;
  color: #596b60;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

/* The inspiration link scrolls down; allow translated labels to wrap. */
.home-hero .hero-actions .round-link {
  min-width: 0;
  overflow-wrap: anywhere;
}
.home-hero .round-link:hover > .arrow-internal,
.home-hero .round-link:focus-visible > .arrow-internal {
  transform: translateY(4px);
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .round-link > .arrow-internal { transition: none; }
}

/* Below desktop width the photograph becomes a compact, horizontal card.
   Content determines the height, including translated or enlarged text. */
@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    padding-right: 0;
  }
  .home-hero .hero-copy {
    min-height: 0;
    padding: clamp(24px, 4svh, 48px) 6% 22px;
  }
  .home-hero .hero-sea {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: min(320px, 88%);
    margin: 0 6% clamp(26px, 4svh, 40px);
    border-radius: 14px;
  }
  .home-hero .hero-sea > img {
    height: 80px;
    aspect-ratio: auto;
    border-radius: 8px;
  }
  .hero-sea-caption { gap: 11px; padding: 5px 6px 5px 0; }
  .hero-sea-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .hero-sea-icon svg { width: 22px; height: 22px; }
  .hero-sea-distance { font-size: 30px; }
  .hero-sea-label { margin-top: 3px; font-size: 13px; }
}

@media (max-width: 620px) {
  .home-hero .hero-copy { padding: 26px 25px 22px; }
  .home-hero .hero-sea {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 11px;
    width: min(300px, calc(100% - 95px - env(safe-area-inset-right, 0px)));
    margin: 0 25px 28px;
  }
  .home-hero .hero-sea > img { height: 72px; }
  .hero-sea-caption { gap: 9px; padding-right: 0; }
  .hero-sea-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 26px;
    height: 26px;
    background: #fffdf6;
  }
  .hero-sea-icon svg { width: 17px; height: 17px; }
}

@media (max-width: 370px) {
  .home-hero .hero-copy { padding-inline: 19px; }
  .home-hero .hero-sea {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    width: calc(100% - 89px - env(safe-area-inset-right, 0px));
    margin-inline: 19px;
  }
  .hero-sea-distance { font-size: 28px; }
  .hero-sea-caption { gap: 8px; }
}

@media (max-height: 500px) {
  .home-hero .hero-copy { padding-top: 16px; padding-bottom: 18px; }
}
