/* Global colors and sizing keep the portfolio easy to customize. */
:root {
  color-scheme: light;
  --page: #fff7fa;
  --surface: #ffffff;
  --ink: #30232b;
  --body: #584852;
  --muted: #897783;
  --line: #f1e2e9;
  --accent: #d4246e;
  --accent-dark: #b91d5d;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 9% 8%, rgba(245, 196, 216, .32), transparent 28rem),
    radial-gradient(ellipse at 93% 48%, rgba(252, 226, 236, .48), transparent 27rem),
    linear-gradient(125deg, #fff1f6, #f3a5bd, #d96891, #f7bfd2, #fff1f6);
  background-size: auto, auto, 300% 300%;
  background-position: 0 0, 100% 100%, 0% 50%;
  animation: background-blush 2s ease-in-out infinite;
  color: var(--body);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

@keyframes background-blush {
  0%, 100% { background-position: 0 0, 100% 100%, 0% 50%; }
  50% { background-position: 0 0, 100% 100%, 100% 50%; }
}

a {
  color: inherit;
}

.butterfly-scene {
  position: fixed;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.butterfly {
  position: absolute;
  top: 22%;
  left: 2%;
  width: 30px;
  height: 28px;
  opacity: .76;
  animation: butterfly-flight 13s ease-in-out infinite;
}

.butterfly::after {
  position: absolute;
  top: 9px;
  left: 14px;
  width: 3px;
  height: 12px;
  border-radius: 50%;
  background: #68453d;
  content: "";
}

.butterfly-wing {
  position: absolute;
  top: 4px;
  width: 14px;
  height: 19px;
  background: linear-gradient(145deg, #ffbad2, #df4d88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 2px 6px rgba(178, 52, 103, .16);
}

.butterfly-wing-left {
  left: 2px;
  border-radius: 90% 15% 75% 25%;
  transform-origin: right center;
  animation: butterfly-flap-left .55s ease-in-out infinite alternate;
}

.butterfly-wing-right {
  right: 2px;
  border-radius: 15% 90% 25% 75%;
  transform-origin: left center;
  animation: butterfly-flap-right .55s ease-in-out infinite alternate;
}

.butterfly-two {
  top: 57%;
  right: 3%;
  left: auto;
  transform: scale(.78);
  animation: butterfly-flight-two 16s ease-in-out -5s infinite;
}

.butterfly-two .butterfly-wing {
  background: linear-gradient(145deg, #f8d59b, #ec8b77);
}

.butterfly-three {
  top: 78%;
  left: 12%;
  transform: scale(.62);
  animation: butterfly-flight-three 18s ease-in-out -9s infinite;
}

.butterfly-three .butterfly-wing {
  background: linear-gradient(145deg, #d6c6ff, #9b76d4);
}

.butterfly-four {
  top: 37%;
  left: 76%;
  transform: scale(.7);
  animation: butterfly-flight-four 20s ease-in-out -7s infinite;
}

.butterfly-four .butterfly-wing {
  background: linear-gradient(145deg, #c2eee1, #55bda3);
}

.butterfly-five {
  top: 12%;
  left: 48%;
  transform: scale(.55);
  animation: butterfly-flight-five 17s ease-in-out -11s infinite;
}

.butterfly-five .butterfly-wing {
  background: linear-gradient(145deg, #ffe6a8, #f3ad62);
}

.butterfly-six {
  top: 87%;
  right: 17%;
  left: auto;
  transform: scale(.68);
  animation: butterfly-flight-six 19s ease-in-out -4s infinite;
}

.butterfly-six .butterfly-wing {
  background: linear-gradient(145deg, #ffc8bf, #e87983);
}

.butterfly-large {
  top: 17px;
  right: 27px;
  left: auto;
  z-index: 1;
  width: 82px;
  height: 76px;
  opacity: .92;
  animation: butterfly-large-hover 3.2s ease-in-out infinite;
}

.butterfly-large::after {
  top: 23px;
  left: 39px;
  width: 5px;
  height: 30px;
  background: #8c2857;
}

.butterfly-large .butterfly-wing {
  top: 9px;
  width: 38px;
  height: 52px;
  background: linear-gradient(145deg, #ffb4d0, #e64d8c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72), 0 5px 16px rgba(178, 52, 103, .28);
}

.butterfly-large .butterfly-wing-left {
  left: 4px;
}

.butterfly-large .butterfly-wing-right {
  right: 4px;
}

@keyframes butterfly-flight {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(42px, -24px) rotate(12deg); }
  55% { transform: translate(84px, 12px) rotate(-4deg); }
  78% { transform: translate(38px, 32px) rotate(15deg); }
}

@keyframes butterfly-flight-four {
  0%, 100% { transform: translate(0, 0) rotate(8deg) scale(.7); }
  32% { transform: translate(-45px, 24px) rotate(-12deg) scale(.7); }
  68% { transform: translate(-90px, -18px) rotate(5deg) scale(.7); }
}

@keyframes butterfly-flight-five {
  0%, 100% { transform: translate(0, 0) rotate(-5deg) scale(.55); }
  35% { transform: translate(52px, 35px) rotate(12deg) scale(.55); }
  72% { transform: translate(102px, 12px) rotate(-9deg) scale(.55); }
}

@keyframes butterfly-flight-six {
  0%, 100% { transform: translate(0, 0) rotate(-8deg) scale(.68); }
  30% { transform: translate(-56px, -20px) rotate(11deg) scale(.68); }
  66% { transform: translate(-105px, 16px) rotate(-4deg) scale(.68); }
}

@keyframes butterfly-flight-two {
  0%, 100% { transform: translate(0, 0) rotate(8deg) scale(.78); }
  30% { transform: translate(-52px, -28px) rotate(-12deg) scale(.78); }
  65% { transform: translate(-100px, 18px) rotate(6deg) scale(.78); }
}

@keyframes butterfly-flight-three {
  0%, 100% { transform: translate(0, 0) rotate(-5deg) scale(.62); }
  35% { transform: translate(60px, -30px) rotate(12deg) scale(.62); }
  70% { transform: translate(112px, 8px) rotate(-10deg) scale(.62); }
}

@keyframes butterfly-large-hover {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

@keyframes butterfly-flap-left {
  from { transform: rotateY(0); }
  to { transform: rotateY(64deg) rotate(-9deg); }
}

@keyframes butterfly-flap-right {
  from { transform: rotateY(0); }
  to { transform: rotateY(-64deg) rotate(9deg); }
}

.page-layout {
  display: grid;
  width: min(1160px, calc(100% - 64px));
  grid-template-columns: minmax(270px, 320px) minmax(0, 650px);
  justify-content: space-between;
  gap: clamp(48px, 9vw, 120px);
  margin-inline: auto;
  padding: 68px 0 48px;
}

.sidebar {
  position: sticky;
  top: 32px;
  align-self: start;
  padding: 28px 24px;
  border: 1px solid rgba(241, 226, 233, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 55px rgba(89, 49, 68, .07);
  backdrop-filter: blur(12px);
}

.sidebar-content {
  max-width: 310px;
}

.overline,
.section-index {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.sidebar h1 {
  position: relative;
  width: fit-content;
  margin: 17px 0 2px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.2;
  animation: name-arrive .8s cubic-bezier(.2, .8, .2, 1) both;
}

.sidebar h1::after {
  position: absolute;
  top: 0;
  right: -17px;
  color: #e76189;
  content: "✦";
  font-size: 15px;
  transform: translateY(3px) scale(.7);
  animation: name-sparkle 2.4s ease-in-out 1s infinite;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .sidebar h1 {
    background: linear-gradient(105deg, var(--ink) 25%, #c43b72 45%, #f08aab 50%, var(--ink) 65%);
    background-clip: text;
    background-size: 220% 100%;
    -webkit-text-fill-color: transparent;
    animation: name-arrive .8s cubic-bezier(.2, .8, .2, 1) both, name-shimmer 6s ease-in-out 1s infinite;
  }
}

@keyframes name-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes name-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0 50%; }
}

@keyframes name-sparkle {
  0%, 100% { opacity: .45; transform: translateY(3px) scale(.7) rotate(-12deg); }
  50% { opacity: 1; transform: translateY(-2px) scale(1.1) rotate(15deg); }
}

.role {
  margin: 3px 0 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.bear-avatar {
  position: relative;
  display: grid;
  width: 166px;
  height: 166px;
  place-items: center;
  margin: 22px 0 20px;
  border: 1px solid #f3d9e4;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .96) 0 42%, transparent 43%),
    linear-gradient(145deg, #fff1f6, #f8dce8);
  box-shadow: 0 12px 30px rgba(199, 110, 147, .16);
  transition: transform .35s ease, box-shadow .35s ease;
}

.bear-avatar:hover {
  transform: translateY(-4px) rotate(2deg);
  box-shadow: 0 18px 36px rgba(199, 110, 147, .22);
}

.bear {
  width: 150px;
  overflow: visible;
  animation: bear-bob 3s ease-in-out infinite;
}

.bear-body {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bear-sway 3s ease-in-out infinite;
}

.bear-wave {
  transform-box: fill-box;
  transform-origin: 20% 85%;
  animation: bear-wave 1.15s ease-in-out infinite;
}

.bear-greeting {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: -14px;
  padding: 6px 11px;
  border: 1px solid #f4d5e1;
  border-radius: 15px 15px 15px 4px;
  background: #fffdfd;
  color: #b94d79;
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(199, 110, 147, .1);
  animation: greeting-pop 2.8s ease-in-out infinite;
}

.bear-greeting span {
  color: #e76189;
}

.avatar-sparkle {
  position: absolute;
  z-index: 1;
  color: #ca4075;
  animation: sparkle 2.4s ease-in-out infinite;
}

.sparkle-one {
  top: 24px;
  right: 27px;
  font-size: 15px;
}

.sparkle-two {
  bottom: 38px;
  left: 20px;
  font-size: 12px;
  animation-delay: .6s;
}

.avatar-caption {
  position: absolute;
  right: -37px;
  bottom: 18px;
  padding: 5px 9px;
  border: 1px solid #f5dce7;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 8px;
  font-weight: 700;
  transform: rotate(-5deg);
}

.avatar-caption span {
  color: #ed91ad;
}

@keyframes bear-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes bear-sway {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(1deg); }
}

@keyframes bear-wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-24deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-19deg); }
}

@keyframes greeting-pop {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: .55; transform: scale(.9) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.13) rotate(8deg); }
}

.sidebar-intro {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.section-nav {
  display: grid;
  gap: 7px;
  margin-top: 29px;
}

.nav-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link::before {
  width: 17px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #ebcbd8;
  content: "";
  transition: width .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--ink);
  background: #fff3f7;
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link.is-active::before {
  width: 25px;
  background: var(--accent);
}

.nav-link:hover {
  transform: translateX(3px);
}

.sidebar-note {
  margin: 39px 0 0;
  color: #a38b96;
  font-size: 10px;
}

.content {
  min-width: 0;
}

.content-section {
  position: relative;
  isolation: isolate;
  padding: 28px 30px 32px;
  border: 1px solid rgba(241, 226, 233, .95);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 202, 222, .78), transparent 48%),
    radial-gradient(ellipse at 0% 100%, rgba(244, 218, 237, .8), transparent 46%),
    rgba(255, 255, 255, .93);
  background-size: 180% 180%, 180% 180%, auto;
  background-position: 100% 0%, 0% 100%, 0 0;
  animation: section-background-drift 6s ease-in-out infinite alternate;
  box-shadow: 0 12px 38px rgba(89, 49, 68, .045);
  scroll-margin-top: 34px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.content-section::before {
  position: absolute;
  z-index: -1;
  top: 4px;
  right: 12px;
  width: 145px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(235, 162, 191, .22), transparent 72%);
  content: "";
  pointer-events: none;
  animation: section-glow 7s ease-in-out infinite;
}

.content-section::after {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, transparent, #e98bad 28%, #d96891 52%, #edbad0 76%, transparent);
  content: "";
  opacity: .7;
  pointer-events: none;
}

@keyframes section-glow {
  0%, 100% { opacity: .5; transform: translate(0, 0) scale(.9); }
  50% { opacity: .95; transform: translate(-12px, 8px) scale(1.08); }
}

@keyframes section-background-drift {
  from { background-position: 100% 0%, 0% 100%, 0 0; }
  to { background-position: 35% 75%, 75% 20%, 0 0; }
}

.content-section + .content-section {
  margin-top: 17px;
}

.content-section:hover {
  transform: translateY(-3px);
  border-color: #ebd0dc;
  box-shadow: 0 18px 44px rgba(89, 49, 68, .075);
}

.section-index {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(241, 206, 221, .8);
  border-radius: 999px;
  background: linear-gradient(100deg, #fff5f9, #fce8f0);
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 9px;
}

.section-index::after {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -45%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg);
  animation: name-label-shimmer 6s ease-in-out infinite;
}

@keyframes name-label-shimmer {
  0%, 15% { left: -45%; }
  60%, 100% { left: 120%; }
}

.content h2 {
  position: relative;
  width: fit-content;
  margin: 0 0 23px;
  padding-bottom: 7px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.4;
}

.content h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #ed91ad 58%, transparent);
  content: "";
}

.projects-tiger {
  position: absolute;
  top: 28px;
  right: 22px;
  width: 112px;
  height: auto;
  pointer-events: none;
  transform-origin: center bottom;
  animation: projects-tiger-bob 3s ease-in-out infinite;
}

@keyframes projects-tiger-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

.about-copy {
  color: var(--body);
  font-size: 12px;
  line-height: 1.95;
}

.about-copy p {
  margin: 0 0 13px;
}

.profile-details,
.contact-details {
  margin: 25px 0 0;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(125px, .7fr) 1.3fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.detail-row dt {
  color: var(--muted);
}

.detail-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  align-items: end;
  gap: 12px;
}

.experience-dino {
  display: block;
  width: 145px;
  height: auto;
  overflow: visible;
  transform-origin: center bottom;
  animation: experience-dino-bounce 2.8s ease-in-out infinite;
}

@keyframes experience-dino-bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 3px 0 0 15px;
  border-left: 2px solid #f3dce6;
}

.timeline-description {
  position: relative;
}

.timeline-description::before {
  position: absolute;
  top: 8px;
  left: -22px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #f2d5e1;
  content: "";
}

.timeline-date {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.timeline-description h3,
.project-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.timeline-place {
  margin: 3px 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.timeline-description > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.section-lead {
  max-width: 540px;
  margin: -10px 0 24px;
  padding: 10px 14px;
  border-left: 2px solid #e98bad;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(100deg, rgba(255, 240, 246, .88), rgba(255, 250, 252, .48));
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.section-lead:empty {
  display: none;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.project-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: #fffafb;
  box-shadow: 0 12px 28px rgba(89, 49, 68, .07);
}

.project-preview {
  position: relative;
  display: grid;
  height: 205px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #f8eaf0;
}

.preview-library {
  background: linear-gradient(140deg, #fff2f7, #f2dce7);
}

.preview-label {
  position: absolute;
  z-index: 1;
  right: 7px;
  bottom: 7px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, .87);
  color: #887983;
  font-size: 7px;
  letter-spacing: .03em;
}

.mock-library {
  position: relative;
  display: flex;
  width: min(68%, 330px);
  height: 105px;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  padding: 0 15px 12px;
  border: 1px solid rgba(160, 100, 127, .18);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 7px 20px rgba(125, 75, 96, .06);
  animation: library-float 4s ease-in-out infinite;
}

.mock-library i {
  display: block;
  width: 28px;
  height: 56px;
  border: 1px solid rgba(133, 74, 101, .12);
  border-radius: 3px 3px 1px 1px;
  background: #d98eaa;
}

.mock-library i:nth-child(2) {
  height: 70px;
  background: #edbdcf;
}

.mock-library i:nth-child(3) {
  height: 62px;
  background: #c97798;
}

.mock-library i:nth-child(4) {
  height: 76px;
  background: #f0c9d7;
}

.mock-library i:nth-child(5) {
  height: 59px;
  background: #bd7d91;
}

.mock-library b {
  position: absolute;
  right: 10px;
  bottom: 11px;
  left: 10px;
  height: 5px;
  border-radius: 2px;
  background: #ba8196;
}

/* A responsive preview area for the project screenshot. */
.mock-library::before {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 32px;
  height: 3px;
  background: #e7bfd0;
  content: "";
}

@keyframes library-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.project-type {
  margin: 10px 0 4px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 13px;
}

.project-copy {
  min-height: auto;
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.tag-list,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 3px 9px;
  border: 1px solid #f1e2e9;
  border-radius: 999px;
  background: #fff8fb;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
}

.skill-list {
  gap: 9px;
}

.skill-list li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 10px;
  font-weight: 600;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.skill-list li:hover {
  transform: translateY(-2px);
  border-color: #efb4cc;
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(212, 36, 110, .1);
}

.skills-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 12px;
}

.skills-chameleon {
  display: block;
  width: 132px;
  height: auto;
  overflow: visible;
  pointer-events: none;
  transform-origin: center bottom;
  animation: chameleon-bob 3.2s ease-in-out infinite;
}

@keyframes chameleon-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.contact-section .section-lead {
  margin-bottom: 21px;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
}

.contact-turtle {
  display: block;
  width: 128px;
  height: auto;
  overflow: visible;
  pointer-events: none;
  transform-origin: center bottom;
  animation: contact-turtle-bob 3.4s ease-in-out infinite;
}

@keyframes contact-turtle-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

.contact-details {
  margin-top: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}

.contact-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(212, 36, 110, .2);
}

.contact-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .48;
}

.contact-button-secondary {
  background: transparent;
  color: var(--accent);
}

.contact-button-secondary:hover,
.contact-button-secondary:focus-visible {
  background: #fff0f5;
  color: var(--accent-dark);
}

.contact-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.contact-hint code {
  color: var(--body);
  font-family: Consolas, monospace;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 9px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.cursor-orbit {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0) scale(.72) rotate(-12deg);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.cursor-orbit::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 36, 110, .28);
  border-radius: 50%;
  background: rgba(255, 247, 250, .82);
  box-shadow: 0 3px 14px rgba(212, 36, 110, .18);
  content: "";
  animation: cursor-orbit-pulse 2.2s ease-in-out infinite;
}

.cursor-pet {
  position: absolute;
  top: 10px;
  left: 8px;
  width: 28px;
  height: 25px;
  border: 1px solid #e98bad;
  border-radius: 48% 48% 46% 46%;
  background: linear-gradient(145deg, #fff, #ffe8f0);
  box-shadow: 0 2px 5px rgba(212, 36, 110, .14);
  animation: cursor-pet-bob 1.8s ease-in-out infinite;
}

.cursor-pet-ear {
  position: absolute;
  z-index: -1;
  top: -6px;
  width: 9px;
  height: 13px;
  border: 1px solid #e98bad;
  border-radius: 80% 80% 35% 35%;
  background: #ffc9dc;
}

.cursor-pet-ear-left {
  left: 1px;
  transform: rotate(-24deg);
}

.cursor-pet-ear-right {
  right: 1px;
  transform: rotate(24deg);
}

.cursor-pet-eye {
  position: absolute;
  top: 9px;
  width: 3px;
  height: 4px;
  border-radius: 50%;
  background: #59414a;
}

.cursor-pet-eye-left {
  left: 7px;
}

.cursor-pet-eye-right {
  right: 7px;
}

.cursor-pet-cheek {
  position: absolute;
  top: 14px;
  width: 5px;
  height: 3px;
  border-radius: 50%;
  background: #f3a5bd;
}

.cursor-pet-cheek-left {
  left: 3px;
}

.cursor-pet-cheek-right {
  right: 3px;
}

.cursor-pet-mouth {
  position: absolute;
  top: 9px;
  left: 50%;
  color: #b95e7c;
  font-size: 8px;
  line-height: 1;
  transform: translateX(-50%);
}

.cursor-orbit-star {
  position: absolute;
  color: #d4246e;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(255, 255, 255, .9);
}

.cursor-orbit-star-one {
  top: 0;
  right: 1px;
  font-size: 12px;
  animation: cursor-twinkle 1.5s ease-in-out infinite;
}

.cursor-orbit-star-two {
  bottom: 1px;
  left: 0;
  color: #e98bad;
  font-size: 11px;
  animation: cursor-twinkle 1.5s ease-in-out -.7s infinite;
}

.cursor-orbit.is-visible {
  opacity: .8;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) scale(1) rotate(0);
}

.cursor-orbit.is-pressed {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) scale(.84) rotate(-8deg);
}

@keyframes cursor-orbit-pulse {
  0%, 100% { transform: scale(.92); }
  50% { transform: scale(1.06); }
}

@keyframes cursor-pet-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-2px) rotate(3deg); }
}

