:root {
  --bg: #f3f3f1;
  --ink: #111111;
  --muted: #6a6a66;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #d71f2a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", Arial, sans-serif;
}

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

.page-shell {
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #f7f7f5;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 46%);
}

.hero-frame {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  color: var(--ink);
}

.brand,
.topnav a,
.eyebrow,
.section-label,
.note-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.brand {
  font-weight: 700;
}

.topnav {
  display: flex;
  gap: 18px;
}

.topnav a,
.button {
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topnav a:hover,
.button:hover,
.topnav a:focus-visible,
.button:focus-visible {
  opacity: 0.72;
  outline: none;
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(30px, 9vh, 84px);
  width: min(560px, calc(100vw - 48px));
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 0.9;
  letter-spacing: 0;
}

.split-flap-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(100%, 420px);
  min-height: 74px;
  padding: 0;
  width: fit-content;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.split-flap-title > span:not(.flap-tile) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.flap-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(58px, 6vw, 78px);
  height: clamp(64px, 7vw, 90px);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.94);
  color: #f8fafc;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 5.6vw, 66px);
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(17, 17, 17, 0.52);
  font: 700 11px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.18);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(17, 17, 17, 0.58);
  animation: scrollCue 1.35s ease-in-out infinite;
}

.flap-tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
}

.flap-tile.is-flipping {
  animation: flapFlip 0.12s ease-in-out;
}

.flap-space {
  width: clamp(14px, 2vw, 24px);
  background: transparent;
  box-shadow: none;
}

.flap-space::before {
  display: none;
}

.lede {
  max-width: 34rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero-note {
  position: absolute;
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(30px, 9vh, 84px);
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
}

.video-controls {
  position: absolute;
  right: clamp(24px, 6vw, 72px);
  top: clamp(92px, 16vh, 150px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 116px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: 700 12px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.control-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 14px;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  opacity: 0.72;
  outline: none;
}

.note-label {
  color: var(--muted);
}

.content-band {
  display: grid;
  gap: 28px;
  padding: 64px clamp(24px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

#works {
  justify-items: center;
  text-align: center;
}

#works .content-block {
  display: grid;
  justify-items: center;
}

.content-block h2,
.content-grid h3,
.showcase-copy h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1;
}

.content-block h2 {
  max-width: 16ch;
  font-size: clamp(38px, 4.4vw, 72px);
}

.profile-flash-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-left: 0.5;
  --pointer-from-top: 0.5;
  --background-x: 50%;
  --background-y: 50%;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  position: relative;
  display: block;
  width: min(300px, 100%);
  aspect-ratio: 0.72;
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
  perspective: 900px;
  transform-style: preserve-3d;
}

.resume-download {
  width: fit-content;
  margin-top: 10px;
}

.contact-links .resume-download {
  justify-self: end;
  min-width: 190px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.contact-links .resume-download:hover,
.contact-links .resume-download:focus-visible {
  opacity: 0.86;
  transform: translateX(0);
}

.profile-card-behind {
  display: none;
}

.profile-flash-card:hover .profile-card-behind,
.profile-flash-card:focus-visible .profile-card-behind,
.profile-flash-card.is-active .profile-card-behind {
  opacity: 0;
}

.profile-flash-card::before {
  display: none;
  content: none;
}

.profile-flash-card:hover::before,
.profile-flash-card:focus-visible::before {
  opacity: 1;
}

.profile-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 28px;
  background: #111111;
  box-shadow:
    rgba(0, 0, 0, 0.5) calc((var(--pointer-from-left) * 12px) - 5px) calc((var(--pointer-from-top) * 18px) - 7px) 26px -6px,
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backface-visibility: hidden;
  transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.72s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.45s ease;
}

.profile-card-shine,
.profile-card-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
}

