
:root {
  --board: #F3F5F4;
  --paper: #FBFCFB;
  --ink: #17202B;
  --ink-soft: #4A5562;
  --rule: #D2D9D7;
  --blue: #2453B3;
  --blue-ink: #1B3F8A;
  --red: #B23A2C;
  --select: #C9D7F4;

  --sans: "Schibsted Grotesk", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --hand: "WenKai Board", "Kaiti SC", "STKaiti", "KaiTi", serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --board: #1D2624;
    --paper: #232D2B;
    --ink: #E7EDEB;
    --ink-soft: #A9B5B2;
    --rule: #3A4744;
    --blue: #8EB0F5;
    --blue-ink: #B5CBFA;
    --red: #F08C7C;
    --select: #34508A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --board: #1D2624; --paper: #232D2B; --ink: #E7EDEB; --ink-soft: #A9B5B2;
  --rule: #3A4744; --blue: #8EB0F5; --blue-ink: #B5CBFA; --red: #F08C7C; --select: #34508A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--select); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--rule) var(--board); }

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

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }
strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--board) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.lang {
  font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--ink); background: none; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 3px 12px;
}
.lang:hover { border-color: var(--ink-soft); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.foot { width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px);
}
.hero h1 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem); letter-spacing: -0.035em; line-height: 1; }

