:root {
  --paper: #f5f3ef;
  --surface: #fffdf9;
  --ink: #111111;
  --ink-soft: #5f5a56;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.3);
  --lavender: #9b76c2;
  --lavender-soft: #ede5f6;
  --cream: #f7e8c7;
  --peach: #f3cfb3;
  --rose: #f0dbe2;
  --apricot: #efbd83;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(17, 17, 17, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --sans: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; isolation: isolate; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--white); background: var(--lavender); }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 9px 14px; color: var(--white); background: var(--ink); border-radius: 8px; transform: translateY(-160%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 44px), 1240px); margin-inline: auto; }
.pointer-glow { position: fixed; z-index: -1; top: 0; left: 0; width: 520px; height: 520px; background: radial-gradient(circle, rgba(155, 118, 194, 0.2), rgba(155, 118, 194, 0) 68%); opacity: 0; border-radius: 50%; pointer-events: none; transform: translate(calc(var(--mouse-x, 50vw) - 50%), calc(var(--mouse-y, 50vh) - 50%)); transition: opacity 200ms ease; }
body.has-pointer .pointer-glow { opacity: 1; }
.ambient-shape { position: fixed; z-index: -2; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { top: -160px; right: -130px; width: 480px; height: 480px; background: radial-gradient(circle at 35% 35%, rgba(243, 207, 179, 0.65), rgba(243, 207, 179, 0)); animation: float-one 12s ease-in-out infinite; }
.ambient-two { bottom: -210px; left: -170px; width: 560px; height: 560px; background: radial-gradient(circle at 62% 40%, rgba(155, 118, 194, 0.24), rgba(155, 118, 194, 0)); animation: float-two 15s ease-in-out infinite; }
@keyframes float-one { 50% { transform: translate(-30px, 34px) scale(1.08); } }
@keyframes float-two { 50% { transform: translate(38px, -28px) scale(0.94); } }

.site-header { position: relative; z-index: 20; height: 66px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark { position: relative; display: grid; width: 38px; height: 38px; place-items: center; color: var(--white); background: var(--ink); border-radius: 4px 13px 13px 13px; font-size: 0.73rem; letter-spacing: 0.08em; }
.brand-mark::after { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; background: var(--lavender); border: 2px solid var(--paper); border-radius: 50%; content: ""; }
.header-action { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.8rem; font-weight: 750; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.header-action:hover, .header-action:focus-visible { color: var(--white); background: var(--ink); transform: translateY(-1px); }

.landing { padding: 34px 0 72px; }
.landing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.eyebrow, .module-label, .dialog-header p, .mini-label { margin: 0; color: #79579e; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.landing-head h1 { margin: 5px 0 0; font-family: var(--display); font-size: clamp(3.6rem, 7vw, 6.8rem); letter-spacing: -0.06em; line-height: 0.98; }
.landing-instruction { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 9px; color: var(--ink-soft); font-size: 0.83rem; }
.landing-instruction > span { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; }
.landing-instruction > span::before { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; background: var(--lavender); border-radius: 50%; content: ""; transform: translate(-50%, -50%); animation: instruction-pulse 1.8s ease-out infinite; box-shadow: 0 0 0 0 rgba(155, 118, 194, 0.45); }
@keyframes instruction-pulse { 70% { box-shadow: 0 0 0 8px rgba(155, 118, 194, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 118, 194, 0); } }

.modules-grid { display: grid; grid-template-columns: 1.08fr 0.9fr 1fr 0.92fr; grid-template-areas: "profile education education projects" "profile campus practice skills"; grid-auto-rows: minmax(260px, 1fr); gap: 16px; }
.card-profile { grid-area: profile; }
.card-education { grid-area: education; }
.card-projects { grid-area: projects; }
.card-campus { grid-area: campus; }
.card-practice { grid-area: practice; }
.card-skills { grid-area: skills; }
.module-card { --rx: 0deg; --ry: 0deg; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-width: 0; min-height: 260px; padding: 23px; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); cursor: pointer; opacity: 0; text-align: left; transform: translateY(24px) scale(0.98) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-origin: center; transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, border-color 260ms ease; }
body.is-ready .module-card { animation: card-enter 720ms calc(var(--card-index) * 80ms) cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes card-enter { to { opacity: 1; transform: translateY(0) scale(1); } }
.module-card::before { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.64) 48%, transparent 70%); content: ""; opacity: 0; transform: translateX(-70%); transition: opacity 180ms ease; }
.module-card:hover::before, .module-card:focus-visible::before { opacity: 1; animation: card-shine 1.1s ease forwards; }
@keyframes card-shine { to { transform: translateX(75%); } }
.module-card:hover, .module-card:focus-visible { z-index: 3; border-color: var(--ink); box-shadow: 0 22px 55px rgba(17, 17, 17, 0.14); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); }
.card-profile { background: var(--rose); }
.card-education { background: var(--cream); }
.card-projects { background: var(--surface); }
.card-campus { background: var(--peach); }
.card-practice { background: #fff8f0; }
.card-skills { background: var(--lavender-soft); }
.module-number { position: absolute; z-index: 3; top: 18px; right: 20px; color: rgba(17, 17, 17, 0.48); font-family: var(--display); font-size: 0.84rem; font-weight: 700; }
.module-copy { position: relative; z-index: 2; display: grid; align-self: end; gap: 1px; }
.module-copy strong { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.2; }
.module-copy small { color: var(--ink-soft); font-size: 0.73rem; }
.open-indicator { position: absolute; z-index: 3; top: 17px; left: 20px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.78rem; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.module-card:hover .open-indicator, .module-card:focus-visible .open-indicator { color: var(--white); background: var(--ink); transform: rotate(45deg); }
.module-visual { position: relative; z-index: 1; display: block; min-height: 118px; overflow: hidden; border: 1px solid rgba(17, 17, 17, 0.12); border-radius: 16px; background: rgba(255, 255, 255, 0.48); }
.card-profile .module-visual { min-height: 250px; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 0.87rem; font-weight: 750; transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-outline { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.56); }
.button-outline:hover, .button-outline:focus-visible { border-color: var(--ink); background: var(--white); }
.site-footer { padding: 22px 0 28px; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: 0.75rem; }
.toast { position: fixed; z-index: 500; right: 22px; bottom: 22px; padding: 11px 17px; color: var(--white); background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); font-size: 0.82rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.visual-profile { display: grid; place-items: center; background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.85), rgba(240, 219, 226, 0.5)); }
.visual-profile img { position: relative; z-index: 2; width: 112px; height: 148px; object-fit: cover; object-position: center top; border: 5px solid rgba(255, 255, 255, 0.82); border-radius: 22px 22px 22px 5px; box-shadow: 0 14px 35px rgba(17, 17, 17, 0.16); }
.profile-ring { position: absolute; width: 180px; height: 180px; border: 1px dashed rgba(155, 118, 194, 0.65); border-radius: 50%; animation: spin-slow 18s linear infinite; }
.profile-ring::before, .profile-ring::after { position: absolute; width: 12px; height: 12px; background: var(--lavender); border: 3px solid var(--rose); border-radius: 50%; content: ""; }
.profile-ring::before { top: 12px; right: 30px; }
.profile-ring::after { bottom: 18px; left: 24px; background: var(--apricot); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.signal-dot { position: absolute; width: 8px; height: 8px; background: var(--lavender); border-radius: 50%; animation: signal 2.4s ease-in-out infinite; }
.dot-one { top: 24%; left: 20%; }
.dot-two { top: 35%; right: 18%; animation-delay: 0.5s; background: var(--apricot); }
.dot-three { bottom: 19%; right: 29%; animation-delay: 1s; }
@keyframes signal { 50% { box-shadow: 0 0 0 12px rgba(155, 118, 194, 0); transform: scale(1.45); } }

.visual-education { display: flex; flex-direction: column; justify-content: center; padding: 20px 28px; perspective: 500px; }
.visual-education i { display: block; width: 65%; height: 18px; margin-inline: auto; background: rgba(17, 17, 17, 0.82); border-radius: 3px 11px 3px 3px; transform: rotateX(42deg); transform-origin: center bottom; animation: book-float 3s ease-in-out infinite; }
.visual-education i:nth-child(2) { width: 78%; background: var(--lavender); animation-delay: 0.22s; }
.visual-education i:nth-child(3) { width: 52%; background: var(--white); border: 1px solid var(--line-strong); animation-delay: 0.44s; }
@keyframes book-float { 50% { transform: translateY(-7px) rotateX(42deg); } }
.floating-year { position: absolute; top: 17px; right: 20px; padding: 5px 9px; color: #674b84; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); border-radius: 999px; font-family: var(--display); font-size: 0.78rem; font-weight: 700; }

.visual-projects { display: flex; align-items: flex-end; padding: 22px 24px; }
.bar-chart { display: flex; width: 76%; height: 92px; align-items: flex-end; justify-content: space-between; gap: 8px; }
.bar-chart i { width: 15%; height: var(--h); background: var(--ink); border-radius: 4px 4px 2px 2px; transform-origin: bottom; animation: bar-breathe 3.4s ease-in-out infinite; }
.bar-chart i:nth-child(2) { background: var(--lavender); animation-delay: 0.15s; }
.bar-chart i:nth-child(3) { background: var(--apricot); animation-delay: 0.3s; }
.bar-chart i:nth-child(4) { background: var(--ink); animation-delay: 0.45s; }
.bar-chart i:nth-child(5) { background: var(--lavender); animation-delay: 0.6s; }
@keyframes bar-breathe { 50% { transform: scaleY(0.78); } }
.trend-line { position: absolute; top: 37%; right: 11%; width: 60%; height: 2px; background: var(--lavender); transform: rotate(-18deg); transform-origin: right; box-shadow: 0 0 12px rgba(155, 118, 194, 0.55); animation: line-pulse 2.5s ease-in-out infinite; }
@keyframes line-pulse { 50% { opacity: 0.35; } }

.visual-campus { min-height: 128px; }
.media-card { position: absolute; display: grid; width: 82px; height: 54px; place-items: center; background: rgba(255, 255, 255, 0.83); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 24px rgba(17, 17, 17, 0.1); }
.media-card::before { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--ink); content: ""; }
.media-one { top: 24px; left: 20px; animation: media-float 3s ease-in-out infinite; }
.media-two { right: 20px; bottom: 18px; animation: media-float 3s 0.5s ease-in-out infinite; }
@keyframes media-float { 50% { transform: translateY(-7px) rotate(1.5deg); } }
.play-orbit { position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; border: 1px dashed rgba(17, 17, 17, 0.35); border-radius: 50%; transform: translate(-50%, -50%); }
.play-orbit i { position: absolute; top: 8px; right: 13px; width: 13px; height: 13px; background: var(--lavender); border-radius: 50%; animation: signal 2.2s ease-in-out infinite; }

.visual-practice { display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(247, 232, 199, 0.62)); }
.paper-sheet { position: relative; display: grid; width: 95px; height: 116px; align-content: start; gap: 10px; padding: 22px 14px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 12px 25px rgba(17, 17, 17, 0.1); transform: rotate(-4deg); }
.paper-sheet i { display: block; height: 4px; background: rgba(17, 17, 17, 0.24); border-radius: 99px; }
.paper-sheet i:nth-child(2) { width: 76%; }
.paper-sheet i:nth-child(3) { width: 88%; }
.paper-sheet i:nth-child(4) { width: 58%; }
.scan-beam { position: absolute; left: 50%; width: 118px; height: 3px; background: var(--lavender); border-radius: 99px; box-shadow: 0 0 18px 5px rgba(155, 118, 194, 0.42); transform: translateX(-50%); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 27%; opacity: 0.35; } 50% { top: 72%; opacity: 1; } }

.visual-skills { display: grid; place-items: center; }
.code-window { position: relative; z-index: 2; display: grid; width: 124px; gap: 10px; padding: 26px 17px; background: var(--ink); border-radius: 12px; box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18); }
.code-window i { display: block; height: 5px; background: rgba(255, 255, 255, 0.78); border-radius: 99px; animation: code-blink 2.8s ease-in-out infinite; }
.code-window i:nth-child(2) { width: 72%; background: var(--lavender); animation-delay: 0.25s; }
.code-window i:nth-child(3) { width: 88%; background: var(--apricot); animation-delay: 0.5s; }
.code-window i:nth-child(4) { width: 58%; animation-delay: 0.75s; }
@keyframes code-blink { 50% { opacity: 0.45; transform: scaleX(0.92); } }
.skill-orbit { position: absolute; border: 1px dashed rgba(103, 75, 132, 0.45); border-radius: 50%; animation: spin-slow 13s linear infinite; }
.orbit-a { width: 160px; height: 80px; transform: rotate(18deg); }
.orbit-b { width: 90px; height: 155px; animation-direction: reverse; animation-duration: 17s; }

