:root {
  --black: #050505;
  --ink: #11100e;
  --graphite: #1e1e1e;
  --muted: #6f6a62;
  --paper: #f5f1e8;
  --paper-deep: #e8ded0;
  --white: #ffffff;
  --orange: #ff5722;
  --blue: #32d7ff;
  --green: #b8ff5a;
  --line: rgba(255, 255, 255, 0.16);
  --dark-line: rgba(5, 5, 5, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(5, 5, 5, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--black);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 15px;
  font-weight: 650;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font: 11px/1 var(--mono);
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.desktop-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 210px;
}

.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
}

.ghost-button,
.solid-button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.solid-button,
.primary-cta {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
}

.primary-cta:hover,
.secondary-cta:hover,
.solid-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-cta {
  min-height: 50px;
  padding: 0 22px;
  background: var(--green);
  border-color: var(--green);
}

.primary-cta.compact {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
}

.secondary-cta {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.secondary-cta.dark {
  color: var(--ink);
  border-color: var(--dark-line);
}

.menu-button {
  display: none;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.mobile-panel {
  position: fixed;
  top: 82px;
  left: 16px;
  right: 16px;
  z-index: 25;
  display: none;
  padding: 18px;
  color: var(--white);
  background: rgba(5, 5, 5, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-panel a.active {
  color: var(--green);
  background: rgba(184, 255, 90, 0.08);
}

.mobile-panel a:last-child {
  border-bottom: 0;
}

.mobile-panel.open {
  display: block;
}

.section-dark {
  color: var(--white);
  background: var(--black);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 124px clamp(18px, 5vw, 72px) 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(50, 215, 255, 0.18), transparent 25%),
    radial-gradient(circle at 22% 72%, rgba(255, 87, 34, 0.11), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 92px 92px, 92px 92px;
  opacity: 0.85;
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 7vw, 100px);
  max-width: 1320px;
  min-height: calc(100vh - 188px);
  margin: 0 auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font: 700 clamp(48px, 6.8vw, 98px) / 1.02 var(--serif);
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.9;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 1px;
  max-width: 680px;
  margin: 58px 0 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-stats div {
  padding: 18px;
  background: rgba(5, 5, 5, 0.72);
}

.hero-stats dt {
  font: 700 27px/1 var(--mono);
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

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

.hero-mark img {
  position: relative;
  z-index: 4;
  width: min(74vw, 360px);
  height: min(74vw, 360px);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 90px rgba(255, 255, 255, 0.08);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-one {
  width: 480px;
  height: 240px;
  animation: orbitDrift 12s linear infinite;
}

.orbit-two {
  width: 360px;
  height: 580px;
  border-color: rgba(50, 215, 255, 0.22);
  animation: orbitDrift 16s linear infinite reverse;
}

.intro-strip {
  display: grid;
  grid-template-columns: 0.72fr 1.6fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--green);
}

.intro-strip p {
  margin: 0;
  font: 13px/1 var(--mono);
}

.intro-strip strong {
  font: 600 clamp(18px, 2.3vw, 31px) / 1.25 var(--serif);
}

.intro-strip a {
  padding: 12px 15px;
  color: var(--white);
  background: var(--black);
  border-radius: 6px;
  font-size: 14px;
}

.section {
  padding: clamp(76px, 10vw, 136px) clamp(18px, 5vw, 72px);
}

.paper-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 28%, rgba(255, 87, 34, 0.12), transparent 26%),
    linear-gradient(rgba(5, 5, 5, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 86px 86px, 86px 86px, auto;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 46px;
}

.section-number {
  display: block;
  margin-bottom: 15px;
  color: var(--orange);
  font: 700 13px/1 var(--mono);
}

.section-heading h2,
.board-top h2,
.panel-heading h2,
.join-copy h2 {
  margin: 0;
  font: 700 clamp(35px, 5vw, 72px) / 1.05 var(--serif);
}

.section-heading p,
.board-top p,
.join-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--dark-line);
}

.meaning-grid article {
  min-height: 300px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(245, 241, 232, 0.88);
}

.meaning-grid span {
  display: block;
  margin-bottom: 52px;
  font: 700 96px/0.8 var(--serif);
}

.meaning-grid h3 {
  margin: 0;
  font: 700 24px/1.2 var(--serif);
}

.meaning-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.flow-section {
  color: var(--white);
  background: var(--black);
}

.flow-section .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.16);
}

.flow-line article {
  position: relative;
  min-height: 330px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    var(--black);
}

.flow-line article::after {
  content: "";
  position: absolute;
  top: 32px;
  right: 32px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 28px var(--green);
}

.flow-line small {
  color: var(--blue);
  font: 13px/1 var(--mono);
}

.flow-line h3 {
  margin: 110px 0 0;
  font: 700 26px/1.18 var(--serif);
}

.flow-line p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

.board-section {
  background:
    radial-gradient(circle at 78% 12%, rgba(50, 215, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--black), #10100f);
}

.board-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 3.3vw, 42px);
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #111;
  background-size: 56px 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.board-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.board-top p {
  color: rgba(255, 255, 255, 0.62);
}

.board-controls {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 16px;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button,
.tag-cloud span,
.demand-tags span,
.status {
  min-height: 34px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 13px;
}

.filter-tabs button.active {
  color: var(--black);
  background: var(--green);
  border-color: var(--green);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.search-box input {
  width: 100%;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.demand-feed {
  display: grid;
  gap: 12px;
}

.demand-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.demand-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 90, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.vote-box {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  color: rgba(255, 255, 255, 0.66);
  font: 700 13px/1 var(--mono);
}

.vote-box button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.vote-box button.liked {
  color: var(--black);
  background: var(--green);
}

.vote-box svg {
  width: 17px;
  height: 17px;
}

.demand-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.demand-card p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.demand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.demand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.demand-tags span {
  min-height: auto;
  color: var(--green);
  background: rgba(184, 255, 90, 0.08);
  border-color: rgba(184, 255, 90, 0.18);
}

.board-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.board-sidebar section {
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.board-sidebar h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.board-sidebar ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

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

.notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.project-section {
  background: var(--paper);
}

.project-rail {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-rows: 230px auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
}

.project-card.large {
  grid-row: span 2;
  grid-template-rows: 430px auto;
}

.project-card > div:last-child {
  padding: 22px;
}

.project-card small {
  color: var(--orange);
  font: 700 12px/1 var(--mono);
}

.project-card h3 {
  margin: 12px 0 0;
  font: 700 24px/1.22 var(--serif);
}

.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.project-card footer span {
  padding: 7px 9px;
  background: var(--paper);
  border: 1px solid var(--dark-line);
  border-radius: 5px;
  font-size: 12px;
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
}

.project-visual span {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font: 700 14px/1 var(--mono);
}

.black-visual {
  color: var(--white);
  background: var(--black);
}

.light-visual {
  color: var(--ink);
  background:
    linear-gradient(rgba(5, 5, 5, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.08) 1px, transparent 1px),
    var(--paper-deep);
  background-size: 34px 34px;
}

.network-visual {
  color: var(--white);
  background: #151515;
}

.mini-dashboard {
  width: 76%;
  height: 62%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(184, 255, 90, 0.28) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 22px);
  box-shadow: 20px 20px 0 rgba(50, 215, 255, 0.16);
}

.lab-object {
  width: 190px;
  height: 190px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, var(--orange) 0 8px, transparent 9px),
    repeating-linear-gradient(120deg, transparent 0 13px, rgba(5, 5, 5, 0.16) 13px 15px);
}

.node-graph {
  width: 76%;
  height: 62%;
  background:
    radial-gradient(circle at 20% 25%, var(--green) 0 6px, transparent 7px),
    radial-gradient(circle at 76% 32%, var(--blue) 0 6px, transparent 7px),
    radial-gradient(circle at 48% 72%, var(--orange) 0 6px, transparent 7px),
    linear-gradient(28deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, transparent 50%),
    linear-gradient(-28deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, transparent 50%);
}

.content-events {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  background: var(--black);
}

.posts-panel,
.events-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  font-size: clamp(31px, 4vw, 54px);
}

.panel-heading a {
  color: var(--green);
  font-size: 14px;
}

.post-list,
.event-list {
  display: grid;
  gap: 12px;
}

.post-list article {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.post-list article:hover,
.post-list article:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 90, 0.42);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.post-list img {
  width: 88px;
  height: 70px;
  object-fit: cover;
}

.post-list h3,
.event-list h3 {
  margin: 0;
  font-size: 18px;
}

.post-list p,
.event-list p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  font-size: 14px;
}

.post-list article > span {
  padding: 7px 9px;
  color: var(--black);
  background: var(--paper);
  border-radius: 5px;
  font-size: 12px;
}

.event-list article {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.event-list article:hover,
.event-list article:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 90, 0.42);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.event-list time {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--ink);
  background: var(--green);
  border-radius: 6px;
  font-family: var(--mono);
}

