/* ==========================================================================
   Atomistic Intelligence Lab — site styles
   No external fonts or CDNs, so the site loads fast from mainland China.
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-tint: #f6f8fb;
  --navy: #0c0a2a;
  --navy-2: #17124d;
  --accent: #816cff;        /* logo violet */
  --accent-ink: #5b45e6;
  --accent-soft: #ebe7ff;
  --accent-btn: #6b54f2;
  --brand: #1b1464;          /* logo navy-purple */
  --accent-2: #1b1464;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
          "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Language switching ---------- */
html[data-lang="en"] .l-zh,
html[data-lang="zh"] .l-en { display: none !important; }
html[data-lang="zh"] body { line-height: 1.8; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.wrap--narrow { max-width: 860px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 42, .88);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner {
  max-width: 1160px; margin: 0 auto; height: var(--nav-h);
  padding-inline: clamp(16px, 4vw, 32px);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; height: 21px; width: auto; }
.brand__cn { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 15px; letter-spacing: .08em; white-space: nowrap; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); }
@media (max-width: 1100px) { .brand__cn { display: none !important; } }
@media (max-width: 420px) { .brand__logo { height: 17px; } }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a { color: rgba(255, 255, 255, .75); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }
.nav__links .nav__cta { color: #fff; background: var(--accent-btn); font-weight: 600; margin-left: 6px; }
.nav__links .nav__cta:hover, .nav__links .nav__cta.is-active { background: var(--accent); color: #fff; }
.nav__tools { display: flex; align-items: center; gap: 8px; }

/* 中 | EN segmented switch */
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px; cursor: pointer; font: inherit;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
}
.lang-toggle__opt { font-size: 12.5px; font-weight: 650; line-height: 1; padding: 6px 10px; border-radius: 999px; color: rgba(255, 255, 255, .6); transition: background .15s, color .15s; }
html[data-lang="zh"] .lang-toggle__opt--zh,
html[data-lang="en"] .lang-toggle__opt--en { background: #fff; color: var(--navy); }
.lang-toggle:hover { border-color: var(--accent); }

.nav__burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 10px 8px; }
.nav__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
  .nav__burger { display: block; }
  .nav__tools { margin-left: auto; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 8px clamp(16px, 4vw, 32px) 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 8px; font-size: 16px; }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}


