/* Self-hosted Noto Sans SC / Noto Serif SC (SIL OFL 1.1), subset to the characters on this page */
@font-face { font-family: "Noto Sans SC"; src: url("fonts/noto-sans-sc-var.woff2?v=3864e8ea") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif SC"; src: url("fonts/noto-serif-sc-var.woff2?v=197c1572") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #EEF0F3;
  --surface: #FFFFFF;
  --ink: #121521;
  --ink-2: #353A4A;
  --muted: #5D6372;
  --line: #D9DCE3;
  --line-2: #E6E8ED;
  --cloud: #2B59E0;
  --ai: #7B3FE4;
  --seo: #0A8466;
  --team: #C2470F;
  --block-bg: #121521;
  --block-fg: #FFFFFF;
  --pill-fg: #FFFFFF;

  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(16px, 4.4vw, 56px);
  --max: 1120px;
  --rail: 200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1118; --surface: #171A24; --ink: #EDEFF5; --ink-2: #C5CAD6; --muted: #8E95A6; --line: #2A2F3D; --line-2: #1F2330;
    --cloud: #6A8CF3; --ai: #A47BF2; --seo: #2BB38D; --team: #E7743A;
    --block-bg: #EDEFF5; --block-fg: #0F1118; --pill-fg: #0F1118; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1118; --surface: #171A24; --ink: #EDEFF5; --ink-2: #C5CAD6; --muted: #8E95A6; --line: #2A2F3D; --line-2: #1F2330;
  --cloud: #6A8CF3; --ai: #A47BF2; --seo: #2BB38D; --team: #E7743A;
  --block-bg: #EDEFF5; --block-fg: #0F1118; --pill-fg: #0F1118; color-scheme: dark;
}

/* family colour resolves from data-f anywhere on the page */
[data-f="cloud"] { --c: var(--cloud); }
[data-f="ai"] { --c: var(--ai); }
[data-f="seo"] { --c: var(--seo); }
[data-f="team"] { --c: var(--team); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cloud); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ink); color: var(--bg); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Solar duotone icons: the secondary layer carries its own .5 opacity, so one colour drives both tones */
.ic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; color: inherit; }
.mk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

/* ---------- Sticky bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transform: translateY(-101%); transition: transform .45s var(--ease);
}
.bar.is-on { transform: none; }
.bar-in { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); height: 60px; display: flex; align-items: center; gap: 20px; }
.bar-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--serif); letter-spacing: .06em; }
.bar-mark img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bar-nav { display: flex; gap: 2px; margin-left: 12px; }
.bar-nav a { padding: 6px 11px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .25s, background-color .25s; }
.bar-nav a:hover { color: var(--ink); }
.bar-nav a.is-on { color: var(--ink); background: var(--surface); }
.bar-fam { margin-left: auto; display: flex; gap: 4px; }
.bar-fam button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 8px; border-radius: 999px;
  font-size: 13px; color: var(--muted); border: 1px solid transparent;
  transition: color .25s, background-color .25s, border-color .25s;
}
.bar-fam button .ic { width: 17px; height: 17px; color: var(--c); transition: transform .35s var(--ease), color .25s; }
.bar-fam button:hover .ic { transform: rotate(-8deg) scale(1.1); }
.bar-fam button:hover { color: var(--ink); border-color: var(--line); }
.bar-fam button[aria-pressed="true"] { background: var(--c); color: var(--pill-fg); }
.bar-fam button[aria-pressed="true"] .ic { color: var(--pill-fg); }
.bar-print {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500;
  transition: transform .3s var(--ease), opacity .25s;
}
.bar-print .ic { width: 18px; height: 18px; }
.bar-print:hover { opacity: .86; }
.bar-print:active { transform: scale(.96); }
.bar-progress { height: 1px; background: var(--line); }
.bar-progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: 92svh; min-height: 660px; max-height: 960px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--bg);
}
.hero-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 16px; padding: 22px var(--gut) 0; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface); }
.who p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.who b { display: block; color: var(--ink); font-size: 16px; }
.contact { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.contact a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-variant-numeric: tabular-nums;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.contact a .ic { width: 17px; height: 17px; color: var(--cloud); }
.contact a:hover { border-color: var(--ink); }
.contact a:active { transform: scale(.97); }

.hero-copy { position: relative; z-index: 3; margin: clamp(28px, 6vh, 60px) var(--gut) 0; max-width: 640px; width: max-content; }
.hero-line { font: 700 clamp(20px, 2.1vw, 25px)/1.6 var(--serif); color: var(--ink-2); max-width: 26em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legend button {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 7px 14px 7px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background-color .25s, color .25s;
}
.legend button .ic { width: 18px; height: 18px; color: var(--c); transition: transform .4s var(--ease), color .25s; }
.legend button:hover .ic { transform: rotate(-10deg) scale(1.12); }
.legend button:hover { border-color: var(--c); }
.legend button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--pill-fg); }
.legend button[aria-pressed="true"] .ic { color: var(--pill-fg); }
.hero-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hint .ic { width: 16px; height: 16px; }
.tidy {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500;
  padding: 5px 12px 5px 9px; border-radius: 999px; border: 1px dashed var(--muted); color: var(--ink-2);
  transition: border-color .25s, color .25s, background-color .25s;
}
.tidy .ic { width: 17px; height: 17px; transition: transform .45s var(--ease); }
.tidy:hover .ic { transform: rotate(-12deg); }
.tidy:hover { border-style: solid; border-color: var(--ink); color: var(--ink); }
.tidy[aria-pressed="true"] { border-style: solid; background: var(--ink); color: var(--bg); border-color: var(--ink); }

.name {
  position: absolute; z-index: 1; left: 50%; top: 66%;
  transform: translate(-50%, -50%);
  font: 900 clamp(108px, 18.5vw, 270px)/1 var(--serif);
  letter-spacing: .02em; white-space: nowrap; color: var(--ink);
  user-select: none; pointer-events: none;
  transition: opacity .6s var(--ease), filter .6s var(--ease);
}
.name span { display: block; line-height: .86; padding-top: .02em; }
.hero.is-tidy .name { opacity: .07; }

.world { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pill[hidden], .block[hidden] { display: none; }
.pill, .block {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  user-select: none; -webkit-user-select: none; touch-action: none;
  will-change: transform; cursor: grab;
  transform: translate(-999px, -999px);
}
.pill {
  white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1;
  padding: 11px 17px; border-radius: 999px; color: var(--pill-fg); background: var(--c);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), 0 8px 18px -10px rgba(18, 21, 33, .55);
  transition: box-shadow .3s var(--ease), filter .3s;
}
.block {
  display: grid; gap: 4px; padding: 14px 20px 14px 18px; border-radius: 18px;
  background: var(--block-bg); color: var(--block-fg);
  border-left: 6px solid var(--c);
  box-shadow: 0 14px 26px -14px rgba(18, 21, 33, .6);
}
.block b { font: 900 34px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.block small { font-size: 12.5px; line-height: 1.3; opacity: .72; white-space: nowrap; }
.pill.is-drag, .block.is-drag { cursor: grabbing; }
.pill.is-hot { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 10px 22px -8px var(--c); }
.world.has-focus .pill:not(.is-hot), .world.has-focus .block:not(.is-hot) { filter: saturate(.2) opacity(.45); }
.world.is-tidy .pill, .world.is-tidy .block { cursor: pointer; transition: transform .8s var(--ease) calc(var(--k, 0) * 14ms), box-shadow .3s, filter .3s; }

.tip {
  position: absolute; z-index: 5; width: min(330px, calc(100% - 32px));
  padding: 14px 16px 14px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(18, 21, 33, .45);
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
  opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.tip::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--c); }
.tip.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tip strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.tip > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.tip a {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--c);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.tip a:hover { background-size: 100% 1px; }
.tip a .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tip a:hover .ic { transform: translateX(3px); }

/* ---------- Reading layer ---------- */
.read { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sec { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 48px; padding-top: clamp(72px, 9vw, 120px); }
#figures { padding-top: 40px; }
.sec > h2 { display: flex; align-items: center; gap: 10px; font: 700 24px/1.4 var(--serif); padding-top: 10px; border-top: 2px solid var(--ink); align-self: start; position: sticky; top: 80px; }
.sec > h2 .ic { width: 26px; height: 26px; }
.sec-body { border-top: 1px solid var(--line); padding-top: 6px; min-width: 0; }

/* family focus: dim what doesn't belong */
[data-f] { transition: opacity .4s var(--ease); }
body[data-focus] .read [data-f] { opacity: .3; }
body[data-focus="cloud"] .read [data-f="cloud"],
body[data-focus="ai"] .read [data-f="ai"],
body[data-focus="seo"] .read [data-f="seo"],
body[data-focus="team"] .read [data-f="team"] { opacity: 1; }
body[data-focus] .read [data-f] .mk { transform: scale(1); }
body[data-focus="cloud"] .read [data-f="cloud"] .mk,
body[data-focus="ai"] .read [data-f="ai"] .mk,
body[data-focus="seo"] .read [data-f="seo"] .mk,
body[data-focus="team"] .read [data-f="team"] .mk { transform: scale(1.5); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }

.figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.figures li { padding: 22px 16px 4px 0; }
.figures li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.figures b { display: block; font: 900 clamp(32px, 3.6vw, 46px)/1.05 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.figures b small { font-size: .42em; font-weight: 700; margin-left: 3px; color: var(--c); }
.figures p { margin-top: 12px; display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.figures p .mk { transform: translateY(-1px); }

.lede { margin-top: 18px; font: 700 clamp(19px, 2.1vw, 23px)/1.75 var(--serif); max-width: 34em; text-wrap: pretty; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 36px; }
.cols article { border-top: 3px solid var(--c); padding-top: 16px; }
.cols h3 { display: flex; align-items: center; gap: 8px; font: 700 16px/1.5 var(--sans); margin-bottom: 8px; }
.cols h3 .ic { width: 22px; height: 22px; color: var(--c); }
.cols p { font-size: 15px; line-height: 1.85; color: var(--ink-2); }

/* career route map */
.sec-route > h2 { grid-row: 1; position: static; }
.route-head { grid-column: 2; border-top: 1px solid var(--line); padding-top: 14px; }
.route-sub { font-size: 15px; line-height: 1.8; color: var(--ink-2); max-width: 46em; }
.route-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.route-legend button {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 700;
  transition: border-color .25s, background-color .25s;
}
.route-legend .ic { width: 18px; height: 18px; color: var(--c); }
.route-legend i { position: relative; width: 26px; height: 6px; border-radius: 3px; background: var(--c); }
.route-legend i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); }
.route-legend small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.route-legend button:hover { border-color: var(--c); }
.route-legend button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }

