:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-solid: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #eef1f4;
  --line: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(29, 29, 31, 0.2);
  --blue: #0071e3;
  --green: #0b7f70;
  --amber: #b86f00;
  --red: #bc3b2f;
  --shadow: 0 24px 76px rgba(29, 29, 31, 0.11);
  --soft-shadow: 0 14px 38px rgba(29, 29, 31, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090c;
  --paper: rgba(23, 25, 30, 0.82);
  --paper-solid: #14161b;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #1d2229;
  --line: rgba(245, 245, 247, 0.12);
  --line-strong: rgba(245, 245, 247, 0.22);
  --blue: #2997ff;
  --green: #4cc7ad;
  --amber: #f3b24d;
  --red: #ff6b5e;
  --shadow: 0 30px 88px rgba(0, 0, 0, 0.46);
  --soft-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f3f5f8 42%, #eaf0f2 100%),
    var(--bg);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.56;
  text-rendering: geometricPrecision;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #12141a 0%, #08090c 48%, #10171a 100%),
    var(--bg);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
}

.section-shell {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 12px clamp(22px, 5vw, 72px);
  background: rgba(246, 247, 249, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.25);
}

:root[data-theme="dark"] .topbar {
  background: rgba(8, 9, 12, 0.72);
}

.brand {
  display: inline-grid;
  gap: 1px;
  color: var(--ink);
  font-weight: 850;
}

.brand span {
  font-size: 17px;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

:root[data-theme="dark"] .nav {
  background: rgba(255, 255, 255, 0.06);
}

.nav a {
  min-width: 72px;
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: var(--paper-solid);
}

:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.nav-action,
.primary-action,
.secondary-action,
.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-action,
.theme-toggle,
.secondary-action {
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.theme-toggle {
  min-width: 64px;
}

.primary-action {
  padding: 0 20px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.24);
}

.secondary-action {
  padding: 0 20px;
}

.nav-action:hover,
.primary-action:hover,
.secondary-action:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(246, 247, 249, 0.98) 0%, rgba(246, 247, 249, 0.88) 44%, rgba(246, 247, 249, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 241, 245, 0.74));
}

:root[data-theme="dark"] .hero::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.98) 0%, rgba(8, 9, 12, 0.9) 46%, rgba(8, 9, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(28, 31, 38, 0.94), rgba(8, 9, 12, 0.88));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-portrait-card {
  position: absolute;
  right: clamp(22px, 2.4vw, 42px);
  bottom: 42px;
  width: min(460px, 32vw);
  height: 570px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 29, 31, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.46);
  background-size: 36px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
}

:root[data-theme="dark"] .hero-portrait-card {
  background:
    linear-gradient(90deg, rgba(245, 245, 247, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 245, 247, 0.08) 1px, transparent 1px),
    rgba(20, 22, 27, 0.52);
}

.hero-portrait-card img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: bottom center;
  transform: translateX(-50%);
  filter: saturate(0.98) contrast(1.02);
  opacity: 0.96;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-lines polyline {
  fill: none;
  stroke: rgba(0, 113, 227, 0.56);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hero-system {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-system::before,
.hero-system::after {
  display: none;
}

.system-node {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 136px;
  min-height: 64px;
  padding: 12px 14px;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow:
    0 18px 46px rgba(29, 29, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
}

.system-node::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  z-index: -1;
  height: 46%;
  display: block;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  border-radius: 7px 7px 18px 18px;
  opacity: 0.78;
}

.system-node::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -28%;
  z-index: -1;
  width: 72%;
  height: 76%;
  display: block;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.16), rgba(255, 255, 255, 0) 62%);
  transform: rotate(-16deg);
  opacity: 0.72;
}

:root[data-theme="dark"] .system-node {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.16)),
    rgba(20, 22, 27, 0.34);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.system-node span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.system-node strong {
  font-size: 14px;
  line-height: 1.15;
}

.node-main {
  left: 36px;
  top: 248px;
  border-color: rgba(0, 113, 227, 0.36);
}

.node-one {
  right: 2px;
  top: 158px;
  min-width: 120px;
  border-color: rgba(11, 127, 112, 0.28);
}

