:root {
  color: #15161a;
  background: repeating-linear-gradient(145deg, #f3f4f5 0 4px, #ebedef 4px 5px);
  font-family: Inter, system-ui, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --portrait-filter: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: 4svh 0 0;
}

.hero {
  --radius: clamp(24px, 2.25vw, 46px);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  align-items: center;
  width: min(74vw, 1410px, 146svh);
  min-height: min(44vw, 69svh);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #edeef0 0 59%, #cbd0d4 100%);
}

.intro {
  position: relative;
  z-index: 1;
  width: 47%;
  margin-inline-start: 8.3%;
  padding-block: 5cqw;
}

h1, p, ul {
  margin: 0;
}

h1 {
  font: 400 clamp(46px, 6.75cqw, 108px) / .94 var(--serif);
  letter-spacing: -.055em;
}

h1 span {
  display: block;
  color: #737782;
}

.bio {
  max-width: 37cqw;
  margin-block-start: 2.05cqw;
  color: #444852;
  font-size: clamp(15px, 1.53cqw, 24px);
  line-height: 1.55;
}

.bio strong {
  color: #202228;
  font-weight: 650;
}

.stats {
  display: flex;
  align-items: flex-start;
  gap: 3.6cqw;
  margin-block-start: 4.8cqw;
  padding: 0;
  list-style: none;
}

.stats li {
  display: grid;
  gap: .55cqw;
}

.stats strong {
  font: 700 clamp(32px, 3.05cqw, 49px) / 1 var(--serif);
  letter-spacing: .01em;
}

.stat-plus {
  margin-inline-start: .06em;
}

.stats li > span {
  color: #444852;
  font-size: clamp(14px, 1.38cqw, 22px);
  line-height: 1.35;
}

.visual {
  position: absolute;
  inset: 0;
}

.portrait-frame {
  position: absolute;
  inset: -17% 0 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  pointer-events: none;
}

.portrait {
  position: absolute;
  inset: 0 -4.5% auto auto;
  display: block;
  width: auto;
  height: 117%;
  filter: var(--portrait-filter);
}

.social {
  position: absolute;
  z-index: 2;
  right: 4.2%;
  bottom: 7.8%;
  width: clamp(156px, 20.5cqw, 290px);
  padding: clamp(7px, .85cqw, 12px) clamp(12px, 1.35cqw, 19px);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: clamp(15px, 1.3cqw, 23px);
  background: linear-gradient(136deg, rgb(255 255 255 / 16%), transparent 45%), rgb(29 30 33 / 77%);
  box-shadow: 0 12px 30px rgb(13 17 20 / 18%), inset 0 0 0 1px rgb(255 255 255 / 4%);
  backdrop-filter: blur(18px);
  color: #fff;
}

.social ul {
  padding: 0;
  list-style: none;
}

.social li + li {
  border-block-start: 1px solid rgb(255 255 255 / 24%);
}

.social a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: max(8px, .7cqw);
  min-height: max(34px, 3.2cqw);
  color: #f3f4f6;
  font-size: clamp(14px, 1.2cqw, 19px);
  text-decoration: none;
}

.social a:hover span:first-of-type {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.social a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 3px;
}

.social img {
  display: block;
  width: clamp(18px, 1.6cqw, 22px);
  height: auto;
}

.arrow {
  font-size: 1.14em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 850px) and (max-height: 660px),
       (min-width: 850px) and (max-width: 950px) {
  .hero {
    width: min(81vw, 220svh, 1080px);
    min-height: min(50vw, 76svh);
  }

  .intro {
    width: 50%;
    padding-block: clamp(7px, 2.1svh, 14px);
  }

  h1 {
    font-size: clamp(29px, 9svh, 60px);
  }

  .bio {
    max-width: 100%;
    margin-block-start: 10px;
    font-size: clamp(13px, 2.7svh, 17px);
    line-height: 1.42;
  }

  .stats {
    margin-block-start: 12px;
  }

  .stats strong {
    font-size: clamp(27px, 7.5svh, 37px);
  }

  .stats li > span {
    font-size: clamp(12px, 2.5svh, 16px);
  }

  .portrait {
    top: auto;
    bottom: 0;
    height: auto;
    max-width: 81%;
    max-height: 115%;
    translate: 0 15%;
  }
}

@media (min-width: 850px) and (max-height: 490px) {
  h1 span {
    display: inline;
  }
}

@media (min-width: 850px) and (max-height: 370px) {
  .social {
    bottom: 4%;
    width: 144px;
    padding: 5px 10px;
  }

  .social a {
    min-height: 30px;
  }
}

@media (max-width: 849px) {
  body {
    padding: 24px 0;
  }

  .hero {
    width: min(calc(100% - 32px), 570px);
    min-height: 0;
    background: linear-gradient(150deg, #edeef0 0 52%, #cbd0d4 100%);
  }

  .intro {
    width: auto;
    margin: 0;
    padding: clamp(26px, 7.6cqw, 44px);
  }

  h1 {
    font-size: clamp(46px, 12cqw, 72px);
  }

  .bio {
    max-width: 43ch;
    margin-block-start: 18px;
    font-size: clamp(15px, 3.65cqw, 18px);
  }

  .stats {
    gap: 24px;
    margin-block-start: 24px;
  }

  .stats li {
    gap: 4px;
  }

  .stats li:first-child {
    flex-shrink: 0;
  }

  .visual {
    position: relative;
    min-height: clamp(282px, 86cqw, 465px);
  }

  .portrait-frame {
    inset: 0;
  }

  .portrait {
    right: 50%;
    height: 134%;
    translate: 50% -7%;
  }

  .social {
    right: 16px;
    bottom: 16px;
    width: 156px;
  }

  .social a {
    min-height: 36px;
  }
}
