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

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

:root {
  --bg: #050506;
  --bg-panel: rgba(15, 16, 18, 0.82);
  --bg-panel-strong: rgba(22, 23, 26, 0.94);
  --text: #f5f7fb;
  --muted: #a6acb8;
  --quiet: #6f7583;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --cyan: #52f4ff;
  --mint: #66ffc2;
  --violet: #9d6cff;
  --amber: #ffcc66;
  --coral: #ff6f91;
  --panel-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
  --rail-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(82, 244, 255, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(157, 108, 255, 0.14), transparent 38%),
    #050506;
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%, 100% 100%;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 58px,
      rgba(255, 255, 255, 0.035) 59px,
      transparent 60px
    ),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.09), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.56;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  color: #050506;
  background: var(--cyan);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 76px);
  background: rgba(5, 5, 6, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
}

.brand::after {
  position: absolute;
  right: -16px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 20px var(--mint);
}

.top-nav {
  display: flex;
  gap: clamp(10px, 2vw, 26px);
  align-items: center;
}

.top-nav a,
.section-rail a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

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

.section-rail {
  position: fixed;
  top: 50%;
  right: clamp(14px, 3vw, 42px);
  z-index: 12;
  display: grid;
  gap: 14px;
  padding: 20px 0 20px 22px;
  transform: translateY(-50%);
}

.section-rail::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(
    to bottom,
    var(--cyan) 0,
    var(--violet) var(--rail-progress),
    rgba(255, 255, 255, 0.16) var(--rail-progress)
  );
}

