@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700.woff2") format("woff2");
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/fredoka-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/caveat-600.woff2") format("woff2");
}

@font-face {
  font-family: "Pacifico";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pacifico-400.woff2") format("woff2");
}

@font-face {
  font-family: "Righteous";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/righteous-400.woff2") format("woff2");
}

:root {
  --pink-primary: #fc97d1;
  --pink-soft: #ffaad2;
  --pink-pale: #fcd8ff;
  --pink-lightest: #fee9fb;
  --purple-mid: #8560da;
  --purple-deep: #a29bfd;
  --purple-text: #5540a5;
  --purple-night: #7b6ae0;
  --blue-accent: #a9c1ff;
  --blue-text: #3d5cc4;
  --teal-blue: #8fe3e0;
  --teal-text: #0f7f88;
  --yellow-soft: #ffe7a6;
  --white: #ffffff;
}

/* ---- reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px; /* 1rem = 10px */
  overflow-x: clip;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--purple-text);
  background: var(--white);
  overflow-x: clip;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

picture {
  display: contents;
}

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

ul {
  list-style: none;
}

/* ---- header / nav ---- */
.nav-toggle {
  position: fixed;
  top: 2.4rem;
  right: 2.4rem;
  z-index: 100;
  width: 5.6rem;
  height: 5.6rem;
  border: none;
  border-radius: 50%;
  background: var(--pink-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-toggle span {
  width: 2.2rem;
  height: 0.2rem;
  background: var(--white);
  border-radius: 1rem;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle--active span:nth-child(1) {
  transform: translateY(0.7rem) rotate(45deg);
}
.nav-toggle--active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle--active span:nth-child(3) {
  transform: translateY(-0.7rem) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--purple-night);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.nav-overlay--open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__list {
  text-align: center;
}

.nav-overlay__list li {
  margin: 1.6rem 0;
}

.nav-overlay__list a {
  font-family: "Righteous", sans-serif;
  font-size: 3.6rem;
  color: var(--pink-lightest);
  letter-spacing: 0.2rem;
}

/* ---- cv modal ---- */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: rgba(85, 64, 165, 0.55);
  backdrop-filter: blur(0.4rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.cv-modal--open {
  opacity: 1;
  visibility: visible;
}

.cv-modal__backdrop {
  position: absolute;
  inset: 0;
}

.cv-modal__panel {
  position: relative;
  z-index: 1;
  width: min(76rem, 100%);
  height: min(92rem, 85vh);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 2.4rem;
  box-shadow: 0 2rem 6rem rgba(85, 64, 165, 0.35);
  overflow: hidden;
}

.cv-modal__close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 2;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--pink-primary);
  color: var(--white);
  cursor: pointer;
}

.cv-modal__close svg {
  width: 1.8rem;
  height: 1.8rem;
}

.cv-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--pink-lightest);
}

.cv-modal__footer {
  flex-shrink: 0;
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-modal__download {
  margin: 0;
}

@media (max-width: 480px) {
  .cv-modal {
    padding: 2rem 1.6rem;
  }

  .cv-modal__panel {
    height: min(92rem, 80dvh);
    border-radius: 1.6rem;
  }
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background:
    linear-gradient(to bottom, rgba(252, 216, 255, 0) 68%, var(--pink-pale) 99%),
    linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-soft) 35%, #beaaff 70%, #b7cbfe 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 26%;
  background: linear-gradient(to bottom, rgba(252, 216, 255, 0) 0%, var(--pink-pale) 88%);
  pointer-events: none;
}
.hero {
  --title-half: 332px;
}

@media (max-width: 1024px) {
  .hero {
    --title-half: 283px;
  }
}

@media (max-width: 768px) {
  .hero {
    --title-half: 235px;
  }
}

@media (max-width: 480px) {
  .hero {
    --title-half: 178px;
  }
}

.hero__botanical {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  --min-visible: 30vh;
  --shift: max(0px, calc(51.7vh - max(var(--min-visible), calc(50vw - var(--title-half)))));
}

.hero__botanical--left {
  left: 0;
  transform: translateX(calc(-1 * var(--shift)));
}

.hero__botanical--right {
  right: 0;
  transform: translateX(var(--shift));
  /* this source image has a hard, unintended edge baked into its alpha
     channel partway across (not a soft illustrated silhouette), this mask
     fades it into transparency as a stopgap until the asset is re-exported */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__vortex-texture {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 110vw;
  max-width: none;
  transform: translate(-50%, -50%);

  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.hero__title-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-5deg) translateY(-4rem);
}

.hero__swoosh {
  width: 42rem;
  max-width: 90%;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 0 1.1rem var(--yellow-soft));
}

