:root {
  --ink: #171a20;
  --muted: #5f6570;
  --paper: #f8f4ec;
  --panel: #ffffff;
  --line: #d9d1c3;
  --red: #d84a3a;
  --teal: #177f78;
  --gold: #d69b2f;
  --violet: #6044a7;
  --shadow: 0 20px 60px rgba(23, 26, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 127, 120, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(216, 74, 58, 0.07) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 26, 32, 0.09);
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--red);
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-weight: 700;
}

nav a:hover {
  color: var(--red);
}

.hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 72px) 70px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(4rem, 13vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button svg,
.project-card svg,
.resume-actions svg,
.contact-actions svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary {
  color: #fff;
  background: var(--red);
}

.ghost {
  background: var(--panel);
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.orbital-grid {
  position: absolute;
  inset: 20px 0 40px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 28%, rgba(216, 74, 58, 0.85) 0 7px, transparent 8px),
    radial-gradient(circle at 38% 72%, rgba(23, 127, 120, 0.85) 0 8px, transparent 9px),
    linear-gradient(135deg, rgba(214, 155, 47, 0.18), rgba(96, 68, 167, 0.12)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(23, 26, 32, 0.08) 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(23, 26, 32, 0.08) 26px 27px);
  box-shadow: var(--shadow), 8px 8px 0 var(--ink);
  transform: rotate(2deg);
}

.orbital-grid::before,
.orbital-grid::after {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.orbital-grid::before {
  width: 58%;
  aspect-ratio: 1;
  top: 18%;
  left: 20%;
}

.orbital-grid::after {
  width: 28%;
  aspect-ratio: 1;
  right: 14%;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.52);
}

.code-strip {
  position: absolute;
  z-index: 2;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.96rem);
}

.code-strip.one {
  top: 76px;
  left: 4%;
}

.code-strip.two {
  right: 4%;
  top: 46%;
  background: #ffe0db;
}

.code-strip.three {
  left: 20%;
  bottom: 40px;
  background: #d7f1ed;
}

.section {
  padding: clamp(48px, 8vw, 105px) clamp(18px, 5vw, 72px);
}

.intro {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.intro p {
  max-width: 960px;
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 850;
}

.section-heading {
  max-width: 770px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

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

.project-card,
.resume-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--ink);
}

.project-card.accent {
  background: #fff0c9;
}

.project-card p,
.resume-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-number {
  width: max-content;
  color: #fff;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 900;
}

.project-card a:hover {
  color: var(--red);
}

.resume {
  background: #fff8e7;
}

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

.resume-card {
  min-height: 260px;
}

.resume-card:nth-child(2) {
  background: #e5f5f1;
}

.resume-card:nth-child(3) {
  background: #ffe8e2;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  background: #f1faf8;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-list span {
  padding: 13px 15px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 850;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #221f2f;
  color: #fff;
}

.contact .eyebrow {
  color: #fac96c;
}

.contact h2 {
  max-width: 870px;
}

.contact-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 520px;
}

.button.light {
  color: var(--ink);
  background: #fff;
}

.whispers {
  background-color: #2a2540;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23393256' fill-rule='evenodd'%3E%3Cpath d='M30,38c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S36.6,38,30,38z M14,24c-4.4,0-8,3.6-8,8s3.6,8,8,8s8-3.6,8-8S18.4,24,14,24z M46,24c-4.4,0-8,3.6-8,8s3.6,8,8,8s8-3.6,8-8S50.4,24,46,24z M22,8c-3.9,0-7,3.1-7,7s3.1,7,7,7s7-3.1,7-7S25.9,8,22,8z M38,8c-3.9,0-7,3.1-7,7s3.1,7,7,7s7-3.1,7-7S41.9,8,38,8z'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  border-top: 2px solid var(--ink);
  position: relative;
}

.whisper-graphic {
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

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

.whispers .eyebrow {
  color: #9debd6;
}

.whispers-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.55;
}

.whispers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.whisper-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.alias-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.alias-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.alias-badge {
  display: inline-flex;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #d7f1ed;
  font-weight: 850;
}

.field-label {
  font-weight: 800;
  font-size: 0.92rem;
}

.whisper-form textarea,
.whisper-form input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  line-height: 1.45;
}

.whisper-form textarea {
  resize: vertical;
  min-height: 120px;
}

.whisper-form textarea:focus-visible,
.whisper-form input:focus-visible,
.coffee-card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.whisper-status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 750;
}

.whisper-status[data-state="success"] {
  color: var(--teal);
}

.whisper-status[data-state="error"] {
  color: var(--red);
}

.coffee {
  background:
    radial-gradient(circle at 12% 18%, rgba(77, 222, 160, 0.18), transparent 34%),
    #fff0c9;
  border-top: 2px solid var(--ink);
}

.coffee-card {
  display: grid;
  grid-template-columns: minmax(130px, 160px) minmax(0, 1fr) minmax(160px, 190px);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
  cursor: pointer;
}

.coffee-card .eyebrow {
  color: #1f9b72;
}

.coffee-phrase {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  transition: opacity 180ms ease, transform 180ms ease;
}