/* the slash line: the roles, separated by marker slashes */
.roles { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); font-weight: 600; line-height: 1.35; }
.roles li { display: inline-flex; align-items: baseline; }
.roles li:not(:last-child)::after { content: "/"; font-family: var(--hand); font-weight: 400; color: var(--red); font-size: 1.25em; margin: 0 .38em; transform: translateY(.04em) rotate(4deg); display: inline-block; }
.roles a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s cubic-bezier(.2,.8,.2,1), color .15s; }
.roles a:hover, .roles a:focus-visible { color: var(--blue); background-size: 100% 2px; }
html[data-lang="en"] .roles { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); letter-spacing: -0.01em; }
.lede { text-wrap: pretty; margin-top: 24px; font-size: var(--step-1); line-height: 1.65; color: var(--ink-soft); max-width: 34em; }
html[data-lang="en"] .lede { font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 20px;
  font: inherit; font-size: var(--step-0); font-weight: 600;
  border-radius: 10px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .btn.primary:hover { color: #0F1A33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .btn.primary:hover { color: #0F1A33; } }
.fine { font-size: var(--step--1); color: var(--ink-soft); margin-top: 12px; }

/* the whiteboard */
.board { margin: 0; }
.diagram { width: 100%; aspect-ratio: 640 / 350; }
.diagram svg.tall .t-main { font-size: 16.5px; }
.diagram svg.tall .t-sub { font-size: 12.5px; }
.diagram svg.tall .t-edge { font-size: 12.5px; }
.diagram svg { width: 100%; height: 100%; display: block; overflow: visible; }
.diagram text { font-family: var(--hand); fill: var(--ink); }
.diagram .node { cursor: pointer; }
.diagram .node .hit { fill: transparent; transition: fill .15s; }
.diagram .node:hover .hit, .diagram .node:focus-visible .hit { fill: color-mix(in srgb, var(--blue) 10%, transparent); }
.diagram .node:focus { outline: none; }
.diagram .node:focus-visible .hit { stroke: var(--blue); stroke-width: 2; }
.diagram .t-main { font-size: 19px; }
.diagram .t-sub { font-size: 14.5px; fill: var(--ink-soft); }
.diagram .t-edge { font-size: 13.5px; fill: var(--red); }
html[data-lang="en"] .diagram .t-main { font-size: 17px; }
html[data-lang="en"] .diagram svg.tall .t-main { font-size: 15px; }
html[data-lang="en"] .diagram svg.tall .t-sub { font-size: 11.5px; }
html[data-lang="en"] .diagram .t-sub, html[data-lang="en"] .diagram .t-edge { font-size: 13px; }
.board figcaption { font-family: var(--hand); color: var(--ink-soft); font-size: var(--step--1); text-align: right; margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .diagram.drawing path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .55s cubic-bezier(.22,.8,.3,1) forwards; animation-delay: var(--d); }
  .diagram.drawing text { opacity: 0; animation: ink .4s ease-out forwards; animation-delay: var(--d); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { opacity: 1; } }

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
section.hero { border-top: 0; }
section { scroll-margin-top: 64px; }
section h2 { font-size: var(--step-2); letter-spacing: -0.015em; }
.section-lede { margin-top: 16px; max-width: 40em; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.6; }
html[data-lang="en"] .section-lede { font-size: 1.12rem; }
h3 { font-size: var(--step-1); }
.sub { font-weight: 500; color: var(--ink-soft); font-size: .78em; margin-left: .25em; }

/* one section per role: the role name on the left, the content on the right */
.facet { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.facet-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.facet.aside .facet-side > h2::before { content: none; }
.facet-side > h2::before { content: "/"; font-family: var(--hand); font-weight: 400; color: var(--red); margin-right: .3em; display: inline-block; transform: rotate(4deg); }
.facet-body > .section-lede:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); }
.prose { font-size: var(--step-0); }
.prose p { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
html[data-lang="zh"] .prose p { max-width: 33em; }
.facts { margin: 0; align-self: start; border-top: 1.5px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-soft); font-size: var(--step--1); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; }

/* coaching */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.price { padding: 24px 32px 28px 0; }
.price + .price { padding-left: 32px; border-left: 1px solid var(--rule); }
.price .amount { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 12px; font-variant-numeric: tabular-nums; }
.price .unit { font-size: var(--step-0); font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.price p:not(.amount) { color: var(--ink-soft); max-width: 30em; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); margin-top: 48px; }
.book { margin-top: 48px; }
.book p { max-width: 40em; }
.cols h3, .book h3, .split h3, .cases h3 { margin-bottom: 16px; }
.split { margin-top: 40px; }
.facet-body > .split:first-child { margin-top: 0; }
.cases { margin-top: 48px; }
.cases li p:not(.case-name) { color: var(--ink-soft); max-width: 44em; margin-top: 4px; }
.case-name { font-weight: 600; }
.cases .plain li { padding: 14px 0; }
.book + .book { margin-top: 48px; }
.plain, .links { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.plain li:first-child { border-top: 1px solid var(--rule); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 2.4em; border-bottom: 1px solid var(--rule); }
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 10px;
  font-family: var(--hand); font-size: 1.25rem; line-height: 1.5; color: var(--red);
}
.note { margin-top: 14px; color: var(--ink-soft); font-size: var(--step--1); }
.book p + p { margin-top: 1em; }
.links li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.links li:first-child { border-top: 1px solid var(--rule); }
.links a { font-weight: 500; }
.talks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.talks li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.talks a { font-weight: 600; text-decoration: none; }
.talks a:hover { text-decoration: underline; }
.talks .meta { color: var(--ink-soft); font-size: var(--step--1); white-space: nowrap; }

/* apps */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 40px; }
.shot { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(23, 32, 43, .45), 0 2px 6px rgba(23, 32, 43, .12); }
.shot img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.02); }
.feature-text h3 { font-size: var(--step-2); }
.feature-text p:not(.stack) { margin-top: 14px; color: var(--ink-soft); }
.stack { margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); }
.app-list .stack { margin-top: 10px; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; }

.app-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 80px); }
.app-list li { padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.app-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.app-head h3 { font-size: var(--step-1); }
.app-list p:not(.stack) { color: var(--ink-soft); max-width: 34em; }
.status { font-size: var(--step--1); color: var(--ink-soft); white-space: nowrap; }
.status.live { font-weight: 600; color: var(--blue); }

/* footer */
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 40px; padding-bottom: 56px; border-top: 1.5px solid var(--ink); }
.foot .fine { margin-top: 4px; }
.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.linkish { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.linkish:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--board); padding: 10px 18px; border-radius: 10px;
  font-size: var(--step--1); font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .board { order: 2; max-width: 640px; }
  .facet, .split, .cols, .feature { grid-template-columns: 1fr; }
  .facet-side > h2 { position: static; }
  .app-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top nav a { display: none; }
  .prices { grid-template-columns: 1fr; }
  .price { padding: 22px 0; }
  .price + .price { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .foot { flex-direction: column; }
  .actions .btn { flex: 1 1 100%; }
  .talks li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .toast, .btn { transition: none; }
}

