:root {
  color-scheme: dark;
  --bg: #030609;
  --panel: rgba(7, 14, 20, 0.74);
  --panel-strong: rgba(10, 22, 31, 0.9);
  --line: rgba(136, 255, 244, 0.18);
  --line-hot: rgba(246, 82, 255, 0.32);
  --text: #f2fbff;
  --muted: #9eb6c1;
  --cyan: #34fff3;
  --green: #9dff53;
  --pink: #ff4fd8;
  --amber: #ffd166;
  --blue: #5b8cff;
  --shadow-cyan: 0 0 28px rgba(52, 255, 243, 0.28);
  --shadow-pink: 0 0 32px rgba(255, 79, 216, 0.24);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(52, 255, 243, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(157, 255, 83, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 115%, rgba(52, 255, 243, 0.12), transparent 42%),
    #030609;
  background-size: 48px 48px, 48px 48px, auto, auto;
  line-height: 1.55;
}

body.is-leaving {
  pointer-events: none;
}

a,
button {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.neon-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, transparent, rgba(52, 255, 243, 0.1), transparent);
  background-size: 100% 6px, 240px 100%;
  mix-blend-mode: screen;
  opacity: 0.26;
  animation: scan-pan 8s linear infinite;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(1080px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 8, 12, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), var(--shadow-cyan);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(52, 255, 243, 0.52);
  border-radius: 8px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(52, 255, 243, 0.34);
  font-weight: 900;
}

.site-nav {
  display: flex;
  min-width: 0;
  gap: 6px;
}

.site-nav a,
.back-link,
.neon-button,
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.site-nav a.is-active {
  border-color: rgba(52, 255, 243, 0.5);
  color: var(--text);
  background: rgba(52, 255, 243, 0.1);
  box-shadow: inset 0 0 18px rgba(52, 255, 243, 0.14);
}

.home-shell,
.inner-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 112px 0 52px;
}

.hero-stage {
  display: grid;
  width: 100%;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(130deg, rgba(52, 255, 243, 0.12), transparent 34%),
    linear-gradient(300deg, rgba(255, 79, 216, 0.1), transparent 38%),
    rgba(5, 12, 18, 0.7);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.54),
    inset 0 0 80px rgba(52, 255, 243, 0.05);
  backdrop-filter: blur(14px);
}

.hero-copy,
.hero-console,
.page-hero,
.glass-panel,
.project-module {
  animation: page-rise 620ms ease both;
}

.hero-copy {
  min-width: 0;
}

.signal-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--green);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-label span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  animation: signal-blink 1.5s ease-in-out infinite;
}

.hero-copy h1,
.page-hero h1 {
  margin-bottom: 20px;
  font-size: 6.6rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(52, 255, 243, 0.46),
    0 0 46px rgba(255, 79, 216, 0.22);
}

.hero-copy h1 span {
  display: block;
  margin-top: 18px;
  color: var(--cyan);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 1.3rem;
  line-height: 1.35;
  text-shadow: 0 0 18px rgba(52, 255, 243, 0.38);
}

.hero-text,
.page-hero p,
.glass-panel p,
.project-content p {
  color: var(--muted);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 34px;
}

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

.neon-button,
.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(52, 255, 243, 0.42);
  border-radius: 6px;
  color: var(--text);
  background: rgba(52, 255, 243, 0.08);
  box-shadow: inset 0 0 24px rgba(52, 255, 243, 0.08);
  font-weight: 900;
}

.neon-button.primary {
  border-color: rgba(157, 255, 83, 0.7);
  color: #021008;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 30px rgba(157, 255, 83, 0.28);
}

.neon-button svg,
.back-link svg,
.contact-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero-console,
.glass-panel,
.project-module,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 0 40px rgba(52, 255, 243, 0.04);
  backdrop-filter: blur(14px);
}

.hero-console {
  min-width: 0;
  padding: 18px;
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.console-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.console-topbar span:nth-child(1) {
  background: var(--pink);
}

.console-topbar span:nth-child(2) {
  background: var(--amber);
}

.console-topbar span:nth-child(3) {
  background: var(--green);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
}

.metric-tile {
  min-width: 0;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(52, 255, 243, 0.14);
  border-radius: 8px;
  background: rgba(1, 8, 13, 0.58);
}

.metric-tile span,
.panel-tag,
.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.25;
}

.signal-panel {
  padding: 18px;
  border: 1px solid rgba(255, 79, 216, 0.22);
  border-radius: 8px;
  background: rgba(255, 79, 216, 0.06);
}

