:root {
  --bg: #0d1014;
  --panel: #161a20;
  --panel-2: #1d232b;
  --line: #2a313b;
  --line-soft: #202732;
  --text: #f2f4f8;
  --muted: #a9b0bc;
  --soft: #747c89;
  --cyan: #58d5ff;
  --green: #70d58b;
  --violet: #b9a7ff;
  --amber: #f0c15a;
  --red: #ff7f91;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(88, 213, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 213, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 0%, rgba(112, 213, 139, 0.08), transparent 30%),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.mono,
.meta,
.tag,
.btn,
.stat strong {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(88, 213, 255, 0.04), transparent 42%),
    #12161c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow-y: auto;
}

.profile {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #363c46;
  box-shadow: var(--shadow);
}

.name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
}

.role {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.82rem;
}

.sidebar-status {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(112, 213, 139, 0.25);
  border-radius: 8px;
  background: rgba(112, 213, 139, 0.055);
}

.sidebar-status strong {
  color: var(--green);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.sidebar-status span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: #232730;
  transform: translateX(2px);
}

.nav span {
  width: 18px;
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101318;
}

.lang-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 0.72rem;
}

.lang-switch button.active {
  background: var(--cyan);
  color: #0b1117;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.social a {
  min-width: 44px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #20252d;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.75rem;
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
}

.social a:hover {
  border-color: rgba(88, 213, 255, 0.72);
  color: var(--text);
  transform: translateY(-1px);
}

.page {
  min-width: 0;
  padding: 22px clamp(18px, 3.4vw, 46px) 48px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumb {
  color: var(--muted);
}

.crumb strong {
  color: var(--text);
}

.hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 213, 255, 0.13), transparent 36%),
    linear-gradient(90deg, rgba(112, 213, 139, 0.07), transparent 54%),
    linear-gradient(160deg, #20242b, #171a20 72%);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero.compact {
  margin-bottom: 28px;
}

.meta {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  max-width: 920px;
  font-size: clamp(2rem, 3.65vw, 3.7rem);
  line-height: 1.04;
  font-weight: 800;
}

.hero.compact h1 {
  font-size: clamp(1.95rem, 3.5vw, 3.55rem);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.32;
}

.accent {
  color: var(--cyan);
}

