:root {
  color-scheme: dark;
  --bg: #000;
  --text: #eceae5;
  --muted: #74716b;
  --accent: #ff5722;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html,
body { min-width: 320px; min-height: 100%; background: var(--bg); }

body { margin: 0; color: var(--text); }

a { color: inherit; text-decoration: none; }

.about-page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
}

.about-header {
  position: absolute;
  z-index: 3;
  inset: 22px 28px auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #8a8781;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
}

.about-header > :last-child { justify-self: end; }

.about-header a,
.contact { transition: color 320ms ease, transform 480ms cubic-bezier(.16, 1, .3, 1); }

.about-header a:hover,
.about-header a:focus-visible,
.contact:hover,
.contact:focus-visible { color: var(--accent); outline: none; }

h1 {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 40px);
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--text);
  font-size: clamp(2.8rem, 5vw, 6.25rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.075em;
  text-align: center;
}

.name-label > span { display: inline; }

.name-blur-lens { display: none; }

@media (hover: hover) and (pointer: fine) {
  .name-blur-lens {
    display: block;
    position: absolute;
    z-index: 2;
    top: var(--pointer-y);
    left: var(--pointer-x);
    width: 128px;
    height: 96px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    background: rgb(255 255 255 / .001);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: radial-gradient(ellipse, #000 0 42%, transparent 76%);
    mask-image: radial-gradient(ellipse, #000 0 42%, transparent 76%);
  }

  h1.is-hovered .name-blur-lens {
    opacity: 1;
  }
}

.contact-field { position: absolute; inset: 0; }

.contact {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: min(34vw, 420px);
  color: #b7b4ae;
}

.contact span,
.availability {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .11em;
}

.contact strong {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.4;
}

.contact--mail { top: 19%; left: 10%; }
.contact--wechat { top: 20%; right: 11%; text-align: right; }
.contact--phone { bottom: 17%; left: 15%; }
.contact--practice { right: 9%; bottom: 16%; text-align: right; }

.contact--mail:hover,
.contact--mail:focus-visible,
.contact--phone:hover,
.contact--phone:focus-visible { transform: translateX(8px); }

.availability {
  position: absolute;
  left: 50%;
  bottom: 24px;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .about-header,
  h1,
  .contact,
  .availability { animation: enter 850ms cubic-bezier(.16, 1, .3, 1) both; }
  h1 { animation-delay: 80ms; }
  .contact--wechat { animation-delay: 120ms; }
  .contact--phone { animation-delay: 160ms; }
  .contact--practice { animation-delay: 200ms; }
  .availability { animation-delay: 240ms; }

  @keyframes enter {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 1; filter: blur(0); }
  }
}

@media (max-width: 700px) {
  .about-header { inset: 18px 16px auto; grid-template-columns: 1fr 1fr; }
  .about-header > span { display: none; }

  h1 {
    top: 39%;
    width: max-content;
    max-width: calc(100vw - 32px);
    font-size: clamp(2.8rem, 14vw, 4.8rem);
    line-height: .9;
  }

  .name-label > span { display: block; }

  .contact-field {
    inset: auto 16px 52px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }

  .contact { position: static; max-width: none; }
  .contact--wechat,
  .contact--practice { text-align: right; }
  .contact--practice { grid-column: 1 / -1; max-width: 24ch; justify-self: end; }
  .availability { bottom: 16px; }
}

@media (max-width: 430px) {
  h1 { font-size: 13vw; }
  .contact-field { grid-template-columns: 1fr; gap: 15px; }
  .contact--wechat,
  .contact--practice { text-align: left; justify-self: start; }
  .contact--practice { grid-column: 1; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .about-header a,
  .contact { transition: none; }
}