.section-block {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: clamp(110px, 12vw, 156px) clamp(20px, 7vw, 112px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.section-block::before {
  position: absolute;
  top: 28px;
  left: clamp(20px, 7vw, 112px);
  width: min(280px, 32vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.72;
}

.has-section-reveal .section-block {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.kicker,
.section-meta,
.project-status,
.output-label,
.knowledge-panel-tag {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 0.98;
}

h1,
h2 {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 34px;
  font-size: clamp(76px, 15vw, 188px);
  color: var(--text);
  text-shadow: 0 0 36px rgba(82, 244, 255, 0.2);
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(46px, 7vw, 100px);
}

h3 {
  font-size: clamp(26px, 3vw, 42px);
}

em {
  color: var(--violet);
  font-style: italic;
}

.accent {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  min-height: 100vh;
  padding-top: clamp(120px, 16vh, 170px);
}

.hero-copy {
  max-width: 760px;
}

.hero-line {
  max-width: 700px;
  margin-bottom: 28px;
  color: #d7dbe4;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.55;
}

.hero-name,
.hero-line span {
  color: var(--mint);
  font-style: normal;
  text-shadow: 0 0 24px rgba(102, 255, 194, 0.28);
}

.mobile-break {
  display: none;
}

.mobile-title-line {
  display: inline;
}

.handwritten {
  max-width: 540px;
  color: var(--quiet);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
}

.role-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-stats article {
  padding: 18px;
  background: rgba(10, 11, 13, 0.86);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.hero-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.typing-slash {
  color: var(--coral);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.chip-row span,
.project-links a,
.case-link,
.text-link,
.output-video-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.chip-row span:nth-child(2),
.project-links a:nth-child(2) {
  color: var(--mint);
}

.chip-row span:nth-child(3),
.project-links a:nth-child(3) {
  color: var(--violet);
}

.project-links a:hover,
.case-link:hover,
.text-link:hover,
.output-video-link:hover {
  border-color: var(--cyan);
  background: rgba(82, 244, 255, 0.12);
  transform: translateY(-2px);
}

.constellation {
  position: relative;
  min-height: clamp(360px, 44vw, 560px);
  border: 1px solid rgba(82, 244, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(82, 244, 255, 0.09), rgba(157, 108, 255, 0.08));
  background-size: 42px 42px, 42px 42px, 100% 100%;
  box-shadow: var(--panel-shadow), inset 0 0 60px rgba(82, 244, 255, 0.07);
  overflow: hidden;
}

.constellation::before {
  position: absolute;
  inset: 24px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.constellation::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 0 45%, rgba(255, 255, 255, 0.12) 50%, transparent 55% 100%);
  animation: scan 7s linear infinite;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 6, 0.84);
  box-shadow: 0 0 32px rgba(82, 244, 255, 0.18);
}

.node-a {
  top: 42%;
  left: 45%;
  border-color: var(--cyan);
}

.node-b {
  top: 18%;
  left: 20%;
  border-color: var(--violet);
}

.node-c {
  top: 22%;
  right: 14%;
  border-color: var(--mint);
}

.node-d {
  left: 18%;
  bottom: 18%;
  border-color: var(--amber);
}

.node-e {
  right: 20%;
  bottom: 14%;
  border-color: var(--coral);
}

.line,
.spark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform-origin: left center;
}

.line-one {
  top: 34%;
  left: 29%;
  width: 42%;
  transform: rotate(18deg);
}

.line-two {
  top: 50%;
  left: 36%;
  width: 38%;
  transform: rotate(-26deg);
}

.line-three {
  top: 60%;
  left: 24%;
  width: 42%;
  transform: rotate(34deg);
}

.line-four {
  top: 40%;
  left: 52%;
  width: 32%;
  transform: rotate(62deg);
}

.spark {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.spark-a { top: 16%; left: 52%; }
.spark-b { top: 30%; left: 34%; background: var(--violet); }
.spark-c { top: 44%; right: 24%; background: var(--mint); }
.spark-d { bottom: 26%; left: 38%; background: var(--amber); }
.spark-e { bottom: 22%; right: 36%; background: var(--coral); }
.spark-f { top: 64%; right: 16%; }
.spark-g { top: 76%; left: 52%; background: var(--violet); }

.about-grid,
.project-spotlight,
.composite {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.portrait-card {
  width: min(100%, 460px);
}

.portrait-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(102, 255, 194, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.portrait-placeholder::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.9) contrast(1.05);
}

.portrait-card figcaption {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-copy {
  max-width: 760px;
}

.about-copy p,
.spotlight-copy p,
.section-lede,
.method-card-lead,
.knowledge-flow-body,
.template-system-note,
.output-copy p,
.database-layer-list p {
  color: var(--muted);
}

.about-statement,
.spotlight-copy > p {
  font-size: clamp(16px, 1.55vw, 20px);
}

.about-matrix,
.metric-grid,
.method-cards,
.template-system-grid,
.database-layer-list {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-matrix article,
.metric-grid article,
.metric-grid div,
.method-cards article,
.template-system-block,
.knowledge-flow-step,
.database-layer-list article,
.database-layer-list div {
  padding: clamp(18px, 2vw, 26px);
  background: rgba(10, 11, 13, 0.92);
}

.about-matrix article {
  display: grid;
  grid-template-columns: minmax(110px, 0.26fr) 1fr;
  gap: 18px;
}

.about-matrix span,
.metric-grid span,
.method-cards span,
.knowledge-flow-step span,
.database-layer-list span,
.template-system-block span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-matrix p,
.metric-grid p,
.method-cards p,
.template-system-block p,
.knowledge-flow-step p,
.database-layer-list p {
  margin-bottom: 0;
}

.project-spotlight {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
}

.project-spotlight.alternate {
  grid-template-columns: minmax(340px, 1.08fr) minmax(0, 0.92fr);
}

.project-spotlight.alternate .spotlight-copy {
  order: 2;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

blockquote {
  margin: 28px 0 0;
  padding: 18px 22px;
  color: var(--mint);
  border-left: 3px solid var(--mint);
  background: rgba(102, 255, 194, 0.08);
}

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

.role-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
}

.schema-panel {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(82, 244, 255, 0.28);
  background: rgba(5, 5, 6, 0.76);
  box-shadow: inset 0 0 34px rgba(82, 244, 255, 0.06);
}

.schema-panel > span {
  display: block;
  padding: 14px 18px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.schema-panel pre {
  margin: 0;
  padding: 18px;
  color: var(--mint);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.project-taxonomy,
.eval-table,
.knowledge-stack {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.project-taxonomy article,
.knowledge-stack article {
  padding: clamp(16px, 2vw, 24px);
  background: rgba(10, 11, 13, 0.92);
}

.project-taxonomy span,
.eval-table span,
.knowledge-stack span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-taxonomy p,
.knowledge-stack p {
  margin: 8px 0 0;
  color: var(--muted);
}

.eval-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eval-table span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 12px;
  color: var(--text);
  text-align: center;
  background: rgba(10, 11, 13, 0.9);
}

.eval-table span:nth-child(2n) {
  color: var(--mint);
}

.knowledge-stack {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-visual .visual-console {
  min-height: 560px;
}

.product-project .spotlight-copy {
  max-width: 820px;
}

.product-project h2 {
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 1.04;
}

.project-story {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-story article {
  display: grid;
  grid-template-columns: minmax(82px, 0.18fr) 1fr;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
  background: rgba(10, 11, 13, 0.94);
}

.project-story span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-story article:nth-child(2) span {
  color: var(--cyan);
}

.project-story article:nth-child(3) span {
  color: var(--mint);
}

.project-story p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-visual-system {
  min-height: 620px;
}

.visual-console {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 620px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(82, 244, 255, 0.26);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(82, 244, 255, 0.08), rgba(157, 108, 255, 0.1));
  background-size: 38px 38px, 38px 38px, 100% 100%;
  box-shadow: var(--panel-shadow), inset 0 0 70px rgba(82, 244, 255, 0.08);
  overflow: hidden;
}

.visual-console::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.console-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.console-header span,
.signal-grid span,
.ai-response-panel span,
.food-core span,
.food-node span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-header strong {
  color: var(--text);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1;
}

.piano-stage,
.food-system-map {
  position: relative;
  z-index: 1;
  min-height: 360px;
}

.ar-plane {
  position: absolute;
  inset: 34px 28px 130px;
  border: 1px solid rgba(102, 255, 194, 0.22);
  transform: perspective(680px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: center bottom;
}

.ar-plane::before,
.ar-plane::after {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px solid rgba(82, 244, 255, 0.22);
}

.ar-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--mint);
  box-shadow: 0 0 22px var(--mint);
}

.dot-one { top: 18%; left: 24%; }
.dot-two { top: 42%; right: 24%; background: var(--violet); }
.dot-three { bottom: 22%; left: 54%; background: var(--amber); }

.piano-key-board {
  position: absolute;
  right: 5%;
  bottom: 24px;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 118px;
  border: 1px solid var(--line-strong);
}

.piano-key-board span {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(0, 0, 0, 0.32);
}

.piano-key-board span:nth-child(even)::before {
  position: absolute;
  top: 0;
  left: -22%;
  width: 44%;
  height: 62%;
  content: "";
  background: #050506;
  border: 1px solid rgba(82, 244, 255, 0.32);
  box-shadow: 0 0 18px rgba(82, 244, 255, 0.22);
}

.ai-response-panel {
  position: absolute;
  top: 82px;
  right: 26px;
  z-index: 2;
  width: min(260px, 45%);
  padding: 18px;
  border: 1px solid rgba(157, 108, 255, 0.42);
  background: rgba(5, 5, 6, 0.86);
}

.ai-response-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 20px;
}

.ai-response-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.signal-grid article {
  padding: 18px;
  background: rgba(5, 5, 6, 0.78);
}

.signal-grid p {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 800;
}

.food-system-map {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.food-system-map::before,
.food-system-map::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.food-system-map::before {
  width: 78%;
  height: 64%;
  transform: rotate(12deg);
}

.food-system-map::after {
  width: 62%;
  height: 78%;
  transform: rotate(-18deg);
}

.food-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  text-align: center;
  border: 1px solid var(--mint);
  background: rgba(5, 5, 6, 0.9);
  box-shadow: 0 0 36px rgba(102, 255, 194, 0.18);
}

.food-core strong {
  max-width: 130px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.food-node {
  position: absolute;
  z-index: 2;
  width: 150px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 6, 0.88);
}

.food-node p {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.node-top {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--cyan);
}

.node-right {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  border-color: var(--violet);
}

.node-bottom {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--amber);
}

.node-left {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  border-color: var(--coral);
}

.media-scroll-visual {
  overflow: hidden;
}

.media-scroll {
  position: relative;
  width: 100%;
  min-height: 520px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.media-scroll::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, #050506 0%, transparent 14%, transparent 86%, #050506 100%),
    linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.72));
}

.media-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: mediaFlow 42s linear infinite;
}

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

.media-card {
  flex: 0 0 clamp(240px, 23vw, 360px);
  height: 480px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111216;
}

.media-card video,
.media-card img {
  width: 100%;
  height: 82%;
  object-fit: cover;
}

.media-card figcaption {
  display: flex;
  align-items: center;
  height: 18%;
  padding: 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-card-a figcaption { color: var(--cyan); }
.media-card-b figcaption { color: var(--mint); }
.media-card-c figcaption { color: var(--violet); }
.media-card-d figcaption { color: var(--amber); }

.cases,
.resume-preview {
  min-height: auto;
}

.section-lede {
  max-width: 760px;
  margin-bottom: 42px;
  font-size: clamp(18px, 1.8vw, 24px);
}

.case-grid,
.resume-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: grid;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--panel-shadow);
}

.case-card:hover {
  border-color: rgba(82, 244, 255, 0.54);
}

.project-phone-carousel,
.case-video {
  width: 100%;
  min-height: 360px;
  background: #101114;
}

.case-video {
  height: 360px;
  object-fit: cover;
}

.project-phone-carousel {
  overflow: hidden;
}

.project-phone-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 24px;
  animation: mediaFlow 26s linear infinite;
}

.project-phone-track img {
  width: 180px;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.case-caption {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
}

.case-caption h3 {
  margin-bottom: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 24px;
  line-height: 1.15;
}

.case-caption p {
  color: var(--muted);
}

.resume-preview-grid {
  align-items: stretch;
  gap: clamp(24px, 5vw, 72px);
}

.resume-preview-card {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(82, 244, 255, 0.28);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(10, 11, 13, 0.88);
  background-size: 38px 38px, 38px 38px, 100% 100%;
  box-shadow: var(--panel-shadow), inset 0 0 70px rgba(82, 244, 255, 0.08);
}

.resume-preview-card span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resume-preview-card strong {
  display: block;
  margin: 12px 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.05;
}

.resume-preview-card p,
.resume-preview-card li {
  color: var(--muted);
}

.resume-preview-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 18px;
}

.composite {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.method-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-cards article {
  min-height: 360px;
}

.method-cards span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: #050506;
  background: var(--cyan);
}

.method-cards article:nth-child(2) span {
  background: var(--mint);
}

.method-cards article:nth-child(3) span {
  background: var(--violet);
  color: var(--text);
}

.method-cards article:nth-child(4) span {
  color: #050506;
  background: var(--amber);
}

.method-card-title-zh {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.graph {
  min-height: 100vh;
}

.slider-shell {
  position: relative;
  display: grid;
  grid-template-columns: 110px 48px minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: stretch;
  margin-top: 38px;
}

.slide-page-nav {
  display: grid;
  gap: 10px;
}

.slide-page-link,
.slider-button,
.slide-dots button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.slide-page-link {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.slide-page-link span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.slide-page-link strong {
  font-size: 24px;
  line-height: 1;
}

.slide-page-link.is-active,
.slider-button:hover,
.slide-dots button.is-active {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(82, 244, 255, 0.12);
}

.slider-button {
  display: grid;
  place-items: center;
  min-height: 100%;
  font-size: 34px;
}

.slide-window {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--panel-shadow);
}

.slide-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 54px);
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.slide-panel.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.recording-video-frame,
.database-video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0d10;
}

