:root {
  --bg: #08040d;
  --bg-2: #13071e;
  --text: #fff8ff;
  --muted: rgba(255, 248, 255, .72);
  --soft: rgba(255, 255, 255, .08);
  --soft-2: rgba(255, 255, 255, .14);
  --line: rgba(255, 255, 255, .16);
  --pink: #ff5ac8;
  --pink-2: #ff9adc;
  --purple: #9b5cff;
  --blue: #70e1ff;
  --shadow: 0 24px 90px rgba(0, 0, 0, .45);
  --radius: 30px;
  --font: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 90, 200, .22), transparent 31rem),
    radial-gradient(circle at 88% 10%, rgba(112, 225, 255, .13), transparent 29rem),
    radial-gradient(circle at 50% 95%, rgba(155, 92, 255, .19), transparent 36rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 55%, #060309);
  overflow-x: hidden;
}

body.light {
  --bg: #fff1fb;
  --bg-2: #ffe1f5;
  --text: #261229;
  --muted: rgba(38, 18, 41, .72);
  --soft: rgba(255, 255, 255, .58);
  --soft-2: rgba(255, 255, 255, .78);
  --line: rgba(38, 18, 41, .13);
  --shadow: 0 24px 90px rgba(255, 90, 200, .20);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 90, 200, .34), transparent 31rem),
    radial-gradient(circle at 88% 10%, rgba(112, 225, 255, .20), transparent 29rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .11;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.12) 0 1px, transparent 1px);
  background-size: 42px 42px, 58px 58px;
  mix-blend-mode: overlay;
}

.aurora {
  position: fixed;
  z-index: 0;
  width: 40rem;
  height: 40rem;
  left: 53%;
  top: 44%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 90, 200, .23), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(112, 225, 255, .18), transparent 42%);
  filter: blur(34px);
  animation: auroraFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraFloat {
  from { transform: translate(-58%, -52%) rotate(0deg) scale(1); }
  to { transform: translate(-45%, -43%) rotate(18deg) scale(1.12); }
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04)),
    rgba(16, 7, 25, .66);
  backdrop-filter: blur(26px);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

body.light .site-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.44)),
    rgba(255,255,255,.62);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,90,200,.55), rgba(112,225,255,.35), rgba(155,92,255,.45));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 4px 8px 4px 4px;
  border-radius: 22px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(255, 90, 200, .28);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: -.03em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.main-nav {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.main-nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 900;
  transition: .25s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.header-cta {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(255,90,200,.25);
}

.header-cta span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #baffdf;
  box-shadow: 0 0 0 0 rgba(186,255,223,.8);
  animation: onlinePulse 1.6s infinite;
}

@keyframes onlinePulse {
  70% { box-shadow: 0 0 0 10px rgba(186,255,223,0); }
  100% { box-shadow: 0 0 0 0 rgba(186,255,223,0); }
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: var(--soft);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-top: 78px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--pink-2);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(255,90,200,.8);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(255,90,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,200,0); }
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.03;
  letter-spacing: -.045em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 6.2rem);
}

h1 span,
h2 span {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 40px rgba(255,90,200,.26);
}

.btn.ghost {
  background: var(--soft);
  backdrop-filter: blur(20px);
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.mini-stats div {
  min-width: 132px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 22px;
  backdrop-filter: blur(20px);
}

.mini-stats strong,
.mini-stats span { display: block; }

.mini-stats strong {
  font-family: var(--display);
  font-size: 1.18rem;
}

.mini-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .9rem;
}

.hero-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  justify-self: end;
  width: min(100%, 430px);
}

.kawaii-window {
  position: relative;
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    rgba(16, 6, 27, .62);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
  backdrop-filter: blur(26px);
}

