@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond-Regular-500.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond-Regular-600.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond-Italic-500.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond-Italic-600.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/Inter-300.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/Inter-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/Inter-500.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/Inter-600.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #faf8f4;
  --paper-soft: #f4f1ec;
  --ink: #121417;
  --muted: #6d7280;
  --line: #e4dfd8;
  --purple: #642cba;
  --purple-soft: #f2edf6;
  --shadow: 0 24px 70px rgba(41, 31, 18, 0.11);
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Noto Sans SC", sans-serif;
  --zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --section-title-size: clamp(48px, 5vw, 74px);
  --rail-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

html.has-glow-cursor body,
html.has-glow-cursor * {
  cursor: none !important;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(0.82);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.cursor-glow::before,
.cursor-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.cursor-glow::before {
  background: radial-gradient(circle, rgba(114, 61, 181, 0.42) 0 10%, rgba(145, 104, 197, 0.24) 36%, rgba(145, 104, 197, 0) 74%);
  filter: blur(2px);
}

.cursor-glow::after {
  inset: 21px;
  background: rgba(95, 48, 157, 0.82);
  box-shadow:
    0 0 14px rgba(129, 76, 190, 0.72),
    0 0 30px rgba(155, 116, 204, 0.38);
}

.cursor-glow.is-visible {
  opacity: 1;
}

.cursor-glow.is-hovering {
  transform: translate3d(-50%, -50%, 0) scale(1.34);
}

@keyframes constellationPulse {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes constellationFlow {
  0%,
  100% {
    opacity: 0.78;
    transform: translate3d(-1%, 1%, 0) scale(0.98);
  }

  50% {
    opacity: 1;
    transform: translate3d(2%, -2%, 0) scale(1.04);
  }
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 max(6vw, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.top-nav {
  display: flex;
  gap: 26px;
  color: #2d3138;
  font-size: 14px;
  font-weight: 300;
}

.top-nav a,
.section-rail a,
.text-link {
  transition: color 180ms ease, opacity 180ms ease;
}

.top-nav a:hover,
.section-rail a.is-active,
.text-link:hover {
  color: var(--purple);
}

.section-rail {
  position: fixed;
  top: 50%;
  right: 3.2vw;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-50%);
  color: rgba(18, 20, 23, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-rail::before,
.section-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18px;
  width: 1px;
  background: rgba(18, 20, 23, 0.08);
}

.section-rail::after {
  bottom: auto;
  height: var(--rail-progress);
  background: rgba(100, 44, 186, 0.55);
  transition: height 220ms ease;
}

.section-rail a {
  position: relative;
  padding: 2px 0;
  opacity: 0.58;
  transform: translateX(0);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.section-rail a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(100, 44, 186, 0.42);
  border-radius: 50%;
  background: var(--paper);
  opacity: 0;
  transform: translateY(-50%) scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.section-rail a:hover {
  opacity: 0.92;
  transform: translateX(-4px);
}

.section-rail a.is-active {
  opacity: 1;
  font-weight: 700;
}

.section-rail a.is-active::before {
  background: var(--purple);
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

main {
  overflow: hidden;
}

.section-block {
  width: min(1120px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 126px 0;
  border-top: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease, transform 720ms ease;
}

html.has-section-reveal .section-block {
  opacity: 0;
  transform: translateY(22px);
}

html.has-section-reveal .section-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.has-section-reveal .section-block > *,
html.has-section-reveal .hero-copy > *,
html.has-section-reveal .about-grid > *,
html.has-section-reveal .project-spotlight > *,
html.has-section-reveal .case-grid > *,
html.has-section-reveal .method-intro > *,
html.has-section-reveal .method-cards article,
html.has-section-reveal .graph > *,
html.has-section-reveal .contact > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-section-reveal .section-block.is-visible > *,
html.has-section-reveal .section-block.is-visible .hero-copy > *,
html.has-section-reveal .section-block.is-visible .about-grid > *,
html.has-section-reveal .section-block.is-visible.project-spotlight > *,
html.has-section-reveal .section-block.is-visible .case-grid > *,
html.has-section-reveal .section-block.is-visible .method-intro > *,
html.has-section-reveal .section-block.is-visible .method-cards article,
html.has-section-reveal .section-block.is-visible.graph > *,
html.has-section-reveal .section-block.is-visible.contact > * {
  opacity: 1;
  transform: translateY(0);
}

html.has-section-reveal .section-block > :nth-child(1),
html.has-section-reveal .hero-copy > :nth-child(1),
html.has-section-reveal .method-intro > :nth-child(1),
html.has-section-reveal .graph > :nth-child(1),
html.has-section-reveal .contact > :nth-child(1) {
  transition-delay: 40ms;
}

html.has-section-reveal .section-block > :nth-child(2),
html.has-section-reveal .hero-copy > :nth-child(2),
html.has-section-reveal .method-intro > :nth-child(2),
html.has-section-reveal .graph > :nth-child(2),
html.has-section-reveal .contact > :nth-child(2) {
  transition-delay: 110ms;
}

html.has-section-reveal .section-block > :nth-child(3),
html.has-section-reveal .hero-copy > :nth-child(3),
html.has-section-reveal .method-intro > :nth-child(3),
html.has-section-reveal .graph > :nth-child(3),
html.has-section-reveal .contact > :nth-child(3) {
  transition-delay: 180ms;
}

html.has-section-reveal .section-block > :nth-child(4),
html.has-section-reveal .hero-copy > :nth-child(4),
html.has-section-reveal .method-intro > :nth-child(4),
html.has-section-reveal .graph > :nth-child(4),
html.has-section-reveal .contact > :nth-child(4) {
  transition-delay: 250ms;
}

html.has-section-reveal .about-grid > :nth-child(1),
html.has-section-reveal .project-spotlight > :nth-child(1) {
  transition-delay: 120ms;
}

html.has-section-reveal .about-grid > :nth-child(2),
html.has-section-reveal .project-spotlight > :nth-child(2) {
  transition-delay: 220ms;
}

html.has-section-reveal .case-grid > :nth-child(1),
html.has-section-reveal .method-cards article:nth-child(1) {
  transition-delay: 150ms;
}

html.has-section-reveal .case-grid > :nth-child(2),
html.has-section-reveal .method-cards article:nth-child(2) {
  transition-delay: 240ms;
}

html.has-section-reveal .case-grid > :nth-child(3),
html.has-section-reveal .method-cards article:nth-child(3) {
  transition-delay: 330ms;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 62px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
  border-top: 0;
  padding-top: 68px;
}

.kicker,
.section-meta {
  margin: 0 0 30px;
  color: #5e6370;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
}

h1 {
  margin-bottom: 34px;
  font-size: clamp(96px, 10.8vw, 164px);
}

h2 {
  margin-bottom: 28px;
  font-size: var(--section-title-size);
}

h3 {
  font-size: 32px;
}

em,
.accent,
.hero-line span {
  color: var(--purple);
  font-style: italic;
}

.hero-line {
  max-width: 980px;
  color: #1f232a;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.55;
}

.hero-line em {
  color: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.hero-line span {
  font-style: normal;
  font-weight: 500;
}

.handwritten {
  margin: 32px 0 44px;
  color: #747b88;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(19px, 1.65vw, 24px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.typing-slash {
  display: inline-block;
  margin-left: 0.18em;
  color: #9da3ae;
  font-style: normal;
  animation: typingSlashBlink 1.05s steps(1) infinite;
}

.chip-row,
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row span,
.tag-grid span,
.method-cards span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 18px;
  border: 1px solid rgba(18, 20, 23, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #15171b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chip-row span:last-child,
.method-cards span {
  border-color: rgba(100, 44, 186, 0.42);
  color: var(--purple);
}

.constellation {
  position: relative;
  min-height: 420px;
  border-radius: 50%;
  overflow: visible;
}

.constellation::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -4% -8%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 44% 48%, rgba(100, 44, 186, 0.09), transparent 42%),
    radial-gradient(ellipse at 62% 52%, rgba(100, 44, 186, 0.075), transparent 48%),
    radial-gradient(ellipse at 52% 44%, rgba(180, 151, 230, 0.08), transparent 56%);
  filter: blur(10px);
  animation: constellationFlow 9s ease-in-out infinite;
}

.constellation::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 6% 3%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 35% 64%, rgba(100, 44, 186, 0.055), transparent 34%),
    radial-gradient(ellipse at 70% 34%, rgba(100, 44, 186, 0.052), transparent 40%);
  filter: blur(16px);
  opacity: 0.85;
  animation: constellationFlow 12s ease-in-out infinite reverse;
}

.node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(111, 102, 124, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: constellationPulse 4.6s ease-in-out infinite;
}

.node::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 18px rgba(100, 44, 186, 0.42);
}

.node-a {
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--purple);
  font-size: 10px;
}

.node-a::before {
  width: 11px;
  height: 11px;
  box-shadow:
    0 0 0 9px rgba(100, 44, 186, 0.05),
    0 0 28px rgba(100, 44, 186, 0.22);
}

.node-b {
  top: 18%;
  left: 23%;
}

.node-c {
  top: 23%;
  right: 13%;
}

.node-d {
  bottom: 23%;
  left: 26%;
}

.node-e {
  right: 17%;
  bottom: 18%;
}

.line {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: 50%;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(100, 44, 186, 0.24) 45%, transparent 0);
  background-size: 12px 1px;
  transform-origin: left center;
  opacity: 0.75;
}

.line-one {
  width: 210px;
  transform: rotate(-135deg);
}

.line-two {
  width: 230px;
  transform: rotate(-34deg);
}

.line-three {
  width: 205px;
  transform: rotate(132deg);
}

.line-four {
  width: 225px;
  transform: rotate(46deg);
}

.spark {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(100, 44, 186, 0.64);
  box-shadow: 0 0 16px rgba(100, 44, 186, 0.28);
  animation: constellationPulse 5.8s ease-in-out infinite;
}

.spark-a {
  top: 28%;
  left: 43%;
}

.spark-b {
  top: 35%;
  right: 27%;
  width: 4px;
  height: 4px;
}

.spark-c {
  top: 51%;
  left: 35%;
  width: 4px;
  height: 4px;
}

.spark-d {
  right: 31%;
  bottom: 33%;
}

.spark-e {
  bottom: 30%;
  left: 46%;
  width: 3px;
  height: 3px;
}

.spark-f {
  top: 41%;
  right: 18%;
  width: 3px;
  height: 3px;
}

.spark-g {
  bottom: 17%;
  left: 38%;
  width: 4px;
  height: 4px;
}

.about-grid,
.project-spotlight,
.slide-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: center;
}

.portrait-card {
  margin: 0;
}

.portrait-placeholder,
.project-visual,
.slide-visual,
.photo-thumb,
.case-image {
  overflow: hidden;
  background-color: #ece8e0;
  background-size: cover;
  background-position: center;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: end center;
  overflow: visible;
  box-shadow: none;
  color: rgba(18, 20, 23, 0.45);
  background: transparent;
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  inset: 9% 2% 0 2%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(100, 44, 186, 0.17), transparent 42%),
    radial-gradient(circle at 48% 64%, rgba(100, 44, 186, 0.08), transparent 56%);
  filter: blur(34px);
  opacity: 0.95;
  transform: scale(1);
  transition: opacity 420ms ease, transform 520ms ease, filter 520ms ease;
}

