:root {
  --ink: #151515;
  --muted: #5f625f;
  --quiet: #91948f;
  --line: #dedbd2;
  --paper: #f6f2ea;
  --panel: #ffffff;
  --blue: #2f5bff;
  --teal: #119b89;
  --amber: #b87516;
  --soft-blue: #eaf0ff;
  --soft-teal: #e7f5f0;
  --shadow: 0 20px 60px rgba(21, 21, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  font-family: Figtree, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

.index-header,
main,
.index-footer {
  transition: filter 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease, transform 520ms ease;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  display: grid;
  width: min(420px, calc(100vw - 48px));
  gap: 18px;
}

.site-loader__kicker {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 600;
}

.site-loader__words {
  position: relative;
  height: clamp(48px, 8vw, 78px);
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.03em;
}

.site-loader__words span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: none;
  animation: loader-word 900ms steps(1, end) infinite;
}

.site-loader__words span:nth-child(2) {
  animation-delay: 300ms;
}

.site-loader__words span:nth-child(3) {
  animation-delay: 600ms;
}

.site-loader__bar {
  height: 1px;
  overflow: hidden;
  background: rgba(21, 21, 21, 0.12);
}

.site-loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: none;
  animation: none;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .index-header,
body.modal-open main,
body.modal-open .index-footer {
  filter: blur(14px);
  opacity: 0.62;
  transform: scale(0.992);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle, rgba(47, 91, 255, 0.14), rgba(47, 91, 255, 0) 64%);
  opacity: 0;
  filter: blur(18px);
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 50vh) - 50%), 0);
  transition: opacity 260ms ease, transform 90ms linear;
  will-change: transform;
}

.has-pointer .cursor-glow {
  opacity: 0.34;
}

body.modal-open .cursor-glow {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 42px);
  background: rgba(246, 242, 234, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.nav {
  color: var(--muted);
  font-size: 14px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 4px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav a:hover,
.text-link:hover {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  background: var(--ink);
  color: #fff;
}

.section {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.index-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: start;
  width: min(100% - 36px, 1920px);
  margin: 0 auto;
  padding: 34px 0 0;
  animation: enter-soft 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-mark p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.intro-mark span {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-size: 15px;
  white-space: nowrap;
}

.index-nav {
  display: flex;
  gap: 18px;
  justify-self: end;
  white-space: nowrap;
}

.contact-link,
.index-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  padding: 8px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.index-nav a:hover,
.index-footer a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.index-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: min(100% - 36px, 1920px);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(138px, 17vh, 210px) 0 clamp(108px, 13vh, 170px);
}

.index-hero .hero-head {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.index-hero h1 {
  max-width: 1080px;
  font-size: clamp(38px, 4.35vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-title {
  display: grid;
  gap: 0.02em;
}

.hero-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0 0.22em;
  overflow: visible;
  padding-bottom: 0.04em;
  white-space: nowrap;
}

.hero-rotating-line {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  align-items: baseline;
  gap: 0 0.22em;
  overflow: visible;
}

.hero-word {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: word-drift-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--word-index, 0) * 70ms);
}

.hero-prefix {
  display: inline-block;
  transform: translateX(0);
  will-change: transform;
}

.hero-title strong {
  font-weight: 800;
}

.hero-keyword {
  display: inline-grid;
  grid-template: 1fr / 1fr;
  align-items: baseline;
  position: relative;
  overflow: hidden;
  padding: 0 0 0.12em;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
  transition: width 520ms cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: bottom;
}

.text-rotate-layer {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  white-space: nowrap;
}

.text-rotate-layer.is-measuring {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.text-rotate-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-rotate-word {
  display: inline-flex;
  overflow: hidden;
  padding: 0.02em 0 0.1em;
}

.text-rotate-element {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}

.text-rotate-space {
  white-space: pre;
}

.text-rotate-layer.is-entering .text-rotate-element {
  animation: rotate-text-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--char-index, 0) * 16ms);
}

.text-rotate-layer.is-exiting .text-rotate-element {
  animation: rotate-text-out 320ms cubic-bezier(0.7, 0, 0.84, 0) both;
  animation-delay: calc(var(--char-index, 0) * 10ms);
}

.hero-subcopy {
  display: grid;
  gap: 4px;
  width: min(100%, 720px);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
  animation: enter-soft 620ms ease 260ms both;
}

.hero-subcopy p {
  margin: 0;
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

.card-index {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(100% - 36px, 1920px);
  margin: 0 auto;
  padding: 0 0 52px;
}

.entry-card {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.has-js .entry-card {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
}

.has-js .entry-card.is-visible {
  animation: enter-card 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 90ms);
}

.entry-card.featured {
  grid-column: auto;
}

.entry-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 18px 42px rgba(21, 21, 21, 0.08);
}

.entry-card.tall {
  min-height: 0;
}

.entry-card.compact {
  min-height: 0;
}

.entry-card.dark {
  background: #080808;
  color: #fff;
}

.entry-card.soft {
  background: #ddd9d2;
}

.entry-card.code {
  background: #181818;
  color: #fff;
}

.entry-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-top span {
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 7px 11px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1;
}

.entry-card.dark .entry-top span {
  border-color: rgba(255, 255, 255, 0.2);
}

.entry-card.code .entry-top span {
  border-color: rgba(255, 255, 255, 0.2);
}

.entry-top b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  line-height: 1;
  transition: transform 180ms ease;
}

