:root {
  --bg-gradient: radial-gradient(circle at top left, rgba(95, 207, 255, 0.35), transparent 55%),
    radial-gradient(circle at top right, rgba(255, 126, 230, 0.25), transparent 60%),
    linear-gradient(135deg, #080b18 0%, #111731 40%, #04050f 100%);
  --bg-gradient-light: radial-gradient(circle at top left, rgba(64, 180, 255, 0.4), transparent 55%),
    radial-gradient(circle at top right, rgba(255, 176, 212, 0.3), transparent 60%),
    linear-gradient(135deg, #f0f4ff 0%, #fff 40%, #f7f7ff 100%);
  --surface-glass: rgba(17, 25, 40, 0.68);
  --surface-glass-light: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(255, 255, 255, 0.18);
  --border-glass-light: rgba(15, 17, 28, 0.12);
  --text-primary: #f5f7ff;
  --text-secondary: rgba(235, 238, 255, 0.8);
  --text-light-primary: #0f111c;
  --text-light-secondary: rgba(40, 43, 63, 0.75);
  --accent: #7f6dff;
  --accent-strong: #90f7ec;
  --glass-shadow: 0 24px 60px -30px rgba(10, 12, 20, 0.96);
  --glass-shadow-light: 0 24px 60px -35px rgba(34, 38, 71, 0.45);
  --max-width: 1160px;
  --blur-strength: 22px;
  --transition-speed: 180ms;
  --kawaii-pink: #ffb9e8;
  --kawaii-peach: #ffd7c2;
  --kawaii-mint: #c9ffde;
  --kawaii-yellow: #fff3b0;
  --kawaii-outline: rgba(255, 255, 255, 0.45);
  --kawaii-glitter: 0 20px 40px -20px rgba(255, 165, 210, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.light {
  background: var(--bg-gradient-light);
  color: var(--text-light-primary);
}

body.light .page-shell,
body.light .site-header,
body.light .hero-glass,
body.light .project-card,
body.light .about-card,
body.light .projects-table,
body.light .footer-card {
  background: var(--surface-glass-light);
  border-color: var(--border-glass-light);
  box-shadow: var(--glass-shadow-light);
  color: var(--text-light-primary);
}

body.light .site-header .logo,
body.light .site-header a,
body.light .hero h1,
body.light .eyebrow,
body.light .projects .section-heading h2,
body.light .site-footer p,
body.light .site-footer h2 {
  color: var(--text-light-primary);
}

body.light .hero-lede,
body.light .projects .section-heading p,
body.light .project-card p,
body.light .about-card p {
  color: var(--text-light-secondary);
}

body.light .view-toggle {
  border-color: rgba(15, 17, 28, 0.12);
  box-shadow: var(--glass-shadow-light);
}

body.light .projects-table thead {
  background: linear-gradient(135deg, rgba(255, 200, 232, 0.35), rgba(201, 227, 255, 0.28));
}

body.light .projects-table tbody tr:hover {
  background: rgba(15, 17, 28, 0.06);
}

body.light .quick-stats {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 233, 248, 0.8));
  border-color: rgba(220, 190, 250, 0.6);
  box-shadow: 0 18px 45px -26px rgba(142, 108, 199, 0.45);
}

body.light .quick-stats__badge {
  background: rgba(102, 93, 255, 0.1);
  color: var(--text-light-primary);
}

body.light .quick-stats__list li {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(194, 177, 255, 0.45);
}

body.light .quick-stats__footer {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 185, 232, 0.4);
  color: var(--text-light-secondary);
}

body.light .quick-stats__tagline {
  color: var(--text-light-secondary);
}

body.light .stat-label {
  color: var(--text-light-secondary);
}

body.light .quick-stats__icon {
  filter: drop-shadow(0 6px 12px rgba(209, 186, 255, 0.35));
}

body.light .about-kawaii__stars span {
  color: #7f6dff;
}

body.light .about-kawaii {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 227, 250, 0.72));
  border-color: rgba(209, 186, 255, 0.55);
}

body.light .about-kawaii__note {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(209, 186, 255, 0.45);
  color: var(--text-light-secondary);
}

body.light .about-kawaii__heart {
  filter: drop-shadow(0 6px 12px rgba(209, 186, 255, 0.4));
}

body.light .menu-toggle {
  border-color: rgba(15, 17, 28, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

body.light .menu-toggle:hover,
body.light.menu-open .menu-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 17, 28, 0.18);
}

body.light.menu-enabled .nav-links {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 236, 249, 0.94));
  color: var(--text-light-primary);
}

