/* Directory proportions calibrated to the supplied desktop reference. */
.site-header {
  padding: clamp(18px, 2.4vh, 24px) 0 0;
  font-size: clamp(8px, .7vw, 12px);
  line-height: 1;
  transition: opacity 1s var(--ease), transform .48s var(--ease);
  will-change: transform;
}

html.is-pdf-reader-open,
html.is-pdf-reader-open body {
  overflow: hidden;
}

/* Keep the site's background visible through the reader, without page content. */
html.is-pdf-reader-open .site-header,
html.is-pdf-reader-open main > section > * {
  visibility: hidden;
}

.portfolio-pdf-dialog {
  position: fixed;
  inset: 0;
  width: min(84vw, 1440px);
  height: 92dvh;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.portfolio-pdf-dialog[open] {
  display: block;
}

.portfolio-pdf-dialog::backdrop {
  background: transparent;
}

@media (max-width: 700px) {
  .portfolio-pdf-dialog {
    width: calc(100vw - 24px);
    height: calc(100dvh - 32px);
  }
}

.portfolio-pdf-dialog__exit {
  position: absolute;
  z-index: 1;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font: 400 29px/1 Arial, sans-serif;
  cursor: pointer;
  transform: scale(1);
  transform-origin: center;
  transition: transform .18s var(--ease), background-color .18s ease;
}

.portfolio-pdf-dialog__exit:hover {
  background: #333;
  transform: scale(1.08);
}

.portfolio-pdf-dialog__exit:active {
  transform: scale(1.12);
}

.portfolio-pdf-dialog__exit:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.portfolio-pdf-dialog iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
}

.portfolio-pdf-dialog[open] iframe.is-active {
  visibility: visible;
  pointer-events: auto;
}

body.is-ready .site-header.is-hidden {
  transform: translateY(-140%);
  pointer-events: none;
}

.brand {
  width: 40px;
  margin-left: 15.65vw;
  font-size: clamp(13px, 1.08vw, 18px);
  line-height: .9;
}

.main-nav {
  gap: clamp(28px, 2.2vw, 42px);
}

.main-nav a,
.contact-link {
  padding: 2px 0 8px;
  font-size: clamp(15px, .92vw, 16px);
  white-space: nowrap;
}

.main-nav a span,
.contact-link span {
  display: inline-block;
  font-size: 1.12em;
  line-height: 1;
  vertical-align: -.025em;
}

.contact-link {
  margin-right: 15.65vw;
}

.hero__start-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  font-size: clamp(13px, .78vw, 15px);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero__start-label {
  position: absolute;
  left: 50%;
  bottom: 28px;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: startLinkFade .9s ease-in-out infinite alternate;
}

.hero__start-link:focus-visible {
  outline: 0;
}

.hero__start-link:focus-visible .hero__start-label {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

@keyframes startLinkFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

.hero__title-wrap--sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.television[hidden] {
  display: none;
}

.hero__composition {
  position: absolute;
  top: 20.6vh;
  left: 0;
  z-index: 4;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.hero__signature {
  position: relative;
  width: min(34.3vw, 645px);
  pointer-events: auto;
  transform: scale(1);
  transform-origin: 50% 52%;
  transition: transform .72s var(--ease);
}

.hero__signature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--signature-color, #111210);
  -webkit-mask: url("./assets/kai-lin-signature.png") center / 100% 100% no-repeat;
  mask: url("./assets/kai-lin-signature.png") center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}

.hero__signature img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .24s var(--ease);
}

.hero__signature.has-random-color::before {
  opacity: 1;
}

.hero__signature.has-random-color img {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .hero__signature:hover {
    transform: scale(1.035);
  }
}

.hero__signature:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 8px;
  transform: scale(1.035);
}

.hero__descriptor {
  width: auto;
  margin: 0;
  font-size: clamp(11px, .78vw, 13px);
  line-height: 1.35;
  letter-spacing: -.025em;
  text-align: center;
  transform: translateY(8px);
}

.hero__descriptor span {
  font-size: .78em;
  text-transform: none;
}

