:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-elevated: #0f151d;
  --surface: #131922;
  --surface-strong: #19232f;
  --surface-soft: #0c1118;
  --line: rgba(144, 247, 255, 0.22);
  --line-strong: rgba(144, 247, 255, 0.38);
  --text: #f5f8fc;
  --text-soft: #a9b5c3;
  --text-muted: #718092;
  --cyan: #4de7ff;
  --cyan-bright: #90f7ff;
  --green: #9dff57;
  --amber: #ffcc66;
  --red: #ff5c7a;
  --blue: #82aaff;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1240px;
  --header-height: 72px;
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(77, 231, 255, 0.12), transparent 31%),
    radial-gradient(circle at 86% 18%, rgba(255, 204, 102, 0.08), transparent 27%),
    linear-gradient(135deg, #080b10 0%, var(--bg) 52%, #080c12 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(144, 247, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 247, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0, transparent 78%);
}

body.is-modal-open {
  overflow: hidden;
}

body.is-modal-open .page-main {
  z-index: 100;
}

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

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #06100f;
  background: var(--cyan-bright);
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 8px 13px;
  color: #04100d;
  background: var(--cyan-bright);
  border-radius: 4px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.site-container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.page-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height));
}

#network-canvas,
.ambient-canvas,
[data-particle-canvas] {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.42;
}

.site-header {
  position: relative;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(144, 247, 255, 0.12);
  background: rgba(10, 13, 18, 0.48);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 28px;
}

.brand,
.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.brand__mark,
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.62);
  border-radius: 6px;
  background: #0c2625;
  box-shadow: inset 0 0 0 5px rgba(45, 212, 191, 0.07), 0 0 18px rgba(45, 212, 191, 0.12);
}

.brand__mark::before,
.brand-mark::before {
  position: absolute;
  inset: 8px 6px;
  content: "";
  border: solid var(--cyan-bright);
  border-width: 2px 0;
  transform: skewX(-15deg);
}

.brand__image,
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-mark .brand-logo {
  width: 100%;
  height: 100%;
}

.brand-mark:has(.brand-logo)::before {
  display: none;
}

.brand__text,
.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--text-soft);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(77, 231, 255, 0.08);
}

.hero,
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  min-height: 56vh;
  align-items: center;
  gap: 72px;
  padding-block: 64px 70px;
}

.hero__content {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  width: 18px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.home-hero h1,
.hero__title {
  max-width: 690px;
  margin-bottom: 20px;
  color: #f4f8f6;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero__lead,
.hero__description {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero__actions,
.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn,
.button,
button.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: none;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:hover,
.button:hover {
  border-color: #587080;
  background: #1d2b36;
}

.btn:active,
.button:active {
  transform: translateY(1px);
}

.btn--primary,
.button-primary {
  color: #04110e;
  border-color: transparent;
  background: linear-gradient(105deg, var(--cyan) 0%, var(--green) 100%);
  box-shadow: 0 8px 30px rgba(77, 231, 255, 0.16);
}

.btn--primary:hover,
.button-primary:hover {
  color: #020b09;
  border-color: transparent;
  background: linear-gradient(105deg, var(--cyan-bright) 0%, #b9ff7f 100%);
  box-shadow: 0 10px 34px rgba(77, 231, 255, 0.24);
  transform: translateY(-1px);
}

.btn--ghost,
.button-ghost {
  background: transparent;
}

.btn--danger,
.button-danger {
  color: #ffdede;
  border-color: rgba(240, 106, 106, 0.46);
  background: rgba(240, 106, 106, 0.1);
}

.btn--wide {
  width: 100%;
}

.btn svg,
.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface);
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.hero-console {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(144, 247, 255, 0.3);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(77, 231, 255, 0.06), transparent 42%),
    rgba(15, 21, 29, 0.92);
  box-shadow:
    inset 0 0 42px rgba(77, 231, 255, 0.025),
    0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.hero-console::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    rgba(144, 247, 255, 0.025) 6px
  );
}

.hero-console::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 16px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(77, 231, 255, 0.12), transparent);
  transform: translateX(-50%);
  opacity: 0.72;
}

.hero-console__inner {
  position: relative;
  z-index: 1;
}