.recording-video-frame video,
.database-video-frame video {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.recording-title-row,
.database-heading,
.template-system-heading,
.output-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.recording-title-row h3,
.database-heading h3,
.template-system-heading h3,
.output-heading h3 {
  margin-bottom: 0;
}

.knowledge-flow-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.database-content,
.output-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
}

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

.output-covers figure {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1013;
}

.output-covers img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.output-covers figcaption {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.slide-dots {
  position: absolute;
  right: 64px;
  bottom: -38px;
  display: flex;
  gap: 8px;
}

.slide-dots button {
  width: 38px;
  height: 6px;
  min-height: 6px;
  padding: 0;
}

.contact {
  display: grid;
  place-items: center;
  min-height: 72vh;
  text-align: center;
}

.contact-main h2 {
  margin-bottom: 20px;
}

.contact-main a {
  color: var(--mint);
  font-size: clamp(28px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 26px rgba(102, 255, 194, 0.24);
}

.contact-footnote {
  margin: 42px 0 0;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.cursor-glow {
  position: fixed;
  z-index: 100;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 24px rgba(82, 244, 255, 0.42);
  transition: opacity 120ms ease, width 160ms ease, height 160ms ease, border-color 160ms ease;
}

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

.cursor-glow.is-hovering {
  width: 42px;
  height: 42px;
  border-color: var(--mint);
}

@keyframes scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes mediaFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1180px) {
  .hero,
  .about-grid,
  .project-spotlight,
  .project-spotlight.alternate,
  .composite {
    grid-template-columns: 1fr;
  }

  .project-spotlight.alternate .spotlight-copy {
    order: 0;
  }

  .constellation {
    min-height: 420px;
  }

  .case-grid,
  .resume-preview-grid,
  .method-cards {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .role-metric-grid,
  .project-taxonomy,
  .eval-table,
  .knowledge-stack {
    grid-template-columns: 1fr;
  }

  .slider-shell {
    grid-template-columns: 1fr;
  }

  .slide-page-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .slider-button {
    min-height: 48px;
  }
}

@media (max-width: 760px) {
  main,
  .hero,
  .hero-copy,
  .constellation,
  .section-block {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    min-height: auto;
    padding: 14px 18px;
  }

  .top-nav {
    display: none;
  }

  .section-rail {
    display: none;
  }

  .section-block {
    min-height: auto;
    padding: 84px 18px;
  }

  h1 {
    font-size: clamp(44px, 12.5vw, 50px);
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .mobile-title-line {
    display: block;
  }

  h2 {
    font-size: clamp(38px, 14vw, 66px);
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 92px;
  }

  .hero-copy {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .hero-line {
    width: calc(100vw - 42px);
    max-width: calc(100vw - 42px);
    padding-right: 6px;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .handwritten,
  .role-summary {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .role-summary {
    font-size: 14px;
    line-height: 1.65;
  }

  .handwritten {
    font-size: 20px;
    line-height: 1.5;
  }

  .mobile-break {
    display: block;
  }

  .chip-row {
    display: grid;
    width: calc(100vw - 36px);
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: calc(100vw - 36px);
  }

  .chip-row span {
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .constellation {
    width: 100%;
    max-width: calc(100vw - 36px);
    min-height: 340px;
  }

  .node {
    width: 54px;
    height: 54px;
    font-size: 10px;
  }

  .node-a {
    top: 42%;
    left: 48%;
  }

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

  .node-c {
    top: 22%;
    right: 18%;
  }

  .node-d {
    left: 22%;
    bottom: 14%;
  }

  .node-e {
    right: 20%;
    bottom: 16%;
  }

  .about-matrix article {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .knowledge-flow-chain,
  .database-content,
  .output-content,
  .output-covers,
  .template-system-grid,
  .signal-grid,
  .project-taxonomy,
  .eval-table,
  .knowledge-stack {
    grid-template-columns: 1fr;
  }

  .project-story article {
    grid-template-columns: 1fr;
  }

  .project-visual-system,
  .visual-console {
    min-height: 560px;
  }

  .console-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .piano-stage,
  .food-system-map {
    min-height: 320px;
  }

  .ai-response-panel {
    top: 64px;
    right: 14px;
    width: min(220px, 58%);
  }

  .piano-key-board {
    height: 92px;
  }

  .food-core {
    width: 138px;
    height: 138px;
  }

  .food-core strong {
    font-size: 18px;
  }

  .food-node {
    width: 118px;
    min-height: 74px;
    padding: 12px;
  }

  .food-node p {
    font-size: 12px;
  }

  .node-top {
    top: 18px;
  }

  .node-right {
    right: 2px;
  }

  .node-bottom {
    bottom: 18px;
  }

  .node-left {
    left: 2px;
  }

  .media-scroll {
    min-height: 420px;
  }

  .media-card {
    flex-basis: 270px;
    height: 380px;
  }

  .slide-window {
    min-height: 720px;
  }

  .slide-panel {
    padding: 20px;
  }

  .slide-page-nav {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .slide-page-link {
    padding: 9px;
  }

  .slide-dots {
    right: 0;
    bottom: -30px;
  }

  .contact-main a {
    font-size: clamp(32px, 13vw, 56px);
  }
}

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