.event-list time strong,
.event-list time span {
  display: block;
  line-height: 1;
}

.status.open {
  color: var(--black);
  background: var(--green);
  border-color: var(--green);
}

.status.soon {
  color: var(--white);
  background: rgba(50, 215, 255, 0.12);
  border-color: rgba(50, 215, 255, 0.22);
}

.join-section {
  background:
    radial-gradient(circle at 78% 22%, rgba(50, 215, 255, 0.14), transparent 23%),
    var(--paper);
}

.join-copy {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.join-copy p {
  margin-left: auto;
  margin-right: auto;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--dark-line);
}

.join-grid article {
  min-height: 270px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.join-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  color: var(--white);
  background: var(--black);
  border-radius: 7px;
}

.join-grid h3 {
  margin: 0;
  font: 700 22px/1.2 var(--serif);
}

.join-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.join-grid a {
  display: inline-block;
  margin-top: 22px;
  color: var(--orange);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 36px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.7);
  background: var(--black);
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 0;
  background: transparent;
}

dialog.post-modal,
dialog.event-modal {
  width: min(92vw, 820px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.composer-card,
.search-card,
.post-detail-card,
.event-detail-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.composer-card h2,
.search-card h2,
.post-detail-card h2,
.event-detail-card h2 {
  margin: 0;
  font: 700 34px/1.12 var(--serif);
}

.composer-card p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: 6px;
}

.composer-card label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.composer-card input,
.composer-card select,
.composer-card textarea,
.search-card input {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  outline: none;
}

.composer-card textarea {
  resize: vertical;
}

.modal-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.quick-links {
  justify-content: flex-start;
}

.quick-links a {
  padding: 10px 12px;
  color: var(--black);
  background: var(--green);
  border-radius: 6px;
  font-size: 14px;
}

.post-detail-card,
.event-detail-card {
  max-height: min(82vh, 760px);
  overflow: auto;
}

.post-detail-meta {
  width: max-content;
  padding: 8px 10px;
  color: var(--black);
  background: var(--green);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.post-detail-summary {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.post-detail-body {
  display: grid;
  gap: 18px;
  margin-top: 4px;
}

.post-detail-body h3 {
  margin: 10px 0 0;
  font: 700 22px/1.25 var(--serif);
}

.post-detail-body p {
  margin: 0;
  color: #3f3a34;
  line-height: 1.9;
}

.post-detail-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #3f3a34;
  line-height: 1.8;
}

.post-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
}

.post-detail-footer span {
  color: var(--muted);
  font: 700 13px/1 var(--mono);
}

.event-signup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.event-signup-fields label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.event-signup-fields label:last-child {
  grid-column: 1 / -1;
}

.event-signup-fields input,
.event-signup-fields textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  outline: none;
}