.node-one::after {
  background: radial-gradient(circle, rgba(11, 127, 112, 0.16), rgba(255, 255, 255, 0) 62%);
}

.node-two {
  right: 42px;
  bottom: 112px;
  border-color: rgba(184, 111, 0, 0.28);
}

.node-two::after {
  background: radial-gradient(circle, rgba(184, 111, 0, 0.18), rgba(255, 255, 255, 0) 62%);
}

.node-three {
  left: 18px;
  bottom: 104px;
  border-color: rgba(29, 29, 31, 0.18);
}

.node-three::after {
  background: radial-gradient(circle, rgba(95, 111, 130, 0.16), rgba(255, 255, 255, 0) 62%);
}

.hero-inner {
  display: grid;
  align-items: center;
  min-height: 720px;
  padding: 82px 0 74px;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow,
.panel-label,
.tag {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 80px;
  line-height: 0.98;
  font-weight: 860;
}

h1 span {
  display: block;
}

.role {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.2;
  font-weight: 820;
}

.intro {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.hero-proof div {
  min-height: 96px;
  padding: 18px;
  background: var(--paper);
  backdrop-filter: blur(18px);
}

.hero-proof dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.hero-proof dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.25;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  margin-bottom: 82px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics article {
  min-height: 138px;
  padding: 26px;
  background: var(--paper-solid);
}

.metrics strong {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-weight: 700;
}

.expertise-section,
.project-section,
.artifacts-section,
.experience-section,
.system-section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.focus-panel h2,
.contact-section h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.1;
}

.section-heading p,
.focus-panel p,
.contact-section p,
.expert-card p,
.project-display p,
.timeline p,
.timeline li,
.artifact-card p,
.system-detail p {
  color: var(--muted);
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.expert-card,
.focus-panel,
.project-lab,
.artifact-card,
.timeline article,
.system-board,
.skill-band,
.contact-section {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.15);
}

.expert-card {
  display: grid;
  align-content: start;
  min-height: 350px;
  padding: 26px;
}

.card-index {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 5px 9px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 860;
}

.expert-card h3,
.artifact-card h3,
.timeline h3,
.system-detail h3 {
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.2;
}

.expert-card h3 {
  font-size: 23px;
}

.expert-card p {
  margin-bottom: 18px;
}

.expert-card ul,
.timeline ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-card li,
.timeline li,
.project-points li {
  position: relative;
  padding-left: 18px;
}

.expert-card li::before,
.timeline li::before,
.project-points li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.focus-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 26px;
  align-items: center;
  margin-bottom: 76px;
  padding: 30px;
  overflow: hidden;
}

.focus-panel > div:first-child {
  max-width: 720px;
}

.focus-panel p {
  margin-bottom: 0;
  font-size: 18px;
}

.lens-switcher,
.system-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lens-button,
.system-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.lens-button:hover,
.system-tab:hover,
.lens-button.is-active,
.system-tab.is-active {
  color: var(--ink);
  background: var(--paper-solid);
}

:root[data-theme="dark"] .lens-button:hover,
:root[data-theme="dark"] .system-tab:hover,
:root[data-theme="dark"] .lens-button.is-active,
:root[data-theme="dark"] .system-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.lens-chips,
.skill-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lens-chips {
  grid-column: 1 / -1;
}

.lens-chips span,
.skill-band span,
.project-metrics span {
  padding: 8px 11px;
  color: var(--ink);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
}

.project-lab {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.project-menu {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.project-item {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 21px;
  color: var(--ink);
  background: var(--paper-solid);
  text-align: left;
  transition: background 180ms ease, transform 180ms ease;
}

.project-item:hover,
.project-item.is-active {
  background: var(--subtle);
}

.project-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.project-item strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.24;
}

.project-display {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1.12fr);
  gap: 26px;
  min-height: 620px;
  padding: 34px;
  background: var(--paper-solid);
}

.project-copy {
  display: grid;
  align-content: start;
}

.project-display h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.14;
}

.project-display p {
  margin-bottom: 22px;
  font-size: 18px;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-meta div {
  min-height: 104px;
  padding: 18px;
  background: var(--subtle);
}

.case-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.case-meta strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.project-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  color: var(--muted);
}

