:root {
  --bg: #07121b;
  --surface: #0d1e29;
  --surface-2: #122a37;
  --line: #203d4a;
  --text: #ecf5f4;
  --muted: #a5b9bb;
  --accent: #29d8b6;
  --accent-soft: #102f31;
  --warning: #ffd27a;
  --heat: #ff7a3d;
  --heat-soft: rgba(255, 122, 61, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 0%, rgba(41, 216, 182, 0.12), transparent 38rem),
    linear-gradient(135deg, rgba(41, 216, 182, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 38px 38px, auto;
  font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.section[id] {
  scroll-margin-top: 78px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 max(calc((100% - var(--max)) / 2), 24px);
  border-bottom: 1px solid rgba(32, 61, 74, 0.7);
  background: rgba(7, 18, 27, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

nav {
  display: flex;
  gap: 32px;
  max-width: 68vw;
  overflow-x: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 70px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 88px);
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.hero-content h2 {
  margin: 16px 0 20px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
}

.lead {
  max-width: 690px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.lead strong {
  color: var(--text);
}

.hero-tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.chips span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9dddc;
  font-size: 13px;
}

.hero-tags span:first-child,
.chips span:first-child {
  border-color: rgba(41, 216, 182, 0.4);
  color: var(--accent);
  background: var(--accent-soft);
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 27px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.button.primary {
  color: #03171a;
  background: var(--accent);
}

.button.secondary {
  border-color: var(--line);
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}


.profile-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--accent);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(42, 211, 198, 0.12), rgba(99, 102, 241, 0.16)),
    var(--surface-2);
}

.profile-card img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: center 24%;
}

.profile-info {
  padding: 22px 23px 24px;
}

.profile-info strong {
  color: var(--accent);
  font-size: 15px;
}

.profile-info p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

dl {
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

dl div + div {
  margin-top: 10px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  text-align: right;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding-top: 0;
}

.metrics article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.metrics strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 32px;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2,
.contact h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 40px);
}

.section-heading > p:last-child,
.contact > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
}


.ai-workflow {
  position: relative;
}

.ai-workflow::before {
  content: "";
  position: absolute;
  inset: 38px -24px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 61, 0.62), rgba(41, 216, 182, 0.38), transparent);
}

.ai-workflow .section-heading {
  max-width: 880px;
}

.ai-workflow .section-heading h2 {
  max-width: 820px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ai-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 122, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(255, 122, 61, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--surface);
}

.ai-card::after {
  content: "RUN";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(255, 210, 122, 0.16);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ai-card.hot {
  border-color: rgba(255, 122, 61, 0.55);
  box-shadow: 0 22px 46px rgba(255, 122, 61, 0.08);
}

.ai-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 210, 122, 0.42);
  border-radius: 6px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
}

.ai-card h3 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 22px;
}

.ai-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.section-heading.compact {
  margin-bottom: 28px;
}


.profile-notes {
  padding-top: 28px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.notes-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(255, 210, 122, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 210, 122, 0.09), transparent 44%),
    var(--surface);
}

.notes-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--warning);
  font-size: 18px;
}

.notes-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.skill-card {
  min-height: 210px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.skill-card h3,
.project-copy h3,
.timeline h3,
.credential h3,
.license h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.skill-card p,
.project-copy p:not(.label),
.timeline article p:not(.role),
.credential p,
.license p {
  margin: 0 0 20px;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.project-card.featured img {
  height: 100%;
  aspect-ratio: unset;
}

.project-copy {
  padding: 25px;
}

.project-copy .label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.case-study {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(41, 216, 182, 0.055), transparent 25rem),
    var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.case-gallery {
  display: grid;
  gap: 12px;
}

.primary-gallery {
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, 214px);
  margin-bottom: 27px;
}

.primary-gallery .hero-shot {
  grid-row: span 2;
}

.case-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  background: var(--surface-2);
}

.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.case-gallery figcaption {
  position: absolute;
  right: 11px;
  bottom: 11px;
  left: 11px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #dcebea;
  background: rgba(7, 18, 27, 0.72);
  font-size: 12px;
}

.case-summary {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 10px 32px;
  padding: 4px 8px 0;
}

