:root {
  color-scheme: dark;
  background: var(--portfolio-page);
  color: var(--portfolio-heading);
  font-family: var(--portfolio-text);
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

.welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, var(--portfolio-max-width));
  min-height: max(680px, 100svh);
  margin-inline: auto;
  padding-bottom: max(35px, calc(env(safe-area-inset-bottom) + 16px));
}

.welcome-copy {
  position: absolute;
  z-index: 1;
  inset: calc(50% - 69px) auto auto 16.944444%;
  width: min(370px, 34%);
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.intro { width: 100%; }

.system-status {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 197px;
  height: 18px;
  color: var(--portfolio-building);
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.system-status-label { flex: 0 0 132px; }
.status-matrix { flex: 0 0 52px; height: 16px; }
.status-matrix svg { display: block; width: 52px; height: 16px; }

h1 {
  margin: 0 0 13px;
  color: var(--portfolio-heading);
  font: 400 29px / 1.2 var(--portfolio-display);
  font-variation-settings: "ELSH" 0;
  letter-spacing: -.8px;
}

p { margin: 0; font-size: 16px; line-height: 1.55; }
.role { color: var(--portfolio-body); }
.work { color: var(--portfolio-secondary); }

.avatar {
  position: absolute;
  top: 50%;
  left: 52.152778%;
  width: 30.902778%;
  aspect-ratio: 445 / 556;
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(ellipse 68% 65% at center, #000 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 65% at center, #000 75%, transparent 100%);
}

.avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }

.welcome-signature { align-self: center; }
.welcome-signature img { display: block; width: 64px; height: 19px; opacity: .5; }

@media (max-width: 700px) {
  .welcome {
    align-items: center;
    justify-content: flex-start;
    width: var(--portfolio-width);
    min-height: 100svh;
    padding: max(100px, calc(50svh - 265px)) 0 max(40px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .avatar {
    position: static;
    flex: 0 0 auto;
    width: min(310px, 100%);
    height: min(388px, calc((100vw - 40px) * 1.251613));
    transform: none;
  }

  .welcome-copy {
    position: static;
    order: 1;
    align-items: center;
    gap: 22.8px;
    width: min(350px, 100%);
    margin-top: 13px;
    text-align: center;
  }

  .system-status { order: 1; text-align: left; }
  h1 { font-size: 24px; margin-bottom: 11px; }
  p { font-size: 14px; }
  .welcome-signature { order: 2; margin-top: 23px; }
  .welcome-signature img { width: 80px; height: 24px; }
}