.profile-card-shine {
  background:
    repeating-linear-gradient(
      0deg,
      hsl(2 100% 73% / 0.34) 0 5%,
      hsl(53 100% 69% / 0.28) 5% 10%,
      hsl(176 100% 76% / 0.28) 10% 15%,
      hsl(228 100% 74% / 0.3) 15% 20%,
      hsl(283 100% 73% / 0.28) 20% 25%
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(14, 21, 46, 0.88) 0%,
      rgba(170, 190, 190, 0.42) 4.2%,
      rgba(14, 21, 46, 0.86) 9.5%,
      rgba(14, 21, 46, 0.86) 12%
    ),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.12) 58%, transparent 72%);
  background-position:
    0 var(--background-y),
    var(--background-x) var(--background-y),
    center;
  background-size:
    500% 500%,
    300% 300%,
    100% 100%;
  background-blend-mode: color, hard-light, normal;
  mix-blend-mode: color-dodge;
  filter: brightness(0.78) contrast(1.28) saturate(0.68);
  opacity: 0.18;
  transition: opacity 0.55s ease, filter 0.55s ease;
}

.profile-card-glare {
  z-index: 4;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(248, 250, 252, 0.34) 0 9%, rgba(91, 196, 255, 0.14) 28%, transparent 64%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.profile-flash-card:hover .profile-card-shine,
.profile-flash-card:focus-visible .profile-card-shine,
.profile-flash-card.is-active .profile-card-shine {
  opacity: 0.48;
  filter: brightness(0.92) contrast(1.42) saturate(0.82);
}

.profile-flash-card:hover .profile-card-glare,
.profile-flash-card:focus-visible .profile-card-glare,
.profile-flash-card.is-active .profile-card-glare {
  opacity: 0.72;
}

.profile-flash-card.is-flipped .profile-card-front {
  transform: rotateY(180deg) scale(0.985);
}

.profile-card-back {
  align-content: space-between;
  gap: 10px;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(145deg, #151515 0%, #293241 54%, #0f172a 100%);
  transform: rotateY(-180deg);
}

.profile-flash-card.is-flipped .profile-card-back {
  transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
}

.profile-card-chart {
  position: relative;
  z-index: 1;
  width: min(100%, 270px);
  place-self: center;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  transform: translateZ(34px);
}

.profile-hex-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: translateZ(32px);
}

.profile-hex-panel i {
  display: grid;
  place-items: center;
  aspect-ratio: 1.12;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(145deg, rgba(255, 214, 89, 0.38), rgba(109, 83, 255, 0.24));
  color: rgba(255, 255, 255, 0.94);
  font: 800 18px/1 "Barlow Condensed", sans-serif;
  font-style: normal;
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.profile-card-front::after,
.profile-card-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 26%, rgba(255, 255, 255, 0.26) 36%, transparent 48%),
    repeating-linear-gradient(105deg, rgba(255, 91, 176, 0.14) 0 8%, rgba(91, 196, 255, 0.12) 8% 16%, rgba(255, 236, 120, 0.12) 16% 24%);
  background-position: var(--pointer-x) var(--pointer-y), center;
  background-size: 220% 220%, 180% 180%;
  mix-blend-mode: color-dodge;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.profile-flash-card:hover .profile-card-front::after,
.profile-flash-card:hover .profile-card-back::after,
.profile-flash-card:focus-visible .profile-card-front::after,
.profile-flash-card:focus-visible .profile-card-back::after {
  opacity: 0.36;
}

.profile-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateZ(24px) scale(1.01);
}

.profile-card-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(18px);
  transform: translateZ(36px);
}

.profile-card-info strong,
.profile-card-back strong {
  font: 700 clamp(26px, 3vw, 42px)/1 "Barlow Condensed", "Noto Sans SC", sans-serif;
}

.profile-card-info em,
.profile-card-back em,
.profile-card-back span {
  color: rgba(248, 250, 252, 0.78);
  font-style: normal;
  line-height: 1.55;
}

