:root {
  --bg: #070a08;
  --panel: rgba(15, 20, 16, .9);
  --panel-hover: rgba(20, 27, 21, .95);
  --line: rgba(213, 255, 107, .28);
  --line-soft: rgba(255, 255, 255, .13);
  --text: #f3f5f1;
  --muted: #b4bbb3;
  --green: #b7e33d;
  --green-bright: #d9ff70;
  --content: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: url("../../assets/images/projects/project-siji.webp");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
  opacity: .52;
  filter: saturate(.72) contrast(1.08);
}

body::after {
  z-index: -1;
  background: rgba(3, 6, 4, .56);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  padding: 10px 16px;
  color: #10140d;
  background: var(--green);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hub-shell {
  width: min(calc(100% - 64px), var(--content));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 68px) 0 24px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: center;
  gap: clamp(24px, 4vh, 44px);
}

.hub-intro {
  max-width: 680px;
}

.hub-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font: 600 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .18em;
}

.hub-system-tag {
  margin: -8px 0 14px;
  color: #d8ec9d;
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
}

.hub-intro h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 440;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.hub-subtitle {
  margin: 10px 0 0;
  color: #c3c9c1;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: .12em;
}

.hub-accent,
.hub-card-accent {
  display: block;
  width: 46px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(183, 227, 61, .46);
}

.hub-accent {
  margin: 24px 0;
}

.hub-summary {
  max-width: 38em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hub-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 9px 16px;
  color: var(--green);
  background: radial-gradient(circle at 18% 50%, rgba(183, 227, 61, .17), rgba(183, 227, 61, .035) 66%, transparent 82%);
  border: 1px solid rgba(183, 227, 61, .58);
  border-radius: 7px;
  box-shadow: 0 0 22px rgba(183, 227, 61, .18), inset 0 0 14px rgba(183, 227, 61, .06);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .22s ease, color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hub-back:hover {
  color: var(--green-bright);
  background: radial-gradient(circle at 18% 50%, rgba(183, 227, 61, .28), rgba(183, 227, 61, .065) 66%, transparent 82%);
  border-color: var(--green-bright);
  box-shadow: 0 0 28px rgba(183, 227, 61, .34), inset 0 0 18px rgba(183, 227, 61, .1);
  transform: translateY(-1px);
}

.hub-grid {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 36px);
}

.hub-card {
  position: relative;
  min-width: 0;
  min-height: clamp(320px, 37vh, 390px);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 0 34px rgba(183, 227, 61, .025);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.hub-card::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 3;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(217, 255, 112, .58);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px 5px rgba(183, 227, 61, .45);
}

.hub-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  z-index: 2;
  width: clamp(22px, 2.6vw, 36px);
  border-top: 3px solid var(--green);
  box-shadow: 0 0 10px rgba(183, 227, 61, .65);
}

.hub-card:last-child::before,
.hub-card:last-child::after {
  display: none;
}

a.hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(183, 227, 61, .56);
  background: var(--panel-hover);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, .38),
    0 0 26px rgba(183, 227, 61, .09),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hub-card--disabled {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(12, 16, 13, .92);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.hub-card--disabled .hub-card-accent {
  background: #7f887e;
  box-shadow: none;
}

.hub-card--disabled .hub-entry {
  color: #c2c8c1;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .035);
}

.hub-card:focus-visible,
.hub-back:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 5px;
}

.hub-card-label {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
}

.hub-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 470;
  letter-spacing: -.035em;
  line-height: 1.22;
}

.hub-card-en {
  margin: 8px 0 20px;
  color: #aab1a9;
  font-size: 14px;
}

.hub-card-accent {
  width: 28px;
  margin-bottom: 20px;
}

.hub-card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.hub-entry {
  width: fit-content;
  min-width: 112px;
  min-height: 44px;
  margin-top: auto;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
  border: 1px solid rgba(183, 227, 61, .48);
  border-radius: 7px;
  background: rgba(183, 227, 61, .035);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .06em;
}

.hub-note {
  margin: -14px 0 0;
  color: #a8afa7;
  font-size: 12px;
}

.hub-footer {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #979f96;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 820px) {
  body::before {
    background-position: 42% top;
    opacity: .2;
  }

  body::after {
    background: rgba(3, 6, 4, .82);
  }

  .hub-shell {
    width: min(calc(100% - 36px), var(--content));
    padding: 34px 0 24px;
    align-content: start;
    gap: 28px;
  }

  .hub-intro h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hub-subtitle {
    font-size: 17px;
    letter-spacing: .07em;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hub-card {
    min-height: 284px;
    padding: 28px;
  }

  .hub-card::before,
  .hub-card::after {
    display: none;
  }

  .hub-footer {
    display: grid;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  .hub-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .hub-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
