:root {
  --ink: #0b0b0a;
  --ink-2: #151513;
  --line: #2a2a26;
  --paper: #f3f1ea;
  --muted: #a9a79d;
  --lime: #dde86a;
  --lime-deep: #c9d74a;
  --sun: #efe35f;
  --stone: #bdbcb3;
  --stone-ink: #1c1c19;
  --serif: "Fraunces", "Noto Serif SC", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sun);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* language: one document, two voices */
html[data-lang="en"] [lang="zh"],
html[data-lang="zh"] [lang="en"] { display: none !important; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2 { letter-spacing: .02em; }

/* the black page on a yellow table, as in the reference */
.frame {
  max-width: 1320px;
  margin: 0 auto;
  background: var(--ink);
  min-height: 100vh;
  overflow: hidden;
}
@media (min-width: 1100px) {
  body { padding: 48px 32px; }
  .frame { border-radius: 6px; box-shadow: 0 40px 80px -40px rgba(60, 50, 0, .45); }
}

/* ── nav ── */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(16px, 5vw, 76px);
}
.brand { width: 32px; height: 32px; color: var(--paper); }
.brand svg { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover svg { transform: rotate(45deg); }
.links { display: flex; gap: 26px; font-size: 14px; }
.links a { text-decoration: none; opacity: .88; }
.links a:hover { opacity: 1; color: var(--lime); }
.nav-end { justify-self: end; display: flex; gap: 18px; align-items: center; }
.lang {
  background: none; border: 0; color: var(--paper); font: 600 13px var(--sans);
  cursor: pointer; padding: 6px 4px; opacity: .9;
}
.lang:hover { color: var(--lime); }
.pill-grey {
  background: var(--stone); color: var(--stone-ink); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 9px 22px; border-radius: 999px;
  transition: background .2s;
}
.pill-grey:hover { background: var(--paper); }

/* ── hero ── */
.hero { text-align: center; padding: 40px clamp(16px, 5vw, 76px) 0; }
.news {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border-radius: 999px; padding: 4px 14px 4px 4px; font-size: 12.5px; max-width: 100%;
}
.news .tag { background: var(--lime); border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.news-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news svg { width: 16px; flex: none; transition: transform .2s; }
.news:hover svg { transform: translateX(3px); }

h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; }
h1 {
  font-size: clamp(38px, 6.6vw, 86px);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 28px auto 0;
  max-width: 14ch;
  max-width: none;
  font-variation-settings: "opsz" 144;
}
.lede {
  color: #d6d4cb; max-width: 560px; margin: 26px auto 0;
  font-size: clamp(15px, 1.5vw, 18px);
}
.cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  background: var(--lime); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 14px 30px; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.cta:hover { background: var(--sun); transform: translateY(-2px); }
.cta-count {
  background: var(--ink); color: var(--lime); border-radius: 999px;
  font-size: 12px; width: 22px; height: 22px; display: grid; place-items: center;
}

/* ── showcase: yellow photo card + stone flow card ── */
.showcase {
  display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); gap: 12px;
  margin-top: 54px; text-align: left;
}
.card-photo {
  position: relative; margin: 0; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, #f6ee7a, #e9d94a);
  min-height: 380px; border: 1px solid #3a3a30;
}
.card-photo > img {
  position: absolute; inset: 0; width: 100%; height: 150%;
  object-fit: cover; object-position: 50% 0;
  filter: grayscale(1) contrast(1.15) brightness(1.02);
  mix-blend-mode: multiply;
  transition: filter .7s ease;
}
.card-photo:hover > img { filter: none; mix-blend-mode: normal; }
.glyphs { position: absolute; top: 18px; right: 18px; display: flex; gap: 10px; color: var(--ink); }
.glyphs svg { width: 34px; height: 34px; }
.toast {
  position: absolute; left: 14px; bottom: 36px; width: min(170px, 60%);
  background: rgba(245, 244, 238, .78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 12px;
  padding: 10px; color: var(--ink); font-size: 10.5px; line-height: 1.35;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.35);
  animation: float 6s ease-in-out infinite;
}
.toast-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.toast-top img { border-radius: 50%; width: 26px; height: 26px; object-fit: cover; }
.chip-dark { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 8px; font-size: 9px; }
.toast-body { background: #fff; border-radius: 8px; padding: 7px 9px; }
.toast-body b { font-weight: 700; }
.toast-body time { float: right; color: #8a8a82; font-size: 9px; }
.toast-body p { margin: 3px 0 0; color: #55554f; }

.card-flow {
  position: relative; border-radius: var(--r); background: var(--stone);
  color: var(--stone-ink); min-height: 380px; overflow: hidden; border: 1px solid #3a3a30;
}
.flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.bubble {
  position: absolute; top: 12%; left: 32%; width: min(250px, 44%);
  background: #fff; border-radius: 12px; padding: 12px 14px 12px;
  font-size: 11.5px; line-height: 1.45; box-shadow: 0 18px 30px -18px rgba(0,0,0,.35);
  z-index: 2; animation: float 7s ease-in-out infinite reverse;
}
.bubble::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -12px; height: 14px;
  background: rgba(255,255,255,.45); border-radius: 0 0 12px 12px; z-index: -1;
}
.bubble-bar {
  position: absolute; top: -12px; right: 10px; background: #fff; border-radius: 999px;
  padding: 2px 8px; display: flex; gap: 8px; font-size: 9px; font-style: normal;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.bubble-bar i { font-style: normal; }
.bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bubble-head img { border-radius: 50%; width: 24px; height: 24px; object-fit: cover; }
.bubble-head b { font-size: 12.5px; font-weight: 600; }
.bubble-head span { font-size: 9.5px; font-weight: 600; }
.bubble p { margin: 0; color: #55554f; }
mark { background: var(--lime); color: var(--ink); padding: 0 2px; }

.node {
  position: absolute; left: 12%; top: 46%; width: 58px; height: 58px; border-radius: 50%;
  background: var(--sun); display: grid; place-items: center; z-index: 2;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.4);
}
.node svg { width: 24px; height: 24px; }
.node-label {
  position: absolute; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; opacity: .7;
}
.node-you-l { left: 9%; top: 64%; }
.node-core-l { right: 8%; top: 78%; }

.orbit { position: absolute; right: 9%; top: 36%; width: 150px; height: 150px; }
.core {
  position: absolute; inset: 38px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(0,0,0,.6);
}
.core svg { width: 32px; height: 32px; animation: spin 18s linear infinite; }
.sat {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--stone); box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 8px 16px -8px rgba(0,0,0,.5);
  transition: transform .25s;
}
.sat:hover { transform: scale(1.18); z-index: 3; }
.sat img { width: 100%; height: 100%; object-fit: cover; }
.s1 { left: -14px; top: 36px; }
.s2 { left: 34px; top: -14px; }
.s3 { right: -4px; top: 6px; }
.s4 { right: -18px; top: 70px; }
.s5 { left: -8px; top: 100px; }

/* ── wordmark strip ── */
.marquee {
  list-style: none; margin: 0; padding: 46px 0 56px;
  display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px 40px;
}
.wm {
  text-decoration: none; color: #cfcdc4; font-size: clamp(22px, 2.6vw, 32px);
  display: inline-flex; align-items: baseline; gap: 6px; transition: color .2s;
}
.wm:hover { color: var(--lime); }
.wm small { font-size: .45em; font-family: var(--sans); font-weight: 500; opacity: .8; }
.wm-heros { font-family: var(--sans); font-weight: 800; letter-spacing: .08em; }
.wm-aqiao { font-family: "Noto Sans SC", var(--sans); font-weight: 700; }
.wm-forge { font-family: var(--sans); font-weight: 700; letter-spacing: .28em; font-stretch: condensed; }
.wm-vera { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wm-aoi { font-family: var(--sans); font-weight: 800; letter-spacing: .16em; }

/* ── sections ── */
section.agents, section.principles, section.closing {
  padding: 96px clamp(16px, 5vw, 76px) 0;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.01em; text-align: right; }

.agents { display: grid; gap: 14px; }
.agent {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .3s, transform .3s;
}
.agent:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.portrait { position: relative; display: block; background: var(--sun); overflow: hidden; min-height: 260px; }
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply;
  transition: filter .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.portrait::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  right: -8%; bottom: -8%; background: var(--accent); mix-blend-mode: multiply; filter: blur(18px); opacity: .75;
  transition: opacity .6s;
}
.agent:hover .portrait img { filter: none; mix-blend-mode: normal; transform: scale(1.04); }
.agent:hover .portrait::after { opacity: 0; }

.agent-body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; }
.agent-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.domain { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.role {
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent);
  border-radius: 999px; padding: 2px 12px; font-weight: 600;
}
.agent h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 50px);
  margin: 14px 0 8px; line-height: 1;
}
.agent h3 small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; }
.intro { color: #d6d4cb; margin: 0; max-width: 62ch; }
.facts {
  list-style: none; padding: 0; margin: 22px 0 26px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.facts li {
  border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column;
}
.facts b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--paper); line-height: 1.2; }
.visit {
  margin-top: auto; align-self: flex-start; text-decoration: none; font-weight: 700; font-size: 14.5px;
  background: var(--paper); color: var(--ink); padding: 11px 22px; border-radius: 999px;
  transition: background .2s;
}
.visit:hover { background: var(--accent); }
.visit span { display: inline-block; transition: transform .2s; }
.visit:hover span { transform: translateX(3px); }