.profile-card-kicker {
  color: rgba(255, 255, 255, 0.54);
  font: 700 12px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.16em;
}

.profile-card-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(300px, 100%);
  margin-top: 14px;
}

.profile-card-extra span {
  padding: 7px 9px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(17, 17, 17, 0.74);
  font: 700 10px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}

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

.software-marquee {
  width: min(1120px, 100%);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.software-track {
  display: flex;
  width: max-content;
  gap: 38px;
  color: rgba(17, 17, 17, 0.58);
  font: 700 12px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: softwareScroll 24s linear infinite;
}

.software-track span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.software-track img {
  width: 18px;
  height: 18px;
  opacity: 0.64;
  filter: grayscale(1);
}

.works-showcase {
  display: grid;
  grid-template-columns: minmax(620px, 1.45fr) minmax(240px, 0.65fr);
  align-items: center;
  justify-items: start;
  width: min(1320px, 100%);
  gap: clamp(22px, 3vw, 42px);
}

.work-category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(1320px, 100%);
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.work-category-header h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.9;
}

.aigc-showcase {
  margin-top: 4px;
}

.gallery-shell {
  position: relative;
  width: min(900px, 100%);
  padding-bottom: 54px;
}

.bounce-cards {
  display: flex;
  gap: 28px;
  width: 100%;
  min-height: 360px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 22px 54px 34px;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  cursor: grab;
  user-select: none;
}

.bounce-cards.is-dragging,
.bounce-cards.is-auto-scrolling {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.bounce-cards::-webkit-scrollbar {
  height: 6px;
}

.bounce-cards::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.24);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: 500 34px/1 "Barlow Condensed", sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  opacity: 0.78;
  outline: none;
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-prev {
  left: 0;
}

.gallery-arrow-next {
  right: 0;
}

.view-all-button {
  position: absolute;
  right: 54px;
  bottom: 0;
  z-index: 12;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: 700 12px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.view-all-button:hover,
.view-all-button:focus-visible {
  opacity: 0.78;
  outline: none;
  transform: translateY(-2px);
}

.bounce-card {
  position: relative;
  flex: 0 0 min(460px, calc(100vw - 150px));
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 28px;
  background: #111111;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.22);
  cursor: pointer;
  opacity: 1;
  transform: none;
  scroll-snap-align: center;
  will-change: transform;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease, opacity 0.28s ease;
}

.bounce-card:hover,
.bounce-card:focus-visible {
  z-index: 3;
  outline: none;
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 20px 46px rgba(17, 17, 17, 0.25);
}

.bounce-card img,
.bounce-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1);
  transform: scale(1);
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.42s ease;
}

.media-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 68px);
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.52);
  color: #f8fafc;
  font: 700 11px/1 "Noto Sans SC", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.zoom-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.62);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

.zoom-chip::before {
  content: "";
  width: 13px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}

.zoom-chip::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(7px, 8px) rotate(45deg);
  transform-origin: center;
}

.zoom-chip:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(17, 17, 17, 0.78);
  transform: scale(1.08);
}

.bounce-card:hover img,
.bounce-card:hover video,
.bounce-card:focus-visible img,
.bounce-card:focus-visible video {
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.045);
}

.showcase-copy {
  width: min(560px, 100%);
  padding: 26px;
  text-align: left;
}

.content-grid article,
.content-copy {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #111111;
  color: #f8fafc;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 228, 94, 0.22);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.spotlight-card:hover::before,
.spotlight-card:focus-within::before {
  opacity: 0.8;
}

.spotlight-card h3,
.spotlight-card p {
  position: relative;
  z-index: 1;
}

.content-grid p,
.content-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.spotlight-card p {
  color: rgba(248, 250, 252, 0.72);
}

#about.split {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4.5vw, 54px);
}

#about .content-block {
  position: sticky;
  top: 28px;
  align-self: start;
}