/* ===== v3: visitor paths, ask box, next steps, AI chat ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill {
  font: inherit; font-size: var(--step--1); font-weight: 600; cursor: pointer;
  color: #fff; background: var(--blue); border: 0; border-radius: 999px; padding: 5px 14px;
  transition: background-color .15s, transform .1s;
}
.pill:hover { background: var(--blue-ink); }
.pill:active { transform: translateY(1px); }
.top nav .navlink { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); font-weight: 500; }

/* hero question box */
.ask {
  margin-top: 28px; display: flex; flex-direction: column; gap: 12px;
  padding: 18px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 16px 32px -20px rgba(23, 32, 43, .4);
}
.ask label { font-weight: 600; }
.ask-row { display: flex; gap: 8px; }
.ask input, .chat-form input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--board);
  caret-color: var(--blue);
}
.ask input::placeholder, .chat-form input::placeholder { color: var(--ink-soft); opacity: .8; }
.ask input:focus-visible, .chat-form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ask .btn { min-height: 44px; }
.ask .fine { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.col { flex-direction: column; align-items: flex-start; }
.chip {
  font: inherit; font-size: 14.5px; text-align: left; line-height: 1.4; cursor: pointer;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--board); color: var(--ink);
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* "you're probably here because…" */
.paths h2 { font-size: var(--step-2); }
.path-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.path { display: flex; flex-direction: column; gap: 12px; padding: 24px; color: var(--ink); text-decoration: none; border-left: 1px solid var(--rule); transition: background-color .2s; }
.path:first-child { padding-left: 0; border-left: 0; }
.path:last-child { padding-right: 0; }
.path h3 { font-size: 1.2rem; line-height: 1.4; }
.path p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.path .go { color: var(--blue); font-weight: 600; font-size: .97rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.path:hover { color: var(--ink); }
.path:hover .go { text-decoration-thickness: 2px; }

/* AI capabilities: a 2x2 ruled grid */
.caps { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.caps > div { padding: 20px 28px 20px 0; border-bottom: 1px solid var(--rule); }
.caps > div:nth-child(even) { padding: 20px 0 20px 28px; border-left: 1px solid var(--rule); }
.caps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.caps p { color: var(--ink-soft); font-size: .97rem; }
.cases p { color: var(--ink-soft); max-width: 40em; }
.cases p + p { margin-top: 12px; }
.cases strong { color: var(--ink); }

/* next step row at the end of every section */
.next { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.next .fine { margin-top: 0; }

.cols .plain li strong { color: var(--ink); }
.cols .plain li { color: var(--ink-soft); }
.sd { margin-top: 48px; }
.sd h3, .talks-wrap h3 { margin-bottom: 16px; }
.steps-row { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.steps-row li { counter-increment: s; padding: 18px 24px; border-left: 1px solid var(--rule); color: var(--ink-soft); font-size: .97rem; }
.steps-row li:first-child { padding-left: 0; border-left: 0; }
.steps-row li:last-child { padding-right: 0; }
.steps-row li::before { content: counter(s); display: block; font-family: var(--hand); color: var(--red); font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.talks-wrap { margin-top: 56px; }

.facet-body.prose > p + p { margin-top: 1em; }
.facet-body.prose > p:not(.section-lede) { color: var(--ink-soft); max-width: 40em; }

.mini-list { list-style: none; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mini-list h3 { font-size: 1.08rem; margin-bottom: 6px; }
.mini-list p { color: var(--ink-soft); font-size: .97rem; }

/* floating button + chat panel */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  font: inherit; font-weight: 600; color: #fff; background: var(--blue); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(36, 83, 179, .65);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1), background-color .15s;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--blue-ink); }
body.chat-on .fab { opacity: 0; pointer-events: none; }
:root[data-theme="dark"] .fab, :root[data-theme="dark"] .pill { color: #0F1A33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fab, :root:not([data-theme="light"]) .pill { color: #0F1A33; } }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 96px));
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 0 28px 56px -24px rgba(23, 32, 43, .5), 0 2px 8px rgba(23, 32, 43, .12);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .2s ease-out, transform .28s cubic-bezier(.2,.8,.2,1);
}
.chat[hidden] { display: none; }
.chat.open { opacity: 1; transform: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.chat-title { font-weight: 700; font-size: 1.05rem; }
.chat-sub { font-size: 13px; color: var(--ink-soft); }
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 10px; background: var(--board); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-soft); }
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.chat-empty { display: flex; flex-direction: column; gap: 14px; }
.chat-empty[hidden] { display: none; }
.chat-empty > p { font-size: 15.5px; line-height: 1.6; }
.msg { display: flex; }
.msg p { max-width: 88%; padding: 9px 13px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { justify-content: flex-end; }
.msg.me p { background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.bot p { background: color-mix(in srgb, var(--ink) 6%, var(--paper)); border-radius: 14px 14px 14px 4px; }
.msg.wait p { color: var(--ink-soft); }
.msg.err p { color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--paper)); }
:root[data-theme="dark"] .msg.me p { color: #0F1A33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg.me p { color: #0F1A33; } }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--rule); }
.chat-form .btn { min-height: 44px; padding: 8px 16px; }
.chat-form .btn:disabled { opacity: .55; cursor: progress; }
.chat-foot { padding: 0 14px 12px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path:nth-child(3) { padding-left: 0; border-left: 0; }
  .path:nth-child(2) { padding-right: 0; }
  .path:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .mini-list { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .top nav .navlink { display: none; }
  .path-grid { grid-template-columns: 1fr; }
  .path, .path:nth-child(n) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .path:first-child { border-top: 0; }
  .caps { grid-template-columns: 1fr; }
  .caps > div, .caps > div:nth-child(even) { padding: 18px 0; border-left: 0; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row li, .steps-row li:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .ask-row { flex-direction: row; }
  .chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(78dvh, 640px); }
  .fab { right: 16px; bottom: 16px; }
  .next .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .chat, .fab, .path, .chip { transition: none; }
}

/* ===== line breaking ===== */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
/* Chinese headings, labels and buttons break only at spaces and punctuation, never mid-phrase */
html[data-lang="zh"] :is(h1, h2, h3, .btn, .chip, .go, .pill, .status, .meta, .talks a, dt, label) {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
html[data-lang="zh"] :is(p, li, dd) { line-break: strict; }
@media (min-width: 901px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero h1 { white-space: nowrap; font-size: clamp(2.5rem, 1.4rem + 3.3vw, 4.4rem); }
.roles li { white-space: nowrap; }
@media (min-width: 901px) { .facet { grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr); } }
.facet-side > h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.3; }
.btn { text-wrap: balance; text-align: center; }
@media (max-width: 420px) {
  .roles li { white-space: normal; }
}

/* ===== v4: hub diagram (replaces the hand-drawn board) ===== */
:root { --hand: var(--sans); --wire: #C3CCCA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wire: #46534F; } }
:root[data-theme="dark"] { --wire: #46534F; }
.roles li:not(:last-child)::after, .facet-side > h2::before { font-family: var(--sans); font-weight: 300; color: var(--blue); transform: none; }
.steps-row li::before { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.board figcaption { font-family: var(--sans); font-size: var(--step--1); margin-top: 14px; text-align: center; }

.hubmap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "ai . coach" ". hub ." "op . com";
  align-items: center; gap: 22px 28px;
  padding: 8px 0;
}
.hubmap .wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wire { fill: none; stroke: var(--wire); stroke-width: 1.5; transition: stroke .2s; }
.wire.hot { stroke: var(--blue); stroke-width: 2; }
.wire-end { fill: var(--paper); stroke: var(--wire); stroke-width: 1.5; transition: stroke .2s, fill .2s; }
.wire-end.hot { stroke: var(--blue); fill: var(--blue); }
.pulse { fill: var(--blue); opacity: .85; }

.node {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 76px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 32, 43, .05), 0 10px 24px -18px rgba(23, 32, 43, .35);
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.2,.8,.2,1);
}
.node:hover, .node:focus-visible { color: var(--ink); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(23, 32, 43, .05), 0 16px 28px -18px rgba(36, 83, 179, .45); }
.node[data-k="ai"] { grid-area: ai; }
.node[data-k="coach"] { grid-area: coach; }
.node[data-k="op"] { grid-area: op; }
.node[data-k="com"] { grid-area: com; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 10%, var(--paper)); color: var(--blue); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.node-txt strong { font-weight: 600; font-size: 1rem; }
.node-txt small { font-size: .84rem; color: var(--ink-soft); margin-top: 2px; }

.hub {
  grid-area: hub; position: relative; z-index: 1; justify-self: center;
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--ink); color: var(--board);
  box-shadow: 0 0 0 8px var(--board), 0 0 0 9px var(--wire), 0 18px 36px -16px rgba(23, 32, 43, .55);
}
.hub .mono { font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.hub .hub-name { font-size: .72rem; font-weight: 500; opacity: .75; letter-spacing: .01em; }


@media (max-width: 600px) {
}
@media (prefers-reduced-motion: reduce) { .node, .wire, .wire-end { transition: none; } }

/* ===== v5: tabs, coaching services, projects ===== */
.top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand tabs actions"; align-items: center; gap: 12px 24px; }
.top .brand { grid-area: brand; }
.top-actions { grid-area: actions; display: flex; align-items: center; gap: 12px; }
.tabs { grid-area: tabs; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); font-weight: 500;
  transition: background-color .15s, color .15s;
}
.tabs a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tabs a.on { color: var(--ink); background: var(--paper); font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule); }
.panel[hidden] { display: none !important; }
.panel { animation: panel-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel > section:first-child { border-top: 0; }
.panel:not([data-tab="home"]) > section { padding-top: clamp(40px, 6vw, 72px); min-height: 60vh; }
[tabindex="-1"]:focus { outline: none; }

.services { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.services > div { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--rule); }
.services > div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--rule); }
.services h3 { font-size: 1.08rem; margin-bottom: 6px; }
.services p { color: var(--ink-soft); font-size: .97rem; }
.services + .note { margin-top: 14px; }
.cols.how { margin-top: 48px; }
.steps-row.v { grid-template-columns: 1fr; }
.steps-row.v li, .steps-row.v li:first-child { display: grid; grid-template-columns: 1.6em 1fr; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
.steps-row.v li::before { margin: 0; line-height: 1.6; font-size: 1rem; }

.projects h2 { font-size: var(--step-2); }
.projects .feature { margin-top: 48px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.projects .feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.projects .feature.flip .shot { order: 2; }
.projects .feature .status { font-size: var(--step--1); font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.projects .shot { border: 1px solid var(--rule); }
.projects .mini-list { margin-top: 64px; }

@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "tabs tabs"; padding-bottom: 8px; }
  .top-actions { justify-self: end; }
  .tabs { justify-content: flex-start; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .services > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .projects .feature, .projects .feature.flip { grid-template-columns: 1fr; }
  .projects .feature.flip .shot { order: 0; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .services > div, .services > div:nth-child(even) { padding: 16px 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
@media (max-width: 600px) { .top .tabs a { display: inline-block; } }

.node { min-width: 0; }

/* hub on the left, four lines of work fanning out to the right */
.hubmap { grid-template-columns: 124px minmax(0, 1fr); grid-template-areas: "hub ai" "hub coach" "hub com" "hub op"; gap: 14px 72px; }
.hub { align-self: center; }
.node { min-height: 0; padding: 12px 16px; }
@media (max-width: 1100px) { .hubmap { gap: 12px 48px; } }
@media (max-width: 600px) {
  .hubmap { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "hub ai" "hub coach" "hub com" "hub op"; gap: 10px 30px; }
  .hub { width: 76px; height: 76px; margin: 0; box-shadow: 0 0 0 5px var(--board), 0 0 0 6px var(--wire), 0 12px 24px -12px rgba(23, 32, 43, .5); }
  .hub .mono { font-size: 1.35rem; }
  .hub .hub-name { display: none; }
  .node { flex-direction: row; align-items: center; padding: 10px 12px; }
  .ico { display: none; }
  .node-txt strong { font-size: .95rem; }
}

/* photos */
.id-row { display: flex; align-items: center; gap: 22px; }
.avatar { width: 92px; height: 92px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--board), 0 0 0 5px var(--rule), 0 12px 24px -12px rgba(23, 32, 43, .45); }
.side-photo { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 18px 36px -20px rgba(23, 32, 43, .45); }
@media (max-width: 900px) {
  .facet-side { position: static; }
  .side-photo { max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
}
@media (max-width: 600px) {
  .avatar { width: 64px; height: 64px; }
  .id-row { gap: 14px; }
}

/* ===== CAILIF block ===== */
.org { margin-top: 36px; padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 18px 36px -26px rgba(23, 32, 43, .4); }
.org-head { display: flex; align-items: center; gap: 16px; }
.org-logo { width: 56px; height: auto; border-radius: 10px; flex: none; }
.org-head h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.org-name { color: var(--ink-soft); font-size: .95rem; }
.org-role { margin-top: 18px; font-weight: 600; }
.org > p:not(.org-role):not(.org-invite) { margin-top: 10px; color: var(--ink-soft); max-width: 44em; }
.org-programs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.org-programs li { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); font-size: .97rem; }
.org-programs strong { color: var(--ink); font-weight: 600; margin-right: .5em; }
.org-invite { margin-top: 18px; font-weight: 500; }
.org .next { margin-top: 18px; }
.muted { color: var(--ink-soft); }
.cols.how .next { margin-top: 16px; }
@media (max-width: 600px) { .org { padding: 20px 16px; } .org-programs strong { display: block; } }

.org-logo { background: #fff; border: 1px solid var(--rule); }

/* booking */
.pill-outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); text-decoration: none; }
.pill-outline:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue-ink); }
:root[data-theme="dark"] .pill-outline { color: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-outline { color: var(--blue); } }
.hero .actions { margin-top: 26px; }
.hero .actions + .ask { margin-top: 22px; }
.chat-foot .book-link { font-weight: 600; }
@media (max-width: 380px) { .top-actions { gap: 6px; } .top-actions .pill { padding: 5px 10px; } }
.top-actions .pill, .top-actions .lang { white-space: nowrap; }
@media (max-width: 600px) { .top-actions .ask-open { display: none; } }
@media (max-width: 400px) { .hero h1 { font-size: 2.15rem; } .avatar { width: 54px; height: 54px; } .id-row { gap: 12px; } }

.msg.bot a { color: var(--blue); font-weight: 500; overflow-wrap: anywhere; }

.projects .shot.bare { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.projects .shot.bare:hover img { transform: none; }

/* people I'd like to meet (home) */
.meet h2 { font-size: var(--step-2); }
.meet-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 64px); }
.meet-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.meet-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.meet .next { margin-top: 28px; }
@media (max-width: 700px) { .meet-list { grid-template-columns: 1fr; } }

/* seven steps (AI tab) */
.steps-row.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.steps-row.seven li { padding: 16px 14px; font-size: .9rem; }
.steps-row.seven li:first-child { padding-left: 0; }
.steps-row.seven li:last-child { padding-right: 0; }
.steps-row.seven strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
@media (max-width: 1100px) { .steps-row.seven { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps-row.seven li:nth-child(5) { padding-left: 0; border-left: 0; } .steps-row.seven li:nth-child(n+5) { border-top: 1px solid var(--rule); } }
@media (max-width: 600px) { .steps-row.seven { grid-template-columns: 1fr; } .steps-row.seven li, .steps-row.seven li:nth-child(n) { padding: 12px 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--rule); } }

/* v7 readability: one short lead line, then body-size paragraphs */
.lede { color: var(--ink); font-weight: 500; line-height: 1.5; max-width: 26em; }
html[data-lang="en"] .lede { font-size: var(--step-1); }
.lede-more { margin-top: 12px; font-size: var(--step-0); line-height: 1.75; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.section-lede { color: var(--ink); font-weight: 500; line-height: 1.5; max-width: 30em; }
html[data-lang="en"] .section-lede { font-size: var(--step-1); }
.body-copy { margin-top: 12px; font-size: var(--step-0); line-height: 1.75; color: var(--ink-soft); max-width: 38em; text-wrap: pretty; }
html[data-lang="zh"] :is(.lede-more, .body-copy, .feature-text p, .org > p, .services p) { line-height: 1.85; }
.feature-text p.lead-in { color: var(--ink); font-weight: 500; font-size: 1.08em; }
.org > p:not(.org-role):not(.org-invite) + p { margin-top: 6px; }

/* book */
.book { margin-top: 32px; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 18px 36px -28px rgba(23,32,43,.4); max-width: 46em; }
.book-cover img { display: block; width: 100%; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 28px -12px rgba(23,32,43,.55); transition: transform .2s ease; }
.book-cover:hover img { transform: translateY(-3px); }
.book .kicker { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--blue); }
.book h3 { margin-top: 4px; font-size: var(--step-1); line-height: 1.3; }
.book h3 .sub { display: block; font-weight: 500; color: var(--ink-soft); font-size: .8em; }
.book-text > p:not(.kicker) { margin-top: 10px; color: var(--ink-soft); max-width: 36em; }
.book .next { margin-top: 16px; }
@media (max-width: 560px) { .book { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; } .book-cover { width: 112px; } }
.book, .book-text, .facet-body { min-width: 0; }
.book .text-link { margin-top: 0; }

/* channels */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 20px; max-width: 46em; }
.channels a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.channels a:hover { border-color: var(--blue); transform: translateY(-2px); }
.ch-name { font-size: var(--step--1); font-weight: 600; color: var(--blue); }
.ch-handle { font-weight: 600; }
.ch-desc { font-size: var(--step--1); color: var(--ink-soft); }
/* roles read as a tagline, so the lead sentence carries the weight */
.roles { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); }
html[data-lang="en"] .roles { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); letter-spacing: 0; }
.roles + .lede { margin-top: 28px; }
/* lead lines: hierarchy by size and colour only, never bold */
.lede, .section-lede, .feature-text p.lead-in { font-weight: 400; }
/* book: compact row under services */
.book { margin-top: 28px; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 16px 18px; align-items: center; max-width: 40em; box-shadow: none; }
.book h3 { margin-top: 2px; font-size: var(--step-0); }
.book h3 .sub { display: inline; font-size: 1em; }
.book h3 .sub::before { content: ": "; }
.book-text > p:not(.kicker) { margin-top: 4px; font-size: var(--step--1); line-height: 1.6; }
.book .next { margin-top: 8px; gap: 6px 18px; }
.book .text-link { margin-top: 0; font-size: var(--step--1); }
.book-cover img { box-shadow: 0 8px 16px -8px rgba(23,32,43,.5); }
@media (max-width: 560px) { .book { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px; } .book-cover { width: auto; } }
.book h3 .sub { margin-left: 0; }
/* calmer lead size */
.lede, .section-lede { font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.27rem); }
html[data-lang="en"] .lede, html[data-lang="en"] .section-lede { font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem); }
.lede-more, .body-copy { font-size: 1rem; }
/* opening sentence: same size as the paragraphs below, slightly darker */
.lede, .section-lede, html[data-lang="en"] .lede, html[data-lang="en"] .section-lede { font-size: 1rem; line-height: 1.75; font-weight: 400; color: var(--ink); max-width: 34em; }
html[data-lang="zh"] :is(.lede, .section-lede) { line-height: 1.85; }
.lede-more, .body-copy { margin-top: 10px; }
/* Xiaohongshu card: QR for desktop visitors (the web profile often asks to log in) */
.channels a.ch-xhs { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
.ch-xhs > span { grid-column: 1; }
.ch-id { font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ch-qr { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 74px; height: 74px; padding: 5px; background: #FFFFFF; border-radius: 8px; border: 1px solid var(--rule); }
@media (hover: none), (max-width: 560px) { .ch-qr { display: none; } .channels a.ch-xhs { grid-template-columns: 1fr; } }
.channels a { align-content: start; }