.route { grid-column: 1 / -1; position: relative; margin-top: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.route-scroll { overflow-x: auto; scrollbar-width: thin; }
.route-map { display: block; width: 100%; min-width: 980px; height: auto; }
.route-map .grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.route-map .grid text { fill: var(--muted); font-size: 13px; font-weight: 500; }
.route-map .line { fill: none; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s var(--ease); }
.route-map .line-name { font-size: 13px; font-weight: 700; transition: opacity .35s; }
.route-map .end { font-size: 13px; font-weight: 900; transition: opacity .35s; }
.route-map .st { cursor: pointer; transition: opacity .35s var(--ease); }
.route-map .st .hit { fill: transparent; }
.route-map .st .dot { fill: var(--surface); stroke-width: 4; }
.route-map .st .ix { fill: var(--surface); stroke: var(--ink); stroke-width: 5; }
.route-map .st .halo { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; }
.route-map .st.is-sel .halo { opacity: 1; animation: halo 2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.route-map .st text { fill: var(--ink); font-size: 15px; font-weight: 700; }
.route-map .st text .y { fill: var(--muted); font-size: 12.5px; font-weight: 500; }
.route-map .st:hover text, .route-map .st:focus-visible text { fill: var(--cloud); }
.route-map .st:focus { outline: none; }
.route-map .st:focus-visible .hit { stroke: var(--cloud); stroke-width: 2; stroke-dasharray: 3 3; }
.route-map .train { fill: var(--ink); stroke: var(--surface); stroke-width: 3; }
.route-map .dim { opacity: .13; }
.route-map .st.dim { opacity: .28; }
/* draw in once the map scrolls into view */
.js .route-map .line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .route-map .st, .js .route-map .line-name, .js .route-map .end { opacity: 0; }
.route.is-drawn .route-map .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.6, 0, .25, 1), opacity .35s var(--ease); transition-delay: var(--d, 0s), 0s; }
.route.is-drawn .route-map .st, .route.is-drawn .route-map .line-name, .route.is-drawn .route-map .end { opacity: 1; transition: opacity .5s var(--ease); transition-delay: var(--d, 0s); }
.route.is-drawn .route-map .dim { opacity: .13; transition-delay: 0s; }
.route.is-drawn .route-map .st.dim { opacity: .28; transition-delay: 0s; }
.route-fade, .route-swipe { display: none; }

.route-card {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 48px;
  position: relative; margin-top: 16px; padding: 24px 28px 24px 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.route-card::before { content: ""; position: absolute; left: 14px; top: 24px; bottom: 24px; width: 4px; border-radius: 2px; background: var(--c); transition: background-color .35s var(--ease); }
.route-card.is-swap > * { animation: cardIn .5s var(--ease) both; }
.route-card.is-swap > *:nth-child(2) { animation-delay: .06s; }
@keyframes cardIn { from { opacity: 0; transform: translateX(-10px); } }
.rc-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rc-lines span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.rc-lines .ic { width: 15px; height: 15px; }
.rc-k { font: 700 22px/1.4 var(--serif); }
.rc-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); }
.rc-meta b { color: var(--ink); }
.rc-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--c);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.rc-go:hover { background-size: 100% 1px; }
.rc-go .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.rc-go:hover .ic { transform: translateX(3px); }
.rc-wins { border-top: 1px solid var(--line); }
.rc-wins li { display: grid; grid-template-columns: 8px 1fr; gap: 0 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.rc-wins li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; border: 2px solid var(--c); box-sizing: border-box; }
.sec-route > .sec-body { grid-column: 2; margin-top: 12px; border-top: 0; }

