:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: rgba(29, 29, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --blue: #0071e3;
  --green: #008c5a;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max: 980px;
  --wide: 1440px;
}

/* 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;
}

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: 50%;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - var(--max)) / 2));
  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;
  transform: translateX(-50%);
}

/* 强力防御性清除：防止 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;
}

.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: max(18px, calc((100vw - var(--max)) / 2));
  width: min(310px, calc(100vw - 36px));
  border-radius: 18px;
  padding: 16px; /* 适当增加内边距，使内容在单一卡片里更显大气舒适 */
  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: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 0; /* 清除内边距，统一由外层 popover 容器控制 */
  background: transparent; /* 清除内层卡片的背景，避免产生“双重卡片”的双边框视觉感受 */
  box-shadow: none; /* 清除内层阴影 */
}

.mail-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.08);
}

.mail-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;
  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;
  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;
  padding: 12px 12px 132px;
}

.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);
}

.site-footer {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 16px;
  min-height: 56px;
  padding: 10px max(20px, calc((100vw - var(--wide)) / 2));
  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) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !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 {
    animation: none !important;
  }
}
