:root {
  --bg: #f6f9ff;
  --panel: #ffffff;
  --panel-2: #eaf2ff;
  --line: rgba(18, 67, 126, 0.16);
  --text: #0c264d;
  --muted: #63758c;
  --accent: #1769e8;
  --accent-2: #00a6e6;
  --display: "Arial Narrow", "Roboto Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(23,105,232,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,105,232,.045) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: #ffffff; }
.skip-link:focus { top: 1rem; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8; background: radial-gradient(circle at 12% 18%, rgba(57,143,255,.14), transparent 29%), radial-gradient(circle at 88% 30%, rgba(0,166,230,.10), transparent 27%); }

.site-header {
  width: min(1360px, calc(100% - 48px));
  height: 84px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(246,249,255,.84);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #ffffff; background: var(--accent); font-size: 14px; }
nav { display: flex; gap: 34px; color: var(--muted); }
nav a, .header-link { transition: color .2s ease; }
nav a:hover, .header-link:hover { color: var(--accent); }
.header-link { justify-self: end; }

main, footer { width: min(1360px, calc(100% - 48px)); margin: auto; }
.hero { min-height: calc(100vh - 84px); display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(30px, 5vw, 76px); align-items: center; padding: 54px 2vw 76px; }
.eyebrow, .section-index, .kicker, .mono-label { margin: 0; color: var(--accent); font: 600 11px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
h1 { margin: 25px 0 28px; font: 800 clamp(52px, 6.6vw, 102px)/.93 var(--display); letter-spacing: -.06em; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(12,38,77,.72); }
.hero-lead { max-width: 660px; margin: 0; color: #526a86; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 20px; border: 1px solid var(--line); font: 600 12px var(--mono); letter-spacing: .04em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-3px); border-color: var(--accent); }
.button.primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.button.ghost { background: rgba(255,255,255,.72); }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 670px; margin: 60px 0 0; }
.quick-facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.quick-facts dt { color: #71829a; font: 10px var(--mono); letter-spacing: .12em; }
.quick-facts dd { margin: 5px 0 0; font: 600 13px var(--mono); }

.vehicle-showcase { position: relative; min-width: 0; padding: clamp(22px,2.4vw,36px); border: 1px solid rgba(23,105,232,.2); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(228,240,255,.86)); box-shadow: 0 24px 70px rgba(21,77,148,.10); overflow: hidden; }
.vehicle-showcase::before { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; top: -100px; border: 1px solid rgba(23,105,232,.18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(23,105,232,.035), 0 0 0 72px rgba(23,105,232,.025); }
.vehicle-head { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.vehicle-head h1 { margin: 14px 0 0; font-size: clamp(38px,4.5vw,68px); line-height: .98; }
.vehicle-version { color: #6f86a3; font: 9px var(--mono); letter-spacing: .12em; }
.vehicle-canvas { position: relative; height: clamp(350px,42vw,510px); margin: -44px -20px -8px; cursor: grab; touch-action: none; outline: none; }
.vehicle-canvas:active { cursor: grabbing; }
.vehicle-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.vehicle-canvas canvas { display: block; width: 100%; height: 100%; }
.vehicle-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #6c83a0; font: 9px var(--mono); letter-spacing: .12em; }
.vehicle-loading span { width: 8px; height: 8px; border: 2px solid rgba(23,105,232,.22); border-top-color: var(--accent); border-radius: 50%; animation: vehicle-spin .8s linear infinite; }
.vehicle-ready .vehicle-loading { display: none; }
.vehicle-fallback { display: none; position: absolute; inset: 50% 20px auto; margin: 0; text-align: center; color: var(--muted); font: 11px var(--mono); }
.vehicle-no-webgl .vehicle-loading { display: none; }.vehicle-no-webgl .vehicle-fallback { display: block; }
.vehicle-controls { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.vehicle-controls span, .vehicle-controls a { padding: 8px 10px; border: 1px solid rgba(23,105,232,.18); background: rgba(255,255,255,.64); color: #59718f; font: 9px var(--mono); letter-spacing: .06em; }
.vehicle-controls a { margin-left: auto; color: var(--accent); border-color: rgba(23,105,232,.3); }
@keyframes vehicle-spin { to { transform: rotate(360deg); } }

.hero-visual { position: relative; width: min(100%, 510px); justify-self: end; padding-bottom: 0; }
.portrait-frame { position: relative; width: 76%; margin-left: auto; padding: 18px; border: 1px solid var(--line); background: linear-gradient(145deg, #ffffff, #e8f2ff); box-shadow: 0 24px 70px rgba(21, 77, 148, .14); }
.portrait-frame::before { content: ""; position: absolute; inset: 42px -32px -36px 34px; z-index: -1; border: 1px solid rgba(86,242,194,.25); }
.portrait-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: #7186a1; font: 9px var(--mono); letter-spacing: .1em; }
.portrait-frame img { width: 100%; aspect-ratio: 295 / 413; object-fit: cover; object-position: center 28%; filter: saturate(.78) contrast(1.04); }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--accent); }
.corner-a { left: 8px; top: 31px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.corner-b { right: 8px; bottom: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.terminal { position: relative; left: auto; bottom: auto; width: 76%; min-width: 300px; margin: 18px 0 0 auto; border: 1px solid rgba(23,105,232,.28); background: linear-gradient(135deg, #0e4fa8, #1769e8); box-shadow: 0 22px 50px rgba(21, 77, 148, .20); }
.terminal-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.terminal-bar span { width: 7px; height: 7px; border-radius: 50%; background: #3d4650; }
.terminal-bar b { margin-left: auto; color: rgba(255,255,255,.62); font: 9px var(--mono); }
.terminal pre { margin: 0; padding: 18px 20px 20px; color: #ffffff; font: 11px/1.75 var(--mono); white-space: pre-wrap; }
.terminal i { color: #8ee7ff; font-style: normal; }.terminal em { color: #bfe6ff; font-style: normal; }

.section { padding: 120px 2vw; border-top: 1px solid var(--line); }
.section-index { color: #7186a1; margin-bottom: 60px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.about h2, .section-title, .contact-band h2 { margin: 0; font: 800 clamp(44px, 5vw, 76px)/1 var(--display); letter-spacing: -.045em; }
.about-copy { max-width: 680px; }.about-copy p { color: var(--muted); }
.about-copy .large-copy { margin-top: 0; color: var(--text); font-size: clamp(20px, 2vw, 29px); line-height: 1.55; }
.stack-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.stack-list span { padding: 9px 13px; border: 1px solid var(--line); color: #3f5f83; background: rgba(255,255,255,.82); font: 11px var(--mono); }

.papers-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 52px; }
.papers-heading > p { margin: 0 0 9px; color: #7186a1; font: 11px var(--mono); letter-spacing: .1em; }
.paper-placeholder { display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(28px,5vw,72px); align-items: start; padding: clamp(30px,4vw,56px); border: 1px solid rgba(23,105,232,.2); background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(231,241,255,.9)); box-shadow: 0 22px 60px rgba(21,77,148,.08); }
.paper-code { color: var(--accent); font: 700 28px var(--mono); }
.paper-content h3 { margin: 7px 0 14px; font: 750 clamp(29px,3vw,44px) var(--display); letter-spacing: -.03em; }
.paper-content > p:last-of-type { max-width: 680px; margin: 0; color: var(--muted); }
.research-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.research-tags span { padding: 7px 11px; border: 1px solid rgba(23,105,232,.2); color: #275d9e; background: rgba(23,105,232,.05); font: 10px var(--mono); }
.paper-status { justify-self: end; padding: 8px 11px; color: var(--accent); border: 1px solid rgba(23,105,232,.25); background: rgba(255,255,255,.72); font: 9px var(--mono); letter-spacing: .1em; }

.timeline { margin-top: 55px; border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: minmax(180px,.55fr) 1.45fr; gap: 30px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--accent); font: 12px var(--mono); }
.timeline h3 { margin: 7px 0 10px; font: 700 clamp(27px,3vw,42px) var(--display); letter-spacing: -.03em; }
.timeline p:last-child { margin: 0; color: var(--muted); }.kicker { color: #64717c; }

.projects-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 52px; }
.projects-heading p { margin: 0 0 9px; color: #6f7b86; font: 11px var(--mono); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project-card { min-height: 390px; display: flex; flex-direction: column; padding: clamp(24px,3vw,42px); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,245,255,.94)); box-shadow: 0 16px 45px rgba(21,77,148,.07); transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(23,105,232,.55); background: #ffffff; box-shadow: 0 22px 55px rgba(21,77,148,.13); }
.project-card.featured { background: linear-gradient(145deg, #e5f1ff, #ffffff); }
.project-top { display: flex; justify-content: space-between; color: #6d7984; font: 10px var(--mono); letter-spacing: .1em; }
.arrow { color: var(--accent); font: 22px/1 var(--mono); }
.project-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 48px 0 26px; border: 1px solid rgba(23,105,232,.3); color: var(--accent); background: rgba(23,105,232,.06); font: 600 11px var(--mono); }
.project-card h3 { margin: 0 0 18px; font: 750 clamp(26px,2.7vw,40px)/1.05 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.project-card p { max-width: 550px; margin: 0; color: var(--muted); }
.project-meta { display: flex; gap: 24px; margin-top: auto; padding-top: 30px; color: #818d98; font: 10px var(--mono); text-transform: uppercase; }
.project-meta span { display: flex; align-items: center; gap: 7px; }
.lang { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }.lang.js { background: #f0db4f; }.lang.dart { background: #43b9f4; }.lang.neutral { background: #8e99a4; }
.project-card.compact { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; }
.project-card.compact h3 { margin: 12px 0 6px; }.project-card.compact p { margin: 0; }

.contact-band { margin-top: 36px; padding: clamp(42px,7vw,96px); display: flex; justify-content: space-between; align-items: end; gap: 40px; color: #ffffff; background: linear-gradient(135deg, #0e55bd, #2381ee); }
.contact-band .eyebrow { color: rgba(255,255,255,.68); margin-bottom: 24px; }.contact-band h2 { font-size: clamp(38px,4.6vw,70px); }
.button.light { flex: 0 0 auto; border-color: rgba(255,255,255,.8); color: #ffffff; }
.button.light:hover { background: #ffffff; color: var(--accent); }
footer { min-height: 130px; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; color: #66727d; font: 9px var(--mono); letter-spacing: .1em; }
footer p:nth-child(2) { text-align: center; }footer a { text-align: right; color: #aab3ba; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }.site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 46px; }.hero-visual { width: min(100%, 540px); justify-self: center; margin-top: 20px; }
  .vehicle-showcase { width: 100%; }.vehicle-canvas { height: min(72vw,500px); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }.project-grid { grid-template-columns: 1fr; }.project-card.compact { grid-column: auto; }
  .paper-placeholder { grid-template-columns: 90px 1fr; }.paper-status { grid-column: 2; justify-self: start; }
  .contact-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 30px, 1360px); }.site-header { height: 70px; }.header-link { font-size: 0; }.header-link::after { content: "GH ↗"; font-size: 11px; }
  .hero { min-height: auto; padding: 52px 0 80px; }.hero h1 { font-size: clamp(47px,15vw,68px); }.hero-lead { font-size: 15px; }.hero-actions { flex-direction: column; }.button { width: 100%; }
  .vehicle-showcase { padding: 20px 16px; }.vehicle-head h1 { font-size: clamp(37px,12vw,54px); }.vehicle-canvas { height: 340px; margin: -16px -12px 0; }.vehicle-controls a { width: 100%; margin-left: 0; }
  .quick-facts { grid-template-columns: 1fr; gap: 14px; margin-top: 48px; }.quick-facts div { display: flex; justify-content: space-between; }.quick-facts dd { margin: 0; }
  .portrait-frame { width: 88%; margin-right: auto; }.terminal { min-width: 0; width: 88%; margin-right: auto; }.section { padding: 86px 0; }.section-index { margin-bottom: 42px; }
  .timeline article { grid-template-columns: 1fr; gap: 18px; }.projects-heading { align-items: flex-start; flex-direction: column; }.project-card { min-height: 350px; }.project-card.compact { align-items: flex-start; }
  .papers-heading { align-items: flex-start; flex-direction: column; }.paper-placeholder { grid-template-columns: 1fr; gap: 22px; }.paper-status { grid-column: auto; }
  footer { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }.footer p, footer p:nth-child(2), footer a { text-align: left; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