@keyframes cursor-twinkle {
  0%, 100% { opacity: .55; transform: scale(.8) rotate(-12deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(12deg); }
}

.cursor-heart {
  position: fixed;
  z-index: 19;
  color: #e76189;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  animation: cursor-heart-pop .75s ease-out forwards;
}

.cursor-heart-sparkle {
  color: #bd8bdc;
  font-size: 11px;
}

@keyframes cursor-heart-pop {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(-15deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--heart-x), var(--heart-y)) scale(1.15) rotate(16deg); }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Elements stay visible if JavaScript is unavailable. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1500px) {
  .page-layout {
    padding-top: 105px;
  }
}

@media (max-width: 1020px) {
  .butterfly-two {
    right: 1%;
  }

  .butterfly-three {
    display: none;
  }

  .butterfly-six {
    display: none;
  }

  .page-layout {
    width: min(100% - 48px, 660px);
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
  }

  .sidebar {
    position: static;
    padding: 24px;
  }

  .sidebar-content {
    max-width: none;
  }

  .sidebar h1 {
    margin-top: 9px;
    font-size: 36px;
  }

  .sidebar-intro {
    max-width: 580px;
  }

  .section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 19px;
    margin-top: 23px;
  }

  .sidebar-note {
    display: none;
  }

  .content-section {
    padding: 24px;
  }

  .content-section + .content-section {
    margin-top: 14px;
  }
}