.hero__swoosh--bottom {
  width: 37rem;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

.hero__wordmark {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18rem;
  color: var(--pink-lightest);
  letter-spacing: 1.3rem;
  line-height: 1;
  text-shadow:
    -0.3rem -0.3rem 0 var(--purple-text),
    0.3rem -0.3rem 0 var(--purple-text),
    -0.3rem 0.3rem 0 var(--purple-text),
    0.3rem 0.3rem 0 var(--purple-text),
    0 -0.3rem 0 var(--purple-text),
    0 0.3rem 0 var(--purple-text),
    -0.3rem 0 0 var(--purple-text),
    0.3rem 0 0 var(--purple-text);
}

.hero__flanking-star {
  position: absolute;
  top: 44%;
  width: 8rem;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 0.8rem var(--yellow-soft));
  z-index: 1;
}

.hero__flanking-star--left {
  left: 26%;
}

.hero__flanking-star--right {
  right: 26%;
}

.hero__big-star {
  position: absolute;
  filter: drop-shadow(0 0 0.8rem var(--yellow-soft));
  animation: float 4.4s ease-in-out infinite;
  will-change: translate;
  z-index: 1;
}

.hero__big-star--one {
  top: 15%;
  left: 13%;
  width: 4.6rem;
}

.hero__big-star--two {
  top: 21%;
  right: 15%;
  width: 3.8rem;
  animation-delay: 0.9s;
}

.hero__big-star--three {
  top: 77%;
  left: 19%;
  width: 5.4rem;
  animation-delay: 1.7s;
}

.hero__big-star--four {
  top: 73%;
  right: 21%;
  width: 4.2rem;
  animation-delay: 2.4s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__big-star {
    animation: none;
  }
}

.hero__star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__mini-star {
  position: absolute;
  background: var(--yellow-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 0.4rem var(--yellow-soft));
  animation: float 3.6s ease-in-out infinite;
  will-change: translate;
}

@media (prefers-reduced-motion: reduce) {
  .hero__mini-star {
    animation: none;
  }
}

/* ---- about ---- */
.about {
  position: relative;
  background: var(--pink-pale);
  overflow: clip;
  overflow-clip-margin: 48vw;
  --cloud-drop: 12vw;
  --cloud-height: 44vw;
  --about-lead: calc(var(--cloud-drop) + 4rem);
  padding-top: var(--about-lead);
  padding-bottom: 0.1px;
  min-height: calc(var(--about-lead) + 100vw / 2.015);
}
.about__clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}

.about__cloud {
  position: absolute;
  left: -15%;
  right: -15%;
  height: var(--cloud-height);
  background: url("../assets/img/design/png/clouds.png") no-repeat center / 100% 100%;
  background-image: image-set(
    url("../assets/img/design/webp/clouds.webp") type("image/webp"),
    url("../assets/img/design/png/clouds.png") type("image/png")
  );
  -webkit-mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
  will-change: transform;
}

.about__cloud--front {
  top: calc(var(--cloud-drop) - var(--cloud-height));
}
.about__cloud--mid {
  top: calc(var(--cloud-drop) - var(--cloud-height) - 3vw);
  left: -22%;
  right: -12%;
  opacity: 0.72;
}

.about__cloud--back {
  top: calc(var(--cloud-drop) - var(--cloud-height) - 6vw);
  left: -10%;
  right: -24%;
  opacity: 0.5;
}
@supports (animation-timeline: view()) {
  .about__clouds {
    view-timeline-name: --about-crossing;
    view-timeline-axis: block;
  }

  .about__cloud {
    animation: cloud-rise both cubic-bezier(0.77, 0, 0.175, 1);
    animation-timeline: --about-crossing;
    animation-range: cover 0% cover 100%;
  }

  .about__cloud--front {
    --rise: 9vw;
  }
  .about__cloud--mid {
    --rise: 5.5vw;
  }
  .about__cloud--back {
    --rise: 2.5vw;
    scale: -1 1;
  }
}

@keyframes cloud-rise {
  from {
    translate: 0 var(--rise);
  }
  to {
    translate: 0 calc(-1 * var(--rise));
  }
}

.about__inner {
  position: relative;
  z-index: 4;
  max-width: min(70rem, calc(45.5vw - 80px));
  margin: 0rem 0 6rem 5rem;
  padding: 3.2rem;
  border-radius: 2.4rem;
  background: rgba(252, 216, 255, 0.88);
}

.about__title-img {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 46rem;
  margin: 0.8rem auto 4.4rem;
  transform: rotate(-15deg) skew(-10deg);
}

.about__title-svg {
  overflow: visible;
  display: block;
}

.about__title-svg--about {
  width: 100%;
  transform: translateY(-5.5rem);
}

.about__title-svg--me {
  position: absolute;
  z-index: 1;
  width: 46%;
  right: 4%;
  bottom: -22%;
}
.about__title-svg--about .svg-title-shadow-group {
  transform: translate(0.5rem, 0.8rem);
}

.about__title-svg--me .svg-title-shadow-group {
  transform: translate(0.36rem, 0.58rem);
}