/* principles */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.habit {
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--ink-2);
}
.habit.hl { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.habit .n { font-family: var(--serif); font-size: 15px; opacity: .6; }
.habit h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 40px 0 10px; line-height: 1.1; }
.habit p { margin: 0; font-size: 15px; opacity: .85; }

/* closing */
.closing { text-align: center; padding-bottom: 96px !important; }
.faces { display: flex; justify-content: center; margin-bottom: 24px; }
.faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); margin-left: -14px; }
.faces img:first-child { margin-left: 0; }
.closing h2 { text-align: center; }
.closing-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.closing-links a {
  text-decoration: none; border: 1px solid #45453e; padding: 10px 22px; border-radius: 999px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.closing-links a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* Sponsor: the Afdian card beside a short ask, before the footer. */
.sponsor {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 6vw, 88px);
  margin: 0 clamp(16px, 5vw, 76px) 72px; padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: calc(var(--r) * 1.6); background: var(--ink-2);
}
.sponsor h2 { margin: 14px 0 18px; text-align: left; }
.sponsor p { color: var(--muted); max-width: 520px; line-height: 1.6; }
.sponsor .sponsor-hint { color: var(--lime); font-weight: 600; margin-top: 22px; }
.patreon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 22px 12px 18px;
  border-radius: 999px; background: #f96854; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(249, 104, 84, .8); transition: transform .2s ease, background .2s ease;
}
.patreon svg { width: 20px; height: 20px; flex: none; }
.patreon:hover { background: #ff7a66; transform: translateY(-2px); }
.patreon:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sponsor-card { margin: 0; }
.sponsor-card img {
  display: block; width: min(400px, 78vw); height: auto; border-radius: var(--r);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(2deg); transition: transform .35s ease;
}
.sponsor-card img:hover { transform: rotate(0) scale(1.02); }
@media (max-width: 760px) {
  .sponsor { grid-template-columns: 1fr; text-align: center; }
  .sponsor h2 { text-align: center; }
  .sponsor p { margin-left: auto; margin-right: auto; }
  .sponsor-card { justify-self: center; }
  .sponsor .sponsor-hint span[aria-hidden] { display: none; }
}

.foot {
  border-top: 1px solid var(--line); margin: 0 clamp(16px, 5vw, 76px); padding: 26px 0 34px;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lime); }

@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* no hover on touch: show the portraits in colour rather than hide them behind a state nobody can reach */
@media (hover: none) {
  .portrait img, .card-photo > img { filter: none; mix-blend-mode: normal; }
  .portrait::after { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── narrow screens ── */
@media (max-width: 900px) {
  .links { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .card-photo { min-height: 420px; }
  .agent { grid-template-columns: 1fr; }
  /* 4:3 keeps the whole face: at 16:10 a square portrait loses 37% of its height and
     the crop landed on the forehead, with eyes at the bottom edge and no chin. */
  .portrait { aspect-ratio: 4 / 3; min-height: 0; }
  .portrait img { object-position: 50% 60%; }
  .trio { grid-template-columns: 1fr; }
  h2 { text-align: left; }
}
@media (max-width: 600px) {
  .card-flow { min-height: 340px; }
  .bubble { left: 6%; width: 70%; top: 6%; }
  .node { left: 8%; top: 52%; }
  .node-you-l { left: 5%; top: 72%; }
  .orbit { right: 6%; top: 46%; transform: scale(.85); }
  .node-core-l { right: 5%; top: 88%; }
  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: baseline; gap: 10px; }
  .pill-grey { padding: 8px 16px; }
}
