:root {
  color-scheme: light;

  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --paper: #ffffff;
  --black: #000000;
  --white: #ffffff;

  --blue: #0071e3;
  --blue-strong: #005fcc;
  --green: #008c5a;
  --red: #ff3b30;
  --orange: #f38a00;
  --purple: #8b5cf6;
  --yellow: #ffb340;

  --ink-04: rgba(29, 29, 31, 0.04);
  --ink-06: rgba(29, 29, 31, 0.06);
  --ink-08: rgba(29, 29, 31, 0.08);
  --ink-10: rgba(29, 29, 31, 0.10);
  --ink-12: rgba(29, 29, 31, 0.12);
  --ink-16: rgba(29, 29, 31, 0.16);
  --ink-24: rgba(29, 29, 31, 0.24);
  --ink-52: rgba(29, 29, 31, 0.52);
  --ink-68: rgba(29, 29, 31, 0.68);
  --ink-72: rgba(29, 29, 31, 0.72);
  --ink-82: rgba(29, 29, 31, 0.82);

  --white-28: rgba(255, 255, 255, 0.28);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-72: rgba(255, 255, 255, 0.72);
  --white-82: rgba(255, 255, 255, 0.82);
  --white-92: rgba(255, 255, 255, 0.92);

  --line: var(--ink-12);
  --glass: var(--white-55);
  --glass-strong: var(--white-82);

  --shadow-sm: 0 1px 2px var(--ink-04);
  --shadow-md: 0 18px 54px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.12);
  --shadow: var(--shadow-md);

  --radius: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --max: 980px;
  --wide: 1440px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration: 260ms;
  --duration-slow: 320ms;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-old(root) {
  animation-name: page-fade-out;
}

::view-transition-new(root) {
  animation-name: page-fade-in;
}

@keyframes page-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Work experience accordion */
.timeline-section > .work-browser {
  width: min(calc(100% - 40px), var(--wide));
  margin-left: auto;
  margin-right: auto;
}

.work-accordion {
  width: min(100%, var(--max));
  height: auto;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.work-accordion .timeline-item {
  display: block;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(245, 245, 247, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.work-accordion .timeline-item:last-child {
  border-bottom: 1px solid rgba(245, 245, 247, 0.24);
}

.work-accordion .timeline-trigger {
  display: grid;
  width: 100%;
  min-height: 118px;
  grid-template-columns: minmax(0, 1fr) 42px;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 12px;
  align-items: center;
  border: 0;
  padding: 30px 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.work-accordion .timeline-trigger::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: 18px;
  height: 18px;
  border-right: 5px solid rgba(245, 245, 247, 0.62);
  border-bottom: 5px solid rgba(245, 245, 247, 0.62);
  transform: rotate(45deg);
  transition: transform 260ms linear, border-color 260ms linear;
}

.work-accordion .timeline-item.is-open .timeline-trigger::after,
.work-accordion .timeline-item[aria-expanded="true"] .timeline-trigger::after {
  transform: rotate(225deg);
  border-color: rgba(245, 245, 247, 0.86);
}

.work-accordion .timeline-title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: #f5f5f7;
  font-size: clamp(1.35rem, 2.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.work-accordion .time {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  width: fit-content;
  margin: 0;
}

.work-accordion .timeline-content {
  max-width: 760px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 320ms linear, opacity 320ms linear, transform 320ms linear, padding-bottom 320ms linear;
}

.work-accordion .timeline-content p {
  margin: 0 0 10px;
  color: rgba(245, 245, 247, 0.86);
  font-size: 1.02rem;
  line-height: 1.82;
}

.work-accordion .timeline-item.is-open .timeline-content,
.work-accordion .timeline-item[aria-expanded="true"] .timeline-content {
  max-height: 320px;
  padding-bottom: 34px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .work-accordion .timeline-trigger {
    min-height: 104px;
    padding: 26px 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--soft);
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

button,
a,
[role="link"],
[tabindex] {
  -webkit-tap-highlight-color: rgba(0, 113, 227, 0.16);
}

a:focus-visible,
button:focus-visible,
[role="link"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: #005fcc;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

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

[data-glass] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    linear-gradient(315deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.12));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -24px 44px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: url("#liquid-glass-distortion") blur(22px) saturate(1.38);
  -webkit-backdrop-filter: url("#liquid-glass-distortion") blur(22px) saturate(1.38);
  transition:
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-glass]::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 44%, rgba(255, 255, 255, 0.22) 76%, rgba(0, 113, 227, 0.1)),
    linear-gradient(125deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.55));
  filter: url("#liquid-glass-distortion");
  opacity: 0.78;
  transform: translate3d(0, 0, 0);
  transition: opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-glass]::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(180deg, transparent 52%, rgba(29, 29, 31, 0.09) 82%, rgba(255, 255, 255, 0.34)),
    linear-gradient(290deg, rgba(29, 29, 31, 0.08), transparent 42%);
  opacity: 0.82;
}



.liquid-glass-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

[data-glass] > * {
  position: relative;
  z-index: 2;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08); /* 极细底边线 */
  border-radius: 0;
  /* 使用高精度苹果磨砂玻璃，提供完美的高透通透感，彻底移除了液态畸变滤镜 */
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.02) !important;
  overflow: visible;
}

/* 强力防御性清除：防止 HTML 中带有 data-glass 属性时，在 topbar 渲染多余的液态滤镜及高亮白边 */
.topbar[data-glass]::before,
.topbar[data-glass]::after {
  content: none !important;
  display: none !important;
}

.brand,
.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, #1d1d1f, #0071e3);
  font-size: 0.64rem;
}

.nav-links {
  gap: 30px;
  margin-left: auto;
  justify-content: flex-end;
}

.nav-links a,
.contact-toggle {
  display: flex;
  height: 44px;
  align-items: center;
  border-radius: 0;
  padding: 0;
  color: rgba(29, 29, 31, 0.78);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  line-height: 1;
  font: inherit;
  transition: background 220ms linear, color 220ms linear;
}

.contact-toggle {
  cursor: pointer;
}

.nav-links a:hover,
.contact-toggle:hover,
.contact-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: transparent;
}

.contact-popover {
  position: absolute;
  z-index: 30;
  top: 52px;
  right: 18px;
  width: min(292px, calc(100vw - 36px));
  border-radius: 18px;
  padding: 8px;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mail-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 11px 12px;
  text-decoration: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 34px rgba(29, 29, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition:
    transform 180ms linear,
    box-shadow 180ms linear,
    background-color 180ms linear;
}

.mail-card:hover,
.mail-card:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow:
    0 20px 40px rgba(29, 29, 31, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.mail-logo {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.mail-logo svg {
  width: 30px;
  height: 30px;
}

.linkedin-logo svg {
  width: 28px;
  height: 28px;
}

.mail-card strong,
.mail-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-card strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.mail-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  position: relative;
  z-index: 0;
  min-height: 840px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(16px, 1fr) minmax(0, var(--max)) minmax(16px, 1fr);
  align-items: start;
  padding: 110px 0 0;
  overflow: hidden;
  background: #f5f5f7;
}

.hero > *:not(.hero-media, .hero-depth) {
  grid-column: 2;
  position: relative;
  z-index: 2;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.08) brightness(0.98);
  transform: scale(1.01);
}

.hero-media::after {
  content: none;
}

.hero-depth {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  /* 修复方案 2：将原有的背景和模糊滤镜去除，防止磨砂玻璃装饰盖住页面，变成全透明 */
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: drift 12s linear infinite alternate;
  /* 如果完全不想要这个漂浮的白色遮罩框，可以直接用 display: none; 隐藏： */
  display: none;
}

.hero-depth-a {
  right: 11%;
  top: 42%;
  width: min(38vw, 520px);
  height: min(18vw, 230px);
}

.hero-depth-b {
  left: 16%;
  bottom: 8%;
  width: min(23vw, 300px);
  height: min(23vw, 300px);
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  color: #1d1d1f;
  font-size: clamp(3.9rem, 7vw, 5.8rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 span {
  color: inherit;
  font-weight: inherit;
}

.hero-copy {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: #1d1d1f;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
}

.button,
.contact-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 500;
  transition: transform 220ms linear, box-shadow 220ms linear, background 220ms linear;
}

.button:hover,
.contact-actions a:hover {
  transform: translateY(-2px);
}

.primary {
  color: white;
  background: var(--blue);
  box-shadow: none;
}

.secondary,
.contact-actions a {
  color: var(--blue);
  border: 1px solid var(--blue);
  background: transparent;
}

.hero-panel {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 48px;
  width: min(620px, calc(100% - 32px));
  border-radius: 8px;
  padding: 22px 30px;
  text-align: center;
  transform: translateX(-50%);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.panel-label,
.tag,
.time,
.education-list span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin: 9px 0;
  font-size: 1.18rem;
}

.hero-panel p,
.skill-card p,
.project-card p,
.timeline-item p,
.education-list p,
.narrative p {
  color: var(--muted);
  line-height: 1.75;
}

.number-highlight {
  display: inline-block;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.02em 0.36em 0.08em;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.12);
  font-weight: 800;
  line-height: 1.22;
}

.skill-card > *,
.project-card > *,
.timeline-item > *,
.education-list > *,
.contact-panel > * {
  position: relative;
  z-index: 1;
}

.split {
  width: min(calc(100% - 24px), var(--wide));
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  gap: 22px;
  padding: 92px max(28px, calc((100vw - var(--max)) / 2));
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 245, 247, 0.92)),
    url("/assets/liquid-glass-hero.png") center / cover;
}