body.light .kawaii-window {
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.44)),
    rgba(255,255,255,.60);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-top span:nth-child(1) { background: #ff5f95; }
.window-top span:nth-child(2) { background: #ffd166; }
.window-top span:nth-child(3) { background: #70e1ff; }

.window-top strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: .86rem;
  letter-spacing: .06em;
}

.mascot-wrap {
  position: relative;
  min-height: 304px;
}

.moon {
  position: absolute;
  top: 34px;
  right: 46px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--pink-2);
  box-shadow: 0 0 40px rgba(255,154,220,.46);
}

.moon::after {
  content: "";
  position: absolute;
  width: 59px;
  height: 59px;
  right: -15px;
  top: -7px;
  border-radius: 50%;
  background: #16091f;
}

body.light .moon::after { background: #fff3fb; }

.kuro {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 228px;
  height: 236px;
  transform: translate(-50%, -50%);
  animation: mascotBob 3.8s ease-in-out infinite;
  cursor: pointer;
}

@keyframes mascotBob {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
  50% { transform: translate(-50%, -55%) rotate(1.5deg); }
}

.ear {
  position: absolute;
  top: 8px;
  width: 72px;
  height: 116px;
  background: linear-gradient(180deg, #1a1224, #0b0711);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 70% 30% 70% 30%;
  transform-origin: bottom center;
  z-index: 1;
}

.ear::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  top: -6px;
  left: 23px;
  background: var(--pink);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 25px rgba(255,90,200,.45);
}

.ear.left {
  left: 18px;
  transform: rotate(-28deg);
}

.ear.right {
  right: 18px;
  transform: rotate(28deg) scaleX(-1);
}

.hood {
  position: absolute;
  inset: 60px 18px 8px;
  background: linear-gradient(180deg, #15101e, #08060d);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 48% 48% 44% 44%;
  z-index: 2;
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
}

.skull {
  position: absolute;
  top: 24px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 33px;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 45% 45% 50% 50%;
  background: #fff8ff;
  color: var(--pink);
  font-weight: 900;
}

.face {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 134px;
  height: 104px;
  transform: translate(-50%, -50%);
  background: #fff5f8;
  border-radius: 48% 48% 46% 46%;
}

.eye {
  position: absolute;
  top: 38px;
  width: 16px;
  height: 21px;
  border-radius: 50%;
  background: #1d1220;
  animation: blink 4s infinite;
}

.eye:nth-child(1) { left: 35px; }
.eye:nth-child(2) { right: 35px; }

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.12); }
}

.mouth {
  position: absolute;
  left: 50%;
  top: 65px;
  width: 28px;
  height: 14px;
  border-bottom: 4px solid #1d1220;
  border-radius: 0 0 50px 50px;
  transform: translateX(-50%);
}

.window-copy {
  margin: 0 22px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.window-copy p,
.window-copy strong {
  display: block;
  margin: 0;
}

.window-copy p {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.window-copy strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 22px 22px;
}

.quick-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
}

.sticker {
  position: fixed;
  z-index: 0;
  color: rgba(255,255,255,.18);
  font-size: clamp(1.4rem, 4vw, 3.6rem);
  pointer-events: none;
  animation: stickerFloat 10s ease-in-out infinite;
}

body.light .sticker { color: rgba(70,30,80,.15); }

.s1 { left: 5%; top: 20%; }
.s2 { right: 9%; top: 18%; animation-delay: 1s; }
.s3 { left: 12%; bottom: 18%; animation-delay: 2s; }
.s4 { right: 18%; bottom: 12%; animation-delay: 3s; }
.s5 { left: 48%; top: 10%; animation-delay: 1.8s; }
.s6 { left: 74%; top: 44%; animation-delay: 2.7s; }
.s7 { left: 30%; bottom: 8%; animation-delay: 4s; }

@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(10deg); }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-card h2,
.social-panel h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
}

.section-heading p:not(.eyebrow),
.about-text p,
.social-panel p,
.contact p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--soft);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: .24s ease;
}

.filter:hover,
.filter.active {
  background: linear-gradient(135deg, rgba(255,90,200,.92), rgba(155,92,255,.92));
  color: #fff;
  box-shadow: 0 14px 32px rgba(255,90,200,.24);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card,
.about-card,
.social-panel,
.contact-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
    rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.project-card {
  position: relative;
  min-height: 328px;
  padding: 23px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, opacity .25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,90,200,.20), transparent 34%);
  opacity: 0;
  transition: .25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,90,200,.42);
}

.project-card:hover::before { opacity: 1; }

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,90,200,.28), rgba(112,225,255,.14));
  font-size: 1.55rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.project-tag {
  margin: 0 0 8px;
  color: var(--pink-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .75rem;
}

.project-card h3 {
  margin: 0;
  font-size: 1.48rem;
}

.project-card p:not(.project-tag) {
  color: var(--muted);
  line-height: 1.62;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-meta span,
.stack-grid span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}

.project-card.hide {
  transform: scale(.96);
  opacity: 0;
  pointer-events: none;
  display: none;
}

.about-section {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: stretch;
}

.about-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  padding: 32px;
}