.hero__portals {
  position: absolute;
  left: 15.65vw;
  right: 15.65vw;
  bottom: 14.1vh;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6.85vw;
}

.hero-portal {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto clamp(39px, 6.27vh, 68px);
  color: var(--ink);
  text-decoration: none;
}

.hero-portal__number {
  margin-bottom: 4px;
  font-size: clamp(8px, .72vw, 11px);
  line-height: 1;
}

.hero-portal__title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(24px, 1fr) auto;
  align-items: center;
  gap: 15px;
}

.hero-portal__title-row strong {
  font-size: clamp(13px, 1.05vw, 18px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.05em;
}

.hero-portal__title-row i {
  height: 1px;
  background: rgba(17, 18, 16, .22);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease), background-color .35s ease;
}

.hero-portal__title-row b {
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  transition: transform .45s var(--ease);
}

.hero-portal__description {
  margin: 7px 0 9px;
  color: rgba(17, 18, 16, .52);
  font-size: clamp(7px, .58vw, 10px);
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.hero-portal__art {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(39px, 6.27vh, 68px);
  isolation: isolate;
  overflow: hidden;
}

.hero-portal__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transform-origin: center;
  transition: transform .55s var(--ease);
}

.hero-portal__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-art-tint, transparent);
  mix-blend-mode: color;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.hero-portal:hover .hero-portal__title-row i,
.hero-portal:focus-visible .hero-portal__title-row i {
  transform: scaleX(1);
  background: currentColor;
}

.hero-portal:hover .hero-portal__title-row b,
.hero-portal:focus-visible .hero-portal__title-row b {
  transform: translateX(5px);
}

.hero-portal:hover .hero-portal__art img,
.hero-portal:focus-visible .hero-portal__art img {
  transform: scale(1.08);
}

.hero-portal:hover .hero-portal__art::after,
.hero-portal:focus-visible .hero-portal__art::after {
  opacity: .26;
}

.hero-portal:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 25px;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 13px;
  font-size: clamp(10px, .68vw, 12px);
  line-height: 1;
  transform: translateX(-50%);
}

.hero__scroll-cue i {
  width: 1px;
  height: 24px;
  background: currentColor;
}

@media (min-width: 821px) {
  .hero__meta {
    right: 9.5vw;
    bottom: 20px;
    font-size: 8px;
  }
}

.about-page {
  position: relative;
  min-height: max(940px, 100svh);
  padding: 20px 0 36px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-transform: none;
}

.about-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333vw - 1px), rgba(0, 0, 0, .025) 8.333vw);
  pointer-events: none;
}

.about-page__title,
.about-page__profile,
.about-page__skills {
  position: relative;
  z-index: 1;
}

