:root {
  --ink: #17221d;
  --muted: #6f7b74;
  --paper: #f7f8f3;
  --white: #ffffff;
  --forest: #173d32;
  --forest-light: #285448;
  --lime: #d8f99d;
  --line: #e0e5dc;
  --serif: Georgia, "Times New Roman", serif;
  --mono: Consolas, "SFMono-Regular", monospace;
  --shadow: 0 24px 70px rgba(28, 55, 44, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.home-page-entering { animation: home-slide-in .58s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes home-slide-in { from { opacity: .85; transform: translateX(100vw); } to { opacity: 1; transform: translateX(0); } }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
#magicCanvas { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; opacity: .92; pointer-events: none; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 243, 0.9);
  backdrop-filter: blur(16px);
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: rgba(23, 61, 50, .08); box-shadow: 0 8px 30px rgba(23, 61, 50, .05); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1240px, calc(100% - 64px));
  min-height: 82px;
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 11px; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--lime);
  background: var(--forest);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}
.brand-name { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; padding: 29px 0 27px; color: var(--muted); font-size: 13px; transition: color .2s; }
.nav-link::after {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--forest);
  content: "";
  transform: translateX(-50%);
  transition: width .2s;
}
.nav-link:hover, .nav-link.active { color: var(--forest); }
.nav-link.active::after { width: 18px; }
.user-actions { display: flex; align-items: center; gap: 18px; }
.greeting { color: var(--muted); font-size: 12px; }
.greeting strong {
  display: inline-block;
  max-width: 100px;
  overflow: hidden;
  color: var(--forest);
  font-weight: 600;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  transition: color .2s, border-color .2s, background .2s;
}
.logout-button svg { width: 16px; height: 16px; }
.logout-button:hover { border-color: #c7d1c6; color: var(--forest); background: var(--white); }

.hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 64px;
  min-height: 760px;
  padding-top: 74px;
  padding-bottom: 86px;
}
.eyebrow { display: flex; align-items: center; gap: 11px; color: #698153; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.eyebrow > span { flex: 0 0 auto; width: 30px; height: 1px; background: #8ca677; }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 4.1vw, 57px); font-weight: 600; line-height: 1.35; letter-spacing: -2px; }
.title-highlight { position: relative; z-index: 1; color: var(--forest-light); white-space: nowrap; }
.title-highlight::after {
  position: absolute;
  right: -4px;
  bottom: 4px;
  left: -4px;
  z-index: -1;
  height: 14px;
  border-radius: 3px;
  background: var(--lime);
  content: "";
  opacity: .78;
  transform: rotate(-1deg);
}
.hero-intro { max-width: 580px; margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 2; }
.hero-intro strong { margin-inline: 3px; color: var(--forest); font-weight: 600; }
.identity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.identity-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .52); }
.identity-card > span { display: block; color: #84917f; font-size: 8px; letter-spacing: 1.2px; }
.identity-card strong { display: block; margin-top: 9px; color: var(--forest); font-size: 14px; font-weight: 600; }
.identity-card p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skill-chips span { padding: 6px 11px; border-radius: 30px; color: #617456; background: #edf3e4; font-size: 10px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.primary-button { color: var(--white); background: var(--forest); box-shadow: 0 12px 26px rgba(23, 61, 50, .16); }
.primary-button svg { width: 18px; height: 18px; }
.secondary-button { border: 1px solid #d9dfd6; color: var(--forest); background: rgba(255, 255, 255, .5); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button:hover { background: var(--forest-light); box-shadow: 0 16px 32px rgba(23, 61, 50, .22); }
.secondary-button:hover { background: var(--white); }

.hero-dashboard { position: relative; display: grid; min-height: 590px; place-items: center; padding-bottom: 32px; }
.hero-dashboard::before { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #e9efdd; content: ""; }
.dashboard-orbit { position: absolute; width: 465px; height: 465px; border: 1px solid #d9e2d0; border-radius: 50%; transform: rotate(-16deg); }
.dashboard-orbit::before, .dashboard-orbit::after { position: absolute; border-radius: 50%; background: #aec995; content: ""; }
.dashboard-orbit::before { top: 60px; right: 40px; width: 8px; height: 8px; }
.dashboard-orbit::after { bottom: 32px; left: 75px; width: 5px; height: 5px; opacity: .6; }
.hero-code-card {
  position: absolute;
  top: 68px;
  left: -30px;
  z-index: 1;
  width: 350px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 19px;
  color: #e8efe8;
  background: #142f27;
  box-shadow: 0 25px 55px rgba(23, 61, 50, .22);
  transform: rotate(-12deg);
  transform-origin: center;
}
.hero-code-header { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #8da398; font-family: var(--mono); font-size: 8px; }
.window-dots { display: flex; gap: 5px; }
.window-dots span { width: 7px; height: 7px; border-radius: 50%; background: #537164; }
.window-dots span:first-child { background: #d28d74; }
.window-dots span:nth-child(2) { background: #d6bd74; }
.window-dots span:last-child { background: #91b77a; }
.hero-code-body { padding: 21px 17px; font-family: var(--mono); font-size: 9px; line-height: 2; }
.hero-code-line { display: grid; grid-template-columns: 24px 1fr; }
.hero-code-line > span { color: #49685b; user-select: none; }
.hero-code-line code { color: #cfddd3; font-family: inherit; white-space: nowrap; }
.hero-code-line b { color: #a8c9e2; font-weight: 400; }
.hero-code-line em { color: var(--lime); font-style: normal; }
.hero-code-line i { color: #e7bb84; font-style: normal; }
.hero-code-footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 15px; border-top: 1px solid rgba(255, 255, 255, .08); color: #759084; font-family: var(--mono); font-size: 7px; }
.hero-code-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #a5bc91; }
.hero-code-footer i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.hero-photo-card {
  position: relative;
  z-index: 2;
  width: min(350px, 88%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  transform: translateX(48px) rotate(2deg);
  backdrop-filter: blur(12px);
}
.hero-photo-top, .hero-photo-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7d8d78; font-size: 7px; font-weight: 700; letter-spacing: 1.2px; }
.hero-photo-top { padding: 3px 4px 13px; }
.hero-photo-footer { padding: 13px 4px 3px; color: #5e7157; letter-spacing: .5px; }
.hero-photo-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, #dfe8d5, #b9cdb0); }
.hero-photo-frame > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-photo-card:hover .hero-photo-frame > img { transform: scale(1.025); }
.hero-photo-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 70px 20px 20px; color: var(--white); background: linear-gradient(transparent, rgba(11, 37, 29, .82)); }
.hero-photo-overlay > span { color: var(--lime); font-size: 7px; font-weight: 700; letter-spacing: 1.4px; }
.hero-photo-overlay strong { display: block; margin-top: 6px; font-size: 25px; font-weight: 500; letter-spacing: 3px; }
.hero-photo-overlay p { margin-top: 3px; color: rgba(255, 255, 255, .58); font-family: var(--serif); font-size: 9px; letter-spacing: 2px; }
.explore-card {
  position: absolute;
  right: -8px;
  bottom: 68px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border: 1px solid rgba(23, 61, 50, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.explore-icon { color: #789c58; font-size: 24px; }
.explore-card div { display: flex; flex-direction: column; gap: 5px; }
.explore-card div span { color: #91a085; font-size: 7px; letter-spacing: 1.4px; }
.explore-card strong { color: var(--forest); font-size: 11px; font-weight: 600; }
.home-photo-help { position: absolute; bottom: 3px; }

.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 100px; border-block: 1px solid var(--line); }
.fact-item { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 100px; }
.fact-item + .fact-item { border-left: 1px solid var(--line); }
.fact-item strong { color: var(--forest); font-family: var(--serif); font-size: 32px; font-weight: 400; }
.fact-item span { color: var(--muted); font-size: 11px; }

.works-section { padding: 104px 0 112px; background: #edf1e8; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-kicker { margin-bottom: 12px; color: #718461; font-size: 9px; font-weight: 700; letter-spacing: 2.2px; }
.section-header h2, .future-header h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.4; letter-spacing: -1px; }
.section-header > p { max-width: 390px; color: var(--muted); font-size: 12px; line-height: 1.9; text-align: right; }
.stage-list { display: flex; flex-direction: column; gap: 28px; }
.project-stage { padding: 32px; border: 1px solid rgba(23, 61, 50, .07); border-radius: 24px; background: rgba(255, 255, 255, .38); }
.stage-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-bottom: 26px; }
.stage-number { color: #9caf90; font-family: var(--serif); font-size: 48px; line-height: 1; }
.stage-heading p { color: #809173; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.stage-heading h3 { margin-top: 7px; font-size: 23px; font-weight: 600; }
.stage-caption { padding-left: 20px; border-left: 1px solid #d4ddce; color: var(--muted); font-size: 11px; }
.stage-projects.grid-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.demo-card { overflow: hidden; border: 1px solid rgba(23, 61, 50, .08); border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 25px rgba(35, 59, 47, .03); }
.demo-card-wide { display: grid; grid-template-columns: 1.1fr .9fr; }
.demo-info { padding: 28px; }
.demo-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7e8f74; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.demo-meta span:last-child { padding: 4px 7px; border-radius: 4px; color: #5e774c; background: #edf3e5; letter-spacing: .8px; }
.demo-info h4 { margin-top: 16px; font-size: 23px; font-weight: 600; }
.demo-info > p { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.demo-highlights { display: flex; flex-direction: column; gap: 8px; margin-top: 19px; list-style: none; }
.demo-highlights li { position: relative; padding-left: 15px; color: #5e6c63; font-size: 11px; line-height: 1.6; }
.demo-highlights li::before { position: absolute; top: 7px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #8dac71; content: ""; }
.demo-media { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 28px; color: var(--lime); background: radial-gradient(circle at 80% 10%, rgba(216, 249, 157, .09), transparent 30%), var(--forest); }
.demo-visual-icon { display: grid; width: 58px; height: 58px; margin-bottom: 13px; place-items: center; border: 1px solid rgba(216, 249, 157, .18); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.demo-visual-icon svg { width: 36px; height: 36px; }
.media-keywords { margin-bottom: 22px; color: rgba(216, 249, 157, .6); font-family: var(--mono); font-size: 8px; letter-spacing: 1.7px; }
.media-player { padding: 15px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .05); transition: border-color .2s; }
.media-player-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: rgba(255, 255, 255, .8); font-size: 10px; }
.media-player-heading span:last-child { color: var(--lime); font-family: var(--mono); font-size: 8px; text-align: right; }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 8px; background: #081a15; object-fit: contain; }
.demo-audio { display: block; width: 100%; height: 40px; margin-bottom: 10px; color-scheme: dark; }
.media-load-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px dashed rgba(216, 249, 157, .3);
  border-radius: 9px;
  color: var(--lime);
  background: rgba(216, 249, 157, .04);
  text-align: left;
  transition: background .2s, border-color .2s;
}
.media-load-button:hover:not(:disabled) { border-color: rgba(216, 249, 157, .6); background: rgba(216, 249, 157, .09); }
.media-load-button:disabled { cursor: wait; opacity: .6; }
.media-load-button > svg { flex: 0 0 auto; width: 32px; height: 32px; }
.media-load-button > span { display: flex; flex-direction: column; gap: 5px; }
.media-load-button strong { font-size: 11px; font-weight: 600; }
.media-load-button small { color: rgba(255, 255, 255, .45); font-size: 8px; }
.media-status { margin-top: 9px; overflow-wrap: anywhere; color: rgba(255, 255, 255, .42); font-family: var(--mono); font-size: 8px; line-height: 1.6; }
.media-player.is-playing { border-color: rgba(216, 249, 157, .28); }
.media-player.is-loading { border-color: rgba(216, 249, 157, .2); }
.media-player.media-error { border-color: rgba(242, 167, 139, .35); }
.media-player.media-error .media-status { color: #f1b39d; }

.about-section { padding: 110px 0; }
.about-section-header { margin-bottom: 52px; }
.about-profile { display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: 76px; }
.portrait-column { position: sticky; top: 116px; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg, #dfe8d5, #c7d5bd); box-shadow: var(--shadow); }
.portrait-frame::before { position: absolute; top: 20px; right: 20px; z-index: 2; width: 45px; height: 45px; border-top: 1px solid rgba(255, 255, 255, .65); border-right: 1px solid rgba(255, 255, 255, .65); content: ""; }
.portrait-frame > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.portrait-frame:hover > img { transform: scale(1.025); }
.photo-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; color: #72856a; text-align: center; }
.photo-fallback svg { width: 76px; height: 76px; margin-inline: auto; }
.photo-fallback span { font-size: 16px; letter-spacing: 4px; }
.portrait-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 14px; padding: 44px 22px 20px; color: var(--white); background: linear-gradient(transparent, rgba(14, 39, 31, .78)); font-size: 8px; font-weight: 600; letter-spacing: 1.4px; }
.photo-help { margin-top: 12px; color: #8b968e; font-family: var(--mono); font-size: 9px; line-height: 1.6; text-align: center; }
.about-story { padding-top: 8px; }
.about-story > p { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 2.1; }
.about-story .about-lead { margin-top: 0; margin-bottom: 22px; color: var(--ink); font-size: 20px; line-height: 1.8; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.value-item { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .45); }
.value-item > span { color: #96aa88; font-family: var(--serif); font-size: 18px; }
.value-item h3 { margin-top: 11px; font-size: 13px; font-weight: 600; }
.value-item p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.skills-block { margin-top: 32px; }
.skills-block h3 { font-size: 14px; font-weight: 600; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.skill-list span { padding: 7px 11px; border: 1px solid #dce3d6; border-radius: 7px; color: #5d6f57; background: #f0f4ea; font-family: var(--mono); font-size: 9px; }

.future-plans { margin-top: 110px; padding-top: 80px; border-top: 1px solid var(--line); }
.future-header { max-width: 620px; }
.future-header > p:last-child { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.future-card { position: relative; min-height: 290px; padding: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .48); transition: transform .25s, box-shadow .25s; }
.future-card:hover { box-shadow: 0 20px 45px rgba(33, 61, 49, .08); }
.plan-index { position: absolute; top: 12px; right: 20px; color: rgba(23, 61, 50, .06); font-family: var(--serif); font-size: 76px; line-height: 1; }
.plan-time { position: relative; color: #789064; font-size: 9px; font-weight: 600; letter-spacing: .5px; }
.future-card h3 { position: relative; max-width: 240px; margin-top: 34px; font-size: 19px; font-weight: 600; line-height: 1.6; }
.future-card > p:last-child { position: relative; margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.future-quote { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 28px; padding: 30px 34px; border-radius: 16px; color: var(--white); background: var(--forest); }
.future-quote p { font-size: 17px; line-height: 1.8; }
.future-quote span { flex-shrink: 0; color: var(--lime); font-size: 10px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; color: #929c95; font-size: 9px; letter-spacing: 1px; }
.footer-content a { color: var(--forest); font-size: 11px; font-weight: 600; letter-spacing: 0; }
:focus-visible { outline: 3px solid rgba(115, 153, 95, .35); outline-offset: 4px; }

/* 所有卡片与照片共享轻盈的悬停偏移，不改变原有 transform 旋转和位移。 */
.identity-card, .fact-item, .hero-code-card, .hero-photo-card, .explore-card,
.demo-card, .media-player, .portrait-frame, .value-item, .future-card,
.skill-chips span, .skill-list span {
  translate: 0 0;
  transition: translate .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
.hero-photo-frame > img, .portrait-frame > img {
  transition: transform .45s ease, translate .3s cubic-bezier(.2, .8, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .identity-card:hover, .hero-code-card:hover, .hero-photo-card:hover, .explore-card:hover,
  .demo-card:hover, .value-item:hover, .future-card:hover { translate: 0 -6px; }

  .fact-item:hover, .media-player:hover, .portrait-frame:hover { translate: 0 -4px; }

  .skill-chips span:hover, .skill-list span:hover { translate: 0 -3px; }

  .identity-card:hover, .demo-card:hover, .value-item:hover, .future-card:hover {
    border-color: rgba(93, 125, 82, .25);
    box-shadow: 0 18px 45px rgba(33, 61, 49, .1);
  }

  .hero-code-card:hover, .hero-photo-card:hover, .portrait-frame:hover {
    box-shadow: 0 30px 75px rgba(23, 61, 50, .18);
  }

  .media-player:hover { border-color: rgba(216, 249, 157, .25); background: rgba(255, 255, 255, .07); }
  .skill-chips span:hover, .skill-list span:hover { background: #e7efdc; }
  .hero-photo-card:hover .hero-photo-frame > img, .portrait-frame:hover > img { translate: 0 -4px; }
}

@media (max-width: 1060px) {
  .nav-container, .container { width: min(100% - 44px, 1160px); }
  .brand-name { display: none; }
  .hero { gap: 28px; }
  .hero h1 { font-size: 42px; }
  .hero-dashboard::before { width: 350px; height: 350px; }
  .dashboard-orbit { width: 390px; height: 390px; }
  .hero-code-card { left: -4px; width: 320px; }
  .hero-photo-card { transform: translateX(32px) rotate(2deg); }
  .explore-card { right: 0; }
  .about-profile { gap: 45px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { display: grid; grid-template-columns: auto 90px 1fr; align-items: center; gap: 10px; }
  .value-item h3, .value-item p { margin-top: 0; }
}

@media (max-width: 820px) {
  .nav-container { flex-wrap: wrap; gap: 0 20px; padding-top: 14px; }
  .brand { order: 1; }
  .user-actions { order: 2; margin-left: auto; }
  .nav-links { order: 3; justify-content: center; width: 100%; gap: 42px; }
  .nav-link { padding: 14px 0; }
  .nav-link::after { bottom: 5px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 58px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(39px, 7vw, 54px); }
  .hero-dashboard { min-height: 600px; }
  .hero-dashboard::before { width: 430px; height: 430px; max-width: 88vw; max-height: 88vw; }
  .dashboard-orbit { width: 465px; height: 465px; max-width: 94vw; max-height: 94vw; }
  .hero-code-card { left: 50%; transform: translateX(-75%) rotate(-12deg); }
  .hero-photo-card { transform: translateX(58px) rotate(2deg); }
  .explore-card { right: 8%; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-bottom: 75px; }
  .fact-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .fact-item:nth-child(4) { border-top: 1px solid var(--line); }
  .section-header { align-items: flex-start; flex-direction: column; gap: 13px; }
  .section-header > p { max-width: 580px; text-align: left; }
  .project-stage { padding: 24px; }
  .stage-projects.grid-two, .demo-card-wide { grid-template-columns: 1fr; }
  .demo-media { min-height: 280px; }
  .about-profile { grid-template-columns: 1fr; gap: 42px; }
  .portrait-column { position: static; width: min(100%, 480px); margin-inline: auto; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .value-item { display: block; }
  .value-item h3 { margin-top: 11px; }
  .value-item p { margin-top: 7px; }
  .future-grid { grid-template-columns: 1fr; }
  .future-card { min-height: 0; }
}

@media (max-width: 560px) {
  .nav-container, .container { width: calc(100% - 36px); }
  .greeting { display: none; }
  .hero { min-height: auto; padding-top: 44px; padding-bottom: 60px; }
  .eyebrow { align-items: flex-start; font-size: 7px; line-height: 1.7; }
  .eyebrow > span { margin-top: 6px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); letter-spacing: -1.4px; }
  .title-highlight::after { height: 10px; }
  .identity-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-dashboard { min-height: 515px; }
  .hero-code-card { top: 48px; left: 0; width: 265px; transform: rotate(-9deg); }
  .hero-code-header { padding: 11px 12px; font-size: 7px; }
  .hero-code-body { padding: 15px 12px; font-size: 7px; }
  .hero-code-line { grid-template-columns: 20px 1fr; }
  .hero-code-footer { padding: 10px 12px; font-size: 6px; }
  .hero-photo-card { width: min(300px, 88%); transform: translateX(18px) rotate(2deg); }
  .explore-card { right: -2px; bottom: 56px; padding: 11px 13px; }
  .explore-card strong { font-size: 9px; }
  .fact-item { align-items: flex-start; flex-direction: column; gap: 3px; min-height: 90px; padding-left: 20px; }
  .fact-item strong { font-size: 28px; }
  .works-section, .about-section { padding: 74px 0; }
  .project-stage { padding: 17px; border-radius: 18px; }
  .stage-heading { grid-template-columns: auto 1fr; gap: 13px; }
  .stage-number { font-size: 39px; }
  .stage-heading h3 { font-size: 19px; }
  .stage-caption { display: none; }
  .demo-info, .demo-media { padding: 22px; }
  .demo-info h4 { font-size: 20px; }
  .demo-media { min-height: 270px; }
  .media-player { padding: 11px; }
  .media-player-heading { font-size: 9px; }
  .media-load-button { min-height: 66px; padding: 10px; }
  .media-load-button small { line-height: 1.5; }
  .about-section-header { margin-bottom: 36px; }
  .about-story .about-lead { font-size: 18px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { display: grid; grid-template-columns: auto 80px 1fr; align-items: center; gap: 8px; }
  .value-item h3, .value-item p { margin-top: 0; }
  .future-plans { margin-top: 72px; padding-top: 58px; }
  .future-quote { align-items: flex-start; flex-direction: column; gap: 12px; padding: 24px; }
  .future-quote p { font-size: 15px; }
  .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