.coffee-phrase.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.coffee-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.upi-link {
  margin-top: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.coffee-cup {
  width: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coffee-cup .steam {
  stroke: #1f9b72;
  animation: steamRise 2.8s ease-in-out infinite;
}

.coffee-cup .steam-two {
  animation-delay: 0.45s;
}

.coffee-cup .steam-three {
  animation-delay: 0.9s;
}

.qr-card {
  margin: 0;
  text-align: center;
}

.qr-card img {
  width: min(100%, 180px);
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.qr-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 750;
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes steamRise {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

.cat-stage {
  --cat-x: 65vw;
  --cat-y: 72vh;
  --cat-rotate: 0deg;
  --cat-scale: 1;
  --cat-half-x: 66px;
  --cat-half-y: 54px;
  --paw-rotate: 0deg;
  --paw-shift: 0px;
  --tail-rotate: 0deg;
  --eye-x: 0px;
  --eye-y: 0px;
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  width: 132px;
  height: 108px;
  pointer-events: none;
  transform:
    translate3d(calc(var(--cat-x) - var(--cat-half-x)), calc(var(--cat-y) - var(--cat-half-y)), 0)
    rotate(var(--cat-rotate))
    scale(var(--cat-scale));
  transform-origin: 50% 80%;
  transition: filter 220ms ease;
  filter: drop-shadow(0 14px 14px rgba(23, 26, 32, 0.2));
  will-change: transform;
}

.cat-stage.hunting {
  filter: drop-shadow(0 18px 12px rgba(216, 74, 58, 0.22));
}

.cat-stage.scared {
  --cat-scale: 0.92;
  filter: drop-shadow(0 20px 12px rgba(96, 68, 167, 0.24));
}

.cat-stage.angry {
  --cat-scale: 1.03;
  filter: drop-shadow(0 20px 12px rgba(216, 74, 58, 0.28));
}

.cat-stage.excited {
  filter: drop-shadow(0 18px 12px rgba(23, 127, 120, 0.25));
}

.cat-stage.happy {
  filter: drop-shadow(0 18px 12px rgba(214, 155, 47, 0.28));
}

.cat-stage.gravity {
  filter: drop-shadow(0 24px 10px rgba(23, 26, 32, 0.26));
}

.cat-stage.pounce {
  --cat-scale: 1.04;
}

.cat-stage.crouch {
  --cat-scale: 0.96;
}

.cat-stage.pounce .cat {
  animation: pounce 760ms cubic-bezier(0.2, 0.9, 0.22, 1.05);
}

.cat-stage.scared .cat {
  animation: scaredShake 620ms ease-in-out;
}

.cat-stage.excited .cat {
  animation: excitedHop 700ms cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.cat-stage.happy .cat {
  animation: happyWiggle 900ms ease-in-out;
}

.cat-stage.attack .striking-paw {
  animation: swat 520ms ease-out;
}

.cat-stage.attack .warning-burst {
  opacity: 1;
  transform: translate(-28px, -48px) rotate(-12deg) scale(1);
}

.cat-stage.scared .emotion-burst,
.cat-stage.angry .emotion-burst,
.cat-stage.excited .emotion-burst,
.cat-stage.happy .emotion-burst,
.cat-stage.gravity .emotion-burst {
  opacity: 1;
  transform: translate(-34px, -66px) rotate(-8deg) scale(1);
}

.cat-stage.scared .emotion-burst {
  background: #ddd4ff;
}

.cat-stage.angry .emotion-burst {
  background: #ffb3aa;
}

.cat-stage.excited .emotion-burst {
  background: #bfeee7;
}

.cat-stage.happy .emotion-burst {
  background: #ffe49d;
}

.cat-stage.gravity .emotion-burst {
  background: #fff;
}

.warning-burst {
  position: absolute;
  left: 54%;
  top: 10%;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: #fac96c;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 950;
  font-size: 0.78rem;
  opacity: 0;
  transform: translate(-18px, -34px) rotate(-12deg) scale(0.72);
  transition: opacity 110ms ease, transform 160ms ease;
}

.emotion-burst {
  position: absolute;
  left: 55%;
  top: 2%;
  min-width: 48px;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 950;
  font-size: 0.72rem;
  text-align: center;
  opacity: 0;
  transform: translate(-18px, -38px) rotate(-8deg) scale(0.7);
  transition: opacity 150ms ease, transform 180ms ease, background 180ms ease;
}

.cat {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cat path,
.cat ellipse,
.cat circle {
  vector-effect: non-scaling-stroke;
}

.body ellipse,
.body circle,
.ear {
  fill: #2b2f36;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}

.ear {
  fill: #2b2f36;
}

.belly-patch {
  fill: #3f4650;
  stroke: none;
}

.inner-ear {
  fill: #f3a4a2;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.collar {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
}

.bell {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 3;
}

.left-ear,
.right-ear {
  transform-origin: center;
  animation: earTwitch 5.2s infinite;
}

.right-ear {
  animation-delay: 1.1s;
}

.tail {
  transform-origin: 94px 112px;
  transform: rotate(var(--tail-rotate));
}

.tail path {
  fill: none;
  stroke: #2b2f36;
  stroke-width: 17;
  stroke-linecap: round;
}

.face .eye {
  fill: #f3d25d;
  stroke: var(--ink);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 160ms ease, transform 160ms ease;
}

.pupil {
  fill: var(--ink);
  transform: translate(var(--eye-x), var(--eye-y));
}

.brows path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.38;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.cat-stage.angry .left-brow {
  opacity: 1;
  transform: rotate(18deg) translateY(2px);
}

.cat-stage.angry .right-brow {
  opacity: 1;
  transform: rotate(-18deg) translateY(2px);
}

.cat-stage.scared .left-brow,
.cat-stage.scared .right-brow {
  opacity: 1;
  transform: translateY(-5px);
}

.cat-stage.happy .left-brow,
.cat-stage.happy .right-brow {
  opacity: 0.7;
  transform: translateY(3px);
}

.nose {
  fill: #ef6f76;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.mouth,
.whiskers path,
.legs path,
.paw path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legs path,
.paw path {
  stroke: #2b2f36;
}

.cheek {
  fill: #ffb0ad;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cat-stage.happy .cheek,
.cat-stage.excited .cheek {
  opacity: 0.85;
}

.cat-stage.scared .eye {
  fill: #fff3a8;
  transform: scale(1.18);
}

.cat-stage.angry .eye {
  fill: #ff8b7e;
  transform: scaleY(0.82);
}

.cat-stage.happy .eye {
  fill: #ffe782;
  transform: scaleY(0.72);
}

.cat-stage.excited .eye {
  fill: #c8f3ee;
  transform: scale(1.08);
}

.cat-stage.scared .tail path {
  stroke-width: 22;
}

.striking-paw {
  transform-origin: 164px 112px;
  transform: translateX(var(--paw-shift)) rotate(var(--paw-rotate));
}

.mouse-stage {
  --mouse-x: -120px;
  --mouse-y: 70vh;
  --mouse-rotate: 0deg;
  --mouse-facing: 1;
  --mouse-scale: 1;
  position: fixed;
  z-index: 38;
  left: 0;
  top: 0;
  width: 92px;
  height: 54px;
  pointer-events: none;
  opacity: 0;
  transform:
    translate3d(var(--mouse-x), var(--mouse-y), 0)
    rotate(var(--mouse-rotate))
    scaleX(var(--mouse-facing))
    scale(var(--mouse-scale));
  transform-origin: 50% 72%;
  transition: opacity 220ms ease;
  filter: drop-shadow(0 9px 8px rgba(23, 26, 32, 0.2));
  will-change: transform;
}

.mouse-stage.active {
  opacity: 1;
}

.screen-mouse {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mouse-tail,
.mouse-whisker {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mouse-body,
.mouse-ear {
  fill: #aeb7bb;
  stroke: var(--ink);
  stroke-width: 4;
}

.mouse-eye,
.mouse-nose {
  fill: var(--ink);
}

.cursor-spark {
  position: fixed;
  z-index: 45;
  width: 22px;
  height: 22px;
  left: 50vw;
  top: 50vh;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-spark::before,
.cursor-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0.9;
}

.cursor-spark::after {
  inset: 6px;
  border-color: var(--teal);
  border-radius: 2px;
  transform: rotate(45deg);
}

@keyframes pounce {
  0% {
    transform: translateY(0) scaleY(1);
  }
  35% {
    transform: translateY(9px) scaleY(0.91);
  }
  68% {
    transform: translateY(-22px) scaleY(0.98);
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}

@keyframes swat {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  40% {
    transform: translateX(18px) rotate(-24deg);
  }
  66% {
    transform: translateX(-5px) rotate(10deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes scaredShake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  18% {
    transform: translate(-7px, -5px) rotate(-7deg);
  }
  36% {
    transform: translate(8px, 4px) rotate(6deg);
  }
  55% {
    transform: translate(-5px, 3px) rotate(-5deg);
  }
  74% {
    transform: translate(4px, -3px) rotate(4deg);
  }
}

@keyframes excitedHop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  36% {
    transform: translateY(-16px) rotate(-4deg);
  }
  72% {
    transform: translateY(3px) rotate(3deg);
  }
}

@keyframes happyWiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  22% {
    transform: translateY(-8px) rotate(-8deg);
  }
  45% {
    transform: translateY(1px) rotate(7deg);
  }
  68% {
    transform: translateY(-5px) rotate(-5deg);
  }
}

@keyframes earTwitch {
  0%,
  88%,
  100% {
    transform: rotate(0deg);
  }
  92% {
    transform: rotate(8deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 310px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

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

  .project-card,
  .resume-card {
    min-height: 250px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .whispers-layout,
  .coffee-card {
    grid-template-columns: 1fr;
  }

  .coffee-card {
    text-align: left;
  }

  .qr-card {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .cat-stage {
    --cat-half-x: 52px;
    --cat-half-y: 43px;
    width: 104px;
    height: 86px;
  }

  .mouse-stage {
    width: 72px;
    height: 42px;
  }

  .contact-actions,
  .resume-actions {
    width: 100%;
  }

  .upi-link,
  .whisper-form .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