.svg-title-shadow {
  fill: none;
  stroke: #eb9fde;
  stroke-width: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-title {
  fill: none;
  stroke: var(--pink-soft);
  stroke-width: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__title-img::before,
.about__title-img::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--yellow-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  transform: rotate(15deg) skew(10deg);
  animation: twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

.about__title-img::before {
  width: 4.4rem;
  height: 5.3rem;
  top: -4.4rem;
  left: 2rem;
}

.about__title-img::after {
  width: 2.2rem;
  height: 3.2rem;
  top: -1rem;
  left: 0.6rem;
  animation-delay: 0.3s;
}

.decor-idle .about__title-img::before,
.decor-idle .about__title-img::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .svg-title,
  .svg-title-shadow {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .about__title-img::before,
  .about__title-img::after,
  .skills__title-img::before,
  .skills__title-img::after,
  .project-spotlight__badge::before,
  .project-spotlight__badge::after {
    animation: none;
    opacity: 0.6;
  }
}
.about .btn-pill {
  z-index: 5;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.about__text {
  position: relative;
  z-index: 5;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 6rem;
  letter-spacing: -0.096rem;
  color: var(--purple-text);
}

.about__cat-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.6rem;
  padding: 0 0.4rem;
  cursor: default;
}

.about__cat-paw {
  position: absolute;
  top: -6.8rem;
  left: 44%;
  transform: translateX(-50%) rotate(-9deg);
  width: 13rem;
  height: 13rem;
  max-width: none;
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.2s ease;
}

.about__cat-paw path {
  fill: var(--purple-deep);
}

.about__cat-paw-pad {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.2);
}

.about__cat-trigger:hover .about__cat-paw {
  opacity: 0.6;
}

.about__cat-peek {
  position: fixed;
  top: 50%;
  right: -26rem;
  z-index: 60;
  width: 24rem;
  transform: translateY(-50%);
  transition: right 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  filter: drop-shadow(-0.5rem 0.5rem 1.5rem rgba(0, 0, 0, 0.35));
}

body:has(.about__cat-trigger:hover) .about__cat-peek {
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .about__cat-peek {
    transition: none;
  }
}

.keyword {
  position: relative;
  display: inline-block;
  padding: 0 2rem;
  font-size: 4.3rem;
  font-family: "Righteous", sans-serif;
}

.keyword::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.keyword--revealed::before {
  transform: scaleX(1);
}

.keyword[data-color="pink"]::before {
  background: var(--pink-primary);
}
.keyword[data-color="blue"]::before {
  background: var(--blue-accent);
}
.keyword[data-color="purple"]::before {
  background: var(--purple-deep);
}

.about__illustration-img {
  position: absolute;
  top: calc(50% + var(--about-lead) / 2);
  transform: translateY(-50%);
  right: 0;
  z-index: 3;
  width: 100%;
  height: auto;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__illustration-img {
    animation: none;
  }
}

.about__sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.about__inner-sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.about__twinkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.about__twinkles .twinkle {
  background: var(--purple-deep);
}

.about__twinkles .twinkle:nth-child(2n) {
  background: var(--white);
}

.about__twinkles .twinkle:nth-child(5n) {
  background: var(--yellow-soft);
}

.about__big-star {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 0 0.8rem var(--yellow-soft));
  animation: float 4.4s ease-in-out infinite;
  will-change: translate;
}

.about__big-star--one {
  top: calc(var(--cloud-drop) + 0.5vw);
  left: 6%;
  width: 6.4rem;
  z-index: 6;
}

.about__big-star--two {
  top: calc(var(--cloud-drop) + 4vw);
  left: 28%;
  width: 4.2rem;
  animation-delay: 1s;
}

.about__big-star--three {
  top: calc(var(--cloud-drop));
  right: 24%;
  width: 8rem;
  animation-delay: 2s;
}

.about__big-star--four {
  top: calc(var(--cloud-drop) + 4vw);
  right: 2%;
  width: 3.6rem;
  animation-delay: 0.5s;
}

.about__big-star--five {
  top: calc(var(--cloud-drop) + 24vw);
  right: 8%;
  width: 5.2rem;
  animation-delay: 1.5s;
}

@media (prefers-reduced-motion: reduce) {
  .about__big-star {
    animation: none;
  }
}

.about__sparkle {
  position: absolute;
  background: var(--white);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 0.5rem var(--pink-soft));
  animation: twinkle 3.2s ease-in-out infinite;
}

.about__sparkle:nth-child(3n) {
  background: var(--yellow-soft);
  filter: drop-shadow(0 0 0.5rem var(--yellow-soft));
}

.about__sparkle:nth-child(4n) {
  background: var(--purple-deep);
  filter: drop-shadow(0 0 0.5rem var(--purple-deep));
}

@media (prefers-reduced-motion: reduce) {
  .about__sparkle {
    animation: none;
    opacity: 0.7;
  }
}

/* ---- shared pill button ---- */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3.2rem;
  padding: 1.8rem 4.8rem;
  border: 0.24rem solid var(--pink-lightest);
  border-radius: 10rem;
  background: linear-gradient(360deg, rgba(252, 151, 209, 0.6) 0%, rgba(165, 188, 255, 0.6) 100%);
  color: var(--purple-text);
  font-size: 2rem;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0.4rem;
}