.hero-console__header {
  position: relative;
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 204, 102, 0.36);
  border-radius: 6px;
  color: #b5c0cc;
  background: rgba(24, 40, 50, 0.56);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 4px;
  color: #f5f8fc;
  background: rgba(45, 76, 57, 0.62);
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
}

.live-indicator i {
  display: none;
}

.telemetry-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 0;
}

.telemetry-stat {
  min-width: 0;
  min-height: 151px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(144, 247, 255, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(77, 231, 255, 0.03), transparent 54%),
    rgba(8, 13, 19, 0.58);
  box-shadow: inset 0 0 28px rgba(77, 231, 255, 0.022);
}

.telemetry-stat--wide {
  grid-column: 1 / -1;
  min-height: 151px;
}

.telemetry-stat dt {
  color: #c4ced8;
  font-size: 20px;
  font-weight: 700;
}

.telemetry-stat dd {
  align-self: flex-end;
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-shadow: 0 0 28px rgba(144, 247, 255, 0.22);
}

@keyframes live-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

.stats-band,
.project-stats {
  border-block: 1px solid var(--line);
  background: rgba(12, 18, 25, 0.72);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
  min-width: 0;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item__value,
.stat-value {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stat-item__label,
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.section,
.projects-section {
  padding-block: 78px 96px;
}

.section--compact {
  padding-block: 44px;
}

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

.section-heading__copy {
  max-width: 720px;
}

.section-heading .section-kicker {
  margin-bottom: 12px;
}

.section-heading h2,
.section-title {
  margin-bottom: 8px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.section-description {
  margin-bottom: 0;
  color: var(--text-soft);
}

.section-heading__description {
  max-width: 520px;
  margin: 0 0 6px;
  color: var(--text-soft);
}

.project-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-bar,
.project-filters,
.segmented-control {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12, 17, 24, 0.82);
  box-shadow: inset 0 0 22px rgba(77, 231, 255, 0.03);
  backdrop-filter: blur(10px);
}

.filter-button,
[data-project-filter],
.segmented-control button {
  min-height: 36px;
  min-width: 92px;
  padding: 7px 16px;
  white-space: nowrap;
  border: 0;
  border-radius: 4px;
  color: var(--text-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.filter-button:hover,
[data-project-filter]:hover,
.segmented-control button:hover {
  color: var(--text);
  background: rgba(77, 231, 255, 0.08);
}

.filter-button.is-active,
[data-project-filter].is-active,
[data-project-filter][aria-pressed="true"],
.segmented-control button[aria-selected="true"] {
  color: #07100e;
  background: linear-gradient(105deg, var(--cyan), var(--green));
  box-shadow: 0 5px 20px rgba(77, 231, 255, 0.14);
}

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

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(77, 231, 255, 0.045), transparent 42%),
    rgba(19, 25, 34, 0.88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  border-color: rgba(144, 247, 255, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card__media,
.project-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #152029;
}

.project-card__media::after,
.project-cover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  box-shadow: 0 0 14px rgba(77, 231, 255, 0.28);
}

.project-card__media img,
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-card:hover .project-card__media img,
.project-card:hover .project-cover img {
  transform: scale(1.025);
}

.project-card__placeholder,
.cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #a7c1c9;
  background:
    radial-gradient(circle at 18% 22%, rgba(77, 231, 255, 0.17), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(255, 204, 102, 0.1), transparent 28%),
    linear-gradient(135deg, #111923, #151d27);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.project-card__body {
  display: flex;
  min-height: 252px;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.project-card__meta,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.project-meta > :last-child,
.project-card__meta > :last-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-badge,
.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(12, 18, 25, 0.84);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge::before,
.badge--status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-badge--active,
.status-badge--ongoing,
.badge--active,
[data-status="active"] .status-badge,
[data-status="ongoing"] .status-badge {
  color: var(--green);
  border-color: rgba(116, 214, 128, 0.34);
}

.status-badge--completed,
.badge--completed,
[data-status="completed"] .status-badge {
  color: var(--blue);
  border-color: rgba(101, 167, 232, 0.36);
}

.status-badge--draft,
.badge--draft,
[data-status="draft"] .status-badge {
  color: var(--amber);
  border-color: rgba(243, 186, 75, 0.36);
}

.project-card__date,
.project-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.project-card__title {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-card__title a::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.project-card__summary {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 21px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.funding-progress,
.progress-block {
  margin-top: auto;
}

.progress-track,
.progress {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: #26313a;
}

.progress-bar,
.progress__bar {
  display: block;
  width: var(--progress, 0%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(77, 231, 255, 0.42);
}

.project-card[data-status="completed"] .progress-bar,
.project-card[data-status="completed"] .progress__bar,
.progress-bar--completed {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(101, 167, 232, 0.35);
}

.progress-meta,
.funding-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.progress-meta strong,
.funding-meta strong,
.amount {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.project-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  color: var(--text-muted);
  font-size: 12px;
}

.empty-state {
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  background:
    linear-gradient(135deg, rgba(77, 231, 255, 0.045), transparent 44%),
    rgba(15, 21, 29, 0.7);
  text-align: center;
  backdrop-filter: blur(10px);
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 20px;
}

.page-banner,
.detail-header {
  padding-block: 58px 34px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--cyan-bright);
}

.detail-title {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.detail-lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.detail-layout,
.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 74px;
}

.detail-content,
.project-content {
  min-width: 0;
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: rgba(19, 25, 34, 0.86);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose,
.project-description {
  color: #cad4d4;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.prose h2,
.prose h3,
.project-description h2,
.project-description h3 {
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  color: var(--text);
  line-height: 1.35;
}

.prose h2,
.project-description h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 23px;
}

.prose a,
.project-description a {
  color: var(--cyan-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img,
.project-description img {
  margin-block: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 22px);
}

.funding-panel,
.support-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(77, 231, 255, 0.045), transparent 42%),
    rgba(19, 25, 34, 0.88);
  backdrop-filter: blur(14px);
}

.funding-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.funding-panel__amount {
  margin-top: 18px;
  margin-bottom: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.funding-panel__amount > span,
.funding-panel__amount > strong {
  display: block;
}

.funding-panel__amount > span {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 650;
}

.funding-panel__goal {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.funding-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 21px;
  padding-block: 17px;
  border-block: 1px solid var(--line);
}

.funding-panel__stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
}

.funding-panel__stats span {
  color: var(--text-muted);
  font-size: 12px;
}

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.share-row > * {
  flex: 1;
}

.notice,
.alert,
.flash-message {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 13px;
}

.notice--warning,
.alert--warning {
  color: #f8d894;
  border-color: rgba(243, 186, 75, 0.38);
  background: rgba(243, 186, 75, 0.08);
}

.alert--success,
.flash-message--success {
  color: #baf0c1;
  border-color: rgba(116, 214, 128, 0.4);
  background: rgba(116, 214, 128, 0.08);
}

.alert--error,
.flash-message--error,
.field-error {
  color: #ffc0c0;
  border-color: rgba(240, 106, 106, 0.42);
  background: rgba(240, 106, 106, 0.08);
}

.supporters-section {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.supporters-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.supporter-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(92px, auto);
  gap: 18px;
  align-items: center;
  padding: 15px 17px;
  background: rgba(19, 25, 34, 0.92);
}

.supporter-item__name {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.supporter-item__note {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.supporter-item__method,
.supporter-item__date {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.supporter-item__amount {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 740;
  text-align: right;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 31px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(8, 11, 16, 0.84);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.modal,
[data-modal] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open,
[data-modal].is-open,
[data-modal][aria-hidden="false"] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(9px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  max-height: min(86vh, 760px);
  overflow: hidden auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 5px, rgba(144, 247, 255, 0.018) 6px),
    linear-gradient(145deg, rgba(77, 231, 255, 0.055), transparent 38%),
    #131922;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.68), 0 0 40px rgba(77, 231, 255, 0.06);
}

.modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 25, 34, 0.96);
}

.modal__header h2,
.modal__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.modal__body {
  padding: 22px;
}

.modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #131922;
}

.submission-success-modal .modal__dialog {
  width: min(100%, 460px);
}

.submission-success__body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.step-indicator,
.modal-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 24px;
}

.step-indicator__item,
.modal-step-label {
  position: relative;
  padding-top: 10px;
  border-top: 2px solid var(--line-strong);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.step-indicator__item.is-active,
.step-indicator__item.is-complete,
.modal-step-label.is-active {
  color: var(--text);
  border-color: var(--cyan);
  text-shadow: 0 0 16px rgba(77, 231, 255, 0.24);
}

.disclaimer,
.terms-box {
  max-height: 250px;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: rgba(8, 13, 19, 0.78);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

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

.project-description {
  padding: clamp(20px, 3vw, 34px);
  white-space: normal;
}

.project-description > h2:first-of-type {
  margin-top: 0;
}

.project-description > div {
  color: #cad4d4;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.project-content > .flash-message,
.projects-section > .flash-message {
  margin-bottom: 18px;
}

.form-field,
.field-group {
  min-width: 0;
}

.form-field--full,
.field-group--full {
  grid-column: 1 / -1;
}

.form-label,
.form-field > label,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: #d8e1df;
  font-size: 13px;
  font-weight: 700;
}

.required {
  color: var(--red);
}

.form-control,
.form-input,
.form-select,
.form-textarea,
.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  color: var(--text);
  background: #0a1117;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-textarea,
.form-field textarea {
  min-height: 108px;
  resize: vertical;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.11);
}

.form-control::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: #566871;
}

.field-hint,
.form-help {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.field-error {
  margin-top: 6px;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 12px;
}

.check-row,
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 13px;
}

.check-row input,
.checkbox-label input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--cyan);
}

.terms-box + .checkbox-label {
  margin-top: 16px;
}

.anonymous-field {
  align-self: end;
  min-height: 43px;
  align-items: center;
  margin: 0;
  padding: 9px 0;
}

.anonymous-field input {
  margin-top: 0;
}

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

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

.payment-option,
.choice-card {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface-soft);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.payment-option {
  min-height: 60px;
  padding: 12px;
}

.payment-option > span {
  min-width: 0;
}

.payment-option:hover,
.choice-card:hover,
.payment-option.is-selected,
.choice-card.is-selected,
.payment-option:has(input:checked),
.choice-card:has(input:checked) {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(45, 212, 191, 0.07);
}

.payment-option input,
.choice-card input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--cyan);
}

.payment-option__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.payment-option.is-selected .payment-option__name,
.payment-option:has(input:checked) .payment-option__name {
  color: var(--cyan);
}

.payment-option__status {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 6px 0 0;
}

.qr-panel img {
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 0;
  background: #fff;
  object-fit: contain;
}

.qr-panel p {
  align-self: stretch;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.upload-field,
.file-drop {
  position: relative;
  min-height: 116px;
  padding: 18px;
  border: 1px dashed #45606c;
  border-radius: 6px;
  color: var(--text-muted);
  background: rgba(8, 14, 20, 0.64);
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.upload-field:hover,
.file-drop:hover,
.file-drop.is-dragging {
  border-color: var(--cyan);
  background: rgba(45, 212, 191, 0.05);
}

.upload-field input[type="file"],
.file-drop input[type="file"] {
  max-width: 100%;
}

.payment-result-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.payment-result {
  width: min(100%, 620px);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.payment-result h1 {
  margin: 10px 0 12px;
  font-size: 32px;
}

.payment-result p {
  color: var(--text-soft);
}

.payment-result dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 18px;
  margin: 24px 0;
}

.payment-result dt {
  color: var(--text-muted);
}

.payment-result dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-result form {
  margin-top: 24px;
}

.upload-preview,
[data-upload-preview] {
  display: none;
  max-height: 180px;
  margin: 13px auto 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  object-fit: contain;
}

.upload-preview.has-image,
[data-upload-preview].has-image {
  display: block;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--cyan);
  border-radius: 5px;
  color: var(--text);
  background: #111a22;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in 180ms ease both;
}

.toast--error {
  border-left-color: var(--red);
}

.toast.is-leaving {
  animation: toast-out 170ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 980px) {
  .site-container {
    width: min(calc(100% - 44px), var(--container));
  }

  .site-header {
    display: none;
  }

  .hero,
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 45px;
    padding-block: 44px 18px;
  }

  .hero__content {
    max-width: 780px;
  }

  .hero h1,
  .home-hero h1,
  .hero__title {
    max-width: 780px;
    margin-bottom: 32px;
    font-size: 60px;
    line-height: 1.08;
  }

  .hero__lead,
  .hero__description {
    font-size: 20px;
  }

  .hero-console {
    width: min(100%, 775px);
  }

  .hero__actions .button {
    min-height: 56px;
    padding: 13px 22px;
    font-size: 18px;
  }

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

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

  .detail-sidebar {
    position: static;
    max-width: 560px;
  }

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

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stat-item:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .container,
  .site-container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header__inner,
  .header-inner {
    min-height: var(--header-height);
    gap: 12px;
  }

  .brand__mark,
  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand__text,
  .brand-name {
    max-width: 54vw;
    font-size: 14px;
  }

  .site-nav a:not([aria-current="page"]) {
    display: none;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .hero,
  .home-hero {
    min-height: auto;
    gap: 34px;
    padding-block: 34px 14px;
  }

  .hero h1,
  .home-hero h1,
  .hero__title {
    margin-bottom: 20px;
    font-size: 35px;
    line-height: 1.16;
  }

  .hero__lead,
  .hero__description {
    font-size: 15px;
  }

  .hero-console {
    min-height: 0;
    width: 100%;
    padding: 14px;
  }

  .hero-console__header {
    min-height: 78px;
    padding-inline: 14px;
    font-size: 15px;
  }

  .live-indicator {
    font-size: 22px;
  }

  .telemetry-stat {
    min-height: 118px;
    padding: 16px;
  }

  .telemetry-stat dt {
    font-size: 16px;
  }

  .telemetry-stat dd {
    font-size: 46px;
  }

  .stats-grid,
  .project-grid,
  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .section,
  .projects-section {
    padding-block: 20px 50px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading h2,
  .section-title {
    font-size: 30px;
  }

  .section-heading__description {
    margin-top: 13px;
  }

  .project-filter-bar {
    margin-bottom: 34px;
  }

  .filter-bar,
  .project-filters,
  .segmented-control {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0;
    overflow: visible;
  }

  .filter-button,
  [data-project-filter],
  .segmented-control button {
    width: 100%;
  }

  .project-card__body {
    min-height: 238px;
    padding: 17px;
  }

  .page-banner,
  .detail-header {
    padding-block: 38px 26px;
  }

  .detail-title {
    font-size: 36px;
  }

  .funding-panel__amount {
    font-size: 32px;
  }

  .detail-layout,
  .project-detail {
    gap: 25px;
    padding-bottom: 52px;
  }

  .project-detail > .project-content {
    display: contents;
  }

  .project-detail .detail-cover {
    order: 1;
    margin-bottom: 0;
  }

  .project-detail .project-content > .flash-message {
    order: 2;
  }

  .project-detail > .detail-sidebar {
    order: 3;
    max-width: none;
  }

  .project-detail .project-description {
    order: 4;
  }

  .funding-panel {
    padding: 19px;
  }

  .supporter-item {
    grid-template-columns: 1fr auto;
    gap: 5px 14px;
  }

  .supporter-item__method,
  .supporter-item__date {
    grid-column: 1;
  }

  .supporter-item__amount {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .site-footer__inner {
    display: block;
  }

  .site-footer__inner > * + * {
    margin-top: 6px;
  }

  .modal,
  [data-modal] {
    align-items: flex-end;
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    max-height: calc(100svh - 18px);
    border-width: 1px 0 0;
    border-radius: 8px 8px 0 0;
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding-inline: 16px;
  }

  .modal__footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .modal__footer > * {
    flex: 1;
  }

  .submission-success-modal {
    align-items: center;
    padding: 20px;
  }

  .submission-success-modal .modal__dialog {
    width: min(100%, 440px);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
  }

  .submission-success-modal .modal__footer > * {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .form-actions > * {
    flex: 1 1 auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .project-card:hover,
  .project-card:hover .project-card__media img,
  .project-card:hover .project-cover img {
    transform: none;
  }
}

@media print {
  #network-canvas,
  .ambient-canvas,
  .site-header,
  .site-footer,
  .hero__actions,
  .share-row,
  .modal,
  .toast-region {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

  .detail-layout,
  .project-detail {
    display: block;
  }
}