.section-heading {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.narrative {
  max-width: 760px;
  font-size: 1.08rem;
}

.skill-grid,
.project-grid {
  display: grid;
  gap: 12px;
  margin-top: 42px;
}

.skill-grid {
  width: min(calc(100vw - 24px), var(--wide));
  margin-left: 50%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transform: translateX(-50%);
}

.skill-card,
.project-card,
.timeline-item,
.education-list,
.contact-panel {
  border-radius: 8px;
  padding: 34px;
}

.skill-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #ffffff;
}

.skill-card span {
  display: block;
  margin-bottom: 18px;
  color: rgba(16, 20, 24, 0.3);
  font-size: 0.9rem;
  font-weight: 800;
}

.skill-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 142px;
  margin-bottom: auto;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.skill-visual::before {
  content: none;
}

.mini-window {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 58%;
  height: 76px;
  border-radius: 8px;
  padding: 14px 12px;
  background: rgba(29, 29, 31, 0.9);
  box-shadow: 0 18px 36px rgba(29, 29, 31, 0.16);
}

.mini-window i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #d2d2d7;
}

.mini-window strong {
  display: block;
  margin: 12px 0 8px;
  color: #f5f5f7;
  font-size: 0.58rem;
}

.mini-window b {
  display: block;
  width: 76%;
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.72);
}

.mini-window b:nth-of-type(2) {
  width: 56%;
}

.mini-window b:nth-of-type(3) {
  width: 68%;
}

.data-stack {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 72px;
  height: 82px;
}

.data-stack i {
  position: absolute;
  left: 0;
  width: 72px;
  height: 24px;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(29, 29, 31, 0.08);
}

.data-stack i:nth-child(1) {
  top: 0;
}

.data-stack i:nth-child(2) {
  top: 25px;
}

.data-stack i:nth-child(3) {
  top: 50px;
}

.visual-automation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 10px;
  padding: 34px 22px;
}

.visual-automation i,
.visual-automation b {
  display: block;
  border-radius: 999px;
}

.visual-automation i {
  height: 52px;
  background: linear-gradient(180deg, #ffffff, rgba(232, 232, 237, 0.72));
  border: 1px solid rgba(29, 29, 31, 0.12);
  box-shadow: 0 16px 32px rgba(29, 29, 31, 0.08);
}

.visual-automation b {
  position: absolute;
  top: 69px;
  width: 14%;
  height: 3px;
  background: rgba(29, 29, 31, 0.24);
}

.visual-automation b:nth-of-type(1) {
  left: 27%;
}

.visual-automation b:nth-of-type(2) {
  left: 48%;
}

.visual-automation b:nth-of-type(3) {
  left: 69%;
}

.visual-infra {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.visual-infra > i {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  height: 30px;
  border-radius: 8px;
  background: rgba(29, 29, 31, 0.88);
  box-shadow: 0 14px 28px rgba(29, 29, 31, 0.14);
}

.visual-infra > i::before {
  content: "";
  width: 48%;
  height: 5px;
  margin-left: 14px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.55);
}

.visual-infra b {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: #30d158;
  opacity: 1;
  transition: background-color 180ms linear, opacity 180ms linear, box-shadow 180ms linear;
}

.visual-infra.is-playing b {
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.2);
}

.visual-infra.is-complete b {
  background: #30d158;
  opacity: 1;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.28);
}

.visual-security {
  display: grid;
  place-items: center;
}

.shield {
  width: 78px;
  height: 88px;
  clip-path: polygon(50% 0, 88% 16%, 82% 70%, 50% 100%, 18% 70%, 12% 16%);
  background: linear-gradient(160deg, #6e6e73, #1d1d1f);
  box-shadow: 0 18px 34px rgba(29, 29, 31, 0.16);
}

.visual-security i {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 50%;
}

.visual-security i:nth-of-type(1) {
  left: 18%;
  top: 24%;
}

.visual-security i:nth-of-type(2) {
  right: 18%;
  top: 24%;
}

.visual-security i:nth-of-type(3) {
  left: 24%;
  bottom: 18%;
}

.visual-security i:nth-of-type(4) {
  right: 24%;
  bottom: 18%;
}

.skill-card h3,
.project-card h3,
.timeline-item h3,
.education-list h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.timeline-section {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  color: #f5f5f7;
  background: #000000;
  transition: min-height 360ms linear, padding-bottom 360ms linear;
}

.timeline-section:has(.work-browser.is-collapsed) {
  min-height: 22vh;
  padding-bottom: 20px;
}

.timeline-section > * {
  width: min(calc(100% - 40px), var(--max));
  margin-left: auto;
  margin-right: auto;
}

.timeline-section > .work-browser {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.work-browser {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  margin-top: 48px;
  padding-left: clamp(58px, 4vw, 72px);
  padding-right: clamp(28px, 5vw, 96px);
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: min-height 360ms linear;
}

.work-browser::after {
  content: none !important;
}

.work-toggle {
  position: absolute;
  top: 0;
  left: clamp(18px, 2vw, 32px);
  z-index: 3;
  width: 42px;
  height: 88px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 260ms linear, opacity 260ms linear;
}

.work-toggle:hover {
  background: transparent;
}

.work-toggle span {
  position: absolute;
  top: 44px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid #f5f5f7;
  border-right: 3px solid #f5f5f7;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
  transform: translate(-64%, -50%) rotate(45deg);
  transition: transform 260ms linear, filter 260ms linear;
}

.work-toggle:hover span {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.46));
}

.work-browser:not(.is-collapsed) .work-toggle span {
  transform: translate(-36%, -50%) rotate(225deg);
}

.work-menu {
  align-self: start;
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.work-menu-button {
  min-height: 86px;
  border: 0;
  border-bottom: 1px solid rgba(245, 245, 247, 0.22);
  border-radius: 0;
  padding: 20px 4px;
  color: rgba(245, 245, 247, 0.72);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: color 220ms linear, background 220ms linear, transform 220ms linear;
}
.work-menu-button:first-child {
  border-top: 1px solid rgba(245, 245, 247, 0.22);
}

.work-menu-button:hover,
.work-menu-button.is-active {
  color: #ffffff;
  background: transparent;
  transform: translateX(6px);
}

.work-panels {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.work-menu,
.work-panels {
  transition: opacity 360ms linear, transform 360ms linear, visibility 360ms linear, max-height 360ms linear;
}

.work-browser.is-collapsed {
  min-height: 88px;
  grid-template-columns: 1fr;
}

.work-browser.is-collapsed .work-menu,
.work-browser.is-collapsed .work-panels {
  height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  visibility: hidden;
}

.work-panel {
  display: grid;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 320ms linear, transform 320ms linear;
}

.work-panel:not(.is-active) {
  position: absolute;
  inset: 0;
}

.work-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  text-align: left;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid rgba(245, 245, 247, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.timeline-item:last-child {
  border-bottom: 1px solid rgba(245, 245, 247, 0.22);
}

.timeline-section .section-heading h2,
.timeline-item h3 {
  color: #f5f5f7;
}

.timeline-item p {
  margin-bottom: 10px;
  color: rgba(245, 245, 247, 0.86);
  font-size: 1.02rem;
  line-height: 1.82;
}

.timeline-item .number-highlight {
  padding: 0;
  border-radius: 0;
  color: #ff453a;
  background: transparent;
  box-shadow: none;
  font-size: 1.14em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 69, 58, 0.22);
}

.timeline-item h3 {
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.28;
}

.time {
  align-self: start;
  width: max-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 113, 227, 0.16);
}

.project-grid {
  width: min(calc(100vw - 24px), var(--wide));
  margin-left: 50%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform: translateX(-50%);
}

.project-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 54px clamp(28px, 4vw, 72px);
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 260ms linear,
    box-shadow 260ms linear,
    opacity 260ms linear;
}

.project-card.feature {
  grid-column: auto;
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-selected {
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.16), 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-18px) scale(1.012);
}

.project-card:focus-visible {
  outline: none;
}

.tag {
  margin-bottom: 22px;
}

.project-card h3 {
  max-width: 620px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
}

.project-card p:not(.tag) {
  max-width: 640px;
  font-size: 1.08rem;
}

.project-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 42px rgba(0, 0, 0, 0.08);
}