.case-summary .label {
  grid-column: 1;
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.case-summary h3 {
  grid-column: 1;
  margin: 0;
  font-size: 27px;
  line-height: 1.3;
}

.case-summary > p:not(.label) {
  grid-column: 1;
  margin: 2px 0 0;
  color: var(--muted);
}

.case-summary > p strong {
  color: var(--text);
}

.fact-grid {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 8px;
}

.fact-grid p {
  margin: 0;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(18, 42, 55, 0.8);
  font-size: 13px;
}

.fact-grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 12px;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 24px;
}

.case-detail-grid section {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 42, 55, 0.68);
}

.case-detail-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.case-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.case-detail-grid p strong {
  color: var(--text);
}

.case-detail-grid .highlight {
  grid-column: span 2;
  border-color: rgba(41, 216, 182, 0.35);
  background: linear-gradient(105deg, var(--accent-soft), var(--surface-2));
}

.case-detail-grid .safety {
  border-color: rgba(41, 216, 182, 0.18);
}

.subheading {
  margin-top: 58px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
}

.support-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.support-card:hover {
  border-color: rgba(41, 216, 182, 0.34);
  transform: translateY(-2px);
}

.support-card.wide {
  grid-column: span 2;
}

.support-card.siemens {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
}

.evidence-gallery {
  display: grid;
  gap: 7px;
  padding: 0 14px 14px;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.two-up img:first-child {
  grid-column: span 2;
}

.monitor-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.monitor-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

.single-media {
  grid-template-columns: 1fr;
}

.single-media img {
  height: 265px;
}

.landscape img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.system-gallery {
  align-content: center;
  padding: 14px;
}

.system-gallery img:first-child {
  grid-column: auto;
}

.system-gallery img {
  height: 285px;
}

.evidence-gallery img {
  position: relative;
  width: 100%;
  height: 142px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  transition:
    transform 260ms cubic-bezier(0.2, 0.65, 0.25, 1),
    box-shadow 260ms ease;
}

.evidence-gallery.single-media img,
.media-tile img {
  height: 265px;
}

.evidence-gallery.system-gallery img {
  height: 285px;
}
.evidence-gallery.drawing-gallery img {
  box-sizing: border-box;
  padding: 6px;
  object-fit: contain;
  background: #f7faf9;
}

.media-tile {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  cursor: zoom-in;
}

.media-tile img {
  display: block;
  height: 265px;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 14px 8px 34px;
  border: 1px solid rgba(41, 216, 182, 0.38);
  border-radius: 999px;
  color: #e8f4f3;
  background: rgba(7, 18, 27, 0.84);
  font-size: 13px;
  font-weight: 600;
}

.play-badge::before {
  position: absolute;
  top: 50%;
  left: 14px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--accent);
  transform: translateY(-50%);
  content: "";
}

.single-evidence {
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: cover;
  transition:
    transform 260ms cubic-bezier(0.2, 0.65, 0.25, 1),
    filter 260ms ease;
}

.previewable {
  cursor: zoom-in;
}