.portrait-placeholder img {
  width: 108%;
  max-width: none;
  height: auto;
  transform-origin: center bottom;
  transform: translateX(22px);
  filter:
    drop-shadow(0 34px 58px rgba(42, 33, 28, 0.14))
    saturate(0.98)
    contrast(1.01);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

.portrait-card:hover .portrait-placeholder::before {
  opacity: 1;
  filter: blur(38px);
  transform: scale(1.025);
}

.portrait-card:hover .portrait-placeholder img {
  transform: translateX(22px) scale(1.018);
  filter:
    drop-shadow(0 38px 64px rgba(42, 33, 28, 0.16))
    saturate(1)
    contrast(1.02);
}

.portrait-card figcaption {
  transition: color 260ms ease, letter-spacing 260ms ease, transform 260ms ease;
}

.portrait-card:hover figcaption {
  color: var(--purple);
  letter-spacing: 0.08em;
  transform: translateY(-2px);
}

figcaption {
  margin-top: 18px;
  color: #6b707d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.about-copy h2 {
  max-width: 760px;
  font-size: var(--section-title-size);
}

.about-copy p,
.spotlight-copy p,
.section-lede,
.method-intro p,
.slide-copy p,
.experience-head p {
  max-width: 760px;
  color: #4e5562;
  font-family: var(--zh);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.82;
}

.about-statement {
  color: #303640;
}

.about-copy > p {
  font-size: 15.5px;
  line-height: 1.74;
}

.about-matrix {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-matrix article {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 220ms ease;
}

.about-matrix article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(100, 44, 186, 0.055);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.about-matrix article:first-child {
  border-top: 0;
}

.about-matrix article:hover {
  border-color: rgba(100, 44, 186, 0.16);
}

.about-matrix article:hover::before {
  opacity: 1;
}

.about-matrix span {
  position: relative;
  z-index: 1;
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: letter-spacing 220ms ease;
}

.about-matrix p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: #3f4651;
  font-size: 13.5px;
  line-height: 1.62;
  transition: color 220ms ease;
}

.about-matrix article:hover span {
  letter-spacing: 0.065em;
}

.about-matrix article:hover p {
  color: #272d35;
}

.tag-grid {
  margin-top: 32px;
}

.tag-grid span {
  min-width: 190px;
  justify-content: center;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.project-spotlight {
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: stretch;
}

.project-spotlight.alternate {
  padding-top: 62px;
}

.spotlight-copy h2 {
  font-size: var(--section-title-size);
}

.spotlight-copy .project-status {
  margin: -10px 0 28px;
  color: var(--purple);
  font-family: var(--zh);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.metric-grid {
  display: grid;
  max-width: 520px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 52px;
  margin-top: 50px;
}

.metric-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
}

.metric-grid span {
  color: #6e7480;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

blockquote {
  margin: 44px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--purple);
  color: #30343a;
  font-size: 19px;
  font-weight: 300;
  font-style: italic;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
}

.project-links a {
  border-bottom: 1px solid rgba(100, 44, 186, 0.28);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.project-links a:hover {
  border-color: currentColor;
  color: #4f2295;
}

.project-visual {
  display: grid;
  min-height: 440px;
  place-items: center;
  border: 1px solid rgba(18, 20, 23, 0.09);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: softFloat 8s ease-in-out infinite;
}

.media-scroll-visual {
  position: relative;
  min-height: 100%;
  overflow: visible;
  place-items: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.media-scroll {
  position: absolute;
  top: 0;
  right: -72px;
  bottom: 0;
  left: -72px;
  overflow: hidden;
  padding: 34px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.media-track {
  display: grid;
  width: min(78%, 560px);
  gap: 22px;
  margin: 0 auto;
  padding-bottom: 22px;
  animation: mediaDrift 34s linear infinite;
  will-change: transform;
}

.media-scroll:hover .media-track {
  animation-play-state: paused;
}

.media-card {
  margin: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

.media-card:hover {
  z-index: 2;
  filter: drop-shadow(0 26px 50px rgba(100, 44, 186, 0.09));
  transform: scale(1.025);
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 22px 46px rgba(100, 44, 186, 0.055),
    0 14px 30px rgba(35, 31, 26, 0.05);
}

.media-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46)),
    linear-gradient(145deg, #ece8df, #d8d5cf);
  box-shadow:
    0 22px 46px rgba(100, 44, 186, 0.055),
    0 14px 30px rgba(35, 31, 26, 0.05);
}

.media-card-b .media-placeholder {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.42)),
    linear-gradient(145deg, #e9e3ef, #d7d3dc);
}

.media-card-c .media-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.48)),
    linear-gradient(145deg, #e4e6e1, #cfcbc2);
}

.media-card-d .media-placeholder {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(100, 44, 186, 0.13), transparent 28%),
    linear-gradient(145deg, #f2eee8, #d9d5cc);
}

.media-card figcaption {
  margin-top: 9px;
  color: rgba(105, 112, 124, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

@keyframes mediaDrift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@keyframes phoneCarouselFade {
  0%,
  18% {
    opacity: 1;
  }

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

@keyframes phoneRailDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes typingSlashBlink {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0.18;
  }
}

.park-visual {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(120deg, #d7efef 0, #d7efef 34px, #f0ece6 34px, #f0ece6 68px);
}

.system-visual {
  background:
    radial-gradient(circle at 25% 26%, rgba(100, 44, 186, 0.18), transparent 22%),
    linear-gradient(135deg, #f5f1eb, #dedfdc);
}

.phone-frame {
  display: grid;
  width: 180px;
  height: 290px;
  place-items: center;
  border: 8px solid #17191d;
  border-radius: 28px;
  background: #f9faf8;
  color: #6c7280;
  font-size: 13px;
}

.panel-stack {
  display: grid;
  width: min(76%, 520px);
  gap: 18px;
}

.panel-stack span {
  display: block;
  height: 86px;
  border: 1px solid rgba(18, 20, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 38px rgba(35, 31, 26, 0.08);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px;
  margin-top: 62px;
}

.case-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background: #1f1d25;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    filter 260ms ease;
}

.case-image {
  position: absolute;
  inset: 0;
  opacity: 0.82;
  transition: transform 360ms ease;
}

.case-card:hover .case-image,
.case-card:hover .case-video {
  transform: scale(1.04);
}

.case-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.case-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.05), rgba(18, 20, 23, 0.86));
  pointer-events: none;
}

.case-video-card .case-caption {
  z-index: 2;
}

.app-carousel-card {
  background:
    radial-gradient(circle at 68% 28%, rgba(100, 44, 186, 0.035), transparent 34%),
    linear-gradient(145deg, #fffefb 0%, #f8f7f4 100%);
  box-shadow:
    0 28px 70px rgba(34, 29, 23, 0.09),
    0 16px 42px rgba(100, 44, 186, 0.055);
}

.app-carousel-card::before {
  content: none;
}

.project-phone-carousel {
  position: absolute;
  top: 32px;
  right: 15px;
  bottom: 178px;
  left: 15px;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.project-phone-track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 12px;
  align-items: center;
  animation: phoneRailDrift 20s linear infinite;
  will-change: transform;
}

.project-phone-carousel img {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter: saturate(0.98);
}

.app-carousel-card .case-caption {
  z-index: 3;
  color: #1b1d22;
}

.app-carousel-card .case-caption span {
  color: rgba(18, 20, 23, 0.52);
}

.app-carousel-card .case-link {
  border-color: rgba(100, 44, 186, 0.28);
  color: rgba(80, 47, 128, 0.72);
}

.app-carousel-card .case-link:hover {
  border-color: rgba(100, 44, 186, 0.58);
  color: var(--purple);
}

.app-carousel-card .case-caption p {
  color: rgba(18, 20, 23, 0.62);
}

.case-card:hover {
  transform: translateY(-8px) scale(1.018);
  box-shadow:
    0 34px 86px rgba(41, 31, 18, 0.14),
    0 18px 48px rgba(100, 44, 186, 0.12);
  filter: saturate(1.02);
}

.image-one {
  background:
    linear-gradient(180deg, transparent, rgba(18, 20, 23, 0.88)),
    linear-gradient(135deg, #879f9a, #302a3e 62%, #111318);
}

.image-two {
  background:
    linear-gradient(180deg, transparent, rgba(18, 20, 23, 0.9)),
    linear-gradient(135deg, #c9c1a8, #7b785d 50%, #2e2633);
}

.image-three {
  background:
    linear-gradient(180deg, transparent, rgba(18, 20, 23, 0.9)),
    linear-gradient(135deg, #d4dae9, #806c92 50%, #171923);
}

.case-caption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  color: #fff;
}

.case-caption span {
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.case-caption h3 {
  margin: 10px 0 8px;
  font-size: 32px;
}

.case-link {
  display: inline-block;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.case-link:hover {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.case-caption p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 300;
}

@media (hover: none), (pointer: coarse) {
  .case-card:hover {
    transform: none;
  }
}

.composite {
  padding-top: 98px;
}

.text-link {
  color: #5e4a77;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.method-intro {
  max-width: 850px;
  padding-bottom: 64px;
}

.method-intro p {
  max-width: 850px;
}

.graph > h2,
.graph > .section-lede {
  max-width: 1040px;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.method-cards article {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 34px;
  border: 1px solid #ded9d1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 42px rgba(34, 29, 23, 0.06);
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.method-cards article:hover {
  border-color: rgba(100, 44, 186, 0.26);
  box-shadow: 0 28px 62px rgba(34, 29, 23, 0.11);
  transform: translateY(-8px);
}

.method-cards h3 {
  margin-bottom: 10px;
  font-size: 36px;
}

.method-cards p {
  margin-bottom: 0;
  color: #6a707b;
  font-size: 18px;
  font-weight: 300;
}

.method-cards .method-card-title-zh {
  margin-bottom: 22px;
  color: #6d7380;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
}

.method-cards .method-card-lead {
  margin-bottom: 16px;
  color: #3f4651;
  line-height: 1.58;
}

.method-cards article p:last-of-type {
  margin-bottom: 34px;
}

.method-cards span {
  align-self: flex-start;
  margin-top: auto;
  background: var(--purple-soft);
}

.slider-shell {
  position: relative;
  display: block;
  margin-top: 94px;
  padding-bottom: 72px;
}

.slider-button {
  position: absolute;
  right: -16px;
  bottom: 0;
  z-index: 8;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(34, 29, 23, 0.1);
  color: var(--purple);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.slider-button:hover {
  border-color: rgba(100, 44, 186, 0.36);
  box-shadow: 0 18px 46px rgba(34, 29, 23, 0.14);
  transform: translateX(4px);
}

.slider-button[data-slider="prev"] {
  display: none;
}

.slide-window {
  position: relative;
  overflow: visible;
  min-height: 640px;
  perspective: 1400px;
}

.slide-panel {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 620px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 24px 68px rgba(34, 29, 23, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition:
    opacity 420ms ease,
    left 520ms cubic-bezier(0.22, 1, 0.36, 1),
    right 520ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 680ms ease,
    filter 420ms ease;
}

.slide-window[data-direction="prev"] .slide-panel {
  transform: none;
}

.slide-panel.is-active {
  right: 48px;
  left: 48px;
  opacity: 1;
  pointer-events: auto;
  clip-path: none;
  transform: none;
  z-index: 3;
  box-shadow:
    0 34px 88px rgba(100, 44, 186, 0.085),
    0 24px 64px rgba(34, 29, 23, 0.055);
}

.slide-panel.is-before,
.slide-panel.is-after {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  filter: saturate(0.92);
  cursor: pointer;
}

.slide-panel.is-before > *,
.slide-panel.is-after > * {
  opacity: 0;
}

.slide-panel.is-before {
  clip-path: inset(0 calc(100% - 44px) 0 0);
  transform: none;
}

.slide-panel.is-after {
  clip-path: inset(0 0 0 calc(100% - 44px));
  transform: none;
}

.slide-panel.is-before:hover,
.slide-panel.is-after:hover {
  box-shadow: 0 30px 78px rgba(34, 29, 23, 0.12);
}

.slide-panel.is-before:hover {
  clip-path: inset(0 calc(100% - 58px) 0 0);
  transform: none;
}

.slide-panel.is-after:hover {
  clip-path: inset(0 0 0 calc(100% - 58px));
  transform: none;
}

.slide-visual {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(100, 44, 186, 0.08), rgba(255, 255, 255, 0.74)),
    linear-gradient(90deg, transparent 31px, rgba(18, 20, 23, 0.06) 32px),
    linear-gradient(0deg, transparent 31px, rgba(18, 20, 23, 0.06) 32px);
  background-size: auto, 64px 64px, 64px 64px;
  color: rgba(18, 20, 23, 0.42);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1), filter 760ms ease;
}

.slide-visual::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(100, 44, 186, 0.13), transparent 68%);
  filter: blur(18px);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 720ms ease, transform 720ms ease;
}

.slide-panel.is-active .slide-visual {
  transform: translateY(-4px);
  filter: saturate(1.03);
}

.slide-panel.is-active .slide-visual::after {
  opacity: 1;
  transform: scale(1);
}


.recording-panel {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 30px;
  padding: 54px 64px 58px;
}

.recording-video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 10px;
  background: #f3f0ea;
  box-shadow: none;
}

.recording-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recording-title-row {
  display: flex;
  gap: 22px;
  align-items: baseline;
  justify-content: space-between;
}

.recording-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.04;
}

.recording-title-row span {
  flex: 0 0 auto;
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.database-panel {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 34px;
  padding: 54px 64px 62px;
}

.database-heading span {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.database-heading h3 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.05;
}

.database-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 54px;
  align-items: stretch;
}

.database-video-frame {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  min-height: 0;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 10px;
  background: #f3f0ea;
  box-shadow: 0 20px 48px rgba(100, 44, 186, 0.055);
}

.database-video-frame video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.database-layer-list {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.database-layer-list div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.database-layer-list strong {
  display: block;
  margin-bottom: 10px;
  color: #242831;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.database-layer-list p {
  margin: 0;
  color: #5a626f;
  font-family: var(--zh);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
}

.template-system-panel {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 34px;
  padding: 54px 64px 60px;
}

.template-system-heading span {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-system-heading h3 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.05;
}

.template-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.template-system-block {
  position: relative;
  min-height: 270px;
  padding: 22px 18px 20px;
  border-top: 1px solid rgba(18, 20, 23, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
}

.template-system-block::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 1px;
  background: var(--purple);
}

.template-system-block.is-featured {
  background:
    radial-gradient(circle at 18% 20%, rgba(100, 44, 186, 0.075), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0));
}

.template-system-block p {
  margin: 0 0 18px;
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-system-block h4 {
  min-height: 58px;
  max-width: 5.15em;
  margin: 0 0 18px;
  color: #242831;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.06;
}

.template-system-block ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-system-block li {
  color: #59616c;
  font-family: var(--zh);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.48;
}

.template-system-block li::before {
  content: "·";
  margin-right: 8px;
  color: var(--purple);
}

.template-system-note {
  max-width: 900px;
  margin: 0;
  color: #48505c;
  font-family: var(--zh);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
}

.output-panel {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 34px;
  padding: 54px 64px 60px;
}

.output-heading {
  padding: 0;
}

.output-heading span {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.output-heading h3 {
  max-width: 940px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.06;
}

.output-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: stretch;
}

.output-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.output-covers figure {
  margin: 0;
}

.output-covers img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 8px;
  box-shadow:
    0 24px 52px rgba(100, 44, 186, 0.075),
    0 16px 34px rgba(34, 29, 23, 0.06);
  transition: transform 360ms ease, box-shadow 360ms ease;
}

.output-covers figure:hover img {
  transform: translateY(-6px) scale(1.012);
  box-shadow:
    0 30px 64px rgba(100, 44, 186, 0.1),
    0 20px 42px rgba(34, 29, 23, 0.075);
}

.output-covers figcaption {
  margin-top: 10px;
  text-align: left;
}

.output-covers figcaption a {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.output-covers figcaption a:hover {
  color: #4f21a3;
}

.output-covers .output-video-link {
  margin: 0;
  border-color: rgba(100, 44, 186, 0.28);
  color: rgba(80, 47, 128, 0.72);
}

.output-covers .output-video-link:hover {
  border-color: rgba(100, 44, 186, 0.58);
  color: var(--purple);
}

.output-copy {
  align-self: stretch;
  padding: 6px 0 0;
}

.output-label {
  margin: 0 0 18px;
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.output-copy p:not(.output-label) {
  margin: 0;
  color: #48505c;
  font-family: var(--zh);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
}

.output-copy p + p {
  margin-top: 16px;
}

.recording-frame,
.structure-board,
.graph-templates {
  position: relative;
  z-index: 1;
}

.recording-frame {
  display: grid;
  width: min(82%, 520px);
  min-height: 310px;
  place-items: center;
  padding: 34px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 22px 46px rgba(100, 44, 186, 0.06);
  text-align: center;
}

.record-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 8px rgba(100, 44, 186, 0.08);
}

.recording-frame strong,
.structure-board strong,
.template-card strong {
  color: #20242b;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.recording-frame p,
.structure-board span,
.template-card span,
.database-strip {
  color: #69707c;
  font-family: var(--zh);
  font-size: 13px;
  font-weight: 300;
}

.mini-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.mini-map i,
.database-strip i {
  border: 1px solid rgba(100, 44, 186, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(100, 44, 186, 0.045);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

.flow-chain {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: min(88%, 620px);
}

.flow-chain span {
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(100, 44, 186, 0.055);
  color: #3d4550;
  font-family: var(--zh);
  font-size: 14px;
  font-weight: 300;
}

.flow-chain b {
  color: var(--purple);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.structure-board {
  display: grid;
  width: min(88%, 620px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.structure-board div,
.template-card {
  min-height: 136px;
  padding: 24px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 36px rgba(35, 31, 26, 0.055);
}

.structure-board strong,
.template-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.database-strip {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(88%, 620px);
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
}

.database-strip span {
  margin-right: auto;
}

.graph-structure {
  align-content: center;
}

.graph-templates {
  display: grid;
  width: min(88%, 620px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.slide-copy span {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.slide-copy h3 {
  margin: 18px 0 24px;
  font-size: 46px;
}

.slide-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  transform: translateX(-50%);
}

.slide-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 20, 23, 0.12);
  cursor: pointer;
  transition: width 240ms ease, background 240ms ease, opacity 240ms ease;
}

.slide-dots button:hover {
  background: rgba(100, 44, 186, 0.34);
}

.slide-dots button.is-active {
  width: 58px;
  background: var(--purple);
}

.slide-page-nav {
  position: absolute;
  top: -46px;
  left: 0;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.slide-page-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #767d89;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.slide-page-link span {
  opacity: 0.8;
}

.slide-page-link strong {
  color: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.slide-page-link:hover {
  color: #5f4a82;
}

.slide-page-link.is-active {
  color: var(--purple);
}

.experience-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.small-stats {
  display: flex;
  gap: 50px;
  color: #69707c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.small-stats strong {
  display: block;
  color: #181a1f;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 54px;
}

.photo-grid article {
  min-width: 0;
}

.photo-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(34, 29, 23, 0.1);
  transition: transform 360ms ease, box-shadow 360ms ease;
}

.photo-grid article:hover .photo-thumb {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 26px 56px rgba(34, 29, 23, 0.16);
}

.photo-a {
  background: linear-gradient(140deg, #d8d3c8, #9aa6a0 52%, #31423e);
}

.photo-b {
  background: linear-gradient(140deg, #ede6d9, #b99d84 54%, #352b2a);
}

.photo-c {
  background: linear-gradient(140deg, #e3e6ec, #8f99b1 52%, #273244);
}

.photo-d {
  background: linear-gradient(140deg, #e8e1dc, #8c9f98 50%, #2f3938);
}

.photo-e {
  background: linear-gradient(140deg, #efe9da, #bfc5a1 50%, #51413f);
}

.photo-grid h3 {
  margin: 16px 0 6px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.photo-grid p {
  color: #69707c;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
}

.contact {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  align-items: center;
  min-height: 76vh;
  text-align: center;
}

.contact .kicker {
  text-align: center;
}

.contact h2 {
  margin: 0 0 36px;
  font-size: clamp(86px, 8vw, 126px);
  font-weight: 500;
}

.contact-main a {
  display: inline-block;
  margin: 0;
  color: #4f5866;
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 500;
}

.contact-footnote {
  margin: 0;
  color: rgba(109, 114, 128, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.knowledge-flow-panel {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 0;
  padding: 54px 64px 64px;
  background: radial-gradient(circle at 78% 18%, rgba(100, 44, 186, 0.045), transparent 28%), #fffdf9;
}

.knowledge-panel-tag {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.knowledge-flow-title {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.02;
}

.knowledge-flow-chain {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-top: 56px;
}

.knowledge-flow-step {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 10px;
}

.knowledge-flow-step strong {
  color: #242831;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.knowledge-flow-step span {
  color: #707681;
  font-family: var(--zh);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.5;
}

.knowledge-flow-chain b {
  display: grid;
  flex: 0 0 24px;
  align-self: start;
  place-items: center;
  padding-top: 2px;
  color: var(--purple);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}

.knowledge-flow-body {
  max-width: 1120px;
  margin: 62px 0 0;
  color: #4e5562;
  font-family: var(--zh);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.82;
}

@media (max-width: 1050px) {
  .section-rail {
    display: none;
  }

  .hero,
  .about-grid,
  .project-spotlight,
  .slide-panel {
    grid-template-columns: 1fr;
  }

  .constellation {
    min-height: 330px;
  }

  .media-scroll-visual {
    min-height: 560px;
  }

  .case-grid,
  .method-cards,
  .about-matrix article {
    grid-template-columns: 1fr;
  }

  .structure-board,
  .graph-templates,
  .database-panel,
  .database-content,
  .database-layer-list,
  .template-system-panel,
  .template-system-grid,
  .output-panel,
  .output-content {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 22px;
    gap: 16px;
  }

  .top-nav {
    max-width: 260px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    font-size: 12px;
  }

  .section-block {
    width: min(100% - 36px, 1120px);
    padding: 76px 0;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 86px;
  }

  h2 {
    font-size: 46px;
  }

  .hero-line {
    font-size: 26px;
  }

  .portrait-placeholder,
  .project-visual,
  .slide-visual {
    min-height: 340px;
  }

  .media-scroll-visual {
    min-height: 520px;
  }

  .metric-grid,
  .experience-head,
  .slider-shell {
    grid-template-columns: 1fr;
  }

  .method-intro {
    padding: 28px 0;
  }

  .slide-panel {
    min-height: 560px;
    padding: 28px;
  }

  .output-panel {
    gap: 26px;
  }

  .output-heading h3 {
    font-size: 34px;
  }

  .output-covers {
    gap: 12px;
  }

  .slide-panel.is-active {
    right: 18px;
    left: 18px;
  }

  .slide-panel.is-before {
    clip-path: inset(0 calc(100% - 18px) 0 0);
  }

  .slide-panel.is-after {
    clip-path: inset(0 0 0 calc(100% - 18px));
  }

  .method-cards article {
    min-height: 0;
  }

  .case-grid {
    gap: 26px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .slider-button {
    display: none;
  }

  .slide-dots {
    grid-column: 1;
  }

  .contact-links {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