.sparkle {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--yellow-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 0.5rem var(--yellow-soft));
}
.sparkle--tl {
  top: -0.6rem;
  left: -0.6rem;
}
.sparkle--tr {
  top: -0.6rem;
  right: -0.6rem;
}
.sparkle--bl {
  bottom: -0.6rem;
  left: -0.6rem;
}
.sparkle--br {
  bottom: -0.6rem;
  right: -0.6rem;
}

.sparkle--big {
  width: 2.4rem;
  height: 2.4rem;
  top: -1.1rem;
  left: -1.1rem;
}

.sparkle--small {
  width: 1rem;
  height: 1rem;
  top: 0.8rem;
  left: -1.8rem;
}

/* ---- skills ---- */
.skills {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, var(--pink-pale) 0%, var(--white) 50%);
  margin-top: -12vw;
  isolation: isolate;
}

.skills__layer {
  position: relative;
}

.skills__layer--flip {
  margin-top: -52.47%;
  transform: scaleY(-1);
}

.skills__layer--middle {
  display: none;
}

.skills__bg {
  width: 100%;
  height: auto;
  display: block;
}

.skills__tint {
  position: absolute;
  inset: 0;
  background: var(--purple-night);
  opacity: 0.5;
  mix-blend-mode: multiply;
  -webkit-mask: url("../assets/img/design/png/backgroundtop.png") no-repeat top / 100% 100%;
  mask: url("../assets/img/design/png/backgroundtop.png") no-repeat top / 100% 100%;
}

.skills__tint--middle {
  /* Stacking a second independent 0.5-opacity multiply layer on top of
     the cloud's own tint - wherever they overlap - compounds to
     noticeably darker than either alone (two multiplies, not one), and
     that compounding is what actually reads as a seam, not the timing
     of the fade. Using a flat, opaque color already matching the
     cloud's own tinted output (purple-night multiplied over its pale
     base, computed once rather than re-multiplied live) with normal
     blending turns the overlap into a plain crossfade between two
     already similarly-toned surfaces instead of a darkness spike. */
  background: rgb(182, 147, 236);
  opacity: 1;
  mix-blend-mode: normal;
  -webkit-mask: none;
  mask: none;
}

.skills__twinkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.skills__big-star {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 0 0.8rem var(--yellow-soft));
  animation: float 4.4s ease-in-out infinite;
  will-change: translate;
}

.skills__big-star--one {
  top: 8%;
  left: 8%;
  width: 5.6rem;
}

.skills__big-star--two {
  top: 14%;
  right: 42%;
  width: 3.6rem;
  animation-delay: 1.4s;
}

@media (prefers-reduced-motion: reduce) {
  .skills__big-star {
    animation: none;
  }
}

.skills__inner {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 22%;
  bottom: 12%;
  max-width: 176rem;
  margin: 0 auto;
  padding: 0 4rem;
  overflow: visible;
}

.skills__title-img {
  position: absolute;
  z-index: 5;
  top: 16rem;
  right: 5rem;
  width: clamp(20.25rem, 32.4vw, 64.8rem);
  overflow: visible;
  transform: rotate(11deg) skew(13deg);
}

.skills__title-svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.skills-title-fill {
  fill: #eb9fde;
  color: #eb9fde;
}

.skills-title-shadow {
  fill: var(--purple-text);
  color: var(--purple-text);
  translate: 0.4rem 0.2rem;
}

.skills__title-img::before,
.skills__title-img::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--yellow-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  transform: rotate(15deg) skew(10deg);
  animation: twinkle 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 0.8rem var(--yellow-soft));
  pointer-events: none;
}

.skills__title-img::before {
  width: 4.4rem;
  height: 5.3rem;
  top: -1%;
  right: 10%;
}

.skills__title-img::after {
  width: 2.2rem;
  height: 3.2rem;
  top: 10%;
  right: 4%;
  animation-delay: 0.3s;
}

.decor-idle .skills__title-img::before,
.decor-idle .skills__title-img::after {
  animation-play-state: paused;
}

.skills__constellations {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin-top: 32rem;
}

.skills__constellation {
  position: absolute;
}

.skills__constellation[data-cat="languages"] {
  top: -14%;
  left: 2%;
  width: min(40vw, 70rem);
}

.skills__constellation[data-cat="frameworks"] {
  top: -14%;
  left: 60%;
  width: min(36vw, 62rem);
}

.skills__constellation[data-cat="tools"] {
  top: 20%;
  left: 0%;
  width: min(40vw, 70rem);
}

.skills__constellation[data-cat="ai"] {
  top: 16%;
  left: 66%;
  width: min(30vw, 50rem);
}

