/* Homepage hero — calm editorial composition with classical art. */

.hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 660px;
  padding: clamp(58px, 6vw, 82px) 0;
  background:
    radial-gradient(760px 520px at 88% 34%, rgba(184, 205, 232, .28), transparent 70%),
    linear-gradient(180deg, #f4f8ff 0%, #edf4ff 54%, #f4f8ff 100%);
}

.hero-home__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 500px;
}

.hero-home__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-home__copy h1 {
  max-width: 12ch;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.hero-home__lead {
  max-width: 540px;
  margin-top: 22px;
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.hero-home__actions .btn {
  flex: 0 0 auto;
}

.hero-home__text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  color: var(--navy-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
}

.hero-home__text-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-base) var(--ease-layout);
}

.hero-home__text-link:hover svg {
  transform: translateX(3px);
}

.hero-home__origin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.hero-home__origin i {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(94, 195, 105, .15);
}

.hero-home__visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 560px;
  margin: -40px calc(50% - 50vw) -40px -8%;
  pointer-events: none;
}

.hero-home__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 24px;
  opacity: .83;
  filter: saturate(.72) contrast(.93) brightness(1.05);
  /* Fade the free edges into the page while keeping the artwork fully opaque
     through the right edge, where it bleeds beyond the viewport. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 25%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 25%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect;
}

.hero-home__animation {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 38%;
  width: clamp(156px, 12.5vw, 208px);
  height: clamp(316px, 26vw, 418px);
  border: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, .09) 0%, transparent 44%),
    radial-gradient(ellipse at center, rgba(19, 48, 87, .2) 0%, rgba(19, 48, 87, .09) 42%, transparent 74%);
  filter: drop-shadow(0 12px 24px rgba(17, 37, 66, .18));
  transform: translate(-50%, -50%);
}

@media (max-width: 1060px) {
  .hero-home {
    min-height: 0;
    padding: 56px 0 38px;
  }

  .hero-home__grid {
    display: block;
    min-height: 0;
  }

  .hero-home__copy {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-home__copy h1,
  .hero-home__lead {
    margin-inline: auto;
  }

  .hero-home__actions {
    justify-content: center;
  }

  .hero-home__visual {
    left: auto;
    width: min(100%, 860px);
    min-height: 390px;
    margin: 34px auto -28px;
    overflow: hidden;
    border-radius: 28px;
    transform: none;
  }

  .hero-home__picture {
    object-position: 58% 46%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 90%, transparent 100%);
            mask-composite: add;
  }

  .hero-home__animation {
    left: 52%;
    width: 142px;
    height: 290px;
  }
}

@media (max-width: 640px) {
  .hero-home {
    padding: 38px 0 22px;
  }

  .hero-home__grid {
    width: 100%;
    padding-inline: 18px;
  }

  .hero-home__copy {
    width: 100%;
    max-width: 480px;
  }

  .hero-home__copy h1 {
    width: 100%;
    max-width: 11ch;
    font-size: clamp(36px, 10.4vw, 44px);
    line-height: 1.04;
    letter-spacing: -.028em;
  }

  .hero-home__lead {
    width: 100%;
    max-width: 35ch;
    margin-top: 18px;
    font-size: 16.5px;
    line-height: 1.52;
  }

  .hero-home__actions {
    flex-direction: column;
    gap: 7px;
    margin-top: 24px;
  }

  .hero-home__actions .btn {
    width: min(100%, 310px);
    min-width: 0;
  }

  .hero-home__text-link {
    padding-block: 11px;
  }

  .hero-home__origin {
    margin-top: 15px;
    font-size: 12.5px;
  }

  .hero-home__visual {
    width: calc(100% + 36px);
    min-height: clamp(250px, 74vw, 310px);
    margin: 25px -18px -14px;
    border-radius: 0;
  }

  .hero-home__picture {
    right: 0;
    left: 0;
    width: 100%;
    object-position: 61% center;
    opacity: .8;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 88%, transparent 100%);
  }

  .hero-home__animation {
    top: 51%;
    left: 53%;
    width: clamp(92px, 27vw, 112px);
    height: clamp(188px, 55vw, 230px);
  }
}

@media (max-width: 380px) {
  .hero-home__copy h1 {
    font-size: 36px;
  }

  .hero-home__lead {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home__text-link svg {
    transition: none;
  }

  .hero-home__text-link:hover svg {
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero-home__picture {
    opacity: .3;
  }

  .hero-home__origin i {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
}

/* 2026 editorial landing hero
   Full-bleed art, human copy and restrained motion inspired by modern
   European health-tech storytelling. */
main > section.hero-home {
  margin-top: calc(0px - var(--nav-offset));
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #151515;
}

.hero-home__shell {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  padding: clamp(130px, 15vh, 180px) clamp(28px, 6vw, 92px) 42px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  overflow: hidden;
  border-radius: 0;
  background: #151515;
}

.hero-home__media,
.hero-home__veil {
  position: absolute;
  inset: 0;
}