body.light.menu-enabled .nav-links a {
  color: var(--text-light-primary);
}

body.light .primary-action {
  background: linear-gradient(135deg, #646cff, #a483ff);
  color: white;
}

body.light .secondary-action {
  color: var(--text-light-secondary);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -20vmax;
  background: radial-gradient(circle at top, rgba(255, 200, 232, 0.2), transparent 55%),
    radial-gradient(circle at bottom, rgba(175, 238, 255, 0.24), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

body::after {
  background: radial-gradient(circle at 70% 20%, rgba(255, 227, 150, 0.35), transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(201, 255, 222, 0.28), transparent 65%);
  opacity: 0.6;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
  gap: 3rem;
}

.page-shell::before {
  content: '｡ﾟ･✧';
  position: absolute;
  top: 1.25rem;
  right: clamp(1rem, 8vw, 6rem);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255, 185, 232, 0.6);
  text-shadow: 0 10px 20px rgba(255, 185, 232, 0.4);
  pointer-events: none;
  animation: floaty 6s ease-in-out infinite;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-strength));
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 1.5rem;
  z-index: 10;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(144, 247, 236, 0.8), rgba(127, 109, 255, 0));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  backdrop-filter: blur(18px);
  transition: transform 120ms ease, background 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  color: inherit;
  z-index: 50;
}

.menu-toggle:hover,
.menu-open .menu-toggle {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle__line {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-open .menu-toggle__line:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle__line:nth-of-type(2) {
  opacity: 0;
}

.menu-open .menu-toggle__line:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.75rem, 6vw, 3.9rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-lede {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  max-width: 32rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero::after {
  content: 'ෆ kawaii mode activated ෆ';
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 185, 232, 0.72);
}

h1,
h2,
h3 {
  font-family: 'Fredoka', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, opacity var(--transition-speed) ease;
  position: relative;
}

.primary-action {
  background: linear-gradient(135deg, #90f7ec, #7f6dff);
  color: #020511;
  box-shadow: 0 20px 40px -20px rgba(127, 109, 255, 0.75);
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -15px rgba(127, 109, 255, 0.9);
}

.secondary-action {
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  opacity: 0.9;
}

.hero-glass {
  position: relative;
  isolation: isolate;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 2.5rem;
  min-height: 22rem;
  backdrop-filter: blur(var(--blur-strength));
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.hero-glass .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(144, 247, 236, 0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(127, 109, 255, 0.35), transparent 60%);
  z-index: -1;
}

.quick-stats {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: clamp(1.8rem, 4vw, 2.35rem);
  border-radius: 26px;
  border: 1px dashed rgba(255, 185, 232, 0.4);
  background: linear-gradient(135deg, rgba(17, 25, 40, 0.65), rgba(34, 46, 76, 0.7));
  box-shadow: 0 28px 60px -40px rgba(255, 185, 232, 0.65);
  backdrop-filter: blur(28px);
  overflow: hidden;
}

.quick-stats::before {
  content: '';
  position: absolute;
  inset: -50% -40% auto;
  height: 160%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 185, 232, 0.35), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(144, 247, 236, 0.32), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  animation: floaty 14s ease-in-out infinite;
}

.quick-stats::after {
  content: '';
  position: absolute;
  inset: 15% 10%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.quick-stats__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(127, 109, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.quick-stats__sparkle {
  font-size: 1.05rem;
  animation: twinkle 3.5s ease-in-out infinite;
}

.quick-stats__sparkle:nth-of-type(1) {
  animation-delay: 0.4s;
}

.quick-stats__sparkle:nth-of-type(2) {
  animation-delay: 1s;
}

.quick-stats__tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  color: rgba(235, 238, 255, 0.85);
}

.quick-stats__list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.quick-stats__list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 185, 232, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quick-stats__icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 6px 12px rgba(255, 185, 232, 0.35));
  animation: bounce 2.8s ease-in-out infinite;
}

.quick-stats__list li:nth-child(2) .quick-stats__icon {
  animation-delay: 0.6s;
}

.quick-stats__list li:nth-child(3) .quick-stats__icon {
  animation-delay: 1.2s;
}

.stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  color: rgba(235, 238, 255, 0.75);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.quick-stats__footer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-end;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 185, 232, 0.35);
  color: rgba(235, 238, 255, 0.78);
  font-size: 0.9rem;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(235, 238, 255, 0.7);
  margin-bottom: 1.5rem;
}

.projects {
  margin-top: clamp(5rem, 12vw, 7rem);
  position: relative;
}

