@font-face {
  font-family: Inter;
  src: url("inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("inter-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("inter-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  scrollbar-gutter: stable both-edges;
  --page-width: 1160px;
  --page-gutter: 32px;
  --ink: #171816;
  --muted: #575a54;
  --rule: #e6e8e2;
  --accent: #216653;
  font: 16px/1.55 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.wrap { width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--page-width)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 0.5rem; transform: translateY(-160%); z-index: 3; background: #fff; padding: .5rem .8rem; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 700; letter-spacing: -.055em; font-size: 1.18rem; }
.wordmark > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 24px; font-size: .88rem; }
.header-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 20px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current="page"], .site-footer a:hover { color: var(--accent); }
.site-header .language-select { gap: 2px; border: 1px solid var(--rule); border-radius: 24px; padding: 3px; font-size: .76rem; }
.language-select a { border-radius: 18px; min-width: 32px; padding: 3px 7px; text-align: center; white-space: nowrap; }
.site-header .language-select a[aria-current="true"] { background: #e9f1ec; color: #184b3c; }

.icon-link { display: inline-flex; gap: 6px; align-items: center; }
.icon { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 16px; vertical-align: middle; }
.icon::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 44%, 75% 44%, 47% 16%, 56% 7%, 100% 50%, 56% 93%, 47% 84%, 75% 56%, 0 56%);
}
.icon--left::before { rotate: 180deg; }
.icon--down::before { rotate: 90deg; }
.icon--external::before { clip-path: polygon(0 89%, 76% 13%, 29% 13%, 29% 0, 100% 0, 100% 71%, 87% 71%, 87% 24%, 11% 100%); }
.icon--check::before { clip-path: polygon(0 52%, 14% 40%, 39% 65%, 87% 17%, 100% 30%, 39% 91%); }

