:root {
  --ink: #10221f;
  --ink-2: #17352f;
  --paper: #f3f6f3;
  --surface: #fbfcfa;
  --surface-soft: #e2ece7;
  --line: rgba(16, 34, 31, 0.16);
  --line-light: rgba(246, 250, 247, 0.18);
  --muted: #5a6d67;
  --teal: #087c72;
  --teal-bright: #35c5b3;
  --coral: #e46f55;
  --max: 1480px;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --display: Georgia, "Songti SC", "STSong", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 4px; }

.section-pad { padding-right: max(28px, calc((100vw - 1320px) / 2)); padding-left: max(28px, calc((100vw - 1320px) / 2)); }
.section-label { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.progress { position: fixed; z-index: 300; top: 0; left: 0; width: 100%; height: 3px; background: rgba(58, 195, 179, 0.12); }
.progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--teal-bright); }

.topbar { position: fixed; z-index: 200; top: 18px; left: 50%; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; width: min(1320px, calc(100% - 56px)); min-height: 58px; padding: 0 12px 0 20px; transform: translateX(-50%); border: 1px solid rgba(16, 34, 31, 0.1); border-radius: 7px; background: rgba(251, 252, 250, .98); box-shadow: 0 12px 34px rgba(6, 24, 20, 0.13); }
.mark { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 12px; }
.mark strong { font-size: 15px; }
.mark span { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); }
.track-switch { display: flex; margin-right: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.track-switch a { min-width: 52px; padding: 6px 10px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: center; transition: color .2s ease, background .2s ease; }
.track-switch a + a { border-left: 1px solid var(--line); }
.track-switch a:hover { color: var(--teal); }
.track-switch a.active { background: var(--ink); color: #f4f8f5; }
.topbar nav { display: flex; gap: 22px; margin-right: 26px; font-size: 13px; }
.topbar nav a { transition: color 0.2s ease; }
.topbar nav a:hover { color: var(--teal); }
.top-resume { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 5px; background: var(--ink); color: #f6faf7; font-size: 13px; font-weight: 750; transition: transform .25s var(--ease), background .25s ease; }
.top-resume:hover { transform: translateY(-2px); background: var(--teal); }
.menu { display: none; border: 0; background: transparent; cursor: pointer; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(540px, 1.1fr); gap: clamp(52px, 7vw, 112px); align-items: center; min-height: 96svh; padding-top: 126px; padding-bottom: 72px; overflow: hidden; background: radial-gradient(ellipse 112px 92px at 8% 18%, rgba(53, 197, 179, .2) 0%, rgba(53, 197, 179, .07) 38%, transparent 74%), radial-gradient(ellipse 86px 72px at 35% 12%, rgba(53, 197, 179, .11) 0%, transparent 75%), radial-gradient(ellipse 128px 104px at 73% 20%, rgba(53, 197, 179, .15) 0%, rgba(53, 197, 179, .04) 45%, transparent 76%), radial-gradient(ellipse 92px 76px at 90% 62%, rgba(53, 197, 179, .1) 0%, transparent 74%), radial-gradient(ellipse 84px 68px at 16% 73%, rgba(53, 197, 179, .08) 0%, transparent 76%), #10221f; color: #f4f8f5; }
.hero::before { position: absolute; top: 15%; left: 7%; width: 4px; height: 4px; border-radius: 1px; background: rgba(53, 197, 179, .78); box-shadow: 24vw 7vh 24px 2px rgba(53, 197, 179, .26), 54vw -2vh 30px 3px rgba(53, 197, 179, .15), 78vw 18vh 24px 2px rgba(53, 197, 179, .22), 12vw 58vh 26px 2px rgba(53, 197, 179, .11), 67vw 64vh 32px 3px rgba(53, 197, 179, .18), 88vw 52vh 20px 1px rgba(53, 197, 179, .13); content: ""; pointer-events: none; }
.hero-copy, .hero-stage { position: relative; z-index: 1; }
.hero-copy { padding-top: 18px; }
.hero-kicker { color: var(--teal-bright); font-size: 14px; font-weight: 750; }
.hero h1 { margin-top: 12px; font-family: var(--display); font-size: clamp(78px, 8.3vw, 122px); font-weight: 400; line-height: .94; letter-spacing: -0.035em; }
.hero-focus { margin-top: 20px; color: #f4f8f5; font-size: clamp(23px, 2.2vw, 32px); font-weight: 650; }
.hero-summary { max-width: 650px; margin-top: 24px; color: rgba(244, 248, 245, .76); font-size: 18px; line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.button, .project-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .25s var(--ease), background .25s ease, color .25s ease, box-shadow .25s ease; }
.button:hover, .project-action:hover { transform: translateY(-2px); }
.button span, .project-action span { margin-left: 14px; font-size: 17px; transition: transform .22s var(--ease); }
.button:hover span, .project-action:hover span { transform: translate(3px, -2px); }
.button-primary { background: var(--teal-bright); color: var(--ink); box-shadow: 0 10px 28px rgba(53, 197, 179, .15); }
.button-secondary { border-color: rgba(244, 248, 245, .35); color: #f4f8f5; }
.text-link { padding: 9px 4px; border-bottom: 1px solid currentColor; color: var(--teal-bright); font-size: 14px; font-weight: 700; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; max-width: 720px; margin-top: 38px; border-top: 1px solid var(--line-light); }
.profile-facts div { padding: 14px 22px 13px 0; border-bottom: 1px solid var(--line-light); }
.profile-facts div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-light); }
.profile-facts dt { color: rgba(244, 248, 245, .48); font-size: 11px; font-weight: 700; }
.profile-facts dd { margin-top: 3px; color: rgba(244, 248, 245, .91); font-size: 13px; line-height: 1.45; }

.hero-stage { min-height: 590px; transform: perspective(1200px) rotateY(-2deg); }
.hero-art { position: absolute; inset: 0 42px 56px 0; overflow: hidden; border: 1px solid rgba(244, 248, 245, .18); border-radius: 8px; background: #203a34; box-shadow: 0 36px 90px rgba(0, 0, 0, .32); }
.hero-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 19, 16, .76) 100%); content: ""; }
.hero-art img { width: 100%; height: 100%; transform: scale(1.025); object-fit: cover; }
.hero-art figcaption { position: absolute; z-index: 2; bottom: 22px; left: 24px; color: rgba(244, 248, 245, .82); font-size: 12px; }
.work-entry { position: absolute; right: 0; bottom: 0; width: min(440px, 72%); border: 1px solid rgba(16, 34, 31, .11); border-radius: 7px; background: rgba(251, 252, 250, .98); color: var(--ink); box-shadow: 0 22px 54px rgba(0, 0, 0, .25); }
.entry-head { display: flex; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 750; }
.entry-item { position: relative; display: grid; grid-template-columns: 1fr auto; row-gap: 1px; padding: 15px 48px 15px 18px; border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s var(--ease); }
.entry-item:hover { transform: translateX(5px); background: #e7f2ed; }
.entry-item > span { grid-column: 1 / -1; color: var(--teal); font-size: 9px; font-weight: 800; }
.entry-item strong { margin-top: 3px; font-size: 18px; line-height: 1.2; }
.entry-item small { align-self: end; color: var(--muted); font-size: 10px; }
.entry-item b { position: absolute; top: 50%; right: 17px; transform: translateY(-50%); color: var(--teal); font-size: 18px; transition: transform .25s var(--ease); }
.entry-item:hover b { transform: translate(4px, -50%); }
.entry-featured { background: #d9ece7; }

.work { position: relative; padding-bottom: 1px; background: #0b1d1a; }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 42px; min-height: 110px; border-top: 1px solid rgba(244, 248, 245, .1); border-bottom: 1px solid rgba(244, 248, 245, .1); background: #0b1d1a; color: #f4f8f5; }
.work-head > div { display: flex; align-items: baseline; gap: 22px; }
.work-head .section-label { color: var(--teal-bright); }
.work-head h2 { font-size: 24px; font-weight: 650; }
.work-head > p { max-width: 600px; color: rgba(244, 248, 245, .6); font-size: 14px; text-align: right; }

.project { position: relative; scroll-margin-top: 86px; padding: clamp(42px, 6vw, 92px) 0; overflow: hidden; background: #0b1d1a; }
.project + .project { border-top: 1px solid rgba(244, 248, 245, .08); }
.project-atmosphere { position: absolute; inset: 0; pointer-events: none; opacity: .18; filter: saturate(.75) contrast(.95); background-repeat: no-repeat; background-size: min(66vw, 980px) auto; }
.project-arcana .project-atmosphere { right: -8%; background-image: linear-gradient(90deg, #0b1d1a 0%, rgba(11, 29, 26, .12) 68%), url('./assets/projects/arcana/arcana-workbench.webp'); background-position: 100% 9%; }
.project-sanbao .project-atmosphere { opacity: .2; background-image: linear-gradient(90deg, #0b1d1a 0%, rgba(11, 29, 26, .18) 72%), url('./assets/projects/sanbao/posters/poster-main.webp'); background-position: 100% 12%; background-size: auto 720px; }
.project-insightflow .project-atmosphere { opacity: .16; background-image: linear-gradient(90deg, #0b1d1a 0%, rgba(11, 29, 26, .2) 70%), url('./assets/portfolio-workflow-hero-web.webp'); background-position: 100% 16%; }
.project-shell { position: relative; z-index: 1; width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: clamp(48px, 5vw, 78px) clamp(32px, 5vw, 76px) clamp(52px, 5vw, 78px); border-radius: 8px; box-shadow: 0 32px 90px rgba(0, 0, 0, .26); }
.project-arcana .project-shell { background: linear-gradient(135deg, rgba(53, 197, 179, .12) 0, rgba(53, 197, 179, 0) 17%), linear-gradient(315deg, rgba(53, 197, 179, .07) 0, rgba(53, 197, 179, 0) 12%), #f4f8f4; }
.project-sanbao .project-shell { background: linear-gradient(128deg, rgba(53, 197, 179, .09) 0, rgba(53, 197, 179, 0) 14%), linear-gradient(308deg, rgba(53, 197, 179, .08) 0, rgba(53, 197, 179, 0) 15%), #fbfcfa; }
.project-insightflow .project-shell { border: 1px solid rgba(244, 248, 245, .13); background: linear-gradient(135deg, rgba(53, 197, 179, .11) 0, rgba(53, 197, 179, 0) 16%), linear-gradient(315deg, rgba(53, 197, 179, .06) 0, rgba(53, 197, 179, 0) 12%), #16332e; color: #f4f8f5; }

.project-header { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 28px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.project-insightflow .project-header { border-color: var(--line-light); }
.project-number { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding-right: 18px; border-right: 1px solid var(--line); }
.project-insightflow .project-number { border-color: var(--line-light); }
.project-number span { color: var(--teal); font-size: 40px; font-weight: 300; line-height: 1; }
.project-insightflow .project-number span { color: var(--teal-bright); }
.project-number small { color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.4; }
.project-insightflow .project-number small { color: rgba(244, 248, 245, .55); }
.project-title h3 { font-family: var(--display); font-size: clamp(56px, 6vw, 86px); font-weight: 400; line-height: .95; letter-spacing: -0.035em; }
.project-title p { margin-top: 9px; color: var(--muted); font-size: 16px; }
.project-insightflow .project-title p { color: rgba(244, 248, 245, .62); }
.project-status { align-self: start; padding: 7px 10px; border: 1px solid currentColor; border-radius: 4px; color: var(--teal); font-size: 11px; font-weight: 750; white-space: nowrap; }
.project-insightflow .project-status { color: var(--teal-bright); }

.project-intro { display: grid; grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr); gap: clamp(48px, 6vw, 96px); padding: 52px 0 34px; }
.project-intro h4 { max-width: 650px; font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; }
.project-facts { border-top: 1px solid var(--line); }
.project-insightflow .project-facts { border-color: var(--line-light); }
.fact-row { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.project-insightflow .fact-row { border-color: var(--line-light); }
.fact-row strong { color: var(--teal); font-size: 12px; }
.project-insightflow .fact-row strong { color: var(--teal-bright); }
.fact-row p { color: var(--muted); font-size: 14px; line-height: 1.72; }
.project-insightflow .fact-row p { color: rgba(244, 248, 245, .7); }

.project-detail { min-width: 0; }
.project-meta { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.project-insightflow .project-meta { border-color: var(--line-light); }
.project-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.project-action { min-height: 42px; border-color: rgba(16, 34, 31, .22); background: rgba(255, 255, 255, .32); }
.project-action.primary { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 9px 24px rgba(8, 124, 114, .16); }
.project-insightflow .project-action { border-color: var(--line-light); background: rgba(255, 255, 255, .04); color: #f4f8f5; }
.project-insightflow .project-action.primary { border-color: var(--teal-bright); background: var(--teal-bright); color: var(--ink); }
.project-metrics { display: flex; align-items: stretch; width: 100%; }
.project-metrics div { flex: 1 1 0; min-width: 0; padding: 2px 14px; border-left: 1px solid var(--line); }
.project-metrics div:first-child { padding-left: 0; border-left: 0; }
.project-insightflow .project-metrics div { border-color: var(--line-light); }
.project-metrics strong, .project-metrics span { display: block; }
.project-metrics strong { font-size: 20px; font-weight: 650; line-height: 1.25; }
.project-metrics span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.project-insightflow .project-metrics span { color: rgba(244, 248, 245, .5); }
.validation-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.validation-item { position: relative; display: grid; gap: 2px; min-width: 0; padding: 11px 14px 11px 28px; }
.validation-item + .validation-item { border-left: 1px solid var(--line); }
.validation-item::before { position: absolute; top: 17px; left: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); content: ""; }
.validation-item.usable::before { background: var(--teal); }
.validation-item.limited::before { background: var(--teal-bright); }
.validation-item.iterating::before { background: var(--coral); }
.validation-item span { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.validation-item strong { font-size: 12px; line-height: 1.45; }
.action-qr { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.action-qr img { width: 34px; height: 34px; object-fit: cover; border-radius: 3px; }

.scene-map, .project-gallery, .workflow-evidence, .example-showcase, .evidence-block { margin-top: 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.project-insightflow .section-heading { border-color: var(--line-light); }
.section-heading span { font-size: 14px; font-weight: 800; }
.section-heading small { color: var(--muted); font-size: 10px; }
.project-insightflow .section-heading small { color: rgba(244, 248, 245, .5); }
.heading-action { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--teal); font: inherit; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; }
.heading-action:hover { color: var(--ink); }
.heading-action:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.heading-action span { font-size: 13px; }
.scene-map ol { display: grid; grid-template-columns: repeat(var(--scene-cols, 5), minmax(0, 1fr)); margin: 16px 0 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .28); list-style: none; }
.project-insightflow .scene-map ol { --scene-cols: 6; border-color: var(--line-light); background: rgba(7, 24, 21, .28); }
.scene-map li { position: relative; min-height: 178px; padding: 22px 20px 20px; }
.scene-map li + li { border-left: 1px solid var(--line); }
.project-insightflow .scene-map li + li { border-color: var(--line-light); }
.scene-map li:not(:last-child)::after { position: absolute; z-index: 2; top: 31px; right: -9px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 10px; content: "→"; }
.project-insightflow .scene-map li:not(:last-child)::after { background: var(--teal-bright); color: var(--ink); }
.scene-map li > span { color: var(--teal); font-size: 10px; font-weight: 800; }
.project-insightflow .scene-map li > span { color: var(--teal-bright); }
.scene-map li strong { display: block; margin-top: 18px; font-size: 16px; }
.scene-map li p { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-insightflow .scene-map li p { color: rgba(244, 248, 245, .58); }

.workflow-heading > div:first-child { display: grid; gap: 5px; }
.workflow-heading > div:first-child small { max-width: 68ch; line-height: 1.55; }
.workflow-controls { display: flex; align-items: center; gap: 7px; }
.workflow-controls > span { margin-right: 4px; color: rgba(244, 248, 245, .5); font-size: 10px; }
.workflow-controls button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-light); border-radius: 4px; background: rgba(255, 255, 255, .04); color: #f4f8f5; font-size: 17px; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.workflow-controls button:hover { border-color: var(--teal-bright); background: var(--teal-bright); color: var(--ink); }
.workflow-controls button:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
.workflow-viewport { margin-top: 16px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line-light); border-radius: 7px; background: #191919; cursor: grab; scrollbar-color: var(--teal-bright) rgba(255, 255, 255, .08); scrollbar-width: thin; overscroll-behavior-inline: contain; }
.workflow-viewport:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }
.workflow-viewport.dragging { cursor: grabbing; user-select: none; }
.workflow-viewport::-webkit-scrollbar { height: 8px; }
.workflow-viewport::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); }
.workflow-viewport::-webkit-scrollbar-thumb { border: 2px solid #191919; border-radius: 4px; background: var(--teal-bright); }
.workflow-viewport img { display: block; width: auto; min-width: 2200px; height: clamp(430px, 39vw, 560px); object-fit: contain; cursor: zoom-in; }

.example-showcase { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 292px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.example-index { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 24px 24px 24px 0; border-right: 1px solid var(--line-light); }
.example-index > div:first-child strong { font-size: 14px; }
.example-index > div:first-child p { margin-top: 5px; color: rgba(244, 248, 245, .48); font-size: 10px; }
.example-tabs { display: grid; gap: 2px; }
.example-tabs button { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: center; min-height: 38px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: rgba(244, 248, 245, .55); font: inherit; font-size: 11px; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.example-tabs button span { color: var(--teal-bright); font-size: 9px; }
.example-tabs button:hover, .example-tabs button.active { background: rgba(58, 220, 202, .1); color: #f4f8f5; }
.example-tabs button:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.example-panels { min-width: 0; padding: 26px 0 26px 32px; }
.example-panel { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.example-panel.active { display: grid; animation: example-in .3s var(--ease) both; }
.example-panel[hidden] { display: none; }
@keyframes example-in { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.example-source > span { color: var(--teal-bright); font-size: 10px; font-weight: 750; }
.example-source blockquote { margin: 14px 0 0; color: #f4f8f5; font-family: var(--display); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.45; }
.example-source blockquote + blockquote { padding-top: 12px; border-top: 1px solid var(--line-light); }
.example-result h5 { font-size: 17px; }
.example-result ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.example-result li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; color: rgba(244, 248, 245, .68); font-size: 12px; line-height: 1.55; }
.example-result li strong { color: var(--teal-bright); font-size: 10px; }
.example-result p { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-light); color: rgba(244, 248, 245, .66); font-size: 12px; line-height: 1.65; }
.example-result p strong { margin-right: 10px; color: #f4f8f5; }

.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 16px 0; }
.gallery-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .38); color: var(--muted); font-size: 12px; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease); }
.gallery-tab span { font-size: 9px; opacity: .65; }
.gallery-tab:hover, .gallery-tab.active { transform: translateY(-2px); border-color: var(--teal); background: var(--teal); color: #fff; }
.project-insightflow .gallery-tab { border-color: var(--line-light); background: rgba(255, 255, 255, .04); color: rgba(244, 248, 245, .7); }
.project-insightflow .gallery-tab:hover, .project-insightflow .gallery-tab.active { border-color: var(--teal-bright); background: var(--teal-bright); color: var(--ink); }
.gallery-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .4); box-shadow: 0 20px 54px rgba(16, 34, 31, .12); }
.gallery-image-wrap { display: grid; place-items: center; min-height: 460px; max-height: 560px; overflow: hidden; background: #dfe9e4; }
.gallery-stage img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; cursor: zoom-in; transition: opacity .2s ease, transform .4s var(--ease); }
.desktop-gallery.switching .gallery-stage img { opacity: .2; transform: scale(.99); }
.gallery-stage figcaption { display: grid; align-content: end; gap: 16px; min-height: 100%; padding: 34px; border-left: 1px solid var(--line); background: linear-gradient(145deg, rgba(58, 195, 179, .1) 0, rgba(58, 195, 179, 0) 22%), #eef5f0; }
.gallery-stage figcaption > span { color: var(--teal); font-size: 11px; font-weight: 800; }
.gallery-stage figcaption strong { font-family: var(--display); font-size: 36px; font-weight: 400; }
.gallery-stage figcaption p { margin-top: 13px; color: var(--ink); font-size: 16px; line-height: 1.65; }
.gallery-stage figcaption small { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.phone-groups { overflow: hidden; }
.phone-group { display: none; justify-content: center; gap: clamp(22px, 4vw, 54px); align-items: start; padding: 22px 12px 30px; }
.phone-group.active { display: flex; animation: group-in .48s var(--ease) both; }
@keyframes group-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.phone-shot { flex: 0 1 240px; max-width: 240px; }
.phone-shot img { width: 100%; aspect-ratio: .53; object-fit: cover; border: 1px solid rgba(16, 34, 31, .14); border-radius: 18px; background: #edf3ee; box-shadow: 0 22px 46px rgba(16, 34, 31, .16); cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s ease; }
.phone-shot:hover img { transform: translateY(-7px); box-shadow: 0 28px 54px rgba(16, 34, 31, .22); }
.phone-shot figcaption { display: grid; gap: 2px; padding-top: 11px; text-align: center; }
.phone-shot figcaption strong { font-size: 13px; }
.phone-shot figcaption span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.sanbao-media-foot { display: flex; justify-content: center; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.poster-mini { width: min(100%, 760px); }
.poster-mini-head { display: flex; justify-content: space-between; gap: 28px; margin-bottom: 14px; }
.poster-mini-head div { max-width: 520px; }
.poster-mini-head strong { font-size: 12px; }
.poster-mini-head p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.poster-mini-head span { color: var(--muted); font-size: 10px; }
.poster-mini-track { display: flex; justify-content: center; gap: 10px; }
.poster-mini-track figure { width: min(116px, 16vw); }
.poster-mini-track img { width: 100%; aspect-ratio: .75; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; cursor: zoom-in; transition: transform .3s var(--ease); }
.poster-mini-track figure:hover img { transform: translateY(-4px); }
.poster-mini-track figcaption { padding-top: 4px; color: var(--muted); font-size: 9px; text-align: center; }
.qr-entry { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .5); cursor: pointer; }
.qr-entry img { width: 62px; height: 62px; object-fit: cover; border-radius: 3px; }
.qr-entry span { display: grid; text-align: left; }
.qr-entry strong { font-size: 12px; }
.qr-entry small { color: var(--muted); font-size: 10px; }

.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.proof-card { position: relative; min-height: 170px; padding: 24px 26px; overflow: hidden; border: 1px solid rgba(16, 34, 31, .12); border-radius: 7px; background: rgba(255, 255, 255, .52); box-shadow: 0 12px 30px rgba(16, 34, 31, .06); }
.project-insightflow .proof-card { border-color: var(--line-light); background: rgba(255, 255, 255, .045); box-shadow: none; }
.proof-card::after { position: absolute; right: -20px; bottom: -32px; width: 88px; height: 88px; border: 1px solid rgba(8, 124, 114, .13); border-radius: 50%; content: ""; }
.proof-card > span { color: var(--teal); font-size: 10px; font-weight: 800; }
.project-insightflow .proof-card > span { color: var(--teal-bright); }
.proof-card strong { display: block; margin-top: 12px; font-size: 17px; }
.proof-card p { max-width: 56ch; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-insightflow .proof-card p { color: rgba(244, 248, 245, .65); }
.privacy-note { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.project-insightflow .privacy-note { border-color: var(--line-light); color: rgba(244, 248, 245, .48); }

.lightbox { width: min(92vw, 1240px); max-width: none; padding: 22px; border: 0; border-radius: 7px; background: #091714; color: #f4f8f5; box-shadow: 0 30px 90px rgba(0, 0, 0, .44); }
.lightbox::backdrop { background: rgba(5, 15, 13, .86); }
.lightbox button { position: absolute; z-index: 2; top: 10px; right: 14px; width: 36px; height: 36px; border: 1px solid rgba(244, 248, 245, .35); border-radius: 50%; background: rgba(9, 23, 20, .7); color: #f4f8f5; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox p { margin-top: 12px; color: rgba(244, 248, 245, .68); font-size: 12px; }

.about { display: grid; grid-template-columns: minmax(360px, .78fr) minmax(560px, 1.22fr); gap: clamp(60px, 8vw, 118px); padding-top: 108px; padding-bottom: 110px; background: linear-gradient(132deg, rgba(53, 197, 179, .12) 0, rgba(53, 197, 179, 0) 15%), linear-gradient(312deg, rgba(53, 197, 179, .07) 0, rgba(53, 197, 179, 0) 11%), #edf3ee; }
.about-title .section-label { margin-bottom: 25px; }
.about h2 { font-family: var(--display); font-size: clamp(50px, 5.3vw, 76px); font-weight: 400; line-height: 1.03; letter-spacing: -0.035em; }
.about h2 em { color: var(--teal); font-style: normal; }
.education-note { display: grid; gap: 3px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.education-note strong { font-size: 14px; }
.education-note span { color: var(--muted); font-size: 12px; }
.about-copy > p { max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.skills-list { margin-top: 28px; border-top: 1px solid var(--line); }
.skills-list section { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.skills-list strong { color: var(--teal); font-size: 12px; }
.skills-list p { color: var(--ink); font-size: 13px; line-height: 1.7; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; padding-top: 82px; padding-bottom: 82px; background: linear-gradient(130deg, rgba(53, 197, 179, .13) 0, rgba(53, 197, 179, 0) 17%), linear-gradient(310deg, rgba(53, 197, 179, .06) 0, rgba(53, 197, 179, 0) 12%), #16332e; color: #f4f8f5; }
.contact .section-label { color: var(--teal-bright); }
.contact h2 { margin-top: 14px; font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; }
.contact-profile { margin-top: 22px; color: rgba(244, 248, 245, .62); font-size: 13px; line-height: 1.7; }
.contact-actions { display: grid; grid-template-columns: auto auto; gap: 12px 22px; width: min(100%, 360px); align-items: center; }
.contact-actions > a:not(.text-link) { color: rgba(244, 248, 245, .82); font-size: 13px; text-decoration: none; }
.contact-actions > a:not(.text-link):hover { color: var(--teal-bright); }
.button-light { background: var(--teal-bright); color: var(--ink); }
.light-link { grid-column: 1 / -1; justify-self: start; margin-bottom: 8px; color: var(--teal-bright); }
.footer { display: flex; justify-content: space-between; gap: 30px; padding: 22px max(28px, calc((100vw - 1320px) / 2)); background: #091714; color: rgba(244, 248, 245, .5); font-size: 10px; }

.js.motion-enabled [data-reveal] { opacity: .42; transform: translateY(24px); filter: blur(1px); transition: opacity .52s var(--ease), transform .52s var(--ease), filter .52s var(--ease); }
.js.motion-enabled [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.js.motion-enabled [data-board] { opacity: .78; transform: translateY(40px) scale(.994); clip-path: inset(0 0 7% 0 round 8px); filter: blur(1.5px); transition: opacity .66s var(--ease), transform .66s var(--ease), clip-path .66s var(--ease), filter .56s var(--ease); }
.js.motion-enabled [data-board].is-visible { opacity: 1; transform: none; clip-path: inset(0 round 8px); filter: none; }
.js.motion-enabled .scene-map.is-visible li { animation: scene-in .5s var(--ease) both; animation-delay: calc(var(--step-index) * 70ms); }
@keyframes scene-in { from { opacity: .12; transform: translateY(18px); background: rgba(58, 195, 179, .14); } to { opacity: 1; transform: none; background: transparent; } }

.motion-enabled .hero-copy > * { animation: hero-copy-in .6s var(--ease) both; }
.motion-enabled .hero-copy > :nth-child(2) { animation-delay: 70ms; }
.motion-enabled .hero-copy > :nth-child(3) { animation-delay: 130ms; }
.motion-enabled .hero-copy > :nth-child(4) { animation-delay: 190ms; }
.motion-enabled .hero-copy > :nth-child(5) { animation-delay: 250ms; }
.motion-enabled .hero-copy > :nth-child(6) { animation-delay: 310ms; }
.motion-enabled .hero-art { animation: hero-art-in .72s 90ms var(--ease) both; }
.motion-enabled .work-entry { animation: hero-entry-in .66s 280ms var(--ease) both; }
@keyframes hero-copy-in { from { opacity: .55; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes hero-art-in { from { opacity: .55; transform: scale(1.02); clip-path: inset(0 9% 0 0 round 8px); filter: blur(2px); } to { opacity: 1; transform: none; clip-path: inset(0 round 8px); filter: none; } }
@keyframes hero-entry-in { from { opacity: .38; transform: translate(28px, 16px); box-shadow: 0 8px 16px rgba(0, 0, 0, .08); } to { opacity: 1; transform: none; box-shadow: 0 22px 54px rgba(0, 0, 0, .25); } }

.motion-enabled .project-header.is-visible > * { animation: project-mark-in .62s var(--ease) both; }
.motion-enabled .project-header.is-visible > :nth-child(2) { animation-delay: 80ms; }
.motion-enabled .project-header.is-visible > :nth-child(3) { animation-delay: 160ms; }
.motion-enabled .project-intro.is-visible .project-metrics > div { animation: metric-in .48s var(--ease) both; }
.motion-enabled .project-intro.is-visible .project-metrics > :nth-child(2) { animation-delay: 70ms; }
.motion-enabled .project-intro.is-visible .project-metrics > :nth-child(3) { animation-delay: 140ms; }
.motion-enabled .project-intro.is-visible .project-metrics > :nth-child(4) { animation-delay: 210ms; }
.motion-enabled .project-intro.is-visible .project-metrics > :nth-child(5) { animation-delay: 280ms; }
.motion-enabled .project-intro.is-visible .project-actions { animation: action-row-in .54s 180ms var(--ease) both; }
@keyframes project-mark-in { from { opacity: .18; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes metric-in { from { opacity: .1; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes action-row-in { from { opacity: .1; transform: translateX(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .track-switch { margin-right: 16px; }
  .topbar nav { gap: 16px; margin-right: 18px; }
  .hero { grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); gap: 48px; }
  .project-intro { grid-template-columns: 1fr; gap: 34px; }
  .project-meta { grid-column: auto; }
  .action-qr { display: none; }
  .scene-map ol, .project-insightflow .scene-map ol { grid-template-columns: repeat(3, 1fr); }
  .scene-map li:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .scene-map li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .project-insightflow .scene-map li:nth-child(n + 4) { border-color: var(--line-light); }
  .scene-map li:not(:last-child)::after { display: none; }
  .gallery-stage { grid-template-columns: 1fr; }
  .gallery-stage figcaption { min-height: auto; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .hero-stage { min-height: 560px; }
  .work-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-top: 26px; padding-bottom: 26px; }
  .work-head > p { text-align: left; }
  .project-meta { display: block; }
  .project-metrics { justify-self: auto; margin-top: 16px; overflow-x: auto; }
  .project-metrics div { flex: 1 0 112px; }
  .about { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section-pad { padding-right: 22px; padding-left: 22px; }
  .topbar { top: 10px; grid-template-columns: 1fr auto auto; width: calc(100% - 22px); min-height: 52px; padding-left: 14px; }
  .mark span, .topbar .top-resume { display: none; }
  .track-switch { margin-right: 8px; }
  .track-switch a { min-width: 46px; padding: 5px 8px; font-size: 11px; }
  .menu { display: block; padding: 7px 4px; font-size: 20px; }
  .topbar nav { position: absolute; top: 58px; right: 0; display: none; width: 210px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 16px 32px rgba(16, 34, 31, .14); }
  .topbar nav.open { display: grid; }
  .topbar nav a { padding: 10px 12px; }
  .hero { gap: 44px; padding-top: 104px; padding-bottom: 58px; }
  .hero h1 { font-size: 72px; }
  .hero-focus { font-size: 23px; }
  .hero-summary { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .button { min-height: 44px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts div:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero-stage { min-height: 470px; transform: none; }
  .hero-art { inset: 0 0 88px; }
  .work-entry { width: calc(100% - 18px); }
  .entry-item { padding-top: 12px; padding-bottom: 12px; }
  .work-head > div { display: block; }
  .work-head h2 { margin-top: 5px; font-size: 20px; }
  .work-head > p { font-size: 12px; }
  .project { padding: 28px 0; }
  .project-shell { width: calc(100% - 22px); padding: 34px 20px 40px; }
  .project-atmosphere { display: none; }
  .project-header { grid-template-columns: 52px 1fr; gap: 15px; }
  .project-number { padding-right: 10px; }
  .project-number span { font-size: 28px; }
  .project-number small { display: none; }
  .project-title h3 { font-size: 44px; overflow-wrap: anywhere; }
  .project-title p { font-size: 13px; }
  .project-status { grid-column: 2; justify-self: start; white-space: normal; }
  .project-intro { padding-top: 34px; }
  .project-intro h4 { font-size: 31px; }
  .fact-row { grid-template-columns: 74px 1fr; gap: 10px; }
  .fact-row p { font-size: 13px; }
  .project-actions { display: grid; }
  .project-action { width: 100%; }
  .project-metrics { display: grid; grid-template-columns: 1fr 1fr; }
  .project-metrics div { min-width: 0; padding: 10px; border-top: 1px solid var(--line); border-left: 0; }
  .project-metrics div:nth-child(even) { border-left: 1px solid var(--line); }
  .project-insightflow .project-metrics div { border-color: var(--line-light); }
  .validation-status { grid-template-columns: 1fr; margin-top: 12px; }
  .validation-item + .validation-item { border-top: 1px solid var(--line); border-left: 0; }
  .validation-item span { overflow: visible; text-overflow: clip; white-space: normal; }
  .scene-map, .project-gallery, .workflow-evidence, .example-showcase, .evidence-block { margin-top: 42px; }
  .scene-map ol, .project-insightflow .scene-map ol { grid-template-columns: 1fr; }
  .scene-map li, .scene-map li + li { min-height: auto; padding: 18px; border-top: 1px solid var(--line); border-left: 0; }
  .scene-map li:first-child { border-top: 0; }
  .project-insightflow .scene-map li { border-color: var(--line-light); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .workflow-heading { gap: 12px; }
  .workflow-controls { width: 100%; }
  .workflow-controls > span { margin-right: auto; }
  .workflow-viewport img { min-width: 1780px; height: 508px; }
  .example-showcase { grid-template-columns: 1fr; }
  .example-index { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .example-tabs { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .example-tabs button { grid-template-columns: 1fr; gap: 2px; min-height: 48px; text-align: center; }
  .example-panels { padding: 22px 0; }
  .example-panel { grid-template-columns: 1fr; gap: 24px; }
  .example-source blockquote { font-size: 22px; }
  .gallery-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .gallery-tab { flex: 0 0 auto; }
  .gallery-image-wrap { min-height: 220px; max-height: 300px; }
  .gallery-stage img { max-height: 300px; }
  .gallery-stage figcaption { padding: 22px; }
  .gallery-stage figcaption strong { font-size: 30px; }
  .gallery-stage figcaption p { font-size: 14px; }
  .gallery-stage figcaption small { font-size: 11px; }
  .phone-group { justify-content: flex-start; overflow-x: auto; padding-right: 4px; padding-left: 4px; scroll-snap-type: x mandatory; }
  .phone-shot { flex: 0 0 min(70vw, 230px); scroll-snap-align: center; }
  .poster-mini-track { overflow-x: auto; }
  .poster-mini-head { display: grid; gap: 8px; }
  .poster-mini-track { justify-content: flex-start; }
  .poster-mini-track figure { flex: 0 0 88px; width: 88px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: auto; }
  .about { padding-top: 72px; padding-bottom: 74px; }
  .about h2 { font-size: 48px; }
  .about-copy > p { font-size: 16px; }
  .skills-list section { grid-template-columns: 86px 1fr; gap: 12px; }
  .contact { display: block; padding-top: 66px; padding-bottom: 68px; }
  .contact h2 { font-size: 43px; }
  .contact-actions { margin-top: 30px; }
  .footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) { scroll-behavior: auto; }
  html:not(.motion-forced) .hero-copy > *, html:not(.motion-forced) .hero-art, html:not(.motion-forced) .work-entry, html:not(.motion-forced) .phone-group.active, html:not(.motion-forced) .scene-map.is-visible li { animation: none; }
  html:not(.motion-forced).js [data-reveal], html:not(.motion-forced).js [data-board] { opacity: 1; transform: none; clip-path: none; filter: none; transition: none; }
}