.projects .section-heading {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.projects .section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(6rem, 20vw, 12rem);
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 185, 232, 0.8), rgba(201, 255, 222, 0.8));
  border-radius: 999px;
}

.section-heading {
  max-width: 32rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.view-toggle {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 185, 232, 0.26), rgba(144, 247, 236, 0.26));
  color: inherit;
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.view-toggle:hover,
.view-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--kawaii-glitter);
  background: linear-gradient(135deg, rgba(255, 185, 232, 0.4), rgba(144, 247, 236, 0.4));
}

.view-toggle__icon {
  font-size: 1.1rem;
}

.kawaii-garland {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1rem auto 3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: var(--max-width);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 185, 232, 0.3);
  backdrop-filter: blur(14px);
}

.kawaii-garland span {
  animation: sway 4s ease-in-out infinite;
}

.kawaii-garland span:nth-child(2) {
  animation-delay: 0.6s;
}

.kawaii-garland span:nth-child(3) {
  animation-delay: 1.2s;
}

.kawaii-garland span:nth-child(4) {
  animation-delay: 1.8s;
}

.kawaii-garland span:nth-child(5) {
  animation-delay: 2.4s;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.projects.table-view .projects-grid {
  display: none;
}

.projects.table-view .projects-table {
  display: block;
}

.projects-table {
  display: none;
  background: var(--surface-glass);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  backdrop-filter: blur(var(--blur-strength));
}

.projects-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.projects-table thead {
  background: linear-gradient(135deg, rgba(255, 185, 232, 0.18), rgba(144, 247, 236, 0.18));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.projects-table th,
.projects-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-table tr:last-child td {
  border-bottom: none;
}

.projects-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.projects-table a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.projects.table-view .view-toggle {
  background: linear-gradient(135deg, rgba(144, 247, 236, 0.4), rgba(255, 185, 232, 0.4));
}

.projects.table-view .view-toggle__icon {
  transform: rotate(-12deg);
}

.project-card {
  position: relative;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(var(--blur-strength));
  box-shadow: var(--glass-shadow);
  transition: transform 220ms ease, border-color 220ms ease, opacity 260ms ease;
  opacity: 0;
  transform: translateY(18px);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(144, 247, 236, 0.12), rgba(127, 109, 255, 0.05));
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
}

.project-card::after {
  content: '✧';
  position: absolute;
  top: -24px;
  right: 24px;
  font-size: 2.8rem;
  color: rgba(255, 185, 232, 0.35);
  text-shadow: 0 10px 20px rgba(255, 185, 232, 0.4);
  transform: rotate(-8deg);
  animation: floaty 8s ease-in-out infinite;
  pointer-events: none;
}

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

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 185, 232, 0.5);
  box-shadow: 0 30px 60px -40px rgba(255, 185, 232, 0.8);
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project-card[data-theme='heat']::before {
  background: linear-gradient(135deg, rgba(255, 126, 102, 0.16), rgba(255, 200, 124, 0.09));
}

.project-card[data-theme='light']::before {
  background: linear-gradient(135deg, rgba(175, 206, 255, 0.18), rgba(255, 255, 255, 0));
}

.project-card[data-theme='aurora']::before {
  background: linear-gradient(135deg, rgba(141, 224, 255, 0.25), rgba(173, 200, 255, 0.08));
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 238, 255, 0.6);
}

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

.project-card p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta {
  position: relative;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding-bottom: 0.2rem;
}

.cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(144, 247, 236, 0.8), rgba(127, 109, 255, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: scaleX(1);
}

.cta-secondary {
  color: rgba(235, 238, 255, 0.55);
  font-size: 0.9rem;
}

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

.about-kawaii {
  position: relative;
  margin: clamp(1.5rem, 6vw, 3.25rem) auto;
  max-width: min(var(--max-width), 880px);
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.25rem, 5vw, 2.75rem);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(17, 25, 40, 0.7), rgba(41, 57, 90, 0.55));
  border: 1px dashed rgba(255, 185, 232, 0.35);
  box-shadow: 0 30px 70px -40px rgba(127, 109, 255, 0.45);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1rem, 4vw, 1.8rem);
  align-items: center;
  overflow: hidden;
}

.about-kawaii::before {
  content: '';
  position: absolute;
  inset: -25% -15% -10% -15%;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 198, 245, 0.48) 0%, transparent 60%)
      0 0 / 220px 220px,
    radial-gradient(circle at 82% 32%, rgba(144, 247, 236, 0.4) 0%, transparent 65%)
      0 0 / 260px 260px,
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, 0.3) 0%, transparent 60%)
      0 0 / 240px 240px;
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: shimmer-drift 16s ease-in-out infinite alternate;
}