.intro { padding-block: 76px 56px; }
.intro-mark { width: 46px; height: 46px; margin-bottom: 25px; }
h1 { font-weight: 500; font-size: clamp(3.1rem, 7vw, 5.75rem); line-height: .98; letter-spacing: -.083em; }
:lang(zh-Hans) h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.16; letter-spacing: -.035em; }
.intro p { margin-top: 23px; max-width: 430px; color: var(--muted); font-size: 1.06rem; line-height: 1.54; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 30px; border: 1px solid var(--rule); font-size: .83rem; font-weight: 500; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.button-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-primary:hover { background: #2e3e35; border-color: #2e3e35; }
.button-quiet:hover { background: #f5f7f3; border-color: #c7d1c7; }

.portfolio { scroll-margin-top: 24px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.section-title h2 { font-weight: 500; letter-spacing: -.026em; font-size: 1.1rem; }
.section-title > span { color: var(--muted); font-size: .79rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 16px; }
.project-card { display: block; }
.project-card:hover .cover-scene { scale: 1.025; }
.project-card:hover .card-arrow, .next-project:hover .card-arrow { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-description { padding: 12px 1px 3px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h3 { font-weight: 500; letter-spacing: -.04em; font-size: clamp(1.15rem, 3vw, 1.48rem); }
.card-arrow { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid var(--rule); border-radius: 50%; transition: background .16s ease, color .16s ease; }
.card-description p { margin-top: 3px; color: var(--muted); font-size: .9rem; max-width: 46ch; line-height: 1.48; }
.project-category { display: inline-block; margin-top: 10px; font-size: .72rem; font-weight: 500; color: #454c46; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 27px 31px; margin-top: 72px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; }

.page-heading { padding-block: 75px 54px; }
.simple-page > p { margin-top: 20px; color: var(--muted); max-width: 60ch; }
.simple-page .page-lead { color: var(--ink); font-size: 1.28rem; max-width: 32ch; }
.prose-page { padding-block: 82px 34px; min-height: 48vh; }
.prose-page > .button, .about-copy > .button { margin-top: 26px; }
.about-page { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-illustration { border-radius: 9px; overflow: hidden; background: #eef0e9; aspect-ratio: 3 / 2; }
.about-illustration img { width: 100%; height: 100%; object-fit: cover; }
.case-header { padding-block: 42px 30px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 34px; }
.back-link:hover { color: var(--accent); }
.eyebrow { font-size: .8rem; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.case-header h1 { font-size: clamp(2.7rem, 6.8vw, 5rem); }
.case-subtitle { margin-top: 15px; font-size: 1.12rem; font-weight: 500; letter-spacing: -.035em; }
.case-deck { margin-top: 13px; font-size: 1.03rem; color: var(--muted); max-width: 55ch; }
.case-header .button { margin-top: 23px; }
.case-figure .cover { aspect-ratio: 2.3; }
.case-figure .cover-scene { max-width: 760px; margin-inline: auto; }
.case-figure figcaption { margin-top: 7px; font-size: .76rem; color: var(--muted); }
.case-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 38px; }
.case-content { min-width: 0; }
.case-content p { max-width: 72ch; }
.case-content h2 { font-size: 1.61rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.25; margin-bottom: 11px; }
.case-content > p { color: var(--muted); margin-bottom: 35px; }
.detail-list { margin-top: 6px; }
.detail-item { padding-block: 14px; border-top: 1px solid var(--rule); }
.detail-item h3 { font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.detail-item p, .case-meta p { color: var(--muted); font-size: .91rem; }
.case-meta { width: 100%; border: 1px solid var(--rule); background: #f9faf7; padding: 17px 19px; border-radius: 11px; }
.case-meta h2 { font-size: .76rem; color: var(--muted); font-weight: 500; }
.case-meta strong { display: block; margin-block: 7px 6px; font-weight: 500; }
.next-project { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 20px; }
.next-project > span:first-child { grid-column: 1; font-size: .78rem; color: var(--muted); }
.next-project strong { grid-column: 1; font-size: 1.35rem; font-weight: 500; letter-spacing: -.04em; }
.next-project .card-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }

.cover { position: relative; overflow: hidden; border-radius: 9px; aspect-ratio: 1.73; background: var(--cover-bg); isolation: isolate; color: #1d252c; user-select: none; }
.cover--violet { --cover-bg: radial-gradient(ellipse at 78% 13%, #d7ccfb 0%, #aea1e3 52%, #8675bf 100%); --mock-accent: #7566c7; --mock-soft: #e8e3fc; }
.cover--green { --cover-bg: radial-gradient(ellipse at 32% 80%, #487767, #173e36 65%, #0e2b29); --mock-accent: #267862; --mock-soft: #d9ede5; }
.cover--orange { --cover-bg: radial-gradient(ellipse at 80% 24%, #ffcc9d, #f2a665 58%, #dc7851); --mock-accent: #c25d36; --mock-soft: #fae6d9; }
.cover--paper { --cover-bg: radial-gradient(ellipse at 48% 31%, #f8e4df, #deb8ae 70%, #c99488); --mock-accent: #965746; --mock-soft: #f3e2d9; }
.cover--sky { --cover-bg: radial-gradient(ellipse at 40% 65%, #8dc4dc, #507e9e 76%, #345574); --mock-accent: #346b9a; --mock-soft: #dbe9f4; }
.cover--teal { --cover-bg: radial-gradient(ellipse at 77% 28%, #a9d9d7, #82bdbc 55%, #5c9697); --mock-accent: #25746e; --mock-soft: #d8eeea; }
.cover--sand { --cover-bg: radial-gradient(ellipse at 33% 80%, #e9dabc, #d0b687 70%, #ac8f66); --mock-accent: #876b32; --mock-soft: #efe8d4; }
.cover--ink { --cover-bg: radial-gradient(ellipse at 72% 18%, #4b577f, #232c4c 58%, #161e38); --mock-accent: #a1aaff; --mock-soft: #2e3a5c; }
.cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, #fff0 0 39px, #fff2 40px, #fff0 41px 75px); opacity: .28; }
.cover-scene { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transition: scale .25s cubic-bezier(.2,.72,.2,1); container-type: inline-size; }
.mock-window { width: 75%; min-height: 62%; background: #f7f7fa; border: 1px solid #fff9; border-radius: 8px; box-shadow: 0 18px 42px #11182838, 0 2px 5px #11182824; overflow: hidden; transform: translateY(3%) rotate(-3deg); }
.mock-top { min-height: 32px; min-height: 6cqw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3px; background: #fff; padding-inline: 4%; border-bottom: 1px solid #e6e7ed; }
.mock-top b { font-size: clamp(8px, 1.96cqw, 15px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.mock-top > span:last-child { justify-self: end; font-size: clamp(5px, 1.2cqw, 10px); line-height: 1; color: #515964; }
.mock-chrome { display: flex; gap: 3px; }
.mock-chrome i { width: 5px; height: 5px; border-radius: 50%; background: #dce0e6; }
.mock-chrome i:first-child { background: var(--mock-accent); }
.mock-body { display: grid; gap: 6px; gap: 1.3cqw; padding: 3%; }
.mock-split .mock-body { grid-template-columns: 1fr 1.45fr; }
.mock-panel { min-width: 0; border-radius: 6px; border: 1px solid #e4e7ed; background: #fff; padding: 7%; }
.mock-panel > span, .mock-records p, .mock-trace p, .mock-panel > p { display: block; font-size: clamp(5px, 1.45cqw, 11px); line-height: 1.4; color: #596370; }
.mock-panel > b { display: block; margin-top: .65cqw; font-size: clamp(7px, 1.77cqw, 13px); line-height: 1.2; }
.mock-records p, .mock-trace p { margin-top: .3cqw; }
.mock-records b { margin-top: 1.5cqw; }
.mock-bars { height: clamp(33px, 13cqw, 96px); display: flex; align-items: end; gap: 5%; padding-top: 2cqw; border-bottom: 1px solid #dbe2e7; margin-top: 1.1cqw; background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), #e9edf4 calc(25% - 1px) 25%); }
.mock-bars > i { display: block; flex: 1 1 auto; height: var(--height); background: var(--mock-accent); border-radius: 3px 3px 0 0; }
.mock-bars > i:is(:nth-child(2n), :nth-child(5)) { opacity: .58; }
.mock-lines { display: grid; gap: .8cqw; margin-block: 1.5cqw; }
.mock-lines > i { display: block; height: max(2px, .65cqw); border-radius: 2px; background: #dce1e7; }
.mock-lines > i:nth-child(2n) { width: 86%; }
.mock-lines > i:last-child { width: 66%; }
.mock-float { position: absolute; background: #fff; box-shadow: 0 7px 20px #2222; border: 1px solid #ededed; border-radius: 6px; padding: 1.4cqw 2cqw; font: 500 clamp(6px, 1.65cqw, 12px)/1.1 Inter, sans-serif; z-index: 1; }
.mock-float > .icon { color: var(--mock-accent); width: 2cqw; height: 2cqw; margin-left: 1cqw; }
.mock-float > .icon::before { width: 80%; height: 80%; }
.mock-upload { right: 8%; bottom: 13%; transform: rotate(5deg); }

.mock-lineage { transform: translate(-1%, 1%) rotate(4deg); width: 79%; }
.mock-lineage .mock-body { grid-template-columns: 1.75fr 1fr; }
.mock-sheet { min-width: 0; background: white; border: 1px solid #e3e8ea; border-radius: 6px; overflow: hidden; }
.mock-sheet-toolbar { background: #126548; color: #fff; padding: .9cqw 1.5cqw; font-size: clamp(6px, 1.42cqw, 13px); font-weight: 500; }
.mock-sheet-toolbar span { margin-left: .6cqw; color: #cbe7dc; }
.mock-spreadsheet { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
.mock-spreadsheet span { padding: .8cqw .54cqw; border: 1px solid #e9edf0; font-size: clamp(5px, 1.35cqw, 11px); text-align: center; line-height: 1; white-space: nowrap; }
.mock-spreadsheet span:nth-child(-n+4) { color: #576260; background: #f2f7f4; }
.mock-spreadsheet .highlight { color: #12573f; background: #d0eddf; border-color: #a0d4bd; }
.mock-trace { border-left: 3px solid #68b193; }

.cover--subscriptions .mock-window { transform: rotate(-3deg) translateY(2%); }
.cover--subscriptions .mock-body { grid-template-columns: 1.3fr 1fr; }
.mock-share { text-align: center; }
.mock-donut { height: 11cqw; aspect-ratio: 1; margin: 1.4cqw auto .2cqw; border-radius: 50%; position: relative; background: conic-gradient(#bd5536 0 47%, #dfa16b 47% 70%, #f1bc90 70% 89%, #905245 89%); }
.mock-donut::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: #fff; }

.mock-paper { position: absolute; width: 45%; height: 82%; padding: 4.1% 5%; border-radius: 4px; background: #fffaf2; border: 1px solid #fffdf3; box-shadow: 0 14px 23px #4b2c2936; }
.mock-paper-back { left: 30%; top: 10%; transform: rotate(10deg); background: #eee2d3; }
.mock-paper-back > b { font-size: 2.1cqw; }
.mock-edition { left: 24%; top: 9%; transform: rotate(-6deg); }
.mock-edition > span { display: block; font-size: 1cqw; letter-spacing: .15em; color: #825141; }
.mock-edition > b { display: block; font: 700 6.65cqw/.95 Georgia, "Noto Serif CJK SC", serif; color: #33211c; margin-top: 1.6cqw; }
.mock-edition hr, .mock-modem-settings hr { border: 0; height: 1px; background: #dec8bc; margin: 1.8cqw 0 1.2cqw; }
.mock-edition h3 { font: 700 2.65cqw/1.12 Georgia, serif; }
.mock-edition p { font: 700 1.55cqw/1.1 Georgia, serif; }
.mock-edition .mock-lines > i { background: #dfd2c4; }
.mock-message { right: 13%; bottom: 13%; display: flex; align-items: center; gap: 1.3cqw; transform: rotate(3deg); }
.mock-message i { width: 3cqw; height: 3cqw; border-radius: 25%; background: #159565; }
.mock-message p { margin-top: .35cqw; color: #646a6e; }

.mock-tablet { width: 67%; border: 3px solid #283347; border-radius: 12px; transform: translateX(-12%) rotate(-5deg); background: #e9f0f7; }
.mock-tablet .mock-top { background: #edf3fa; }
.mock-modem-settings { border: 1px solid #d9e3ef; padding: 2.1cqw 2.5cqw; background: #fff; border-radius: 8px; font-size: clamp(7px, 1.68cqw, 13px); }
.mock-modem-settings > span, .mock-modem-settings > b { display: block; }
.mock-modem-settings > span { color: #526579; }
.mock-modem-settings hr { background: #dfe9f4; }
.mock-segment { display: grid; grid-template-columns: 1fr 1fr; background: #edf3f9; padding: .35cqw; border-radius: 4px; margin-top: .7cqw; text-align: center; }
.mock-segment > * { padding: .45cqw; }
.mock-segment b { background: #fff; color: #244f74; border-radius: 4px; }
.mock-meter { height: 4px; margin-top: .9cqw; border-radius: 3px; background: #e3edf5; overflow: hidden; }
.mock-meter i { display: block; width: 63%; height: 100%; background: #638ab0; }
.mock-usb-cable { position: absolute; left: 73.5%; top: 54%; width: 12%; height: 21%; border: max(2px, .65cqw) solid #344457; border-left: 0; border-bottom: 0; border-radius: 0 3.5cqw 0 0; transform: rotate(-4deg); }
.mock-modem-adapter { position: absolute; right: 5.8%; bottom: 13%; width: 16%; aspect-ratio: 1.72; display: flex; align-items: end; justify-content: space-between; padding: 1.1cqw; color: #425164; font-size: 1.2cqw; border: 1px solid #b8c9d3; border-bottom: max(2px, .55cqw) solid #647686; border-radius: 1.35cqw; box-shadow: 0 9px 18px #142d4577; background: linear-gradient(150deg, #f0f6f7, #b7cbd6 65%, #a0b5c2); transform: rotate(-4deg); z-index: 1; }
.mock-modem-adapter i { position: absolute; inset: 19% 12% auto; height: 26%; border-radius: 2px; background: repeating-linear-gradient(to bottom, #6d8796 0 1px, transparent 1px 3px); opacity: .58; }
.mock-modem-adapter span { width: .75cqw; aspect-ratio: 1; margin-bottom: .35cqw; border-radius: 50%; background: #257c6e; box-shadow: 0 0 4px #61b3a8; }

.cover--monitor .mock-window { width: 78%; transform: rotate(3deg); }
.cover--monitor .mock-panel { padding: 3% 5% 4%; }
.cover--monitor .mock-bars { height: 11cqw; }
.mock-indicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.mock-indicators span { color: #354c50; border: 1px solid #d9e9e8; background: #fff; border-radius: 5px; font-size: clamp(6px, 1.35cqw, 11px); padding: .95cqw; }
.mock-indicators i { display: block; width: 63%; height: .58cqw; min-height: 2px; margin-top: .6cqw; border-radius: 2px; background: var(--mock-accent); }
.mock-indicators span:nth-child(2) i { width: 42%; }
.mock-indicators span:nth-child(3) i { width: 75%; }
.cover--knowledge .mock-window { transform: rotate(-4deg) translateX(-2%); }
.mock-source { right: 9%; bottom: 13%; transform: rotate(4deg); }

.mock-terminal { color: #e4e9fc; border-color: #909ec386; background: #161e33; width: 80%; transform: rotate(4deg); }
.mock-terminal .mock-top { background: #202947; border-color: #3d4866; }
.mock-terminal .mock-top > span:last-child, .mock-terminal .mock-panel > span, .mock-terminal p { color: #aab8d9; }
.mock-terminal .mock-body { grid-template-columns: 1.65fr 1fr; }
.mock-terminal .mock-panel { background: #202c48; border-color: #3c4b71; }
.mock-terminal .mock-panel > p { padding: .7cqw 0; border-bottom: 1px solid #3c4b71; }
.mock-candles { height: 14cqw; display: flex; gap: 4%; background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), #46547a 25%); margin-top: 1.2cqw; }
.mock-candles i { position: relative; display: block; flex: 1; height: calc(var(--height) / 2); align-self: end; margin-bottom: calc(var(--bottom) / 2); background: #7fc8ad; }
.mock-candles i:nth-child(3n) { background: #e8959d; }
.mock-candles i::after { content: ""; position: absolute; left: 50%; top: -30%; width: 1px; height: 160%; background: inherit; }

@media (max-width: 760px) {
  :root { --page-gutter: 18px; }
  .header-inner { min-height: 60px; }
  .site-header nav, .site-footer nav { gap: 12px; font-size: .79rem; }
  .header-links { gap: 10px; padding-block: 6px; }
  .intro { padding-block: 53px 47px; }
  .intro-mark { margin-bottom: 18px; }
  .desktop-break { display: none; }
  .about-page, .case-body { grid-template-columns: 1fr; gap: 24px; }
  .case-body { margin-top: 25px; }
  .prose-page { padding-top: 53px; }
}

@media (max-width: 540px) {
  .project-grid { grid-template-columns: 1fr; gap: 25px; }
  .case-figure .cover { aspect-ratio: 1.65; }
  .site-footer { margin-top: 45px; }
  .intro h1 { font-size: clamp(2.9rem, 10vw, 3.95rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