/* glance: the seven-second scan */
.glance-id { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; padding-top: 18px; }
.glance-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.glance-facts > div { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.glance-facts > div.wide { grid-column: 1 / -1; }
.glance-facts dt { font-size: 13px; color: var(--muted); }
.glance-facts dd { font-size: 15px; color: var(--ink-2); }
.glance-facts dd b { font-weight: 700; color: var(--ink); margin-right: 4px; }
.glance-contact { display: grid; gap: 8px; justify-items: stretch; min-width: 230px; }
.glance-contact a, .glance-contact button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.glance-contact .ic { width: 18px; height: 18px; color: var(--cloud); }
.glance-contact a:hover, .glance-contact button:hover { border-color: var(--ink); }
.glance-contact .glance-print { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.glance-contact .glance-print .ic { color: var(--bg); }
.glance .figures { margin-top: 18px; border-top: 1px solid var(--line); }
.figures li.is-await b { opacity: 0; }
.figures li.is-landed b { animation: land .55s var(--ease); }
@keyframes land { 0% { transform: scale(1.08); } 100% { transform: none; } }
.lander b, .lander small { white-space: nowrap; }
.lander { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; will-change: transform, opacity; margin: 0; transition: none !important; }

/* phone reveal: the number is not in the page source */
.tel { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.tel .tel-eye { width: 16px; height: 16px; color: var(--muted); transition: opacity .25s, transform .3s var(--ease); }
.tel:hover .tel-eye { transform: scale(1.15); color: var(--ink); }
.tel.is-on .tel-eye { display: none; }
.tel.is-on span { font-variant-numeric: tabular-nums; animation: telIn .5s var(--ease); }
@keyframes telIn { from { opacity: 0; filter: blur(6px); letter-spacing: .3em; } }
.contact .tel {
  font-size: 14px; padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); transition: border-color .25s var(--ease);
}
.contact .tel .ic:first-child { width: 17px; height: 17px; color: var(--cloud); }
.contact .tel:hover { border-color: var(--ink); }
.foot-links .tel { font-size: 17px; font-weight: 500; padding-bottom: 3px; background-image: linear-gradient(90deg, var(--cloud), var(--ai), var(--seo), var(--team)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.foot-links .tel .ic:first-child { width: 20px; height: 20px; color: var(--muted); }

/* method: five steps on one rail */
.method { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.method::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cloud), var(--ai), var(--seo), var(--team));
  transform-origin: 0 50%; transform: scaleX(var(--rail, 1));
}
.js .method::before { --rail: 0; transition: transform 1.4s cubic-bezier(.6, 0, .25, 1); }
.js .method.is-in::before { --rail: 1; }
.step { position: relative; display: flex; flex-direction: column; }
.step-node {
  position: relative; z-index: 1; width: 47px; height: 47px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: var(--ink);
  transition: border-color .3s var(--ease), transform .4s var(--ease), color .3s;
}
.step-node { font: 700 17px/1 var(--sans); font-variant-numeric: tabular-nums; }
.js .method .step-node { transform: scale(.6); opacity: 0; }
.js .method.is-in .step-node { transform: none; opacity: 1; transition: transform .5s var(--ease), opacity .4s, border-color .3s; transition-delay: calc(var(--k) * 240ms + 150ms); }
.step:hover .step-node { border-color: var(--ink); transform: translateY(-2px); }
.step h4 { margin-top: 14px; font: 700 16.5px/1.45 var(--serif); }
.step-q { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.step-src {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; align-self: flex-start;
  font-size: 13px; font-weight: 500; color: var(--cloud);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.step-src:hover { background-size: 100% 1px; }
.step-src .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.step-src:hover .ic { transform: translateX(3px); }

/* methodology tabs */
.print-only { display: none; }
.m-br { display: none; }
.mtabs { position: relative; display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.mtabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); transition: color .3s; }
.mtabs button .ic { width: 19px; height: 19px; }
.mtabs button[aria-selected="true"] { color: var(--bg); }
.mtabs-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.mpanel { margin-top: 28px; }
.mpanel.is-swap, .spanel.is-swap { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

/* ecosystem flywheel */
.ops { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 40px; align-items: center; }
.wheel { position: relative; width: 100%; aspect-ratio: 1; --c: var(--ai); }
.wheel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel-track { fill: none; stroke: var(--line); stroke-width: 18; }
.wheel-flow { fill: none; stroke: var(--ai); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 12 18; animation: wheelFlow 6s linear infinite; }
@keyframes wheelFlow { to { stroke-dashoffset: -240; } }
.wheel-arrows path { fill: var(--ai); }
.wheel-core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-content: center; justify-items: center; gap: 6px; border-radius: 50%;
  background: var(--ink); color: var(--bg); text-align: center;
}
.wheel-core .ic { width: 30px; height: 30px; color: var(--bg); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wheel-core b { font: 700 17px/1.3 var(--serif); }
.wn {
  position: absolute; display: grid; gap: 2px; padding: 10px 14px; max-width: 46%; text-align: center;
  border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line);
  box-shadow: 0 12px 24px -18px rgba(18, 21, 33, .5);
  animation: wnOn 8s var(--ease) infinite; animation-delay: calc(var(--i) * 2s);
}
.wn span { font-size: 12.5px; color: var(--muted); }
.wn b { font-size: 14.5px; line-height: 1.45; }
.wn-1 { --i: 0; left: 50%; top: 0; transform: translate(-50%, -18%); }
.wn-2 { --i: 1; right: 0; top: 50%; transform: translate(24%, -50%); }
.wn-3 { --i: 2; left: 50%; bottom: 0; transform: translate(-50%, 18%); }
.wn-4 { --i: 3; left: 0; top: 50%; transform: translate(-24%, -50%); }
@keyframes wnOn {
  0%, 20% { border-color: var(--ai); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ai) 16%, transparent), 0 16px 28px -18px var(--ai); }
  30%, 100% { border-color: var(--line); }
}
.wheel:hover .wheel-flow, .wheel:hover .wn, .wheel:hover .wheel-core .ic { animation-play-state: paused; }
.ops-text h3 { font: 700 26px/1.35 var(--serif); }
.ops-text > p { margin-top: 14px; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); --c: var(--ai); }
.ops-proof { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.ops-proof li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.ops-proof .ic { width: 22px; height: 22px; color: var(--ai); margin-top: 1px; }
.ops-proof b { color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; --c: var(--ai); }
.pgroup h4 { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 700 16px/1.4 var(--sans); }
.pgroup h4 .ic { width: 22px; height: 22px; color: var(--ai); }
.pgroup li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pgroup li b { display: block; font: 700 16px/1.5 var(--serif); }
.pgroup li p { margin-top: 4px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.pgroup .basis { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 8px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.pgroup .basis span { align-self: start; font-size: 11.5px; line-height: 1; padding: 4px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ai) 12%, transparent); color: var(--ai); font-weight: 700; margin-top: 1px; }

/* presales sub-panels */
.stabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-2); transition: border-color .25s, background-color .25s, color .25s; }
.stabs button .ic { width: 18px; height: 18px; color: var(--cloud); }
.stabs button:hover { border-color: var(--ink); }
.stabs button[aria-selected="true"] { border-color: var(--cloud); background: color-mix(in srgb, var(--cloud) 10%, var(--surface)); color: var(--ink); }
.spanel { margin-top: 22px; --c: var(--cloud); }
.sp-lead { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); max-width: 46em; }
.sp-lead b { font: 700 19px/1.5 var(--serif); color: var(--ink); margin-right: 6px; }
.sp-base { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.sp-base .ic { width: 22px; height: 22px; color: var(--cloud); }
.sp-base b { color: var(--ink); }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.proofs a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); }
.proofs a:hover { border-color: var(--cloud); transform: translateY(-2px); }
.proofs b { font: 900 24px/1.15 var(--sans); letter-spacing: -.01em; }
.proofs span { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* independent work */
.indie-lede { padding-top: 18px; font: 700 clamp(18px, 2vw, 21px)/1.7 var(--serif); max-width: 34em; }
.indie-lede .xlink { font: inherit; color: var(--seo); }
.indie-lede .xlink .ic { width: .8em; height: .8em; }
.indie-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.indie-toc a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; transition: border-color .25s, transform .3s var(--ease); }
.indie-toc a .ic { width: 18px; height: 18px; color: var(--c); }
.indie-toc a:hover { border-color: var(--c); transform: translateY(-1px); }
.ib { margin-top: 40px; padding-top: 26px; border-top: 2px solid var(--c); scroll-margin-top: 84px; }
.ib-head h3 { display: flex; align-items: center; gap: 10px; font: 700 23px/1.4 var(--serif); }
.ib-head h3 .ic { width: 26px; height: 26px; color: var(--c); }
.ib-head p { margin-top: 6px; font-size: 15px; line-height: 1.8; color: var(--ink-2); max-width: 46em; }
.ib h4 { display: flex; align-items: center; gap: 8px; font: 700 16px/1.45 var(--sans); }
.ib h4 .ic { width: 20px; height: 20px; color: var(--c); }
.xlink { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; color: var(--c); }
.xlink .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.xlink:hover .ic { transform: translate(2px, -2px); }

