:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5eef7;
  background: #09080c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: #09080c;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(7, 141, 112, 0.055), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(123, 173, 226, 0.055), transparent 40%),
    linear-gradient(135deg,
        rgba(7, 141, 112, 0.026) 0%,
        rgba(152, 232, 193, 0.022) 25%,
        rgba(255, 255, 255, 0.018) 48%,
        rgba(123, 173, 226, 0.022) 75%,
        rgba(29, 78, 216, 0.026) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
}

.page {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 80px) 0;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
}

.left {
  min-width: 0;
  padding-top: 8px;
}

.intro {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.intro span {
  display: inline-block;
  margin-top: 10px;
  color: rgba(245, 238, 247, 0.66);
  font-size: 0.58em;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.bio {
  max-width: 760px;
  margin: 30px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.7;
  color: rgba(245, 238, 247, 0.72);
}

.links-section {
  margin-top: 38px;
}

.links-section h2 {
  margin: 0 0 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

a {
  color: #f4eaf7;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity .16s ease, transform .16s ease;
}

a:hover {
  opacity: .6;
}

.stacked-list {
  display: grid;
  gap: 5px;
  color: rgba(245, 238, 247, 0.73);
  line-height: 1.5;
}

.stacked-list span {
  display: block;
}

.projects {
  margin-top: 30px;
}

.meow {
  margin-top: clamp(72px, 11vw, 130px);
  font-size: clamp(5.2rem, 17vw, 14rem);
  line-height: 0.72;
  letter-spacing: -0.085em;
  font-weight: 900;
  color: rgba(250, 245, 251, 0.94);
  user-select: none;
  overflow-wrap: anywhere;
}

.cats-section {
  margin-top: 38px;
}

.cats-section > h2 {
  margin: 0 0 26px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.cat-group + .cat-group {
  margin-top: 44px;
}

.cat-group h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.cat-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cat-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.cat-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cat-photo figcaption {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: rgba(245, 238, 247, 0.28);
  font-size: 0.72rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.disclaimer {
  margin: clamp(46px, 7vw, 82px) 0 0;
  color: rgba(245, 238, 247, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.right {
  display: flex;
  justify-content: center;
  align-items: start;
  position: sticky;
  top: clamp(28px, 6vw, 70px);
}

.pfp-frame {
  width: min(100%, 400px);
  aspect-ratio: 1;
  border-radius: clamp(20px, 2.5vw, 30px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 80px rgba(88, 38, 93, 0.08);
  backdrop-filter: blur(8px);
}

.pfp-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(245, 238, 247, 0.38);
  font-size: 1rem;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 38px, 680px);
    place-items: start center;
    padding: 42px 0 62px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .right {
    position: static;
    grid-row: 1;
    justify-content: start;
  }

  .pfp-frame {
    width: min(68vw, 320px);
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 28px, 680px);
    padding-top: 28px;
  }

  .hero {
    gap: 34px;
  }

  .intro {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .bio {
    margin-top: 24px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .links-section {
    margin-top: 31px;
  }

  .right {
    justify-content: center;
  }

  .pfp-frame {
    width: min(76vw, 280px);
    border-radius: 21px;
  }

  .meow {
    margin-top: 64px;
    font-size: clamp(4.6rem, 25vw, 8rem);
  }

  .cats-section {
    margin-top: 82px;
  }

  .cat-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
}

@media (max-width: 360px) {
  .page {
    width: calc(100% - 22px);
  }

  .links {
    gap: 7px 13px;
  }

  .stacked-list {
    font-size: 0.95rem;
  }

  .cat-gallery {
    gap: 7px;
  }

  .cat-photo {
    border-radius: 13px;
  }
}

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

  * {
    transition: none !important;
  }
}

.zoomable-cat {
  cursor: zoom-in;
  transition: transform 180ms ease, filter 180ms ease;
}

.zoomable-cat:hover {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 3, 7, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox > img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(20, 18, 24, 0.72);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox > img {
    max-width: 96vw;
    max-height: 84vh;
    border-radius: 15px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoomable-cat,
  .image-lightbox {
    transition: none;
  }
}
