:root {
  --bg: #f7f1dc;
  --bg-strong: #ffe17d;
  --panel: rgba(255, 252, 240, 0.82);
  --panel-strong: #fff9ed;
  --ink: #132238;
  --ink-soft: #435066;
  --line: rgba(19, 34, 56, 0.14);
  --primary: #ff6b35;
  --secondary: #2f7cf6;
  --highlight: #22b573;
  --shadow: #16253f;
  --max-width: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 107, 53, 0.18), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(47, 124, 246, 0.18), transparent 22%),
    radial-gradient(circle at 50% 88%, rgba(34, 181, 115, 0.12), transparent 28%),
    linear-gradient(180deg, #fff8e8 0%, var(--bg) 45%, #f8f0da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 34, 56, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 56, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -3;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
  z-index: -2;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.65;
  z-index: -1;
  animation: drift 12s ease-in-out infinite;
}

.orb-a {
  width: 260px;
  height: 260px;
  left: -70px;
  top: 120px;
  background: rgba(255, 107, 53, 0.28);
}

.orb-b {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 300px;
  background: rgba(47, 124, 246, 0.2);
  animation-delay: -4s;
}

.topbar,
.hero,
.belt,
.section,
.footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid var(--shadow);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #ff9f1c);
  color: #fffdf6;
  font-family: "Press Start 2P", monospace;
  font-size: 0.78rem;
  box-shadow: 6px 6px 0 var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 1.55rem;
  line-height: 1;
}

.brand-text small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.topnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topnav a {
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: stretch;
  padding: 36px 0 24px;
}

.hero-copy,
.hero-panel,
.featured-card,
.project-card,
.process-card,
.about-card,
.footer {
  position: relative;
  border: 3px solid var(--shadow);
  box-shadow: 10px 10px 0 var(--shadow);
}

.hero-copy,
.hero-panel {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.92), rgba(255, 249, 232, 0.95));
}

.hero-copy {
  padding: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-badges span,
.project-tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid rgba(19, 34, 56, 0.16);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font-family: "Press Start 2P", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero h1,
.section h2,
.featured-title,
.process-card h3,
.about-card h3 {
  margin: 0;
  font-family: "ZCOOL KuaiLe", cursive;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.05;
}

.hero-text,
.section-copy,
.featured-copy,
.project-copy,
.process-card p,
.about-card p,
.about-card li,
.panel-note li,
.footer p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-text {
  max-width: 36rem;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  border: 3px solid var(--shadow);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #ff9f1c);
  color: #fffdf7;
  box-shadow: 6px 6px 0 #a63f1b;
}

.button-secondary {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: 6px 6px 0 #9bbcff;
}

.hero-panel {
  padding: 28px;
}

.panel-sticker {
  position: absolute;
  top: -14px;
  right: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #111f35;
  color: #fff6dc;
  font-family: "Press Start 2P", monospace;
  font-size: 0.74rem;
  transform: rotate(4deg);
}

.hero-panel h2 {
  margin: 12px 0 18px;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-grid article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--line);
}

.stat-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
}

.panel-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 225, 125, 0.34), rgba(255, 255, 255, 0.72));
}

.panel-note p {
  margin: 0 0 8px;
  font-weight: 800;
}

.panel-note ul {
  margin: 0;
  padding-left: 18px;
}

.belt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 10px;
}

.belt p {
  margin: 0;
  padding: 18px 20px;
  border: 3px solid var(--shadow);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 233, 0.95));
  box-shadow: 8px 8px 0 var(--shadow);
  font-weight: 800;
}

.section {
  padding: 54px 0 0;
}

.section-alt {
  padding-top: 68px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-copy {
  max-width: 34rem;
  margin: 0;
}

.featured-wrap {
  margin-bottom: 24px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(47, 124, 246, 0.12), rgba(255, 107, 53, 0.12) 58%, rgba(255, 255, 255, 0.9));
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.featured-title {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.08;
}

.featured-copy {
  margin: 14px 0 0;
  font-size: 1.02rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.88);
}

.featured-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.featured-preview {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 31, 53, 0.95), rgba(47, 124, 246, 0.85));
  color: #f7f2df;
  overflow: hidden;
}

.featured-preview img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 2px solid rgba(255, 248, 216, 0.45);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.featured-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-follow {
  width: 100%;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  word-break: break-all;
}

.featured-follow a {
  color: var(--secondary);
  font-weight: 700;
}

.featured-follow a:hover,
.featured-follow a:focus-visible {
  text-decoration: underline;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 20px;
}

.filter-button {
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--secondary);
}

.filter-button.active {
  background: linear-gradient(135deg, rgba(47, 124, 246, 0.18), rgba(255, 107, 53, 0.18));
  border-color: var(--shadow);
}

.project-grid,
.process-grid,
.about-layout {
  display: grid;
  gap: 20px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 240, 0.98));
}

.project-card[data-status="live"] {
  background: linear-gradient(180deg, rgba(255, 230, 173, 0.6), rgba(255, 255, 255, 0.96));
}

.project-status {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 181, 115, 0.14);
  color: #127347;
  font-size: 0.9rem;
  font-weight: 800;
}

.project-status.pending {
  background: rgba(47, 124, 246, 0.12);
  color: var(--secondary);
}

.project-card h3 {
  margin: 16px 0 12px;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 1.7rem;
}

.project-copy {
  margin: 0;
}

.project-foot {
  margin-top: auto;
  padding-top: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 3px solid var(--shadow);
  background: #fffefa;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
  background: #f5f9ff;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card,
.about-card {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 239, 0.98));
}

.process-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--secondary);
  font-family: "Press Start 2P", monospace;
  font-size: 0.9rem;
}

.process-card h3 {
  font-size: 1.8rem;
}

.about-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notebook::before,
.toolbox::before,
.mission::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 22px;
  width: 92px;
  height: 24px;
  border-radius: 999px;
  transform: rotate(-5deg);
}

.notebook::before {
  background: rgba(255, 107, 53, 0.24);
}

.toolbox::before {
  background: rgba(47, 124, 246, 0.22);
}

.mission::before {
  background: rgba(34, 181, 115, 0.24);
}

.about-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skill-cloud span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 225, 125, 0.44);
  border: 2px solid rgba(19, 34, 56, 0.12);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  margin-bottom: 36px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 240, 0.98));
}

.footer strong {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 1.6rem;
}

.footer p {
  margin: 8px 0 0;
}

.icp-link {
  flex-shrink: 0;
  padding: 14px 18px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.04);
  }
}

@keyframes hop {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-18px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .hero,
  .featured-card,
  .project-grid,
  .process-grid,
  .about-layout,
  .belt,
  .section-head,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero,
  .featured-card {
    display: grid;
  }

  .topbar,
  .footer,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-grid,
  .process-grid,
  .about-layout {
    display: grid;
  }

  .project-grid,
  .process-grid,
  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .belt,
  .section,
  .footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero-copy,
  .hero-panel,
  .featured-card,
  .project-card,
  .process-card,
  .about-card,
  .footer {
    box-shadow: 6px 6px 0 var(--shadow);
  }

  .hero-copy,
  .hero-panel,
  .featured-card,
  .project-card,
  .process-card,
  .about-card,
  .footer {
    padding: 20px;
  }

  .brand-text strong {
    font-size: 1.28rem;
  }

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

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.7;
  }

  .stat-grid,
  .project-grid,
  .process-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

  .button,
  .project-link {
    width: 100%;
  }
}