.entry-top b svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-card:hover .entry-top b {
  transform: translate(2px, -2px);
}

.entry-card h2 {
  position: relative;
  z-index: 1;
  margin: 14px 0 8px;
  color: currentColor;
  font-family: Figtree, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 680;
  line-height: 1.16;
  letter-spacing: 0;
}

.entry-card.featured h2 {
  font-size: clamp(20px, 1.45vw, 28px);
  font-weight: 680;
  line-height: 1.16;
}

.entry-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.42;
}

.entry-card:hover .product-cover {
  transform: translateY(-3px) scale(1.01);
}

.entry-card.dark p {
  color: rgba(255, 255, 255, 0.62);
}

.entry-card.code p {
  color: rgba(255, 255, 255, 0.62);
}

.entry-card.dark .entry-top b,
.entry-card.code .entry-top b {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.entry-visual {
  flex: 0 0 auto;
  min-height: 0;
  margin: 20px 0 0;
  border-radius: 8px;
}

.product-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.32), transparent 28%);
  pointer-events: none;
}

.image-visual {
  background: #ddd9d2;
}

.image-visual::before {
  z-index: 1;
}

.image-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.index-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 36px, 1920px);
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--quiet);
  font-size: 14px;
  animation: enter-soft 720ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

.index-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.index-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  padding: 8px 13px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.legal-footer a[href*="beian.miit.gov.cn"],
.site-footer .icp-link {
  color: var(--quiet);
  font-weight: 600;
}

.about-detail {
  display: block;
  padding-top: clamp(108px, 14vh, 174px);
  padding-bottom: clamp(120px, 16vh, 210px);
}

.about-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(72px, 6vw, 104px);
  align-items: start;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.about-profile__avatar {
  margin: 0;
}

.about-profile__avatar img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
}

.about-profile__copy {
  max-width: 980px;
}

.about-profile__copy h1 {
  margin: 0 0 30px;
  color: var(--ink);
  font-family: Figtree, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 4.6vw, 68px);
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 0.96;
}

.about-profile__copy h1 span {
  display: inline-block;
  transform: translateY(-0.04em);
}

.about-profile__copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.82;
}

.about-profile__copy p:first-of-type {
  margin-bottom: 32px;
}

.about-talk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid rgba(21, 21, 21, 0.42);
  border-radius: 999px;
  background: transparent;
  padding: 6px 7px 6px 15px;
  color: var(--ink);
  cursor: pointer;
  font-family: Figtree, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.about-talk-button:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  transform: translateY(-1px);
}