.previewable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .case-gallery figure:hover img {
    transform: scale(1.05);
  }

  .evidence-gallery img:hover {
    z-index: 1;
    transform: scale(1.055);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  }

  .single-evidence:hover {
    transform: scale(1.025);
    filter: brightness(1.05);
  }
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 54px 48px 34px;
  background: rgba(2, 8, 13, 0.88);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 190ms ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-content {
  display: grid;
  justify-items: center;
  gap: 13px;
  max-width: min(1240px, 100%);
  max-height: 100%;
  transform: scale(0.975) translateY(5px);
  transition: transform 230ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.lightbox.is-open .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-stage {
  display: grid;
  place-items: center;
  max-width: min(1240px, calc(100vw - 150px));
  max-height: calc(100vh - 156px);
  touch-action: pan-y;
}

.lightbox-image,
.lightbox-video {
  max-width: min(1240px, 100%);
  max-height: calc(100vh - 156px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.48);
}

.lightbox-image[hidden],
.lightbox-video[hidden] {
  display: none;
}

.lightbox-video {
  background: #050b10;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-caption {
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  color: #d8e7e6;
  background: rgba(13, 30, 41, 0.84);
  font-size: 13px;
}

.lightbox-counter {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(236, 245, 244, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 23px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(236, 245, 244, 0.24);
  border-radius: 50%;
  color: var(--text);
  background: rgba(13, 30, 41, 0.76);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 70px;
  border: 1px solid rgba(236, 245, 244, 0.18);
  border-radius: 13px;
  color: var(--text);
  background: rgba(13, 30, 41, 0.7);
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 150ms ease, background 150ms ease;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  .case-gallery img,
  .evidence-gallery img,
  .single-evidence,
  .media-tile img,
  .lightbox,
  .lightbox-content {
    transition: none;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 58px;
}

.timeline {
  border-left: 1px solid var(--line);
}

.timeline article {
  position: relative;
  padding: 0 0 38px 28px;
}

.timeline article::before {
  position: absolute;
  top: 8px;
  left: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

time {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.timeline .role {
  margin: -3px 0 10px;
  color: #d2e4e3;
  font-size: 14px;
}

.scope-list p {
  margin: 0 0 13px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface);
}

.scope-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.credential,
.license {
  margin-bottom: 13px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.credential p,
.license p {
  margin-bottom: 0;
  font-size: 14px;
}

.license.valid {
  position: relative;
  border-color: rgba(41, 216, 182, 0.32);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 9px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
}

.preference {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preference li {
  position: relative;
  margin-bottom: 14px;
  padding: 14px 18px 14px 31px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.preference li::before {
  position: absolute;
  left: 16px;
  color: var(--accent);
  content: "›";
}

.contact {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 54px;
  align-items: center;
  margin-bottom: 55px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a,
.contact-links p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.wechat-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.wechat-card img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.contact-links .wechat-card p {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background: transparent;
}

.contact-links span {
  color: var(--muted);
}

.availability {
  color: var(--accent);
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .background-grid,
  .ai-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 42px;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 270px 1fr;
  }

  
.profile-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--accent);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(42, 211, 198, 0.12), rgba(99, 102, 241, 0.16)),
    var(--surface-2);
}

.profile-card img {
    height: 100%;
    min-height: 300px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 35px;
  }

  .case-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-detail-grid .highlight,
  .case-detail-grid .safety {
    grid-column: span 2;
  }

  .primary-gallery {
    grid-template-rows: repeat(2, 190px);
  }
}

@media (max-width: 690px) {
  .section {
    width: min(var(--max), calc(100% - 32px));
    padding: 50px 0;
  }

  .site-header {
    padding: 0 16px;
  }

  nav {
    gap: 15px;
    max-width: 72vw;
    font-size: 13px;
  }

  .hero {
    padding-top: 42px;
  }

  .profile-card,
  .skill-grid,
  .ai-grid,
  .notes-grid,
  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  
.profile-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--accent);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(42, 211, 198, 0.12), rgba(99, 102, 241, 0.16)),
    var(--surface-2);
}

.profile-card img {
    height: 350px;
  }

  .project-card.featured {
    grid-column: auto;
    display: block;
  }

  .case-study {
    padding: 13px;
  }

  .primary-gallery,
  .case-summary,
  .case-detail-grid,
  .support-grid,
  .support-card.siemens {
    display: block;
  }

  .primary-gallery figure {
    height: 220px;
    margin-bottom: 10px;
  }

  .primary-gallery .hero-shot {
    height: 300px;
  }

  .case-summary h3 {
    margin: 7px 0;
    font-size: 24px;
  }

  .fact-grid {
    display: grid;
    margin-top: 18px;
  }

  .case-detail-grid section {
    margin-top: 12px;
  }

  .support-card,
  .support-card.wide,
  .support-card.siemens {
    margin-bottom: 14px;
  }

  .evidence-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .three-up img:first-child,
  .monitor-gallery img:first-child {
    grid-column: span 2;
    height: 190px;
  }

  .single-evidence {
    height: auto;
  }

  .lightbox {
    padding: 62px 14px 76px;
  }

  .lightbox-stage {
    max-width: 100%;
    max-height: calc(100vh - 160px);
  }

  .lightbox-image,
  .lightbox-video {
    max-height: calc(100vh - 160px);
  }

  .lightbox-close {
    top: 13px;
    right: 13px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 14px;
    width: 54px;
    height: 48px;
    font-size: 42px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 66px);
  }

  .lightbox-next {
    right: calc(50% - 66px);
  }

  .metrics {
    gap: 10px;
  }

  .metrics article {
    padding: 17px;
  }

  .metrics strong {
    font-size: 25px;
  }

  .ai-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 26px 20px;
  }

  footer {
    display: block;
    width: calc(100% - 32px);
  }

  footer p + p {
    margin-top: 6px;
  }
}