.about-text p:first-child { margin-top: 0; }
.about-text p:last-child { margin-bottom: 0; }

.social-panel {
  padding: 32px;
}

.social-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  transition: .24s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  background: rgba(255,90,200,.13);
  border-color: rgba(255,90,200,.35);
}

.social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
  font-size: 1.22rem;
}

.social-link strong,
.social-link small {
  display: block;
}

.social-link strong {
  font-family: var(--display);
  font-size: 1.1rem;
}

.social-link small {
  color: var(--muted);
  margin-top: 3px;
  font-weight: 800;
}

.stack { text-align: center; }
.stack .section-heading { margin-inline: auto; }

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stack-grid span {
  font-size: 1rem;
  padding: 12px 16px;
  transition: .24s ease;
}

.stack-grid span:hover {
  color: #fff;
  background: rgba(255,90,200,.30);
  transform: translateY(-4px) rotate(-2deg);
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
  overflow: hidden;
}

.contact-logo {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  box-shadow: 0 20px 42px rgba(255,90,200,.25);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 14px 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-socials a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  transition: .24s ease;
}

.footer-socials a:hover {
  color: var(--text);
  background: rgba(255,90,200,.16);
}

.footer-note {
  justify-self: end;
}

.theme-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  cursor: pointer;
}

.sparkle {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink-2);
  box-shadow: 0 0 16px var(--pink);
  animation: sparkleOut .65s ease-out forwards;
}

@keyframes sparkleOut {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .main-nav {
    justify-self: end;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 930px) {
  .site-header {
    top: 10px;
    grid-template-columns: auto 1fr auto;
    border-radius: 26px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    background: rgba(18, 8, 28, .94);
    box-shadow: var(--shadow);
  }

  body.light .main-nav {
    background: rgba(255,255,255,.94);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

  .hero-card {
    width: min(100%, 520px);
    justify-self: center;
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section,
  .about-card,
  .contact-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-note {
    justify-self: center;
  }

  .footer-logo {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 22px, 1180px);
    padding: 62px 0;
  }

  .site-header {
    width: min(100% - 18px, 1180px);
    padding: 8px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter {
    width: 100%;
  }

  .kawaii-window {
    min-height: 462px;
    border-radius: 32px;
  }

  .mascot-wrap {
    min-height: 262px;
  }

  .kuro {
    transform: translate(-50%, -50%) scale(.88);
  }

  .contact-logo {
    width: 68px;
    height: 68px;
  }

  .footer-socials {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .theme-button {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }
}

@media (max-width: 390px) {
  .brand strong {
    font-size: .98rem;
  }

  .kawaii-window {
    min-height: 432px;
  }

  .mascot-wrap {
    min-height: 236px;
  }

  .kuro {
    transform: translate(-50%, -50%) scale(.78);
  }

  .window-copy {
    margin: 0 16px;
  }

  .quick-tags {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Comments / Guestbook */
.comments-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.comment-form,
.comments-list {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
    rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  padding: 26px;
}

.privacy-note {
  margin-bottom: 18px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 90, 200, .28);
  border-radius: 20px;
  background: rgba(255, 90, 200, .10);
  color: var(--muted);
  line-height: 1.55;
  font-size: .94rem;
}

.privacy-note strong { color: var(--text); }

.comment-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 900;
}

.comment-form label span {
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 14px 15px;
  transition: .24s ease;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  border-color: rgba(255, 90, 200, .55);
  box-shadow: 0 0 0 4px rgba(255, 90, 200, .12);
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  color: var(--muted) !important;
  font-weight: 800 !important;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.form-status.ok { color: #baffdf; }
.form-status.error { color: #ff9ab8; }

.comments-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.comments-list-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

.mini-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
}

.comment-items { display: grid; gap: 12px; }

.comment-item {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.comment-item::before {
  content: "♡";
  position: absolute;
  right: 16px;
  top: 12px;
  color: rgba(255,90,200,.35);
  font-size: 1.5rem;
  font-weight: 900;
}

.comment-item strong {
  display: block;
  padding-right: 34px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.comment-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-date {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.44);
  font-size: .82rem;
  font-weight: 800;
}

body.light .comment-date { color: rgba(38, 18, 41, .45); }
.skeleton { opacity: .72; }

@media (max-width: 930px) {
  .comments-layout { grid-template-columns: 1fr; }
}