.about-kawaii__cloud,
.about-kawaii__stars,
.about-kawaii__note {
  position: relative;
  z-index: 1;
}

.about-kawaii__cloud {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: rgba(255, 255, 255, 0.95);
}

.about-kawaii__smile {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.05em;
}

.about-kawaii__stars {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 1.5rem);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.about-kawaii__stars span {
  animation: twinkle 4s ease-in-out infinite;
}

.about-kawaii__stars span:nth-child(2) {
  animation-delay: 0.8s;
}

.about-kawaii__stars span:nth-child(3) {
  animation-delay: 1.6s;
}

.about-kawaii__note {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 185, 232, 0.35);
  font-size: 0.95rem;
  color: rgba(235, 238, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-kawaii__heart {
  font-size: 1.2rem;
  filter: drop-shadow(0 6px 12px rgba(255, 185, 232, 0.35));
}

.about {
  margin-top: clamp(6rem, 10vw, 8rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.about-card {
  background: var(--surface-glass);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  padding: 1.75rem;
  backdrop-filter: blur(var(--blur-strength));
  box-shadow: var(--glass-shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: transform 220ms ease, opacity 260ms ease;
}

.about-card h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.site-footer {
  margin-top: clamp(6rem, 11vw, 8rem);
  display: grid;
  gap: 2rem;
  align-items: center;
}

.footer-card {
  background: var(--surface-glass);
  border-radius: 32px;
  border: 1px solid var(--border-glass);
  padding: clamp(2rem, 5vw, 3rem);
  backdrop-filter: blur(var(--blur-strength));
  box-shadow: var(--glass-shadow);
  display: grid;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 220ms ease, opacity 260ms ease;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal {
  color: rgba(235, 238, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
}

#orb-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(120px) saturate(1.25);
  opacity: 0.75;
  pointer-events: none;
}

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

@keyframes sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85) rotate(-12deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(12deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shimmer-drift {
  0% {
    transform: translate3d(-2%, -3%, 0) scale(0.98);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.01);
  }
  100% {
    transform: translate3d(0%, 3%, 0) scale(1);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-glass {
    order: -1;
    padding: 2rem;
  }

  .quick-stats {
    padding: 1.8rem;
  }

  .view-toggle {
    margin-top: 1rem;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 1.5rem;
  }

  .site-header {
    position: static;
    padding: 0.75rem 1rem;
  }

  body.menu-enabled .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    padding: 6rem 1.75rem 2.5rem;
    background: linear-gradient(160deg, rgba(6, 10, 22, 0.94), rgba(22, 30, 54, 0.94));
    backdrop-filter: blur(28px);
    z-index: 40;
    transition: opacity 220ms ease, transform 220ms ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
  }

  body.menu-enabled:not(.menu-open) .nav-links {
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    visibility: hidden;
  }

  body.menu-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  body.menu-enabled .nav-links a {
    font-size: clamp(1.3rem, 4.4vw, 1.6rem);
    font-weight: 600;
  }

  .hero {
    margin-top: 2.5rem;
    margin-bottom: 2.75rem;
  }

  .hero-glass {
    min-height: 18rem;
  }

  .projects-grid,
  .about-grid {
    gap: 1.25rem;
  }

  .project-card,
  .about-card,
  .footer-card {
    padding: 1.6rem;
  }

  .kawaii-garland {
    gap: 0.75rem;
    font-size: 1.1rem;
  }

  .about-kawaii {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.6rem;
  }

  .about-kawaii__note {
    justify-items: center;
  }

  .hero-actions {
    gap: 1.1rem;
    margin-bottom: 1.6rem;
  }

  .hero::after {
    bottom: -3rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .quick-stats {
    padding: 1.6rem;
    gap: 1.4rem;
  }

  .quick-stats__list {
    grid-template-columns: 1fr;
  }

  .quick-stats__footer {
    align-self: center;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .theme-toggle {
    padding: 0.3rem 0.6rem;
  }

  body.menu-enabled .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .projects-table table {
    font-size: 0.85rem;
  }

  .projects-table thead {
    font-size: 0.75rem;
  }

  .footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .hero {
    margin-bottom: 3.2rem;
  }

  .hero::after {
    bottom: -3.4rem;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

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

  .quick-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  #orb-canvas {
    display: none;
  }
}
