:root {
  --ink: #0b1220;
  --ink-soft: #172033;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --surface-blue: #edf3ff;
  --text: #121826;
  --muted: #667085;
  --line: #d7dee8;
  --line-dark: #2c3648;
  --blue: #1f5eea;
  --blue-dark: #1748b5;
  --green: #15966f;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 72px);
  --section-gap: clamp(64px, 7vw, 96px);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 34%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

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

.section-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  border-bottom: 1px solid rgba(215, 222, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-separator,
.section-number {
  color: var(--blue);
}

.site-header nav {
  display: flex;
  gap: clamp(22px, 3vw, 48px);
  font-size: 14px;
  color: #30394a;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: clamp(64px, 8vw, 132px);
  align-items: end;
  padding-block: clamp(64px, 8vw, 104px);
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 730;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: #465164;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-light:hover {
  background: #eaf0fb;
}

.button-outline {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.button-outline:hover {
  background: var(--surface-blue);
}

.text-link {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-link-light {
  color: #dce8ff;
}

.focus-list {
  border-top: 2px solid var(--ink);
}

.aside-title {
  margin: 18px 0 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.focus-list li span {
  grid-row: 1 / span 2;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
}

.focus-list strong {
  font-size: 17px;
  line-height: 1.35;
}

.focus-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.experience,
.industrial,
.capabilities,
.education {
  padding-block: var(--section-gap);
}

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

.section-heading {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: clamp(52px, 7vw, 84px);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-heading p:not(.section-number) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.section-number {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #9faabd;
}

.timeline-item {
  position: relative;
  padding: 46px clamp(20px, 3vw, 42px) 0 0;
}

.timeline-item:not(:first-child) {
  padding-left: clamp(20px, 3vw, 42px);
  border-left: 1px solid var(--line);
}

.timeline-mark {
  position: absolute;
  top: -7px;
  left: 0;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: white;
}

.timeline-item:not(:first-child) .timeline-mark {
  left: -7px;
}

.timeline-date,
.project-label {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timeline h3,
.industrial-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.2vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.timeline-role {
  margin: 9px 0 18px;
  color: #384357;
  font-weight: 650;
}

.timeline-item > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.project-deepresearch {
  overflow: hidden;
  padding-block: var(--section-gap);
  background: var(--ink);
  color: white;
}

.section-heading-inverse h2 {
  color: white;
}

.section-heading-inverse p:not(.section-number) {
  color: #aeb9ca;
}

.deepresearch-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.project-copy-inverse {
  color: #d6deea;
}

.project-lead {
  margin: 0;
  color: #303a4d;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.75;
}

.project-copy-inverse .project-lead {
  color: #eef3fa;
}

.project-boundary {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-copy-inverse .project-boundary {
  color: #98a5b8;
}

.evidence-list {
  margin: 40px 0 0;
}

.evidence-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}

.evidence-list dt {
  color: #77a0ff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.evidence-list dd {
  margin: 0;
  color: #aeb9c9;
  font-size: 13px;
}

.live-proof {
  min-width: 0;
}

.proof-toolbar {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-bottom: 0;
  background: #111a2a;
}

.proof-tab {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #aeb8c8;
  cursor: pointer;
  font-size: 12px;
}

.proof-tab.is-active {
  border-bottom-color: #73a0ff;
  color: white;
}

.proof-toolbar > span {
  margin-left: auto;
  color: #78869b;
  font-size: 11px;
}

.proof-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-dark);
  background: #101725;
}

.proof-frame img,
.proof-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.proof-frame img {
  object-fit: cover;
  object-position: top center;
}

.proof-embed iframe {
  background: white;
}

.proof-caption {
  margin: 12px 0 0;
  color: #8693a7;
  font-size: 12px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(54px, 7vw, 90px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.workflow li {
  padding: 22px 18px 0;
  border-left: 1px solid var(--line-dark);
}

.workflow li:first-child {
  padding-left: 0;
  border-left: 0;
}

.workflow span {
  display: block;
  color: #77a0ff;
  font-family: var(--font-mono);
  font-size: 11px;
}

.workflow strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.workflow small {
  display: block;
  margin-top: 4px;
  color: #8995a8;
  font-size: 11px;
}

.industrial-project {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 82px);
  border-top: 1px solid var(--line);
}

.project-media {
  min-width: 0;
}

.project-media video {
  width: 100%;
  background: #0a0f17;
}

.portrait-media video {
  aspect-ratio: 9 / 15;
  object-fit: contain;
}

.project-media > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.industrial-copy {
  padding-top: 8px;
}

.industrial-copy .project-lead {
  margin-top: 24px;
}

.fact-rows {
  margin: 40px 0 0;
}

.fact-rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.fact-rows dt {
  color: var(--ink);
  font-weight: 700;
}

.fact-rows dd {
  margin: 0;
  color: var(--muted);
}

.document-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.document-strip a {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.document-strip img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  object-position: top;
  transition: transform 180ms ease;
}

.document-strip a:hover img {
  transform: scale(1.015);
}

.inspection-project {
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  margin-top: 16px;
}

.inspection-media video {
  aspect-ratio: 9 / 16;
}

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

.capability-matrix {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.capability-matrix > div {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.capability-matrix dt {
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 700;
}

.capability-matrix dt span {
  display: inline-block;
  width: 52px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
}

.capability-matrix dd {
  margin: 0;
  color: #3d485b;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.25vw, 16px);
}

.education {
  padding-top: 0;
}

.compact-heading {
  margin-bottom: 40px;
}

.education-rows {
  border-top: 2px solid var(--ink);
}

.education-rows article {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.education-rows h3,
.education-rows p,
.education-rows time {
  margin: 0;
}

.education-rows h3 {
  color: var(--ink);
  font-size: 21px;
}

.education-rows p,
.education-rows time {
  color: var(--muted);
}

.education-rows time {
  font-family: var(--font-mono);
  font-size: 13px;
}

.closing {
  background: var(--ink);
  color: white;
}

.closing-inner {
  padding-block: clamp(74px, 9vw, 130px);
}

.closing-inner > p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(35px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.16;
}

.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 66px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.closing-links a {
  color: #8fb0ff;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.profile-direction {
  margin: 24px 0 0;
  color: #384357;
  font-size: 17px;
}

.experience-department,
.stack-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.experience-department {
  margin: -10px 0 20px;
}

.work-list {
  padding-left: 20px;
  margin-block: 24px;
  color: #465164;
  font-size: 15px;
  line-height: 1.85;
}

.work-list li + li {
  margin-top: 14px;
}

.stack-note {
  margin-top: 24px;
}

.project-details {
  margin-top: 56px;
}

.project-details h3 {
  margin: 0 0 24px;
  font-size: 21px;
  font-weight: 600;
}

.detail-rows {
  margin: 0;
}

.detail-rows > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
}

.detail-rows dt {
  color: #d6deea;
  font-weight: 600;
}

.detail-rows dd {
  margin: 0;
  color: #aeb9c9;
  font-size: 15px;
  line-height: 1.9;
}

.professional-skills > div {
  align-items: start;
}

.professional-skills dt {
  font-size: clamp(19px, 1.7vw, 24px);
}

.professional-skills dd {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
}

.professional-skills dd p {
  margin: 0;
}

.professional-skills dd p + p,
.education-detail p + p {
  margin-top: 10px;
}

.education-detail p + p {
  font-size: 14px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .focus-list {
    max-width: 660px;
  }

  .deepresearch-layout,
  .industrial-project,
  .inspection-project {
    grid-template-columns: 1fr;
  }

  .project-media {
    max-width: 560px;
  }

  .inspection-project .industrial-copy {
    order: 2;
  }

  .inspection-project .project-media {
    order: 1;
  }

  .workflow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .education-rows article {
    grid-template-columns: 1fr 1fr;
  }

  .education-rows time {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --section-gap: 84px;
  }

  .site-header {
    min-height: 62px;
  }

  .brand {
    font-size: 11px;
  }

  .site-header nav {
    gap: 17px;
    font-size: 12px;
  }

  .hero {
    gap: 64px;
    padding-top: 90px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11.5vw, 50px);
  }

  .hero-summary {
    margin-top: 30px;
  }

  .section-heading {
    grid-template-columns: 36px 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid #9faabd;
  }

  .timeline-item,
  .timeline-item:not(:first-child) {
    padding: 0 0 54px 30px;
    border-left: 0;
  }

  .timeline-mark,
  .timeline-item:not(:first-child) .timeline-mark {
    top: 4px;
    left: -7px;
  }

  .proof-toolbar > span {
    display: none;
  }

  .proof-embed {
    display: none;
  }

  .proof-tab[data-proof-view="embed"] {
    display: none;
  }

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

  .workflow li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .fact-rows > div,
  .detail-rows > div,
  .capability-matrix > div,
  .education-rows article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .education-rows time {
    grid-column: auto;
  }

  .document-strip {
    gap: 7px;
  }

  .project-media {
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