@media (max-width: 520px) {
  .butterfly-five {
    display: none;
  }

  body {
    font-size: 12px;
  }

  .page-layout {
    width: calc(100% - 38px);
    gap: 34px;
    padding-top: 35px;
  }

  .sidebar {
    padding: 20px;
    border-radius: 18px;
  }

  .role {
    font-size: 14px;
  }

  .section-nav {
    column-gap: 13px;
  }

  .nav-link {
    width: auto;
    gap: 7px;
    font-size: 9px;
  }

  .nav-link::before {
    width: 14px;
  }

  .nav-link:hover::before,
  .nav-link:focus-visible::before,
  .nav-link.is-active::before {
    width: 22px;
  }

  .content-section {
    padding: 21px 18px 24px;
    border-radius: 16px;
  }

  .content h2 {
    font-size: 22px;
  }

  .projects-tiger {
    top: 24px;
    right: 12px;
    width: 88px;
  }

  .skills-content {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 6px;
  }

  .skills-chameleon {
    width: 96px;
  }

  .contact-content {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 6px;
  }

  .contact-turtle {
    width: 92px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 8px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .experience-content {
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: 6px;
  }

  .experience-dino {
    width: 110px;
  }

  .timeline-date {
    margin: 0;
  }

  .project-preview {
    height: 150px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-orbit {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .cursor-orbit {
    display: none !important;
  }
}