.signal-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.signal-bars {
  display: grid;
  height: 90px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.signal-bars span {
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  box-shadow: 0 0 22px rgba(52, 255, 243, 0.24);
  animation: equalize 1.8s ease-in-out infinite;
}

.signal-bars span:nth-child(1) {
  height: 48%;
}

.signal-bars span:nth-child(2) {
  height: 76%;
  animation-delay: 120ms;
}

.signal-bars span:nth-child(3) {
  height: 58%;
  animation-delay: 240ms;
}

.signal-bars span:nth-child(4) {
  height: 88%;
  animation-delay: 360ms;
}

.signal-bars span:nth-child(5) {
  height: 64%;
  animation-delay: 480ms;
}

.inner-shell {
  padding: 126px 0 70px;
}

.page-hero {
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(52, 255, 243, 0.12), transparent 42%),
    rgba(5, 12, 18, 0.72);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.page-hero.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 22px;
  align-items: start;
}

.page-hero.compact .signal-label,
.page-hero.compact h1,
.page-hero.compact p {
  grid-column: 2;
}

.back-link {
  grid-row: span 3;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: 4.4rem;
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.glass-panel {
  min-width: 0;
  padding: 26px;
}

.glass-panel h2,
.project-content h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.14;
}

.identity-card {
  min-height: 320px;
  background:
    linear-gradient(140deg, rgba(157, 255, 83, 0.13), transparent 50%),
    var(--panel-strong);
}

.identity-card h2 {
  font-size: 3.2rem;
  text-shadow: 0 0 22px rgba(157, 255, 83, 0.28);
}