/* Local UI redesign pass - 2026-06-17 */
:root {
  --bg: #090d0f;
  --surface: #11181a;
  --surface-2: #182326;
  --line: #2d3d40;
  --text: #eef4f1;
  --muted: #aab8b4;
  --accent: #2fd0a4;
  --accent-soft: rgba(47, 208, 164, 0.12);
  --warning: #f1b85b;
  --heat: #e46f45;
  --max: 1160px;
}

body {
  background:
    linear-gradient(180deg, #080c0e 0%, #0d1416 42%, #090d0f 100%),
    var(--bg);
  letter-spacing: 0;
}

.section {
  padding: 64px 0;
}

.site-header {
  height: 64px;
  border-bottom-color: rgba(238, 244, 241, 0.08);
  background: rgba(8, 12, 14, 0.9);
}

nav {
  gap: 26px;
  font-size: 15px;
}

nav a {
  position: relative;
  padding: 20px 0;
}

nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 58px;
  min-height: 78vh;
  padding-top: 52px;
  padding-bottom: 42px;
}

h1 {
  font-size: clamp(62px, 7.4vw, 96px);
  letter-spacing: 0;
}

.hero-content h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 40px);
}

.lead {
  max-width: 720px;
  font-size: 18px;
}

.profile-card,
.metrics article,
.skill-card,
.ai-card,
.notes-grid article,
.support-card,
.case-study,
.case-detail-grid section,
.contact,
.credential,
.license,
.scope-list p {
  border-radius: 8px;
}

.profile-card {
  border-color: rgba(238, 244, 241, 0.12);
  background: #101719;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.profile-card img {
  height: 430px;
  object-position: center 22%;
}

.metrics {
  gap: 0;
  padding-top: 18px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(238, 244, 241, 0.08);
  border-bottom: 1px solid rgba(238, 244, 241, 0.08);
}

.metrics article {
  border: 0;
  border-right: 1px solid rgba(238, 244, 241, 0.08);
  background: transparent;
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--warning);
  font-size: 30px;
}

.section-heading-wide {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px 52px;
  align-items: end;
}

.section-heading-wide .eyebrow {
  grid-column: 1;
}

.section-heading-wide h2 {
  grid-column: 1;
  max-width: 440px;
}

.section-heading-wide > p:last-child {
  grid-column: 2;
  max-width: 620px;
  padding-bottom: 7px;
  font-size: 16px;
}

.label,
.project-copy .label,
.case-summary .label {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.capability-section {
  padding-top: 74px;
}

.capability-shell {
  display: grid;
  grid-template-columns: 1.08fr 0.98fr 0.86fr;
  gap: 18px;
  align-items: stretch;
}

.capability-main,
.capability-list article,
.toolchain-card,
.principle-strip article,
.timeline-rail article,
.credential-stack article {
  border: 1px solid rgba(238, 244, 241, 0.1);
  border-radius: 8px;
  background: rgba(17, 24, 26, 0.9);
}

.capability-main {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(47, 208, 164, 0.12), transparent 50%),
    rgba(17, 24, 26, 0.92);
}

.capability-main h3,
.toolchain-card h3,
.credential-stack h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.capability-main p:not(.label),
.toolchain-card p:not(.label),
.capability-list p,
.timeline-rail p,
.credential-stack p:not(.label) {
  margin: 0;
  color: var(--muted);
}

.compact-tags {
  margin-top: 24px;
}

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

.capability-list article {
  padding: 20px;
}

.capability-list strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 17px;
}

.toolchain-card {
  padding: 26px;
  border-color: rgba(241, 184, 91, 0.22);
  background:
    linear-gradient(160deg, rgba(228, 111, 69, 0.13), transparent 46%),
    rgba(17, 24, 26, 0.95);
}

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

.toolchain-list span {
  padding: 6px 10px;
  border: 1px solid rgba(241, 184, 91, 0.25);
  border-radius: 999px;
  color: #f4d7a0;
  font-size: 13px;
}