.hero-home__media {
  overflow: hidden;
}

.hero-home__picture {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  object-position: 55% 45%;
  border-radius: 0;
  opacity: 1;
  filter: saturate(.82) contrast(1.04) brightness(.82);
  -webkit-mask-image: none;
          mask-image: none;
}

.hero-home__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, .86) 0%, rgba(12, 12, 12, .62) 39%, rgba(12, 12, 12, .08) 72%),
    linear-gradient(0deg, rgba(12, 12, 12, .76) 0%, transparent 46%);
}

.hero-home__copy {
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding-bottom: clamp(54px, 9vh, 104px);
  color: #fffdf7;
}

.hero-home__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #fffdf7;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--duration-instant) var(--ease-enter) forwards;
}

.hero-home__eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero-home__copy h1 {
  max-width: 10.8ch;
  color: #fffdf7;
  font-size: clamp(58px, 7.6vw, 108px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.055em;
  text-wrap: balance;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--duration-base) var(--ease-enter) forwards;
}

.hero-home__copy h1 em {
  color: var(--accent);
  font-weight: 500;
}

.hero-home__lead {
  max-width: 600px;
  margin-top: 28px;
  color: rgba(255, 253, 247, .84);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.48;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--duration-slow) var(--ease-enter) forwards;
}

.hero-home__actions {
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  animation: hero-rise var(--duration-slow) calc(var(--duration-slow) + var(--duration-instant)) var(--ease-enter) forwards;
}

.hero-home__actions .btn {
  min-height: 56px;
  border-radius: 14px;
  box-shadow: none;
}

.hero-home__primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.hero-home__primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
  transform: translateY(-2px);
}

.hero-home__primary svg {
  transition: transform var(--duration-base) var(--ease-layout);
}

.hero-home__primary:hover svg {
  transform: translateX(5px);
}

.hero-home__secondary {
  color: #fffdf7;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-home__secondary:hover {
  color: var(--ink);
  border-color: #fffdf7;
  background: #fffdf7;
  transform: translateY(-2px);
}

.hero-home__proof {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #fffdf7;
  opacity: 0;
  animation: hero-rise var(--duration-slow) calc(var(--duration-slow) + var(--duration-slow)) var(--ease-enter) forwards;
}

.hero-home__proof p {
  display: grid;
  gap: 3px;
  padding: 22px clamp(14px, 2vw, 28px) 0 0;
}

.hero-home__proof p + p {
  padding-left: clamp(18px, 3vw, 44px);
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.hero-home__proof strong {
  color: #fffdf7;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 480;
  letter-spacing: -.025em;
}

.hero-home__proof span {
  color: rgba(255, 253, 247, .68);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  main > section.hero-home {
    padding: 0;
  }

  .hero-home__shell {
    min-height: 100svh;
    padding: 120px 30px 34px;
    border-radius: 0;
  }

  .hero-home__veil {
    background:
      linear-gradient(90deg, rgba(12, 12, 12, .82), rgba(12, 12, 12, .18)),
      linear-gradient(0deg, rgba(12, 12, 12, .78), rgba(12, 12, 12, .12) 70%);
  }

  .hero-home__copy {
    width: auto;
    max-width: 670px;
    margin: 0;
    padding-bottom: 52px;
    text-align: left;
  }

  .hero-home__copy h1,
  .hero-home__lead {
    margin-inline: 0;
  }

  .hero-home__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  main > section.hero-home {
    padding: 0;
  }

  .hero-home__shell {
    width: 100%;
    min-height: 100svh;
    padding: 108px 20px 24px;
    border-radius: 0;
  }

  .hero-home__picture {
    object-position: 57% center;
  }

  .hero-home__veil {
    background:
      linear-gradient(90deg, rgba(12, 12, 12, .6), rgba(12, 12, 12, .08)),
      linear-gradient(0deg, rgba(12, 12, 12, .9) 5%, rgba(12, 12, 12, .22) 76%);
  }

  .hero-home__copy {
    align-self: end;
    padding-bottom: 32px;
  }

  .hero-home__eyebrow {
    margin-bottom: 18px;
    font-size: 10.5px;
    letter-spacing: .1em;
  }

  .hero-home__eyebrow::before {
    width: 22px;
  }

  .hero-home__copy h1 {
    max-width: 10ch;
    font-size: clamp(44px, 14.5vw, 66px);
    line-height: .96;
  }

  .hero-home__lead {
    max-width: 34ch;
    margin-top: 19px;
    font-size: 16.5px;
  }

  .hero-home__actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-home__actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .hero-home__proof {
    grid-template-columns: 1fr 1fr;
  }

  .hero-home__proof p {
    padding-top: 16px;
  }

  .hero-home__proof p:nth-child(3) {
    display: none;
  }

  .hero-home__proof strong {
    font-size: 19px;
  }

  .hero-home__proof span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home__picture,
  .hero-home__eyebrow,
  .hero-home__copy h1,
  .hero-home__lead,
  .hero-home__actions,
  .hero-home__proof {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
