@import url("https://blog-api.pylab.me/css?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --paper: rgba(255, 255, 255, 0.88);
  --paper-strong: #ffffff;
  --ink: #142033;
  --muted: #667085;
  --muted-2: #8790a0;
  --line: rgba(15, 23, 42, 0.11);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #1f4d8f;
  --accent-2: #1e6b6c;
  --accent-soft: #eef4fb;
  --dark: #142033;
  --max: 1180px;
  --shadow:
    0 1px 2px rgba(15, 23, 42, 0.045), 0 12px 32px rgba(15, 23, 42, 0.055);
  font-family:
    "Inter",
    "Noto Sans SC",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 0%, rgba(31, 77, 143, 0.1), transparent 30rem),
    radial-gradient(
      circle at 96% 22%,
      rgba(30, 107, 108, 0.1),
      transparent 28rem
    ),
    var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 830;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #1f4d8f, #1e6b6c);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 10px 28px rgba(31, 77, 143, 0.22);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
}
.nav a {
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--ink);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink) !important;
  background: rgba(255, 255, 255, 0.62);
}
.hero {
  padding: 92px 0 72px;
}
.hero.compact {
  padding: 68px 0 48px;
}
.kicker,
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 970px;
  font-size: clamp(48px, 7.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.hero.compact h1 {
  font-size: clamp(42px, 6vw, 72px);
}
.lead {
  max-width: 780px;
  margin: 28px 0 0;
  color: #667085;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.btn.primary {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}
.btn.accent {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section.tight {
  padding: 42px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  margin-bottom: 34px;
}
.section-no {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.section-title {
  margin: 0;
  font-size: clamp(27px, 3.5vw, 42px);
  letter-spacing: -0.045em;
}
.section-copy {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.project-list {
  border-top: 1px solid var(--line-strong);
}
.project-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.4fr) minmax(260px, 0.8fr) 120px;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.project-row:hover .project-name {
  color: var(--accent);
}
.project-index {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}
.project-name {
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.04em;
  transition: 0.15s ease;
}
.project-desc {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.tag {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667085;
  background: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.025em;
}
.project-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.project-meta strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.arrow {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  font-size: 19px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}
.metric {
  padding: 28px;
  min-height: 132px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.metric strong {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.055em;
}
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.045);
}
.card.dark {
  color: #e5e7eb;
  background: #172033;
  border-color: #172033;
}
.card h3 {
  margin: 0 0 11px;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}
.card.dark p {
  color: #b7c2d4;
}
.card .mini {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card.dark .mini {
  color: #8eadd0;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.evidence {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}
.evidence-num {
  display: block;
  margin-bottom: 56px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}
.evidence h3 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.035em;
}
.evidence p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border-radius: 14px;
  background: #172033;
  color: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}
.callout h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.035em;
}
.callout p {
  margin: 0;
  max-width: 760px;
  color: #b9c4d5;
  line-height: 1.65;
}
.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 60px;
  align-items: end;
}
.detail-meta {
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}
.meta-line {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.meta-line strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: stretch;
}
.flow-node {
  position: relative;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}
.flow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 18px;
  color: var(--muted-2);
  text-align: center;
  font-weight: 850;
}
.flow-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.flow-node span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.codebox {
  overflow: auto;
  padding: 24px;
  border-radius: 14px;
  color: #dbeafe;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font:
    12.5px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
.split-label {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
}
.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}
.bullets strong {
  color: var(--ink);
}
.browser {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.browser-top {
  display: flex;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.browser-body {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 38px;
  background: linear-gradient(145deg, #f8fafc, #eef4fb);
}
.mock-radar {
  width: min(100%, 680px);
}
.mock-radar .r-title {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -0.055em;
}
.mock-radar .r-copy {
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.7;
}
.mock-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.signal {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}
.signal b {
  display: block;
  font-size: 22px;
}
.signal span {
  color: var(--muted);
  font-size: 11px;
}
.arch-layers {
  display: grid;
  gap: 12px;
}
.layer {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.75);
}
.layer strong {
  font-size: 13px;
}
.layer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.quote {
  margin: 0;
  max-width: 900px;
  font-size: clamp(26px, 4vw, 45px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.note {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}
.footer {
  padding: 54px 0 72px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}
.footer strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.ask-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  box-shadow: 0 15px 42px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  font-weight: 760;
}
.ask-fab .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5f91c6;
  box-shadow: 0 0 0 6px rgba(95, 145, 198, 0.14);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}
.ask-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 41;
  width: min(440px, 100%);
  padding: 28px;
  background: #fff;
  transform: translateX(100%);
  transition: 0.24s ease;
  box-shadow: -25px 0 70px rgba(15, 23, 42, 0.15);
}
body.ask-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.ask-open .ask-drawer {
  transform: translateX(0);
}
.ask-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.ask-head h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.ask-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.ask-intro {
  margin: 16px 0 22px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.prompt {
  display: block;
  width: 100%;
  margin: 9px 0;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}
.prompt:hover {
  border-color: #8eadd0;
  background: #eef4fb;
}
.ask-compose {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.fake-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--muted-2);
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #173b71;
  background: #eef4fb;
  font-size: 11px;
  font-weight: 820;
}
.badge.live {
  color: #166534;
  background: #ecfdf5;
}
.badge.oss {
  color: #334155;
  background: #f1f5f9;
}
.mobile-toggle {
  display: none;
}
@media (max-width: 900px) {
  .project-row {
    grid-template-columns: 54px 1fr 46px;
  }
  .project-meta {
    grid-column: 2/3;
  }
  .detail-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .detail-meta {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-node:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -17px;
    transform: translateX(-50%);
  }
  .evidence-grid,
  .three-col {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }
  .topbar {
    min-height: 70px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    z-index: 20;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  body.nav-open .nav {
    display: flex;
  }
  .mobile-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
  }
  .hero {
    padding: 64px 0 50px;
  }
  h1 {
    font-size: clamp(44px, 15vw, 66px);
  }
  .section {
    padding: 48px 0;
  }
  .section-head,
  .split-label {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-row {
    grid-template-columns: 42px 1fr 42px;
    gap: 12px;
  }
  .project-name {
    font-size: 28px;
  }
  .project-meta {
    grid-column: 2/4;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric:last-child {
    border-bottom: 0;
  }
  .evidence-num {
    margin-bottom: 28px;
  }
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mock-signals {
    grid-template-columns: 1fr;
  }
  .layer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ask-fab {
    right: 14px;
    bottom: 14px;
  }
}

/* ===== Portfolio components ===== */
.profile-strip {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}
.profile-copy {
  max-width: 900px;
  color: #526078;
  font-size: 16px;
  line-height: 1.82;
}
.profile-copy strong {
  color: var(--ink);
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.core-card {
  min-height: 190px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}
.core-card h3 {
  margin: 6px 0 12px;
  font-size: 22px;
  letter-spacing: -0.035em;
}
.core-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.skill {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(31, 77, 143, 0.2);
  border-radius: 8px;
  background: rgba(238, 244, 251, 0.82);
  color: #173b71;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.skill.neutral {
  color: #334155;
  border-color: var(--line);
  background: rgba(248, 250, 252, 0.9);
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status.oss {
  background: #f1f5f9;
  color: #334155;
}
.status.case {
  background: #fff7ed;
  color: #9a3412;
}
.status.exp {
  background: #f5f3ff;
  color: #6d28d9;
}
.status.locked {
  background: #fef2f2;
  color: #991b1b;
}
.status.active {
  background: #ecfdf5;
  color: #166534;
}
.status.stable {
  background: #eff6ff;
  color: #1d4ed8;
}
.status.paused {
  background: #fff7ed;
  color: #9a3412;
}
.project-row.featured {
  grid-template-columns: 62px minmax(0, 1fr) 200px 36px;
}
.project-row .statusline {
  margin-bottom: 10px;
}
.company {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.case-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}
.case-card h3 {
  margin: 5px 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}
.case-question {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
  color: #475569;
}
.case-question strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.archive-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}
.archive-card h3 {
  margin: 8px 0 7px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.archive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.archive-card .skill-cloud {
  margin-top: 13px;
}
.archive-card .skill {
  padding: 5px 8px;
  font-size: 10px;
}
.skill-domain {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.skill-domain:first-child {
  border-top: 0;
}
.skill-domain h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.skill-domain .skill-cloud {
  margin-top: 0;
}
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}
.hero-keywords span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-keywords span.hot {
  background: #1f4d8f;
  color: white;
}
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.64);
}
.stat-band div {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}
.stat-band div:last-child {
  border-right: 0;
}
.stat-band strong {
  display: block;
  font-size: 12px;
}
.stat-band span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.external-link {
  color: var(--accent);
  font-weight: 760;
}
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.page-tabs a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
  color: #475569;
  font-size: 12px;
  font-weight: 720;
}
.page-tabs a:hover {
  border-color: #8eadd0;
  color: var(--ink);
}
.lock-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #991b1b;
  font-size: 11px;
  font-weight: 760;
}
@media (max-width: 900px) {
  .core-grid,
  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .project-row.featured {
    grid-template-columns: 54px 1fr 46px;
  }
  .project-row.featured .project-meta {
    grid-column: 2/3;
  }
  .stat-band {
    grid-template-columns: 1fr 1fr;
  }
  .stat-band div:nth-child(2) {
    border-right: 0;
  }
  .stat-band div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 700px) {
  .profile-strip,
  .skill-domain {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .core-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .stat-band {
    grid-template-columns: 1fr;
  }
  .stat-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-band div:last-child {
    border-bottom: 0;
  }
}

/* ===== V003: portfolio-first hierarchy ===== */
.hero-portfolio {
  padding-top: 76px;
  padding-bottom: 58px;
}
.hero-portfolio h1 {
  max-width: none;
  font-size: clamp(58px, 8.6vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.072em;
}
.role-line {
  margin-top: 18px;
  color: #1e293b;
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.045em;
}
.hero-portfolio .lead {
  margin-top: 22px;
  max-width: 900px;
  font-size: 17px;
  line-height: 1.78;
}
.hero-portfolio .actions {
  margin-top: 26px;
}
.hero-portfolio .hero-keywords {
  margin-top: 22px;
}
.profile-section {
  padding: 34px 0 40px;
}
.profile-strip {
  padding: 0;
  border-top: 0;
}
.profile-copy {
  font-size: 15px;
  line-height: 1.8;
}
.section {
  padding: 56px 0;
}
.section-head {
  margin-bottom: 27px;
}
.section-title {
  font-size: clamp(28px, 3.35vw, 40px);
}
.section-copy {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.7;
}
.attack-list {
  border-top: 2px solid #111827;
}
.attack-list .project-row.featured {
  position: relative;
  padding: 27px 0;
  transition:
    background 0.18s ease,
    padding 0.18s ease;
}
.attack-list .project-row.featured::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 4px;
  background: transparent;
  transition: 0.18s ease;
}
.attack-list .project-row.featured:hover {
  background: rgba(255, 255, 255, 0.48);
}
.attack-list .project-row.featured:hover::before {
  background: var(--accent);
}
.attack-list .project-name {
  margin-bottom: 7px;
  font-size: clamp(29px, 3.4vw, 42px);
  font-weight: 850;
}
.attack-list .project-desc {
  color: #4b5b72;
  font-size: 14px;
  line-height: 1.64;
}
.attack-list .skill-cloud {
  margin-top: 13px;
  gap: 6px;
}
.attack-list .skill {
  padding: 6px 9px;
}
.attack-list .project-meta {
  align-self: center;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.attack-list .project-meta strong {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
}
.attack-list .project-meta b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.attack-list .project-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.case-grid-home .case-card {
  min-height: 230px;
}
.case-card {
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.case-card:hover,
.archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 77, 143, 0.3);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}
.case-card h3 {
  font-size: 23px;
}
.archive-grid {
  grid-template-columns: repeat(4, 1fr);
}
.archive-card {
  min-height: 176px;
}
.archive-card h3 {
  font-size: 19px;
}
.skill-domain {
  padding: 18px 0;
}
.callout {
  padding: 26px 28px;
}
.ask-intro {
  margin-bottom: 18px;
}
@media (max-width: 1000px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .attack-list .project-row.featured {
    grid-template-columns: 54px 1fr 46px;
  }
  .attack-list .project-meta {
    grid-column: 2/3;
    border-left: 0;
    padding-left: 0;
    padding-top: 10px;
  }
  .hero-portfolio h1 {
    font-size: clamp(54px, 12vw, 88px);
  }
}
@media (max-width: 700px) {
  .hero-portfolio {
    padding-top: 54px;
    padding-bottom: 42px;
  }
  .role-line {
    font-size: 26px;
  }
  .hero-portfolio .lead {
    font-size: 15px;
  }
  .section {
    padding: 44px 0;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .attack-list .project-row.featured::before {
    left: -7px;
  }
  .case-grid-home .case-card {
    min-height: 0;
  }
}

/* ===== V004: final copy / typography / interaction polish ===== */
:root {
  --font-sans:
    Inter, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
html {
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
.role-line {
  text-wrap: balance;
}
p,
.lead,
.project-desc,
.profile-copy,
.case-question {
  text-wrap: pretty;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.topbar {
  position: relative;
  z-index: 25;
}
.btn,
.nav-cta,
.page-tabs a,
.arrow,
.prompt,
.mobile-toggle,
.ask-close {
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 77, 143, 0.24);
  outline-offset: 3px;
  border-radius: 8px;
}
.project-row,
.project-row > *,
.detail-head > *,
.section-head > * {
  min-width: 0;
}
.skill {
  line-height: 1.22;
}
.status,
.badge {
  line-height: 1.2;
}
.case-card h3 {
  letter-spacing: -0.025em;
}
.codebox {
  font-family: var(--font-mono);
}
.ask-drawer {
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.ask-open {
  overflow: hidden;
}
.mobile-toggle {
  color: var(--ink);
  cursor: pointer;
}
.archive-card,
.case-card {
  color: inherit;
}
.project-row:focus-visible,
.archive-card:focus-visible,
.case-card:focus-visible {
  outline-offset: 6px;
}
@media (max-width: 700px) {
  .nav {
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .hero-keywords,
  .skill-cloud {
    gap: 6px;
  }
  .hero-keywords span,
  .skill {
    line-height: 1.2;
  }
  .ask-drawer {
    padding: 22px 18px;
  }
  .ask-fab {
    max-width: calc(100vw - 28px);
  }
}

/* ===== V005: systems spotlight / denser project archive ===== */
.project-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(238, 244, 251, 0.82)
  );
  box-shadow: var(--shadow);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.project-spotlight:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 77, 143, 0.4);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09);
}
.project-spotlight h3 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.055em;
}
.project-spotlight p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.spotlight-arrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .project-spotlight {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .spotlight-arrow {
    margin-top: 4px;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-node:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -17px;
    transform: translateX(-50%);
  }
}

/* ===== V009: aligned card footers / portfolio grid rhythm ===== */
/* Grid cards keep identity and description at the top, while reusable metadata
   (skills, actions, case questions) settles into a stable footer zone. */
.archive-card,
.case-card,
.card,
.core-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Project archive / homepage ROI cards: skill labels form a consistent baseline. */
.archive-card > .skill-cloud {
  margin-top: auto;
  padding-top: 18px;
}

/* Writing cards use the same visual grammar: topic first, evidence tags last. */
.case-card > .skill-cloud {
  margin-top: auto;
  padding-top: 18px;
}

/* Enterprise case pages add a question below the skills. Reserve a stable
   question zone so two-column rows read as a deliberate matrix. */
.case-grid-enterprise .case-question {
  min-height: 82px;
}

/* Protected writing cases have no skill footer; keep the interview-access note
   anchored to the lower edge of its card. */
.case-grid-writing-enterprise .lock-note {
  margin-top: auto;
  padding-top: 16px;
}

/* Detail-page comparison cards: when a card has a CTA, keep CTAs on one baseline. */
.card > .actions {
  margin-top: auto;
  padding-top: 22px;
}

/* Keep card footers visually separated without adding divider noise. */
.archive-card > .skill-cloud,
.case-card > .skill-cloud,
.card > .actions {
  align-content: flex-end;
}

@media (max-width: 700px) {
  .case-grid-enterprise .case-question {
    min-height: 0;
  }
  .archive-card > .skill-cloud,
  .case-card > .skill-cloud {
    padding-top: 15px;
  }
}

/* ===== V010: bilingual portfolio + shared Pylab design language ===== */
.language-switch {
  min-width: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted) !important;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 12px;
  font-weight: 760;
}
.language-switch:hover {
  color: var(--ink) !important;
  border-color: var(--line-strong);
  background: var(--paper-strong);
}
.lead {
  max-width: 820px;
  color: var(--muted);
  font-weight: 450;
}
.archive-card,
.case-card,
.core-card,
.card,
.project-spotlight {
  backdrop-filter: blur(12px);
}
@media (max-width: 700px) {
  .language-switch {
    width: fit-content;
  }
}
