:root {
  --ink: #151514;
  --ink-soft: #34342f;
  --paper: #f6f7f2;
  --paper-strong: #ffffff;
  --mist: #e7edf0;
  --line: rgba(21, 21, 20, 0.14);
  --dark: #10110f;
  --dark-2: #181b19;
  --cyan: #19d3c5;
  --coral: #ff6a57;
  --lime: #c8ff59;
  --violet: #7c67ff;
  --shadow: 0 24px 70px rgba(15, 18, 18, 0.16);
  --radius: 8px;
  --header-height: 78px;
  --progress: 0%;
}

* {
  box-sizing: border-box;
}
/* 彩蛋都被你找到了，你真棒 2/2 */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(4, 6, 20, 0.54), rgba(4, 6, 20, 0.54)),
    url("assets/cosmic-background.png") center / cover fixed no-repeat,
    #050817;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  min-width: 320px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: var(--progress);
  height: 3px;
  background: #071a3d;
  transform-origin: left center;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  padding: 0;
  transform: translateX(-50%);
  transition: transform 260ms ease, opacity 260ms ease;
}

.site-header.is-hidden {
  opacity: 0;
  transform: translate(-50%, calc(-100% - 24px));
  pointer-events: none;
}

.more-menu {
  position: relative;
  grid-column: 1;
  justify-self: start;
}

.more-toggle {
  display: grid;
  align-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(246, 247, 242, 0.78);
  box-shadow: 0 18px 55px rgba(16, 17, 15, 0.13);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.more-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.more-menu.is-open .more-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.more-menu.is-open .more-toggle span:nth-child(2) {
  opacity: 0;
}

.more-menu.is-open .more-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(246, 247, 242, 0.9);
  box-shadow: 0 18px 55px rgba(16, 17, 15, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.more-menu.is-open .more-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.more-dropdown a,
.donate-trigger {
  padding: 12px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(21, 21, 20, 0.76);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.more-dropdown a:hover,
.more-dropdown a:focus-visible,
.donate-trigger:hover,
.donate-trigger:focus-visible,
.donate-menu:hover > .donate-trigger,
.donate-menu:focus-within > .donate-trigger,
.donate-menu.is-submenu-open > .donate-trigger {
  background: rgba(21, 21, 20, 0.08);
  color: var(--ink);
  outline: none;
}

.donate-menu {
  position: relative;
}

.donate-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
}

.donate-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  opacity: 0.58;
}

.donate-submenu {
  position: absolute;
  top: -6px;
  left: calc(100% + 7px);
  display: grid;
  min-width: 152px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(246, 247, 242, 0.9);
  box-shadow: 0 18px 55px rgba(16, 17, 15, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(18px);
}

.donate-menu::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -8px;
  width: 8px;
  height: calc(100% + 12px);
}

.donate-menu:hover .donate-submenu,
.donate-menu:focus-within .donate-submenu,
.donate-menu.is-submenu-open .donate-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.donate-submenu a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
}