.event-signup-fields textarea {
  resize: vertical;
}

.event-success {
  margin: 0;
  padding: 14px;
  color: #244100;
  background: rgba(184, 255, 90, 0.38);
  border: 1px solid rgba(36, 65, 0, 0.18);
  border-radius: 6px;
  line-height: 1.7;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbitDrift {
  from {
    transform: rotate(-18deg);
  }
  to {
    transform: rotate(342deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1120px) {
  .desktop-nav,
  .ghost-button,
  .solid-button {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .header-actions,
  .brand {
    min-width: 0;
  }

  .hero-grid,
  .board-layout,
  .content-events {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    min-height: 380px;
  }

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

  .project-card.large {
    grid-column: 1 / -1;
  }

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

@media (max-width: 780px) {
  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .icon-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 106px 18px 42px;
  }

  .hero-grid {
    min-height: auto;
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 11vw, 56px);
    line-height: 1.06;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 36px;
  }

  .hero-mark {
    min-height: 310px;
  }

  .hero-mark img {
    width: min(70vw, 260px);
    height: min(70vw, 260px);
  }

  .orbit-one {
    width: 330px;
    height: 166px;
  }

  .orbit-two {
    width: 260px;
    height: 390px;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .meaning-grid,
  .flow-line,
  .project-rail,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .meaning-grid article,
  .flow-line article,
  .join-grid article {
    min-height: auto;
  }

  .flow-line h3 {
    margin-top: 74px;
  }

  .board-top,
  .panel-heading {
    display: grid;
  }

  .board-controls {
    grid-template-columns: 1fr;
  }

  .demand-card {
    grid-template-columns: 1fr;
  }

  .vote-box {
    display: flex;
    justify-content: flex-start;
  }

  .post-list article,
  .event-list article {
    grid-template-columns: 1fr;
  }

  .post-list article > span,
  .event-list .status {
    width: max-content;
  }

  .post-detail-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-signup-fields {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .site-footer p {
    text-align: left;
  }
}