.skills__constellation-label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--purple-text);
  text-shadow:
    0.1rem 0 var(--white),
    -0.1rem 0 var(--white),
    0 0.1rem var(--white),
    0 -0.1rem var(--white),
    0.1rem 0.1rem var(--white),
    -0.1rem -0.1rem var(--white),
    0.1rem -0.1rem var(--white),
    -0.1rem 0.1rem var(--white);
  margin-bottom: 0.1rem;
}

.skills__constellation-name {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cat-name-color);
  opacity: 0.85;
  text-shadow:
    0.1rem 0 var(--white),
    -0.1rem 0 var(--white),
    0 0.1rem var(--white),
    0 -0.1rem var(--white),
    0.1rem 0.1rem var(--white),
    -0.1rem -0.1rem var(--white),
    0.1rem -0.1rem var(--white),
    -0.1rem 0.1rem var(--white);
  margin-bottom: 0.7rem;
}

.skills__constellation-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.skills__constellation-line {
  stroke: var(--cat-color);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.55;
}

.skills__star-mark {
  fill: var(--cat-color);
  filter: drop-shadow(0 0 0.5rem var(--cat-color));
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  animation: skills-star-twinkle 2.6s ease-in-out infinite;
}

.skills__star-label {
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 500;
  fill: var(--purple-text);
  stroke: var(--white);
  stroke-width: 0.1em;
  paint-order: stroke fill;
}

@media (hover: hover) and (pointer: fine) {
  .skills__star:hover .skills__star-mark {
    transform: scale(0.38);
  }
}

@media (max-width: 1279px) {
  .skills__layer--middle {
    display: block;
    margin-top: -26.2%;
    z-index: -1;
  }

  .skills__layer--flip {
    margin-top: -26.2%;
  }

  .skills__inner {
    position: absolute;
    top: 24vw;
    bottom: 26vw;
    left: 0;
    right: 0;
    padding: 0 1.6rem;
    container-type: size;
    container-name: skillsbox;
    overflow: hidden;
  }

  .skills__title-img {
    position: absolute;
    top: 11rem;
    right: 4rem;
    width: clamp(140px, 40vw, 340px);
    transform: rotate(4deg) skew(6deg);
  }

  .skills__constellations {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 1cqh;
    width: 100%;
    height: 100%;
    margin-top: 0;
    transform: scale(var(--skills-scale, 1));
    transform-origin: top center;
  }

  .skills__constellation,
  .skills__constellation[data-cat] {
    position: static;
    width: min(62cqw, 460px);
  }
  .skills__constellation:nth-child(odd) {
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: max(-16px, -3%);
  }

  .skills__constellation:nth-child(even) {
    margin-top: 0;
    margin-right: max(-16px, -3%);
    margin-bottom: 0;
    margin-left: auto;
  }

  .skills__constellation-label {
    font-size: clamp(2.3rem, 5.6cqw, 3.2rem);
    margin-bottom: 0;
  }

  .skills__constellation-name {
    font-size: clamp(1.4rem, 3.2cqw, 1.8rem);
    letter-spacing: 0.08em;
    margin-bottom: 0.35cqh;
  }

  .skills__constellation[data-cat="tools"] .skills__constellation-svg {
    margin-top: 2.5cqh;
  }

  .skills__constellation[data-cat="ai"] .skills__star-label {
    font-size: clamp(1.73rem, 4.2cqw, 2.4rem); /* viewBox 280 wide, 0.75x header */
  }

  .skills__constellation[data-cat="frameworks"] .skills__star-label {
    font-size: clamp(1.84rem, 4.48cqw, 2.56rem); /* viewBox 300 wide, 0.8x header */
  }

  .skills__constellation[data-cat="languages"] .skills__star-label,
  .skills__constellation[data-cat="tools"] .skills__star-label {
    font-size: clamp(1.96rem, 4.76cqw, 2.72rem); /* viewBox 360 wide, 0.85x header */
  }
}

@media (max-width: 480px) {
  .skills__inner {
    bottom: 12vw;
  }

  .skills__title-img {
    top: 6rem;
    right: 2rem;
    width: clamp(120px, 65vw, 300px);
  }

  .skills__constellations {
    gap: 0.4cqh;
  }

  .skills__constellation,
  .skills__constellation[data-cat] {
    width: min(62cqw, 460px);
  }

  .skills__constellation:nth-child(1) {
    margin-top: 2cqh;
  }

  .skills__constellation:nth-child(2) {
    margin-top: 1cqh;
  }
}

@media (max-width: 460px) {
  .skills__inner {
    bottom: 20vw;
  }

  .skills__constellation[data-cat="ai"] {
    margin-right: -13%;
    margin-top: -4cqh;
  }
}

.skills__constellation--tight[data-cat="ai"] .skills__star-label {
  font-size: clamp(1.36rem, 3.3cqw, 1.89rem);
}

.skills__constellation--tight[data-cat="ai"] .skills__constellation-line {
  stroke-width: 1.89;
}

.skills__constellation--tight[data-cat="ai"] .skills__star-mark {
  transform: scale(0.236);
}

.skills__constellation--tight[data-cat="frameworks"] .skills__star-label {
  font-size: clamp(1.23rem, 2.99cqw, 1.71rem);
}