#about .content-block h2 {
  font-size: clamp(42px, 4vw, 64px);
}

.resume-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
  padding-top: 0;
  border-top: 0;
}

.resume-column {
  min-width: 0;
}

.resume-profile {
  align-self: start;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px clamp(18px, 2.2vw, 28px);
  border-right: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
}

.resume-profile h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 800 clamp(24px, 3vw, 38px)/1 "Barlow Condensed", "Noto Sans SC", sans-serif;
}

.resume-profile-summary {
  min-width: 0;
}

.resume-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 12px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-profile p:not(.resume-kicker),
.resume-main p,
.resume-main li,
.skill-level p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.75;
}

.resume-profile .resume-kicker:not(:first-child) {
  margin-top: 0;
}

.resume-profile ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.skill-level {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 0;
  border-top: 0;
}

.skill-level strong {
  color: var(--ink);
  font: 700 14px/1 "Noto Sans SC", Arial, sans-serif;
}

.resume-main {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.resume-main article {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.resume-main h3 {
  margin: 0;
  color: var(--ink);
  font: 700 clamp(18px, 2vw, 24px)/1.25 "Noto Sans SC", Arial, sans-serif;
}

.resume-main ol {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 20px;
}

.pressure-section {
  min-height: 74svh;
  display: grid;
  align-items: end;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 7vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: end;
  gap: 36px;
  width: 100%;
}

.contact-title {
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(86px, 15vw, 210px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: 0;
}

.contact-note {
  max-width: 560px;
  margin: clamp(56px, 10vw, 130px) 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-links {
  display: grid;
  gap: 13px;
  justify-items: end;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  min-width: min(100%, 230px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-links img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.78;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  opacity: 0.68;
  outline: none;
  transform: translateX(4px);
}

.glow-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483646;
  width: 62px;
  height: 62px;
  pointer-events: none;
  opacity: 0.98;
  transform: translate3d(-50%, -50%, 0);
}

body.dialog-cursor-visible .glow-cursor {
  display: none;
}

.glow-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/cat-cursor-sprite-centered.png");
  background-size: 600% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(255, 232, 156, 0.45));
  transform-origin: 48% 62%;
  animation: catCursorFrames 1.05s steps(5, end) infinite, catCursorIdle 2s ease-in-out infinite;
}

.glow-cursor::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 4px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(5px);
  transform: scaleX(0.86);
  animation: catCursorShadow 2s ease-in-out infinite;
}

.glow-cursor.is-hovering::before,
.glow-cursor.is-clicking::before {
  background-image: url("./Oo Ee A E A Cat Meme Animated/Oo Ee A E A Cat Meme Animated--pointer--SweezyCursors.png");
  background-size: contain;
  background-position: center;
  animation: catCursorIdle 2s ease-in-out infinite;
}

.glow-cursor.is-clicking::before {
  animation: catCursorClick 0.42s cubic-bezier(0.2, 1.7, 0.28, 1), catCursorIdle 1.55s ease-in-out infinite 0.42s;
}

.glow-cursor.is-clicking::after {
  animation: catShadowClick 0.42s ease-out, catCursorShadow 1.55s ease-in-out infinite 0.42s;
}

.gradual-blur {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 16;
  height: 6rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  isolation: isolate;
}

.gradual-blur.is-visible {
  opacity: 1;
}

.gradual-blur-top {
  top: 0;
}

.gradual-blur-bottom {
  bottom: 0;
}

.gradual-blur span {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.gradual-blur span:nth-child(n + 4) {
  display: none;
}

.gradual-blur-top span:nth-child(1) {
  -webkit-backdrop-filter: blur(0.25rem);
  backdrop-filter: blur(0.25rem);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 40%, transparent 60%);
  mask-image: linear-gradient(to top, transparent 0%, black 20%, black 40%, transparent 60%);
}

.gradual-blur-top span:nth-child(2) {
  -webkit-backdrop-filter: blur(0.4rem);
  backdrop-filter: blur(0.4rem);
  -webkit-mask-image: linear-gradient(to top, transparent 20%, black 40%, black 60%, transparent 80%);
  mask-image: linear-gradient(to top, transparent 20%, black 40%, black 60%, transparent 80%);
}

.gradual-blur-top span:nth-child(3) {
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
  -webkit-mask-image: linear-gradient(to top, transparent 40%, black 60%, black 80%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 40%, black 60%, black 80%, transparent 100%);
}

.gradual-blur-top span:nth-child(4) {
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  -webkit-mask-image: linear-gradient(to top, transparent 60%, black 80%, black 100%);
  mask-image: linear-gradient(to top, transparent 60%, black 80%, black 100%);
}

.gradual-blur-top span:nth-child(5) {
  -webkit-backdrop-filter: blur(1.45rem);
  backdrop-filter: blur(1.45rem);
  -webkit-mask-image: linear-gradient(to top, transparent 75%, black 100%);
  mask-image: linear-gradient(to top, transparent 75%, black 100%);
}

.gradual-blur-bottom span:nth-child(1) {
  -webkit-backdrop-filter: blur(0.25rem);
  backdrop-filter: blur(0.25rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 40%, transparent 60%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 40%, transparent 60%);
}

.gradual-blur-bottom span:nth-child(2) {
  -webkit-backdrop-filter: blur(0.4rem);
  backdrop-filter: blur(0.4rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 40%, black 60%, transparent 80%);
  mask-image: linear-gradient(to bottom, transparent 20%, black 40%, black 60%, transparent 80%);
}

.gradual-blur-bottom span:nth-child(3) {
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, black 60%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 40%, black 60%, black 80%, transparent 100%);
}

