body.afeng-site {
  --home-paper: #fbf8ef;
  --home-ink: #181721;
  --home-blue: #2547e7;
  --home-line: #26213630;
  --home-width: min(1400px, calc(100% - 72px));
  min-height: 100svh;
  background: var(--home-paper);
  color: var(--home-ink);
}

.afeng-site .header, .afeng-site .footer {
  border-color: var(--home-line);
  background: var(--home-paper);
  color: var(--home-ink);
}
.afeng-site .header { height: 72px; }
.afeng-site .brand { gap: 10px; }
.afeng-site .brand-mark { flex: 0 0 44px; width: 44px; height: 44px; }
.afeng-site .brand strong { display: block; line-height: 1.16; letter-spacing: .015em; }
.afeng-site .brand small { margin-top: 4px; letter-spacing: .16em; }
.afeng-site .header-inner, .afeng-site .footer-inner { width: var(--home-width); }
.afeng-site .footer { margin-top: 0; border: 0; }
.afeng-site .footer-inner { min-height: 64px; padding-block: 14px; }

.afeng-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.27fr;
  grid-template-areas: "title title listen" "intro portrait entries";
  width: var(--home-width);
  margin-inline: auto;
  border: solid var(--home-line);
  border-width: 0 1px 1px;
}
.afeng-grid > * { min-width: 0; }

.afeng-title {
  grid-area: title;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(179px, 17.8vw, 244px);
  padding: 64px clamp(22px, 3.75vw, 54px) 30px;
  border-bottom: 1px solid var(--home-line);
}
.afeng-title h1 {
  font-family: "Archivo Black", "Arial Black", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: .93;
  font-weight: 900;
  letter-spacing: -.075em;
  white-space: nowrap;
}
.afeng-title-dot { color: var(--home-blue); }

.afeng-about-link, .afeng-listen-link, .afeng-contact, .afeng-projects {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  font-weight: 650;
  white-space: nowrap;
}
.afeng-about-link {
  position: absolute;
  top: 20px;
  right: clamp(14px, 2.05vw, 30px);
  padding-inline: 17px;
  border-radius: 999px;
  background: #d9f354;
  font-size: clamp(14px, 1.25vw, 19px);
}
.afeng-about-link:hover { color: var(--home-ink); background: #e2f77e; }

.afeng-listen {
  grid-area: listen;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(16px, 2.3vw, 32px);
  border-left: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #e8dfff;
}
.afeng-music-brand {
  display: grid;
  place-items: center;
  padding-right: clamp(9px, 1.7vw, 25px);
  border-right: 1px solid #25203855;
}
.afeng-music-brand img { border-radius: 15%; width: min(100%, 120px); height: auto; }
.afeng-listen strong {
  display: block;
  margin-bottom: 13px;
  font-size: clamp(20px, 2.8vw, 39px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.04em;
}
.afeng-listen-link, .afeng-contact { padding-inline: 14px; border-radius: 7px; font-size: 14px; }
.afeng-listen-link { background: var(--home-blue); color: white; }
.afeng-listen-link:hover { background: #1833bd; color: white; }

.afeng-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 48px);
}
.afeng-intro h2 {
  font-size: clamp(24px, 3.05vw, 44px);
  letter-spacing: -.052em;
  font-weight: 800;
}
.afeng-english {
  margin-top: 5px;
  font-size: clamp(11px, 1.15vw, 16px);
  letter-spacing: .14em;
  color: #5e5567;
}
.afeng-bio {
  margin: clamp(14px, 2.4vw, 34px) 0 22px;
  max-width: 15em;
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1.75;
  color: var(--home-ink);
}
.afeng-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; }
.afeng-contact { border: 1px solid var(--home-ink); }
.afeng-contact:hover { background: var(--home-ink); color: white; }
.afeng-projects { font-size: 14px; text-underline-offset: .3em; }
.afeng-projects:hover { text-decoration: underline; }