.skills__constellation--tight[data-cat="frameworks"] .skills__constellation-line {
  stroke-width: 1.6;
}

.skills__constellation--tight[data-cat="frameworks"] .skills__star-mark {
  transform: scale(0.2);
}

@media (max-width: 369px) {
  .skills__constellation,
  .skills__constellation[data-cat] {
    width: min(82cqw, 460px);
  }
  .skills__constellation[data-cat="tools"],
  .skills__constellation[data-cat="languages"] {
    margin-left: -80px;
  }
  .skills__constellation[data-cat="frameworks"],
  .skills__constellation[data-cat="ai"] {
    margin-right: -90px;
  }
}

@media (min-width: 370px) and (max-width: 460px) {
  .skills__constellation[data-cat="tools"],
  .skills__constellation[data-cat="languages"] {
    margin-left: -50px;
  }

  .skills__constellation[data-cat="frameworks"],
  .skills__constellation[data-cat="ai"] {
    margin-right: -50px;
  }
}

@media (min-width: 461px) and (max-width: 800px) {
  .skills__constellation[data-cat="tools"],
  .skills__constellation[data-cat="languages"] {
    margin-left: -30px;
  }

  .skills__constellation[data-cat="frameworks"],
  .skills__constellation[data-cat="ai"] {
    margin-right: -70px;
  }
}

@media (min-width: 530px) and (max-width: 800px) {
  .skills__constellation[data-cat="frameworks"],
  .skills__constellation[data-cat="ai"] {
    margin-right: -100px;
  }
}

@media (min-width: 801px) and (max-width: 1279px) {
  .skills__constellation[data-cat="tools"],
  .skills__constellation[data-cat="languages"] {
    margin-left: 60px;
  }

  .skills__constellation[data-cat="frameworks"],
  .skills__constellation[data-cat="ai"] {
    margin-right: 60px;
  }
}

/* ---- projects ---- */
.projects {
  padding: 8rem 0;
  background: var(--white);
}

.projects__cta {
  display: flex;
  width: fit-content;
  margin: 4rem auto 0;
}

.project-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 4rem;
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 4rem;
}

.project-spotlight__badge {
  position: absolute;
  top: -25.74rem;
  left: -0.2rem;
  width: 57.6rem;
  transform: rotate(-8deg);
  z-index: 3;
  pointer-events: none;
}

.project-spotlight__badge-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.project-spotlight__badge .svg-title-shadow-group {
  transform: translate(0.5rem, 0.8rem);
}

.project-spotlight__badge .svg-title--works {
  stroke: color-mix(in srgb, var(--pink-soft) 65%, white);
}

.project-spotlight__badge::before,
.project-spotlight__badge::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--yellow-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  transform: rotate(15deg) skew(10deg);
  animation: twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

.project-spotlight__badge::before {
  width: 7.2rem;
  height: 8.7rem;
  top: -4.8rem;
  left: 3rem;
}

.project-spotlight__badge::after {
  width: 3.6rem;
  height: 5.1rem;
  top: 1.2rem;
  left: 0.9rem;
  animation-delay: 0.3s;
}

.decor-idle .project-spotlight__badge::before,
.decor-idle .project-spotlight__badge::after {
  animation-play-state: paused;
}

@media (max-width: 440px) {
  .project-spotlight__badge {
    width: 51.84rem;
    top: -23.17rem;
    left: -0.18rem;
  }

  .projects {
    padding-top: 23rem;
  }
}

@media (max-width: 380px) {
  .project-spotlight__badge {
    width: 46.08rem;
    top: -20.59rem;
    left: -0.16rem;
  }
}

.project-spotlight__media-stack {
  position: relative;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
  cursor: grab;
}

.project-spotlight__media-stack:active {
  cursor: grabbing;
}

.project-spotlight__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 2.4rem;
  box-shadow: 0 1.2rem 3.2rem rgba(85, 64, 165, 0.24);
}

.project-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-spotlight__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--white), var(--pink-lightest) 140%);
}

.project-spotlight__media--icon img {
  width: 50%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 0.8rem 1.6rem rgba(85, 64, 165, 0.25));
}

.project-spotlight__status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--teal-text);
}

.project-spotlight__status-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--teal-blue);
}

.project-spotlight__title {
  margin-top: 1rem;
  font-family: "Righteous", sans-serif;
  font-size: 3rem;
  color: var(--purple-mid);
}

.project-spotlight__desc {
  margin-top: 1.2rem;
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--purple-text);
  max-width: 45ch;
}

.project-spotlight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
  list-style: none;
}

.project-spotlight__tags li {
  padding: 0.5rem 1.4rem;
  border-radius: 10rem;
  background: var(--pink-lightest);
  color: var(--purple-text);
  font-size: 1.3rem;
  font-weight: 600;
}

.project-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.btn-pill--small {
  margin-top: 0;
  padding: 1.2rem 3.2rem;
  font-size: 1.5rem;
  letter-spacing: 0.15rem;
}