.about-talk-button b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.about-talk-button:hover b {
  background: #fff;
  color: var(--ink);
}

.about-footer {
  padding-top: 8px;
}

.about-return {
  gap: 10px;
  min-height: 44px;
  padding: 6px 7px 6px 15px;
}

.about-return b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.about-return:hover b {
  background: #fff;
  color: var(--ink);
}

.wechat-dialog {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wechat-dialog[hidden] {
  display: none;
}

.wechat-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.68);
  cursor: pointer;
}

.wechat-dialog__panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.wechat-dialog__panel img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.wechat-dialog__panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.wechat-dialog__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(246, 242, 234, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__shell {
  width: min(100% - 36px, 1420px);
  max-width: 100%;
  margin: 18px auto 56px;
}

.project-modal__bar {
  position: sticky;
  top: 18px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 18px;
}

.project-modal__close {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 10px 8px 18px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  box-shadow: 0 18px 60px rgba(21, 21, 21, 0.12);
  backdrop-filter: blur(22px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.project-modal__close:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
}

.project-modal__close b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.project-modal__panel {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 100px rgba(21, 21, 21, 0.16);
  backdrop-filter: blur(28px);
  transform: translateY(18px) scale(0.985);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.is-open .project-modal__panel {
  transform: translateY(0) scale(1);
}

.project-modal__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: min(72vh, 760px);
  padding: clamp(22px, 4vw, 60px);
}

.project-modal__copy {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.project-modal__eyebrow {
  width: max-content;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 8px 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease 160ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 160ms;
}

.project-modal__title {
  margin: 0;
  max-width: 900px;
  overflow-wrap: anywhere;
  font-size: clamp(38px, 5.6vw, 84px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease 220ms, transform 560ms cubic-bezier(0.16, 1, 0.3, 1) 220ms;
}

.project-modal__subtitle {
  margin: 0;
  max-width: 640px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease 300ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

.project-modal__meta {
  margin: -6px 0 0;
  color: var(--quiet);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease 360ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 360ms;
}

.project-modal__visual {
  min-height: 380px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(21, 21, 21, 0.04);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 620ms ease 260ms, transform 620ms cubic-bezier(0.16, 1, 0.3, 1) 260ms;
}

.project-modal.is-open .project-modal__eyebrow,
.project-modal.is-open .project-modal__title,
.project-modal.is-open .project-modal__subtitle,
.project-modal.is-open .project-modal__meta,
.project-modal.is-open .project-modal__visual {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-modal__visual.is-dark,
.project-modal__visual.is-code {
  background: #080808;
  color: #fff;
}

.project-modal__visual.is-soft {
  background: #ddd9d2;
}

.project-modal__visual .entry-visual {
  width: 100%;
  height: 100%;
  min-height: 380px;
  margin: 0;
}

.project-modal__visual .image-visual img {
  object-fit: cover;
}

.project-modal--cover .project-modal__panel {
  background: #fff;
}

.project-modal--cover .project-modal__hero,
.project-modal__hero--cover {
  display: flex;
  min-height: auto;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.project-modal--cover .project-modal__visual,
.project-modal__visual--cover {
  order: 1;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 18px 18px 0 0;
  background: #dcdad5;
  overflow: hidden;
}

.project-modal--cover .project-modal__visual::after,
.project-modal__visual--cover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(150px, 20vw, 280px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.74) 44%, #fff 92%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 68%);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

.project-modal--cover .project-modal__visual .entry-visual,
.project-modal__visual--cover .entry-visual {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0;
}

.project-modal--cover .project-modal__visual .image-visual img,
.project-modal__visual--cover .image-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  transform-origin: center;
}

.project-modal--cover .project-modal__copy {
  order: 2;
  position: relative;
  z-index: 1;
  width: min(calc(100% - 56px), 880px);
  max-width: none;
  margin-top: clamp(-130px, -9vw, -78px);
  margin-right: auto;
  margin-left: auto;
  padding: 0 0 clamp(42px, 6vw, 84px);
  text-align: left;
}

.project-modal--cover .project-modal__title {
  max-width: 100%;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
}

.project-modal--cover .project-modal__subtitle {
  max-width: 100%;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.5;
}

.project-modal__visual .ai-visual {
  align-content: center;
}

.project-modal__visual .ai-visual span {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.project-modal__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(21, 21, 21, 0.08);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease 760ms, transform 620ms cubic-bezier(0.16, 1, 0.3, 1) 760ms;
}

.project-modal--cover .project-modal__body {
  width: min(calc(100% - 56px), 880px);
  margin-right: auto;
  margin-bottom: 32px;
  margin-left: auto;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.project-modal.is-open .project-modal__body {
  opacity: 1;
  transform: translateY(0);
}

.project-modal__body section {
  min-width: 0;
  min-height: 220px;
  background: rgba(246, 242, 234, 0.86);
  padding: clamp(22px, 3vw, 36px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal--cover .project-modal__body section {
  background: #fff;
}

.project-modal.is-open .project-modal__body section {
  opacity: 1;
  transform: translateY(0);
}

.project-modal.is-open .project-modal__body section:nth-child(1) {
  transition-delay: 860ms;
}

.project-modal.is-open .project-modal__body section:nth-child(2) {
  transition-delay: 940ms;
}

.project-modal.is-open .project-modal__body section:nth-child(3) {
  transition-delay: 1020ms;
}

.project-modal__body h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.1;
}

.project-modal__body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.project-modal--cover .project-modal__body p {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.72;
}

.project-modal__article {
  display: grid;
  gap: 56px;
  --article-content-width: 880px;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  background: #fff;
  padding: 64px clamp(28px, 6vw, 96px) 88px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease 720ms, transform 620ms cubic-bezier(0.16, 1, 0.3, 1) 720ms;
}

.project-modal.is-open .project-modal__article {
  opacity: 1;
  transform: translateY(0);
}

.project-modal__article-section {
  display: grid;
  width: 100%;
  max-width: var(--article-content-width);
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  padding-top: 48px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal__article-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-modal.is-open .project-modal__article-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(860ms + (var(--article-index) * 70ms));
}

.project-modal__article-text {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  min-width: 0;
}

.project-modal__article-eyebrow {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.project-modal__article h3 {
  margin: 0;
  max-width: none;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 760;
}

.project-modal__article p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.project-modal__article-formula {
  margin: 4px 0 2px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  background: rgba(246, 242, 234, 0.72);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 600;
  line-height: 1.58;
  overflow-wrap: anywhere;
  padding: 18px 20px;
  white-space: normal;
}

.project-modal__article-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  background: #fff;
}

.project-modal__article-table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.project-modal__article-table th,
.project-modal__article-table td {
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.project-modal__article-table th {
  color: var(--ink);
  font-weight: 760;
}

.project-modal__article-table tr:last-child td {
  border-bottom: 0;
}

.project-modal__article a {
  color: var(--ink);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.project-modal__article figure {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.project-modal__article img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.project-modal__article img.is-expandable,
.project-modal__gallery img.is-expandable {
  cursor: zoom-in;
}

.project-modal__article video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #080808;
  box-shadow: none;
}

.pswp {
  --pswp-bg: rgba(10, 10, 10, 0.92);
  z-index: 220;
}

.pswp__img {
  background: #fff;
}

.project-modal__gallery {
  display: grid;
  gap: 1px;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(21, 21, 21, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease 1060ms, transform 560ms cubic-bezier(0.16, 1, 0.3, 1) 1060ms;
}

.project-modal.is-open .project-modal__gallery {
  opacity: 1;
  transform: translateY(0);
}

.project-modal__gallery figure {
  margin: 0;
  background: rgba(246, 242, 234, 0.9);
  padding: clamp(10px, 1.4vw, 18px);
}

.project-modal--cover .project-modal__gallery figure {
  background: #fff;
}

.project-modal__gallery img {
  display: block;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.project-gallery-page {
  display: grid;
  gap: 12px;
  padding-top: 0;
  background: #fff;
}

.project-gallery-page img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(21, 21, 21, 0.12);
}

.project-modal__pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(21, 21, 21, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease 1120ms, transform 560ms cubic-bezier(0.16, 1, 0.3, 1) 1120ms;
}

.project-modal.is-open .project-modal__pager {
  opacity: 1;
  transform: translateY(0);
}

.project-modal__pager button {
  display: grid;
  min-height: 132px;
  border: 0;
  background: rgba(246, 242, 234, 0.9);
  padding: clamp(20px, 3vw, 34px);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease;
}

.project-modal__pager button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.project-modal__pager span {
  color: var(--quiet);
  font-size: 13px;
}

.project-modal__pager strong {
  align-self: end;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.08;
}

.project-modal__pager-next {
  text-align: right;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 58px) clamp(36px, 7vw, 86px);
  align-items: start;
  min-height: auto;
  padding-top: 72px;
  padding-bottom: 86px;
}

.hero-head {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  max-width: 1180px;
  font-size: clamp(48px, 5.8vw, 86px);
  font-weight: 800;
  line-height: 1.04;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
.section-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
}

.hero-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-head,
.hero-copy {
  animation: enter-soft 780ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}

@keyframes enter-soft {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enter-card {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loader-word {
  0%,
  33.333% {
    opacity: 1;
  }

  33.334%,
  100% {
    opacity: 0;
  }
}

@keyframes loader-bar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes rotate-text-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate-text-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-120%);
  }
}

@keyframes text-slide-left {
  from {
    opacity: 0;
    transform: translateX(-22%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes text-slide-right {
  from {
    opacity: 0;
    transform: translateX(22%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes word-drift-in {
  from {
    opacity: 0;
    transform: translate3d(var(--word-x, -8px), 90%, 0) rotate(var(--word-rotate, -2deg));
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(21, 21, 21, 0.04);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #fff;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero-board,
.detail-aside,
.mini-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-board {
  padding: 20px;
}

.board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 159, 142, 0.14);
}

.workflow-map {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: center;
  gap: 8px;
  margin: 26px 0;
}

.node {
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 760;
}

.node.is-strong {
  border-color: rgba(37, 99, 235, 0.26);
  background: var(--soft-blue);
  color: var(--ink);
}

.edge {
  height: 1px;
  background: var(--quiet);
}

.code-card {
  border: 1px solid #d8dee9;
  border-radius: 6px;
  background: #101827;
  padding: 18px;
  color: #d7e1f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
}

.code-k {
  color: #7dd3fc;
}

.token-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.token-row span {
  height: 34px;
  border-radius: 4px;
  background: var(--swatch);
}

.project-showcase {
  padding-top: 28px;
}

.showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border-top: 1px solid rgba(21, 21, 21, 0.72);
  padding-top: 30px;
}

.showcase-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.showcase-head h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.category-nav a {
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 9px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-nav a:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: #fff;
}

.project-category {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  border-top: 1px solid var(--line);
  padding: 48px 0;
  scroll-margin-top: 86px;
}

.category-label {
  position: sticky;
  top: 94px;
  align-self: start;
}

.category-label span,
.project-card > span {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.category-label h3 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.1;
}

.category-label p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  padding: 16px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  animation: enter-card 700ms ease both;
}

.project-card::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 21, 21, 0.22);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(21, 21, 21, 0.08);
}

.project-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.project-card.large {
  grid-column: 1 / -1;
}

.project-card h4 {
  margin: auto 0 10px;
  max-width: 760px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
}

.project-card p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.project-visual {
  min-height: 150px;
  margin-bottom: 28px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  background: #f8f6f0;
  transition: transform 260ms ease;
}

.project-card:hover .project-visual {
  transform: scale(1.015);
}

.ai-visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.ai-visual span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.ai-visual span:nth-child(2),
.ai-visual span:nth-child(3) {
  background: var(--soft-blue);
  color: var(--ink);
}

.system-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.system-visual span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.system-visual span:nth-child(1),
.system-visual span:nth-child(5) {
  background: var(--soft-teal);
}

.method-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 16px;
}

.method-visual b {
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.code-visual {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #0d0d0d;
}

.code-visual code {
  color: #d7e1f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.note-visual {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.note-visual span {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.08), rgba(21, 21, 21, 0.02));
}

.note-visual span:nth-child(1) {
  width: 72%;
}

.note-visual span:nth-child(2) {
  width: 92%;
}

.note-visual span:nth-child(3) {
  width: 54%;
}

.writing-projects .project-card {
  min-height: 210px;
}

.writing-projects .project-card h4 {
  margin-top: auto;
  font-size: 24px;
}

.three-up,
.writing-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.note-card,
.work-card {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 24px;
}

.feature-card:hover,
.note-card:hover,
.work-card:hover,
.work-row:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: #fff;
}

.note-card span,
.work-card span,
.meta-line {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.feature-card h2,
.note-card h3,
.work-card h2 {
  margin: 42px 0 14px;
  font-size: 24px;
  line-height: 1.12;
}

.feature-card p,
.work-card p,
.about-strip p,
.page-lede,
.prose p,
.matrix p {
  color: var(--muted);
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.matrix article {
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.62);
  padding: 18px 4px 8px;
}

.matrix h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.matrix p {
  margin: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 52px minmax(240px, 1fr) minmax(220px, 0.8fr);
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.work-row span {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.work-row strong {
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.2;
}

.work-row em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.writing-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-card {
  min-height: 178px;
}

.note-card h3 {
  margin-top: 36px;
}

.about-strip {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 28px;
  align-items: start;
}

.about-strip p {
  margin: 0;
  max-width: 850px;
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .icp-link {
  margin-left: auto;
}

.page-hero {
  padding-top: 84px;
  padding-bottom: 34px;
}

.case-detail-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: linear-gradient(180deg, rgba(246, 242, 234, 0.82), rgba(246, 242, 234, 0));
  backdrop-filter: none;
}

.case-cover-hero {
  position: relative;
  min-height: min(68vw, 720px);
  overflow: hidden;
  background: #dcdad5;
}

.case-cover-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(180px, 24vw, 340px);
  background:
    linear-gradient(180deg, rgba(246, 242, 234, 0), rgba(246, 242, 234, 0.72) 46%, var(--paper) 92%),
    radial-gradient(ellipse at 50% 100%, rgba(246, 242, 234, 0.96), rgba(246, 242, 234, 0) 68%);
  backdrop-filter: blur(22px);
  pointer-events: none;
}

.case-cover-hero img {
  display: block;
  width: 100%;
  height: min(68vw, 720px);
  object-fit: cover;
  object-position: center top;
}

.case-title-block {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.32fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(-150px, -10vw, -88px);
  padding-top: 0;
  padding-bottom: 72px;
}

.case-title-block .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.case-title-block h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.case-title-block .page-lede {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.72;
}

.case-title-block--compact h1 {
  max-width: 860px;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 1.02;
}

.project-year {
  margin: -8px 0 0;
  color: var(--quiet);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.page-hero h1 {
  max-width: 950px;
  font-size: clamp(42px, 7vw, 76px);
}

.page-lede {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 19px;
}

.case-title-block h1 {
  max-width: 980px;
  font-size: clamp(54px, 8vw, 120px);
}

.case-title-block .page-lede {
  max-width: 430px;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 22px);
}

.work-grid {
  padding-top: 24px;
}

.work-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
}

.work-card h2 {
  margin-top: 52px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.tag-list b {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 54px;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.detail-aside dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-aside dt {
  color: var(--quiet);
  font-size: 12px;
}

.detail-aside dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.prose {
  display: grid;
  gap: 26px;
}

.prose section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.prose h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.prose p {
  margin: 0;
  font-size: 17px;
}

.principle-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.principle-list li {
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.mini-board {
  margin-top: 28px;
  padding: 18px;
}

.mini-board pre {
  overflow: auto;
  margin: 0;
  color: #d7e1f4;
  background: #101827;
  border-radius: 6px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.7;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 90px;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.article-row strong {
  font-size: 22px;
  line-height: 1.22;
}

.article-row span,
.article-row time {
  color: var(--quiet);
  font-size: 13px;
}

.system-lab {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}

.system-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 22px;
}

.system-panel h2 {
  margin: 0 0 12px;
}

.system-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 28px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 760;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .section-head,
  .about-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .index-hero,
  .split,
  .detail-layout,
  .system-lab,
  .showcase-head,
  .project-category,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .three-up,
  .writing-grid,
  .work-grid,
  .card-index,
  .project-grid,
  .matrix {
    grid-template-columns: 1fr;
  }

  .work-row,
  .article-row {
    grid-template-columns: 1fr;
  }

  .detail-aside,
  .category-label {
    position: static;
  }

  .category-nav {
    justify-content: flex-start;
  }

  .index-header {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .entry-card,
  .entry-card.tall,
  .entry-card.compact {
    grid-column: auto;
    min-height: 320px;
  }

  .project-modal__shell {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    margin-top: 9px;
  }

  .project-modal__hero,
  .project-modal__body {
    grid-template-columns: 1fr;
  }

  .project-modal__hero {
    min-height: auto;
  }

  .case-cover-hero,
  .case-cover-hero img {
    min-height: 460px;
    height: 460px;
  }

  .case-title-block {
    grid-template-columns: 1fr;
    margin-top: -104px;
    padding-bottom: 52px;
  }

  .case-title-block h1 {
    font-size: clamp(46px, 13vw, 74px);
  }

  .case-title-block .page-lede {
    max-width: 620px;
  }

  .project-modal__visual,
  .project-modal__visual .entry-visual {
    min-height: 280px;
  }

  .project-modal--cover .project-modal__visual,
  .project-modal--cover .project-modal__visual .entry-visual,
  .project-modal__visual--cover,
  .project-modal__visual--cover .entry-visual {
    height: auto;
    min-height: 0;
  }

  .project-modal--cover .project-modal__copy {
    width: min(calc(100% - 36px), 880px);
    margin-top: -92px;
    padding-right: 0;
    padding-left: 0;
  }

  .project-modal--cover .project-modal__title {
    font-size: clamp(30px, 7.4vw, 46px);
    line-height: 1.02;
  }

  .project-modal--cover .project-modal__subtitle {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.48;
  }

  .project-modal__meta {
    font-size: 14px;
  }

  .project-modal--cover .project-modal__body {
    width: min(calc(100% - 36px), 880px);
  }

  .project-modal--cover .project-modal__body section {
    min-height: 0;
    padding: 28px 22px 30px;
  }

  .project-modal--cover .project-modal__body h3 {
    margin-bottom: 14px;
    font-size: 21px;
  }

  .project-modal--cover .project-modal__body p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }

  .project-modal__article {
    gap: 42px;
    padding: 34px 22px 60px;
  }

  .project-modal__article-section,
  .project-modal__article-section:nth-child(even) {
    gap: 22px;
  }

  .project-modal__article-section:not(:has(figure)) {
    max-width: none;
  }

  .project-modal__article h3 {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.18;
  }

  .project-modal__article p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.72;
  }

  .project-modal__article-formula {
    font-size: 17px;
    padding: 16px 14px;
  }

  .project-modal__article img {
    border-radius: 10px;
  }

  .project-modal__article video {
    border-radius: 10px;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 52px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .index-header {
    position: relative;
    width: calc(100vw - 24px);
    padding-top: 22px;
    column-gap: 8px;
  }

  .intro-mark {
    min-width: 0;
    padding-right: 76px;
  }

  .index-nav {
    position: fixed;
    top: 22px;
    right: 8px;
    z-index: 20;
    flex-shrink: 0;
    justify-self: end;
  }

  .intro-mark p,
  .intro-mark span,
  .index-nav a {
    font-size: 14px;
  }

  .intro-mark span {
    max-width: calc(100vw - 118px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .index-nav a {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .index-hero {
    width: calc(100vw - 24px);
    padding: 112px 0 70px;
  }

  .index-hero h1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(33px, 8.8vw, 38px);
    line-height: 1.04;
  }

  .index-hero .hero-head {
    text-align: center;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 0.12em;
  }

  .hero-line {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 0 0.2em;
    overflow: visible;
    padding-bottom: 0.06em;
    white-space: nowrap;
  }

  .hero-rotating-line {
    flex-direction: column;
    align-items: center;
    gap: 0.02em;
  }

  .hero-word {
    animation: word-drift-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--word-index, 0) * 45ms);
  }

  .hero-keyword {
    max-width: calc(100vw - 26px);
  }

  .hero-subcopy {
    width: min(100%, 286px);
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.58;
  }

  .mobile-break {
    display: block;
  }

  .project-modal__shell {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
  }

  .project-modal__close {
    min-height: 44px;
    gap: 8px;
    padding: 6px 7px 6px 13px;
    font-size: 14px;
  }

  .project-modal__close b {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .project-modal--cover .project-modal__title {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.04;
  }

  .project-modal--cover .project-modal__subtitle {
    font-size: 15px;
  }

  .project-modal--cover .project-modal__body h3 {
    font-size: 20px;
  }

  .project-modal--cover .project-modal__body p {
    font-size: 14px;
  }

  .project-modal--cover .project-modal__copy {
    width: min(calc(100% - 28px), 880px);
    padding-right: 0;
    padding-left: 0;
  }

  .card-index,
  .index-footer {
    width: calc(100vw - 24px);
  }

  .about-page .index-nav {
    position: fixed;
    right: 12px;
  }

  .about-page .section,
  .about-page .index-footer {
    width: calc(100vw - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }

  .about-page .about-home-nav a {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }

  .about-page .about-home-nav a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .about-page .about-page-hero {
    padding-top: 96px;
    padding-bottom: 18px;
  }

  .about-page .page-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.4vw, 48px);
    line-height: 1;
  }

  .about-page .page-lede {
    width: calc(100vw - 48px);
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 18px;
  }

  .about-detail {
    padding-top: 122px;
    padding-bottom: 60px;
  }

  .about-profile {
    grid-template-columns: 1fr;
    gap: 34px;
    width: 100%;
  }

  .about-profile__avatar img {
    width: 132px;
    height: 132px;
  }

  .about-profile__copy h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 13vw, 56px);
  }

  .about-profile__copy p {
    margin-bottom: 20px;
    font-size: 15.5px;
    line-height: 1.78;
  }

  .about-profile__copy p:first-of-type {
    margin-bottom: 28px;
  }

  .about-talk-button {
    min-height: 40px;
    margin-top: 10px;
    font-size: 15px;
  }

  .about-talk-button b {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .wechat-dialog__panel {
    width: min(100%, 330px);
    padding: 16px;
  }

  .ai-visual {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
  }

  .ai-visual i {
    grid-column: 1 / -1;
  }

  .ai-visual span {
    min-width: 0;
  }

  .workflow-map {
    grid-template-columns: 1fr;
  }

  .edge {
    width: 1px;
    height: 22px;
    justify-self: center;
  }

  h1,
  .page-hero h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