.identity-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.identity-list span {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(52, 255, 243, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(52, 255, 243, 0.05);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-cloud span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(52, 255, 243, 0.32);
  border-radius: 999px;
  color: var(--text);
  background: rgba(52, 255, 243, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline-panel,
.highlight-panel {
  grid-column: span 2;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 18px 18px 18px 26px;
  border: 1px solid rgba(52, 255, 243, 0.14);
  border-radius: 8px;
  background: rgba(1, 8, 13, 0.48);
}

.timeline li::before {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 6px;
  height: calc(100% - 48px);
  border-radius: 999px;
  content: "";
  background: linear-gradient(var(--cyan), var(--pink));
  box-shadow: 0 0 14px rgba(52, 255, 243, 0.32);
}

.timeline time {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 6px;
}

.timeline p {
  margin-bottom: 0;
}

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

.highlight-list li {
  padding: 14px 16px;
  border: 1px solid rgba(157, 255, 83, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(157, 255, 83, 0.05);
}

.project-deck {
  display: grid;
  gap: 16px;
}

.project-module {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
}

.project-visual {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: rgba(1, 8, 13, 0.72);
}

.project-content {
  min-width: 0;
  padding: 30px;
}

.project-content p {
  margin-bottom: 22px;
}

.contact-shell {
  display: grid;
  min-height: 100vh;
  align-items: center;
}

.contact-hero {
  margin-bottom: 0;
}

.contact-hero .back-link {
  display: flex;
  width: max-content;
  margin-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.contact-card {
  display: grid;
  min-width: 0;
  min-height: 160px;
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.contact-card svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .hero-stage,
  .resume-layout,
  .project-module,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .timeline-panel,
  .highlight-panel {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 520px);
    align-items: stretch;
  }

  .site-nav {
    flex: 1;
  }

  .site-nav a {
    min-width: 0;
    flex: 1;
    padding: 0 10px;
  }

  .home-shell,
  .inner-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-stage,
  .page-hero,
  .glass-panel,
  .project-content {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 4.2rem;
  }

  .hero-copy h1 span {
    font-size: 1rem;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .hero-text,
  .page-hero p,
  .glass-panel p,
  .project-content p {
    font-size: 1rem;
  }

  .page-hero.compact {
    grid-template-columns: 1fr;
  }

  .page-hero.compact .signal-label,
  .page-hero.compact h1,
  .page-hero.compact p,
  .back-link {
    grid-column: auto;
    grid-row: auto;
  }

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

  .identity-card h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero-copy h1 {
    font-size: 3.4rem;
  }

  .hero-actions {
    display: grid;
  }

  .neon-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav a,
  .neon-button,
  .back-link,
  .contact-card,
  .project-module,
  .glass-panel {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      background 180ms ease;
  }

  .site-nav a:hover,
  .neon-button:hover,
  .back-link:hover,
  .contact-card:hover {
    border-color: rgba(157, 255, 83, 0.68);
    box-shadow: 0 0 30px rgba(157, 255, 83, 0.22);
    transform: translateY(-2px);
  }

  .project-module:hover,
  .glass-panel:hover {
    border-color: rgba(52, 255, 243, 0.38);
    transform: translateY(-2px);
  }

  body.is-leaving::after {
    position: fixed;
    inset: 0;
    z-index: 99;
    content: "";
    background:
      linear-gradient(90deg, transparent, rgba(52, 255, 243, 0.42), transparent),
      rgba(3, 6, 9, 0.76);
    animation: gate-close 420ms ease both;
  }
}

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

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signal-blink {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.84);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.62);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes scan-pan {
  from {
    background-position: 0 0, -240px 0;
  }
  to {
    background-position: 0 30px, 240px 0;
  }
}

@keyframes gate-close {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

.hero-copy h1 > [data-render="hero-name"] {
  display: block;
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-shadow:
    0 0 18px rgba(52, 255, 243, 0.46),
    0 0 46px rgba(255, 79, 216, 0.22);
}

.hero-copy h1 > small {
  display: block;
  margin-top: 18px;
  color: var(--cyan);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 1.3rem;
  line-height: 1.35;
  text-shadow: 0 0 18px rgba(52, 255, 243, 0.38);
}

.hero-tag-strip,
.profile-switch,
.project-toolbar,
.project-links,
.project-meta,
.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag-strip {
  margin: -12px 0 22px;
}

.hero-tag-strip span,
.switch-chip,
.filter-chip,
.status-badge,
.link-pill,
.project-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-tag-strip span {
  padding: 0 12px;
  border: 1px solid rgba(157, 255, 83, 0.3);
  color: var(--text);
  background: rgba(157, 255, 83, 0.07);
}

.profile-switch {
  margin-bottom: 22px;
}

.switch-chip,
.filter-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(52, 255, 243, 0.22);
  color: var(--muted);
  background: rgba(3, 8, 12, 0.58);
}

.filter-chip {
  cursor: pointer;
}

.switch-chip.is-active,
.filter-chip.is-active {
  border-color: rgba(157, 255, 83, 0.68);
  color: #021008;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 22px rgba(157, 255, 83, 0.18);
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 8, 12, 0.64);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.control-panel .profile-switch {
  margin-bottom: 0;
}

.project-topline {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-topline .panel-tag {
  margin-bottom: 0;
}

.status-badge {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(52, 255, 243, 0.26);
  color: var(--cyan);
  background: rgba(52, 255, 243, 0.08);
}

.status-badge.live {
  border-color: rgba(157, 255, 83, 0.42);
  color: var(--green);
  background: rgba(157, 255, 83, 0.08);
}

.status-badge.building {
  border-color: rgba(255, 209, 102, 0.42);
  color: var(--amber);
  background: rgba(255, 209, 102, 0.08);
}

.status-badge.case {
  border-color: rgba(255, 79, 216, 0.34);
  color: var(--pink);
  background: rgba(255, 79, 216, 0.08);
}

.project-angle {
  color: var(--text);
}

.project-meta {
  margin: 0 0 16px;
}

.project-meta span {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(242, 251, 255, 0.12);
  color: var(--muted);
  background: rgba(242, 251, 255, 0.04);
}

.project-links {
  margin-bottom: 22px;
}

.link-pill {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(52, 255, 243, 0.34);
  color: var(--text);
  background: rgba(52, 255, 243, 0.08);
}

.link-pill svg {
  width: 16px;
  height: 16px;
}

.link-pill.is-disabled {
  border-color: rgba(158, 182, 193, 0.16);
  color: rgba(158, 182, 193, 0.62);
  background: rgba(158, 182, 193, 0.05);
}

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

.detail-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(52, 255, 243, 0.14);
  border-radius: 8px;
  background: rgba(1, 8, 13, 0.44);
}

.detail-block:last-child {
  grid-column: span 2;
}

.detail-block h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.94rem;
}

.detail-block p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.skill-cloud.compact span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.mini-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.mini-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(52, 255, 243, 0.46);
}

.project-module[hidden] {
  display: none;
}

.empty-state {
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state h2 {
  margin-bottom: 10px;
}

.empty-state p {
  max-width: 620px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .switch-chip,
  .filter-chip,
  .link-pill {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      background 180ms ease;
  }

  .switch-chip:hover,
  .filter-chip:hover,
  .link-pill:not(.is-disabled):hover {
    border-color: rgba(157, 255, 83, 0.68);
    box-shadow: 0 0 24px rgba(157, 255, 83, 0.18);
    transform: translateY(-2px);
  }
}

@media (max-width: 980px) {
  .control-panel,
  .project-section-grid {
    grid-template-columns: 1fr;
  }

  .detail-block:last-child {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .hero-copy h1 > small {
    font-size: 1rem;
  }

  .control-panel {
    padding: 14px;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