.btn-pill--ghost {
  background: transparent;
  border-color: var(--purple-deep);
}

.project-spotlight__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  margin-top: 3.2rem;
}

.project-spotlight__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  border: 0.24rem solid var(--pink-lightest);
  border-radius: 50%;
  background: linear-gradient(360deg, rgba(252, 151, 209, 0.6) 0%, rgba(165, 188, 255, 0.6) 100%);
  color: var(--purple-text);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-spotlight__arrow svg {
  width: 1.8rem;
  height: 1.8rem;
}

.project-spotlight__arrow:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.8rem 1.6rem rgba(85, 64, 165, 0.24);
}

.project-spotlight__arrow:active {
  transform: translateY(0);
}

.project-spotlight__arrow:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.projects__more-note {
  margin-top: 3rem;
  text-align: center;
  color: var(--purple-text);
  opacity: 0.7;
  font-size: 1.5rem;
}

/* ---- contact ---- */
.contact {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 4rem 4rem;
  background: var(--purple-night);
  overflow: hidden;
}

.contact__title-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.contact__arc {
  position: absolute;
  top: -8.6rem;
  left: 50%;
  transform: translateX(calc(-50% + 3rem)) rotate(17deg);
  width: 62rem;
  max-width: 88%;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .contact__arc {
    top: -6rem;
  }
}

.contact__flip-wrap {
  position: relative;
  z-index: 2;
  margin-top: 16.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 120rem;
}

.contact__flip-face {
  width: 22rem;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  border: 0.24rem solid var(--pink-lightest);
  border-radius: 10rem;
  background: linear-gradient(360deg, rgba(252, 151, 209, 0.6) 0%, rgba(165, 188, 255, 0.6) 100%);
  color: var(--white);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.4rem;
  backface-visibility: hidden;
  transition: transform 0.55s ease;
}

.contact__flip-face--back {
  position: absolute;
  inset: 0;
  margin: auto;
  transform: rotateY(180deg);
}

.contact__flip-wrap:hover .contact__flip-face--front {
  transform: rotateY(180deg);
}

.contact__flip-wrap:hover .contact__flip-face--back {
  transform: rotateY(0);
}

.contact__flip-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contact__flip-link:hover {
  transform: translateY(-0.3rem) scale(1.1);
}

.contact__flip-link:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

.contact__flip-link svg {
  transition: filter 180ms ease;
}

.contact__flip-link:hover svg {
  filter: drop-shadow(0 0 0.6rem var(--pink-lightest));
}

.contact__title-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  margin: 5.8rem auto 4.4rem;
  transform: translateX(3rem) rotate(-10deg) skew(-10deg);
}

@media (max-width: 360px) {
  .contact__title-img {
    max-width: 39.1rem;
  }
}

.contact__title-svg {
  overflow: visible;
  display: block;
}

.contact__title-svg--lets {
  width: 80%;
  transform: translateX(-10rem);
}

.contact__title-svg--talk {
  position: absolute;
  z-index: 1;
  width: 70%;
  right: 2%;
  bottom: -90%;
}

.contact__title-svg .svg-title {
  stroke: #eb9fde;
}

.contact__title-svg .svg-title-shadow {
  stroke: var(--purple-text);
}

.contact__title-svg--lets .svg-title-shadow-group {
  transform: translate(0.5rem, 0.8rem);
}

.contact__title-svg--talk .svg-title-shadow-group {
  transform: translate(0.42rem, 0.68rem);
}

.contact__title-img::before,
.contact__title-img::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: var(--yellow-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  transform: rotate(15deg) skew(10deg);
  animation: twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

.contact__title-img::before {
  width: 4.4rem;
  height: 5.3rem;
  top: -4.4rem;
  left: 2rem;
}

.contact__title-img::after {
  width: 2.2rem;
  height: 3.2rem;
  top: -1rem;
  left: 0.6rem;
  animation-delay: 0.3s;
}

.decor-idle .contact__title-img::before,
.decor-idle .contact__title-img::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .contact__title-img::before,
  .contact__title-img::after {
    animation: none;
    opacity: 0.6;
  }
}

.contact__twinkles {
  position: absolute;
  inset: 0;
}