.project-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-icon {
  color: #0071e3;
  background: linear-gradient(180deg, #ffffff, #eaf4ff);
}

.privacy-icon {
  position: relative;
  color: #af1e2d;
  background: linear-gradient(180deg, #ffffff, #fff0f2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(175, 30, 45, 0.1);
  transition:
    color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.privacy-icon .privacy-padlock {
  overflow: visible;
  transform-origin: 50% 54%;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.privacy-icon .lock-shackle {
  transform-box: fill-box;
  transform-origin: 10% 100%;
  transform: translate(0, 0) rotate(0deg);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.privacy-icon .lock-body,
.privacy-icon .lock-shackle,
.privacy-icon .lock-mark {
  transition:
    stroke 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.privacy-icon .lock-closed-mark {
  opacity: 1;
}

.privacy-icon:hover,
.project-card[data-project="reddit"]:focus-visible .privacy-icon {
  color: #168a45;
  background: linear-gradient(180deg, #ffffff, #edf8f2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 48px rgba(22, 138, 69, 0.13);
}

.privacy-icon:hover .privacy-padlock,
.project-card[data-project="reddit"]:focus-visible .privacy-padlock {
  transform: translateY(1px) scale(0.98);
}

.privacy-icon:hover .lock-shackle,
.project-card[data-project="reddit"]:focus-visible .lock-shackle {
  transform: translate(-6px, -3px) rotate(-34deg);
}

.privacy-icon:hover .lock-closed-mark,
.project-card[data-project="reddit"]:focus-visible .lock-closed-mark {
  opacity: 0;
}

.data-icon {
  color: #008c5a;
  background: linear-gradient(180deg, #ffffff, #edf8f2);
}

.home-icon {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84) 42%, #f8f8f8 100%);
  border-radius: 24px;
}

.home-icon::after {
  content: "";
  position: absolute;
  inset: auto 12px 8px;
  height: 18px;
  border-radius: 50%;
  background: rgba(176, 96, 0, 0.24);
  filter: blur(10px);
}

.home-glyph {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 48px;
  filter: drop-shadow(0 10px 9px rgba(190, 93, 0, 0.34));
}

.home-shell,
.home-core,
.home-door {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.home-shell {
  bottom: 2px;
  width: 48px;
  height: 36px;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(180deg, #ffb833, #f38a00);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(168, 86, 0, 0.18);
}

.home-shell::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -19px;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffc955, #ff9700);
  transform: rotate(45deg);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.38);
}

.home-shell::after {
  content: "";
  position: absolute;
  right: 6px;
  top: -17px;
  width: 8px;
  height: 22px;
  border-radius: 3px 3px 0 0;
  background: #f38a00;
}

.home-core {
  bottom: 11px;
  width: 28px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffeaa6, #ffc13e);
  box-shadow:
    inset 0 0 0 2px rgba(255, 166, 0, 0.45),
    inset 0 8px 12px rgba(255, 255, 255, 0.34);
}

.home-core::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -9px;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fff3c5, #ffc43d);
  transform: rotate(45deg);
}

.home-door {
  bottom: 11px;
  width: 10px;
  height: 13px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #fff4c9, #ffcc52);
}

.github-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--blue);
  border: 1px solid rgba(0, 113, 227, 0.34);
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: url("#liquid-glass-distortion") blur(14px) saturate(1.35);
  -webkit-backdrop-filter: url("#liquid-glass-distortion") blur(14px) saturate(1.35);
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 118px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(0, 113, 227, 0.08);
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.github-link::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.64), rgba(0, 113, 227, 0.13) 64%, rgba(255, 255, 255, 0.5));
  filter: url("#liquid-glass-distortion");
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.github-link::after {
  content: "↗";
  margin-left: 6px;
}

.project-card:hover .github-link,
.project-card:focus-visible .github-link,
.github-link:hover {
  border-color: rgba(0, 113, 227, 0.7);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 44px rgba(0, 113, 227, 0.18);
  transform: translateY(-2px);
}

.project-card:hover .github-link::before,
.project-card:focus-visible .github-link::before,
.github-link:hover::before {
  opacity: 0.76;
}

.education {
  width: min(calc(100% - 24px), var(--wide));
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 12px;
  align-items: stretch;
}

.education-list {
  display: grid;
  gap: 26px;
  text-align: left;
  background: #ffffff;
}

.education-list[data-glass] {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.education-list[data-glass]::before,
.education-list[data-glass]::after {
  content: none;
  display: none;
}

.education-list article {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.education-list article > div:last-child {
  display: grid;
  justify-items: center;
  text-align: center;
}

.education-list article p {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.education-list article + article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

 .edu-logo,
.reading-logo,
.lida-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.edu-logo img,
.reading-logo img,
.lida-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.reading-logo {
  width: 176px;
  height: 96px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.reading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.lida-logo img {
  width: 150px;
  height: auto;
}


.contact {
  width: 100%;
  max-width: none;
  display: grid;
  justify-items: center;
  row-gap: 22px;
  padding: 12px 12px 22px;
  text-align: center;
}

.contact-panel {
  overflow: hidden;
  max-width: var(--wide);
  min-height: 520px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 82px);
  text-align: center;
  color: #f5f5f7;
  background: #000000;
  border: 0;
  box-shadow: none;
}

.contact-panel::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.12);
  transform: rotate(12deg);
}

.resume-download-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-self: center;
  width: max-content;
  margin: 0 auto;
  color: rgba(29, 29, 31, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.resume-download-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #3a3a3c;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.resume-download-icon svg {
  width: 32px;
  height: 32px;
}

.resume-download-icon .resume-cloud,
.resume-download-icon .resume-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-download-card:hover .resume-download-icon,
.resume-download-card:focus-visible .resume-download-icon {
  color: var(--blue);
  transform: translateY(-3px);
}

.resume-download-card:hover,
.resume-download-card:focus-visible {
  color: var(--blue);
  transform: translateY(-1px);
}

.resume-download-card:hover .resume-arrow,
.resume-download-card:focus-visible .resume-arrow {
  transform: translateY(2px);
}

.resume-download-icon .resume-arrow {
  transition: transform 180ms ease;
}

.site-footer {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 16px;
  min-height: 56px;
  padding: 10px 28px;
  color: #000000;
  background: #ffffff;
  border-top: 0;
}

.footer-powered {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.footer-credit {
  grid-column: 3;
  justify-self: end;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  /* 强制图标大小一致，防止缩放带来的路径形变 */
  flex-shrink: 0; 
}

/* 针对图标进行微调，确保路径线条清晰 */
.footer-brand svg {
  display: block;
  width: 20px;
  height: 20px;
  color: currentColor;
  fill: currentColor;
  stroke: none;
}

.footer-brand:hover {
  color: inherit;
}

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    row-gap: 10px;
    min-height: auto;
    padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
    overflow: hidden;
    text-align: center;
  }

  .footer-credit {
    grid-column: 1;
    justify-self: center;
    font-size: 0.95rem;
  }

  .footer-powered {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    white-space: normal;
    line-height: 1.35;
  }

  .footer-powered > span,
  .footer-brand {
    white-space: nowrap;
  }

  .footer-brand svg {
    width: 18px;
    height: 18px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms linear, transform 700ms linear;
}

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

.hero-panel.reveal {
  transform: translate(-50%, 26px);
}

.hero-panel.reveal.is-visible {
  transform: translate(-50%, 0);
}

.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 200ms;
}

.delay-3 {
  transition-delay: 300ms;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-18px, 14px, 0) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

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

  .lab-page section.edge-flow-item::after,
  .lab-page section.edge-flow-item:hover::after,
  .lab-page section.edge-flow-item:focus-within::after,
  .lab-page section.edge-flow-item.is-visible::after {
    animation: edge-dot-inner-breathe 2.2s ease-in-out infinite !important;
  }

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

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 36px;
    transform: none;
  }

  .hero-panel.reveal,
  .hero-panel.reveal.is-visible {
    transform: translateY(0);
  }

  .skill-grid,
  .project-grid,
  .split,
  .education {
    grid-template-columns: 1fr 1fr;
  }

  .education {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px;
  }

  .work-browser {
    grid-template-columns: 1fr;
    padding-left: 52px;
  }

  .work-menu {
    grid-template-columns: 1fr;
  }

  .work-menu-button:hover,
  .work-menu-button.is-active {
    transform: translateY(-2px);
  }

}

@media (max-width: 640px) {
  .topbar {
    top: 0;
    width: 100%;
    padding: 0 18px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 74px 0;
  }

  .hero {
    grid-template-columns: 14px 1fr 14px;
    min-height: auto;
    padding: 86px 0 44px;
  }

  .hero-media {
    inset: 500px 0 0;
  }


  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
    line-height: 1.08;
  }

  .hero-copy {
    max-width: 92vw;
    font-size: clamp(1.18rem, 6vw, 1.65rem);
    line-height: 1.22;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button,
  .contact-actions a {
    width: 100%;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .button {
    width: auto;
    min-height: 42px;
    padding: 10px 18px;
  }

  .work-menu {
    gap: 6px;
    padding: 6px;
  }

  .work-menu-button {
    min-height: 64px;
    padding: 12px;
  }

  .work-menu-button span {
    font-size: 0.92rem;
  }

  .work-menu-button small {
    font-size: 0.68rem;
  }

  .skill-grid,
  .project-grid,
  .split,
  .education {
    grid-template-columns: 1fr;
  }

  .education-list article {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
  }

  .edu-logo {
    width: 70px;
    height: 70px;
  }

  .edu-logo img {
    max-width: 56px;
    max-height: 40px;
  }

  .skill-card,
  .project-card {
    min-height: auto;
  }

  .skill-card span {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: clamp(2rem, 12vw, 3.25rem);
  }
}

/* Apple-style work experience accordion */
.timeline-section {
  width: 100%;
  max-width: none;
  min-height: auto;
  padding: 118px 0;
  color: var(--ink);
  background: #f5f5f7;
}

.timeline-section:has(.work-browser.is-collapsed) {
  min-height: auto;
  padding-bottom: 118px;
}

.timeline-section > * {
  width: min(calc(100% - 48px), 1120px);
  margin-left: auto;
  margin-right: auto;
}

.timeline-section .section-heading {
  max-width: 1120px;
  margin-bottom: 76px;
}

.timeline-section .section-heading h2 {
  color: var(--ink);
  font-size: clamp(3.1rem, 6.8vw, 6.7rem);
  line-height: 1.02;
}

.timeline-section > .work-browser,
.work-browser {
  display: block;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.work-browser::after,
.work-toggle,
.work-menu {
  display: none !important;
  content: none !important;
}

.work-panels.work-accordion {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.work-accordion .timeline-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(29, 29, 31, 0.16);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.work-accordion .timeline-item::after {
  content: none !important;
}

.work-accordion .timeline-item:last-child {
  border-bottom: 1px solid rgba(29, 29, 31, 0.16);
}

.work-accordion .timeline-trigger {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 128px;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 12px;
  align-items: center;
  border: 0;
  padding: 34px 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.work-accordion .timeline-trigger::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: 18px;
  height: 18px;
  border-right: 5px solid rgba(29, 29, 31, 0.52);
  border-bottom: 5px solid rgba(29, 29, 31, 0.52);
  transform: rotate(45deg);
  transition: transform 240ms linear, border-color 240ms linear;
}

.work-accordion .timeline-item.is-open .timeline-trigger::after,
.work-accordion .timeline-item[aria-expanded="true"] .timeline-trigger::after {
  border-color: rgba(29, 29, 31, 0.72);
  transform: rotate(225deg);
}

.work-accordion .timeline-title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.16;
}

.work-accordion .time {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #6e6e73;
  background: rgba(29, 29, 31, 0.06);
  font-size: 0.9rem;
  font-weight: 800;
}

.work-accordion .timeline-content {
  max-width: 840px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 300ms linear, opacity 300ms linear, transform 300ms linear, padding-bottom 300ms linear;
}

.work-accordion .timeline-content p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.14rem, 2vw, 1.52rem);
  line-height: 1.55;
}

.work-accordion .timeline-item.is-open .timeline-content,
.work-accordion .timeline-item[aria-expanded="true"] .timeline-content {
  max-height: 360px;
  padding-bottom: 40px;
  opacity: 1;
  transform: translateY(0);
}

.work-accordion .number-highlight {
  color: #ff3b30;
  font-size: 1.08em;
  font-weight: 800;
}

@media (max-width: 960px) {
  .timeline-section {
    padding: 88px 0;
  }

  .timeline-section > *,
  .timeline-section > .work-browser,
  .work-browser {
    width: min(calc(100% - 32px), var(--max));
  }

  .timeline-section .section-heading {
    margin-bottom: 48px;
  }

  .work-accordion .timeline-trigger {
    min-height: 112px;
    padding: 28px 0;
  }

  .work-accordion .timeline-title {
    font-size: clamp(1.65rem, 6vw, 2.35rem);
  }
}

/* Refined Apple-style grouped work experience menu */
.timeline-section {
  padding: clamp(76px, 9vw, 118px) 0;
  background: #f5f5f7;
}

.timeline-section .section-heading {
  max-width: 980px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.timeline-section .section-heading h2 {
  max-width: 920px;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.timeline-section > .work-browser,
.work-browser {
  width: min(calc(100% - 48px), 980px);
}

.work-accordion {
  width: 100%;
  border-top: 1px solid rgba(29, 29, 31, 0.16);
}

.work-group {
  border-bottom: 1px solid rgba(29, 29, 31, 0.16);
}

.work-group-trigger {
  display: grid;
  width: 100%;
  min-height: 118px;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 20px;
  align-items: center;
  border: 0;
  padding: 30px 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.work-group-trigger::after {
  content: "";
  justify-self: end;
  width: 12px;
  height: 12px;
  border-right: 3px solid #000000;
  border-bottom: 3px solid #000000;
  transform: rotate(45deg);
  transition: transform 240ms linear, border-color 240ms linear;
}

.work-group.is-open .work-group-trigger::after,
.work-group[aria-expanded="true"] .work-group-trigger::after {
  border-color: #000000;
  transform: rotate(225deg);
}

.work-group-title {
  display: block;
}

.work-group-title {
  color: var(--ink);
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
}

.work-group-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 320ms linear, opacity 320ms linear, transform 320ms linear, padding-bottom 320ms linear;
}

.work-group.is-open .work-group-content,
.work-group[aria-expanded="true"] .work-group-content {
  max-height: 760px;
  padding-bottom: 34px;
  opacity: 1;
  transform: translateY(0);
}

.work-detail {
  padding: 0 0 26px;
}

.work-detail + .work-detail {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}

.work-detail h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  font-weight: 700;
  line-height: 1.24;
}

.work-detail .time {
  display: block;
  width: fit-content;
  margin: -2px 0 18px;
  border-radius: 0;
  padding: 0;
  color: #6e6e73;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.work-detail p {
  max-width: 850px;
  margin: 0 0 10px;
  color: rgba(29, 29, 31, 0.82);
  font-size: clamp(1.04rem, 1.65vw, 1.32rem);
  line-height: 1.62;
}

.work-detail .number-highlight {
  color: #ff3b30;
  background: transparent;
  box-shadow: none;
  font-size: 1.08em;
  font-weight: 800;
}

@media (max-width: 640px) {
  .timeline-section > .work-browser,
  .work-browser {
    width: min(calc(100% - 32px), var(--max));
  }

  .work-group-trigger {
    min-height: 96px;
    padding: 24px 0;
  }

  .work-group-title {
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }

  .work-detail h3 {
    font-size: 1.22rem;
  }
}

/* Compact centered education timeline */
.education-list {
  gap: 0;
  padding: clamp(26px, 4vw, 42px);
}

.education-list article {
  min-height: 168px;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding: 28px 0;
}

.education-list article:first-child {
  padding-top: 0;
}

.education-list article:last-child {
  padding-bottom: 0;
}

.education-list article + article {
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.education-list article > div:last-child {
  display: grid;
  min-height: 112px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.education-list article > div:last-child > span,
.education-list article h3,
.education-list article p {
  margin: 0;
}

.education-list article h3 {
  max-width: 720px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.education-list article p {
  width: auto;
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.25;
  white-space: nowrap;
}

.edu-logo {
  width: 92px;
  height: 92px;
}

@media (max-width: 640px) {
  .education-list {
    padding: 24px;
  }

  .education-list article {
    min-height: 154px;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .education-list article + article {
    padding-top: 24px;
  }

  .education-list article > div:last-child {
    min-height: 104px;
    gap: 8px;
  }

  .edu-logo {
    width: 70px;
    height: 70px;
  }
}

/* Final education and motion refinements */
.education {
  width: min(calc(100% - 32px), 1180px);
  display: block;
  padding-top: 96px;
}

.education .section-heading {
  width: min(100%, 980px);
  margin: 0 auto 40px;
  text-align: center;
}

.education .section-heading h2 {
  max-width: 860px;
  margin-inline: auto;
}

.education-list {
  width: min(100%, 960px);
  margin-inline: auto;
  padding: 36px 52px;
}

.education-list article {
  min-height: 176px;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 38px;
  padding: 30px 0;
}

.education-list article + article {
  padding-top: 30px;
}

.education-list article > div:last-child {
  min-height: 116px;
  gap: 9px;
}

.education-list article > div:last-child > span {
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.education-list article .edu-title {
  display: grid;
  gap: 7px;
  justify-items: center;
  max-width: none;
  margin: 0;
  line-height: 1.12;
}

.edu-title-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.edu-title-en {
  color: var(--ink);
  font-size: 1.58rem;
  font-weight: 800;
}

.edu-title-zh {
  color: rgba(29, 29, 31, 0.78);
  font-size: 1.08rem;
  font-weight: 700;
}

.education-list article p {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.edu-logo {
  width: 150px;
  height: 150px;
}

.reading-logo {
  width: 176px;
  height: 96px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.reading-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.lida-logo img {
  width: 150px;
  height: auto;
}

.work-group-trigger {
  min-height: 86px;
  padding: 18px 0;
}

.work-group-title {
  font-size: 2.25rem;
}

.work-group.is-open .work-group-content,
.work-group[aria-expanded="true"] .work-group-content {
  padding-bottom: 24px;
}

.work-detail {
  padding-bottom: 20px;
}

.work-detail + .work-detail {
  margin-top: 20px;
  padding-top: 20px;
}

.work-detail .time {
  display: block;
  margin: -2px 0 18px;
  border-radius: 0;
  padding: 0;
  color: #6e6e73;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .education {
    padding-top: 72px;
  }

  .education .section-heading {
    margin-bottom: 28px;
  }

  .education-list {
    padding: 30px 28px;
  }

  .education-list article {
    min-height: 156px;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 22px;
    padding: 26px 0;
  }

  .education-list article > div:last-child {
    min-height: 106px;
  }

  .edu-logo {
    width: 112px;
    height: 112px;
  }

.reading-logo {
  width: 190px;
  height: 84px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.reading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

  .lida-logo img {
    width: 112px;
  }

  .edu-title-en {
    font-size: 1.18rem;
  }

  .edu-title-zh {
    font-size: 0.94rem;
  }

  .education-list article p,
  .education-list article > div:last-child > span {
    font-size: 0.98rem;
  }
}

@media (max-width: 640px) {
  .education {
    width: min(calc(100% - 20px), 100%);
    padding-top: 58px;
  }

  .education-list {
    padding: 24px 18px;
  }

  .education-list article {
    min-height: 138px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .education-list article > div:last-child {
    min-height: 96px;
    gap: 6px;
  }

  .edu-logo {
    width: 70px;
    height: 70px;
  }

  .reading-logo {
    width: 78px;
    height: 48px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .lida-logo img {
    width: 70px;
  }

  .edu-title-en {
    font-size: 0.84rem;
  }

  .edu-title-zh {
    font-size: 0.72rem;
  }

  .education-list article p,
  .education-list article > div:last-child > span {
    font-size: 0.78rem;
  }

  .work-group-trigger {
    min-height: 74px;
    padding: 16px 0;
  }

  .work-group-title {
    font-size: 1.72rem;
  }
}

@media (max-width: 420px) {
  .education-list {
    padding: 22px 14px;
  }

  .education-list article {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .edu-logo {
    width: 58px;
    height: 58px;
  }

  .reading-logo {
    width: 66px;
    height: 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .lida-logo img {
    width: 58px;
  }

  .edu-title-en {
    font-size: 0.62rem;
  }

  .edu-title-zh,
  .education-list article p,
  .education-list article > div:last-child > span {
    font-size: 0.66rem;
  }
}

/* Unified Professional Skills icon system */
.skill-card {
  align-items: flex-start;
  justify-content: flex-start;
}

.skill-card > span {
  margin-bottom: 14px;
}

.skill-card .skill-visual {
  width: 138px;
  height: 138px;
  margin: 8px auto 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(0, 113, 227, 0.09);
  color: var(--blue);
}

.visual-database .mini-window {
  left: 18px;
  top: 28px;
  width: 76px;
  height: 56px;
  border-radius: 12px;
  padding: 10px;
  background: #1d1d1f;
  box-shadow: 0 14px 28px rgba(29, 29, 31, 0.2);
}

.visual-database .mini-window i {
  width: 5px;
  height: 5px;
  background: rgba(245, 245, 247, 0.82);
}

.visual-database .mini-window strong {
  margin: 8px 0 6px;
  font-size: 0.48rem;
}

.visual-database .mini-window b {
  height: 3px;
  margin-top: 4px;
  background: #0071e3;
  animation: db-line-read 3.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.visual-database .mini-window b:nth-of-type(2) {
  animation-delay: 180ms;
}

.visual-database .mini-window b:nth-of-type(3) {
  animation-delay: 360ms;
}

.visual-database .data-stack {
  right: 16px;
  bottom: 30px;
  width: 44px;
  height: 62px;
}

.visual-database .data-stack i {
  width: 44px;
  height: 15px;
  border-color: rgba(0, 113, 227, 0.22);
  background: rgba(255, 255, 255, 0.86);
  animation: db-disk-sync 3.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.visual-database .data-stack i:nth-child(1) {
  top: 0;
}

.visual-database .data-stack i:nth-child(2) {
  top: 18px;
  animation-delay: 160ms;
}

.visual-database .data-stack i:nth-child(3) {
  top: 36px;
  animation-delay: 320ms;
}

.visual-automation {
  padding: 0;
  display: grid;
  place-items: center;
}

.visual-automation .gear {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  color: #0071e3;
  background: none;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  line-height: 1;
  text-shadow: none;
}

.visual-automation .gear-large {
  left: 28px;
  top: 28px;
  font-size: 66px;
  animation: gear-spin 5.2s linear infinite;
}

.visual-automation .gear-small {
  right: 31px;
  top: 52px;
  font-size: 48px;
  animation: gear-spin-reverse 4s linear infinite;
}

.visual-infra {
  justify-content: center;
  align-content: center;
  padding: 0 18px;
  gap: 10px;
}

.visual-infra > i {
  height: 25px;
  border-radius: 9px;
  background: #2f3033;
  box-shadow: 0 12px 24px rgba(29, 29, 31, 0.14);
}

.visual-infra > i::before {
  width: 48%;
  height: 4px;
  background: rgba(245, 245, 247, 0.56);
}

.visual-infra b {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: #30d158;
  opacity: 1;
  transition: background-color 180ms linear, opacity 180ms linear, box-shadow 180ms linear;
}

.visual-infra.is-playing b {
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.2);
}

.visual-infra.is-complete b {
  background: #30d158;
  opacity: 1;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.28);
}

.visual-security {
  display: grid;
  place-items: center;
}

.shield {
  width: 78px;
  height: 88px;
  clip-path: polygon(50% 0, 88% 16%, 82% 70%, 50% 100%, 18% 70%, 12% 16%);
  background: linear-gradient(160deg, #69696e, #1d1d1f);
  box-shadow: 0 18px 34px rgba(29, 29, 31, 0.16);
}

.visual-security::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.7), transparent);
  transform: translateY(-42px);
  animation: shield-scan 3.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.visual-security i {
  width: 28px;
  height: 28px;
  border-color: rgba(29, 29, 31, 0.12);
  animation: security-orbit 4.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.visual-security i:nth-of-type(1) {
  left: 18%;
  top: 24%;
}

.visual-security i:nth-of-type(2) {
  right: 18%;
  top: 24%;
  animation-delay: 180ms;
}

.visual-security i:nth-of-type(3) {
  left: 24%;
  bottom: 18%;
  animation-delay: 360ms;
}

.visual-security i:nth-of-type(4) {
  right: 24%;
  bottom: 18%;
  animation-delay: 540ms;
}

@keyframes db-line-read {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.72);
    transform-origin: left;
  }
  48% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes db-disk-sync {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(29, 29, 31, 0.06);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 113, 227, 0.13);
  }
}

@keyframes gear-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gear-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes shield-breathe {
  0%,
  100% {
    filter: drop-shadow(0 12px 24px rgba(29, 29, 31, 0.16));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 18px 30px rgba(0, 113, 227, 0.18));
    transform: scale(1.04);
  }
}

@keyframes shield-scan {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
  45%,
  58% {
    opacity: 1;
  }
  72% {
    opacity: 0;
    transform: translateY(40px);
  }
}

@keyframes security-orbit {
  0%,
  100% {
    opacity: 0.64;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(0.9);
  }
}

@media (max-width: 900px) {
  .skill-card .skill-visual {
    width: 128px;
    height: 128px;
  }
}

@media (max-width: 640px) {
  .skill-card .skill-visual {
    width: 116px;
    height: 116px;
    margin-bottom: 26px;
  }
}

/* Apple-like typography for education details */
.education-list article > div:last-child {
  gap: 8px;
}

.education-list article > div:last-child > span {
  color: #008c5a;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.education-list article .edu-title {
  gap: 5px;
  line-height: 1.12;
}

.education-list article .edu-title .edu-title-en {
  color: #1d1d1f;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0;
}

.education-list article .edu-title .edu-title-zh {
  color: #6e6e73;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
}

.education-list article p {
  color: #86868b;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .education-list article > div:last-child > span {
    font-size: 0.94rem;
  }

  .education-list article .edu-title .edu-title-en {
    font-size: 1.08rem;
  }

  .education-list article .edu-title .edu-title-zh {
    font-size: 0.9rem;
  }

  .education-list article p {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .education-list article > div:last-child > span {
    font-size: 0.76rem;
  }

  .education-list article .edu-title .edu-title-en {
    font-size: 0.78rem;
  }

  .education-list article .edu-title .edu-title-zh {
    font-size: 0.68rem;
  }

  .education-list article p {
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .education-list article > div:last-child > span {
    font-size: 0.64rem;
  }

  .education-list article .edu-title .edu-title-en {
    font-size: 0.58rem;
  }

  .education-list article .edu-title .edu-title-zh,
  .education-list article p {
    font-size: 0.62rem;
  }

}

/* Keep all education logos on the same visual scale. */
.education-list .edu-logo,
.education-list .reading-logo,
.education-list .lida-logo {
  width: 150px;
  height: 86px;
  padding: 0;
}

.education-list .edu-logo img,
.education-list .reading-logo img,
.education-list .lida-logo img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .education-list .edu-logo,
  .education-list .reading-logo,
  .education-list .lida-logo {
    width: 126px;
    height: 72px;
  }

  .education-list .edu-logo img,
  .education-list .reading-logo img,
  .education-list .lida-logo img {
    max-width: 126px;
    max-height: 60px;
  }
}

@media (max-width: 640px) {
  .education-list .edu-logo,
  .education-list .reading-logo,
  .education-list .lida-logo {
    width: 76px;
    height: 48px;
  }

  .education-list .edu-logo img,
  .education-list .reading-logo img,
  .education-list .lida-logo img {
    max-width: 76px;
    max-height: 40px;
  }
}

@media (max-width: 420px) {
  .education-list .edu-logo,
  .education-list .reading-logo,
  .education-list .lida-logo {
    width: 64px;
    height: 40px;
  }

  .education-list .edu-logo img,
  .education-list .reading-logo img,
  .education-list .lida-logo img {
    max-width: 64px;
    max-height: 34px;
  }
}

/* Project Experiences animated icon system */
.project-icon {
  position: relative;
  overflow: hidden;
}

.project-icon svg {
  overflow: visible;
}

.project-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border-radius: 18px;
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-icon > svg,
.project-icon > span:not(.home-glow) {
  position: relative;
  z-index: 1;
}

.project-icon:hover::before,
.project-card:focus-visible .project-icon::before {
  opacity: 1;
  transform: scale(1);
}

/* Network icon: default complete, hover animated */
.network-icon::before {
  background: radial-gradient(circle, rgba(0, 113, 227, 0.16), rgba(0, 113, 227, 0) 70%);
}

.network-icon .ecg-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 96;
  stroke-dashoffset: 0;
  opacity: 1;
}

.network-icon .signal-dot {
  fill: currentColor;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.82;
}

.network-icon .signal-link {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.48;
}

.network-icon:hover .ecg-line,
.project-card:focus-visible .network-icon .ecg-line {
  animation: project-ecg-pulse 1.45s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.network-icon:hover .signal-dot,
.project-card:focus-visible .network-icon .signal-dot {
  animation: project-signal-float 1.65s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.network-icon:hover .signal-dot-b,
.project-card:focus-visible .network-icon .signal-dot-b {
  animation-delay: 160ms;
}

.network-icon:hover .signal-dot-c,
.project-card:focus-visible .network-icon .signal-dot-c {
  animation-delay: 320ms;
}

.network-icon:hover .signal-link,
.project-card:focus-visible .network-icon .signal-link {
  animation: project-signal-link 1.65s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes project-ecg-pulse {
  0% {
    stroke-dashoffset: 96;
    opacity: 0.2;
  }
  18%, 100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes project-signal-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translateY(-5px) scale(1.08);
    opacity: 1;
  }
}

@keyframes project-signal-link {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-4px);
    opacity: 0.82;
  }
}

/* Flight data icon: three solid cylinders, hover drop animation */
.flight-stack-icon::before {
  background: radial-gradient(circle, rgba(0, 140, 90, 0.16), rgba(0, 140, 90, 0) 70%);
}

.flight-stack-icon .db-cyl {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(0);
  opacity: 1;
}

.flight-stack-icon .db-cyl .db-fill {
  fill: rgba(0, 140, 90, 0.1);
  stroke: none;
}

.flight-stack-icon .db-cyl ellipse,
.flight-stack-icon .db-cyl path:not(.db-fill) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flight-stack-icon:hover .db-cyl-top,
.project-card:focus-visible .flight-stack-icon .db-cyl-top {
  animation: cyl-drop-top 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-stack-icon:hover .db-cyl-middle,
.project-card:focus-visible .flight-stack-icon .db-cyl-middle {
  animation: cyl-drop-middle 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-stack-icon:hover .db-cyl-bottom,
.project-card:focus-visible .flight-stack-icon .db-cyl-bottom {
  animation: cyl-drop-bottom 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cyl-drop-top {
  0% {
    transform: translateY(-22px);
    opacity: 0;
  }
  26%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cyl-drop-middle {
  0%, 18% {
    transform: translateY(-22px);
    opacity: 0;
  }
  48%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cyl-drop-bottom {
  0%, 36% {
    transform: translateY(-22px);
    opacity: 0;
  }
  70%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Home Icon */
.home-icon {
  color: #1d1d1f;
}

.home-icon .home-glow {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 232, 237, 0.8) 0%, rgba(232, 232, 237, 0.26) 48%, rgba(232, 232, 237, 0) 76%);
  opacity: 0.28;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    opacity 780ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-icon .home-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 184, 51, 0.92) 0%, rgba(255, 184, 51, 0.34) 48%, rgba(255, 184, 51, 0) 76%);
  opacity: 0;
  transition: opacity 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-icon .home-glyph,
.home-icon .home-shell,
.home-icon .home-core,
.home-icon .home-door {
  color: #1d1d1f;
  transition:
    color 780ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 780ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-icon .home-door {
  background: #1d1d1f;
}

.home-icon:hover,
.project-card:focus-visible .home-icon {
  color: #f38a00;
}

.home-icon:hover .home-glow,
.project-card:focus-visible .home-icon .home-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.16);
}

.home-icon:hover .home-glow::after,
.project-card:focus-visible .home-icon .home-glow::after {
  opacity: 1;
}

.home-icon:hover .home-door,
.project-card:focus-visible .home-icon .home-door {
  background: linear-gradient(180deg, #fff4c9, #ffb833);
  box-shadow: 0 0 18px rgba(255, 184, 51, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .network-icon .ecg-line,
  .network-icon .signal-dot,
  .network-icon .signal-link,
  .flight-stack-icon .db-cyl,
  .language-bar {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Native accessibility fallbacks */
main:focus {
  outline: none;
}

/* Project icons can now be played by viewport entry/touch on mobile. */
.project-icon.is-animating::before {
  opacity: 1;
  transform: scale(1);
}

.network-icon.is-animating .ecg-line {
  animation: project-ecg-pulse 1.45s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.network-icon.is-animating .signal-dot {
  animation: project-signal-float 1.65s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.network-icon.is-animating .signal-dot-b {
  animation-delay: 160ms;
}

.network-icon.is-animating .signal-dot-c {
  animation-delay: 320ms;
}

.network-icon.is-animating .signal-link {
  animation: project-signal-link 1.65s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.privacy-icon.is-animating {
  color: #168a45;
  background: linear-gradient(180deg, #ffffff, #edf8f2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 48px rgba(22, 138, 69, 0.13);
}

.privacy-icon.is-animating .privacy-padlock {
  transform: translateY(1px) scale(0.98);
}

.privacy-icon.is-animating .lock-shackle {
  transform: translate(-6px, -3px) rotate(-34deg);
}

.privacy-icon.is-animating .lock-closed-mark {
  opacity: 0;
}

.flight-stack-icon.is-animating .db-cyl-top {
  animation: cyl-drop-top 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-stack-icon.is-animating .db-cyl-middle {
  animation: cyl-drop-middle 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-stack-icon.is-animating .db-cyl-bottom {
  animation: cyl-drop-bottom 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-icon.is-animating {
  color: #f38a00;
}

.home-icon.is-animating .home-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.16);
}

.home-icon.is-animating .home-glow::after {
  opacity: 1;
}

.home-icon.is-animating .home-door {
  background: linear-gradient(180deg, #fff4c9, #ffb833);
  box-shadow: 0 0 18px rgba(255, 184, 51, 0.72);
}

/* Subpage: lab notes */
.lab-page .topbar {
  position: sticky;
  transform: none;
  left: 0;
}

.lab-main {
  padding-top: 44px;
}

.lab-hero {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: clamp(86px, 12vw, 150px) 0 clamp(54px, 8vw, 96px);
  text-align: center;
}

.lab-hero h1 {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.lab-hero p {
  max-width: 720px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.lab-grid,
.language-panel,
.lab-note-list {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 80px;
}

.lab-card {
  min-height: 300px;
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
}

.lab-card strong {
  display: block;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.92rem;
}

.lab-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.lab-card p {
  color: var(--muted);
  line-height: 1.72;
}

.language-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(46px, 5.6vw, 68px) clamp(28px, 5vw, 54px) clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}



.language-info-toggle {
  position: absolute;
  top: 12px;
  left: 18px;
  z-index: 4;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.18);
  transition:
    transform 180ms linear,
    background-color 180ms linear,
    box-shadow 180ms linear;
}

.language-info-toggle:hover,
.language-info-toggle:focus-visible,
.language-info-toggle.is-open {
  transform: scale(1.04);
  background: #0a84ff;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.25);
}

.language-info-toggle.is-open span {
  transform: rotate(45deg);
}

.language-info-toggle span {
  transition: transform 180ms linear;
}

.language-info-popover {
  position: absolute;
  top: 7px;
  left: 54px;
  z-index: 3;
  max-width: min(520px, calc(100% - 70px));
  padding: 7px 14px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 40px rgba(29, 29, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: rgba(29, 29, 31, 0.72);
  opacity: 0;
  transform: translateX(-8px) scale(0.98);
  transition:
    opacity 180ms linear,
    transform 180ms linear;
}

.language-info-popover.is-open {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.language-info-popover p {
  margin: 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.language-panel-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.04;
}

.language-panel-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.language-chart {
  display: grid;
  gap: 14px;
}

.language-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.32fr) minmax(0, 1fr) minmax(72px, max-content);
  gap: 14px;
  align-items: center;
}

.language-name,
.language-value {
  color: rgba(29, 29, 31, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}

.language-value {
  justify-self: end;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.language-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.08);
}

.language-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--language-size, 0%);
  border-radius: inherit;
  background: var(--language-color, var(--blue));
  box-shadow:
    0 3px 10px color-mix(in srgb, var(--language-color, var(--blue)) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: scaleX(0);
  transform-origin: left center;
}

.language-panel.is-visible .language-bar {
  animation: language-bar-enter var(--language-duration, 2600ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--language-delay, 0ms);
}

@keyframes language-bar-enter {
  0% {
    transform: scaleX(0);
  }

  64% {
    transform: scaleX(var(--language-spring-max, 1.035));
  }

  78% {
    transform: scaleX(var(--language-spring-min, 0.985));
  }

  100% {
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  .language-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 26px 34px;
    border-radius: 34px;
    overflow: hidden;
  }

  .language-info-toggle {
    position: static;
    width: 44px;
    height: 44px;
    margin: 0 0 -8px;
    border-radius: 18px;
    font-size: 1.25rem;
    box-shadow: 0 12px 26px rgba(0, 113, 227, 0.18);
  }

  .language-info-popover {
    position: static;
    max-width: 100%;
    margin: 0;
    border-radius: 18px;
    padding: 12px 14px;
    transform: none;
  }

  .language-info-popover.is-open {
    transform: none;
  }

  .language-info-popover p {
    white-space: normal;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .language-panel-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .language-row {
    grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr);
    gap: 8px 14px;
  }

  .language-track {
    grid-column: 2;
  }

  .language-value {
    grid-column: 2;
    justify-self: start;
    font-size: 0.86rem;
  }
}

.agent-dashboard {
  width: min(calc(100% - 32px), 1240px);
  margin-inline: auto;
  padding: 72px 0 118px;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease;
}

.agent-dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.agent-filter-button,
.agent-range-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(60, 60, 67, 0.82);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
}

.agent-filter-button:disabled {
  opacity: 0.78;
}

.agent-dashboard-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(29, 29, 31, 0.09);
  border-radius: 8px 8px 0 0;
  background: rgba(248, 248, 249, 0.86);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.agent-dashboard-trigger:disabled {
  cursor: not-allowed;
}

.agent-dashboard-trigger:not(:disabled):hover {
  border-color: rgba(0, 122, 255, 0.28);
}

.agent-dashboard-copy {
  display: grid;
  gap: 6px;
}

.agent-dashboard-title {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.agent-dashboard-summary {
  display: block;
  max-width: 780px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.agent-dashboard-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(142, 142, 147, 0.16);
  color: rgba(60, 60, 67, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: visible;
}

.agent-dashboard-status::before,
.agent-dashboard-status::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.agent-dashboard-status::before {
  opacity: 0.72;
}

.agent-dashboard-status::after {
  position: absolute;
  left: 14px;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.agent-dashboard.is-unavailable {
  opacity: 0.58;
  filter: grayscale(0.55);
}

.agent-dashboard.is-ready {
  opacity: 1;
  filter: none;
}

.agent-dashboard.is-ready .agent-dashboard-status {
  background: rgba(52, 199, 89, 0.14);
  color: #0b8f3a;
}

.agent-dashboard.is-runtime .agent-dashboard-status {
  display: none;
}

.agent-dashboard.is-running .agent-dashboard-status {
  background: rgba(52, 199, 89, 0.16);
  color: #0b8f3a;
}

.agent-dashboard.is-idle .agent-dashboard-status {
  background: rgba(142, 142, 147, 0.14);
  color: rgba(60, 60, 67, 0.68);
}

.agent-dashboard.is-running .agent-dashboard-status::after {
  animation: agent-running-pulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.agent-dashboard-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(29, 29, 31, 0.09);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.7);
  animation: agent-panel-in 0.35s ease both;
}

.agent-dashboard-body[hidden] {
  display: none;
}

.agent-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agent-metric-card,
.agent-chart-card,
.agent-detail-grid > div {
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
}

.agent-metric-card {
  min-height: 140px;
  overflow: hidden;
  padding: 14px 14px 0;
}

.agent-metric-card header,
.agent-chart-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: rgba(60, 60, 67, 0.68);
  font-size: 0.9rem;
  font-weight: 800;
}

.agent-metric-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  line-height: 1;
}

.agent-metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.agent-metric-card svg {
  display: block;
  width: calc(100% + 28px);
  height: 44px;
  margin: 12px -14px 0;
}

.agent-metric-card path,
.agent-chart-line {
  fill: none;
  stroke: #4593ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-metric-card[data-agent-metric="memory"] path,
.agent-chart-line-memory {
  stroke: #34c759;
}

.agent-metric-card[data-agent-metric="process"] path {
  stroke: #ffb340;
}

.agent-metric-card[data-agent-metric="state"] path {
  stroke: #8b5cf6;
}

.agent-chart-card {
  min-height: 310px;
  padding: 14px 16px 10px;
}

.agent-chart-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.agent-chart-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.agent-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4593ff;
}

.agent-chart-legend span:nth-child(2) i {
  background: #34c759;
}

.agent-resource-chart {
  display: block;
  width: 100%;
  height: 230px;
  margin-top: 12px;
}

.agent-chart-grid line {
  stroke: rgba(142, 142, 147, 0.24);
  stroke-dasharray: 4 4;
}

.agent-chart-area {
  fill: rgba(69, 147, 255, 0.1);
  stroke: none;
}

.agent-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-detail-grid > div {
  min-height: 104px;
  padding: 14px;
}

.agent-detail-grid span,
.agent-detail-grid strong {
  display: block;
}

.agent-detail-grid span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.agent-detail-grid strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.18;
}

@keyframes agent-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes agent-running-pulse {
  0% {
    opacity: 0.28;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(3.2);
  }

  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

@media (max-width: 960px) {
  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-panel {
    grid-template-columns: 1fr;
  }

  .agent-metric-grid,
  .agent-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lab-main {
    padding-top: 0;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .language-row {
    grid-template-columns: 1fr minmax(0, 1.8fr);
    gap: 8px 12px;
  }

  .language-value {
    grid-column: 2;
    justify-self: start;
  }

  .language-info-toggle {
    top: 12px;
    left: 18px;
    width: 26px;
    height: 26px;
    font-size: 0.96rem;
  }

  .language-info-popover {
    top: 7px;
    left: 54px;
    max-width: calc(100% - 66px);
    padding: 7px 11px;
    border-radius: 999px;
  }

  .language-info-popover p {
    white-space: normal;
    font-size: 0.86rem;
  }

  .agent-dashboard {
    padding: 48px 0 82px;
  }

  .agent-dashboard-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-dashboard-trigger {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .agent-dashboard-status {
    justify-self: start;
  }

  .agent-metric-grid,
  .agent-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* System-level accessibility preferences and compact navigation */
.menu-toggle {
  display: none;
}

@media (prefers-contrast: more) {
  :root {
    --ink: #000000;
    --muted: #3a3a3c;
    --line: rgba(0, 0, 0, 0.32);
    --blue: #005fcc;
    --green: #006c47;
  }

  .project-card,
  .skill-card,
  .education-list,
  .lab-card {
    border: 1px solid rgba(0, 0, 0, 0.32);
  }
}

@media (prefers-reduced-transparency: reduce) {
  [data-glass],
  .github-link {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  }

  [data-glass]::before,
  [data-glass]::after,
  .github-link::before {
    content: none !important;
  }
}

@media (inverted-colors: inverted) {
  img,
  svg {
    filter: invert(1);
  }
}

@media (forced-colors: active) {
  * {
    forced-color-adjust: auto;
  }

  [data-glass],
  .project-card,
  .skill-card,
  .education-list,
  .contact-panel {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  a:focus-visible,
  button:focus-visible,
  [role="link"]:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid Highlight;
  }
}

@media (pointer: coarse) {
  button,
  a,
  [role="link"],
  [tabindex] {
    min-height: 44px;
  }

  .project-card,
  .work-group-trigger,
  .footer-brand,
  .mail-card {
    touch-action: manipulation;
  }
}

@media (max-width: 960px) {
  .topbar {
    min-height: 44px;
    height: 44px;
    align-items: center;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.82) !important;
    overflow: hidden;
    transition:
      height 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
      background 240ms linear;
  }

  .topbar.is-menu-open {
    height: 88px;
    background: rgba(255, 255, 255, 0.92) !important;
  }

  .topbar.is-contact-open {
    overflow: visible;
  }

  .topbar .brand {
    height: 44px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-left: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.86);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .menu-toggle span:first-child {
    transform: translateY(-4px);
  }

  .menu-toggle span:last-child {
    transform: translateY(4px);
  }

  .topbar.is-menu-open .menu-toggle span:first-child {
    transform: rotate(45deg);
  }

  .topbar.is-menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
  }

  .topbar .nav-links {
    order: 3;
    display: grid;
    width: 100%;
    height: 44px;
    max-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(29, 29, 31, 0.08);
    opacity: 0;
    transform: translateY(-4px);
    transition:
      max-height 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .topbar.is-menu-open .nav-links {
    max-height: 44px;
    opacity: 1;
    transform: translateY(0);
  }

  .topbar .nav-links a,
  .topbar .contact-toggle {
    min-height: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(29, 29, 31, 0.74);
    font-size: 0.76rem;
    font-weight: 500;
  }

  .topbar .nav-links a:hover,
  .topbar .contact-toggle:hover,
  .topbar .contact-toggle[aria-expanded="true"] {
    color: var(--ink);
    background: transparent;
  }

  .topbar .contact-popover {
    position: absolute;
    top: 88px;
    right: max(16px, env(safe-area-inset-right));
    width: min(320px, calc(100vw - 32px));
    margin: 0;
    padding: 8px;
    z-index: 80;
    box-shadow:
      0 14px 38px rgba(0, 0, 0, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  }

  .topbar:not(.is-menu-open) .contact-popover {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
  }
}

@media (max-width: 520px) {
  .topbar .nav-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .topbar.is-menu-open .nav-links {
    max-height: 44px;
  }

  .topbar .nav-links a,
  .topbar .contact-toggle {
    min-height: 44px;
    font-size: 0.74rem;
  }

  .hero {
    padding-top: 94px;
  }
}

/* =========================================================
   Final consistency layer: tokens, motion, Lab Edge AI section
   ========================================================= */

:where(a, button, .project-card, .github-link, .mail-card, .work-group-trigger, .work-accordion .timeline-trigger) {
  transition-timing-function: var(--ease);
}

:where(.button, .contact-actions a, .project-card, .github-link, .mail-card, .contact-popover, .language-info-toggle, .language-info-popover, .work-group-content, .work-accordion .timeline-content, .reveal) {
  transition-timing-function: var(--ease);
}

:where(.button, .contact-actions a, .github-link, .mail-card, .language-info-toggle) {
  transition-duration: var(--duration);
}

:where(.work-group-content, .work-accordion .timeline-content, .project-card, .reveal) {
  transition-duration: var(--duration-slow);
}

:where(h1, h2, h3, .hero-copy, .section-heading h2, .language-panel-copy h2) {
  color: var(--ink);
}

:where(.hero-copy, .lab-hero p, .language-panel-copy p:not(.eyebrow), .project-card p:not(.tag), .skill-card p, .education-list p, .work-detail p) {
  color: var(--muted);
}

:where(.hero, .timeline-section) {
  background: var(--soft);
}

:where(.skill-card, .project-card, .education-list, .lab-card) {
  background: var(--paper);
}

:where(a:focus-visible, button:focus-visible, [role="link"]:focus-visible, [tabindex]:focus-visible) {
  outline-color: var(--blue-strong);
}

:where(.topbar, .contact-popover, .language-panel, .edge-architecture) {
  backface-visibility: hidden;
}

/* Remove legacy Agent Dashboard visuals after replacing it with the Edge Architecture section. */
.agent-dashboard,
.agent-dashboard-toolbar,
.agent-dashboard-trigger,
.agent-dashboard-body,
.agent-metric-grid,
.agent-chart-card,
.agent-detail-grid {
  display: none !important;
}

/* Edge AI Runtime Architecture */
.edge-architecture {
  position: relative;
  width: min(calc(100% - 32px), 1240px);
  margin: 72px auto 118px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--white-82);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.38)),
    linear-gradient(315deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.12));
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
}

.edge-architecture::before {
  content: "";
  position: absolute;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 113, 227, 0.16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.12), transparent 30%),
    radial-gradient(circle at 72% 88%, rgba(0, 140, 90, 0.1), transparent 32%);
  opacity: 0.92;
}

.edge-architecture > * {
  position: relative;
  z-index: 1;
}

.edge-architecture-head {
  max-width: 980px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.edge-architecture-head h2 {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.edge-architecture-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: var(--ink-68);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.72;
}

.edge-architecture-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.edge-architecture-aside {
  position: sticky;
  top: 72px;
  padding: 4px 0 4px 24px;
  border-left: 2px solid rgba(0, 113, 227, 0.58);
}

.edge-architecture-label {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edge-architecture-aside strong {
  display: block;
  max-width: 360px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.edge-architecture-aside p {
  max-width: 360px;
  margin: 18px 0 0;
  color: var(--ink-68);
  font-size: 0.98rem;
  line-height: 1.72;
}

.edge-flow {
  column-count: 2;
  column-gap: 18px;
}

.edge-flow-item {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(29, 29, 31, 0.075);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.44)),
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.12), transparent 38%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.075);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateY(0);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
}

.edge-flow-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: var(--shadow-lg);
}

.edge-flow-item-lg {
  min-height: 360px;
}

.edge-flow-item-tall {
  min-height: 430px;
}

.edge-flow-item-wide {
  min-height: 280px;
}

.edge-flow-item span {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edge-flow-item h3 {
  max-width: 520px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.edge-flow-item p {
  margin: 0;
  color: var(--ink-68);
  font-size: 15.5px;
  line-height: 1.72;
}

/*.edge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.edge-tags b {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink-82);
  background: rgba(0, 113, 227, 0.08);
  font-size: 12px;
  font-weight: 850;
}*/ 

.edge-render-visual {
  position: relative;
  height: 150px;
  margin: 26px 0 8px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(10, 14, 28, 0.94), rgba(23, 28, 48, 0.84));
}

.edge-render-visual::before,
.edge-render-visual::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-12deg);
}

.edge-render-visual::after {
  inset: 42px;
  opacity: 0.6;
}

.edge-render-visual i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 28px rgba(0, 113, 227, 0.8);
  animation: edge-node-float 4.8s var(--ease-out) infinite alternate;
}

.edge-render-visual i:nth-child(1) { left: 18%; top: 28%; }
.edge-render-visual i:nth-child(2) { left: 44%; top: 18%; animation-delay: 320ms; }
.edge-render-visual i:nth-child(3) { left: 68%; top: 42%; animation-delay: 640ms; }
.edge-render-visual i:nth-child(4) { left: 36%; top: 68%; animation-delay: 960ms; }
.edge-render-visual i:nth-child(5) { left: 82%; top: 72%; animation-delay: 1280ms; }

@keyframes edge-node-float {
  0% {
    opacity: 0.58;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(14px, -18px, 0) scale(1.3);
  }
}

.edge-runtime-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.075);
  border-radius: var(--radius-lg);
  background: rgba(29, 29, 31, 0.075);
}

.edge-runtime-strip div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.edge-runtime-strip span {
  display: block;
  margin-bottom: 8px;
  color: rgba(29, 29, 31, 0.5);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edge-runtime-strip strong {
  display: block;
  color: rgba(29, 29, 31, 0.92);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.runtime-ok {
  color: var(--green) !important;
}

.runtime-warn {
  color: var(--muted) !important;
}

@media (max-width: 1100px) {
  .edge-architecture-body {
    grid-template-columns: 1fr;
  }

  .edge-architecture-aside {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .edge-architecture {
    margin: 48px auto 82px;
  }

  .edge-flow {
    column-count: 1;
  }

  .edge-flow-item,
  .edge-flow-item-lg,
  .edge-flow-item-tall,
  .edge-flow-item-wide {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .edge-architecture {
    width: min(calc(100% - 24px), 100%);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .edge-architecture-head h2 {
    letter-spacing: -0.055em;
  }

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

@media (prefers-reduced-motion: reduce) {
  .edge-flow-item,
  .edge-render-visual i {
    animation: none !important;
    transition-duration: 1ms !important;
    transform: none !important;
  }
}

/* =========================================================
   Edge AI Architecture: layered waterfall, not card grid
   ========================================================= */

.edge-architecture {
  width: min(calc(100% - 32px), 1240px);
  margin: 72px auto 118px;
  padding: clamp(34px, 5.4vw, 72px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 113, 227, 0.12), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(139, 92, 246, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 245, 247, 0.78));
  box-shadow: var(--shadow-md);
}

.edge-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 1px),
      rgba(29, 29, 31, 0.08) calc(50% - 1px),
      rgba(29, 29, 31, 0.08) calc(50% + 1px),
      transparent calc(50% + 1px)
    ),
    repeating-linear-gradient(
      180deg,
      rgba(29, 29, 31, 0.045) 0 1px,
      transparent 1px 86px
    );
  opacity: 0.56;
}

.edge-architecture-head {
  max-width: 980px;
  margin-bottom: clamp(40px, 6vw, 78px);
}

.edge-architecture-head h2 {
  max-width: 1040px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.078em;
}

.edge-architecture-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.edge-architecture-aside {
  position: sticky;
  top: 84px;
  min-height: 520px;
  padding: 0 0 0 26px;
  border-left: 2px solid rgba(0, 113, 227, 0.62);
  background: transparent;
}

.edge-architecture-aside::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.12);
}

.edge-architecture-aside strong {
  max-width: 360px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.edge-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  column-count: initial;
  counter-reset: edge-layer;
}

.edge-flow::before {
  content: "";
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(0, 113, 227, 0),
    rgba(0, 113, 227, 0.54),
    rgba(139, 92, 246, 0.42),
    rgba(0, 140, 90, 0)
  );
}

.edge-flow-item,
.edge-flow-item-lg,
.edge-flow-item-tall,
.edge-flow-item-wide {
  position: relative;
  display: grid;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: clamp(26px, 4vw, 48px) 0 clamp(26px, 4vw, 48px) clamp(74px, 8vw, 118px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  break-inside: auto;
  transition:
    transform var(--duration-slow) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out);
}

.edge-flow-item + .edge-flow-item {
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}

.edge-flow-item::before {
  content: "";
  position: absolute;
  left: clamp(10px, 3vw, 26px);
  top: clamp(34px, 4vw, 56px);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--blue);
  box-shadow:
    0 0 0 8px rgba(0, 113, 227, 0.11),
    0 18px 40px rgba(0, 113, 227, 0.18);
}

.edge-flow-item:nth-child(3)::before {
  background: var(--purple);
  box-shadow:
    0 0 0 8px rgba(139, 92, 246, 0.12),
    0 18px 40px rgba(139, 92, 246, 0.18);
}

.edge-flow-item:nth-child(5)::before {
  background: var(--green);
  box-shadow:
    0 0 0 8px rgba(0, 140, 90, 0.12),
    0 18px 40px rgba(0, 140, 90, 0.18);
}

.edge-flow-item:hover {
  transform: translateX(8px);
  border-color: transparent;
  box-shadow: none;
}

.edge-flow-item span {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.edge-flow-item h3 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.068em;
}

.edge-flow-item p {
  max-width: 760px;
  color: var(--ink-68);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.72;
}

/*.edge-tags {
  margin-top: 22px;
  gap: 10px;
}

.edge-tags b {
  min-height: 30px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}*/ 

.edge-render-visual {
  width: min(100%, 680px);
  height: 180px;
  margin: 28px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 26px 70px rgba(0, 0, 0, 0.14);
}

.edge-runtime-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(28px, 5vw, 56px);
  border-radius: 0;
  border-width: 1px 0;
  background: transparent;
}

.edge-runtime-strip div {
  border-right: 1px solid rgba(29, 29, 31, 0.1);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.edge-runtime-strip div:last-child {
  border-right: 0;
}

@media (max-width: 1100px) {
  .edge-architecture-body {
    grid-template-columns: 1fr;
  }

  .edge-architecture-aside {
    position: relative;
    top: auto;
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .edge-flow::before {
    left: 18px;
  }

  .edge-flow-item,
  .edge-flow-item-lg,
  .edge-flow-item-tall,
  .edge-flow-item-wide {
    padding-left: 58px;
  }

  .edge-flow-item::before {
    left: 10px;
  }

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

  .edge-runtime-strip div:nth-child(2) {
    border-right: 0;
  }

  .edge-runtime-strip div:nth-child(n + 3) {
    border-top: 1px solid rgba(29, 29, 31, 0.1);
  }
}

@media (max-width: 560px) {
  .edge-architecture {
    width: min(calc(100% - 24px), 100%);
    padding: 30px 20px;
  }

  .edge-flow-item,
  .edge-flow-item-lg,
  .edge-flow-item-tall,
  .edge-flow-item-wide {
    padding-left: 48px;
  }

  .edge-flow-item h3 {
    letter-spacing: -0.052em;
  }

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

  .edge-runtime-strip div,
  .edge-runtime-strip div:nth-child(2) {
    border-right: 0;
  }

  .edge-runtime-strip div + div {
    border-top: 1px solid rgba(29, 29, 31, 0.1);
  }
}

/* Fix timeline vertical dot alignment and remove hover displacement */
.timeline-section .timeline-item::before,
.timeline-section .timeline-item .number-highlight {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
}

/* Remove gray horizontal line that appeared below 3D scene section */
.timeline-section::after,
.timeline-section .timeline-item::after {
  content: none !important;
  display: none !important;
}

/* Disable hover movement for timeline dot */
.timeline-section .timeline-item:hover .number-highlight {
  transform: translate(-50%, -50%) !important;
}