.gradual-blur-bottom span:nth-child(4) {
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent 60%, black 80%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 60%, black 80%, black 100%);
}

.gradual-blur-bottom span:nth-child(5) {
  -webkit-backdrop-filter: blur(1.45rem);
  backdrop-filter: blur(1.45rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent 75%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 75%, black 100%);
}

.side-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(18, 15, 23, 0.88);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.side-dock .dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #120f17;
  color: #f8fafc;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.side-dock .dock-item:hover,
.side-dock .dock-item:focus-visible {
  width: 66px;
  height: 66px;
  background: #1d1826;
  outline: none;
}

.side-dock .dock-item img {
  width: 22px;
  height: 22px;
  filter: invert(1);
  opacity: 0.92;
}

.side-dock .dock-item small {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #120f17;
  color: #f8fafc;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.side-dock .dock-item:hover small,
.side-dock .dock-item:focus-visible small {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.screen-reader-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.work-dialog {
  position: fixed;
  inset: 0;
  width: min(980px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #111111;
  color: #f8fafc;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  margin: auto;
}

.work-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(7px);
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.7);
  color: #f8fafc;
  font-size: 24px;
  cursor: pointer;
}

.dialog-expand {
  position: absolute;
  right: 66px;
  top: 18px;
  z-index: 3;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.7);
  color: #f8fafc;
  font: 700 11px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.work-dialog.is-expanded {
  width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
}

.work-dialog.is-expanded .dialog-media {
  height: min(68vh, 720px);
}

.dialog-media {
  height: min(48vh, 410px);
  background: #050505;
}

.dialog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.dialog-copy {
  padding: 28px clamp(22px, 4vw, 42px) 34px;
}

.dialog-copy h2 {
  margin: 6px 0 12px;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.dialog-copy p {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.7;
}

.option-wheel {
  position: absolute;
  left: 18px;
  top: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.image-lightbox {
  width: min(1180px, calc(100vw - 28px));
  height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #050505;
  overflow: hidden;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.image-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-lightbox video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-lightbox [hidden] {
  display: none !important;
}

.all-works-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: clamp(22px, 4vw, 42px);
  border: 0;
  border-radius: 22px;
  background: #f6f6f3;
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.all-works-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.all-works-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 54px 28px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.all-works-header h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.92;
}

.all-works-content {
  display: grid;
  gap: 34px;
}

.all-works-group {
  display: grid;
  gap: 14px;
}

.all-works-group h3 {
  margin: 0;
  font: 700 18px/1.2 "Noto Sans SC", Arial, sans-serif;
}

.all-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.all-works-item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #111111;
  cursor: zoom-in;
}

.all-works-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.all-works-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.all-works-item span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.62);
  color: #f8fafc;
  font: 700 10px/1 "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.all-works-item:hover img,
.all-works-item:hover video,
.all-works-item:focus-visible img,
.all-works-item:focus-visible video {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.option-wheel__item {
  min-width: 120px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: rgba(248, 250, 252, 0.42);
  font: 500 20px/1 "Barlow Condensed", sans-serif;
  text-align: left;
  cursor: pointer;
  filter: blur(1.6px);
  opacity: 0.55;
  transform-origin: left center;
  transition: color 0.2s ease, filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.option-wheel__item.is-active {
  color: #ffffff;
  filter: none;
  opacity: 1;
  transform: translateX(16px) scale(1.08);
}

.click-spark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  width: 8px;
  height: 2px;
  pointer-events: none;
  background: #ffe45e;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 228, 94, 0.72);
  transform-origin: left center;
}

@media (max-width: 900px) {
  .content-band,
  .content-band > *,
  .works-showcase,
  .gallery-shell,
  .bounce-cards,
  .resume-panel,
  .resume-profile,
  .contact-layout {
    min-width: 0;
  }

  .topbar {
    padding: 20px 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 24px;
    width: auto;
  }

  .hero-note {
    right: 20px;
    top: 136px;
    bottom: auto;
  }

  .video-controls {
    left: 20px;
    right: auto;
    top: 92px;
  }

  .content-grid,
  .split,
  .works-showcase {
    grid-template-columns: 1fr;
  }

  #works {
    grid-template-columns: minmax(0, 1fr);
  }

  #works .content-block,
  .software-marquee,
  .work-category-header,
  .works-showcase,
  .gallery-shell {
    width: 100%;
  }

  .works-showcase {
    justify-items: stretch;
  }

  .work-category-header {
    align-items: center;
  }

  .gallery-shell {
    padding-bottom: 48px;
  }

  .bounce-cards {
    min-height: 300px;
    padding: 18px 44px 28px;
  }

  .bounce-card {
    flex-basis: min(420px, calc(100vw - 116px));
  }

  .view-all-button {
    right: 44px;
  }

  #about.split,
  .resume-panel {
    grid-template-columns: 1fr;
  }

  .resume-profile {
    grid-template-columns: 1fr;
  }

  #about .content-block {
    position: static;
  }

  .profile-flash-card,
  .profile-card-extra {
    width: min(320px, 100%);
  }

  .resume-profile {
    border-right: 0;
  }

  .side-dock {
    right: 10px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-items: start;
  }

  .contact-links a {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .content-band {
    gap: 22px;
    padding: 48px 20px;
  }

  .hero-frame {
    inset: 12px;
  }

  .topbar {
    gap: 14px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-copy {
    bottom: 54px;
  }

  .split-flap-title {
    min-height: 58px;
    gap: 4px;
    padding: 0;
  }

  .flap-tile {
    width: clamp(46px, 13vw, 52px);
    height: clamp(56px, 15vw, 62px);
    font-size: clamp(34px, 9.5vw, 38px);
  }

  .flap-space {
    width: 10px;
  }

  .lede {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-note {
    display: none;
  }

  .video-controls {
    top: 102px;
    gap: 8px;
  }

  .icon-button {
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
  }

  .scroll-cue {
    display: none;
  }

  .work-category-header {
    gap: 12px;
  }

  .gallery-shell {
    padding-bottom: 44px;
  }

  .bounce-cards {
    gap: 16px;
    min-height: 236px;
    padding: 16px 30px 24px;
    scroll-snap-type: x proximity;
  }

  .bounce-card {
    flex-basis: min(310px, calc(100vw - 80px));
    border-width: 3px;
    border-radius: 18px;
  }

  .gallery-arrow {
    width: 36px;
    font-size: 28px;
  }

  .view-all-button {
    right: 30px;
    min-height: 34px;
    padding: 0 13px;
  }

  .showcase-copy {
    padding: 18px;
  }

  .profile-flash-card,
  .profile-card-extra {
    width: min(300px, 100%);
  }

  .profile-card-back {
    gap: 8px;
    padding: 18px;
  }

  .profile-card-chart {
    width: min(100%, 230px);
  }

  .profile-hex-panel {
    gap: 6px;
  }

  .profile-hex-panel i {
    font-size: 15px;
  }

  .resume-profile {
    padding: 18px;
  }

  .resume-main h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  .pressure-section {
    min-height: 70svh;
    padding: 52px 20px 88px;
  }

  .contact-title {
    font-size: clamp(74px, 24vw, 110px);
  }

  .contact-note {
    margin-top: 32px;
  }

  .contact-links .resume-download {
    justify-self: start;
  }

  .glow-cursor {
    display: none;
  }

  .side-dock {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    width: calc(100vw - 32px);
    justify-content: center;
    padding: 8px;
    transform: translateX(-50%);
  }

  .side-dock .dock-item,
  .side-dock .dock-item:hover,
  .side-dock .dock-item:focus-visible {
    width: 44px;
    height: 44px;
  }

  .side-dock .dock-item small {
    display: none;
  }

  .work-dialog {
    inset: 0;
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    border-radius: 18px;
  }

  .dialog-expand {
    right: 62px;
    max-width: calc(100vw - 138px);
  }

  .dialog-media {
    height: min(48svh, 300px);
  }

  .dialog-copy {
    padding: 22px 18px 26px;
  }

  .option-wheel {
    left: 12px;
    top: 18px;
    gap: 4px;
  }

  .option-wheel__item {
    min-width: 132px;
    font-size: 18px;
  }

  .all-works-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 18px;
    border-radius: 18px;
  }

  .all-works-header {
    display: grid;
    gap: 10px;
    margin: 0 44px 20px 0;
  }

  .all-works-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

@keyframes flapFlip {
  0% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
  50% {
    transform: rotateX(-90deg);
    filter: brightness(0.65);
  }
  100% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
}

@keyframes scrollCue {
  0% {
    transform: translateY(-16px);
    opacity: 0;
  }
  35%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(42px);
    opacity: 0;
  }
}

@keyframes softwareScroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes catCursorFrames {
  to {
    background-position: 100% 0;
  }
}

@keyframes catCursorIdle {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes catCursorShadow {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.86);
  }
  50% {
    opacity: 0.38;
    transform: scaleX(0.72);
  }
}

@keyframes catCursorClick {
  0% {
    transform: translateY(0) scale(1.02, 1);
  }
  35% {
    transform: translateY(3px) scale(0.72, 0.62);
  }
  62% {
    transform: translateY(-4px) scale(1.18, 1.25);
  }
  82% {
    transform: translateY(1px) scale(0.96, 0.92);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes catShadowClick {
  0% {
    opacity: 0.55;
    transform: scaleX(0.86);
  }
  35% {
    opacity: 0.72;
    transform: scaleX(1.12);
  }
  70% {
    opacity: 0.3;
    transform: scaleX(0.62);
  }
  100% {
    opacity: 0.55;
    transform: scaleX(0.86);
  }
}

@keyframes galleryScroll {
  to {
    transform: translateX(-50%);
  }
}
