/* Recruitment path: editor/canvas visual language with progressive enhancement. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #070b0d;
  --panel: #0b1114;
  --panel-2: #0e171a;
  --paper: #eaf5f2;
  --muted: #8aa09c;
  --cyan: #21e6cf;
  --cyan-soft: rgba(33, 230, 207, .12);
  --line: rgba(126, 177, 169, .22);
  --line-strong: rgba(33, 230, 207, .48);
  --mono: "Courier New", "Microsoft YaHei UI", "PingFang SC", monospace;
  --sans: Arial, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --max: 1240px;
}

html { background: var(--ink); color: var(--paper); scroll-behavior: smooth; }
html[lang="zh-CN"] .en-only { display: none !important; }
html[lang="en"] .zh-only { display: none !important; }

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.canvas-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
  mask-image: linear-gradient(to bottom, #000 0, transparent 76%);
}

.level-header,
main,
.level-footer { position: relative; z-index: 1; }

.level-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line-strong);
  background: rgba(7, 11, 13, .9);
  backdrop-filter: blur(14px);
}

.level-brand { display: flex; flex-direction: column; line-height: 1.15; }
.level-brand strong { color: var(--paper); font-family: var(--sans); font-size: 1rem; letter-spacing: .18em; }
.level-brand strong::after { content: "_"; color: var(--cyan); }
.level-brand span { color: var(--muted); font-size: .56rem; letter-spacing: .12em; }

.level-nav { display: flex; align-items: center; gap: 22px; }
.level-nav a,
.level-lang {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.level-nav a:hover { color: var(--cyan); }
.level-lang { padding: 6px 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.level-lang:hover { border-color: var(--cyan); color: var(--cyan); }

main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.level-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: end;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(72px, 11vh, 132px) 0 clamp(56px, 9vh, 104px);
}

.coordinate { margin: 0 0 22px; color: var(--muted); font-size: .62rem; letter-spacing: .16em; }
.coordinate::before { content: "⌜ "; color: var(--cyan); }
.hero-kicker { margin: 0 0 14px; color: var(--cyan); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  font-family: var(--sans);
  font-size: clamp(3.1rem, 8.1vw, 7.8rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .84;
  text-transform: uppercase;
}
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--cyan); }

.hero-role { margin-bottom: 18px; font-size: clamp(.95rem, 1.8vw, 1.28rem); font-weight: 700; }
.hero-role span { color: var(--muted); font-size: .78em; letter-spacing: .04em; }
.hero-thesis { max-width: 760px; margin-bottom: 32px; color: #c7d8d4; font-family: var(--sans); font-size: clamp(.98rem, 1.7vw, 1.18rem); line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 13, .75);
  color: var(--paper);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}
.action:hover { transform: translateY(-2px); background: var(--cyan-soft); color: var(--cyan); }
.action--primary { background: var(--cyan); color: var(--ink); }
.action--primary:hover { background: var(--paper); color: var(--ink); }

.scan-panel { position: relative; border: 1px solid var(--line-strong); background: rgba(11, 17, 20, .88); box-shadow: 14px 14px 0 rgba(33, 230, 207, .055); }
.scan-panel::before,
.project-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 30px; height: 1px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .58rem; letter-spacing: .14em; }
.signal { color: var(--cyan); }
.scan-panel dl { margin: 0; padding: 10px 18px; }
.scan-panel dl div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.scan-panel dt { color: var(--muted); font-size: .62rem; letter-spacing: .08em; }
.scan-panel dd { margin: 0; font-family: var(--sans); font-size: .82rem; line-height: 1.55; }
.panel-note { margin: 0; padding: 14px 18px 18px; color: var(--muted); font-size: .68rem; line-height: 1.65; }

.evidence-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(100px, 14vw, 180px);
  border-block: 1px solid var(--line);
}
.evidence-bar span { padding: 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-align: center; }
.evidence-bar span:last-child { border-right: 0; }

.work-section,
.method-section { scroll-margin-top: 92px; margin-bottom: clamp(100px, 14vw, 180px); }
.section-heading { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(300px, 1fr); gap: 18px 56px; align-items: end; margin-bottom: 46px; }
.section-heading .coordinate { grid-column: 1 / -1; margin-bottom: 0; }
.section-heading h2 { margin: 0; font-family: var(--sans); font-size: clamp(2.1rem, 5vw, 4.7rem); letter-spacing: -.045em; line-height: .95; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-family: var(--sans); font-size: .92rem; line-height: 1.8; }

.project-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: rgba(11, 17, 20, .88); }
.project-card--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); margin-bottom: 20px; }
.project-card--earlier { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); margin-bottom: 20px; }
.project-visual { position: relative; overflow: hidden; min-height: 240px; background: #020505; }
.project-card--featured .project-visual { min-height: 520px; }
.project-card--yan .project-visual img { object-fit: contain; padding: 24px; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06); transition: transform .45s ease, filter .3s ease; }
.project-card:hover .project-visual img { transform: scale(1.018); filter: saturate(1) contrast(1.03); }
.project-card--earlier .project-visual { min-height: 420px; }
.project-visual--diagram { background: #132943; }
.project-visual--diagram img { object-fit: contain; filter: saturate(.82) contrast(1.03); }
.project-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 55%, rgba(33, 230, 207, .12)); }
.visual-index { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border: 1px solid var(--line-strong); background: rgba(7, 11, 13, .82); color: var(--cyan); font-size: .58rem; letter-spacing: .12em; }
.project-copy { padding: clamp(24px, 4vw, 52px); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-meta span { padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font-size: .56rem; letter-spacing: .1em; }
.project-copy h3 { margin-bottom: 20px; font-family: var(--sans); font-size: clamp(1.65rem, 3vw, 3rem); letter-spacing: -.035em; line-height: 1; }
.project-copy h3 small { color: var(--muted); font-family: var(--mono); font-size: .42em; letter-spacing: .1em; }
.project-copy > p { color: #baccc8; font-family: var(--sans); font-size: .88rem; line-height: 1.75; }
.project-lede { font-size: 1rem !important; }
.project-facts { margin: 28px 0; }
.project-facts div { padding: 15px 0; border-top: 1px dashed var(--line); }
.project-facts dt { margin-bottom: 7px; color: var(--cyan); font-size: .58rem; letter-spacing: .12em; }
.project-facts dd { margin: 0; color: #c7d8d4; font-family: var(--sans); font-size: .82rem; line-height: 1.65; }
.status-line { color: var(--muted) !important; font-size: .74rem !important; }
.project-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.project-actions a { min-height: 38px; padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); color: var(--cyan); font-size: .66rem; font-weight: 700; letter-spacing: .08em; }
.project-actions a:hover { color: var(--paper); border-color: var(--paper); }

.evidence-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: clamp(60px, 6vw, 82px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 46px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(33, 230, 207, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 230, 207, .12) 1px, transparent 1px),
    linear-gradient(145deg, #061013, #0b191b);
  background-size: 32px 32px, 32px 32px, auto;
}
.evidence-visual > p { margin: 0 0 18px; color: var(--cyan); font-size: .62rem; letter-spacing: .14em; }
.evidence-visual > strong { margin-bottom: auto; font-family: var(--sans); font-size: clamp(1.7rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -.04em; }
.evidence-visual dl { display: grid; gap: 8px; margin: 34px 0 0; }
.evidence-visual dl div { display: flex; justify-content: space-between; gap: 18px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .57rem; }
.evidence-visual dt { color: var(--muted); }
.evidence-visual dd { margin: 0; color: var(--paper); text-align: right; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card--compact { display: grid; grid-template-rows: 240px 1fr; }
.project-card--compact .project-copy { display: flex; flex-direction: column; }
.project-card--compact .project-actions { margin-top: auto; padding-top: 14px; }

.gallery-link { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 20px 22px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.gallery-link:hover { background: var(--cyan-soft); color: var(--cyan); }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: var(--line); list-style: none; }
.method-grid li { min-height: 280px; padding: 28px; background: var(--panel); }
.method-grid li > span { display: inline-block; margin-bottom: 54px; color: var(--cyan); font-size: .66rem; }
.method-grid h3 { font-family: var(--sans); font-size: 1.05rem; letter-spacing: -.01em; }
.method-grid p { margin: 0; color: var(--muted); font-family: var(--sans); font-size: .84rem; line-height: 1.75; }

.contact-section {
  scroll-margin-top: 92px;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 40px;
  align-items: end;
  padding: clamp(44px, 7vw, 76px);
  border: 1px solid var(--line-strong);
  background: var(--cyan-soft);
}
.contact-section .coordinate { margin-bottom: 18px; }
.contact-section h2 { margin: 0; font-family: var(--sans); font-size: clamp(2rem, 4.5vw, 4rem); line-height: .95; }
.contact-actions { display: grid; gap: 10px; }
.contact-actions a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.contact-actions a span { color: var(--muted); font-size: .58rem; letter-spacing: .1em; }
.contact-actions a:hover { color: var(--cyan); }

.level-footer { display: flex; justify-content: space-between; gap: 18px; width: min(var(--max), calc(100% - 48px)); margin: 48px auto 0; padding: 22px 0 30px; color: var(--muted); font-size: .56rem; letter-spacing: .1em; }

@media (max-width: 920px) {
  .level-hero { grid-template-columns: 1fr; min-height: auto; }
  .scan-panel { max-width: 680px; }
  .section-heading { grid-template-columns: 1fr; }
  .project-card--featured { grid-template-columns: 1fr; }
  .project-card--earlier { grid-template-columns: 1fr; }
  .project-card--featured .project-visual { min-height: 390px; }
  .evidence-visual { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--compact { grid-template-columns: minmax(260px, .75fr) 1fr; grid-template-rows: auto; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid li { min-height: 0; }
  .method-grid li > span { margin-bottom: 24px; }
}

@media (max-width: 680px) {
  .level-header { position: relative; align-items: flex-start; padding: 14px 16px; }
  .level-brand span { display: none; }
  .level-nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; }
  .level-nav a { font-size: .58rem; }
  main { width: min(100% - 32px, var(--max)); }
  .level-hero { padding-top: 58px; }
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .action { justify-content: space-between; }
  .scan-panel dl div { grid-template-columns: 1fr; gap: 5px; }
  .evidence-bar { grid-template-columns: 1fr; }
  .evidence-bar span { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .evidence-bar span:last-child { border-bottom: 0; }
  .project-card--featured .project-visual,
  .project-card--earlier .project-visual,
  .project-card--compact .project-visual { min-height: 230px; }
  .evidence-visual { min-height: 300px; padding: 58px 22px 26px; }
  .project-card--compact { grid-template-columns: 1fr; grid-template-rows: 230px 1fr; }
  .project-copy { padding: 24px 20px; }
  .gallery-link { align-items: flex-end; }
  .contact-section { grid-template-columns: 1fr; padding: 32px 22px; }
  .contact-actions a { flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
  .level-footer { width: calc(100% - 32px); flex-direction: column; }
}

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