.lineage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.lineage::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; background: linear-gradient(90deg, var(--line), var(--c)); }
.lin { position: relative; display: flex; flex-direction: column; gap: 6px; }
.lin-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); }
.lin:last-child .lin-dot { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.lin-y { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.lin h4 { font: 900 22px/1.2 var(--sans); }
.lin-d { font-size: 14px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.mini { display: flex; gap: 18px; margin: 4px 0 2px; }
.mini div { display: grid; }
.mini dd { font: 900 19px/1.15 var(--sans); }
.mini dt { font-size: 12px; color: var(--muted); }

.docs { margin-top: 30px; }
.docs-lede { margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.doc-cards, .tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.doc-cards a, .tool-cards a {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 16px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.doc-cards a:hover, .tool-cards a:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 16px 28px -22px var(--c); }
.doc-cards b, .tool-cards b { font: 900 17px/1.3 var(--sans); padding-right: 18px; }
.doc-cards span, .tool-cards span { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.doc-cards em { margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.doc-cards em strong { font: 900 18px/1 var(--sans); color: var(--ink); background: none; padding: 0; }
.doc-cards em + em { margin-top: 2px; }
.doc-cards em small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
/* the card with real search traffic gets the accent */
.doc-cards .dc-hot a { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.doc-cards .dc-hot em strong { color: var(--c); }
.dc-out { position: absolute; right: 12px; top: 14px; width: 16px; height: 16px; color: var(--muted); transition: color .25s, transform .3s var(--ease); }
.doc-cards a:hover .dc-out, .tool-cards a:hover .dc-out { color: var(--c); transform: translate(2px, -2px); }
.tool-k { align-self: flex-start; font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }

.pipe .step-node .ic { width: 22px; height: 22px; color: var(--c); }
.lab, .tools { margin-top: 30px; }
.q-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.q-cards li { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--c) 45%, var(--line)); }
.q-cards .ic { grid-row: 1 / span 2; width: 24px; height: 24px; color: var(--c); }
.q-cards b { font-size: 15px; }
.q-cards p { font-size: 14px; line-height: 1.7; color: var(--ink-2); }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.1fr) 70px minmax(0, 1fr); align-items: center; margin-top: 24px; }
.flow-src { display: grid; gap: 10px; }
.fnode { display: grid; justify-items: start; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fnode b { font: 900 26px/1.1 var(--sans); }
.fnode span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.fnode .ic { width: 26px; height: 26px; color: var(--c); }
.fnode-hub { padding: 22px; border: 2px solid var(--c); box-shadow: 0 20px 40px -28px var(--c); transition: transform .3s var(--ease); }
.fnode-hub:hover { transform: translateY(-3px); }
.fnode-hub b { font-size: 32px; }
.fnode-out { background: var(--ink); border-color: var(--ink); }
.fnode-out b, .fnode-out .ic { color: var(--bg); }
.fnode-out span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.flow-pipe { position: relative; height: 4px; margin: 0 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.flow-pipe i { position: absolute; top: 0; left: -20%; width: 20%; height: 100%; border-radius: 2px; background: var(--c); animation: pipe 2.4s linear infinite; }
.flow-pipe i:nth-child(2) { animation-delay: .8s; }
.flow-pipe i:nth-child(3) { animation-delay: 1.6s; }
@keyframes pipe { to { left: 100%; } }
.flow-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.toggle.all-sites { margin-left: 0; }
.site-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; padding-top: 18px; }
.site-lists h5 { margin: 0 0 8px; font-size: 14px; }
.site-lists h5 small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.site-list { columns: 1; border-top: 1px solid var(--line); }
.site-lists > div:last-child .site-list { columns: 2; column-gap: 24px; }
.site-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; break-inside: avoid; }
.site-list span { font-weight: 500; white-space: nowrap; }
.site-list small { font-size: 12px; color: var(--muted); }
.site-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dom-grid li.in-use { position: relative; }
.dom-grid li.in-use i { position: absolute; top: 8px; right: 8px; font: 700 11px/1 var(--sans); font-style: normal; padding: 4px 6px; border-radius: 6px; background: color-mix(in srgb, var(--seo) 14%, transparent); color: var(--seo); }

/* GEO research and answer preview */
.geo { margin-top: 30px; }
.geo-demo { margin-top: 36px; --c: var(--ai); }
.geo-demo h4 { display: flex; align-items: center; gap: 8px; font: 700 16px/1.45 var(--sans); }
.geo-demo h4 .ic { width: 20px; height: 20px; color: var(--ai); }
.geo-lede { margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 46em; }
.engines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.engines li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.eng-k { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.engines div { display: flex; flex-wrap: wrap; gap: 6px; }
.engines i { font-style: normal; font-size: 13.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--ink); }
.ai-chat { position: relative; margin-top: 14px; padding: 20px 22px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -40px rgba(18, 21, 33, .5); }
.ai-q { display: flex; justify-content: flex-end; }
.ai-q span { padding: 9px 15px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; }
.ai-a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin-top: 16px; }
.ai-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ai) 14%, transparent); }
.ai-avatar .ic { width: 19px; height: 19px; color: var(--ai); }
.ai-text { min-height: 7.5em; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.ai-text.is-typing::after { content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--ai); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cite {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin: 0 2px; padding: 0 4px; border-radius: 6px;
  font: 700 11px/1 var(--sans); vertical-align: 2px; background: color-mix(in srgb, var(--ai) 14%, transparent); color: var(--ai);
  animation: citeIn .35s var(--ease); transition: background-color .2s, color .2s;
}
.cite:hover { background: var(--ai); color: #fff; }
@keyframes citeIn { from { transform: scale(.4); opacity: 0; } }
.ai-src { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 0 44px; padding-top: 12px; border-top: 1px solid var(--line); counter-reset: src; }
.ai-src li { counter-increment: src; }
.ai-src a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); transition: border-color .2s, color .2s; }
.ai-src a::before { content: counter(src); display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-size: 10.5px; font-weight: 700; background: color-mix(in srgb, var(--ai) 14%, transparent); color: var(--ai); }
.ai-src a:hover { border-color: var(--ai); color: var(--ink); }
.ai-src.is-hidden { opacity: 0; }
.ai-src { transition: opacity .5s var(--ease); }
.ai-replay { position: absolute; top: 16px; left: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 5px 9px; border-radius: 8px; border: 1px solid transparent; transition: border-color .2s, color .2s; }
.ai-replay .ic { width: 15px; height: 15px; }
.ai-replay:hover { border-color: var(--line); color: var(--ink); }
.geo-note { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.geo-report { margin-top: 30px; }
.gr { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; margin-top: 14px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .3s var(--ease); }
.gr:hover { border-color: var(--seo); box-shadow: 0 20px 40px -30px var(--seo); }
.gr-score { position: relative; display: grid; place-content: center; justify-items: center; width: 150px; aspect-ratio: 1; }
.gr-score svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gr-track { fill: none; stroke: var(--line); stroke-width: 10; }
.gr-bar { fill: none; stroke: var(--seo); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.js .gr-bar { stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.6, 0, .25, 1); }
.js .gr.is-in .gr-bar { stroke-dashoffset: calc(100 - var(--v)); }
.gr-score b { font: 900 44px/1 var(--sans); color: var(--seo); }
.gr-score small { margin-top: 4px; font-size: 12px; color: var(--muted); }
.gr-body { display: grid; gap: 10px; }
.gr-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.gr-top b { font-size: 17px; }
.gr-top em { font-style: normal; font-size: 13px; color: var(--muted); }
.gr-pass { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-pass li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 9px 4px 7px; border-radius: 8px; background: color-mix(in srgb, var(--seo) 10%, transparent); color: var(--ink-2); }
.gr-pass li::before { content: ""; width: 6px; height: 10px; margin-top: -3px; border: solid var(--seo); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gr-warn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.gr-warn .ic { width: 17px; height: 17px; color: var(--team); }
.gr-opt { font-size: 13px; color: var(--muted); }
.gr-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; color: var(--seo); }
.gr-go .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.gr:hover .gr-go .ic { transform: translate(2px, -2px); }

/* domains */
.dom-lede { padding-top: 6px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.dom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-top: 18px; }
.dom-grid li {
  display: flex; align-items: baseline; justify-content: center; padding: 24px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); font: 900 27px/1 var(--sans); letter-spacing: -.01em;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); cursor: default;
}
.dom-grid .dn-sld { color: var(--ink); }
.dom-grid .dn-tld { color: var(--seo); transition: letter-spacing .35s var(--ease); }
.dom-grid li:hover { transform: translateY(-3px); border-color: var(--seo); box-shadow: 0 16px 30px -22px var(--seo); }
.dom-grid li:hover .dn-tld { letter-spacing: .04em; }
.fd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; margin-top: 24px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.fd-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--seo); }
.fd-k .ic { width: 18px; height: 18px; }
.fd h3 { margin-top: 6px; font: 900 30px/1.2 var(--sans); letter-spacing: -.01em; }
.fd h3 a { background-image: linear-gradient(var(--seo), var(--seo)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease); }
.fd h3 a:hover { background-size: 100% 3px; }
.fd-lede { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.fd-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px; }
.fd-feats li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.fd-feats .ic { width: 20px; height: 20px; color: var(--seo); }
.fd-feats b { display: block; font-size: 14px; color: var(--ink); }
.fd-stats { display: flex; gap: 28px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.fd-stats div { display: grid; }
.fd-stats dt { order: 2; font-size: 12.5px; color: var(--muted); }
.fd-stats dd { font: 900 26px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.fd-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.fd-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; transition: transform .3s var(--ease); }
.fd-go .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.fd-go:hover .ic { transform: translateX(3px); }
.fd-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 30px 50px -36px rgba(18, 21, 33, .55); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.fd-shot:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 40px 60px -36px rgba(18, 21, 33, .6); }
.fd-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.fd-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.fd-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); }
.fd-shot img { width: 100%; height: auto; }