/* ---------- Home hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(129, 108, 255, .30), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(129, 108, 255, .22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero { padding-block: clamp(80px, 13vw, 140px) clamp(72px, 10vw, 110px); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 20px; font-size: 13.5px; letter-spacing: .06em;
  color: #c4b8ff; border: 1px solid rgba(153, 246, 228, .3); border-radius: 999px; padding: 5px 14px;
  background: rgba(129, 108, 255, .08);
}
.hero__title { margin: 0; line-height: 0; }
.hero__logo { display: block; width: min(100%, 820px); height: auto; }
.hero__cn { display: block; margin-top: 18px; line-height: 1.2; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: .18em; color: rgba(255, 255, 255, .92); }
.hero__sub { max-width: 680px; margin: 22px 0 0; font-size: clamp(17px, 2.1vw, 21px); color: rgba(255, 255, 255, .8); }
.hero__sub em { font-style: normal; color: #a594ff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li { font-family: var(--mono); font-size: 12.5px; color: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 3px 10px; }

/* ---------- Sub-page hero ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 88px) clamp(44px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 740; letter-spacing: -.01em; }
.page-hero p:not(.kicker) { max-width: 720px; margin: 14px 0 0; color: rgba(255, 255, 255, .75); font-size: 17px; }
.page-hero a { color: #a594ff; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; padding: 12px 22px; border-radius: 10px; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent-btn); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.section--tint { background: var(--bg-tint); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.kicker { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.kicker--light { color: #a594ff; }
.section__title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 720; letter-spacing: -.01em; margin-bottom: 20px; }
.more { font-weight: 600; font-size: 15px; margin-bottom: 24px; }
.lead { font-size: clamp(16.5px, 1.8vw, 18.5px); color: var(--ink-2); max-width: 880px; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card--link:hover { border-color: rgba(129, 108, 255, .5); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card h3 { font-size: 17.5px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card__sub { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.card__icon--agent { background: var(--accent-2); }
.card__icon--mlip { background: var(--accent); }
.card__icon--dft { background: #5b45e6; }
.card__icon--lab { background: #3a2c9e; }
.card__icon svg { width: 21px; height: 21px; display: block; }
.card__icon--agent svg { width: 27px; height: 27px; }

/* ---------- Research overview: list + fully connected diagram ---------- */
.overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: 56px; }
.overview__list { display: flex; flex-direction: column; gap: 6px; }
.overview__list .kicker { margin-bottom: 8px; }
.overview__item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; margin-inline: -16px; border-radius: 12px; color: var(--ink); transition: background .15s; }
.overview__item:hover { background: var(--bg-tint); text-decoration: none; }
.overview__item .card__icon { flex: none; margin-top: 2px; }
.overview__body { display: flex; flex-direction: column; gap: 2px; }
.overview__body strong { font-size: 17px; line-height: 1.35; }
.overview__body > span { color: var(--muted); font-size: 15px; }
.overview__sub { display: inline; margin-left: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.k4 { position: relative; margin: 0; width: 100%; max-width: 460px; aspect-ratio: 1 / .9; justify-self: center;
  background: radial-gradient(closest-side, #efecff, rgba(239, 236, 255, 0)); }
.k4__edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k4__edges line { stroke: var(--accent); stroke-opacity: .5; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; animation: k4-flow 1.6s linear infinite; }
@keyframes k4-flow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .k4__edges line { animation: none; } }
.k4__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.k4__center img { width: 38px; height: 38px; }
.k4__node { position: absolute; transform: translate(-50%, -26px); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; text-align: center; font-weight: 640; font-size: 14px; line-height: 1.3; color: var(--ink); }
.k4__node:hover { text-decoration: none; color: var(--accent-ink); }
.k4__label { background: rgba(255, 255, 255, .92); padding: 1px 8px; border-radius: 8px; }
.k4__node .card__icon { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 6px 18px rgba(27, 20, 100, .25); transition: transform .15s; }
.k4__node:hover .card__icon { transform: scale(1.06); }
.k4__node .card__icon svg { width: 26px; height: 26px; }
.k4__node .card__icon--agent svg { width: 34px; height: 34px; }
.k4__node--tl { left: 20%; top: 20%; }
.k4__node--tr { left: 80%; top: 20%; }
.k4__node--bl { left: 20%; top: 80%; }
.k4__node--br { left: 80%; top: 80%; }
@media (max-width: 860px) {
  .overview { grid-template-columns: 1fr; }
  .k4 { max-width: 380px; }
}
@media (max-width: 420px) { .k4__node { width: 104px; font-size: 13px; } }

/* ---------- Research themes ---------- */
.theme { padding-block: 40px; border-top: 1px solid var(--line); }
.theme:first-of-type { border-top: 0; padding-top: 0; }
.theme__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.theme__num { font-family: var(--mono); font-weight: 700; color: var(--accent-ink); font-size: 15px; }
.theme h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 720; }
.theme__zh { font-weight: 600; color: var(--muted); }
@media (min-width: 700px) { .theme__zh { white-space: nowrap; } }
.theme__text { color: var(--ink-2); font-size: 17px; max-width: 880px; margin: 0; }
.theme__sub { font-size: 14px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 16px; }
.theme__soon { display: inline-block; margin: 20px 0 0; padding: 8px 14px; border-radius: 10px; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; font-size: 15px; }

/* ---------- Publications (card grid, figure on top) ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pub-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }
.pub-card__fig { display: flex; align-items: center; justify-content: center; height: 200px; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.pub-card__fig img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pub-card__ph { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: linear-gradient(135deg, #f4f2ff, #eef2ff); }
.pub-card__ph img { width: 72px; height: 72px; opacity: .85; }
.pub-card__body { padding: 18px 20px 20px; }
.pub-card__title { font-size: 16.5px; font-weight: 680; line-height: 1.4; }
.pub-card__title a { color: var(--ink); }
.pub-card__title a:hover { color: var(--accent-ink); text-decoration: none; }
.pub-card__authors { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pub-card__authors b { color: var(--ink); }
.pub-card__venue { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pub-card__venue i { color: var(--ink-2); font-weight: 600; }
.pub-card__venue b { color: var(--ink-2); }
.pub-card__badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 5px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
@media (max-width: 400px) { .pub-grid { grid-template-columns: 1fr; } }

.pub-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.pub-toolbar__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { font: inherit; font-size: 14.5px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; width: 220px; max-width: 100%; }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129, 108, 255, .15); }
.pub-count { font-size: 14px; color: var(--muted); }
.pub-year { margin-top: 36px; }
.pub-year__title { font-family: var(--mono); font-size: 22px; color: var(--accent-ink); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }

.software { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.sw { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: 14px; }
.sw strong { color: var(--ink); font-size: 16px; font-family: var(--mono); }
.sw:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- News ---------- */
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news time { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); font-weight: 600; padding-top: 2px; }
.news p { margin: 0; color: var(--ink-2); }
.news--full li { padding: 18px 0; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; padding-block: 48px; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); }
.cta p { margin: 6px 0 0; color: rgba(255, 255, 255, .72); }

