/*
 * TI AN SHUANG — portfolio / Cloudflare Pages edition
 * Static, dependency-free, responsive, and accessible.
 */
:root {
  color-scheme: dark;
  --bg: #080d17;
  --bg-soft: #0b1322;
  --surface: #111b2d;
  --surface-2: #151f33;
  --ink: #eff5ff;
  --text: #b7c5d9;
  --muted: #788ba4;
  --muted-2: #5d6f89;
  --line: rgba(154, 186, 231, .13);
  --line-light: rgba(166, 194, 232, .22);
  --cyan: #6bdff2;
  --sky: #86aaff;
  --violet: #b89cff;
  --green: #6df0c4;
  --orange: #ffc895;
  --max: 1160px;
  --radius: 20px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(119, 158, 213, .035) 1px, transparent 1px), linear-gradient(to bottom, rgba(119, 158, 213, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(95, 197, 239, .3); color: white; }
.container { width: min(var(--max), calc(100% - 76px)); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: .1em; }
.skip-link { position: fixed; z-index: 99; top: 12px; left: 12px; background: var(--cyan); padding: 10px 16px; color: #08111d; font-weight: 700; border-radius: 8px; transform: translateY(-170%); }
.skip-link:focus { transform: translateY(0); }
.page-progress { position: fixed; z-index: 81; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--sky), var(--cyan), var(--violet)); pointer-events: none; }
.ambient { z-index: -2; position: fixed; border-radius: 50%; filter: blur(92px); opacity: .38; pointer-events: none; }
.ambient-one { width: 460px; height: 500px; top: 30px; left: -240px; background: #233d90; }
.ambient-two { width: 470px; height: 410px; right: -250px; top: 140px; background: #193e5b; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 80; height: 82px; border-bottom: 1px solid transparent; background: rgba(8, 13, 23, .67); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background .2s, border .2s; }
.site-header.is-scrolled { background: rgba(8, 13, 23, .91); border-color: var(--line); }
.nav-wrap { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 15px; white-space: nowrap; }
.brand-symbol { font-size: 23px; font-weight: 850; letter-spacing: -.09em; color: white; }
.brand-dot, .footer-brand span, .head-dot, .name-dot { color: var(--cyan); }
.brand-name { color: #8ca2be; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.brand-divide { margin: 0 7px; color: #415770; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.nav-resume) { color: #99abc3; font-size: 12px; font-weight: 600; transition: color .2s; }
.nav-links > a:not(.nav-resume):hover, .nav-links > a[aria-current="location"] { color: white; }
.nav-resume { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(124, 183, 245, .34); background: rgba(102, 150, 224, .09); color: #d9efff; border-radius: 9px; font-size: 11px; font-weight: 700; transition: background .2s, border .2s; }
.nav-resume:hover { background: rgba(102, 150, 224, .2); border-color: #6cb3f4; }
.nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 42px; height: 42px; background: rgba(126, 156, 207, .08); border: 1px solid var(--line-light); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 19px; height: 2px; background: #d5e7fa; border-radius: 3px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { min-height: 690px; padding-top: 118px; padding-bottom: 120px; position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(40px, 6vw, 94px); }
.hero-content, .hero-showcase { min-width: 0; }
.hero-eyebrow { display: inline-flex; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 11px; color: #bbdddb; font-size: 10px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .08em; padding: 9px 13px; border: 1px solid rgba(102, 223, 197, .2); border-radius: 100px; background: rgba(58, 204, 153, .055); }
.status-pulse, .live-dot, .tiny-indicator, .mini-green { width: 7px; height: 7px; background: var(--green); border-radius: 100%; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(109, 240, 196, .07), 0 0 15px rgba(109, 240, 196, .4); }
.eyebrow-separator { opacity: .3; }
.hero-kicker { margin: 43px 0 19px; color: #7f91aa; font-size: 10px; font-weight: 700; }
.mono-cyan { color: var(--cyan); }
.hero h1 { font-size: clamp(55px, 6.2vw, 93px); line-height: 1.14; margin: 0; letter-spacing: -.066em; font-weight: 900; color: #f7faff; }
.hero-name { display: inline-block; padding-right: .08em; background: linear-gradient(105deg, white 12%, #cae7ff 58%, #95abed 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { margin: 24px 0 20px; color: #c8d9ee; font-size: clamp(20px, 2.5vw, 30px); font-weight: 730; letter-spacing: -.04em; }
.role-slash { color: #59708f; margin: 0 8px; font-weight: 400; }
.hero-description { max-width: 540px; color: #a0b3cc; font-size: 14px; line-height: 2; margin: 0; }
.hero-description strong { color: #dbe8fa; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 33px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; padding: 15px 21px; min-height: 48px; font-size: 12px; font-weight: 760; transition: transform .22s, box-shadow .22s, background .22s, border-color .22s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #06131e; background: linear-gradient(117deg, #7de8e9, #91b5ff); box-shadow: 0 9px 30px rgba(93, 166, 227, .16); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(93, 166, 227, .27); }
.btn-outline { color: #d4e1f4; background: rgba(112, 142, 194, .055); border: 1px solid rgba(152, 185, 230, .25); }
.btn-outline:hover { background: rgba(112, 142, 194, .15); border-color: rgba(152, 185, 230, .48); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; }
.fact { display: flex; align-items: center; gap: 10px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line-light); color: #e6ecf5; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact-icon { font-size: 10px; color: var(--cyan); }
.fact small { display: block; color: #7e91aa; font-family: var(--font-ui); font-weight: 400; margin-top: 3px; font-size: 10px; }
.hero-showcase { position: relative; padding: 25px 5px 12px; }
.showcase-orbit { position: absolute; pointer-events: none; border: 1px solid rgba(103, 158, 221, .13); border-radius: 50%; z-index: -1; }
.showcase-orbit-one { width: 500px; height: 500px; top: -70px; left: -30px; }
.showcase-orbit-two { width: 650px; height: 650px; top: -144px; left: -104px; opacity: .55; }
.system-panel { max-width: 458px; margin-inline: auto; border: 1px solid rgba(142, 176, 229, .26); border-radius: 15px; box-shadow: 0 25px 80px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.03); overflow: hidden; transform: rotate(1.2deg); background: linear-gradient(147deg, #141f32, #0b1220 70%); }
.panel-topbar { height: 43px; border-bottom: 1px solid var(--line); padding: 0 15px; display: flex; justify-content: space-between; align-items: center; color: #7c91ae; font-family: var(--font-mono); font-size: 9px; letter-spacing: .02em; }
.window-dots, .code-dots { display: flex; gap: 5px; }
.window-dots i, .code-dots i { display: block; width: 7px; height: 7px; background: #4b5b78; border-radius: 50%; }
.window-dots i:first-child, .code-dots i:first-child { background: #b77f88; }
.window-dots i:nth-child(2), .code-dots i:nth-child(2) { background: #d6b883; }
.window-dots i:last-child, .code-dots i:last-child { background: #82cbb4; }
.panel-icon { color: #c8cde3; font-size: 18px; }
.panel-body { padding: 22px; }
.panel-heading { display: flex; gap: 9px; align-items: center; font-family: var(--font-mono); font-size: 10px; color: #c7d7ee; font-weight: 700; letter-spacing: .05em; margin-bottom: 20px; }
.panel-heading .live-dot { width: 6px; height: 6px; }
.panel-build { margin-left: auto; color: #6c819c; font-size: 9px; }
.flow-step { display: flex; gap: 14px; align-items: center; padding: 14px 14px; min-height: 70px; border: 1px solid rgba(156, 188, 235, .12); border-radius: 10px; background: rgba(172, 200, 245, .035); }
.flow-step strong { display: block; color: #dce8f8; font-size: 12px; font-family: var(--font-mono); font-weight: 660; }
.flow-step small { display: block; color: #7790aa; font-size: 10px; margin-top: 5px; }
.flow-badge { font: 700 10px var(--font-mono); display: grid; place-items: center; flex: none; border-radius: 7px; width: 31px; height: 31px; }
.badge-blue { color: #92bdff; background: rgba(100, 144, 246, .16); }
.badge-purple { color: #c6a5ff; background: rgba(163, 110, 242, .16); }
.badge-teal { color: #75dbed; background: rgba(80, 204, 227, .14); }
.badge-green { color: #a1ead0; background: rgba(67, 203, 152, .13); }
.flow-symbol { margin-left: auto; color: #5d7899; font-family: var(--font-mono); font-size: 17px; white-space: nowrap; }
.flow-connector { height: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flow-connector span { width: 1px; height: 7px; background: #39516b; }
.flow-connector i { width: 5px; height: 5px; transform: rotate(45deg); border-right: 1px solid #6487ad; border-bottom: 1px solid #6487ad; }
.panel-footer { border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 9px; color: #748aa5; font-family: var(--font-mono); margin-top: 19px; padding-top: 16px; }
.panel-footer > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.tiny-indicator { width: 5px; height: 5px; }
.float-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; border: 1px solid rgba(136, 172, 223, .24); border-radius: 9px; box-shadow: 0 15px 40px rgba(0,0,0,.3); background: rgba(23, 35, 56, .94); color: #c0d7ee; padding: 12px 14px; }
.float-top { top: 6px; right: -20px; transform: rotate(3deg); }
.float-bottom { left: -37px; bottom: 21px; transform: rotate(-5deg); }
.mini-sparkle { color: var(--violet); font-size: 15px; }
.mini-green { width: 6px; height: 6px; }
.scroll-hint { position: absolute; bottom: 18px; left: 0; display: flex; align-items: center; gap: 13px; color: #657b96; font: 700 9px var(--font-mono); letter-spacing: .22em; }
.scroll-line { width: 39px; height: 1px; background: #5b7e99; }
.tech-marquee { border-block: 1px solid var(--line); background: rgba(74, 110, 173, .035); }
.tech-marquee-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 27px; font: 680 11px var(--font-mono); letter-spacing: .09em; color: #8a9db8; }
.tech-marquee b { font-weight: 400; color: #4d688a; font-size: 12px; }

/* Sections */
.section { padding-block: 126px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-label { color: #8eabc9; font: 700 10px var(--font-mono); letter-spacing: .2em; margin-bottom: 17px; }
.section-label span { color: var(--cyan); padding-right: 7px; }
.section-heading h2, .contact-inner h2 { color: #eff6ff; margin: 0; font-size: clamp(33px, 4vw, 48px); line-height: 1.17; letter-spacing: -.055em; font-weight: 850; }
.section-intro { font-size: 13px; color: #859bb4; max-width: 360px; line-height: 1.95; margin: 0 0 4px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.skill-card { position: relative; display: flex; flex-direction: column; min-height: 304px; border: 1px solid var(--line); padding: 26px 25px 22px; background: linear-gradient(140deg, rgba(21, 33, 54, .95), rgba(12, 21, 36, .93)); border-radius: var(--radius); transition: transform .24s, border-color .24s, box-shadow .24s; overflow: hidden; }
.skill-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at top right, rgba(121, 161, 237, .09), transparent 54%); opacity: 0; transition: opacity .24s; }
.skill-card:hover { transform: translateY(-4px); border-color: rgba(120, 169, 228, .38); box-shadow: 0 13px 28px rgba(0,0,0,.16); }
.skill-card:hover::after { opacity: 1; }
.skill-card-header { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.skill-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 12px; font: 760 19px var(--font-mono); }
.icon-violet { color: #c4a8ff; background: rgba(171, 125, 247, .1); border-color: rgba(171, 125, 247, .24); }
.icon-cyan { color: #87e6ec; background: rgba(90, 218, 224, .08); border-color: rgba(90, 218, 224, .24); }
.icon-blue { color: #9cbcff; background: rgba(108, 154, 242, .1); border-color: rgba(108, 154, 242, .24); font-size: 15px; }
.icon-green { color: #84e9bd; background: rgba(90, 217, 164, .08); border-color: rgba(90, 217, 164, .23); }
.icon-orange { color: #ffcaa1; background: rgba(234, 157, 103, .08); border-color: rgba(234, 157, 103, .22); }
.icon-sky { color: #8dd7fa; background: rgba(92, 190, 239, .08); border-color: rgba(92, 190, 239, .23); }
.skill-index { font: 620 10px var(--font-mono); color: #526881; }
.skill-card h3 { color: #e9f0fe; font-size: 17px; margin: 25px 0 11px; line-height: 1.45; }
.skill-card p { color: #94a9c2; font-size: 12px; line-height: 1.85; margin: 0 0 22px; flex: 1; }
.tag-list, .project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span, .project-tags span { font-size: 10px; color: #a9c0d9; background: rgba(113, 149, 198, .1); border: 1px solid rgba(113, 149, 198, .13); border-radius: 5px; padding: 6px 9px; white-space: nowrap; }

/* Featured project */
.project { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.project-featured { background: linear-gradient(120deg, #101b2e 0%, #0e1727 63%, #121d33 100%); border-color: rgba(114, 159, 219, .28); }
.project-featured-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 20px 30px; gap: 12px; }
.featured-pill { display: inline-flex; align-items: center; gap: 12px; color: #c6f1ee; font: 750 10px var(--font-mono); letter-spacing: .1em; }
.featured-pill .live-dot { width: 6px; height: 6px; }
.project-num { color: #7188a3; font: 700 10px var(--font-mono); letter-spacing: .08em; white-space: nowrap; }
.project-featured-grid { display: grid; grid-template-columns: 1.23fr .77fr; gap: 44px; padding: 45px 37px 43px; align-items: start; }
.project-main { min-width: 0; }
.project-super { color: #88afd4; font: 730 10px var(--font-mono); letter-spacing: .16em; }
.project-main h3 { color: white; font-size: clamp(40px, 5vw, 61px); letter-spacing: -.055em; line-height: 1.12; margin: 12px 0 9px; }
.project-name-accent { color: var(--cyan); font-size: .64em; vertical-align: .15em; }
.project-subtitle { color: #b5c9e0; font-size: 13px; letter-spacing: .01em; margin: 0; }
.project-description { color: #adbed2; font-size: 13px; line-height: 1.95; margin: 28px 0; }
.feature-list { display: grid; gap: 17px; }
.feature-list > div { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; color: #9db2ca; line-height: 1.83; }
.feature-list strong { color: #d4e7f9; font-weight: 720; }
.feature-bullet { color: #78dce4; font-family: var(--font-mono); font-weight: bold; flex: 0 0 auto; }
.project-tags { margin-top: 31px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.project-url { color: #7895b2; font: 650 11px var(--font-mono); }
.project-aside { min-width: 0; position: relative; padding: 0; border: 1px solid rgba(140, 175, 224, .22); background: #0b1424; border-radius: 14px; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(153, 180, 227, .06); border-bottom: 1px solid var(--line); padding: 14px 16px; font: 620 9px var(--font-mono); color: #8098b4; }
.code-body { padding: 24px 17px 23px; font: 650 11px / 2 var(--font-mono); color: #b8d4e8; white-space: nowrap; overflow-x: auto; }
.code-body p { margin: 0; }
.code-body .code-comment { color: #6a819b; margin-bottom: 8px; }
.code-body .code-comment:not(:first-child) { margin-top: 15px; }
.code-purple { color: #c4a4ff; }
.code-green { color: #8be2be; }
.code-teal { color: #84dfed; }
.code-yellow { color: #e8d49f; }
.code-blue { color: #9ec4ff; }
.code-muted { color: #6b7d95; }
.code-indent { padding-left: 75px; }
.data-box { margin: 0 14px 14px; padding: 19px 18px 13px; background: linear-gradient(150deg, #131f34, #101a2b); border: 1px solid rgba(138, 164, 206, .14); border-radius: 12px; }
.data-label { color: #6e9ebf; font: 690 9px var(--font-mono); letter-spacing: .11em; }
.data-head { font-size: 20px; font-weight: 780; color: #e0eafb; margin-top: 9px; letter-spacing: -.02em; }
.data-head span { color: var(--cyan); }
.data-visual { display: flex; align-items: end; gap: 5px; height: 82px; margin-top: 20px; padding-bottom: 3px; border-bottom: 1px solid rgba(122, 167, 220, .16); }
.data-visual i { display: block; flex: 1; min-width: 0; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(0deg, rgba(99, 156, 249, .3), rgba(109, 229, 233, .83)); }
.data-visual i:nth-child(1) { height: 28%; }
.data-visual i:nth-child(2) { height: 45%; }
.data-visual i:nth-child(3) { height: 70%; }
.data-visual i:nth-child(4) { height: 52%; }
.data-visual i:nth-child(5) { height: 88%; }
.data-visual i:nth-child(6) { height: 64%; }
.data-visual i:nth-child(7) { height: 96%; }
.data-visual i:nth-child(8) { height: 61%; }
.data-visual i:nth-child(9) { height: 77%; }
.data-visual i:nth-child(10) { height: 41%; }
.data-visual i:nth-child(11) { height: 59%; }
.data-visual i:nth-child(12) { height: 31%; }
.data-visual i:nth-child(3n + 1) { background: linear-gradient(0deg, rgba(110, 87, 193, .35), rgba(182, 149, 255, .88)); }
.data-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; color: #6e88a5; font: 600 9px var(--font-mono); padding-top: 13px; }
.diagram-note { text-align: center; color: #6f849e; font-size: 10px; margin: 0 14px 16px; }
.project-secondary { margin-top: 22px; background: rgba(15, 24, 40, .88); padding: 35px 37px 33px; }
.project-secondary-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.project-secondary h3 { color: #e9f3ff; font-size: clamp(21px, 2.6vw, 29px); margin: 15px 0 10px; letter-spacing: -.03em; }
.secondary-description { margin: 23px 0 23px; color: #9fb3ca; font-size: 12px; line-height: 1.9; }
.secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secondary-feature { display: flex; gap: 15px; align-items: flex-start; background: rgba(136, 165, 213, .035); border: 1px solid rgba(136, 165, 213, .09); border-radius: 11px; padding: 19px 17px; }
.secondary-feature span { color: var(--cyan); font: 700 11px var(--font-mono); }
.secondary-feature p { margin: 0; color: #a7bbd1; font-size: 12px; line-height: 1.85; }
.project-secondary .project-tags { margin-top: 25px; }

/* Work and education */
.timeline-layout { display: grid; grid-template-columns: 40px 1fr; }
.timeline-rail { width: 2px; background: linear-gradient(180deg, var(--cyan), rgba(81, 118, 156, .16)); position: relative; margin: 8px 0 0 7px; }
.rail-dot { position: absolute; top: -3px; left: -6px; width: 14px; height: 14px; border: 3px solid #132337; background: var(--cyan); box-shadow: 0 0 0 3px rgba(112, 213, 232, .15); border-radius: 50%; }
.timeline-main { background: linear-gradient(140deg, rgba(20, 32, 52, .9), rgba(12, 21, 36, .9)); border: 1px solid var(--line); border-radius: 20px; padding: 38px; }
.work-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.company-type { color: #83e4d2; background: rgba(83, 203, 186, .09); padding: 8px 11px; border: 1px solid rgba(83, 203, 186, .18); font-size: 10px; font-weight: 750; border-radius: 6px; }
.work-time { color: #84a1c1; font: 700 11px var(--font-mono); }
.timeline-main h3 { margin: 22px 0 9px; color: #edf5ff; font-size: clamp(20px, 3vw, 30px); letter-spacing: -.03em; }
.job-title { color: #a3bbd2; font-size: 12px; margin: 0 0 25px; }
.job-title span { padding: 0 8px; color: #5e7995; }
.work-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.work-highlights > div { display: flex; gap: 13px; align-items: flex-start; border: 1px solid rgba(142, 167, 211, .1); border-radius: 11px; padding: 18px; background: rgba(130, 165, 216, .028); }
.work-highlights span { color: var(--cyan); font: 700 10px var(--font-mono); padding-top: 3px; }
.work-highlights p { margin: 0; color: #a4b6ca; font-size: 12px; line-height: 1.85; }
.work-highlights strong { color: #d8e9ff; }
.education-section { padding-bottom: 133px; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.education-card { background: linear-gradient(150deg, #142039, #0e1829); border: 1px solid var(--line); border-radius: 18px; padding: 29px 30px 24px; transition: border-color .2s, transform .2s; }
.education-card:hover { border-color: rgba(148, 176, 220, .3); transform: translateY(-2px); }
.degree-label { color: #91e2de; font: 680 11px var(--font-mono); display: flex; gap: 9px; align-items: center; }
.degree-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.education-card h3 { color: #eef3fa; font-size: 23px; margin: 19px 0 10px; }
.education-card > p { color: #a8bcd4; font-size: 13px; margin: 0 0 32px; }
.edu-footer { padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #829ab6; font: 700 10px var(--font-mono); }
.edu-footer span:last-child { color: #5d7694; font-size: 9px; }

/* Contact/footer */
.contact-section { position: relative; overflow: hidden; border-block: 1px solid rgba(134, 181, 235, .16); background: linear-gradient(122deg, #13213b, #0a182b 72%, #11233b); }
.contact-section::after { content: ""; pointer-events: none; position: absolute; top: -190px; right: 4%; width: 530px; height: 530px; border-radius: 50%; border: 1px solid rgba(127, 198, 231, .09); box-shadow: 0 0 0 60px rgba(119, 168, 231, .025), 0 0 0 130px rgba(119, 168, 231, .018); }
.contact-inner { position: relative; z-index: 1; padding-block: 87px 80px; }
.contact-inner h2 { font-size: clamp(36px, 5vw, 59px); }
.contact-inner > div:first-child > p { color: #9db7cf; line-height: 2; font-size: 13px; max-width: 560px; margin: 21px 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 29px; }
.contact-details { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(141, 175, 218, .15); font: 650 11px var(--font-mono); color: #9bb5cc; }
.contact-details a:hover { color: white; }
.contact-divider { height: 15px; width: 1px; background: rgba(141, 175, 218, .3); }
.footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { color: #f2f8ff; font-size: 25px; font-weight: 850; letter-spacing: -.08em; }
.footer > span { color: #6d839e; font-size: 11px; }
.back-top { color: #95b0cc; font-size: 11px; }
.back-top:hover { color: white; }

/* Progressive enhancement: reveal only when JS is available */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 1080px) {
  .hero { gap: 35px; padding-top: 93px; }
  .hero h1 { font-size: clamp(60px, 7vw, 81px); }
  .brand-name { display: none; }
  .project-featured-grid { gap: 24px; padding: 35px 28px; }
  .fact { margin-right: 13px; padding-right: 13px; }
  .float-top { right: -8px; }
  .float-bottom { left: -12px; }
}
@media (max-width: 860px) {
  .container { width: min(var(--max), calc(100% - 50px)); }
  .site-header { height: 72px; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 71px; left: 0; right: 0; padding: 17px 25px 23px; gap: 0; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line-light); background: rgba(9, 15, 26, .98); box-shadow: 0 15px 35px rgba(0,0,0,.28); visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links > a:not(.nav-resume) { padding: 13px 8px; font-size: 14px; }
  .nav-resume { align-self: stretch; justify-content: center; margin-top: 10px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-top: 71px; gap: 50px; padding-bottom: 95px; }
  .hero h1 { font-size: clamp(64px, 9vw, 88px); }
  .hero-description { max-width: 650px; }
  .hero-showcase { max-width: 510px; width: 100%; margin: auto; }
  .showcase-orbit-one, .showcase-orbit-two { display: none; }
  .scroll-hint { bottom: 25px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-featured-grid { grid-template-columns: 1fr; gap: 31px; }
  .project-aside { max-width: 520px; width: 100%; }
  .code-body { overflow-x: visible; }
  .section { padding-top: 94px; }
  .education-section { padding-bottom: 100px; }
  .section-heading { align-items: flex-start; }
}
@media (max-width: 600px) {
  .container { width: min(var(--max), calc(100% - 34px)); }
  .hero { padding-top: 54px; gap: 34px; }
  .hero-eyebrow { font-size: 9px; }
  .hero-kicker { margin-top: 37px; }
  .hero h1 { font-size: clamp(54px, 15vw, 82px); }
  .hero-role { font-size: clamp(20px, 5vw, 27px); }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 180px; padding-inline: 12px; }
  .hero-facts { margin-top: 34px; }
  .fact { padding-right: 10px; margin-right: 10px; font-size: 10px; }
  .fact small { font-size: 9px; }
  .system-panel { transform: none; }
  .panel-body { padding: 17px; }
  .float-top { right: 0; top: 0; }
  .float-bottom { left: 0; bottom: 3px; }
  .float-label { font-size: 9px; padding: 9px 10px; }
  .scroll-hint { bottom: 15px; }
  .tech-marquee-inner { justify-content: center; gap: 14px; padding-block: 19px; font-size: 9px; }
  .tech-marquee-inner b:nth-of-type(even) { display: none; }
  .section { padding-top: 79px; }
  .section-heading { flex-direction: column; gap: 15px; margin-bottom: 27px; }
  .section-label { margin-bottom: 12px; }
  .section-intro { max-width: 100%; }
  .skills-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-card { min-height: 0; padding: 24px 22px; }
  .skill-card h3 { margin-top: 19px; }
  .skill-card p { margin-bottom: 18px; }
  .project { border-radius: 18px; }
  .project-featured-head { padding: 18px 18px; }
  .project-featured-grid { padding: 29px 21px 23px; }
  .project-main h3 { font-size: 44px; }
  .feature-list { gap: 14px; }
  .feature-list > div { font-size: 11px; }
  .project-actions .btn { width: 100%; }
  .code-body { font-size: 10px; overflow-x: auto; }
  .project-secondary { padding: 26px 22px; }
  .project-secondary-top { flex-direction: column; gap: 12px; }
  .project-secondary h3 { font-size: 22px; }
  .secondary-grid { grid-template-columns: 1fr; gap: 9px; }
  .secondary-feature { padding: 14px; }
  .timeline-layout { grid-template-columns: 18px 1fr; }
  .timeline-main { padding: 24px 19px; }
  .timeline-main h3 { font-size: 20px; }
  .work-highlights { grid-template-columns: 1fr; gap: 8px; }
  .work-highlights > div { padding: 14px; }
  .education-grid { grid-template-columns: 1fr; gap: 12px; }
  .education-card { padding: 26px; }
  .education-section { padding-bottom: 85px; }
  .contact-inner { padding-block: 70px 60px; }
  .contact-details { gap: 11px; line-height: 1.6; }
  .footer { padding-block: 24px; flex-wrap: wrap; min-height: 90px; }
  .footer > span { flex: 1 1 65%; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 52px; }
  .brand-symbol { font-size: 21px; }
  .hero-facts { gap: 12px; }
  .fact { border-right: 0; }
  .flow-step { padding: 10px; gap: 9px; }
  .flow-step strong { font-size: 10px; }
  .flow-symbol { display: none; }
  .code-body { font-size: 9px; }
}