/* key phrases inside long text: bold plus a soft highlighter in the item's capability colour */
.read strong {
  font-weight: 700; color: var(--ink);
  background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--c, var(--cloud)) 20%, transparent) 62%, color-mix(in srgb, var(--c, var(--cloud)) 20%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .08em;
}
/* keep a lone character from wrapping onto its own line */
.nw { white-space: nowrap; }
.wins p, .duties li, .cols p, .proj-main > p, .edu-notes li { text-wrap: pretty; }
.ic-in { width: 1.1em; height: 1.1em; margin: 0 .12em 0 .04em; color: var(--c, var(--cloud)); vertical-align: -.2em; }

/* jobs */
.job { padding: 40px 0 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.job:last-child { border-bottom: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; }
.job-title { display: grid; gap: 4px; }
.jt-role { display: flex; align-items: center; gap: 10px; font: 700 24px/1.35 var(--serif); }
.jt-role::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.jt-co { padding-left: 20px; font: 500 15.5px/1.5 var(--sans); color: var(--ink-2); }
.job-time { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-top: 6px; font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.job-time .ic { width: 17px; height: 17px; color: var(--muted); }
.job-dur { margin-left: 10px; color: var(--muted); font-size: 13px; }
.job.is-flash .jt-role { animation: flash 1.8s var(--ease); }
@keyframes flash { 0%, 45% { color: var(--c, var(--cloud)); } }

.wins { display: grid; gap: 22px; margin-top: 26px; }
.wins li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 0 16px; max-width: 48em; }
.wins .mk { margin-top: 10px; }
.wins b { display: block; font: 700 16.5px/1.6 var(--sans); }
.wins p { font-size: 15px; line-height: 1.85; color: var(--ink-2); }

.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-top: 26px; padding: 18px 0 0 24px; border-top: 1px dashed var(--line); }
.clients-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.clients-k .ic { width: 17px; height: 17px; }
.clients ul { display: flex; flex-wrap: wrap; gap: 8px; }
.clients li { font-size: 13.5px; line-height: 1; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .25s, transform .3s var(--ease); }
.clients li:hover { border-color: var(--ink); transform: translateY(-1px); }

.duties { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-io); }
.duties.is-open { grid-template-rows: 1fr; }
.duties-in { overflow: hidden; min-height: 0; }
.duties-in > * { opacity: 0; transition: opacity .4s var(--ease); }
.duties.is-open .duties-in > * { opacity: 1; transition-delay: .12s; }
.duties h4 { display: flex; align-items: center; gap: 6px; margin-top: 30px; padding-left: 24px; font: 500 13px/1 var(--sans); color: var(--muted); }
.duties h4 .ic { width: 17px; height: 17px; color: var(--c); }
.duties ol { display: grid; gap: 14px; margin: 16px 0 0 3px; padding-left: 21px; border-left: 1px solid var(--line); max-width: 48em; }
.duties li { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.duties b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; margin: 24px 0 0 24px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  transition: border-color .25s, color .25s;
}
.toggle .ic { width: 17px; height: 17px; transition: transform .45s var(--ease); }
.toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.toggle:hover { border-color: var(--ink); color: var(--ink); }