.project-visual {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 560px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(0, 113, 227, 0.07), transparent 42%),
    var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.visual-toolbar {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 28px;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  background: var(--line-strong);
  border-radius: 50%;
}

.visual-toolbar strong {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.visual-body {
  display: grid;
  gap: 14px;
}

.prototype-canvas {
  display: grid;
  gap: 14px;
}

.screenshot-showcase {
  display: grid;
  gap: 14px;
}

.screenshot-showcase figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.screenshot-showcase img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.screenshot-showcase figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.screenshot-main img {
  aspect-ratio: 1265 / 720;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.screenshot-strip img {
  aspect-ratio: 1265 / 720;
}

.kd-shell {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 468px;
  overflow: hidden;
  background: #f4f6f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

:root[data-theme="dark"] .kd-shell {
  background: #111827;
}

.kd-sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px 12px;
  color: #fff;
  background: #1f3f73;
}

.kd-sidebar strong {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.25;
}

.kd-sidebar span {
  padding: 8px 9px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 720;
}

.kd-sidebar span.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.kd-workspace {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 16px;
}

.kd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kd-tabs b {
  padding: 8px 11px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 5px 14px rgba(29, 29, 31, 0.05);
}

.kd-form,
.kd-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kd-form label,
.kd-rate-grid div,
.kd-rule-card,
.bi-push {
  display: grid;
  gap: 5px;
  padding: 12px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 8px;
}

.kd-form label,
.kd-rate-grid span,
.kd-rule-card span,
.bi-push span {
  color: #6e6e73;
  font-size: 12px;
}

.kd-form strong,
.kd-rate-grid strong,
.kd-rule-card strong,
.bi-push strong {
  color: #1d1d1f;
  font-size: 14px;
}

.kd-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
}

.kd-flow span {
  display: grid;
  min-height: 56px;
  place-items: center;
  padding: 8px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.kd-flow i {
  display: none;
}

.flagship .kd-sidebar {
  background: #132f4f;
}

.kd-rule-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
}

.kd-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(29, 29, 31, 0.1);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 8px;
}

.kd-table div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.9fr;
  gap: 1px;
}

.kd-table b,
.kd-table span,
.kd-table em {
  min-height: 38px;
  padding: 9px;
  color: #1d1d1f;
  background: #fff;
  font-size: 12px;
  font-style: normal;
}

.kd-table b {
  color: #6e6e73;
}

.kd-table em {
  color: #0b7f70;
  font-weight: 760;
}

.bi-push {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.bi-push span {
  grid-column: 1;
}

.bi-push button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  background: #0071e3;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 760;
}

.kd-enterprise {
  grid-template-columns: 1fr;
  min-height: 508px;
  background: #eef2f7;
}

.kd-topbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  color: #fff;
  background: #1f5fae;
}

.flagship .kd-topbar {
  background: #1d4f8f;
}

.kd-topbar strong {
  margin-right: 8px;
  font-size: 14px;
  font-weight: 820;
}

.kd-topbar span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 720;
}

.kd-body {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 466px;
}

.kd-main-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 8px;
  color: #26364d;
  background: #f8fafc;
  border-right: 1px solid rgba(29, 29, 31, 0.1);
}

.kd-main-nav b {
  padding: 8px 9px;
  color: #6e6e73;
  font-size: 12px;
}

.kd-main-nav span {
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 720;
}

.kd-main-nav span.is-on {
  color: #1f5fae;
  background: #e8f1ff;
}

.kd-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.kd-page-head div {
  display: grid;
  gap: 3px;
}

.kd-page-head span {
  color: #7b8490;
  font-size: 11px;
}

.kd-page-head strong {
  color: #1d1d1f;
  font-size: 18px;
}

.kd-page-head em {
  padding: 5px 9px;
  color: #0b7f70;
  background: #e7f6f2;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.kd-actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kd-actionbar button {
  min-height: 30px;
  padding: 0 10px;
  color: #1f5fae;
  background: #fff;
  border: 1px solid rgba(31, 95, 174, 0.24);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 760;
}

.kd-bill {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(29, 29, 31, 0.1);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 8px;
}

