@font-face { font-family: Inter; font-style: normal; font-weight: 900; font-display: swap; src: url('/portfolio-assets/fonts/inter-900-latin.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url('/portfolio-assets/fonts/inter-800-latin.woff2') format('woff2'); }
:root {
  --bg: #fffdfa;
  --ink: #1b1715;
  --muted: #6e645e;
  --line: #ece4dc;
  --coral: #ff7a59;
  --coral-soft: #ffe6dc;
  --pink: #ffb4a2;
  --hl: var(--pink);
  --stage: #f7f1eb;
  --stage-dark: #ebe7e1;
  --ease: cubic-bezier(.19,1,.22,1);
  --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --display: Inter, Arial, sans-serif;
  --window-shadow: 0 20px 50px -10px rgba(60,30,10,.22);
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; height: 88px; }
.brand { font: 800 18px var(--display); letter-spacing: -.3px; }
.site-header nav { display: flex; gap: 6px; font-size: 14px; }
.site-header nav a { padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.hero { padding: 96px 0 64px; border-bottom: 1px solid var(--ink); }
.title { position: relative; display: inline-block; font-size: clamp(110px,20vw,270px); }
.name { font: 900 1em/.8 var(--display); letter-spacing: -.034em; margin-left: -.04em; white-space: nowrap; }
/* Inter's n rises higher than the sample font; retain the SVG scale and align its belly. */
.hero-lion { position: absolute; right: -.27em; bottom: .51em; width: .97em; height: auto; overflow: visible; }
.who { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; margin-top: 48px; }
.who .cn { font: 700 22px/1.4 var(--font); letter-spacing: .3em; }
.who p { font: 400 22px/1.5 var(--font); color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 12px 44px; padding: 72px 0 0; }
.tabs[hidden] { display: none; }
.tab { position: relative; z-index: 0; appearance: none; border: 0; background: none; padding: 0 0 8px; cursor: pointer; font: 800 48px/1.16 var(--font); letter-spacing: -.03em; color: #c4bab3; transition: transform .5s var(--ease); }
.tab::after { content: ''; position: absolute; z-index: -1; left: -2%; bottom: 10px; width: 104%; height: .32em; background: var(--hl); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: 6px; border-radius: 4px; }
.tab:disabled { color: var(--ink); cursor: default; }
.tab:disabled::after { display: none; }
.panel[hidden] { display: none; }
.mark-hl { background: linear-gradient(var(--hl), var(--hl)) 0 88% / 0 42% no-repeat; transition: background-size .7s var(--ease); }
.rows { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.row > :is(a, div) { display: grid; grid-template-columns: 56px minmax(0,1fr) minmax(0,1.4fr) 32px; gap: 24px; align-items: center; min-height: 96px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.row .n { font: 700 14px var(--display); color: var(--muted); }
.row h3 { margin: 0; font: 800 26px/1.2 var(--font); letter-spacing: -.02em; justify-self: start; }
.row p { color: var(--muted); }
.contacts .account { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; font-size: 13px; overflow-wrap: anywhere; }
.row .arr { opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.row a:focus-visible { padding-left: 20px; }
.row a:focus-visible .mark-hl { background-size: 100% 42%; }
.row a:focus-visible .arr { opacity: 1; transform: none; }
.work { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 56px; padding: 88px 0; border-bottom: 1px solid var(--line); align-items: center; }
.work:nth-child(even) { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
.work:nth-child(even) .work-head { order: 2; }
.index { display: block; font: 900 150px/.8 var(--display); letter-spacing: -6px; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: transform .6s var(--ease); }
.work h2 { font: 800 44px/1.1 var(--font); letter-spacing: -1.2px; margin: 28px 0 14px; }
.work h2.display-name { font-family: var(--display); }
.work p { color: var(--muted); max-width: 26em; }
.go { display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; padding: 10px 22px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; }
.go span { transition: transform .5s var(--ease); }
.stage { display: block; position: relative; height: 440px; border-radius: 20px; overflow: hidden; background: var(--stage); }
.product-window, .finance-shot { position: absolute; box-shadow: var(--window-shadow); transition: transform .4s var(--ease); border-radius: 10px 0 0; }
.work-finance .stage { background: var(--stage-dark); }
.finance-shot { width: 100%; max-width: none; left: 44px; top: 44px; aspect-ratio: 8/5; }
.work:focus-within .index { transform: translateY(-6px); -webkit-text-stroke-color: var(--coral); }
.work:focus-within .mark-hl { background-size: 100% 42%; }
.work:focus-within .go span { transform: translateX(6px); }
.work:focus-within .product-window, .work:focus-within .finance-shot { transform: translateY(-6px); }
.go:focus-visible { background: var(--coral); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { background: var(--coral-soft); color: var(--ink); }
  .tab:not(:disabled):not([aria-selected="true"]):hover { color: #8f857e; transform: translateY(-2px); }
  .row a:hover { padding-left: 20px; }
  .row:hover .mark-hl { background-size: 100% 42%; }
  .row a:hover .arr { opacity: 1; transform: none; }
  .go:hover { background: var(--coral); color: var(--ink); }
  .work:hover .go span { transform: translateX(6px); }
  .work:hover .index { transform: translateY(-6px); -webkit-text-stroke-color: var(--coral); }
  .work:hover .mark-hl { background-size: 100% 42%; }
  .work:hover .product-window, .work:hover .finance-shot { transform: translateY(-6px); }
  .site-footer a:hover { color: var(--ink); }
}
/* The product retains its own colours inside its stage. */
#cad-stage {
  --cad-bg: #f3f6f7;
  --cad-card: #ffffff;
  --cad-line: #cdd5d8;
  --cad-text: #1c2630;
  --cad-muted: #5d6b75;
  --cad-accent: #0d9488;
  --cad-soft: #e2f5f1;
  --cad-dim: #0f766e;
  --cad-hover: #f5faf9;
}
.cad-demo { left: 44px; top: 44px; width: 640px; overflow: hidden; border: 1px solid var(--cad-line); background: var(--cad-bg); color: var(--cad-text); font: 12px/1.5 "Microsoft YaHei UI",var(--font); }
.window-title { display: flex; align-items: center; gap: 8px; height: 32px; padding-inline: 12px; background: var(--cad-card); }
.window-title strong { font-size: 13px; }
.window-symbol { color: var(--cad-accent); font-size: 22px; line-height: 1; }
.window-controls { margin-left: auto; color: var(--cad-muted); letter-spacing: 8px; white-space: nowrap; }
.cad-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--cad-line); border-bottom: 1px solid var(--cad-line); }
.cad-tabs span { text-align: center; padding: 12px 8px; color: var(--cad-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.cad-tabs .selected { color: var(--cad-dim); font-weight: 700; border-bottom-color: var(--cad-accent); }
.cad-body { padding: 12px; }
.cad-toolbar { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--cad-line); white-space: nowrap; }
.cad-toolbar strong { font-size: 13px; }
.cad-toolbar>span:not(.archive) { color: var(--cad-dim); }
.archive { margin-left: auto; color: var(--cad-muted); }
.archive b { font-weight: 400; margin-left: 8px; background: var(--cad-card); border: 1px solid var(--cad-line); padding: 4px 12px; border-radius: 3px; }
.cad-options { display: flex; gap: 8px; align-items: center; margin-block: 16px; color: var(--cad-muted); white-space: nowrap; }
.cad-options b { font-weight: 400; background: var(--cad-card); border: 1px solid var(--cad-line); padding: 4px 8px; border-radius: 3px; color: var(--cad-text); }
.option-action { margin-left: auto; padding: 4px 8px; border: 1px solid var(--cad-line); background: var(--cad-card); border-radius: 3px; }
.demo-progress { opacity: 1; transition: opacity 160ms; }
.cad-demo[data-phase="resetting"] .demo-progress { opacity: 0; }
.cad-table { table-layout: fixed; width: 100%; border-collapse: collapse; border: 1px solid var(--cad-line); background: var(--cad-card); font-size: 12px; }
.cad-table th, .cad-table td { padding: 8px; border-bottom: 1px solid var(--cad-line); white-space: nowrap; text-align: left; overflow: hidden; text-overflow: ellipsis; height: 34px; }
.cad-table th { background: var(--cad-bg); font-weight: 600; }
.cad-table th:nth-child(2) { width: 46%; }
.cad-table .include { width: 48px; text-align: center; }
.include span { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; line-height: 1; background: var(--cad-dim); color: var(--cad-card); border-radius: 2px; }
.cad-table [data-demo-status] { color: var(--cad-dim); }
.cad-table [data-state="pending"] [data-demo-status] { color: var(--cad-muted); }
.cad-table [data-state="running"] { background: var(--cad-soft); }
.cad-table [data-state="running"] [data-demo-status] { color: var(--cad-dim); font-weight: 700; }
.cad-bottom { display: flex; align-items: center; gap: 8px; padding-top: 16px; }
.cad-bottom strong { margin-right: auto; font-weight: 500; color: var(--cad-dim); }
.cad-action { border: 1px solid var(--cad-line); background: var(--cad-card); padding: 4px 12px; border-radius: 3px; color: var(--cad-muted); }
.cad-action.primary { background: var(--cad-dim); border-color: var(--cad-dim); color: var(--cad-card); }
.tools-demo { width: 180px; right: -64px; top: 220px; overflow: hidden; border: 1px solid var(--cad-line); background: var(--cad-bg); color: var(--cad-text); font: 12px/1.5 "Microsoft YaHei UI",var(--font); }
.tools-title { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--cad-card); font-size: 13px; }
.tools-title span { color: var(--cad-muted); }
.tools-search { margin: 8px; padding: 8px; border: 1px solid var(--cad-line); color: var(--cad-muted); background: var(--cad-card); border-radius: 3px; font-size: 11px; white-space: nowrap; }
.tool-group { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-block: 1px solid var(--cad-line); background: var(--cad-soft); }
.tool-group strong { font-size: 12px; font-weight: 600; }
.tool-group>span { color: var(--cad-muted); font-size: 11px; }
.tools-demo ul { list-style: none; padding: 8px 12px; }
.tools-demo li { padding: 8px 0; font-size: 11px; white-space: nowrap; }
/* Reuse v0.2's compact window layout inside the narrower two-column stage. */
.window-controls, .archive, .cad-options { display: none; }
.cad-toolbar { gap: 12px; }
.cad-tabs span { padding: 8px; }
.cad-body { padding: 8px; }
.cad-table th, .cad-table td { height: 30px; padding: 4px 8px; }
.cad-bottom { padding-top: 12px; }
.tools-demo ul { padding-inline: 8px; }
@media (min-width:901px) {
  .cad-demo { width: calc(100% - 44px); }
  /* Reserve the tools panel's visible 116px, with a 1px gap after the controls. */
  .demo-progress { margin-right: 108px; }
  .cad-table th:nth-child(2) { width: auto; }
  .cad-table th:nth-child(3) { width: 80px; }
  .cad-table th:nth-child(4) { width: 64px; }
}
.about { padding: 88px 0; }
.info-row { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 56px; }
.info-row h2 { font-size: 14px; font-weight: 400; color: var(--muted); }
.info-row p { font: 400 24px/1.6 var(--font); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
/* boot.js alone opts into hidden entry states; without JS the document stays visible. */
.js .hero:not(.is-entered) .name, .js .hero:not(.is-entered) .hero-lion,
.js .hero:not(.is-entered) .who { opacity: 0; transform: translateY(30%); }
.js .hero.is-entered .name:not(.entry-complete), .js .hero.is-entered .hero-lion:not(.entry-complete),
.js .hero.is-entered .who:not(.entry-complete) { animation: hero-entry .9s var(--ease) both; }
.js .hero.is-entered .hero-lion { animation-delay: .25s; }
.js .hero.is-entered .who { animation-delay: .4s; }
.js .work:not(.is-visible) { opacity: 0; transform: translateY(30px); }
.js .work.is-visible:not(.entry-complete) { animation: work-entry 1s var(--ease) both; }
@keyframes hero-entry { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes work-entry { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width:900px) {
  .shell { width: calc(100% - 32px); }
  .site-header { height: 64px; }
  .hero { padding: 40px 0; }
  .title { font-size: 25vw; }
  .who { gap: 8px 28px; }
  .who .cn, .who p { font-size: 18px; }
  .tabs { gap: 8px 28px; padding-top: 48px; }
  .tab { font-size: 32px; }
  .tab::after { bottom: 7px; }
  .row > :is(a, div) { grid-template-columns: 32px minmax(0,1fr) 20px; gap: 4px 12px; padding: 20px 0; }
  .row p { grid-column: 2 / 3; }
  .row .arr { grid-row: 1; grid-column: 3; }
  .work, .work:nth-child(even) { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 56px 0; }
  .work:nth-child(even) .work-head { order: 0; }
  .index { font-size: 92px; letter-spacing: -3px; }
  .work h2 { font-size: 32px; }
  .stage { height: 230px; border-radius: 16px; }
  .finance-shot { left: 20px; top: 20px; }
  .cad-demo { width: calc(100% - 20px); left: 20px; top: 20px; }
  .tools-demo { display: none; }
  .window-controls { display: none; }
  .about { padding: 56px 0; }
  .info-row { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .window-title { height: 24px; }
  .cad-tabs { height: 24px; }
  .cad-tabs span { padding: 2px 4px; font-size: 11px; line-height: 18px; }
  .cad-options { display: none; }
  .cad-body { padding: 8px; }
  .cad-toolbar { display: none; }
  .cad-table .include { width: 32px; }
  .cad-table { font-size: 11px; line-height: 1.2; }
  .cad-table th, .cad-table td { padding: 1px 4px; height: 18px; }
  .cad-bottom { padding-top: 4px; line-height: 1.2; font-size: 11px; }
  .cad-action { display: none; }
  .cad-table th:nth-child(2) { width: 48%; }
}
@media (max-width:480px) {
  .window-title { padding-inline: 8px; }
  .window-title strong { font-size: 12px; }
  .window-symbol { display: none; }
  .cad-demo .pdf-column { display: none; }
  .cad-table th:nth-child(2) { width: 64%; }
  .cad-table { font-size: 11px; }
  .cad-table [data-demo-status] { font-size: 11px; }
  .cad-bottom { flex-wrap: wrap; font-size: 11px; }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; }
  .js .hero .name, .js .hero .hero-lion, .js .hero .who, .js .work {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .product-window, .finance-shot, .go span, .index, .tab, .row .arr { transform: none !important; }
  .row a { padding-left: 0 !important; }
  .demo-progress { transition: none; opacity: 1 !important; }
}