/* projects */
.proj { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 32px; padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.proj:first-child { padding-top: 22px; }
.proj:last-child { border-bottom: 0; }
.proj-result { border-left: 3px solid var(--c); padding-left: 14px; align-self: start; }
.proj-result b { display: block; font: 900 26px/1.2 var(--sans); letter-spacing: -.01em; }
.proj-result span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.proj-main h3 { font: 700 18px/1.5 var(--serif); }
.proj-meta { margin-top: 2px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.proj-main > p:not(.proj-meta) { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--ink-2); max-width: 46em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { counter-increment: s; padding: 12px 14px 12px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.steps li:nth-child(3n+2), .steps li:nth-child(3n) { padding-left: 14px; border-left: 1px solid var(--line); }
.steps b { display: flex; gap: 8px; align-items: baseline; font-weight: 700; font-size: 14px; color: var(--ink); }
.steps b::before { content: counter(s); font-size: 12px; font-weight: 500; color: var(--cloud); font-variant-numeric: tabular-nums; }

/* credentials */
.cred-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; padding-top: 22px; }
.cred-k { display: flex; align-items: center; gap: 7px; font: 500 13px/1 var(--sans); color: var(--muted); margin-bottom: 16px; }
.cred-k .ic { width: 18px; height: 18px; color: var(--ink-2); }
.edu-list { border-top: 1px solid var(--line); }
.edu-list > div { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
.edu-list dt { font: 700 17px/1.5 var(--serif); }
.edu-list dd { grid-column: 1; font-size: 14px; color: var(--muted); }
.edu-list .edu-date { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.edu-notes { display: grid; gap: 12px; margin-top: 18px; }
.edu-notes li { display: grid; grid-template-columns: 8px 1fr; gap: 0 14px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.edu-notes .mk { margin-top: 9px; }
.edu-notes b { color: var(--ink); }
.cert-group + .cert-group { margin-top: 22px; }
.cert-org { font: 700 15px/1.4 var(--serif); margin-bottom: 10px; }
.cert-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-list li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; line-height: 1; padding: 9px 12px 9px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: border-color .25s, color .25s, transform .3s var(--ease), opacity .4s var(--ease);
}
.cert-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cert-list li:hover { border-color: var(--c); color: var(--ink); transform: translateY(-1px); }
.cert-list .cert-hi { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
.cert-list .cert-hi:hover { color: var(--bg); }

/* footer */
.foot { margin-top: clamp(88px, 11vw, 140px); padding: 40px 0 48px; border-top: 2px solid var(--ink); }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; }
.foot-in > p { font: 700 clamp(22px, 2.8vw, 32px)/1.45 var(--serif); max-width: 18em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; padding-bottom: 3px;
  background-image: linear-gradient(90deg, var(--cloud), var(--ai), var(--seo), var(--team));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease);
}
.foot-links a:hover { background-size: 100% 4px; }
.foot-links a .ic { width: 20px; height: 20px; color: var(--muted); }
.foot-meta a { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.foot-meta a:hover { border-color: var(--ink); }
.foot-meta { margin-top: 48px; font-size: 13px; color: var(--muted); }

.toast {
  display: inline-flex; align-items: center; gap: 8px;
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 14px); opacity: 0;
  background: var(--ink); color: var(--bg); font-size: 14px; padding: 9px 16px; border-radius: 999px;
  transition: opacity .25s, transform .35s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 18px; height: 18px; color: var(--seo); }

.print-head, .print-tags { display: none; }
.indie-brief { display: none; }

/* print chooser */
.pmenu { position: fixed; z-index: 70; width: 300px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(18, 21, 33, .45); animation: pmIn .25s var(--ease); }
.pmenu[hidden] { display: none; }
@keyframes pmIn { from { opacity: 0; transform: translateY(-6px); } }
.pmenu button { display: grid; grid-template-columns: 22px 1fr; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; transition: background-color .2s; }
.pmenu button:hover, .pmenu button:focus-visible { background: var(--bg); }
.pmenu .ic { width: 22px; height: 22px; color: var(--cloud); }
.pmenu b { display: block; font-size: 14.5px; }
.pmenu small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Responsive ---------- */
@media screen and (max-width: 1080px) {
  .bar-nav { display: none; }
}
@media screen and (max-width: 860px) {
  .sec { grid-template-columns: 1fr; gap: 14px; }
  .sec > h2 { position: static; }
  .sec-body { border-top: 0; padding-top: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures li, .figures li + li { padding: 16px 12px 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .figures li:first-child { grid-column: 1 / -1; border-top: 0; }
  .figures li:nth-child(odd):not(:first-child) { padding-left: 16px; border-left: 1px solid var(--line); }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .cred-grid { grid-template-columns: 1fr; }
  .route-head, .sec-route > .sec-body { grid-column: 1; }
  .route-head { border-top: 0; padding-top: 0; }
  .route-card { grid-template-columns: 1fr; padding: 20px; }
  .glance-id { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; gap: 0; }
  .ops { grid-template-columns: 1fr; gap: 28px; }
  .wheel { max-width: 400px; margin: 0 auto; }
  .principles { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .proofs { grid-template-columns: 1fr; }
  .fd { grid-template-columns: 1fr; padding: 22px; }
  .lineage { grid-template-columns: 1fr; gap: 22px; padding-left: 28px; }
  .lineage::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--c)); }
  .lin-dot { position: absolute; left: -28px; top: 0; }
  .lin-y { margin-top: 0; }
  .q-cards { grid-template-columns: 1fr; }
  .engines { grid-template-columns: 1fr 1fr; }
  .gr { grid-template-columns: 1fr; justify-items: start; padding: 18px; }
  .gr-score { width: 120px; }
  .gr-score b { font-size: 36px; }
  .ai-chat { padding: 54px 16px 16px; }
  .ai-src { margin-left: 0; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-pipe { width: 4px; height: 34px; margin: 6px auto; }
  .flow-pipe i { left: 0; top: -20%; width: 100%; height: 20%; animation-name: pipeV; }
  @keyframes pipeV { to { top: 100%; } }
  .site-lists { grid-template-columns: 1fr; }
  .site-lists > div:last-child .site-list { columns: 1; }
  .method::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; background: linear-gradient(180deg, var(--cloud), var(--ai), var(--seo), var(--team)); transform-origin: 50% 0; transform: scaleY(var(--rail, 1)); }
  .step { display: grid; grid-template-columns: 47px 1fr; gap: 0 16px; padding-bottom: 24px; }
  .step-node { grid-row: 1 / span 4; }
  .step h4 { margin-top: 10px; }
  .step-q { flex: none; }
  .bar-fam button span { display: none; }
  .bar-fam button { padding: 7px; }
  .bar-fam button .ic { width: 19px; height: 19px; }
}
@media screen and (max-width: 600px) {
  body { font-size: 15px; }
  .hero { height: 88svh; min-height: 680px; max-height: 820px; }
  .hero-top { padding-top: 18px; }
  .who img { width: 44px; height: 44px; }
  .contact { display: none; }
  .hero-copy { margin-top: 22px; width: auto; }
  .hero-line { font-size: 18px; }
  .legend { gap: 6px; margin-top: 16px; }
  .legend button { font-size: 13px; padding: 6px 11px 6px 8px; }
  .name { top: 79%; font-size: clamp(84px, 25vw, 116px); }
  .pill { font-size: 13px; padding: 9px 13px; }
  .block { padding: 10px 14px 10px 12px; border-radius: 14px; border-left-width: 5px; }
  .block b { font-size: 24px; }
  .block small { font-size: 11px; }
  .bar-in { gap: 10px; }
  .bar-print span { display: none; }
  .bar-print { padding: 8px; }
  .job-time { margin-left: 0; width: 100%; }
  .wins li { gap: 0 12px; }
  .clients, .duties h4 { padding-left: 20px; }
  .toggle { margin-left: 20px; }
  .proj { grid-template-columns: 1fr; gap: 14px; }
  .route { margin-inline: calc(var(--gut) * -1); border-radius: 0; border-inline: 0; }
  .glance-facts { grid-template-columns: 1fr; }
  .glance-facts > div.wide { grid-column: 1; }
  .glance-contact { min-width: 0; }
  .jt-role { font-size: 21px; }
  .wn { padding: 8px 10px; max-width: 34%; }
  .wn-1, .wn-3 { max-width: 60%; }
  .wn-2 { transform: translate(0, -50%); }
  .wn-4 { transform: translate(0, -50%); }
  .wheel-core { width: 28%; }
  .m-br { display: inline; }
  .wn b { font-size: 12.5px; }
  .wn span { font-size: 11.5px; }
  .wheel-core b { font-size: 14px; }
  .dom-grid { grid-template-columns: 1fr 1fr; }
  .dom-grid li { font-size: 22px; padding: 18px 8px; }
  .fd-feats { grid-template-columns: 1fr; }
  .mtabs button { padding: 8px 14px 8px 11px; font-size: 14px; }
  .route-map { min-width: 1020px; }
  .route-fade { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 56px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--surface)); transition: opacity .3s; }
  .route-fade.is-off { opacity: 0; }
  .route-swipe { display: flex; align-items: center; gap: 6px; grid-column: 1; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
  .route-swipe .ic { width: 15px; height: 15px; }
  .route-legend button { font-size: 13px; padding: 6px 10px 6px 8px; }
  .route-legend i { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(n) { padding: 10px 10px 10px 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-pipe i { animation: none !important; left: 40%; }
  .wheel-flow, .wn, .wheel-core .ic { animation: none !important; }
  .lander { display: none; }
  .route-map .train { display: none; }
  *, *::before, *::after { transition-duration: .001ms !important; transition-delay: 0s !important; animation-duration: .001ms !important; }
}

/* ---------- Print: A4 ---------- */
@page { size: A4; margin: 13mm 14mm 14mm; }
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --ink: #121521; --ink-2: #2E3342; --muted: #5D6372; --line: #D6D9E0; --line-2: #E8EAEE;
    --cloud: #2B59E0; --ai: #7B3FE4; --seo: #0A8466; --team: #C2470F; --pill-fg: #fff; --rail: 30mm;
  }
  html { scroll-behavior: auto; }
  body { font-size: 9pt; line-height: 1.58; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body[data-focus] .read [data-f] { opacity: 1 !important; }
  body[data-focus] .read [data-f] .mk { transform: none !important; box-shadow: none !important; }
  .read strong { background-image: linear-gradient(transparent 66%, color-mix(in srgb, var(--c, var(--cloud)) 16%, transparent) 66%, color-mix(in srgb, var(--c, var(--cloud)) 16%, transparent) 94%, transparent 94%); }
  .duties h4 .ic { width: 8pt; height: 8pt; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero, .bar, .skip, .toast, .toggle, .tip, .foot-links, .foot-in > p { display: none !important; }

  .print-head { display: flex; justify-content: space-between; align-items: center; gap: 8mm; padding-bottom: 4mm; border-bottom: 1.2pt solid var(--ink); }
  .ph-role { font-size: 9pt; color: var(--muted); }
  .ph-name { font: 900 30pt/1.1 var(--serif); margin: 1mm 0 2mm; letter-spacing: .03em; }
  .ph-facts, .ph-contact { font-size: 9.5pt; color: var(--ink-2); }
  .print-head img { width: 24mm; height: 24mm; border-radius: 4mm; object-fit: cover; }
  .print-tags { display: flex; flex-wrap: wrap; gap: 1.2mm; padding: 3mm 0; border-bottom: 1px solid var(--line); }
  .print-tags span { font-size: 7.4pt; line-height: 1; padding: 1.2mm 2.2mm; border-radius: 9pt; color: #fff; background: var(--c); }
  /* move print-only blocks above the reading layer */
  body { display: flex; flex-direction: column; }
  .print-head { order: -2; }
  .print-tags { order: -1; }

  .read { max-width: none; padding: 0; }
  .sec { display: flow-root; padding-top: 6mm; }
  .sec > h2 .ic { width: 13pt; height: 13pt; }
  .cols h3 .ic, .cred-k .ic, .job-time .ic, .clients-k .ic { width: 9pt; height: 9pt; }
  .sec > h2 { position: static; float: left; width: var(--rail); font-size: 12pt; padding-top: 1.5mm; border-top-width: 1pt; }
  .sec-body { margin-left: calc(var(--rail) + 6mm); }
  #credentials { break-inside: avoid; }
  .sec-body { padding-top: 0; }
  #figures { padding-top: 4mm; }
  .figures li { padding: 2.5mm 2mm 0 0; }
  .figures li + li { padding-left: 2.5mm; }
  .figures b { font-size: 18pt; }
  .figures p { margin-top: 1mm; font-size: 7.4pt; gap: 1.2mm; }
  .mk { width: 5pt; height: 5pt; }
  .lede { margin-top: 2mm; font-size: 10.5pt; line-height: 1.6; max-width: none; }
  .cols { grid-template-columns: repeat(2, 1fr); gap: 3mm 5mm; margin-top: 3mm; }
  .cols article { padding-top: 1.5mm; border-top-width: 1.5pt; }
  .cols h3 { font-size: 9pt; margin-bottom: .8mm; }
  .cols p { font-size: 8pt; line-height: 1.6; }


  .route-head, .route-card, .route-swipe, .route-fade, .route-map .train, .route-map .halo { display: none !important; }
  .glance-id, .lander, .step-src, .method::before, .mtabs, .stabs, .wheel, .proofs, .fd-shot, .fd-go, .fd-note { display: none !important; }
  .print-only { display: block; }
  .mpanel[hidden], .spanel[hidden] { display: block !important; }
  .mpanel { margin-top: 2mm; }
  h3.print-only { font: 700 10.5pt/1.4 var(--serif); margin: 2mm 0 1mm; }
  h4.print-only { font: 700 9.5pt/1.4 var(--sans); margin: 2.5mm 0 .5mm; }
  .ops { display: block; }
  .ops-text h3 { display: none; }
  .ops-text > p { margin-top: 0; font-size: 8.2pt; line-height: 1.6; }
  .ops-proof { margin-top: 1.5mm; }
  .ops-proof li { padding: 1mm 0; font-size: 7.8pt; grid-template-columns: 9pt 1fr; gap: 2mm; }
  .ops-proof .ic { width: 9pt; height: 9pt; }
  .principles { gap: 4mm; margin-top: 3mm; break-inside: avoid; }
  .pgroup h4 { padding-bottom: 1mm; font-size: 8.8pt; border-bottom-width: 1pt; }
  .pgroup h4 .ic { width: 9pt; height: 9pt; }
  .pgroup li { padding: 1.4mm 0; break-inside: avoid; }
  .pgroup li b { font-size: 8.6pt; }
  .pgroup li p { font-size: 7.6pt; line-height: 1.5; margin-top: .3mm; }
  .pgroup .basis { display: none; }
  .pgroup .basis span { font-size: 6.5pt; padding: .5mm 1mm; }
  .spanel { margin-top: 0; break-inside: avoid; }
  .sp-lead { font-size: 8pt; line-height: 1.55; }
  .sp-lead b { font-size: 9pt; }
  .sp-base { margin-top: 1.5mm; padding: 1.5mm 2mm; font-size: 7.6pt; grid-template-columns: 9pt 1fr; gap: 2mm; }
  .sp-base .ic { width: 9pt; height: 9pt; }
  .geo-demo, .indie-toc, #all-sites, .all-sites, .flow-pipe, .dc-out, .lineage::before, .lin-dot, .xlink { display: none !important; }
  .indie-lede { padding-top: 0; font-size: 9.5pt; }
  .ib { margin-top: 4mm; padding-top: 2mm; border-top-width: 1pt; break-inside: auto; }
  .ib-head h3 { font-size: 10.5pt; }
  .ib-head h3 .ic { width: 11pt; height: 11pt; }
  .ib-head p { font-size: 8pt; margin-top: .5mm; }
  .ib h4 { font-size: 8.8pt; }
  .ib h4 .ic { width: 9pt; height: 9pt; }
  .lineage { gap: 4mm; margin-top: 2mm; break-inside: avoid; }
  .lin { gap: .5mm; }
  .lin-y { margin-top: 0; font-size: 7pt; }
  .lin h4 { font-size: 10pt; }
  .lin-d { font-size: 7.6pt; line-height: 1.5; }
  .mini dd { font-size: 9pt; }
  .mini dt { font-size: 6.8pt; }
  .docs, .lab, .tools, .geo { margin-top: 3mm; break-inside: avoid; }
  .geo-lede { font-size: 7.8pt; margin-top: .5mm; }
  .engines { gap: 1.5mm; margin-top: 1.5mm; }
  .engines li { padding: 1.5mm 2mm; border-radius: 1.5mm; }
  .eng-k { font-size: 6.8pt; margin-bottom: .8mm; }
  .engines i { font-size: 7.4pt; padding: .5mm 1.2mm; }
  .geo-report { margin-top: 3mm; break-inside: avoid; }
  .gr { grid-template-columns: 22mm 1fr; gap: 4mm; padding: 2.5mm 3mm; border-radius: 2mm; margin-top: 1.5mm; }
  .gr-score { width: 22mm; }
  .gr-bar { stroke-dashoffset: calc(100 - var(--v)) !important; }
  .gr-score b { font-size: 14pt; }
  .gr-score small { font-size: 6pt; }
  .gr-body { gap: 1mm; }
  .gr-top b { font-size: 8.6pt; }
  .gr-top em, .gr-opt, .gr-warn { font-size: 7pt; }
  .gr-pass { gap: 1mm; }
  .gr-pass li { font-size: 6.8pt; padding: .5mm 1.4mm; }
  .gr-go { display: none; }
  .docs-lede { font-size: 7.8pt; margin-top: .5mm; }
  .doc-cards, .tool-cards { grid-template-columns: repeat(5, 1fr); gap: 1.5mm; margin-top: 1.5mm; }
  .tool-cards { grid-template-columns: repeat(4, 1fr); }
  .doc-cards a, .tool-cards a { padding: 1.8mm 2mm; border-radius: 1.5mm; }
  .doc-cards b, .tool-cards b { font-size: 8.4pt; }
  .doc-cards span, .tool-cards span { font-size: 7pt; line-height: 1.45; }
  .doc-cards em { font-size: 6.8pt; margin-top: .5mm; }
  .doc-cards em strong { font-size: 8.4pt; }
  .tool-k { font-size: 6.5pt; padding: .5mm 1mm; }
  .pipe .step-node .ic { width: 5mm; height: 5mm; }
  .pipe { break-inside: avoid; }
  .q-cards { gap: 1.5mm; margin-top: 1.5mm; }
  .q-cards li { padding: 1.8mm 2mm; border-radius: 1.5mm; grid-template-columns: 9pt 1fr; gap: .3mm 1.5mm; }
  .q-cards .ic { width: 9pt; height: 9pt; }
  .q-cards b { font-size: 8.2pt; }
  .q-cards p { font-size: 7.4pt; line-height: 1.45; }
  .flow { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 2mm; margin-top: 2mm; break-inside: avoid; }
  .flow-src { display: contents; }
  .fnode { padding: 2mm 2.5mm; border-radius: 1.5mm; box-shadow: none; }
  .fnode b, .fnode-hub b { font-size: 11pt; }
  .fnode span { font-size: 6.8pt; }
  .fnode .ic { width: 9pt; height: 9pt; }
  .fnode-hub { border-width: 1pt; }
  .flow-note { font-size: 7pt; margin-top: 1mm; }
  .dom-grid li.in-use i { font-size: 5.5pt; padding: .4mm .8mm; top: .8mm; right: .8mm; }
  .dom-lede { padding-top: 0; font-size: 8.2pt; }
  .dom-grid { grid-template-columns: repeat(6, 1fr); gap: 1.5mm; margin-top: 1.5mm; }
  .dom-grid li { padding: 2mm 1mm; font-size: 10pt; border-radius: 2mm; }
  .fd { display: block; margin-top: 2.5mm; padding: 2.5mm 3mm; border-radius: 2mm; break-inside: avoid; }
  .fd h3 { font-size: 12pt; margin-top: .5mm; }
  .fd-k { font-size: 7.4pt; }
  .fd-lede { margin-top: 1mm; font-size: 8pt; line-height: 1.55; }
  .fd-feats { grid-template-columns: repeat(3, 1fr); gap: 1mm 3mm; margin-top: 1.5mm; }
  .fd-feats li { font-size: 7pt; grid-template-columns: 8pt 1fr; gap: 1.2mm; }
  .fd-feats .ic { width: 8pt; height: 8pt; }
  .fd-feats b { font-size: 7.6pt; }
  .fd-stats { margin-top: 1.5mm; padding-top: 1.2mm; gap: 6mm; }
  .fd-stats dd { font-size: 11pt; }
  .fd-stats dt { font-size: 7pt; }
  .figures li.is-await b { opacity: 1 !important; }
  .glance .figures { margin-top: 0; border-top: 0; }
  .method { gap: 4mm; margin-top: 1mm; }
  .method .step-node { opacity: 1 !important; transform: none !important; width: 9mm; height: 9mm; border-width: 1pt; }
  .step-node .ic { width: 5mm; height: 5mm; }
  .spanel .method { display: flex; flex-wrap: wrap; gap: 1mm 4mm; margin-top: 1mm; }
  .spanel .step { flex-direction: row; align-items: center; gap: 1.5mm; }
  .spanel .step-q { display: none; }
  .spanel .step h4 { margin-top: 0; font-size: 8.4pt; }
  .spanel .method .step-node { width: 5mm; height: 5mm; font-size: 7pt; }
  .step-q { margin-top: 1mm; font-size: 7.6pt; line-height: 1.5; }
  .jt-role { font-size: 11pt; gap: 2mm; }
  .jt-role::before { width: 5pt; height: 5pt; box-shadow: none; }
  .jt-co { padding-left: 4mm; font-size: 8.4pt; }
  .job-time { padding-top: 0; }
  .route { margin: 2mm 0 1mm calc(var(--rail) + 6mm); border-radius: 2mm; break-inside: avoid; }
  .route-scroll { overflow: visible; }
  .route-map { min-width: 0; }
  .route-map .line { stroke-dashoffset: 0 !important; }
  .route-map .st, .route-map .line-name, .route-map .end, .route-map [data-line] { opacity: 1 !important; }
  .sec-route > .sec-body { margin-top: 0; }
  .job { padding: 3.5mm 0 3mm; }
  .job-head h3 { font-size: 10.5pt; }
  .job-time { font-size: 8.4pt; }
  .job-dur { font-size: 7.4pt; }
  .wins { gap: 1.8mm; margin-top: 2.2mm; }
  .wins li { gap: 0 2.6mm; break-inside: avoid; max-width: none; grid-template-columns: 5pt 1fr; }
  .wins .mk { margin-top: 1.6mm; }
  .wins b { font-size: 8.8pt; line-height: 1.5; }
  .wins p { font-size: 8.2pt; line-height: 1.58; }
  .clients { margin-top: 2.5mm; padding: 2mm 0 0 4.5mm; gap: 1.2mm 2.5mm; break-inside: avoid; }
  .clients-k { font-size: 7.4pt; }
  .clients ul { gap: 1.2mm; }
  .clients li { font-size: 7.4pt; padding: 1mm 1.8mm; }
  .duties { display: block; }
  .duties-in { overflow: visible; }
  .duties-in > * { opacity: 1 !important; }
  .duties h4 { margin-top: 2.5mm; padding-left: 4.5mm; font-size: 7.4pt; }
  .duties ol { display: block; margin: 1.5mm 0 0 1pt; padding-left: 4mm; max-width: none; }
  .duties li + li { margin-top: 1.2mm; }
  .duties li { font-size: 7.9pt; line-height: 1.56; break-inside: avoid; }
  .duties b { display: inline; font-size: 8.3pt; margin-right: 1.5mm; }

  .proj { display: flow-root; padding: 2.8mm 0; break-inside: avoid; }
  .proj:first-child { padding-top: 1.5mm; }
  .proj-result { float: left; width: 30mm; padding-left: 2mm; border-left-width: 1.5pt; }
  .proj-main { margin-left: 34mm; }
  .proj-result b { font-size: 12pt; }
  .proj-result span { font-size: 7.2pt; margin-top: .6mm; }
  .proj-main h3 { font-size: 9.8pt; }
  .proj-meta { font-size: 7.4pt; margin-top: 0; }
  .proj-main > p:not(.proj-meta) { margin-top: 1.2mm; font-size: 8.1pt; line-height: 1.58; max-width: none; }
  .steps { margin-top: 1.6mm; }
  .steps li { padding: 1.4mm 2mm 1.4mm 0; font-size: 7.4pt; line-height: 1.45; }
  .steps li:nth-child(3n+2), .steps li:nth-child(3n) { padding-left: 2mm; }
  .steps b { font-size: 8pt; }

  .cred-grid { gap: 3mm 8mm; padding-top: 1.5mm; }
  .edu, .certs { break-inside: avoid; }
  .cred-k { font-size: 7.4pt; margin-bottom: 1.5mm; }
  .edu-list > div { padding: 1.6mm 0; }
  .edu-list dt { font-size: 9.4pt; }
  .edu-list dd { font-size: 7.8pt; }
  .edu-notes { gap: 1.2mm; margin-top: 2mm; }
  .edu-notes li { font-size: 7.9pt; line-height: 1.55; grid-template-columns: 5pt 1fr; gap: 0 2.4mm; }
  .edu-notes .mk { margin-top: 1.4mm; }
  .cert-group + .cert-group { margin-top: 2.5mm; }
  .cert-org { font-size: 8.8pt; margin-bottom: 1.2mm; }
  .cert-list { gap: 1.2mm; }
  .cert-list li { font-size: 7.4pt; padding: 1.1mm 2mm 1.1mm 1.6mm; gap: 1.2mm; }
  .cert-list li::before { width: 4pt; height: 4pt; }

  .foot { margin-top: 5mm; padding: 2mm 0 0; border-top-width: 1pt; }
  .foot-meta { margin-top: 0; font-size: 7.4pt; }

  .pmenu { display: none !important; }

  /* full version: let long blocks flow across pages instead of jumping */
  .pf .principles, .pf .ib { break-inside: auto; }
  .pf #credentials { break-inside: avoid; }
  .pf .route { max-width: 150mm; }
  .pf .foot { break-before: avoid; }

  /* brief version: two pages for recruiters */
  .pb #method, .pb .route, .pb .duties, .pb .print-tags, .pb .geo-demo,
  .pb #indie .indie-lede, .pb #indie .ib, .pb #indie .indie-toc,
  .pb #proj-xinchuang, .pb #proj-llstack, .pb #proj-theatre, .pb #proj-gov, .pb .steps, .pb .foot, .pb .clients { display: none !important; }
  .pb #job-citybigdata .wins li:nth-child(n+4), .pb #job-zhuojian .wins li:nth-child(n+4) { display: none; }
  .pb #job-dingtalk .wins li:nth-child(5), .pb #job-westcon .wins li:nth-child(5) { display: none; }
  .pb #credentials { break-inside: avoid; padding-top: 3mm; }
  .pb .edu-notes li { font-size: 7.4pt; line-height: 1.45; }
  .pb .cert-group + .cert-group { margin-top: 1.5mm; }
  .pb .sec { padding-top: 3mm; }
  .pb .wins p { line-height: 1.42; }
  .pb .wins { gap: .9mm; }
  .pb .cols { gap: 2mm 5mm; margin-top: 2mm; }
  .pb .cols p { line-height: 1.45; }
  .pb .figures li { padding-top: 1.5mm; }
  .pb .job-head h3 + .job-time, .pb .jt-co { font-size: 8pt; }
  .pb .edu-list > div { padding: 1.2mm 0; }
  .pb .edu-notes { margin-top: 1.5mm; gap: .8mm; }
  .pb .proj-main > p:not(.proj-meta) { display: none; }
  .pb .proj { padding: 1.4mm 0; }
  .pb .proj-result b { font-size: 10.5pt; }
  .pb .cred-grid { grid-template-columns: 1fr 1fr; gap: 2mm 6mm; padding-top: 0; }
  .pb .cert-list li { padding: .7mm 1.6mm; font-size: 7pt; }
  .pb .cert-org { margin-bottom: .8mm; font-size: 8.2pt; }
  .pb .edu-notes li { font-size: 7.1pt; line-height: 1.4; }
  .pb .edu-list dt { font-size: 8.8pt; }
  .pb .edu-list dd { font-size: 7.4pt; }
  .pb .cred-k { margin-bottom: 1mm; }
  .pb .indie-brief li { font-size: 7.7pt; line-height: 1.45; }
  .pb .indie-brief { display: grid; gap: 1.2mm; margin: 0; padding: 0; }
  .pb .indie-brief li { font-size: 8pt; line-height: 1.55; color: var(--ink-2); list-style: none; padding-left: 3mm; position: relative; }
  .pb .indie-brief li::before { content: ""; position: absolute; left: 0; top: .6em; width: 3.5pt; height: 3.5pt; border-radius: 50%; background: var(--seo); }
  .pb .indie-brief b { color: var(--ink); }
  .pb .sec { padding-top: 4mm; }
  .pb #figures { padding-top: 3mm; }
  .pb .print-head { padding-bottom: 3mm; }
  .pb .ph-name { font-size: 26pt; }
  .pb .cols p { font-size: 7.7pt; line-height: 1.52; }
  .pb .lede { font-size: 9.6pt; }
  .pb .job { padding: 2.6mm 0 2.2mm; }
  .pb .wins { gap: 1.2mm; margin-top: 1.6mm; }
  .pb .wins p { font-size: 7.8pt; line-height: 1.5; }
  .pb .wins b { font-size: 8.4pt; }
  .pb .clients { margin-top: 1.6mm; padding-top: 1.4mm; }
  .pb .proj { padding: 2mm 0; }
  .pb .proj-main > p:not(.proj-meta) { font-size: 7.8pt; line-height: 1.5; }
}
