/* Homepage Kitty art direction. Every selector is confined to its owning band. */
.homepage .kitty-band {
  background: #f9cddd; color: #591334; padding: 0;
  overflow: hidden; overflow: clip; isolation: isolate;
}
.kitty-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .38;
  background: url("assets/kitty-plush/fabric.svg") repeat; z-index: -1;
}
.homepage .kitty-stage {
  width: calc(100% - 6vw); min-height: max(620px, 36vw);
  display: grid; grid-template-columns: minmax(0, .47fr) minmax(0, .53fr);
  align-items: center; gap: 0; padding-block: 1.4vw 2vw;
}
.kitty-band .kitty-introduction { position: relative; z-index: 2; padding: 0 1vw 0 0; display: grid; grid-template-columns: 31% minmax(0, 1fr); column-gap: 1vw; }
.kitty-band .kitty-heading { display: contents; }
.homepage .kitty-band .kitty-cushion {
  grid-column: 1; grid-row: 1 / 4; align-self: start; width: 100%; height: auto; aspect-ratio: 1;
  display: grid; place-items: center; background: none; border: 0;
  border-radius: 0; box-shadow: none; transform: rotate(-7deg);
}
.kitty-band .kitty-cushion::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/kitty-plush/icon-frame.png") center / contain no-repeat;
  filter: drop-shadow(0 7px 5px #8e3c5c24); pointer-events: none;
}
.homepage .kitty-band .kitty-cushion img { width: 58%; height: auto; position: relative; z-index: 1; }
.homepage .kitty-band h2 {
  grid-column: 2;
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-family: Bricolage, Archivo, sans-serif; font-size: max(5.25rem, 8.9vw);
  font-weight: 800; line-height: .98; letter-spacing: -.07em; overflow-wrap: normal;
}
.kitty-band .plush-flower, .kitty-band .plush-star, .kitty-band .plush-yarn {
  display: block; background-image: url("assets/kitty-plush/notions.png");
  background-size: 200% 200%; aspect-ratio: 1; pointer-events: none;
  filter: drop-shadow(0 4px 3px #85354f25);
}
.kitty-band .plush-flower { background-position: right top; }
.kitty-band .plush-star { background-position: left bottom; }
.kitty-band .plush-yarn { background-position: right bottom; }
.kitty-band .kitty-heading .plush-flower { width: .32em; flex: 0 0 .32em; margin-top: .2em; }
.homepage .kitty-band .kitty-introduction > p {
  grid-column: 2;
  font-size: max(1.125rem, 1.34vw); line-height: 1.55;
  margin: 1.25vw 0 0; max-width: 35ch; padding-right: 12px;
}
.homepage .kitty-band .project-links { grid-column: 2; gap: 1vw; margin-top: 1.7vw; align-items: stretch; }
.homepage .kitty-band .project-links a {
  min-height: 60px; padding: max(12px, .8vw) max(16px, 1.2vw); justify-content: center; font-size: max(1rem, 1.06vw);
  font-weight: 650; border-radius: 100px; transition: box-shadow .18s, background-color .18s;
}
.homepage .kitty-band .explore-kitty {
  background: linear-gradient(#ac396e, #74113f 56%, #8e2055); color: #fff6fa;
  border: 3px solid #d76b9b; text-decoration: none; gap: max(16px, 1.15vw);
  box-shadow: inset 0 2px 4px #fff6, inset 0 -2px 4px #410a3780, 0 4px 5px #89244735;
}
.kitty-band .explore-kitty span { font-size: 1.65rem; line-height: 1; font-weight: 400; }
.homepage .kitty-band .github-kitty {
  background: #fbd6e3; border: 2px dashed #b96287; color: #591334;
  box-shadow: 0 0 0 4px #f7bed3, inset 0 2px 5px #fff9, 0 5px 7px #94335820;
}
.homepage .kitty-band .explore-kitty:hover { box-shadow: inset 0 2px 6px #fff8, 0 5px 12px #89244760; }
.homepage .kitty-band .github-kitty:hover { background: #ffe7ee; }
.homepage .kitty-band a:focus-visible { outline: 3px solid #591334; outline-offset: 7px; }
.homepage .kitty-band .kitty-preview {
  position: relative; z-index: 1; background: none; border: 0; padding: 0;
  border-radius: 0; box-shadow: none; min-width: 0; width: 97%; margin-inline: auto;
}
.kitty-band .kitty-screen { position: relative; padding: 24.7% 11% 8%; }
.kitty-band .kitty-screen::before {
  content: ""; position: absolute; left: 0; top: -19.785%; width: 100%; height: 151.952%; z-index: 2; pointer-events: none;
  /* Nine-slice the rim: preserve ears/corners while fitting the real screenshot. */
  border: 1px solid transparent;
  border-image-source: url("assets/kitty-plush/screen-frame-wide.png");
  border-image-slice: 494 149 400 151;
  border-image-width: 34.898% 9.5% 28.255%;
  border-image-repeat: stretch;
  filter: drop-shadow(0 10px 6px #8e3c5c27);
}
.kitty-band .kitty-screen .project-image { position: relative; z-index: 1; border-radius: 12px; }
.homepage .kitty-band .kitty-preview .project-image img { border: 0; border-radius: 4px; transform: scale(1.045); transform-origin: center; }
.homepage .kitty-band .kitty-preview figcaption {
  font-size: max(.75rem, .65vw); line-height: 1.4; width: fit-content; max-width: 80%;
  margin: 16px auto 0; padding: 8px 14px; border: 1px dashed #b86c8b;
  border-radius: 3px; background: #fbd9e5; box-shadow: 0 3px 7px #863a5318;
}
.kitty-band .kitty-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kitty-band .sleeping-kitten { position: absolute; width: 30vw; height: auto; bottom: -6vw; left: -3vw; mask-image: linear-gradient(to right, #000 88%, transparent); }
.kitty-band .flower-one { position: absolute; width: 55px; top: 30px; left: 25%; transform: rotate(-22deg); }
.kitty-band .flower-two { position: absolute; width: 43px; top: 48%; left: 14px; transform: rotate(15deg); }
.kitty-band .flower-three { position: absolute; width: 45px; bottom: 28px; left: 65%; transform: rotate(20deg); }
.kitty-band .star-one { position: absolute; width: 115px; right: -14px; top: 18px; transform: rotate(18deg); }
.kitty-band .yarn-one { position: absolute; width: 190px; right: -46px; bottom: -42px; transform: rotate(-12deg); }
.kitty-band .stitched-heart { position: absolute; width: 32px; height: 32px; fill: none; stroke: #ba527b; stroke-width: 3; stroke-dasharray: 2 1; filter: drop-shadow(1px 2px 1px #fff8); }
.kitty-band .heart-one { left: 37%; bottom: 51px; transform: rotate(-18deg); }
.kitty-band .heart-two { left: 5%; top: 44px; transform: rotate(14deg); }

@media (max-width: 1100px) {
  .homepage .kitty-stage { width: calc(100% - 64px); max-width: 800px; grid-template-columns: 1fr; padding-block: 65px 180px; gap: 0; }
  .kitty-band .kitty-introduction { padding: 0; display: block; }
  .kitty-band .kitty-heading { display: flex; align-items: center; justify-content: center; margin: 0; gap: 18px; }
  .homepage .kitty-band .kitty-cushion { flex-basis: 180px; width: 180px; }
  .homepage .kitty-band h2 { font-size: clamp(5rem, 11vw, 8rem); }
  .homepage .kitty-band .kitty-introduction > p { text-align: center; max-width: 40ch; margin: 16px auto 0; padding: 0; }
  .homepage .kitty-band .project-links { justify-content: center; }
  .homepage .kitty-band .kitty-preview { margin-top: 8px; }
  .kitty-band .sleeping-kitten { width: 290px; bottom: -40px; }
  .kitty-band .flower-one { left: 7%; top: 140px; width: 40px; }
}
@media (max-width: 600px) {
  .homepage .kitty-stage { width: calc(100% - 40px); padding-block: 72px 150px; }
  .kitty-band .kitty-heading { gap: 8px; }
  .homepage .kitty-band .kitty-cushion { flex-basis: 100px; width: 100px; }
  .homepage .kitty-band h2 { font-size: min(4.75rem, 18vw); }
  .homepage .kitty-band .kitty-introduction > p { font-size: 1.125rem; margin-top: 20px; }
  .homepage .kitty-band .project-links { gap: 16px; margin-top: 22px; }
  .homepage .kitty-band .project-links li { width: 100%; }
  .homepage .kitty-band .project-links a { width: 100%; min-height: 56px; }
  .homepage .kitty-band .kitty-preview { margin-top: 12px; }
  .kitty-band .kitty-screen { width: 113%; margin-left: -6.5%; padding: 27.911% 12.43% 9.04%; }
  .homepage .kitty-band .kitty-preview figcaption { max-width: 100%; margin-top: 12px; font-size: .6875rem; }
  .kitty-band .sleeping-kitten { width: 230px; bottom: -26px; left: -24px; }
  .kitty-band .yarn-one { width: 125px; right: -25px; bottom: -20px; }
  .kitty-band .star-one { width: 60px; top: -16px; right: -10px; }
  .kitty-band .flower-one, .kitty-band .flower-two, .kitty-band .heart-two { display: none; }
  .kitty-band .flower-three { width: 32px; bottom: 83px; left: auto; right: 26px; }
  .kitty-band .heart-one { width: 24px; height: 24px; bottom: 50px; left: 63%; }
}
@media (forced-colors: active) {
  .homepage .kitty-band { background: Canvas; color: CanvasText; }
  .kitty-band::before, .kitty-band .kitty-decor, .kitty-band .kitty-cushion::before,
  .kitty-band .kitty-screen::before, .kitty-band .plush-flower { display: none; }
  .homepage .kitty-band .project-links a { color: LinkText; background: Canvas; border: 2px solid LinkText; box-shadow: none; }
  .homepage .kitty-band a:focus-visible { outline-color: Highlight; }
  .homepage .kitty-band .kitty-preview figcaption { background: Canvas; border-color: CanvasText; box-shadow: none; }
}

/* Textile clusters frame the content; edge crops stay inside the band. */
.kitty-band .fabric-patch,.kitty-band .satin-bow,.kitty-band .flower-cluster,.kitty-band .yarn-coils { display:block; position:absolute; aspect-ratio:1; background:url("assets/kitty-plush/textiles.png") 0 0 / 200% 200%; pointer-events:none; filter:drop-shadow(0 5px 3px #85354f30); }
.kitty-band .satin-bow { background-position:right top; }
.kitty-band .flower-cluster { background-position:left bottom; }
.kitty-band .yarn-coils { background-position:right bottom; }
.kitty-band .patch-one { width:9vw; left:1.2vw; top:-.6vw; transform:rotate(-8deg); }
.kitty-band .patch-two { width:7vw; right:-.8vw; top:39%; transform:rotate(10deg); }
.kitty-band .bow-one { width:7vw; left:6%; top:5vw; transform:rotate(-15deg); }
.kitty-band .bow-two { width:6.5vw; left:44%; bottom:1.3vw; transform:rotate(15deg); }
.kitty-band .cluster-one { width:7.5vw; left:-1vw; top:57%; transform:rotate(20deg); }
.kitty-band .cluster-two { width:7vw; right:2vw; bottom:8vw; transform:rotate(-20deg); }
.kitty-band .cluster-three { width:5.5vw; left:31%; top:-.9vw; transform:rotate(12deg); }
.kitty-band .coils-one { width:19vw; left:25%; bottom:-3.8vw; transform:rotate(-8deg); }
.kitty-band .flower-one { width:4vw; top:2.5vw; left:14%; }
.kitty-band .flower-two { width:3.2vw; top:41%; left:.5vw; }
.kitty-band .flower-three { width:3.3vw; bottom:1.6vw; left:66%; }
.kitty-band .flower-four { position:absolute; width:2.7vw; top:2vw; left:43%; transform:rotate(-10deg); }
.kitty-band .flower-five { position:absolute; width:2.5vw; top:3vw; left:81%; transform:rotate(25deg); }
.kitty-band .star-one { width:7.5vw; right:.8vw; top:1vw; }
.kitty-band .yarn-one { width:15vw; right:-2.5vw; bottom:-3.5vw; }
.kitty-band .stitched-heart { width:2.2vw; height:2.2vw; }
.kitty-band .heart-one { left:40%; bottom:6.5vw; }
.kitty-band .heart-two { left:21%; top:3.6vw; }
.kitty-band .heart-three { right:2.4%; bottom:20%; transform:rotate(18deg); }
.kitty-band .spark-stitches { position:absolute; width:3.2vw; height:3.2vw; stroke:#b94c76; stroke-width:4; stroke-linecap:round; left:16%; top:7.5vw; transform:rotate(8deg); }
@media(max-width:1100px) {
 .homepage .kitty-stage { min-height:0; }
 .homepage .kitty-band .kitty-introduction > p { font-size:1.25rem; margin-top:20px; }
 .homepage .kitty-band .project-links { gap:18px; margin-top:24px; }
 .homepage .kitty-band .project-links a { font-size:1.125rem; padding:14px 22px; }
 .kitty-band .sleeping-kitten { width:340px; left:-40px; bottom:-65px; }
 .kitty-band .yarn-one { width:180px; right:-35px; bottom:-40px; }
 .kitty-band .patch-one { width:110px; left:-18px; top:3px; }
 .kitty-band .patch-two { width:80px; top:40%; right:-20px; }
 .kitty-band .bow-one { width:80px; left:3%; top:100px; }
 .kitty-band .bow-two { width:80px; left:47%; bottom:10px; }
 .kitty-band .flower-one { width:40px; left:17%; top:28px; }
 .kitty-band .flower-two { width:35px; top:37%; }
 .kitty-band .flower-three { width:35px; bottom:50px; left:75%; }
 .kitty-band .flower-four { width:30px; top:20px; left:68%; }
 .kitty-band .flower-five { display:none; }
 .kitty-band .cluster-one { width:75px; top:65%; left:-20px; }
 .kitty-band .cluster-two { width:90px; right:-8px; bottom:100px; }
 .kitty-band .cluster-three { width:65px; left:33%; top:-20px; }
 .kitty-band .star-one { width:90px; right:-12px; top:8px; }
 .kitty-band .coils-one { width:210px; left:33%; bottom:-45px; }
 .kitty-band .stitched-heart { width:28px; height:28px; }
 .kitty-band .heart-one { bottom:90px; left:44%; }
 .kitty-band .heart-two { top:30px; left:57%; }
 .kitty-band .heart-three,.kitty-band .spark-stitches { display:none; }
}
@media(max-width:600px) {
 .homepage .kitty-band .kitty-introduction > p { font-size:1.125rem; }
 .homepage .kitty-band .project-links { gap:16px; margin-top:22px; }
 .homepage .kitty-band .project-links a { font-size:1.0625rem; }
 .kitty-band .sleeping-kitten { width:230px; bottom:-26px; left:-24px; }
 .kitty-band .yarn-one { width:120px; right:-25px; bottom:-20px; }
 .kitty-band .patch-one { width:85px; top:-10px; left:-5px; }
 .kitty-band .star-one { width:65px; top:-8px; right:2px; }
 .kitty-band .flower-one { display:block; width:30px; top:15px; left:28%; }
 .kitty-band .flower-four { width:25px; top:32px; left:59%; }
 .kitty-band .cluster-two { width:70px; bottom:90px; right:-18px; }
 .kitty-band .cluster-three { width:55px; top:-27px; left:43%; }
 .kitty-band .heart-two { display:block; width:23px; height:23px; left:72%; top:37px; }
 .kitty-band .heart-one { width:24px; height:24px; bottom:43px; left:66%; }
 .kitty-band .patch-two,.kitty-band .bow-one,.kitty-band .bow-two,.kitty-band .flower-two,.kitty-band .flower-three,.kitty-band .cluster-one,.kitty-band .coils-one { display:none; }
}