.donate-submenu small {
  color: rgba(21, 21, 20, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  grid-column: 2;
  justify-content: center;
  gap: clamp(20px, 5vw, 72px);
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(246, 247, 242, 0.78);
  box-shadow: 0 18px 55px rgba(16, 17, 15, 0.13);
  backdrop-filter: blur(18px);
}

.site-nav a,
.lang-button {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(21, 21, 20, 0.72);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.site-nav a {
  padding: 13px 8px;
  position: relative;
}

.site-nav a + a::before {
  position: absolute;
  top: 50%;
  left: calc(clamp(20px, 5vw, 72px) / -2);
  width: 1px;
  height: 16px;
  background: rgba(21, 21, 20, 0.18);
  content: "";
  transform: translateY(-50%);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-button:hover,
.lang-button:focus-visible {
  background: rgba(21, 21, 20, 0.08);
  color: var(--ink);
  outline: none;
}

.language-switch {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 21, 20, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 55px rgba(16, 17, 15, 0.1);
  backdrop-filter: blur(18px);
}

.lang-button {
  min-width: 40px;
  padding: 10px 8px;
}

.lang-button.is-active {
  color: var(--dark);
  background: var(--paper-strong);
  box-shadow: 0 8px 18px rgba(16, 17, 15, 0.08);
}

.section-panel {
  position: relative;
  overflow: clip;
}

.hero-section {
  display: grid;
  align-items: center;
  min-height: 94svh;
  padding: calc(var(--header-height) + 74px) 24px 32px;
  color: var(--paper);
  background: transparent;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(5, 8, 23, 0.08);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(21, 21, 20, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: rgba(246, 247, 242, 0.72);
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

:root:lang(zh-CN) h1 span {
  white-space: nowrap;
}

h1 span + span {
  margin-top: 0.08em;
}

.hero-name {
  padding-bottom: 0.05em;
  color: transparent;
  background: linear-gradient(90deg, var(--paper), var(--lime) 42%, var(--cyan) 66%, var(--paper));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 620px;
  color: rgba(246, 247, 242, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.85;
}

.identity-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  isolation: isolate;
}

.identity-lines {
  position: absolute;
  inset: 4% 0;
  z-index: -2;
  background:
    repeating-linear-gradient(18deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 17px),
    linear-gradient(135deg, rgba(25, 211, 197, 0.2), transparent 54%),
    linear-gradient(305deg, rgba(255, 106, 87, 0.17), transparent 58%);
  clip-path: polygon(14% 5%, 100% 21%, 83% 94%, 0 76%);
  animation: driftPanel 9s ease-in-out infinite alternate;
}

.avatar-card {
  position: relative;
  width: min(78vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  perspective: 1200px;
  outline: none;
}

.avatar-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar-card.is-flipped .avatar-card-inner {
  transform: rotateY(180deg);
}

.avatar-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 247, 242, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.08), 0 28px 80px rgba(0, 0, 0, 0.24);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-radius 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar-card.is-flipped .avatar-face {
  border-radius: 50%;
}

.avatar-front {
  background: rgba(16, 17, 15, 0.42);
}

.avatar-front::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, transparent 42%, rgba(16, 17, 15, 0.52));
  content: "";
  pointer-events: none;
}

.avatar-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.96) contrast(1.04);
}

.avatar-back {
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 40px 0;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(246, 247, 242, 0.18), rgba(246, 247, 242, 0.05)),
    rgba(16, 17, 15, 0.9);
  text-align: left;
  transform: rotateY(180deg);
  backdrop-filter: blur(16px);
}

