:root {
  --bg: #0b0c0d;
  --surface: #111415;
  --surface-2: #171a1b;
  --surface-3: #202526;
  --line: #2a3030;
  --line-bright: #465050;
  --text: #f4f6f1;
  --muted: #9aa4a1;
  --muted-2: #68726f;
  --lime: #c6ff00;
  --orange: #ff4d00;
  --teal: #42d9c4;
  --yellow: #f4d35e;
  --shell: 1240px;
  --nav-height: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.shell { width: min(var(--shell), calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 13px; background: var(--lime); color: #0b0c0d; transform: translateY(-150%); transition: transform .2s ease; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.skip-link:focus { transform: translateY(0); }

/* CRT treatment is intentionally restrained so text stays readable. */
.crt-overlay { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .09; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 1px, transparent 1px, transparent 4px); mix-blend-mode: screen; }
.crt-flicker { position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: .025; background: #fff; animation: flicker 8s steps(1, end) infinite; }
@keyframes flicker { 0%, 97%, 100% { opacity: .02; } 98% { opacity: .05; } 99% { opacity: .012; } }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 30; background: rgba(11,12,13,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-inner { width: min(var(--shell), calc(100% - 64px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 140px; font: 600 15px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.logo-mark { width: 15px; height: 15px; background: var(--orange); box-shadow: 5px 5px 0 var(--lime); }
.logo-under { color: var(--orange); }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font: 500 12px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 1px; }
.nav-menu a { color: var(--muted); transition: color .2s ease; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--lime); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.lang-btn { border: 0; background: transparent; padding: 6px 2px; color: var(--muted-2); cursor: pointer; }
.lang-btn.active, .lang-btn:hover, .lang-btn:focus-visible { color: var(--lime); }
.lang-sep { color: var(--line-bright); }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 500 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 1px; }
.nav-gh:hover, .nav-gh:focus-visible { color: var(--text); }
.nav-gh svg { width: 17px; height: 17px; }
.nav-burger { display: none; width: 40px; height: 34px; padding: 7px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.nav-burger span { display: block; height: 1px; margin: 4px 0; background: var(--text); transition: transform .2s ease; }

/* Shared type / controls */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-kicker { margin: 0 0 10px; color: var(--lime); font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: 1.5px; text-transform: uppercase; }
.section-title { margin: 0; font: 400 52px/1.05 "Anton", "Noto Sans SC", sans-serif; letter-spacing: 0; text-transform: uppercase; }
.section-note { max-width: 330px; margin: 0 0 4px; color: var(--muted); font: 500 12px/1.6 "JetBrains Mono", monospace; text-align: right; text-transform: uppercase; letter-spacing: .6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-bright); cursor: pointer; font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .8px; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-orange { border-color: var(--orange); background: var(--orange); color: #0b0c0d; }
.btn-orange:hover, .btn-orange:focus-visible { background: #ff6a2b; border-color: #ff6a2b; }
.btn-outline { border-color: var(--line-bright); background: transparent; color: var(--text); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--lime); color: var(--lime); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--lime); font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .8px; text-transform: uppercase; }
.text-link:hover, .text-link:focus-visible { color: var(--orange); }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border: 1px solid var(--line-bright); color: var(--muted); font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: .6px; text-transform: uppercase; }

/* Hero */
.hero { min-height: calc(100svh - 200px); padding: calc(var(--nav-height) + 32px) 0 20px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 68px; align-items: center; flex: 1; }
.hero-left { min-width: 0; }
.terminal { border: 1px solid var(--line); background: rgba(17,20,21,.86); }
.terminal-bar { min-height: 33px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-bottom: 1px solid var(--line); color: var(--muted-2); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .8px; }
.term-dot { width: 6px; height: 6px; background: var(--line-bright); }
.term-dot:first-child { background: var(--orange); }
.term-title { margin-left: 7px; }
.term-status { margin-left: auto; color: var(--lime); font-size: 9px; }
.terminal-body { min-height: 126px; padding: 15px 17px 17px; color: var(--muted); font: 500 11px/1.75 "JetBrains Mono", monospace; }
.terminal-body p { margin: 0; white-space: pre-wrap; }
.term-line { color: var(--text); }
.term-line::first-letter { color: var(--orange); }
.term-out { color: var(--muted-2); }
.hero-title-block { margin-top: 41px; max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--lime); font: 600 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 1px; }
.badge-dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 14px rgba(198,255,0,.75); }
.hero-title { margin: 0; font: 400 8.6rem/.88 "Anton", "Noto Sans SC", sans-serif; letter-spacing: 0; text-transform: uppercase; }
.title-white { color: var(--text); }
.title-orange { color: var(--orange); }
.hero-role { margin: 20px 0 0; color: var(--text); font: 600 16px/1.4 "JetBrains Mono", "Noto Sans SC", monospace; letter-spacing: .5px; }
.hero-sub { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-right { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.portrait-frame { position: relative; width: min(100%, 500px); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-bright); background: #16201f; box-shadow: 13px 13px 0 rgba(255,77,0,.13); }
.portrait-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; image-rendering: pixelated; filter: saturate(.95) contrast(1.03) brightness(.9); }
.portrait-tint { position: absolute; inset: 0; background: rgba(18,145,122,.13); mix-blend-mode: screen; pointer-events: none; }
.portrait-grid { position: absolute; inset: 0; pointer-events: none; opacity: .22; background: repeating-linear-gradient(0deg, transparent 0, transparent 8px, rgba(198,255,0,.12) 9px), repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(255,77,0,.06) 32px); }
.portrait-crosshair { position: absolute; left: 50%; top: 45%; width: 82px; height: 82px; border: 1px solid rgba(198,255,0,.65); transform: translate(-50%, -50%); opacity: .68; }
.portrait-crosshair::before, .portrait-crosshair::after { content: ""; position: absolute; background: var(--lime); opacity: .8; }
.portrait-crosshair::before { left: 50%; top: -12px; width: 1px; height: calc(100% + 24px); }
.portrait-crosshair::after { top: 50%; left: -12px; height: 1px; width: calc(100% + 24px); }
.portrait-label { position: absolute; z-index: 2; color: var(--lime); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
.portrait-label-top { top: 14px; left: 15px; }
.portrait-label-bottom { right: 15px; bottom: 14px; color: var(--text); opacity: .75; }
.portrait-corner { position: absolute; z-index: 2; width: 19px; height: 19px; border-color: var(--orange); }
.corner-tl { top: 11px; right: 11px; border-top: 2px solid; border-right: 2px solid; }
.corner-tr { top: 11px; left: 11px; border-top: 2px solid; border-left: 2px solid; }
.corner-bl { bottom: 11px; right: 11px; border-bottom: 2px solid; border-right: 2px solid; }
.corner-br { bottom: 11px; left: 11px; border-bottom: 2px solid; border-left: 2px solid; }
.hero-readout { width: min(100%, 500px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.hero-readout > div { min-width: 0; padding: 10px 11px 11px; border-right: 1px solid var(--line); }
.hero-readout > div:last-child { border-right: 0; }
.readout-label { display: block; margin-bottom: 5px; color: var(--muted-2); font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.hero-readout strong { display: block; overflow-wrap: anywhere; color: var(--text); font: 600 10px/1.3 "JetBrains Mono", monospace; }
.readout-live { display: inline-flex !important; align-items: center; gap: 5px; color: var(--lime) !important; }
.readout-live i, .footer-status i { width: 6px; height: 6px; display: inline-block; background: var(--lime); box-shadow: 0 0 9px rgba(198,255,0,.8); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; color: var(--muted-2); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-line { width: 42px; height: 1px; background: var(--orange); }
.hero-index { color: var(--line-bright); }

/* Work */
.work-section { padding-top: 88px; background: #0e1111; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.filter-btn { min-height: 29px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--muted-2); cursor: pointer; font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: .7px; text-transform: uppercase; }
.filter-btn:hover, .filter-btn:focus-visible, .filter-btn.active { border-color: var(--lime); color: var(--lime); }
.filter-btn.active { background: rgba(198,255,0,.08); }
.filter-count { margin-left: auto; color: var(--muted-2); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.projects-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.project-card:hover { border-color: var(--line-bright); transform: translateY(-4px); box-shadow: 7px 7px 0 rgba(198,255,0,.07); }
.project-card.featured { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.project-card.featured.alt { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.project-card.featured.alt .project-media { order: 2; }
.project-card.featured.alt .project-body { order: 1; }
.project-card.standard { grid-column: span 4; display: flex; flex-direction: column; }
.project-media { position: relative; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #111; border-bottom: 1px solid var(--line); }
.featured .project-media { height: 100%; min-height: 330px; border-bottom: 0; border-right: 1px solid var(--line); }
.featured.alt .project-media { border-right: 0; border-left: 1px solid var(--line); }
.project-image { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) contrast(1.08) brightness(.72); transition: transform .45s ease, filter .45s ease; }
.project-card:hover .project-image { transform: scale(1.04); filter: saturate(.82) contrast(1.08) brightness(.88); }
.project-image-ui { object-fit: contain; background: #ecf1ef; filter: saturate(.88) contrast(1.02) brightness(.9); }
.project-card:hover .project-image-ui { transform: scale(1.015); filter: saturate(1) contrast(1.02) brightness(.98); }
.project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 1px, transparent 1px, transparent 5px); opacity: .4; }
.project-media-ui::after { opacity: .18; }
.modal-media img.project-image-ui { object-fit: contain; background: #ecf1ef; filter: saturate(.92) contrast(1.02) brightness(.94); }
.media-index { position: absolute; z-index: 2; top: 12px; left: 13px; color: var(--lime); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.media-open { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: 34px; height: 34px; border: 1px solid var(--lime); background: rgba(11,12,13,.82); color: var(--lime); cursor: pointer; font: 400 25px/1 "Inter", sans-serif; transition: background .2s ease, color .2s ease; }
.media-open:hover, .media-open:focus-visible { background: var(--lime); color: var(--bg); }
.project-body { min-width: 0; padding: 23px 24px 22px; display: flex; flex-direction: column; }
.featured .project-body { justify-content: center; }
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.project-kicker { color: var(--orange); font: 600 10px/1.3 "JetBrains Mono", monospace; letter-spacing: .8px; text-transform: uppercase; }
.project-number { color: var(--muted-2); font: 500 10px/1 "JetBrains Mono", monospace; }
.project-body h3 { margin: 0; overflow-wrap: anywhere; color: var(--text); font: 400 31px/1.1 "Anton", "Noto Sans SC", sans-serif; letter-spacing: 0; text-transform: uppercase; }
.project-tagline { margin: 11px 0 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.project-desc { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 17px; }
.project-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 21px 0 0; border-top: 1px dashed var(--line-bright); border-bottom: 1px dashed var(--line-bright); }
.metric { min-width: 0; padding: 11px 10px 10px 0; border-right: 1px dashed var(--line); }
.metric + .metric { padding-left: 10px; }
.metric:last-child { border-right: 0; }
.metric dt { overflow-wrap: anywhere; color: var(--muted-2); font: 500 9px/1.3 "JetBrains Mono", monospace; letter-spacing: .6px; text-transform: uppercase; }
.metric dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--lime); font: 600 14px/1.15 "JetBrains Mono", monospace; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.evidence-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font: 500 9px/1.3 "JetBrains Mono", monospace; letter-spacing: .4px; text-transform: uppercase; }
.evidence-dot { flex: 0 0 auto; width: 6px; height: 6px; background: var(--teal); box-shadow: 0 0 9px rgba(66,217,196,.75); }
.project-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px; }
.mini-link, .case-link { border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; font: 600 10px/1.3 "JetBrains Mono", monospace; letter-spacing: .5px; text-transform: uppercase; }
.mini-link:hover, .mini-link:focus-visible, .case-link:hover, .case-link:focus-visible { color: var(--lime); }
.mini-link-demo { color: var(--orange); }
.case-link { color: var(--text); }

/* Covers for projects without screenshots */
.cover-art { position: absolute; inset: 0; overflow: hidden; background-color: #07100f; }
.cover-art::before { content: ""; position: absolute; inset: 0; opacity: .36; background-image: linear-gradient(rgba(198,255,0,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(198,255,0,.15) 1px, transparent 1px); background-size: 30px 30px; transform: perspective(260px) rotateX(56deg) scale(1.35) translateY(18%); transform-origin: center bottom; }
.cover-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0, transparent 6px, rgba(255,255,255,.05) 7px); }
.cover-swanmatch { background-color: #0b1717; }
.cover-swanmatch .cover-core { position: absolute; left: 48%; top: 45%; width: 92px; height: 92px; border: 2px solid var(--lime); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 18px rgba(198,255,0,.05), 0 0 0 38px rgba(66,217,196,.04); }
.cover-swanmatch .cover-core::before, .cover-swanmatch .cover-core::after { content: ""; position: absolute; background: var(--orange); }
.cover-swanmatch .cover-core::before { width: 170px; height: 1px; left: -40px; top: 44px; transform: rotate(-28deg); }
.cover-swanmatch .cover-core::after { width: 1px; height: 150px; left: 44px; top: -28px; transform: rotate(32deg); }
.cover-productlens { background-color: #14100d; }
.cover-productlens .cover-core { position: absolute; left: 50%; top: 49%; width: 140px; height: 92px; border: 1px solid var(--orange); transform: translate(-50%, -50%) rotate(-10deg); box-shadow: 14px 14px 0 rgba(198,255,0,.18); }
.cover-productlens .cover-core::before { content: "GO"; position: absolute; left: 21px; top: 19px; color: var(--lime); font: 600 36px/1 "Anton", sans-serif; }
.cover-productlens .cover-core::after { content: "NO-GO"; position: absolute; right: 16px; bottom: 17px; color: var(--orange); font: 600 14px/1 "JetBrains Mono", monospace; }
.cover-rushcoupon { background-color: #11120b; }
.cover-rushcoupon .cover-bars { position: absolute; left: 19%; right: 18%; bottom: 24%; height: 48%; display: flex; align-items: end; gap: 10px; }
.cover-rushcoupon .cover-bars i { flex: 1; border: 1px solid var(--lime); background: rgba(198,255,0,.18); }
.cover-rushcoupon .cover-bars i:nth-child(1) { height: 35%; }.cover-rushcoupon .cover-bars i:nth-child(2) { height: 55%; }.cover-rushcoupon .cover-bars i:nth-child(3) { height: 76%; background: rgba(255,77,0,.36); border-color: var(--orange); }.cover-rushcoupon .cover-bars i:nth-child(4) { height: 92%; }.cover-rushcoupon .cover-bars i:nth-child(5) { height: 64%; background: rgba(66,217,196,.25); border-color: var(--teal); }
.cover-research { background-color: #0b1012; }
.cover-research .cover-core { width: 152px; height: 94px; border: 1px solid var(--teal); background: rgba(66,217,196,.08); transform: translate(-50%, -50%) rotate(-4deg); box-shadow: 12px 12px 0 rgba(255,77,0,.18), 24px 24px 0 rgba(198,255,0,.08); }
.cover-research .cover-core::before { content: "L1  L2  L3  L4"; position: absolute; left: 15px; top: 17px; color: var(--lime); font: 600 11px/1 "JetBrains Mono", monospace; }
.cover-research .cover-core::after { content: "VERIFY → SCORE"; position: absolute; left: 15px; bottom: 16px; color: var(--text); font: 500 12px/1 "JetBrains Mono", monospace; }
.cover-maze { background-color: #0d1210; }
.cover-maze .cover-core { position: absolute; inset: 21% 24%; border: 1px solid var(--lime); transform: perspective(160px) rotateX(18deg); box-shadow: inset 0 0 0 15px rgba(255,77,0,.07); }
.cover-maze .cover-core::before, .cover-maze .cover-core::after { content: ""; position: absolute; border: 1px solid var(--orange); }
.cover-maze .cover-core::before { inset: 17% 18%; }.cover-maze .cover-core::after { inset: 36% 35%; border-color: var(--teal); }
.cover-orbit { position: absolute; left: 50%; top: 50%; width: 170px; height: 52px; border: 1px solid var(--orange); border-radius: 50%; transform: translate(-50%, -50%) rotate(26deg); opacity: .7; }
.orbit-b { width: 230px; border-color: var(--teal); transform: translate(-50%, -50%) rotate(-31deg); opacity: .42; }
.cover-core { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; background: var(--lime); transform: translate(-50%, -50%); box-shadow: 0 0 24px rgba(198,255,0,.55); }
.cover-code { position: absolute; z-index: 2; left: 15px; bottom: 14px; color: var(--muted); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .6px; }

/* Method */
.method-section { background: #0b0d0e; }
.method-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: stretch; }
.method-console { min-height: 334px; }
.console-body { padding: 25px 26px; }
.console-body p { display: grid; grid-template-columns: 30px minmax(130px, .45fr) minmax(0, 1fr); gap: 16px; align-items: baseline; margin: 0; padding: 14px 0; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.console-body p:last-child { border-bottom: 0; }
.console-body .prompt { color: var(--orange); font: 600 11px/1 "JetBrains Mono", monospace; }
.console-body b { color: var(--text); font-size: 14px; font-weight: 600; }
.evidence-panel { padding: 5px 0 0 27px; border-left: 1px solid var(--line); }
.evidence-line { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.evidence-line:last-of-type { margin-bottom: 0; }
.evidence-no { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--lime); color: var(--lime); font: 600 12px/1 "JetBrains Mono", monospace; }
.evidence-line h3 { margin: 0 0 5px; color: var(--text); font: 600 15px/1.2 "JetBrains Mono", "Noto Sans SC", monospace; }
.evidence-line p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Notes */
.notes-section { background: #101212; }
.notes-list { border-top: 1px solid var(--line); }
.note-row { position: relative; display: grid; grid-template-columns: 90px 170px minmax(0, 1fr) 35px 28px; gap: 20px; align-items: center; min-height: 105px; padding: 17px 0; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.note-row:hover { padding-left: 12px; padding-right: 12px; background: var(--surface-2); }
.note-row time { color: var(--orange); font: 600 11px/1 "JetBrains Mono", monospace; }
.note-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.note-copy { min-width: 0; }
.note-copy h3 { margin: 0; color: var(--text); font: 600 17px/1.35 "Noto Sans SC", "Inter", sans-serif; overflow-wrap: anywhere; }
.note-copy p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.note-arrow { color: var(--lime); font-size: 23px; text-align: right; }
.note-index { color: var(--muted-2); font: 500 10px/1 "JetBrains Mono", monospace; text-align: right; }

/* About */
.about-section { background: #0b0c0d; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 18px; }
.about-terminal { min-height: 300px; }
.about-copy { padding: 34px 30px 30px; }
.about-quote { max-width: 600px; margin: 0; color: var(--text); font: 400 29px/1.32 "Noto Sans SC", "Inter", sans-serif; }
.about-small { max-width: 580px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-sign { margin-top: 30px; color: var(--lime); font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.blink { animation: blink 1.15s steps(1, end) infinite; }
@keyframes blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.about-facts { border-left: 1px solid var(--line); padding-left: 27px; }
.fact-block { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.fact-block:last-child { margin-bottom: 0; border-bottom: 0; }
.fact-label { display: block; margin-bottom: 9px; color: var(--orange); font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }
.fact-block strong { display: block; color: var(--text); font-size: 16px; }
.fact-block > span:not(.fact-label) { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-tags span { padding: 7px 9px; border: 1px solid var(--line-bright); color: var(--muted); font: 500 10px/1 "JetBrains Mono", monospace; }
.awards-block p { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.signal-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 6px; }.signal-dot.orange { background: var(--orange); }.signal-dot.lime { background: var(--lime); }

/* Contact / footer */
.contact-section { padding: 120px 0 112px; border-top: 1px solid var(--line); background: #111413; }
.contact-inner { text-align: center; }
.contact-inner .section-kicker { margin-bottom: 17px; }
.contact-inner h2 { max-width: 850px; margin: 0 auto; font: 400 62px/1.05 "Anton", "Noto Sans SC", sans-serif; letter-spacing: 0; text-transform: uppercase; }
.contact-sub { max-width: 610px; margin: 17px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin: 40px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-link { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 17px 18px 18px; text-align: left; border-right: 1px solid var(--line); transition: background .2s ease; }
.contact-link:last-child { border-right: 0; }.contact-link:hover, .contact-link:focus-visible { background: var(--surface-2); }
.contact-link.primary { color: var(--lime); }.contact-label { grid-column: 1 / -1; color: var(--muted-2); font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }.contact-link strong { min-width: 0; overflow-wrap: anywhere; font: 500 12px/1.3 "JetBrains Mono", monospace; }.contact-link > span:last-child { color: var(--orange); font-size: 18px; line-height: 1; }
.footer { border-top: 1px solid var(--line); background: #090a0a; }.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 65px; color: var(--muted-2); font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .8px; text-transform: uppercase; }.footer-status { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); }.footer-inner a:hover, .footer-inner a:focus-visible { color: var(--text); }

/* Modal */
.modal[hidden] { display: none; }.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 25px; }.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,4,.86); }.modal-dialog { position: relative; width: min(100%, 980px); max-height: min(90svh, 780px); overflow: auto; border: 1px solid var(--line-bright); background: var(--surface); box-shadow: 10px 10px 0 rgba(255,77,0,.18); padding: 32px; }.modal-close { position: absolute; top: 10px; right: 11px; width: 33px; height: 33px; border: 1px solid var(--line-bright); background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; }.modal-close:hover, .modal-close:focus-visible { border-color: var(--orange); color: var(--orange); }.modal-kicker { margin-bottom: 9px; color: var(--orange); font: 600 10px/1.3 "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }.modal-dialog h2 { max-width: 730px; margin: 0; color: var(--text); font: 400 49px/1.05 "Anton", "Noto Sans SC", sans-serif; letter-spacing: 0; text-transform: uppercase; }.modal-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 24px; margin-top: 24px; }.modal-media { min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); }.modal-media .project-image { filter: saturate(.7) contrast(1.05) brightness(.8); }.modal-copy { min-width: 0; }.modal-copy section { padding: 0 0 15px; margin-bottom: 15px; border-bottom: 1px dashed var(--line); }.modal-copy section:last-child { margin-bottom: 0; border-bottom: 0; }.modal-copy h3 { margin: 0 0 5px; color: var(--lime); font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: 1px; }.modal-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }.reveal.in { opacity: 1; transform: translateY(0); }

*:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 42px; }
  .hero-title { font-size: 7rem; }
  .project-card.standard { grid-column: span 6; }
}

@media (max-width: 900px) {
  :root { --nav-height: 62px; }
  .shell, .nav-inner { width: min(var(--shell), calc(100% - 40px)); }
  .nav-menu { position: absolute; top: var(--nav-height); left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); background: #0b0c0d; }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; border-top: 1px solid var(--line); }.nav-menu a { display: block; padding: 15px 20px; }
  .nav-burger { display: block; }.nav-gh span { display: none; }
  .hero { padding-top: calc(var(--nav-height) + 44px); }.hero-grid { grid-template-columns: 1fr; gap: 54px; }.hero-right { max-width: 520px; width: 100%; justify-self: center; }.hero-title { font-size: 7rem; }.hero-left { order: 1; }.hero-right { order: 2; }
  .section { padding: 88px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }.section-note { max-width: none; text-align: left; }
  .project-card.featured, .project-card.featured.alt { grid-template-columns: 1fr; }.project-card.featured .project-media, .project-card.featured.alt .project-media { order: 1; min-height: 0; height: auto; aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid var(--line); }.project-card.featured .project-body, .project-card.featured.alt .project-body { order: 2; }.project-card.standard { grid-column: span 6; }
  .method-layout, .about-grid { grid-template-columns: 1fr; }.evidence-panel, .about-facts { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
  .contact-inner h2 { font-size: 52px; }
}

@media (max-width: 680px) {
  .shell, .nav-inner { width: calc(100% - 28px); }
  .nav-inner { gap: 12px; }.nav-logo { min-width: 0; }.nav-actions { gap: 10px; }.lang-toggle { gap: 4px; }
  .hero { min-height: calc(100svh - 100px); padding-top: calc(var(--nav-height) + 24px); padding-bottom: 16px; }.hero-grid { gap: 22px; }.terminal-hero { display: none; }.hero-title-block { margin-top: 0; }.hero-title { font-size: 4.45rem; line-height: .94; }.hero-role { margin-top: 14px; font-size: 13px; line-height: 1.5; }.hero-sub { margin-top: 9px; font-size: 13px; line-height: 1.65; }.hero-cta { margin-top: 20px; }.hero-cta .btn { flex: 1 1 145px; min-height: 40px; padding-left: 10px; padding-right: 10px; }.hero-right { width: 100%; max-width: 320px; }.portrait-frame { width: 100%; height: auto; aspect-ratio: 1; }.portrait-image { object-position: 50% 50%; }.portrait-crosshair { width: 62px; height: 62px; }.hero-readout { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }.hero-readout > div { display: block; padding: 8px 7px 9px; border-right: 1px solid var(--line); border-bottom: 0; }.hero-readout > div:last-child { border-right: 0; }.readout-label { margin-bottom: 4px; }.hero-readout strong { font-size: 8px; }.hero-foot { display: none; }
  .section { padding: 72px 0; }.work-section { padding-top: 48px; }.section-title { font-size: 39px; }.section-kicker { font-size: 10px; }.filter-count { width: 100%; margin: 6px 0 0; }.projects-grid { gap: 14px; }.project-card.standard { grid-column: span 12; }.project-body { padding: 20px 17px 18px; }.project-body h3 { font-size: 27px; }.project-tagline { font-size: 13px; }.project-desc { font-size: 12.5px; }.project-footer { align-items: flex-start; flex-direction: column; }.project-links { justify-content: flex-start; }
  .console-body { padding: 17px 15px; }.console-body p { grid-template-columns: 24px 1fr; gap: 10px; padding: 12px 0; }.console-body p span:last-child { grid-column: 2; margin-top: -5px; }.console-body b { font-size: 13px; }.console-body p span:last-child { font-size: 12px; }
  .note-row { grid-template-columns: 70px minmax(0, 1fr) 22px; gap: 11px; min-height: 0; padding: 16px 0; }.note-row:hover { padding-left: 7px; padding-right: 7px; }.note-tags { grid-column: 2; grid-row: 1; }.note-copy { grid-column: 1 / -1; grid-row: 2; }.note-arrow { grid-column: 3; grid-row: 1; }.note-index { display: none; }.note-copy h3 { font-size: 15px; }.note-copy p { font-size: 12px; }
  .about-copy { padding: 25px 17px 24px; }.about-quote { font-size: 23px; }.about-small { font-size: 13px; }.about-facts { padding-top: 22px; }
  .contact-section { padding: 80px 0 76px; }.contact-inner h2 { font-size: 42px; }.contact-sub { font-size: 13px; }.contact-links { grid-template-columns: 1fr; margin-top: 29px; }.contact-link { border-right: 0; border-bottom: 1px solid var(--line); }.contact-link:last-child { border-bottom: 0; }.footer-inner { min-height: 78px; flex-wrap: wrap; gap: 10px; padding: 15px 0; }
  .modal { padding: 12px; }.modal-dialog { padding: 23px 16px 20px; max-height: 92svh; }.modal-dialog h2 { font-size: 37px; padding-right: 34px; }.modal-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 19px; }.modal-copy p { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