.about-page__title {
  width: min(640px, 70vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 320px minmax(80px, 1fr);
  align-items: center;
  gap: 0;
  line-height: 0;
}

.about-page__title::before,
.about-page__title::after {
  content: "";
  height: 1px;
  background: rgba(17, 18, 16, .14);
}

.about-page__title img {
  display: block;
  width: 320px;
  height: auto;
  justify-self: center;
}

.about-page__profile {
  width: min(680px, 72vw);
  margin: 31px auto 0;
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.about-page__portrait {
  width: 274px;
  aspect-ratio: 294 / 360;
  margin: 0;
  justify-self: end;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  border: 0;
  background: linear-gradient(145deg, #dadbd8, #bfc0bd);
  color: rgba(17, 18, 16, .42);
  font: 400 10px/1.45 "DM Mono", monospace;
  letter-spacing: .16em;
  text-align: center;
  transform: translateY(-35px);
}

.about-page__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-page__portrait--upper-body img {
  object-position: 60% 6%;
  transform: scale(1.85);
  transform-origin: 69% 6%;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .about-page__portrait--upper-body img {
    transition: transform .6s var(--ease);
  }

  .about-page__portrait--upper-body:hover img {
    transform: scale(1.90);
  }
}

.about-page__copy {
  padding-top: 31px;
  font-family: Inter, sans-serif;
}

.about-page__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(17, 18, 16, .34);
  font: 400 10px/1 "DM Mono", monospace;
  letter-spacing: .34em;
}

.about-page__eyebrow::after {
  content: "";
  width: 45px;
  height: 1px;
  background: rgba(17, 18, 16, .25);
}

.about-page__copy h3 {
  margin: 12px 0 22px;
  font: 500 clamp(28px, 1.85vw, 31px)/1 Inter, sans-serif;
  letter-spacing: -.045em;
}

.about-page__copy h3 span {
  color: rgba(17, 18, 16, .32);
}

.about-page__lead,
.about-page__body {
  margin: 0;
  color: rgba(17, 18, 16, .42);
  letter-spacing: -.025em;
}

.about-page__lead {
  font: 400 clamp(17px, 1.15vw, 20px)/1.48 Inter, sans-serif;
}

.about-page__body {
  margin-top: 36px;
  font: 400 clamp(14px, .9vw, 16px)/1.55 Inter, sans-serif;
}

.about-page__skills {
  width: min(958px, 76vw);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  color: rgba(17, 18, 16, .42);
  font-family: Inter, sans-serif;
}

.about-skills__column {
  min-width: 0;
  min-height: 258px;
  padding: 30px 34px;
  border: 1px solid rgba(17, 18, 16, .13);
  border-radius: 10px;
  box-sizing: border-box;
}

.about-skills__column--tools {
  padding: 30px 34px;
}

.about-skills__label {
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(17, 18, 16, .34);
  font: 400 10px/1 "DM Mono", monospace;
  letter-spacing: .26em;
}

.about-skills__label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(17, 18, 16, .16);
}

.about-skills__list {
  display: grid;
  gap: 17px;
}

.about-skills__row {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(120px, 1.7fr) 34px;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  line-height: 1;
}

.about-skills__row strong {
  font-weight: 400;
  text-align: right;
}

.about-skills__bar {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(17, 18, 16, .06);
}

.about-skills__bar i {
  display: block;
  width: var(--skill-level);
  height: 100%;
  border-radius: inherit;
  background: rgba(17, 18, 16, .38);
}

.about-tools__icons {
  --tool-gap: 9px;
  display: flex;
  width: min(100%, 261px);
  height: 36px;
  overflow: hidden;
}

.about-tools__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: about-tools-scroll 24s linear infinite;
  will-change: transform;
}

.about-tools__set {
  display: flex;
  flex: none;
  gap: var(--tool-gap);
  padding-right: var(--tool-gap);
}

@keyframes about-tools-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .about-tools__track { animation: none; }
}

.about-tools__icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 18, 16, .10);
  background: #f4f4f1;
  color: #161715;
  font: 600 13px/1 Inter, sans-serif;
}