/* ---------- People ---------- */
.pi { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 8px; }
.pi__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.pi__name { font-size: clamp(28px, 3.6vw, 36px); font-weight: 720; }
.pi__alt { font-size: .6em; font-weight: 500; color: var(--muted); margin-left: 10px; }
.pi__role { color: var(--accent-ink); font-weight: 600; margin: 8px 0 16px; }
.pi__body > p { color: var(--ink-2); }
.stats { list-style: none; padding: 0; margin: 22px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.stats li { display: flex; flex-direction: column; min-width: 84px; padding: 7px 12px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px; }
.stats strong { font-size: 18px; line-height: 1.1; }
.stats span { font-size: 12px; color: var(--muted); }
.stats__note { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.links a:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
@media (max-width: 760px) { .pi { grid-template-columns: 1fr; } .pi__photo { max-width: 220px; } }

.pi-extra { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
@media (max-width: 860px) { .pi-extra { grid-template-columns: 1fr; } }
.timeline__title { font-size: 20px; margin-bottom: 16px; }
.timeline ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0 10px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline li:first-child::before { background: var(--accent); }
.timeline time { font-family: var(--mono); font-size: 13.5px; color: var(--muted); padding-top: 2px; }
.timeline li div { display: flex; flex-direction: column; }
.timeline li div > span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }
.honors ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.honors li { padding: 5px 0; }
.honors li::marker { color: var(--accent); }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.member img, .member__ph { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.member > span { color: var(--muted); font-size: 14px; }
.member--open { border-style: dashed; }
.member--open:hover { border-color: var(--accent); text-decoration: none; }
.member__ph { display: grid; place-items: center; font-size: 40px; font-weight: 300; color: var(--accent-ink); background: repeating-linear-gradient(45deg, #f4f2ff, #f4f2ff 8px, #e4deff 8px, #e4deff 9px); }

/* ---------- Join ---------- */
.join { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.join__text p { color: var(--ink-2); margin: 0 0 14px; font-size: 17px; }
.join__text strong { color: var(--accent-ink); }
.join__text h3 { font-size: 19px; margin: 34px 0 10px; }
.positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.position { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-tint); }
.position h3 { margin: 0 0 6px !important; font-size: 17px !important; }
.position p { font-size: 14.5px !important; margin: 0 !important; color: var(--muted) !important; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 5px 0 5px 28px; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.join__card {
  position: sticky; top: calc(var(--nav-h) + 20px); padding: 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(160deg, #231a7a, var(--navy) 70%); box-shadow: var(--shadow);
}
.join__card h3 { font-size: 20px; margin-bottom: 10px; }
.join__card p { color: rgba(255, 255, 255, .8); margin: 0 0 10px; }
.join__card a { color: #a594ff; }
.join__card .email { font-size: 18px; font-weight: 700; word-break: break-all; margin: 14px 0; }
.join__card .small { font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.join__card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 18px 0; }
.email-missing { background: #f59e0b; color: var(--navy) !important; padding: 2px 8px; border-radius: 6px; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .join__card { position: static; } }

/* ---------- Footer ---------- */
.footer { background: #08061f; color: rgba(255, 255, 255, .55); font-size: 14px; padding-block: 36px calc(24px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer__brand { margin-bottom: 12px; }
.footer__logo { display: block; height: 18px; width: auto; }
.footer__cn { display: block; margin-top: 8px; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer a { color: rgba(255, 255, 255, .7); }
.footer a:hover { color: #fff; }
.footer__copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
