/* Peter Zhu personal site. Hero lens / tilt / flip follows pepper's HeroSection.
   Remaining layout is original (off-white, pill nav, hobbies, work, stickers). */

:root {
  --bg: #fcfcfb;
  --fg: #0b0b0b;
  --muted: #666;
  --muted-soft: rgb(0 0 0 / 42%);
  --line: rgb(0 0 0 / 10%);
  --card: #fff;
  --pill: rgb(255 255 255 / 82%);
  --dot: rgb(0 0 0 / 6.5%);
  --dot-size: 18px;
  --max: 1080px;
  --pad: clamp(20px, 4vw, 56px);
  --font: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: var(--dot-size) var(--dot-size);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection {
  background: #000;
  color: #fff;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 2000;
  padding: 8px 12px;
  background: #000;
  color: #fff;
}

/* Header — pepper-like: logo | pill nav | contact */
.site-header {
  position: fixed;
  top: 20px;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  height: 50px;
  padding: 0 var(--pad);
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 88px;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: var(--dot-size) var(--dot-size);
  mask-image: linear-gradient(to bottom, #000 58%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-header a,
.site-header nav {
  pointer-events: auto;
}

.logo {
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: color 280ms ease;
}

.nav {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  height: 50px;
  padding: 5px 8px;
  align-items: center;
  gap: 2px;
  background: var(--pill);
  border-radius: 999px;
  box-shadow:
    0 7px 24px rgb(0 0 0 / 3.5%),
    0 2px 6px rgb(0 0 0 / 2%);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav a {
  display: flex;
  height: 40px;
  padding: 0 16px;
  align-items: center;
  border-radius: 999px;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 200ms ease;
}

.nav a:focus-visible,
.nav a.is-active {
  background: rgb(0 0 0 / 6%);
  outline: none;
}

.contact-pill {
  display: flex;
  height: 50px;
  padding: 0 22px;
  align-items: center;
  color: #fff;
  background: #111;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 10%);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.contact-pill:focus-visible,
.contact-pill:active {
  background: #2a2a2a;
  outline: none;
}

main {
  position: relative;
  z-index: 0;
}

body.is-scrolled:not(.hero-flipped) .site-header::before {
  opacity: 1;
}

body.hero-flipped .site-header::before {
  opacity: 0;
}

body.hero-flipped .logo {
  color: #fff;
}

body.hero-flipped .contact-pill {
  color: #111;
  background: #fff;
  box-shadow: 0 5px 16px rgb(0 0 0 / 18%);
}

/* Hero — pepper lens / tilt / flip */
.hero {
  --title-middle-rotate-x: 0deg;
  --title-middle-rotate-y: 0deg;
  --title-middle-rotate-z: 0deg;
  --title-middle-x: 0px;
  --title-middle-y: 0px;
  --title-rotate-x: 0deg;
  --title-rotate-y: 0deg;
  --title-rotate-z: 0deg;
  --title-signature-rotate-x: 0deg;
  --title-signature-rotate-y: 0deg;
  --title-signature-rotate-z: 0deg;
  --title-signature-x: 0px;
  --title-signature-y: 0px;
  --title-x: 0px;
  --title-y: 0px;

  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #fefefe;
  background-image: radial-gradient(
    circle,
    rgb(0 0 0 / 8%) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  cursor: pointer;
  perspective: 1200px;
  touch-action: pan-y;
}

.hero:focus-visible {
  outline: 2px solid #000;
  outline-offset: -4px;
}

.hero-flip {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-flip.is-flipped {
  transform: rotateX(180deg);
}

.hero-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-front {
  display: grid;
  place-items: center;
  background: transparent;
  transform: rotateX(0deg) translateZ(0.5px);
}

.hero-pattern {
  display: none;
}

.hero-pattern-row {
  width: max-content;
  min-width: 140%;
  white-space: nowrap;
}

.hero-pattern-row.is-offset {
  transform: translateX(-2em);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 32px);
  align-items: center;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
  transform: translate(-50%, -50%)
    perspective(1200px)
    translate3d(var(--title-x), var(--title-y), 0)
    rotateX(var(--title-rotate-x))
    rotateY(var(--title-rotate-y))
    rotateZ(var(--title-rotate-z));
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #000;
  font-family: "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  font-size: clamp(28px, 6.1vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-align: center;
  transform-origin: center;
  transform-style: preserve-3d;
  white-space: nowrap;
}

.hero-title-base,
.hero-title-middle,
.hero-title-signature {
  display: inline-block;
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-title-middle {
  position: relative;
  margin-left: 0.08em;
  transform: translate3d(var(--title-middle-x), var(--title-middle-y), 0)
    rotateX(var(--title-middle-rotate-x))
    rotateY(var(--title-middle-rotate-y))
    rotateZ(var(--title-middle-rotate-z));
}

.hero-title-signature {
  margin-left: 0.12em;
  font-style: normal;
  font-weight: 700;
  transform: translate3d(var(--title-signature-x), var(--title-signature-y), 0)
    rotateX(var(--title-signature-rotate-x))
    rotateY(var(--title-signature-rotate-y))
    rotateZ(var(--title-signature-rotate-z));
}

.hero-subtitle {
  margin: 0;
  color: rgb(0 0 0 / 48%);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-lens {
  --lens-radius: 0px;
  --lens-x: -300px;
  --lens-y: -300px;

  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: #000;
  clip-path: circle(var(--lens-radius) at var(--lens-x) var(--lens-y));
  -webkit-clip-path: circle(var(--lens-radius) at var(--lens-x) var(--lens-y));
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-out;
  will-change: clip-path, opacity;
}

.hero-pattern.is-inverted {
  color: rgb(255 255 255 / 12%);
  font-size: 32px;
}

.hero-title.is-inverted {
  color: #fff;
}

.hero-title.is-inverted .hero-title-signature {
  font-style: normal;
}

.hero-subtitle.is-inverted {
  color: rgb(255 255 255 / 58%);
}

.hero-prompt {
  position: absolute;
  bottom: 44px;
  left: 50%;
  z-index: 2;
  margin: 0;
  color: rgb(0 0 0 / 38%);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: scrollFloat 2.4s ease-in-out infinite;
}

.hero-prompt.is-inverted {
  z-index: 5;
  color: rgb(255 255 255 / 48%);
}

@keyframes scrollFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 3px);
  }
}

.hero-about {
  display: flex;
  padding: 108px 64px 34px;
  flex-direction: column;
  color: #fff;
  background: #000;
  transform: rotateX(180deg) translateZ(0.5px);
}

.hero-about-head {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-about-title {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-about-back {
  padding-top: 7px;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
  white-space: nowrap;
}

.hero-about-copy {
  flex: 1;
  min-height: 0;
  max-width: 1080px;
  column-count: 2;
  column-gap: 56px;
  overflow: auto;
  overscroll-behavior: contain;
  color: rgb(255 255 255 / 88%);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  text-align: justify;
}

.hero-about-copy p,
.hero-about-copy ul {
  margin: 0 0 16px;
  break-inside: avoid;
}

.hero-about-copy p:last-child,
.hero-about-copy ul:last-child {
  margin-bottom: 0;
}

.hero-about-projects {
  padding-left: 1.15em;
}

.hero-about-projects a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgb(255 255 255 / 38%);
}

.hero-about-projects a:hover,
.hero-about-projects a:focus-visible {
  border-bottom-color: #fff;
  outline: none;
}

.hero-about-sign {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.hero-front .snorlax--sleep {
  z-index: 4;
}

/* Sections */
.section {
  padding: 96px var(--pad);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  margin: 0 0 12px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr;
}

.about-copy p {
  margin: 0 0 1.1em;
  max-width: 42em;
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-side-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.about-side {
  width: 100%;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}

.about-side dt {
  margin: 0 0 4px;
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-side dd {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 500;
}

.about-side dd:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-head .section-label {
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 12px;
}

.hobbies {
  margin-top: 56px;
}

.hobby-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hobby {
  position: relative;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

.hobby h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hobby h3 span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hobby p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.65;
}

.hobby--cook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

.hobby--cook h3 {
  grid-column: 1;
  grid-row: 1;
}

.hobby--cook p {
  grid-column: 1;
  grid-row: 2;
}

/* Work cards */
.work-list {
  display: grid;
  gap: 16px;
}

.work-card {
  display: grid;
  padding: 28px 30px;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  transition:
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.work-card:focus-visible,
.work-card:active {
  border-color: #000;
  box-shadow: 0 10px 28px rgb(0 0 0 / 4%);
  transform: translateY(-2px);
  outline: none;
}

.work-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.work-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.work-card .tag {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-card p {
  margin: 0;
  max-width: 52em;
  color: #444;
  font-size: 15px;
  line-height: 1.65;
}

.work-card .link-row {
  margin-top: 10px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-card .link-row span {
  display: inline-block;
  transition: transform 180ms ease;
}

.work-card:focus-visible .link-row span,
.work-card:active .link-row span {
  transform: translateX(4px);
}

/* Selected upstream PRs — compact table under Work */
.upstream {
  margin-top: 56px;
  scroll-margin-top: 96px;
}

.upstream-lead {
  margin: 0 0 20px;
  max-width: 42em;
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.upstream-lead a {
  font-weight: 600;
  border-bottom: 1px solid rgb(0 0 0 / 25%);
}

.upstream-lead a span {
  display: inline-block;
  transition: transform 180ms ease;
}

.upstream-lead a:hover,
.upstream-lead a:focus-visible {
  border-bottom-color: #000;
  outline: none;
}

.upstream-lead a:hover span,
.upstream-lead a:focus-visible span {
  transform: translateX(4px);
}

.pr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border: 1px solid var(--line);
}

.pr-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
}

.pr-table th,
.pr-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.pr-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pr-table tbody tr:last-child th,
.pr-table tbody tr:last-child td {
  border-bottom: none;
}

.pr-table th:nth-child(1),
.pr-table td:nth-child(1),
.pr-table th:nth-child(2),
.pr-table td:nth-child(2) {
  width: 1%;
  white-space: nowrap;
}

.pr-table td:nth-child(1) a {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pr-table td:nth-child(2) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pr-table td:nth-child(2) a {
  color: var(--muted);
  font-weight: 500;
}

.pr-table td:nth-child(3) {
  color: #444;
}

.pr-table a {
  border-bottom: 1px solid rgb(0 0 0 / 18%);
}

.pr-table a:hover,
.pr-table a:focus-visible {
  border-bottom-color: #000;
  color: var(--fg);
  outline: none;
}

/* Contact */
.contact-block {
  display: grid;
  gap: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a,
.contact-links span.soon {
  display: inline-flex;
  padding: 12px 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.contact-links a:focus-visible,
.contact-links a:active {
  background: #000;
  border-color: #000;
  color: #fff;
  outline: none;
}

.contact-links span.soon {
  color: var(--muted);
  border-style: dashed;
}

.email-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.email-line a {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid rgb(0 0 0 / 25%);
}

.email-line a:hover {
  border-bottom-color: #000;
}

/* Footer */
.site-footer {
  padding: 40px var(--pad) 56px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.footer-copy {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
  gap: 12px 24px;
  align-items: center;
}

.site-footer strong {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Snorlax sticker accents */
.snorlax {
  margin: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.snorlax img {
  display: block;
  width: 100%;
  height: auto;
  animation: snorlaxBob 4.8s ease-in-out infinite;
}

.snorlax--sleep {
  position: absolute;
  left: max(4px, calc(var(--pad) - 12px));
  bottom: 18px;
  width: clamp(108px, 17vw, 176px);
  transform: rotate(-7deg);
}

.snorlax--sleep img {
  animation-duration: 5.2s;
  animation-delay: -0.6s;
}

.snorlax--sit {
  width: 128px;
  margin-top: -6px;
  margin-left: 10px;
}

.snorlax--sit img {
  animation-duration: 4.6s;
  animation-delay: -1.4s;
}

.snorlax--eat {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 78px;
  margin: 0;
}

.snorlax--eat img {
  animation-duration: 5.4s;
  animation-delay: -2.1s;
}

.snorlax--wave {
  flex-shrink: 0;
  width: clamp(96px, 14vw, 132px);
  margin-bottom: 4px;
}

.snorlax--wave img {
  animation-duration: 4.4s;
  animation-delay: -0.9s;
}

.snorlax--curl {
  width: 108px;
  transform: rotate(8deg);
}

.snorlax--curl img {
  animation-duration: 5s;
  animation-delay: -1.7s;
}

@keyframes snorlaxBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Scroll-triggered reveals (touch-friendly; not hover).
   Uses `translate` so it doesn't fight work-card `transform` lifts. */
.reveal.is-waiting {
  opacity: 0;
  translate: 0 18px;
}

.reveal.can-motion {
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.hobby-list .hobby:nth-child(2).can-motion {
  transition-delay: 90ms;
}

.hobby-list .hobby:nth-child(3).can-motion {
  transition-delay: 180ms;
}

.work-list .work-card:nth-child(2).can-motion {
  transition-delay: 90ms;
}

.work-list .work-card:nth-child(3).can-motion {
  transition-delay: 180ms;
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(28px, 6vw, 72px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-about {
    padding-right: 48px;
    padding-left: 48px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: 14px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 56px);
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-prompt {
    font-size: 10px;
  }

  .hero-about {
    padding: 88px 32px 28px;
  }

  .hero-about-title {
    font-size: 44px;
  }

  .hero-about-copy {
    column-gap: 30px;
    font-size: 12px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .hero-pattern {
    inset: -20px -100px;
    font-size: 30px;
    line-height: 1.7;
  }

  .hero-pattern.is-inverted {
    font-size: 22px;
  }

  .hero-title {
    font-size: clamp(22px, 8.2vw, 34px);
  }

  .hero-content {
    gap: 8px;
  }

  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .hero-prompt {
    bottom: 40px;
    font-size: 8px;
  }

  .hero-about {
    padding: 72px 14px 12px;
  }

  .hero-about-head {
    margin-bottom: 8px;
  }

  .hero-about-title {
    font-size: 22px;
  }

  .hero-about-back {
    padding-top: 3px;
    font-size: 8px;
  }

  .hero-about-copy {
    column-count: 1;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }

  .hero-about-copy p,
  .hero-about-copy ul {
    margin-bottom: 10px;
  }

  .hero-about-sign {
    margin-top: 6px;
    font-size: 11px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background: rgb(0 0 0 / 6%);
  }

  .contact-pill:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
  }

  .work-card:hover {
    border-color: #000;
    box-shadow: 0 10px 28px rgb(0 0 0 / 4%);
    transform: translateY(-2px);
  }

  .work-card:hover .link-row span {
    transform: translateX(4px);
  }

  .pr-table tbody tr:hover {
    background: rgb(0 0 0 / 2.5%);
  }

  .contact-links a:hover {
    background: #000;
    border-color: #000;
    color: #fff;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hobby-list {
    grid-template-columns: 1fr;
  }

  .snorlax--eat {
    width: 96px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 14px;
    height: 44px;
  }

  .nav {
    height: 44px;
    padding: 4px 6px;
  }

  .nav a {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .contact-pill {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .section {
    padding: 72px var(--pad);
  }

  .work-card {
    padding: 22px;
  }

  .work-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hobbies,
  .upstream {
    margin-top: 44px;
  }

  .pr-table th,
  .pr-table td {
    padding: 10px 14px;
  }

  .snorlax--wave {
    width: 96px;
  }

  .snorlax--sit {
    width: 112px;
  }
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .snorlax--sleep {
    left: auto;
    right: max(4px, calc(var(--pad) - 8px));
    bottom: 16px;
    width: 96px;
  }

  .snorlax--curl {
    width: 88px;
  }

  .section-head {
    align-items: center;
  }

  .pr-table-wrap {
    overflow-x: visible;
  }

  .pr-table {
    min-width: 0;
  }

  .pr-table thead {
    display: none;
  }

  .pr-table,
  .pr-table tbody {
    display: block;
    width: 100%;
  }

  .pr-table tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "project pr ."
      "what what what";
    column-gap: 10px;
    row-gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .pr-table tbody tr:last-child {
    border-bottom: none;
  }

  .pr-table th,
  .pr-table td {
    padding: 0;
    border: none;
  }

  .pr-table td:nth-child(1) {
    grid-area: project;
  }

  .pr-table td:nth-child(2) {
    grid-area: pr;
  }

  .pr-table td:nth-child(3) {
    grid-area: what;
  }
}

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

  .hero-flip {
    transition-duration: 1ms;
  }

  .hero-lens {
    display: none;
  }

  .hero-content {
    transform: translate(-50%, -50%);
  }

  .hero-title-middle,
  .hero-title-signature {
    transform: none;
  }

  .hero-prompt,
  .snorlax img {
    animation: none;
  }

  .logo {
    transition: none;
  }

  .reveal.is-waiting,
  .reveal.can-motion,
  .reveal.is-in {
    opacity: 1;
    translate: 0 0;
    transform: none;
    transition: none;
  }

  .contact-pill,
  .work-card,
  .work-card .link-row span,
  .pr-table a,
  .upstream-lead a span {
    transition: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-lens {
    display: none;
  }

  .hero-content {
    transform: translate(-50%, -50%);
  }

  .hero-title-middle,
  .hero-title-signature {
    transform: none;
  }

  .hero-prompt-move {
    display: none;
  }
}