.afeng-portrait {
  grid-area: portrait;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.75vw, 38px);
  border-inline: 1px solid var(--home-line);
  background: var(--home-blue);
}
.afeng-avatar {
  display: block;
  width: min(100%, 340px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #e8dfff;
}
.afeng-avatar:focus-visible { outline: 3px solid #e9dfff; outline-offset: 6px; }
.afeng-avatar img { width: 100%; height: 100%; object-fit: cover; transform: translateY(.8%) scale(1.035); }

.afeng-entries {
  grid-area: entries;
  display: grid;
  grid-template-rows: repeat(3, minmax(92px, 1fr));
  gap: 12px;
  padding: clamp(12px, 1.35vw, 20px);
}
.afeng-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(14px, 1.65vw, 24px);
  border-radius: 11px;
  color: var(--home-ink);
  transition: transform .16s ease;
}
.afeng-entry:hover { transform: translateY(-2px); color: var(--home-ink); }
.afeng-entry--steel { background: #ffb67d; }
.afeng-entry--music { background: #bdeed8; }
.afeng-entry--knowledge { background: #dce7ff; }
.afeng-entry h2 { font-size: clamp(20px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.036em; font-weight: 790; }
.afeng-entry p { margin-top: 5px; color: var(--home-ink); font-size: clamp(13px, 1.28vw, 18px); line-height: 1.45; }
.afeng-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff9e;
  font-size: 20px;
}

@media (max-width: 850px) {
  body.afeng-site { --home-width: min(680px, calc(100% - 32px)); }
  .afeng-site .header { height: 62px; }
  .afeng-grid {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    grid-template-areas: "title title" "portrait intro" "entries entries" "listen listen";
  }
  .afeng-title { min-height: 172px; padding: 14px 20px 52px; }
  .afeng-title h1 { font-size: clamp(53px, 11vw, 88px); }
  .afeng-about-link { top: auto; bottom: 13px; min-height: 38px; }
  .afeng-portrait { padding: 13px; border-left: 0; }
  .afeng-avatar { max-width: 224px; }
  .afeng-intro { justify-content: center; padding: 18px; }
  .afeng-intro h2 { font-size: clamp(16px, 4.7vw, 30px); }
  .afeng-bio { margin-block: 8px 12px; font-size: clamp(13px, 2.6vw, 16px); }
  .afeng-actions { margin-top: 0; }
  .afeng-entries { grid-template-rows: none; gap: 9px; }
  .afeng-entries, .afeng-listen { border-top: 1px solid var(--home-line); }
  .afeng-listen { border: solid var(--home-line); border-width: 1px 0 0; }
  .afeng-music-brand img { width: min(100%, 72px); }
}

@media (max-width: 760px) {
  .afeng-site {
    --contact-button-height: 44px;
    --contact-bar-padding: 8px;
    --contact-bar-height: calc(var(--contact-button-height) + 2 * var(--contact-bar-padding) + 1px + env(safe-area-inset-bottom, 0px));
  }
  .afeng-site .footer { padding: 0; }
  .afeng-site.has-bottom-contact .footer { padding-bottom: var(--contact-bar-height); }
  .afeng-site .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    gap: 4px 12px;
    padding-block: 9px;
  }
  .afeng-site .footer-links { gap: 4px 12px; }
  .afeng-site .footer-links > span { display: none; }

  .afeng-site .bottom-contact {
    padding-block: var(--contact-bar-padding) calc(var(--contact-bar-padding) + env(safe-area-inset-bottom, 0px));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    border-top-color: var(--home-line);
    background: var(--home-paper);
  }
  .afeng-site .bottom-contact .button {
    min-height: var(--contact-button-height);
    padding: 8px 10px;
    border-color: var(--home-ink);
    border-radius: 7px;
    color: var(--home-ink);
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
  }
  .afeng-site .bottom-contact .button.primary {
    border-color: var(--home-blue);
    background: var(--home-blue);
    color: #fff;
  }

  .afeng-entries { gap: 8px; padding: 9px; }
  .afeng-entry { padding-block: 10px; }
  .afeng-entry p { margin-top: 4px; }
  .afeng-listen { padding: 12px; }
  .afeng-music-brand img { width: min(100%, 62px); }
}

@media (max-width: 590px) {
  .afeng-title h1 { font-size: clamp(52px, 14vw, 82px); white-space: normal; width: min-content; }
}

@media (max-width: 405px) {
  .afeng-intro { padding: 13px 10px; }
  .afeng-english { font-size: 10px; letter-spacing: .1em; }
  .afeng-contact, .afeng-projects { min-height: 36px; font-size: 12px; }
  .afeng-actions { gap: 3px 10px; }
  .afeng-about-link { bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .afeng-entry { transition: none; }
}
