:root {
  --bg: #0a0610;
  --bg-2: #14081d;
  --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;
  --danger: #ff3366;
  --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 15% 10%, rgba(255, 90, 200, .20), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(112, 225, 255, .14), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(155, 92, 255, .18), transparent 34rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 55%, #07040b);
  overflow-x: hidden;
}

body.light {
  --bg: #fff2fb;
  --bg-2: #ffe4f6;
  --text: #241327;
  --muted: rgba(36, 19, 39, .72);
  --soft: rgba(255, 255, 255, .55);
  --soft-2: rgba(255, 255, 255, .78);
  --line: rgba(36, 19, 39, .13);
  --shadow: 0 24px 90px rgba(255, 90, 200, .22);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 90, 200, .32), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(112, 225, 255, .20), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

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

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  z-index: 0;
  background-image:
    linear-gradient(transparent 0 0),
    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: 100% 100%, 42px 42px, 58px 58px;
  mix-blend-mode: overlay;
}

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

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

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 8, 28, .62);
  backdrop-filter: blur(24px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

body.light .site-header {
  background: rgba(255, 255, 255, .58);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 900;
  color: white;
  background:
    linear-gradient(135deg, rgba(255,90,200,1), rgba(155,92,255,1)),
    #ff5ac8;
  box-shadow: 0 12px 32px rgba(255, 90, 200, .35);
}

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

.brand strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.main-nav a:hover {
  color: var(--text);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: var(--soft);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  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: 96px 0;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding-top: 84px;
}

.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.02;
  letter-spacing: -.045em;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
}

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.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.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: 36px;
}

.mini-stats div {
  min-width: 120px;
  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.24rem;
}

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

.hero-card {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

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

body.light .kuro-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.42)),
    rgba(255, 255, 255, .60);
}

.kuro-card::before,
.kuro-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .8;
}

.kuro-card::before {
  width: 210px;
  height: 210px;
  right: -70px;
  top: -50px;
  background: rgba(255, 90, 200, .24);
}

.kuro-card::after {
  width: 250px;
  height: 250px;
  left: -100px;
  bottom: -90px;
  background: rgba(112, 225, 255, .14);
}

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

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

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

.kuro {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 270px;
  height: 280px;
  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: 86px;
  height: 138px;
  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: 26px;
  height: 26px;
  top: -6px;
  left: 26px;
  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: 70px 20px 10px;
  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: 28px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 45% 45% 50% 50%;
  background: #fff8ff;
  color: var(--pink);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(255,255,255,.12);
}

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

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

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

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

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

.speech {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.speech strong,
.speech span {
  display: block;
}

.speech span {
  color: var(--muted);
  margin-top: 4px;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  font-weight: 900;
  box-shadow: var(--shadow);
  animation: chipFloat 4s ease-in-out infinite;
}

.chip-a { left: 0; top: 18%; }
.chip-b { right: 0; top: 54%; animation-delay: .8s; }
.chip-c { left: 10%; bottom: 12%; animation-delay: 1.5s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

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

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

.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); }
}

.marquee-wrap {
  padding: 20px 0;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 12px;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 900;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

.section-heading h2,
.panel h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.section-heading p:not(.eyebrow),
.panel p,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
  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;
  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(3, 1fr);
  gap: 18px;
}

.project-card,
.panel,
.timeline,
.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: 330px;
  padding: 24px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .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) rotateX(2deg);
  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.55rem;
}

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

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

.project-meta span,
.stack-cloud 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: 800;
}

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

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}

.panel,
.timeline {
  padding: 30px;
}

.cute-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.cute-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.cute-list li::before {
  content: "♡";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 24px;
}

.timeline-item > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 20px;
  font-family: var(--display);
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 6px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stack {
  text-align: center;
}

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

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

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

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

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

.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: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 16px 20px;
}

.theme-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  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: 930px) {
  .site-header {
    top: 10px;
    border-radius: 26px;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(18, 8, 28, .92);
    backdrop-filter: blur(22px);
  }

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

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

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

  .hero,
  .split,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-card {
    min-height: 500px;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

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

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

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

  .btn {
    width: 100%;
  }

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

  .kuro-card {
    min-height: 500px;
    border-radius: 34px;
  }

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

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

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