.kd-bill label {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 10px;
  color: #6e6e73;
  background: #fff;
  font-size: 12px;
}

.kd-bill strong {
  color: #1d1d1f;
  font-size: 13px;
}

.kd-subgrid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(29, 29, 31, 0.1);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 8px;
}

.kd-subgrid div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
}

.flagship .kd-subgrid div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kd-subgrid b,
.kd-subgrid span,
.kd-subgrid em {
  min-height: 36px;
  padding: 9px;
  color: #1d1d1f;
  background: #fff;
  font-size: 12px;
  font-style: normal;
}

.kd-subgrid b {
  color: #6e6e73;
  background: #f9fafb;
}

.kd-subgrid em {
  color: #0b7f70;
  font-weight: 760;
}

.kd-flow-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.kd-flow-line span {
  position: relative;
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(31, 95, 174, 0.22);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.kd-flow-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 6px;
  height: 2px;
  background: rgba(31, 95, 174, 0.44);
}

.course-screen {
  display: grid;
  gap: 14px;
  min-height: 468px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.12), transparent 46%),
    var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.course-hero {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #12335f, #0f766e);
  border-radius: 8px;
}

.course-hero span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.course-hero h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.course-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.course-hero a {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  margin-top: 6px;
  padding: 0 13px;
  color: #1d1d1f;
  background: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.course-list {
  display: grid;
  gap: 8px;
}

.course-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-list b {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--blue);
  background: var(--paper-solid);
}

.course-list span {
  padding: 0 12px;
  color: var(--ink);
  font-weight: 760;
}

.visual-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.85fr) 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visual-row span {
  color: var(--blue);
  font-weight: 820;
}

.visual-row b {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.artifact-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 360px;
  padding: 18px;
}