.twinkle {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--white);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes skills-star-twinkle {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twinkle {
    animation: none;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skills__star-mark {
    animation: none;
    opacity: 0.85;
  }
}

/* ---- footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(-4rem, -10vw, -2rem);
  background: var(--purple-night);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/design/png/footer_wave.png") no-repeat top / 100% 100%;
  background-image: image-set(
    url("../assets/img/design/webp/footer_wave.webp") type("image/webp"),
    url("../assets/img/design/png/footer_wave.png") type("image/png")
  );
  z-index: 0;
}

.site-footer__content {
  position: relative;
  z-index: 1;
  text-align: right;
  padding: 8vw 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.site-footer__wordmark {
  font-family: "Fredoka", sans-serif;
  font-size: 2.8rem;
  color: var(--pink-lightest);
}

.site-footer__email,
.site-footer__copyright {
  color: var(--pink-lightest);
  font-size: 1.4rem;
  opacity: 0.85;
}

/* ---- preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-pale);
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__spark {
  width: 4rem;
  height: 4rem;
  background: var(--pink-primary);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  animation: pulse 0.9s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__spark {
    animation: none;
  }
}

/* ---- cloud wipe transition ---- */
.cloud-wipe {
  position: fixed;
  inset: 0;
  z-index: 150; /* above nav-toggle (100), below the preloader (200) it plays under */
  overflow: hidden;
  pointer-events: none;
}

.cloud-wipe__layer {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  top: -50%;
}

.cloud-wipe__layer--back {
  top: -62%;
  opacity: 0.95;
}

.cloud-wipe__layer--mid {
  top: -18%;
  opacity: 0.97;
}

.cloud-wipe__layer--front {
  top: 25%;
  opacity: 1;
}

@media (max-width: 1024px) {
  .cloud-wipe__layer {
    object-position: 5% bottom;
  }
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
  html {
    font-size: 8.5px;
  }

  .hero__doodle {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contact__arc {
    left: calc(50% + 1.5rem);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .contact__arc {
    left: calc(50% + 1.5rem);
  }
}

@media (max-width: 480px) {
  .contact__arc {
    left: calc(50% + 2.5rem);
    top: -5.2rem;
    transform: translateX(calc(-50% + 3rem)) rotate(17deg);
  }
}

@media (max-width: 420px) {
  .contact__arc {
    left: calc(50% + 6rem);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 7px;
  }

  .hero__vortex-texture {
    width: 220vw;
  }

  .about {
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    padding-top: calc(49.6vw + 3rem);
    padding-bottom: 4rem;
  }

  .projects {
    min-height: 66dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about__illustration-img {
    /* the phone layout stacks the text underneath the picture and uses the
       section's padding-top to clear it, which only works with the picture
       pinned to the top. the desktop centring must not apply here */
    top: 0;
    transform: none;
  }

  .about__inner {
    max-width: 100%;
    margin: 0;
    background: transparent;
  }

  .about__big-star--one {
    top: calc(var(--cloud-drop) + 2vw);
    left: 5%;
    right: auto;
    width: 5.6rem;
  }

  .about__big-star--two {
    top: calc(var(--cloud-drop) + 15vw);
    left: 76%;
    right: auto;
    width: 3.8rem;
  }

  .about__big-star--three {
    top: calc(var(--cloud-drop) + 31vw);
    left: 6%;
    right: auto;
    width: 7rem;
  }

  .about__big-star--four {
    top: calc(var(--cloud-drop) + 52vw);
    left: auto;
    right: 7%;
    width: 4.4rem;
  }

  .about__big-star--five {
    top: calc(var(--cloud-drop) + 72vw);
    left: 11%;
    right: auto;
    width: 6rem;
  }

  .about__text {
    font-size: 3.6rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 6px;
  }

  .nav-toggle {
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
  }

  .hero__wordmark {
    letter-spacing: 0.2rem;
  }

  .contact__arc text {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .contact__arc text {
    font-size: 21.6px;
  }
}

@media (max-width: 360px) {
  .hero__wordmark {
    font-size: 15.3rem;
  }

  .hero__swoosh--bottom text {
    font-size: 28.9px;
  }
}

.hero__twinkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.decor-idle .twinkle,
.decor-idle .about__sparkle,
.decor-idle .hero__mini-star,
.decor-idle .hero__big-star,
.decor-idle .about__big-star,
.decor-idle .skills__big-star,
.decor-idle .skills__star-mark,
.decor-idle .about__illustration-img {
  animation-play-state: paused;
}

/* ---- grain texture ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 -8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- legal page (impressum) ---- */
.legal-page {
  max-width: 70rem;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
  flex: 1 0 auto;
}

body:has(.legal-page) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 1.4rem;
  color: var(--teal-text);
}

.legal-page__back:hover {
  text-decoration: underline;
}

.legal-page__title {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--purple-text);
  margin-bottom: 3rem;
}

.legal-page__section {
  margin-bottom: 2.6rem;
}

.legal-page__section h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--purple-text);
  margin-bottom: 0.8rem;
}

.legal-page__section p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--purple-text);
}

.legal-page__section a {
  color: var(--teal-text);
}

.legal-page__section a:hover {
  text-decoration: underline;
}

/* ---- legal page footer override ---- */
.site-footer--plain {
  background: var(--white);
  flex-shrink: 0;
  min-height: 26rem;
}

.site-footer--plain .site-footer__content {
  margin: 9rem 4rem 3rem auto;
}

.site-footer--plain .site-footer__wordmark,
.site-footer--plain .site-footer__email,
.site-footer--plain .site-footer__copyright {
  background: rgba(156, 112, 206, 0.9);
  border-radius: 0.8rem;
  padding: 0.4rem 1rem;
}
