:root {
  --canvas: #f6f7f3;
  --canvas-soft: #eef1eb;
  --ink: #171916;
  --ink-soft: #555b54;
  --ink-muted: #858b83;
  --line: rgba(23, 25, 22, 0.12);
  --accent: #748071;
  --font:
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    'SF Pro Text',
    'Segoe UI',
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    Arial,
    sans-serif;
  --glow-x: 0px;
  --glow-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(
      760px circle at calc(76% + var(--glow-x)) calc(10% + var(--glow-y)),
      rgba(157, 173, 153, 0.13),
      transparent 66%
    ),
    radial-gradient(
      680px circle at calc(10% - var(--glow-x)) calc(78% - var(--glow-y)),
      rgba(197, 188, 171, 0.09),
      transparent 68%
    );
}

body::after {
  z-index: 0;
  opacity: 0.22;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.42), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.24));
}

a {
  color: inherit;
}

.site {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(1184px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 200ms ease;
}

.brand:hover .brand-mark {
  transform: translateX(2px);
}

.location {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: calc(100svh - 88px);
  grid-template-rows: minmax(390px, 1fr) auto;
  padding: clamp(60px, 8vh, 96px) 0 48px;
}

.hero-main {
  align-self: center;
  padding-bottom: clamp(72px, 10vh, 120px);
}

.hero-kicker,
.section-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
}

.hero-kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.hero-title {
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 6.5rem);
  letter-spacing: -0.067em;
  line-height: 0.94;
}

.hero-hello,
.hero-identity {
  display: block;
}

.hero-hello {
  color: var(--ink-soft);
  font-weight: 320;
}

.hero-identity {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 2.5vw, 38px);
  width: fit-content;
  margin-top: 12px;
}

.hero-chase {
  font-weight: 680;
}

.hero-cn {
  margin-bottom: 0.82em;
  color: var(--ink-muted);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 420;
  letter-spacing: 0.34em;
  line-height: 1;
  text-indent: 0.34em;
  transition:
    color 260ms ease,
    transform 260ms ease;
}

.hero-identity:hover .hero-cn {
  color: var(--accent);
  transform: translateX(3px);
}

.hero-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-fields,
.hero-summary {
  margin: 0;
}

.hero-fields {
  grid-column: 1 / 5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-summary {
  grid-column: 7 / 13;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.9;
}

.hero-summary span {
  display: block;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.content-section {
  padding: clamp(112px, 13vw, 176px) 0 0;
}

.section-heading {
  grid-column: 1 / 4;
}

.section-heading h2 {
  margin: 13px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.section-zh {
  margin: 9px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.about-copy {
  grid-column: 5 / 12;
  max-width: 730px;
}

.about-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.9;
}

.about-copy p + p {
  margin-top: 18px;
}

.currently-list {
  grid-column: 5 / 13;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.currently-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.currently-en {
  color: var(--ink);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 520;
  letter-spacing: -0.015em;
}

.currently-zh {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.65;
}

.contact-section {
  margin-top: clamp(128px, 15vw, 200px);
  padding: clamp(104px, 12vw, 148px) 0;
  border-top: 1px solid var(--line);
}

.contact-details {
  grid-column: 5 / 13;
}

.contact-location {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(23, 25, 22, 0.3);
  color: var(--ink);
  font-size: clamp(24px, 3.5vw, 46px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.email-arrow {
  font-size: 0.65em;
  transition: transform 200ms ease;
}

.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.email-link:hover .email-arrow {
  transform: translate(2px, -2px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand:focus-visible,
.email-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

@keyframes load-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.load-item {
  opacity: 0;
  animation: load-in 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.load-header {
  animation-delay: 20ms;
}

.load-kicker {
  animation-delay: 80ms;
}

.load-hello {
  animation-delay: 150ms;
}

.load-identity {
  animation-delay: 240ms;
}

.load-intro {
  animation-delay: 360ms;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 56px, 760px);
  }

  .hero {
    min-height: calc(100svh - 80px);
    grid-template-rows: minmax(360px, 1fr) auto;
    padding-top: 42px;
  }

  .site-header {
    min-height: 80px;
  }

  .section-heading {
    grid-column: 1 / 5;
  }

  .about-copy,
  .currently-list,
  .contact-details {
    grid-column: 5 / 13;
  }

  .currently-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 70px;
  }

  .location {
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .hero {
    min-height: calc(100svh - 70px);
    grid-template-rows: 1fr auto;
    padding: 56px 0 34px;
  }

  .hero-main {
    align-self: center;
    padding-bottom: 58px;
  }

  .hero-kicker {
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(3.35rem, 16.5vw, 4.35rem);
    letter-spacing: -0.065em;
    line-height: 0.96;
  }

  .hero-identity {
    display: block;
    margin-top: 8px;
  }

  .hero-cn {
    display: block;
    width: fit-content;
    margin: 20px 0 0 3px;
    font-size: 15px;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .hero-intro {
    display: block;
    padding-top: 22px;
  }

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

  .hero-summary {
    font-size: 15px;
    line-height: 1.82;
  }

  .hero-summary span {
    display: inline;
  }

  .section-grid {
    display: block;
  }

  .content-section {
    padding-top: 104px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .about-copy p {
    font-size: 17px;
    line-height: 1.85;
  }

  .about-copy p + p {
    margin-top: 16px;
  }

  .currently-item {
    padding: 20px 0;
  }

  .currently-en {
    font-size: 15px;
  }

  .contact-section {
    margin-top: 112px;
    padding: 88px 0 96px;
  }

  .contact-details {
    min-width: 0;
  }

  .email-link {
    gap: 8px;
    font-size: clamp(20px, 6.1vw, 25px);
    letter-spacing: -0.035em;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 26px 0 34px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .load-item,
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }

  .brand-mark,
  .hero-cn,
  .email-link,
  .email-arrow {
    transition: none;
  }
}