.module-dialog { width: min(calc(100% - 32px), 1120px); max-width: none; max-height: none; padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; }
.module-dialog::backdrop { background: rgba(17, 17, 17, 0.48); backdrop-filter: blur(8px); }
.module-dialog[open] { animation: dialog-in 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.module-dialog[open]::backdrop { animation: backdrop-in 280ms ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(28px) scale(0.97); } }
@keyframes backdrop-in { from { opacity: 0; } }
.dialog-panel { max-height: min(88vh, 900px); overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.dialog-header { position: sticky; z-index: 8; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 30px; background: rgba(255, 253, 249, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.dialog-header p { margin-bottom: 2px; }
.dialog-header h2 { margin: 0; color: var(--lavender); font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.close-button { position: relative; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.close-button:hover, .close-button:focus-visible { background: var(--lavender-soft); transform: rotate(90deg); }
.close-button span { position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; background: var(--ink); }
.close-button span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.close-button span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.dialog-body { padding: 34px; }
.mini-label { color: #79579e; }

.profile-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 46px; align-items: start; }
.detail-avatar { padding: 12px; background: var(--rose); border: 1px solid var(--line-strong); border-radius: 14px 38px 14px 38px; transform: rotate(-1deg); }
.detail-avatar img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 5px 28px 5px 28px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.detail-list div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-list div:nth-child(odd) { padding-right: 24px; }
.detail-list div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.detail-list dt { color: var(--ink-soft); font-size: 0.78rem; }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.detail-list a:hover, .detail-list a:focus-visible { color: var(--lavender); text-decoration: underline; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.education-overview { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; }
.education-date { display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--white); background: var(--ink); border-radius: 999px; font-family: var(--display); font-size: 0.95rem; font-weight: 700; text-align: center; }
.education-date i { width: 1px; flex: 1; max-height: 80px; background: rgba(255, 255, 255, 0.3); }
.education-school { display: flex; min-height: 250px; flex-direction: column; justify-content: center; padding: 34px; background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.education-school h3, .campus-detail h3, .practice-detail h3, .detail-warm-card h3 { margin: 7px 0 11px; font-family: var(--display); font-size: clamp(1.65rem, 3.2vw, 2.5rem); line-height: 1.3; }
.education-school > p:not(.mini-label) { margin: 0; color: var(--ink-soft); }
.metric-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.metric-pair span { padding-top: 15px; color: var(--ink-soft); border-top: 1px solid var(--line-strong); font-size: 0.75rem; }
.metric-pair strong { display: block; margin-top: 3px; color: var(--ink); font-family: var(--display); font-size: 1.3rem; }
.two-column-details, .skill-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.detail-warm-card { padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.detail-warm-card h3 { font-size: 1.5rem; }
.detail-warm-card ul, .campus-detail ul, .project-columns ul { margin: 0; padding-left: 18px; }
.detail-warm-card li + li, .campus-detail li + li, .project-columns li + li { margin-top: 8px; }
.cream-card { background: var(--cream); }
.peach-card { background: var(--peach); }
.rose-card { background: var(--rose); }

.project-detail-list { display: grid; gap: 22px; }
.detail-project { overflow: hidden; background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.detail-project:nth-child(2) { background: var(--peach); }
.project-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; padding: 27px 30px; border-bottom: 1px solid var(--line-strong); }
.project-title-row h3 { margin: 7px 0 0; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; }
.project-title-row > span { flex: 0 0 auto; padding: 6px 10px; color: var(--white); background: var(--ink); border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.project-columns { display: grid; grid-template-columns: repeat(3, 1fr); }
.project-columns > div { padding: 26px; }
.project-columns > div + div { border-left: 1px solid var(--line-strong); }
.project-columns h4 { margin: 0 0 10px; color: #765692; font-size: 0.78rem; letter-spacing: 0.08em; }
.project-columns p { margin: 0; }
.project-columns p + p { margin-top: 12px; }
.campus-detail h3 { margin-top: 28px; }
.campus-detail > p.ability-strip { margin-top: 24px; }
.campus-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: 0.8rem; }
.campus-heading span { padding: 6px 11px; color: var(--white); background: var(--ink); border-radius: 999px; font-weight: 700; }
.practice-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 26px; margin-top: 28px; }
.practice-copy { padding: 28px; background: var(--peach); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.practice-copy p { margin: 0; }
.practice-copy p + p { margin-top: 16px; }
.practice-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.practice-steps li { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.practice-steps li::before { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; content: counter(step); font-size: 0.7rem; }
.ability-strip { margin: 24px 0 0; padding: 18px 21px; background: var(--lavender-soft); border-left: 5px solid var(--lavender); }
.skill-detail-grid { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.skill-detail-grid h3 { font-size: 1.38rem; }
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "profile profile education" "projects campus practice" "skills skills skills"; }
  .card-profile .module-visual { min-height: 190px; }
  .detail-list div:nth-child(odd) { padding-right: 14px; }
  .detail-list div:nth-child(even) { padding-left: 14px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), 1240px); }
  .landing { padding-top: 22px; }
  .landing-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .landing-instruction { margin-bottom: 0; }
  .modules-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "profile profile" "education projects" "campus practice" "skills skills"; grid-auto-rows: minmax(245px, auto); }
  .module-card { padding: 20px; }
  .card-profile .module-visual { min-height: 210px; }
  .profile-detail { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list div:nth-child(odd), .detail-list div:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
  .project-columns { grid-template-columns: 1fr 1fr; }
  .project-columns > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); border-left: 0; }
  .skill-detail-grid { grid-template-columns: 1fr 1fr; }
  .skill-detail-grid .detail-warm-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 22px), 1240px); }
  .header-action { padding: 7px 11px; font-size: 0.73rem; }
  .landing-head h1 { font-size: clamp(3.2rem, 18vw, 4.8rem); }
  .modules-grid { grid-template-columns: 1fr; grid-template-areas: "profile" "education" "projects" "campus" "practice" "skills"; grid-auto-rows: auto; gap: 13px; }
  .module-card { min-height: 245px; border-radius: 20px; }
  .card-profile .module-visual { min-height: 175px; }
  .module-copy strong { font-size: 1.65rem; }
  .module-dialog { width: calc(100% - 16px); }
  .dialog-panel { max-height: calc(100vh - 16px); border-radius: 22px; }
  .dialog-header { padding: 18px; }
  .dialog-header h2 { font-size: 1.65rem; }
  .dialog-body { padding: 18px; }
  .profile-detail, .education-overview, .two-column-details, .practice-layout, .skill-detail-grid { grid-template-columns: 1fr; }
  .detail-avatar { width: min(72vw, 260px); }
  .education-date { min-height: 70px; flex-direction: row; border-radius: 999px; }
  .education-date i { width: auto; min-height: 0; height: 1px; }
  .metric-pair { grid-template-columns: 1fr 1fr; }
  .project-title-row { align-items: flex-start; flex-direction: column; padding: 22px; }
  .project-columns { grid-template-columns: 1fr; }
  .project-columns > div + div, .project-columns > div:nth-child(3) { grid-column: auto; border-top: 1px solid var(--line-strong); border-left: 0; }
  .skill-detail-grid .detail-warm-card:last-child { grid-column: auto; }
  .detail-actions, .contact-actions { display: grid; }
  .button { width: 100%; }
  .site-footer .container { flex-direction: column; gap: 5px; }
  .toast { right: 12px; bottom: 12px; left: 12px; text-align: center; }
}

@media (hover: none) {
  .pointer-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .module-card { opacity: 1; transform: none; }
}
/* PDF background theme and transparent modules */
body {
  color: #ffffff;
  background-color: #101010;
  background-image: linear-gradient(rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08)), url("assets/pdf-background.jpg");
  background-position: center 38%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.landing-head h1,
.landing-instruction,
.site-footer .container { color: #ffffff; }
.eyebrow,
.module-label,
.dialog-header p,
.mini-label { color: #d8bdf2; }
.header-action { color: #ffffff; border-color: rgba(255, 255, 255, 0.58); background: transparent; backdrop-filter: blur(8px); }
.header-action:hover,
.header-action:focus-visible { color: #111111; background: rgba(255, 255, 255, 0.9); }
.brand-mark { color: #ffffff; background: rgba(10, 10, 10, 0.28); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.brand-mark::after { border-color: #202020; }

.module-card {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
}
.card-profile,
.card-education,
.card-projects,
.card-campus,
.card-practice,
.card-skills { background: rgba(255, 255, 255, 0.035); }
.module-card:hover,
.module-card:focus-visible { border-color: #ffffff; box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42); }
.module-number { color: rgba(255, 255, 255, 0.68); }
.module-copy small { color: rgba(255, 255, 255, 0.72); }
.open-indicator { color: #ffffff; border-color: rgba(255, 255, 255, 0.58); background: rgba(255, 255, 255, 0.04); }
.module-card:hover .open-indicator,
.module-card:focus-visible .open-indicator { color: #111111; background: #ffffff; }
.module-visual { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px); }
.visual-profile { background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025)); }
.visual-profile img { width: 90px; height: auto; object-fit: contain; object-position: center; background: #ffffff; border-color: rgba(255, 255, 255, 0.8); }
.profile-ring { border-color: rgba(216, 189, 242, 0.72); }
.signal-dot { background: #d8bdf2; }
.visual-education i { background: rgba(255, 255, 255, 0.82); }
.visual-education i:nth-child(2) { background: #b795d9; }
.visual-education i:nth-child(3) { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.52); }
.floating-year { color: #6d4f8b; background: rgba(255, 255, 255, 0.84); }
.bar-chart i { background: rgba(255, 255, 255, 0.88); }
.bar-chart i:nth-child(2),
.bar-chart i:nth-child(5) { background: #bd9bdb; }
.bar-chart i:nth-child(3) { background: #e3a86d; }
.visual-campus { background: rgba(255, 255, 255, 0.045); }
.media-card { background: rgba(255, 255, 255, 0.86); }
.play-orbit { border-color: rgba(255, 255, 255, 0.58); }
.visual-practice { background: rgba(255, 255, 255, 0.045); }
.paper-sheet { background: rgba(255, 255, 255, 0.92); }
.code-window { background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px); }
.skill-orbit { border-color: rgba(216, 189, 242, 0.62); }
.site-footer { border-color: rgba(255, 255, 255, 0.22); }
.site-footer .container { color: rgba(255, 255, 255, 0.7); }

.module-dialog { color: #ffffff; }
.module-dialog::backdrop { background: rgba(0, 0, 0, 0.54); }
.dialog-panel {
  color: #ffffff;
  background: rgba(12, 12, 12, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(22px);
}
.dialog-header { background: rgba(10, 10, 10, 0.28); border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(18px); }
.dialog-header h2 { color: #d8bdf2; }
.close-button { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.58); }
.close-button span { background: #ffffff; }
.close-button:hover,
.close-button:focus-visible { background: rgba(216, 189, 242, 0.32); }
.dialog-body { color: #ffffff; }
.detail-list { border-color: rgba(255, 255, 255, 0.78); }
.detail-list div { border-color: rgba(255, 255, 255, 0.22); }
.detail-list div:nth-child(even) { border-color: rgba(255, 255, 255, 0.22); }
.detail-list dt { color: rgba(255, 255, 255, 0.68); }
.detail-list dd { color: #ffffff; }
.detail-list a:hover,
.detail-list a:focus-visible { color: #d8bdf2; }
.dialog-panel .button-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.58); background: transparent; backdrop-filter: blur(8px); }
.dialog-panel .button-outline:hover,
.dialog-panel .button-outline:focus-visible { color: #111111; background: rgba(255, 255, 255, 0.92); }

/* 1-inch ID photo: keep the full image visible without cropping */
.profile-detail { grid-template-columns: 172px minmax(0, 1fr); gap: 38px; align-items: start; }
.detail-avatar { width: 132px; padding: 8px; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.68); backdrop-filter: blur(8px); }
.detail-avatar img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #ffffff; border-radius: 3px; }

/* Warm information blocks remain readable over the PDF image */
.education-school,
.detail-warm-card,
.detail-project,
.practice-copy,
.ability-strip { color: #111111; backdrop-filter: blur(12px); }
.education-school { background: rgba(247, 232, 199, 0.78); }
.detail-warm-card.cream-card { background: rgba(247, 232, 199, 0.78); }
.detail-warm-card.peach-card,
.practice-copy { background: rgba(243, 207, 179, 0.78); }
.detail-warm-card.rose-card { background: rgba(240, 219, 226, 0.78); }
.detail-project { background: rgba(247, 232, 199, 0.78); }
.detail-project:nth-child(2) { background: rgba(243, 207, 179, 0.78); }
.ability-strip { background: rgba(237, 229, 246, 0.78); }
.education-school .metric-pair strong { color: #111111; }
.detail-project .project-columns h4 { color: #765692; }
.detail-project .mini-label,
.education-school .mini-label,
.detail-warm-card .mini-label,
.practice-detail .mini-label { color: #765692; }
.practice-steps { color: #ffffff; }
.practice-steps li { border-color: rgba(255, 255, 255, 0.24); }

@media (max-width: 820px) {
  .profile-detail { grid-template-columns: 150px minmax(0, 1fr); }
  .detail-avatar { width: 118px; }
}

@media (max-width: 600px) {
  body { background-attachment: scroll; }
  .profile-detail { grid-template-columns: 1fr; }
  .detail-avatar { width: 118px; }
}
/* Fully transparent detail dialogs: borders remain, fills are removed */
.dialog-panel { background: transparent; backdrop-filter: blur(7px); }
.dialog-header { background: transparent; backdrop-filter: blur(7px); }
.close-button { background: transparent; }
.education-date { background: transparent; border: 1px solid rgba(255, 255, 255, 0.62); }
.education-school,
.detail-warm-card,
.detail-warm-card.cream-card,
.detail-warm-card.peach-card,
.detail-warm-card.rose-card,
.detail-project,
.detail-project:nth-child(2),
.practice-copy,
.ability-strip { color: #ffffff; background: transparent; border-color: rgba(255, 255, 255, 0.52); }
.education-school > p:not(.mini-label) { color: rgba(255, 255, 255, 0.72); }
.education-school .metric-pair span { color: rgba(255, 255, 255, 0.66); }
.education-school .metric-pair strong { color: #ffffff; }
.project-title-row { border-color: rgba(255, 255, 255, 0.24); }
.project-columns > div + div { border-color: rgba(255, 255, 255, 0.24); }
.project-title-row > span,
.campus-heading span { color: #ffffff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.58); }
.practice-steps li { border-color: rgba(255, 255, 255, 0.24); }
.practice-steps li::before { color: #ffffff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.58); }
.practice-detail .ability-strip { background: transparent; }
/* University emblem in the education dialog */
.school-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.school-logo { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; background: #ffffff; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.school-brand-copy { min-width: 0; }
.school-brand-copy .mini-label { margin-bottom: 3px; }
.school-brand-copy h3 { margin: 0; }
@media (max-width: 600px) { .school-logo { width: 56px; height: 56px; } .school-brand { gap: 14px; } }