.hero p,
.section-note,
.card p,
.feature p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 820px;
  margin-top: 14px;
  font-size: 0.94rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(112, 213, 139, 0.25);
  border-radius: 999px;
  color: #d3f7df;
  background: rgba(112, 213, 139, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.availability::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-terminal {
  align-self: stretch;
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(88, 213, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: "JetBrains Mono", monospace;
}

.terminal-top {
  display: flex;
  gap: 6px;
}

.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.terminal-top span:nth-child(1) { background: var(--red); }
.terminal-top span:nth-child(2) { background: var(--amber); }
.terminal-top span:nth-child(3) { background: var(--green); }

.terminal-lines {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.terminal-lines strong {
  color: var(--text);
}

.terminal-lines .ok {
  color: var(--green);
}

.terminal-lines .cmd {
  color: var(--cyan);
}

.terminal-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.terminal-chip {
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.terminal-chip strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #242a33;
  color: var(--text);
  padding: 0 14px;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}

.btn.primary {
  background: var(--cyan);
  border-color: transparent;
  color: #0b1117;
}

.btn:hover {
  border-color: rgba(88, 213, 255, 0.72);
  transform: translateY(-1px);
}

.section {
  padding: 28px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-note {
  max-width: 560px;
  font-size: 0.92rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.feature,
.timeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
}

.card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--cyan), transparent);
  opacity: 0.42;
}

a.card {
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

a.card:hover {
  border-color: rgba(88, 213, 255, 0.68);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.card h3,
.feature h3 {
  margin-bottom: 9px;
  position: relative;
}

.card p {
  font-size: 0.91rem;
  position: relative;
}

.whoami {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
}

.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.about-panel p {
  color: var(--muted);
  line-height: 1.68;
  margin-top: 12px;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.signal {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.signal strong {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.signal span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skill-box {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.skill-box h3 {
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.skill-box p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.timeline.compact-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline.compact-timeline .timeline-item {
  border-left: 0;
  border-top: 2px solid var(--line);
  padding: 14px 0 0;
}

.timeline-item .date {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  overflow: hidden;
}

.feature-body {
  padding: 24px;
}

.feature-media {
  border-left: 1px solid var(--line);
  background: #101318;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.achievement-media img {
  min-height: 300px;
  object-fit: contain;
  object-position: center;
  background: #0f1217;
}

.code-panel {
  height: 100%;
  min-height: 230px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(185, 167, 255, 0.12), transparent 42%),
    #11151b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.code-panel strong {
  color: var(--text);
  font-size: 1.05rem;
}

.code-panel .cmd {
  color: var(--cyan);
}

.code-panel .ok {
  color: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 22, 0.56);
  padding: 12px;
  min-height: 70px;
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.stat-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.stat-card strong {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.15;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #3a404b;
  border-radius: 999px;
  background: #20252d;
  color: var(--muted);
  padding: 0 9px;
  font-size: 0.68rem;
  text-decoration: none;
}

.tag.green {
  color: #cef8d9;
  border-color: rgba(112, 213, 139, 0.28);
}

.tag.blue {
  color: #cfe0ff;
  border-color: rgba(88, 213, 255, 0.28);
}

.tag.violet {
  color: #e5dcff;
  border-color: rgba(185, 167, 255, 0.3);
}

.tag.amber {
  color: #ffe8a6;
  border-color: rgba(240, 193, 90, 0.35);
}

.list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.list li::before {
  content: ">";
  color: var(--green);
  margin-right: 8px;
  font-family: "JetBrains Mono", monospace;
}

.proof-card {
  display: grid;
  align-content: space-between;
  min-height: 232px;
}

.proof-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.mark {
  min-width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12161b;
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 0.76rem;
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.proof-links .btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.68rem;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.contact-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.timeline {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.timeline-item {
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 5px;
}

.blog-board {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  gap: 16px;
  align-items: start;
}

.blog-panel,
.post-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.blog-panel {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.blog-panel a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-panel a:hover {
  color: var(--text);
  background: #232730;
}

.post-feed {
  display: grid;
  gap: 12px;
}

.post-row {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.post-row h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.post-row h2 a {
  text-decoration: none;
}

.post-row p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
}

.writeup-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.writeup-toc {
  position: sticky;
  top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.writeup-toc a {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.writeup-toc a:hover {
  color: var(--text);
  background: #232730;
}

.writeup-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 3vw, 30px);
  min-width: 0;
}

.writeup-article h2 {
  margin: 24px 0 12px;
}

.writeup-article h2:first-child {
  margin-top: 0;
}

.writeup-article h3 {
  margin: 22px 0 8px;
}

.writeup-article p {
  color: var(--muted);
  line-height: 1.72;
  margin-top: 10px;
}

.writeup-article code {
  font-family: "JetBrains Mono", monospace;
  color: #d7f6ff;
}

.writeup-article pre {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101318;
  color: var(--muted);
  line-height: 1.6;
}

.callout {
  margin-top: 18px;
  border: 1px solid rgba(112, 213, 139, 0.25);
  border-radius: 8px;
  background: rgba(112, 213, 139, 0.06);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.callout strong {
  color: var(--green);
}

.callout span {
  color: var(--muted);
  line-height: 1.55;
}

.blog-callout {
  margin-top: 0;
}

.blog-callout a {
  color: var(--green);
  text-decoration: none;
}

.blog-callout a:hover {
  color: var(--text);
}

.writeup-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.writeup-filters a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #20252d;
  color: var(--muted);
  padding: 0 11px;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.writeup-filters a:hover {
  border-color: rgba(88, 213, 255, 0.6);
  color: var(--text);
}

.writeup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.writeup-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.writeup-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.22;
}

.writeup-card .actions {
  margin-top: auto;
  padding-top: 18px;
}

.featured-writeup {
  grid-column: span 2;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(88, 213, 255, 0.08), transparent 48%),
    var(--panel);
}

.blog-card {
  border-color: rgba(112, 213, 139, 0.25);
  background:
    linear-gradient(135deg, rgba(112, 213, 139, 0.07), transparent 46%),
    var(--panel);
}

.writeup-date {
  margin-top: 8px;
  margin-bottom: 6px;
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--text);
  background: #101318;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  line-height: 1.5;
}

tr:last-child td {
  border-bottom: 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11151b;
  overflow: hidden;
}

.evidence-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #dfe3e8;
  border-bottom: 1px solid var(--line);
}

.screenshot-slot {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--soft);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0f1217;
  background-size: 26px 26px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.6;
}

.evidence-card figcaption {
  padding: 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.86rem;
}

.reference-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.reference-list a {
  color: var(--cyan);
}

.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 38px;
  padding-top: 24px;
  color: var(--soft);
  font-size: 0.78rem;
}

.footer small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.72rem;
}

@media (max-width: 1160px) {
  .shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .whoami {
    grid-template-columns: 1fr;
  }

  .feature-media {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-height: 760px) and (min-width: 841px) {
  .sidebar {
    padding: 14px 16px;
    gap: 12px;
  }

  .profile {
    gap: 12px;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  .name {
    font-size: 1.18rem;
  }

  .role {
    font-size: 0.76rem;
    line-height: 1.34;
  }

  .nav {
    margin-top: 14px;
  }

  .nav a {
    min-height: 31px;
    font-size: 0.68rem;
  }

  .lang-switch {
    margin-top: 10px;
  }

  .social a {
    height: 28px;
    min-width: 36px;
  }

  .page {
    padding-top: 18px;
  }

  .topline {
    margin-bottom: 16px;
  }

  .hero {
    padding: 22px 28px;
  }

  h1,
  .hero.compact h1 {
    font-size: clamp(1.9rem, 3.4vw, 3.45rem);
  }

  .hero p {
    margin-top: 12px;
  }

  .stats {
    margin-top: 14px;
  }

  .stat {
    min-height: 64px;
  }
}

@media (max-width: 840px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topline,
  .section-head {
    display: grid;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .skills-grid,
  .blog-board,
  .writeup-grid,
  .evidence-grid,
  .timeline.compact-timeline,
  .writeup-layout {
    grid-template-columns: 1fr;
  }

  .featured-writeup {
    grid-column: span 1;
  }

  .writeup-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}