.avatar-back strong {
  display: block;
  color: var(--paper);
  font-size: clamp(1.5rem, 3.1vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.identity-kicker {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 1;
  color: rgba(246, 247, 242, 0.65);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.business-name,
.business-links span {
  color: rgba(246, 247, 242, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar-back > strong,
.avatar-back > .business-name,
.avatar-back > .business-links {
  width: min(66%, 218px);
}

.avatar-back > strong {
  text-align: center;
}

.business-name {
  margin-top: 0;
  color: var(--lime);
  line-height: 1.35;
  text-transform: none;
}

html[lang="zh-CN"] .business-name {
  width: min(66%, 218px);
  font-size: 0.58rem;
  line-height: 1.2;
  white-space: nowrap;
}

.business-links {
  display: grid;
  gap: 1px;
  margin-top: 2px;
}

.business-entry {
  display: grid;
  gap: 2px;
  padding: 3px 0;
  border-top: 1px solid rgba(246, 247, 242, 0.14);
}

.business-links strong {
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  line-height: 1.2;
}

.identity-rings span {
  position: absolute;
  inset: 14%;
  z-index: -1;
  border: 1px solid rgba(246, 247, 242, 0.16);
  border-radius: 50%;
  animation: rotateRing 16s linear infinite;
}

.identity-rings span:nth-child(2) {
  inset: 4%;
  border-color: rgba(25, 211, 197, 0.26);
  animation-duration: 24s;
  animation-direction: reverse;
}

.identity-rings span:nth-child(3) {
  inset: 23%;
  border-color: rgba(255, 106, 87, 0.28);
  animation-duration: 12s;
}

.identity-rings span::before {
  position: absolute;
  top: 11%;
  left: 10%;
  width: 9px;
  height: 9px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.content-section {
  min-height: 100svh;
  padding: 116px 24px;
}

.content-section:not(.contact-section) {
  color: var(--paper);
  background: transparent;
}

.section-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}

.content-section:not(.contact-section) .section-heading h2 {
  color: var(--paper);
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

.section-heading p:last-child {
  color: rgba(21, 21, 20, 0.68);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.8;
}

.content-section:not(.contact-section) .section-heading p:last-child {
  color: rgba(246, 247, 242, 0.72);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-card,
.blog-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 14, 38, 0.64);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.project-card {
  position: relative;
  overflow: hidden;
}

a.project-card,
button.project-card {
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

a.project-card:hover,
button.project-card:hover {
  border-color: rgba(200, 255, 89, 0.58);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.36);
  transform: translateY(-4px);
}

a.project-card:focus-visible,
button.project-card:focus-visible {
  border-color: var(--lime);
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

button.project-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.game-language-dialog {
  width: min(90vw, 420px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  color: #fff;
  background: rgba(14, 14, 28, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.game-language-dialog::backdrop {
  background: rgba(3, 3, 12, 0.78);
  backdrop-filter: blur(8px);
}

.game-language-dialog__panel {
  position: relative;
  padding: 40px 32px 32px;
  text-align: center;
}

.game-language-dialog__panel h2 {
  margin: 0 0 28px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.game-language-dialog__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

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

.game-language-dialog__actions a {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.game-language-dialog__actions a:hover,
.game-language-dialog__actions a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.project-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: #071a3d;
  content: "";
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 260ms ease;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 32px);
  min-height: clamp(460px, 52vw, 620px);
  padding: clamp(28px, 5vw, 58px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(16, 17, 15, 0.82), rgba(16, 17, 15, 0.42) 45%, rgba(16, 17, 15, 0.1)),
    linear-gradient(0deg, rgba(16, 17, 15, 0.7), rgba(16, 17, 15, 0.06) 62%),
    url("assets/project-classroom-credit.png") center / cover no-repeat;
}

.feature-card::after {
  background: #071a3d;
}

.card-number {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-label {
  margin-bottom: 20px;
  color: rgba(246, 247, 242, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card h3 {
  max-width: 660px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.94;
}

.feature-card h3 + p {
  max-width: 560px;
  color: rgba(246, 247, 242, 0.76);
  font-size: 1rem;
  line-height: 1.8;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(8, 12, 28, 0.56);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  transition: background 220ms ease, border-color 220ms ease;
}

a.project-card:hover .project-cta,
a.project-card:focus-visible .project-cta {
  border-color: var(--lime);
  background: rgba(7, 26, 61, 0.82);
}

.split-shell {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 130px;
}

.blog-stack {
  display: grid;
  gap: 18px;
}

.blog-card {
  color: var(--paper);
  padding: clamp(24px, 4vw, 42px);
  display: block;
  transition: transform 220ms ease, background 220ms ease;
}

.blog-card:hover {
  background: rgba(24, 28, 58, 0.82);
  transform: translateY(-4px);
}

.blog-date {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.8vw, 3.8rem);
  line-height: 0.98;
}

.blog-card p {
  color: rgba(246, 247, 242, 0.68);
  font-size: 1rem;
  line-height: 1.78;
}

.contact-section {
  color: var(--paper);
  background: transparent;
}

.contact-section .section-heading h2,
.contact-section .section-heading p,
.contact-section .eyebrow {
  color: var(--paper);
}

.contact-section .section-heading p:last-child {
  color: rgba(246, 247, 242, 0.72);
}

.contact-shell {
  min-height: auto;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 66px;
  min-height: 260px;
}

.email-contact {
  display: grid;
  gap: 10px;
  color: var(--paper);
}

.email-contact span {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.email-contact strong {
  font-size: clamp(1.45rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(246, 247, 242, 0.2);
  border-radius: 50%;
  background: rgba(246, 247, 242, 0.06);
  color: rgba(246, 247, 242, 0.76);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-links img {
  display: block;
  width: 22px;
  height: 22px;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(200, 255, 89, 0.7);
  background: rgba(200, 255, 89, 0.14);
  color: var(--paper);
  outline: none;
  transform: translateY(-2px);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 75;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(21, 21, 20, 0.14);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 16px 45px rgba(16, 17, 15, 0.22);
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  transition: opacity 220ms ease, transform 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--lime);
  color: var(--ink);
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px;
  color: rgba(246, 247, 242, 0.64);
  background: transparent;
  font-size: 0.86rem;
}

.site-nav a[aria-current="page"] {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.74);
}

.blog-map-body {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #010204;
}

.blog-map-body .page-progress,
.blog-map-body .back-to-top,
.blog-map-body .site-footer {
  display: none;
}

.blog-map-main {
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.blog-map-section {
  position: relative;
  display: block;
  gap: clamp(24px, 4vw, 42px);
  height: 100svh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#blogStarCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.blog-map-heading {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  align-items: end;
  gap: 18px clamp(28px, 6vw, 74px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.blog-map-heading[data-reveal],
.blog-map-board[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.blog-map-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-map-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.92;
}

.blog-map-heading p {
  grid-column: 2;
  margin: 0;
  color: rgba(21, 21, 20, 0.66);
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.7;
}

.blog-map-board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  z-index: 1;
  isolation: isolate;
  touch-action: none;
}

.map-lines,
.map-node-layer {
  position: absolute;
  inset: 0;
}

.map-lines {
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform-origin: 0 0;
}

.map-wall-border {
  fill: none;
  stroke: rgba(7, 26, 61, 0.92);
  stroke-linecap: round;
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.38));
  transition: opacity 120ms ease;
}

.map-line {
  fill: none;
  stroke: rgba(220, 229, 255, 0.4);
  stroke-linecap: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.map-line-category {
  stroke: rgba(220, 229, 255, 0.36);
}

.map-line-subcategory {
  stroke: rgba(124, 103, 255, 0.52);
}

.map-line-article {
  stroke: rgba(25, 211, 197, 0.84);
  stroke-width: 1.55;
}

.map-line-article-related {
  stroke: rgba(25, 211, 197, 0.5);
  stroke-dasharray: 1.5 7;
  stroke-width: 1.35;
}

.map-node-layer {
  z-index: 2;
  transform-origin: 0 0;
}

.map-node {
  position: absolute;
  left: var(--map-x, 50%);
  top: var(--map-y, 50%);
  display: grid;
  place-items: center;
  width: min(var(--node-size), 30vw);
  aspect-ratio: 1;
  border: 1px solid rgba(21, 21, 20, 0.12);
  border-radius: 50%;
  color: var(--ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
  text-align: center;
  transform: translate(-50%, -50%);
}

.category-node,
.subcategory-node,
.article-node {
  transition: border-color 160ms ease, background-color 160ms ease;
}

.map-node.is-dragging {
  z-index: 8;
  cursor: grabbing;
}

.blog-map-board.is-graph-dragging .map-node {
  cursor: grabbing;
}

.blog-map-board.is-view-panning {
  cursor: grabbing;
}

.map-center {
  --map-x: 50%;
  --map-y: 52%;
  --node-size: 210px;
  z-index: 3;
  color: var(--paper);
  border-color: rgba(21, 21, 20, 0.82);
  background: var(--dark);
}

.map-center span {
  display: block;
  width: 78%;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.map-center small {
  margin-top: -54px;
  color: rgba(246, 247, 242, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-node {
  --node-soft: rgba(255, 255, 255, 0.88);
  --node-line: rgba(21, 21, 20, 0.14);
  z-index: 2;
  overflow: hidden;
  border-color: var(--node-line);
  background: var(--node-soft);
}

.category-node::after {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(21, 21, 20, 0.12);
  border-radius: 50%;
  content: "";
}

.category-node span {
  position: relative;
  z-index: 1;
  display: block;
  width: 74%;
  color: rgba(21, 21, 20, 0.84);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.04;
  white-space: nowrap;
}

.tone-cyan {
  --node-soft: #a7eee7;
  --node-line: rgba(20, 159, 150, 0.45);
}

.tone-coral {
  --node-soft: #ffc8bd;
  --node-line: rgba(210, 89, 75, 0.42);
}

.tone-lime {
  --node-soft: #dcff92;
  --node-line: rgba(122, 159, 33, 0.42);
}

.tone-violet {
  --node-soft: #cdc4ff;
  --node-line: rgba(98, 79, 196, 0.42);
}

.subcategory-node {
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}

.subcategory-node span {
  display: block;
  width: 74%;
  color: rgba(21, 21, 20, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-node {
  z-index: 4;
  padding: 0;
  border: 1.5px solid rgba(25, 211, 197, 0.66);
  background: rgba(252, 255, 250, 0.98);
  cursor: pointer;
  overflow: hidden;
}

.article-node:hover,
.article-node:focus-visible {
  border-color: rgba(255, 106, 87, 0.62);
  background: #ffffff;
  outline: none;
}

.article-title,
.article-problem {
  position: absolute;
  inset: 24px 20px 34px;
  display: grid;
  place-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.article-title {
  width: auto;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 800;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-problem {
  color: rgba(21, 21, 20, 0.72);
  font-size: clamp(0.64rem, 0.9vw, 0.78rem);
  font-weight: 700;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(8px);
}

.article-node:hover .article-title,
.article-node:focus-visible .article-title {
  opacity: 0;
  transform: translateY(-8px);
}

.article-node:hover .article-problem,
.article-node:focus-visible .article-problem {
  opacity: 1;
  transform: translateY(0);
}

.article-node small {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  width: 80%;
  margin: 0 auto;
  color: var(--coral);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: balance;
  white-space: normal;
  transition: opacity 180ms ease;
}

html[lang="en"] .category-node span {
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  letter-spacing: -0.025em;
}

html[lang="fr"] .category-node span {
  font-size: clamp(1.05rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

html[lang="en"] .subcategory-node span,
html[lang="fr"] .subcategory-node span {
  font-size: clamp(0.82rem, 1.2vw, 1.08rem);
  line-height: 1.12;
}

html[lang="en"] .article-title,
html[lang="fr"] .article-title {
  font-size: clamp(0.72rem, 1vw, 0.92rem);
}

html[lang="en"] .article-problem,
html[lang="fr"] .article-problem {
  font-size: clamp(0.58rem, 0.76vw, 0.7rem);
  line-height: 1.32;
}

html[lang="en"] .article-node small,
html[lang="fr"] .article-node small {
  font-size: 0.56rem;
}

.article-node:hover small,
.article-node:focus-visible small {
  opacity: 0;
}

.article-reader {
  --reader-origin-x: 50vw;
  --reader-origin-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: block;
  padding: 0;
  color: var(--paper);
  background: rgba(1, 2, 4, 0.9);
  clip-path: circle(0 at var(--reader-origin-x) var(--reader-origin-y));
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: clip-path 640ms cubic-bezier(0.18, 0.86, 0.18, 1), opacity 120ms ease;
}

.article-reader.is-open {
  clip-path: circle(160% at var(--reader-origin-x) var(--reader-origin-y));
  opacity: 1;
  pointer-events: auto;
}

.article-reader-open {
  overflow: hidden;
}

.reader-panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: clamp(82px, 9vw, 124px) clamp(22px, 8vw, 110px) clamp(54px, 7vw, 96px);
  border: 0;
  border-radius: 0;
  background: rgba(1, 2, 4, 0.34);
  box-shadow: none;
}

.reader-article {
  width: min(920px, 100%);
  margin: 0 auto;
}

.reader-close {
  position: fixed;
  top: 24px;
  right: 24px;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(246, 247, 242, 0.18);
  border-radius: 50%;
  background: rgba(5, 8, 23, 0.74);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.reader-close:hover,
.reader-close:focus-visible {
  background: #071a3d;
  color: var(--paper);
  outline: none;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.reader-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(246, 247, 242, 0.16);
  border-radius: var(--radius);
  color: rgba(246, 247, 242, 0.68);
  font-size: 0.74rem;
  font-weight: 800;
}

.reader-article h2 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.reader-problem {
  max-width: 620px;
  margin-bottom: 36px;
  color: rgba(246, 247, 242, 0.68);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 700;
  line-height: 1.7;
}

.reader-body {
  display: grid;
  gap: 18px;
  color: rgba(246, 247, 242, 0.82);
  font-size: 1rem;
  line-height: 1.95;
}

.reader-body p {
  margin: 0;
}

.reader-body a {
  color: var(--lime);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.reader-body a:hover,
.reader-body a:focus-visible {
  color: var(--paper);
  outline: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes driftPanel {
  from {
    transform: translate3d(-10px, 10px, 0) rotate(-3deg);
  }

  to {
    transform: translate3d(12px, -12px, 0) rotate(3deg);
  }
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mapFloat {
  from {
    transform: translate(-50%, calc(-50% - 10px));
  }

  to {
    transform: translate(-50%, calc(-50% + 12px));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .more-menu {
    grid-column: 1;
  }

  .more-toggle {
    width: 42px;
    height: 42px;
    padding: 0 11px;
  }

  .site-nav {
    grid-column: 2;
    justify-content: stretch;
    gap: 4px;
    min-width: 0;
    padding: 6px;
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
    padding: 12px 4px;
    text-align: center;
  }

  .site-nav a + a::before {
    display: none;
  }

  .language-switch {
    grid-column: 3;
    min-width: 0;
  }

  .hero-section {
    padding-top: 170px;
  }

  .hero-shell,
  .split-shell {
    grid-template-columns: 1fr;
  }

  .blog-map-heading {
    grid-template-columns: 1fr;
  }

  .blog-map-heading p {
    grid-column: auto;
  }

  .identity-stage {
    min-height: 360px;
  }

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

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 118px;
  }

  .site-header {
    top: 10px;
    display: block;
    min-height: 96px;
    width: calc(100% - 20px);
  }

  .more-menu {
    position: absolute;
    top: 0;
    left: 0;
  }

  .language-switch {
    position: absolute;
    top: 50px;
    left: 48px;
    right: auto;
    max-width: 104px;
    padding: 4px;
  }

  .lang-button {
    min-width: 28px;
    padding: 9px 4px;
    font-size: 0.68rem;
  }

  .more-toggle {
    width: 38px;
    height: 42px;
    padding: 0 10px;
  }

  .donate-submenu {
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
  }

  .donate-menu::after {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 0;
    left: 54px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(300px, calc(100% - 104px), calc(100vw - 124px));
    gap: 2px;
    padding: 4px;
  }

  .site-nav a {
    display: grid;
    place-items: center;
    padding: 11px 0;
    font-size: 0.62rem;
  }

  .hero-section {
    min-height: auto;
    padding: 170px 16px 24px;
  }

  .hero-lede {
    line-height: 1.7;
  }

  .content-section {
    min-height: auto;
    padding: 84px 16px;
  }

  .blog-map-section {
    height: 100svh;
    min-height: 0;
    padding: 0;
  }

  .blog-map-board {
    height: 100%;
  }

  .map-node {
    left: var(--map-mobile-x, var(--map-x, 50%));
    top: var(--map-mobile-y, var(--map-y, 50%));
    width: min(var(--node-size), 29vw);
  }

  .map-center {
    --map-x: 54%;
    --node-size: 130px;
  }

  .article-title,
  .article-problem {
    inset: 20px 14px 30px;
  }

  .article-title {
    font-size: 0.74rem;
  }

  .article-problem {
    font-size: 0.6rem;
  }

  .article-node small {
    bottom: 15px;
    font-size: 0.56rem;
  }

  .article-reader {
    padding: 0;
  }

  .feature-card,
  .blog-card {
    padding: 20px;
  }

  .contact-shell {
    min-height: auto;
  }

  .contact-stack {
    gap: 38px;
    min-height: auto;
  }

  .feature-card {
    grid-template-columns: 1fr;
    min-height: 420px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

}
