:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-soft: #0b1020;
  --surface: rgba(15, 21, 38, 0.72);
  --surface-strong: rgba(19, 27, 48, 0.92);
  --surface-hover: rgba(24, 34, 59, 0.92);
  --line: rgba(189, 211, 255, 0.14);
  --line-strong: rgba(189, 211, 255, 0.25);
  --text: #f7f9ff;
  --soft: #dce6ff;
  --muted: #9caaca;
  --cyan: #65f5d2;
  --blue: #72a7ff;
  --violet: #b58bff;
  --pink: #ff75cf;
  --green: #b8f77b;
  --orange: #ffb968;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 23px;
  --radius-md: 17px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 13% -2%, rgba(101, 245, 210, 0.16), transparent 32rem),
    radial-gradient(circle at 87% 8%, rgba(181, 139, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #070914 0%, #091224 42%, #070914 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.64) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.64) 55%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.26;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
}

button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #06100e; background: var(--cyan); }

.shell { width: min(var(--shell), calc(100% - 42px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  color: #07120f;
  background: var(--cyan);
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
#neural-canvas { position: fixed; inset: 0; z-index: -4; width: 100%; height: 100%; opacity: 0.9; }
.cursor-glow {
  position: fixed;
  z-index: -1;
  left: 72%;
  top: 28%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(101, 245, 210, 0.14), rgba(114, 167, 255, 0.06) 42%, transparent 70%);
  filter: blur(8px);
}
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; pointer-events: none; }
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  box-shadow: 0 0 20px rgba(101, 245, 210, 0.52);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 9, 20, 0.68);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.nav-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(101, 245, 210, 0.16), rgba(181, 139, 255, 0.12));
  box-shadow: inset 0 0 24px rgba(101, 245, 210, 0.06), 0 0 30px rgba(101, 245, 210, 0.1);
}
.brand-mark i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.brand-mark i:nth-child(1) { transform: translate(-9px, 7px); }
.brand-mark i:nth-child(2) { transform: translate(9px, 7px); background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.brand-mark i:nth-child(3) { transform: translateY(-9px); background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 22px; height: 1px; background: rgba(220, 230, 255, 0.45); transform-origin: center; }
.brand-mark::before { transform: rotate(34deg) translateY(3px); }
.brand-mark::after { transform: rotate(-34deg) translateY(3px); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { letter-spacing: -0.02em; font-size: 15px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-identity { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.nav-identity i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(101, 245, 210, 0.1), 0 0 14px rgba(101, 245, 210, 0.62); }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links a { position: relative; padding: 5px 0; color: var(--muted); font-size: 13px; font-weight: 850; transition: color 0.2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.hero { position: relative; padding: 96px 0 82px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(355px, 0.72fr); gap: clamp(42px, 6vw, 82px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--soft); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-kicker span:first-child { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05); }
.hero-kicker i { width: 32px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(48px, 7.1vw, 88px); line-height: 0.99; letter-spacing: -0.065em; font-weight: 930; }
.gradient-text { display: inline-block; color: transparent; background: linear-gradient(105deg, #ffffff 4%, var(--cyan) 34%, var(--blue) 64%, var(--violet) 92%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 32px rgba(101, 245, 210, 0.08)); }
.hero-lede { max-width: 720px; margin: 30px 0 0; color: #bdc9e5; font-size: clamp(17px, 2vw, 20px); line-height: 1.85; }
.hero-lede strong { color: var(--text); font-weight: 820; }
.type-line { min-height: 29px; margin: 18px 0 0; color: var(--cyan); font: 760 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.025em; }
.type-line::before { content: "> "; color: var(--violet); }
.type-line::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -2px; background: var(--cyan); animation: blink 0.9s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button { --mag-x: 0px; --mag-y: 0px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 15px; font-size: 14px; font-weight: 900; transform: translate(var(--mag-x), var(--mag-y)); transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease; }
.button b { font-size: 18px; line-height: 1; }
.button-primary { color: #07120f; border-color: transparent; background: linear-gradient(120deg, var(--cyan), #98f1ff); box-shadow: 0 14px 38px rgba(101, 245, 210, 0.18); }
.button-primary:hover { box-shadow: 0 18px 50px rgba(101, 245, 210, 0.28); }
.button-secondary { background: rgba(255, 255, 255, 0.055); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.095); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-left: 7px; color: var(--muted); font-size: 13px; font-weight: 800; transition: color 0.2s ease; }
.text-link:hover { color: var(--cyan); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 29px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; color: var(--muted); background: rgba(7, 9, 20, 0.38); font-size: 10px; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-proof i { width: 6px; height: 6px; border-radius: 50%; }
.proof-ai { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.proof-game { background: var(--violet); box-shadow: 0 0 9px var(--violet); }
.proof-quant { background: var(--orange); box-shadow: 0 0 9px var(--orange); }

.profile-stage { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; min-height: 560px; isolation: isolate; border: 1px solid rgba(189, 211, 255, 0.13); border-radius: 38px; background: linear-gradient(145deg, rgba(16, 23, 42, 0.82), rgba(8, 12, 25, 0.66)); box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05); transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; overflow: hidden; }
.profile-stage::before { content: ""; position: absolute; inset: -35%; z-index: -2; background: conic-gradient(from 90deg, transparent, rgba(101, 245, 210, 0.17), transparent 31%, rgba(181, 139, 255, 0.16), transparent 68%); animation: slow-spin 18s linear infinite; }
.profile-stage::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 37px; background: radial-gradient(circle at 50% 38%, rgba(114, 167, 255, 0.13), transparent 35%), linear-gradient(160deg, rgba(12, 18, 34, 0.92), rgba(7, 10, 22, 0.9)); }
@keyframes slow-spin { to { transform: rotate(360deg); } }
.stage-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.48; background-image: linear-gradient(rgba(114, 167, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 167, 255, 0.08) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(circle at center, #000, transparent 74%); mask-image: radial-gradient(circle at center, #000, transparent 74%); }
.stage-orbit { position: absolute; z-index: 0; left: 50%; top: 44%; border: 1px solid rgba(101, 245, 210, 0.19); border-radius: 50%; transform: translate(-50%, -50%); animation: orbit-spin 13s linear infinite; }
.stage-orbit i { position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbit-one { width: 330px; height: 330px; }
.orbit-two { width: 410px; height: 410px; border-color: rgba(181, 139, 255, 0.14); animation-duration: 21s; animation-direction: reverse; }
.orbit-two i { top: auto; bottom: -4px; background: var(--violet); box-shadow: 0 0 18px var(--violet); }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.profile-card { position: relative; z-index: 2; width: min(310px, calc(100% - 52px)); margin: 58px auto 0; padding: 18px 20px 21px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 26px; background: rgba(8, 12, 25, 0.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.06); transform: translateZ(42px); }
.profile-toolbar { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.09em; }
.profile-toolbar span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.profile-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.4; transform: scale(0.75); } }
.avatar-shell { position: relative; width: 142px; height: 142px; margin: 30px auto 18px; }
.avatar-shell img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; border: 4px solid rgba(7, 9, 20, 0.92); border-radius: 35px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.17), 0 20px 46px rgba(0, 0, 0, 0.46); }
.avatar-ring { position: absolute; inset: -12px; z-index: 1; border: 1px solid rgba(101, 245, 210, 0.42); border-radius: 43px; box-shadow: 0 0 34px rgba(101, 245, 210, 0.16); animation: avatar-breathe 3.5s ease-in-out infinite; }
@keyframes avatar-breathe { 50% { transform: scale(1.035); border-color: rgba(181, 139, 255, 0.48); } }
.avatar-status { position: absolute; right: -1px; bottom: 8px; z-index: 4; width: 17px; height: 17px; border: 4px solid #0b1020; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(184, 247, 123, 0.65); }
.profile-card h2 { margin: 0; text-align: center; font-size: 28px; line-height: 1.2; letter-spacing: -0.045em; }
.profile-role { margin: 7px 0 18px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 750; letter-spacing: 0.045em; }
.profile-console { padding: 12px 14px; border: 1px solid rgba(101, 245, 210, 0.12); border-radius: 15px; background: rgba(3, 8, 18, 0.64); }
.profile-console p { display: grid; grid-template-columns: 58px 1fr; gap: 8px; margin: 5px 0; font: 650 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.profile-console span { color: #65738f; }
.profile-console strong { color: #cfdbf5; font-weight: 700; }
.stage-caption { position: absolute; left: 25px; right: 25px; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font: 800 9px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.stage-caption strong { color: var(--cyan); font-weight: 800; }

.section { position: relative; padding: 96px 0; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.section-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(270px, 0.62fr); gap: 42px; align-items: end; margin-bottom: 36px; }
.section-intro > p { max-width: 520px; justify-self: end; margin: 0; color: var(--muted); font-size: 14px; }
.section-kicker { margin: 0 0 10px; color: var(--cyan); font: 850 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.section-intro h2, .contact-copy h2 { margin: 0; max-width: 760px; font-size: clamp(35px, 5vw, 59px); line-height: 1.08; letter-spacing: -0.052em; }

.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.focus-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; min-height: 320px; padding: 24px; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(17, 24, 43, 0.73), rgba(9, 13, 27, 0.8)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.035); cursor: pointer; transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: border-color 0.25s ease, background 0.25s ease, transform 0.16s ease, box-shadow 0.25s ease; }
.focus-card::before { content: ""; position: absolute; right: -55px; top: -55px; width: 175px; height: 175px; border-radius: 50%; background: radial-gradient(circle, rgba(114, 167, 255, 0.15), transparent 68%); transition: transform 0.35s ease, opacity 0.35s ease; }
.focus-card:hover, .focus-card.is-active { border-color: rgba(101, 245, 210, 0.35); background: linear-gradient(145deg, rgba(20, 31, 52, 0.91), rgba(10, 16, 31, 0.92)); box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.06); }
.focus-card:hover::before, .focus-card.is-active::before { transform: scale(1.18); }
.focus-index { color: #65738f; font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; }
.focus-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 38px 0 22px; border: 1px solid rgba(101, 245, 210, 0.24); border-radius: 17px; color: var(--cyan); background: rgba(101, 245, 210, 0.07); box-shadow: inset 0 0 20px rgba(101, 245, 210, 0.05); font: 850 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }
.focus-card:nth-child(2) .focus-icon { color: var(--violet); border-color: rgba(181, 139, 255, 0.27); background: rgba(181, 139, 255, 0.07); }
.focus-card:nth-child(3) .focus-icon { color: var(--orange); border-color: rgba(255, 185, 104, 0.26); background: rgba(255, 185, 104, 0.07); }
.focus-card h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -0.035em; }
.focus-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.focus-action { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; color: #cbd7f2; font-size: 11px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.focus-card.is-active .focus-action { color: var(--cyan); }

.projects-section { overflow: clip; }
.projects-section::before { content: ""; position: absolute; left: 50%; top: 12%; width: 68rem; height: 68rem; transform: translateX(-50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(114, 167, 255, 0.07), transparent 62%); }
.project-toolbar { position: sticky; top: 87px; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 26px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(9, 13, 27, 0.76); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2); }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.filter-button:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }
.filter-button.is-active { color: #07120f; border-color: transparent; background: var(--cyan); }
.project-count { flex: 0 0 auto; margin: 0 5px 0 0; color: var(--muted); font: 750 10px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.07em; text-transform: uppercase; }
.project-stack { display: grid; gap: 20px; }
.empty-state { padding: 46px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }

.project-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr); min-height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(140deg, rgba(18, 26, 47, 0.84), rgba(9, 14, 28, 0.9)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.04); transform: perspective(1300px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.28s ease, transform 0.18s ease; }
.project-card:hover { border-color: rgba(114, 167, 255, 0.29); box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.055); }
.project-card:nth-child(even) { grid-template-columns: minmax(310px, 0.88fr) minmax(0, 1.12fr); }
.project-card:nth-child(even) .poster { order: 2; }
.project-card.is-hidden { display: none; }
.poster { position: relative; min-height: 430px; padding: 0; overflow: hidden; border: 0; border-right: 1px solid var(--line); background: #060912; cursor: zoom-in; }
.project-card:nth-child(even) .poster { border-right: 0; border-left: 1px solid var(--line); }
.poster::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(125deg, rgba(101, 245, 210, 0.06), transparent 38%, rgba(181, 139, 255, 0.08)); opacity: 0.6; }
.poster::after { content: "↗"; position: absolute; right: 18px; top: 18px; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; color: var(--text); background: rgba(6, 9, 18, 0.67); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 17px; opacity: 0; transform: translateY(7px); transition: opacity 0.22s ease, transform 0.22s ease; }
.poster:hover::after, .poster:focus-visible::after { opacity: 1; transform: translateY(0); }
.poster img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.35s ease; }
.poster:hover img { transform: scale(1.035); filter: saturate(1.08) contrast(1.03); }
.poster-label { position: absolute; left: 18px; bottom: 18px; z-index: 4; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; color: #dae5fc; background: rgba(6, 9, 18, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.project-info { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(30px, 4vw, 54px); transform: translateZ(18px); }
.project-overline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.status { width: fit-content; margin: 0; padding: 7px 10px; border: 1px solid rgba(101, 245, 210, 0.19); border-radius: 999px; color: var(--cyan); background: rgba(101, 245, 210, 0.06); font: 820 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.075em; text-transform: uppercase; }
.status-game { color: var(--violet); border-color: rgba(181, 139, 255, 0.21); background: rgba(181, 139, 255, 0.06); }
.status-quant { color: var(--orange); border-color: rgba(255, 185, 104, 0.22); background: rgba(255, 185, 104, 0.06); }
.status-research { color: var(--blue); border-color: rgba(114, 167, 255, 0.22); background: rgba(114, 167, 255, 0.06); }
.status-other { color: #c5cfdf; border-color: rgba(197, 207, 223, 0.2); background: rgba(197, 207, 223, 0.05); }
.project-index { color: #586782; font: 850 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; }
.project-info h3 { margin: 0; font-size: clamp(32px, 4.2vw, 51px); line-height: 1.06; letter-spacing: -0.052em; }
.project-info > p { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.82; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.tag { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, 0.085); border-radius: 9px; color: #aebbd7; background: rgba(255, 255, 255, 0.035); font: 750 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.project-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.mini-link { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: #dbe6fb; background: rgba(255, 255, 255, 0.045); font-size: 11px; font-weight: 850; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.mini-link:hover { color: #07120f; border-color: var(--cyan); background: var(--cyan); transform: translateY(-2px); }

.experiment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.experiment-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; min-height: 260px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(17, 24, 43, 0.74), rgba(9, 13, 27, 0.78)); transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: border-color 0.25s ease, transform 0.16s ease, box-shadow 0.25s ease, background 0.25s ease; }
.experiment-card::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(114, 167, 255, 0.12), transparent 68%); }
.experiment-card:hover { border-color: rgba(114, 167, 255, 0.28); background: var(--surface-hover); box-shadow: var(--shadow-soft); }
.experiment-wide { grid-column: 1 / -1; min-height: 205px; }
.experiment-index { position: absolute; right: 24px; top: 24px; color: #5c6b87; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; }
.experiment-card h3 { margin: 25px 0 11px; font-size: 28px; letter-spacing: -0.04em; }
.experiment-card > p:not(.status) { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.experiment-link { position: absolute; left: 25px; bottom: 22px; display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 11px; font-weight: 850; letter-spacing: 0.04em; }
.experiment-link b { color: var(--cyan); }

.contact-section { padding-bottom: 108px; }
.contact-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 42px; min-height: 330px; padding: clamp(34px, 6vw, 70px); overflow: hidden; border: 1px solid rgba(101, 245, 210, 0.19); border-radius: 34px; background: radial-gradient(circle at 82% 45%, rgba(101, 245, 210, 0.12), transparent 25%), linear-gradient(125deg, rgba(18, 28, 48, 0.93), rgba(9, 14, 29, 0.94)); box-shadow: var(--shadow); }
.contact-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(101, 245, 210, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(101, 245, 210, 0.035) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.contact-copy { position: relative; z-index: 2; max-width: 700px; }
.contact-copy p:last-child { max-width: 570px; margin: 20px 0 0; color: var(--muted); }
.contact-actions { position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 170px; gap: 10px; }
.contact-orb { position: absolute; right: -110px; top: -110px; width: 290px; height: 290px; border: 1px solid rgba(101, 245, 210, 0.17); border-radius: 50%; box-shadow: 0 0 90px rgba(101, 245, 210, 0.1), inset 0 0 70px rgba(114, 167, 255, 0.08); animation: avatar-breathe 4.5s ease-in-out infinite; }
.site-footer { padding: 25px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #6e7c99; font: 750 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }

.poster-dialog { width: min(1040px, calc(100% - 34px)); max-height: calc(100vh - 34px); padding: 0; overflow: auto; color: var(--text); border: 1px solid var(--line-strong); border-radius: 26px; background: #0a0f1e; box-shadow: 0 35px 110px rgba(0, 0, 0, 0.76); }
.poster-dialog::backdrop { background: rgba(3, 5, 12, 0.82); -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); }
.dialog-close { position: sticky; float: right; top: 16px; right: 16px; z-index: 6; display: grid; place-items: center; width: 43px; height: 43px; margin: 16px 16px -59px 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 13px; color: var(--text); background: rgba(6, 9, 18, 0.78); cursor: pointer; font-size: 25px; line-height: 1; }
.dialog-close:hover { color: #06100e; background: var(--cyan); }
.dialog-media { min-height: 330px; background: #050812; }
.dialog-media img { width: 100%; max-height: 72vh; object-fit: contain; }
.dialog-copy { padding: 25px 30px 30px; }
.dialog-copy h2 { margin: 0; font-size: 30px; letter-spacing: -0.035em; }
.dialog-copy > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.reveal { --reveal-y: 24px; opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.72, 0.2, 1); }
.reveal.visible { --reveal-y: 0px; opacity: 1; }
.profile-stage.reveal { transform: translateY(var(--reveal-y)) perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.focus-card.reveal,
.experiment-card.reveal { transform: translateY(var(--reveal-y)) perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.project-card.reveal { transform: translateY(var(--reveal-y)) perspective(1300px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 980px) {
  .nav-identity { display: none; }
  .hero { padding: 76px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .profile-stage { width: min(590px, 100%); justify-self: center; }
  .section { padding: 82px 0; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-card:last-child { grid-column: 1 / -1; min-height: 270px; }
  .project-card,
  .project-card:nth-child(even) { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .poster { order: 0; }
  .poster,
  .project-card:nth-child(even) .poster { width: 100%; min-height: 360px; border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .poster img { min-height: 360px; }
  .project-info { min-height: 340px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  .shell { width: min(var(--shell), calc(100% - 28px)); }
  .nav-inner { min-height: 68px; gap: 16px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 13px; }
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 12px; }
  .hero { padding: 58px 0 58px; }
  .hero-kicker { margin-bottom: 20px; font-size: 10px; }
  .hero h1 { font-size: clamp(43px, 12.5vw, 68px); }
  .hero-lede { margin-top: 24px; font-size: 16px; line-height: 1.78; }
  .type-line { min-height: 52px; font-size: 11px; }
  .text-link { width: 100%; margin: 3px 0 0; }
  .profile-stage { min-height: 520px; border-radius: 30px; }
  .profile-stage::after { border-radius: 29px; }
  .section { padding: 70px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .section-intro > p { justify-self: start; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card,
  .focus-card:last-child { grid-column: auto; min-height: 290px; }
  .project-toolbar { top: 78px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px; }
  .filter-group { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .project-count { margin: 0 0 0 4px; }
  .project-card { border-radius: 24px; }
  .poster,
  .project-card:nth-child(even) .poster { min-height: 0; aspect-ratio: 16 / 10; }
  .poster img { height: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .project-info { min-height: 0; padding: 32px 25px 36px; transform: none; }
  .project-info h3 { font-size: clamp(31px, 9vw, 44px); }
  .project-info > p { font-size: 13px; }
  .experiment-grid { grid-template-columns: 1fr; }
  .experiment-wide { grid-column: auto; }
  .contact-card { align-items: flex-start; flex-direction: column; min-height: 0; }
  .contact-actions { width: 100%; min-width: 0; flex-direction: row; }
  .contact-actions .button { flex: 1; }
  .site-footer .shell { flex-direction: column; gap: 7px; }
  .dialog-media { min-height: 220px; }
  .dialog-copy { padding: 22px; }
}

@media (max-width: 480px) {
  .shell { width: min(var(--shell), calc(100% - 22px)); }
  .brand-copy small { display: none; }
  .nav-links { gap: 11px; }
  .nav-links a { font-size: 11px; }
  .hero { padding-top: 46px; }
  .hero-kicker i,
  .hero-kicker span:last-child { display: none; }
  .hero h1 { font-size: clamp(40px, 13vw, 55px); letter-spacing: -0.058em; }
  .hero-actions .button { flex: 1 1 calc(50% - 6px); }
  .hero-proof { gap: 6px; }
  .hero-proof span { padding: 6px 8px; font-size: 9px; }
  .profile-stage { min-height: 485px; border-radius: 25px; }
  .profile-stage::after { border-radius: 24px; }
  .profile-card { inset: 18px; padding: 16px; }
  .avatar-shell { width: 154px; height: 154px; margin-top: 36px; }
  .profile-card h2 { font-size: 29px; }
  .profile-console { padding: 12px; }
  .stage-caption { left: 20px; right: 20px; bottom: 16px; }
  .section { padding: 62px 0; }
  .section-intro h2,
  .contact-copy h2 { font-size: 35px; }
  .focus-card { min-height: 276px; padding: 21px; }
  .focus-icon { margin-top: 29px; }
  .focus-action { left: 21px; right: 21px; }
  .project-toolbar { top: 74px; }
  .poster,
  .project-card:nth-child(even) .poster,
  .poster img { aspect-ratio: 4 / 3; }
  .project-info { padding: 27px 21px 31px; }
  .project-overline { margin-bottom: 18px; }
  .project-actions { gap: 7px; }
  .mini-link { min-height: 38px; padding: 0 11px; }
  .experiment-card { min-height: 245px; padding: 22px; }
  .experiment-link { left: 22px; }
  .contact-card { padding: 30px 22px; border-radius: 26px; }
  .contact-actions { flex-direction: column; }
  .poster-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); border-radius: 19px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
  .poster::after { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #neural-canvas,
  .cursor-glow { display: none; }
  .reveal { opacity: 1; transform: none; }
  .profile-stage,
  .focus-card,
  .project-card,
  .experiment-card,
  .button { transform: none !important; }
}