.artifact-preview {
  min-height: 174px;
  overflow: hidden;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.artifact-card h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.artifact-card p {
  margin-bottom: 0;
}

.prd-preview {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.doc-line {
  display: block;
  width: 70%;
  height: 12px;
  background: var(--subtle);
  border-radius: 5px;
}

.doc-line.wide {
  width: 92%;
}

.doc-line.short {
  width: 48%;
}

.doc-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.doc-table b {
  display: grid;
  min-height: 44px;
  place-items: center;
  background: var(--subtle);
  font-size: 13px;
}

.flow-preview {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 18px;
}

.flow-preview span {
  display: grid;
  min-height: 70px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 780;
}

.flow-preview i {
  height: 2px;
  background: var(--line-strong);
}

.matrix-preview {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1px;
  padding: 16px;
  background: var(--line);
}

.matrix-preview b,
.matrix-preview span {
  display: grid;
  min-height: 44px;
  place-items: center;
  background: var(--paper-solid);
  font-size: 13px;
}

.matrix-preview span::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
}

.fields-preview {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
}

.fields-preview code {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

.uat-preview {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.uat-preview div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.uat-preview span {
  color: var(--green);
  font-size: 13px;
  font-weight: 780;
}

.uat-preview div:nth-child(2) span {
  color: var(--amber);
}

.bi-preview {
  display: grid;
  gap: 14px;
  align-content: end;
  padding: 18px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  height: 106px;
}

.chart-bars span {
  display: block;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 7px 7px 0 0;
}

.chart-bars span:nth-child(1) {
  height: 64%;
}

.chart-bars span:nth-child(2) {
  height: 42%;
}

.chart-bars span:nth-child(3) {
  height: 88%;
}

.chart-bars span:nth-child(4) {
  height: 70%;
}

.chart-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chart-kpis b {
  display: grid;
  min-height: 38px;
  place-items: center;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.timeline time {
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.timeline h3 {
  font-size: 23px;
}

.job-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.system-board {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.system-detail {
  min-height: 300px;
  padding: 34px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.system-detail h3 {
  font-size: 30px;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.system-flow span {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: var(--ink);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 780;
}

.skill-band {
  padding: 28px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 72px;
  margin-bottom: 48px;
  padding: 42px;
  background: var(--ink);
}

.contact-section h2,
.contact-section p,
.contact-section .eyebrow {
  color: #fff;
}

:root[data-theme="dark"] .contact-section {
  background: #f5f5f7;
}

:root[data-theme="dark"] .contact-section h2,
:root[data-theme="dark"] .contact-section p,
:root[data-theme="dark"] .contact-section .eyebrow {
  color: #1d1d1f;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-section .secondary-action {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

:root[data-theme="dark"] .contact-section .secondary-action {
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

@media (max-width: 1100px) {
  .hero-portrait-card {
    right: 24px;
    width: 344px;
    height: 520px;
    opacity: 0.52;
  }

  .hero-portrait-card img {
    left: 50%;
    width: auto;
    height: 100%;
    bottom: 0;
  }

  .system-node {
    min-width: 116px;
    min-height: 56px;
    padding: 9px 10px;
  }

  .system-node strong {
    font-size: 13px;
  }

  .node-main {
    left: 22px;
    top: 224px;
  }

  .node-one {
    right: 2px;
    top: 136px;
    min-width: 108px;
  }

  .node-two {
    right: 26px;
    bottom: 102px;
  }

  .node-three {
    left: 14px;
    bottom: 96px;
  }

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

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

  .project-visual {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 58px 0 50px;
  }

  .hero-portrait-card {
    display: none;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(246, 247, 249, 0.98), rgba(238, 243, 246, 0.92)),
      var(--bg);
  }

  :root[data-theme="dark"] .hero::before {
    background:
      linear-gradient(180deg, rgba(18, 20, 26, 0.98), rgba(8, 9, 12, 0.94)),
      var(--bg);
  }

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

  .focus-panel,
  .project-lab,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .section-shell {
    width: min(100vw - 28px, 1180px);
  }

  .topbar {
    gap: 10px;
    min-height: 62px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .nav-action,
  .theme-toggle {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 34px 0 36px;
  }

  h1 {
    font-size: 40px;
  }

  .role {
    font-size: 24px;
  }

  .intro,
  .focus-panel p,
  .project-display p {
    font-size: 16px;
  }

  .hero-proof,
  .metrics,
  .expert-grid,
  .artifact-grid,
  .case-meta {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-bottom: 48px;
  }

  .expertise-section,
  .project-section,
  .artifacts-section,
  .experience-section,
  .system-section {
    padding: 48px 0;
  }

  .section-heading h2,
  .focus-panel h2,
  .contact-section h2 {
    font-size: 32px;
  }

  .expert-card,
  .focus-panel,
  .project-display,
  .timeline article,
  .system-detail,
  .contact-section {
    padding: 24px;
  }

  .project-display h3 {
    font-size: 27px;
  }

  .project-item {
    min-height: 94px;
  }

  .screenshot-strip,
  .kd-form,
  .kd-rate-grid {
    grid-template-columns: 1fr;
  }

  .kd-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .kd-topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .kd-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .kd-main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(29, 29, 31, 0.1);
  }

  .kd-main-nav b {
    grid-column: 1 / -1;
  }

  .kd-page-head {
    align-items: flex-start;
  }

  .kd-bill {
    grid-template-columns: 1fr;
  }

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

  .kd-sidebar strong {
    grid-column: 1 / -1;
  }

  .kd-flow {
    grid-template-columns: 1fr;
  }

  .kd-flow-line {
    grid-template-columns: 1fr;
  }

  .kd-flow-line span:not(:last-child)::after {
    right: auto;
    bottom: -7px;
    width: 2px;
    height: 6px;
  }

  .kd-table {
    overflow-x: auto;
  }

  .kd-subgrid {
    overflow-x: auto;
  }

  .kd-subgrid div {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    min-width: 520px;
  }

  .flagship .kd-subgrid div {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    min-width: 420px;
  }

  .kd-table div {
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    min-width: 420px;
  }

  .bi-push {
    grid-template-columns: 1fr;
  }

  .bi-push span,
  .bi-push button {
    grid-column: auto;
    grid-row: auto;
  }

  .course-screen,
  .course-hero {
    min-height: auto;
  }

  .visual-row {
    grid-template-columns: 1fr;
  }

  .flow-preview {
    grid-template-columns: 1fr;
  }

  .flow-preview i {
    width: 2px;
    height: 16px;
    justify-self: center;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-self: start;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 37px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