.about-tools__icon--ai { border-color: #ff9a00; background: #2c1900; color: #ff9a00; }
.about-tools__icon--ps { border-color: #31a8ff; background: #001e36; color: #31a8ff; }
.about-tools__icon--blender,
.about-tools__icon--figma,
.about-tools__icon--claude { background: #f4f4f1; }
.about-tools__icon--codex { background: #2c2c2c; }
.about-tools__icon--notion { background: #fff; }
.about-tools__icon--id { border-color: #ff58a9; background: #3a071c; color: #ff6dac; }
.about-tools__icon--lumion { background: #40758b; }

.about-tools__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.about-tools__icon--blender img { width: 27px; }
.about-tools__icon--figma img { width: 17px; }
.about-tools__icon--lumion img { width: 34px; height: 34px; }

.about-tools__subhead {
  margin: 25px 0 16px;
  color: rgba(17, 18, 16, .28);
  font: 400 9px/1 "DM Mono", monospace;
  letter-spacing: .27em;
}

.about-tools__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
}

.about-tools__chips span {
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(17, 18, 16, .045);
  color: rgba(17, 18, 16, .34);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .about-tools__chips span:hover,
  .about-interests__list span:hover {
    background: #929290;
    color: var(--paper);
  }

  .about-interests__list span:hover i {
    color: var(--paper);
  }
}

.about-page__pager {
  position: relative;
  z-index: 1;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.about-page__pager i {
  width: 44px;
  height: 1px;
  background: rgba(17, 18, 16, .14);
}

.about-page__pager b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(17, 18, 16, .26);
}

.about-page__details,
.about-contact {
  position: relative;
  z-index: 1;
}

.about-page__details {
  width: min(1200px, 80vw);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1.18fr) minmax(0, .86fr);
  gap: clamp(34px, 3.1vw, 58px);
  color: rgba(17, 18, 16, .42);
  font-family: Inter, sans-serif;
}

.about-panel {
  min-width: 0;
}

.about-panel .about-skills__label {
  margin-bottom: 22px;
  color: rgba(17, 18, 16, .76);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  white-space: nowrap;
}

.about-panel .about-skills__label::after {
  flex: 0 1 34px;
  min-width: 0;
  background: rgba(17, 18, 16, .28);
}

.about-panel--tools .about-tools__subhead {
  margin: 23px 0 15px;
}

.about-panel--tools .about-tools__chips {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px 10px;
}

.about-panel--tools .about-tools__chips span {
  padding: 6px 14px;
}

.about-panel--skills .about-skills__list {
  gap: 28px;
}

.about-panel--skills .about-skills__label {
  margin-bottom: 38px;
}

.about-panel--skills .about-skills__row {
  grid-template-columns: 108px minmax(150px, 172px) 34px;
  gap: 12px;
  font-size: 11px;
  justify-content: start;
}

.about-interests__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.about-interests__list span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 29px;
  padding: 0 15px 0 11px;
  border-radius: 99px;
  background: rgba(17, 18, 16, .045);
  color: rgba(17, 18, 16, .36);
  font-size: 10px;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}

.about-interests__list i {
  font-style: normal;
  color: rgba(17, 18, 16, .26);
  transition: color .22s var(--ease);
}

.about-contact {
  width: min(1280px, 86vw);
  margin: 17px auto 0;
  padding-top: 23px;
  border-top: 1px solid rgba(17, 18, 16, .13);
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr));
  align-items: center;
  color: rgba(17, 18, 16, .40);
  font-family: Inter, sans-serif;
}

.about-contact__label {
  margin: 0;
}

.about-contact__item {
  min-width: 0;
  min-height: 52px;
  padding: 0 clamp(14px, 1.35vw, 25px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.about-contact__item:is(button) {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

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

.about-contact__item + .about-contact__item {
  border-left: 1px solid rgba(17, 18, 16, .10);
}

.about-contact__item img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: .84;
}

.about-contact__item--wechat img {
  width: 60px;
  height: 60px;
}

.about-contact__item div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.about-contact__item strong {
  color: rgba(17, 18, 16, .34);
  font: 400 9px/1 "DM Mono", monospace;
  letter-spacing: .22em;
}

.about-contact__item span {
  overflow: hidden;
  color: rgba(17, 18, 16, .38);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-contact__item:is(a, button):hover span,
.about-contact__item:is(a, button):focus-visible span {
  color: rgba(17, 18, 16, .75);
}

.project-hover-hint {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  padding: 6px 12px;
  background: #272727;
  color: #fff;
  font: 500 12px/1 "DM Mono", monospace;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease;
}

.project-hover-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 821px) {
  .works {
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .works__masthead {
    display: none;
  }

  .works__stage {
    min-height: 100svh;
    grid-template-columns: 20.8vw 48.1vw;
    grid-template-rows: auto 1fr;
    column-gap: 1.65vw;
    padding: 14.35vh 14.7vw 13.68vh;
  }

  .view-switcher {
    grid-column: 1;
    gap: 12px;
  }

  .view-switcher button {
    padding: 3px 7px;
    font-size: clamp(9px, .67vw, 13px);
    line-height: 1.25;
  }

  .project-list {
    grid-column: 1;
    align-self: end;
    width: 100%;
    padding: 0;
  }

  .project-row {
    width: 100%;
    height: clamp(36px, 4.25vh, 42px);
    min-height: 0;
    grid-template-columns: clamp(44px, 3.1vw, 60px) minmax(0, 1fr);
    align-items: stretch;
    align-content: center;
    padding: 0;
    border: 0;
    position: relative;
    opacity: .42;
    transition: opacity .28s ease;
  }

  .project-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(56%, var(--project-line-limit, 56%));
    height: 1px;
    background: currentColor;
    transform-origin: left center;
    transition: width .55s cubic-bezier(.22, 1, .36, 1);
  }

  .project-row span,
  .project-row strong {
    display: flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(10px, .72vw, 14px);
    line-height: 1;
    font-weight: 400;
    transform: none;
  }

  .works__stage[data-view="column"] .project-row em {
    display: none;
  }

  .project-row strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-row:hover,
  .project-row:focus-visible,
  .project-row.is-active {
    padding-left: 0;
    transform: none;
    opacity: 1;
  }

  .project-row:hover::after,
  .project-row:focus-visible::after,
  .project-row.is-active::after {
    width: var(--project-line-limit, 100%);
  }

.project-row.is-active strong::after {
    content: "";
  }

  .project-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    width: 100%;
    max-width: none;
    aspect-ratio: 1.35;
  }

  .project-card {
    inset: 0;
  }

  .site-footer {
    position: absolute;
    left: auto;
    right: clamp(22px, 6vw, 112px);
    bottom: 28px;
    width: max-content;
    margin-top: 0;
    padding-top: 14px;
    justify-content: flex-end;
    text-align: right;
    transform: translateY(-46px);
  }
}

/* Desktop About layout calibrated to the supplied 1200 × 595 reference. */
@media (min-width: 821px) {
  .about-page {
    min-height: 100svh;
    padding: 0;
  }

  .about-page__title {
    width: 584px;
    grid-template-columns: 142px 300px 142px;
  }

  .about-page__title img {
    width: 300px;
  }

  .about-page__profile {
    width: 656px;
    margin-top: 61px;
    grid-template-columns: 269px minmax(0, 1fr);
    gap: 45px;
  }

  .about-page__portrait {
    width: 269px;
  }

  .about-page__copy {
    padding-top: 45px;
  }

  .about-page__copy h3 {
    margin: 24px 0 33px;
    font-size: 23px;
  }

  .about-page__lead {
    font-size: 18px;
    line-height: 1.33;
  }

  .about-page__body {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.4;
  }

  .about-page__details {
    left: -30px;
    width: 1108px;
    margin-top: 20px;
    grid-template-columns: 350px 101px 334px 89px 234px;
    gap: 0;
  }

  .about-panel--tools { grid-column: 1; }
  .about-panel--skills { grid-column: 3; }
  .about-panel--interests { grid-column: 5; }

  .about-tools__icons {
    --tool-gap: 26px;
    width: 346px;
  }

  .about-panel--tools .about-tools__subhead {
    margin: 35px 0 26px;
  }

  .about-panel--tools .about-tools__chips {
    gap: 8px 12px;
  }

  .about-panel--tools .about-tools__chips span {
    padding-inline: 17px;
    font-size: 11px;
  }

  .about-panel--skills .about-skills__list {
    gap: 23px;
  }

  .about-panel--skills .about-skills__row {
    grid-template-columns: 108px 160px 34px;
  }

  .about-panel--interests .about-skills__label {
    margin-bottom: 32px;
  }

  .about-interests__list span {
    min-height: 31px;
    padding: 0 27px 0 17px;
    font-size: 11px;
  }

  .about-contact {
    left: -19px;
    width: 1304px;
    margin-top: 32px;
    padding-top: 23px;
    grid-template-columns: 230px 249px 262px 248px 315px;
  }

  .about-contact__label {
    margin-left: 85px;
  }

  .about-contact__item {
    min-height: 48px;
    padding: 0 25px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
  }

  .about-contact__item img {
    width: 32px;
    height: 32px;
    justify-self: center;
  }

  .about-contact__item--wechat {
    gap: 11px;
  }

  .about-contact__item--wechat img {
    width: 48px;
    height: 48px;
  }

  .about-page__pager {
    position: absolute;
    left: 50%;
    bottom: 37px;
    margin: 0;
    transform: translateX(-50%);
  }

  .about-page .site-footer {
    right: 8.1vw;
    bottom: 30px;
    padding-top: 0;
    font-size: 10px;
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 18px 20px 0;
    font-size: 12px;
  }

  .brand {
    width: 44px;
    margin-left: 0;
    font-size: 16px;
  }

  .main-nav {
    gap: 28px;
  }

  .contact-link {
    margin-right: 0;
  }

  .hero__composition {
    top: 16vh;
    width: 100%;
    margin: 0;
  }

  .hero__signature {
    width: min(88vw, 620px);
  }

  .hero__descriptor {
    width: auto;
    margin: 0;
    font-size: 10px;
    text-align: center;
  }

  .hero {
    min-height: 1060px;
  }

  .hero__portals {
    left: 20px;
    right: 20px;
    bottom: 80px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-portal {
    grid-template-rows: auto auto auto 42px;
  }

  .hero-portal__description {
    margin-bottom: 10px;
  }

  .hero-portal__art {
    height: 42px;
  }

  .hero__scroll-cue {
    display: none;
  }

  .about-page {
    min-height: auto;
    padding: 72px 20px 58px;
  }

  .about-page__title {
    width: min(434px, 96vw);
    display: block;
  }

  .about-page__title::before,
  .about-page__title::after {
    display: none;
  }

  .about-page__title img {
    width: 100%;
  }

  .about-page__profile {
    width: 100%;
    margin-top: 58px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-page__portrait {
    width: min(76vw, 320px);
    justify-self: center;
    transform: none;
  }

  .about-page__copy {
    width: min(100%, 520px);
    padding-top: 0;
    justify-self: center;
  }

  .about-page__copy h3 {
    margin-top: 32px;
  }

  .about-page__skills {
    width: 100%;
    margin: 52px 0 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-skills__column,
  .about-skills__column--tools {
    min-height: 0;
    padding: 28px 22px;
  }

  .about-skills__column--tools {
    border: 1px solid rgba(17, 18, 16, .13);
  }

  .about-skills__row {
    grid-template-columns: minmax(108px, 1fr) minmax(92px, 1.35fr) 34px;
    gap: 10px;
    font-size: 11px;
  }

  .about-page__pager {
    display: none;
  }

  .about-page__details {
    width: 100%;
    margin-top: 52px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-panel--tools .about-tools__chips {
    grid-template-columns: repeat(2, max-content);
  }

  .about-panel--skills .about-skills__row {
    grid-template-columns: minmax(108px, 1fr) minmax(92px, 1.35fr) 34px;
    gap: 10px;
  }

  .about-panel--skills .about-skills__label {
    margin-bottom: 22px;
  }

  .about-panel--skills .about-skills__list {
    gap: 16px;
  }

  .about-contact {
    width: 100%;
    margin-top: 48px;
    grid-template-columns: 1fr;
  }

  .about-contact__label {
    margin-bottom: 18px;
  }

  .about-contact__item {
    padding: 14px 0;
  }

  .about-contact__item + .about-contact__item {
    border-left: 0;
    border-top: 1px solid rgba(17, 18, 16, .10);
  }

  .works__masthead {
    display: none;
  }

  .works {
    padding: 0 20px 26px;
    overflow: visible;
  }

  .works__stage {
    min-height: 100svh;
    padding: 100px 0 56px;
  }

  .project-row {
    position: relative;
    border-bottom: 0;
  }

  .project-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(58%, var(--project-line-limit, 58%));
    height: 1px;
    background: currentColor;
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
  }

  .project-row:hover::after,
  .project-row:focus-visible::after,
  .project-row.is-active::after {
    width: var(--project-line-limit, 100%);
  }

  .project-card {
    bottom: 0;
  }

  .project-card[data-card="3"] {
    background: var(--paper);
  }

  .project-card[data-card="3"] img {
    object-fit: contain;
  }

  .site-footer {
    position: static;
    width: 100%;
    margin-top: 68px;
    justify-content: flex-end;
    text-align: right;
  }
}