.principle-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.principle-strip article {
  padding: 18px 20px;
}

.principle-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.principle-strip strong {
  color: var(--text);
  font-size: 16px;
}

.projects {
  padding-top: 70px;
}

.case-study {
  background: #101719;
}

.support-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.support-card {
  grid-column: span 3;
  border-color: rgba(238, 244, 241, 0.1);
  background: #11181a;
}

.support-card.wide,
.support-card.siemens {
  grid-column: span 6;
}

.support-card:hover {
  transform: none;
}

.engineering-section {
  padding-top: 78px;
}

.experience-board {
  display: grid;
  grid-template-columns: 1.1fr 0.78fr 0.82fr;
  gap: 18px;
  align-items: start;
}

.timeline-rail {
  display: grid;
  gap: 14px;
}

.timeline-rail article {
  position: relative;
  padding: 24px 26px 24px 34px;
}

.timeline-rail article::before {
  position: absolute;
  top: 28px;
  left: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline-rail time {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.timeline-rail h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.scope-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 24px;
  border: 1px solid rgba(238, 244, 241, 0.1);
  border-radius: 8px;
  background: rgba(17, 24, 26, 0.8);
}

.scope-cloud .label {
  flex: 0 0 100%;
}

.scope-cloud span {
  padding: 8px 11px;
  border: 1px solid rgba(47, 208, 164, 0.2);
  border-radius: 999px;
  color: #cfe2dd;
  background: rgba(47, 208, 164, 0.06);
  font-size: 14px;
}

.credential-stack {
  display: grid;
  gap: 14px;
}

.credential-stack article {
  padding: 24px;
}

.contact {
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 8px;
  margin-bottom: 44px;
  padding: 38px;
  border-color: rgba(47, 208, 164, 0.18);
  background:
    linear-gradient(135deg, rgba(47, 208, 164, 0.08), transparent 44%),
    #101719;
}

.contact h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.contact-links a,
.contact-links p,
.wechat-card {
  border: 1px solid rgba(238, 244, 241, 0.08);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .section-heading-wide,
  .capability-shell,
  .experience-board {
    grid-template-columns: 1fr;
  }

  .section-heading-wide .eyebrow,
  .section-heading-wide h2,
  .section-heading-wide > p:last-child {
    grid-column: auto;
  }

  .principle-strip {
    grid-template-columns: 1fr;
  }

  .support-card,
  .support-card.wide,
  .support-card.siemens {
    grid-column: span 6;
  }
}

@media (max-width: 690px) {
  .section {
    padding: 46px 0;
  }

  .hero {
    min-height: auto;
  }

  .metrics {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .metrics article {
    border-right: 0;
    border-bottom: 1px solid rgba(238, 244, 241, 0.08);
  }

  .profile-card img {
    height: 360px;
  }

  .capability-main,
  .toolchain-card,
  .scope-cloud,
  .credential-stack article,
  .timeline-rail article {
    padding: 22px;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 64px;
    padding: 0 14px;
    gap: 16px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 17px;
    white-space: nowrap;
  }

  nav {
    flex: 1 1 auto;
    max-width: none;
    gap: 22px;
    overflow-x: auto;
    font-size: 16px;
    white-space: nowrap;
  }

  nav a {
    flex: 0 0 auto;
    padding: 20px 0 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 34px;
    overflow: hidden;
  }

  .hero-content {
    min-width: 0;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.75;
    letter-spacing: 0.18em;
    overflow-wrap: normal;
    word-break: normal;
  }

  h1 {
    margin-top: 14px;
    font-size: clamp(54px, 18vw, 72px);
    line-height: 0.98;
    white-space: nowrap;
  }

  .hero-content h2 {
    margin: 14px 0 18px;
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.25;
    word-break: keep-all;
  }

  .lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions a,
  .hero-actions button {
    min-width: min(100%, 148px);
  }

  .profile-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 420px;
    margin: 2px auto 0;
  }

  .profile-card img {
    height: min(96vw, 390px);
    min-height: 0;
    object-position: center 20%;
  }
}

@media (max-width: 390px) {
  nav {
    gap: 18px;
    font-size: 15px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 64px);
  }

  .hero-content h2 {
    font-size: 25px;
  }
}
