@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --tn-bg-0: #16161e;
  --tn-bg-1: #1a1b26;
  --tn-bg-2: #1f2335;
  --tn-surface-0: rgba(36, 40, 59, 0.84);
  --tn-surface-1: rgba(41, 46, 66, 0.92);
  --tn-fg: #c0caf5;
  --tn-fg-soft: #b4bee8;
  --tn-fg-muted: #99a7d7;
  --tn-fg-strong: #d4ddff;
  --tn-fg-chip: #b8caf9;
  --tn-blue: #7aa2f7;
  --tn-cyan: #7dcfff;
  --tn-purple: #bb9af7;
  --tn-green: #9ece6a;
  --tn-orange: #e0af68;
  --label-color: #7dcfff;
  --tn-border: rgba(122, 162, 247, 0.27);
  --nav-glass-bg: rgba(26, 27, 38, 0.75);
  --nav-chip-bg: rgba(31, 35, 53, 0.75);
  --nav-blur: 8px;
  --bg-spot-a: rgba(122, 162, 247, 0.2);
  --bg-spot-b: rgba(187, 154, 247, 0.2);
  --bg-spot-c: rgba(125, 207, 255, 0.12);
  --bg-spot-d: rgba(224, 175, 104, 0.08);
  --bg-spot-e: rgba(158, 206, 106, 0.08);
  --grid-line: rgba(122, 162, 247, 0.06);
  --line-accent-mid: rgba(122, 162, 247, 0.36);
  --line-accent-soft: rgba(122, 162, 247, 0.26);
  --line-accent-faint: rgba(122, 162, 247, 0.22);
  --line-accent-ghost: rgba(122, 162, 247, 0.42);
  --line-cyan-strong: rgba(125, 207, 255, 0.58);
  --line-cyan-mid: rgba(125, 207, 255, 0.35);
  --line-cyan-soft: rgba(125, 207, 255, 0.1);
  --line-green-mid: rgba(158, 206, 106, 0.33);
  --line-green-strong: rgba(158, 206, 106, 0.34);
  --line-orange-mid: rgba(224, 175, 104, 0.35);
  --line-orange-soft: rgba(224, 175, 104, 0.12);
  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --shell-shadow: 0 22px 50px rgba(7, 9, 17, 0.58);
  --max-width: 1120px;
  --anchor-offset: 6rem;
}

:root[data-theme="aurora-fog"] {
  --tn-bg-0: #101b24;
  --tn-bg-1: #132430;
  --tn-bg-2: #183042;
  --tn-surface-0: rgba(27, 49, 63, 0.84);
  --tn-surface-1: rgba(31, 58, 75, 0.92);
  --tn-fg: #d4eeff;
  --tn-fg-soft: #b7d8ea;
  --tn-fg-muted: #9ec4d7;
  --tn-fg-strong: #e1f2ff;
  --tn-fg-chip: #b8dbff;
  --tn-blue: #6aa9ff;
  --tn-cyan: #57d7c5;
  --tn-purple: #8fa9ff;
  --tn-green: #9de4a1;
  --tn-orange: #f4b370;
  --label-color: #57d7c5;
  --tn-border: rgba(106, 169, 255, 0.28);
  --nav-glass-bg: rgba(19, 36, 48, 0.78);
  --nav-chip-bg: rgba(24, 48, 65, 0.78);
  --bg-spot-a: rgba(106, 169, 255, 0.2);
  --bg-spot-b: rgba(87, 215, 197, 0.19);
  --bg-spot-c: rgba(157, 228, 161, 0.12);
  --bg-spot-d: rgba(244, 179, 112, 0.08);
  --bg-spot-e: rgba(143, 169, 255, 0.08);
  --grid-line: rgba(106, 169, 255, 0.07);
  --line-accent-mid: rgba(106, 169, 255, 0.36);
  --line-accent-soft: rgba(106, 169, 255, 0.27);
  --line-accent-faint: rgba(106, 169, 255, 0.23);
  --line-accent-ghost: rgba(106, 169, 255, 0.43);
  --line-cyan-strong: rgba(87, 215, 197, 0.58);
  --line-cyan-mid: rgba(87, 215, 197, 0.36);
  --line-cyan-soft: rgba(87, 215, 197, 0.1);
  --line-green-mid: rgba(157, 228, 161, 0.33);
  --line-green-strong: rgba(157, 228, 161, 0.34);
  --line-orange-mid: rgba(244, 179, 112, 0.35);
  --line-orange-soft: rgba(244, 179, 112, 0.12);
  --shell-shadow: 0 22px 50px rgba(5, 12, 20, 0.58);
}

:root[data-theme="ember-forge"] {
  --tn-bg-0: #1a1313;
  --tn-bg-1: #241717;
  --tn-bg-2: #32201d;
  --tn-surface-0: rgba(58, 37, 33, 0.84);
  --tn-surface-1: rgba(66, 41, 35, 0.92);
  --tn-fg: #f7e7dc;
  --tn-fg-soft: #e8d1c0;
  --tn-fg-muted: #c9ad97;
  --tn-fg-strong: #ffe9d6;
  --tn-fg-chip: #f4d0b2;
  --tn-blue: #e08a5f;
  --tn-cyan: #f1ba77;
  --tn-purple: #d58bb2;
  --tn-green: #bfd37a;
  --tn-orange: #ff9e64;
  --label-color: #f1ba77;
  --tn-border: rgba(224, 138, 95, 0.28);
  --nav-glass-bg: rgba(36, 23, 23, 0.78);
  --nav-chip-bg: rgba(50, 32, 29, 0.78);
  --bg-spot-a: rgba(224, 138, 95, 0.19);
  --bg-spot-b: rgba(213, 139, 178, 0.16);
  --bg-spot-c: rgba(241, 186, 119, 0.12);
  --bg-spot-d: rgba(255, 158, 100, 0.1);
  --bg-spot-e: rgba(191, 211, 122, 0.08);
  --grid-line: rgba(224, 138, 95, 0.07);
  --line-accent-mid: rgba(224, 138, 95, 0.36);
  --line-accent-soft: rgba(224, 138, 95, 0.27);
  --line-accent-faint: rgba(224, 138, 95, 0.23);
  --line-accent-ghost: rgba(224, 138, 95, 0.43);
  --line-cyan-strong: rgba(241, 186, 119, 0.58);
  --line-cyan-mid: rgba(241, 186, 119, 0.35);
  --line-cyan-soft: rgba(241, 186, 119, 0.1);
  --line-green-mid: rgba(191, 211, 122, 0.33);
  --line-green-strong: rgba(191, 211, 122, 0.34);
  --line-orange-mid: rgba(255, 158, 100, 0.35);
  --line-orange-soft: rgba(255, 158, 100, 0.12);
  --shell-shadow: 0 22px 50px rgba(22, 10, 8, 0.58);
}

:root[data-theme="deep-forest"] {
  --tn-bg-0: #101915;
  --tn-bg-1: #13231d;
  --tn-bg-2: #1b3027;
  --tn-surface-0: rgba(26, 47, 38, 0.84);
  --tn-surface-1: rgba(31, 58, 45, 0.92);
  --tn-fg: #d7f2e7;
  --tn-fg-soft: #b8ddce;
  --tn-fg-muted: #9ec7b5;
  --tn-fg-strong: #e3f7ef;
  --tn-fg-chip: #bde7d5;
  --tn-blue: #6ca9bd;
  --tn-cyan: #61d1a8;
  --tn-purple: #89a7e6;
  --tn-green: #94d58b;
  --tn-orange: #dcb571;
  --label-color: #61d1a8;
  --tn-border: rgba(108, 169, 189, 0.28);
  --nav-glass-bg: rgba(19, 35, 29, 0.78);
  --nav-chip-bg: rgba(27, 48, 39, 0.78);
  --bg-spot-a: rgba(108, 169, 189, 0.18);
  --bg-spot-b: rgba(137, 167, 230, 0.16);
  --bg-spot-c: rgba(97, 209, 168, 0.12);
  --bg-spot-d: rgba(220, 181, 113, 0.08);
  --bg-spot-e: rgba(148, 213, 139, 0.08);
  --grid-line: rgba(108, 169, 189, 0.07);
  --line-accent-mid: rgba(108, 169, 189, 0.36);
  --line-accent-soft: rgba(108, 169, 189, 0.27);
  --line-accent-faint: rgba(108, 169, 189, 0.23);
  --line-accent-ghost: rgba(108, 169, 189, 0.43);
  --line-cyan-strong: rgba(97, 209, 168, 0.58);
  --line-cyan-mid: rgba(97, 209, 168, 0.35);
  --line-cyan-soft: rgba(97, 209, 168, 0.1);
  --line-green-mid: rgba(148, 213, 139, 0.33);
  --line-green-strong: rgba(148, 213, 139, 0.34);
  --line-orange-mid: rgba(220, 181, 113, 0.35);
  --line-orange-soft: rgba(220, 181, 113, 0.12);
  --shell-shadow: 0 22px 50px rgba(7, 14, 11, 0.58);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main > section[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tn-fg);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
  background-color: var(--tn-bg-0);
  background-image:
    radial-gradient(circle at 12% 15%, var(--bg-spot-a) 0%, transparent 36%),
    radial-gradient(circle at 88% 2%, var(--bg-spot-b) 0%, transparent 32%),
    radial-gradient(circle at 55% 96%, var(--bg-spot-c) 0%, transparent 35%),
    linear-gradient(160deg, var(--tn-bg-1) 0%, var(--tn-bg-2) 52%, var(--tn-bg-0) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.72;
}

body::after {
  background:
    radial-gradient(circle at 75% 28%, var(--bg-spot-d), transparent 45%),
    radial-gradient(circle at 18% 66%, var(--bg-spot-e), transparent 42%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
footer {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--tn-border);
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(9, 11, 20, 0.45);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-glass-bg);
  z-index: 0;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.nav-theme-picker {
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-accent-soft);
  border-radius: 999px;
  color: var(--tn-fg-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-chip-bg);
  opacity: 1;
  z-index: -1;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--tn-cyan);
  border-color: var(--tn-cyan);
}

.theme-picker-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.theme-picker {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.24rem 0.4rem 0.24rem 0.58rem;
  border: 1px solid var(--line-accent-soft);
  border-radius: 999px;
  cursor: pointer;
}

.theme-picker:hover {
  border-color: var(--line-accent-mid);
}

.theme-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-chip-bg);
  z-index: -1;
}

.theme-picker::after {
  content: "";
  position: absolute;
  right: 0.58rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.18rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  color: var(--tn-fg-muted);
  pointer-events: none;
}

.theme-picker-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tn-fg-muted);
}

.theme-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--tn-fg-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0 1.05rem 0 0;
  min-height: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-select:focus {
  outline: none;
}

.theme-picker:focus-within {
  border-color: var(--tn-cyan);
  box-shadow: 0 0 0 1px var(--tn-cyan);
}

.theme-picker:hover .theme-select,
.theme-picker:focus-within .theme-select {
  color: var(--tn-fg);
}

.theme-select option {
  background: var(--tn-bg-1);
  color: var(--tn-fg);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.34rem 0.6rem;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line-accent-mid);
  background: transparent;
  color: var(--tn-fg-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-chip-bg);
  opacity: 1;
  z-index: -1;
  transition: opacity 0.2s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .site-header::before,
  .site-nav a::before,
  .theme-picker::before,
  .social-link::before {
    backdrop-filter: blur(var(--nav-blur));
  }
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  color: var(--tn-cyan);
  border-color: var(--tn-cyan);
}

.icon-link {
  width: auto;
  min-width: 0;
  padding: 0.34rem 0.62rem;
  justify-content: flex-start;
}

.icon-link span {
  display: inline;
  font-size: 0.72rem;
}

.icon-link svg {
  width: 0.92rem;
  height: 0.92rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  display: grid;
  gap: 1.35rem;
  padding: 2.75rem 0 0.5rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tn-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(146deg, var(--tn-surface-1) 0%, var(--tn-surface-0) 100%);
  box-shadow: var(--shell-shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-cyan-strong) 50%, transparent 100%);
  opacity: 0.65;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.2rem;
  padding: 2.1rem;
}

.hero-main {
  display: grid;
  gap: 1.1rem;
}

.eyebrow,
.section-label,
.metric-label,
.project-group-label,
.project-type,
.terminal-label,
.availability-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.eyebrow {
  margin: 0;
  color: var(--label-color);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-weight: 700;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: -0.1rem 0 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-cyan-mid);
  background: rgba(24, 29, 44, 0.58);
  color: var(--tn-fg-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.hero-location-icon {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--tn-fg-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-social-links {
  gap: 0.7rem;
}

.hero .hero-actions > .button {
  min-width: 10rem;
}

.hero-social-links .social-link {
  min-height: 2.65rem;
  min-width: 10rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.72rem;
  justify-content: center;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  gap: 0.45rem;
}

.hero-social-links .icon-link span {
  font-size: inherit;
}

.hero-social-links .icon-link svg {
  width: 1.1em;
  height: 1.1em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.72rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #111320;
  background: linear-gradient(126deg, var(--tn-blue), var(--tn-cyan));
  box-shadow: 0 10px 20px rgba(19, 34, 67, 0.45);
}

.button.primary:hover,
.button.primary:focus-visible {
  filter: brightness(1.05);
}

.button.ghost {
  border-color: var(--line-accent-ghost);
  color: var(--tn-fg);
  background: rgba(26, 27, 38, 0.35);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--tn-purple);
  color: var(--tn-cyan);
}

.hero-metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-metrics > li {
  display: grid;
  gap: 0.32rem;
  padding: 0.1rem 0;
}

.hero-metrics > li + li {
  padding-top: 0.58rem;
  border-top: 1px solid var(--line-accent-faint);
}

.metric-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--label-color);
}

.hero-metrics strong {
  font-size: clamp(1.08rem, 1.3vw, 1.2rem);
  line-height: 1.4;
  color: var(--tn-fg-strong);
}

.language-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tn-fg-strong);
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  line-height: 1.3;
}

.language-icon {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-side {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.terminal-label {
  margin: 0;
  color: var(--label-color);
}

.terminal-window {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-cyan-mid);
  background: linear-gradient(160deg, rgba(25, 28, 41, 0.9), rgba(18, 20, 31, 0.95));
  box-shadow: inset 0 0 0 1px var(--line-cyan-soft);
}

.terminal-window p {
  margin: 0;
  color: var(--tn-fg-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.prompt {
  margin-right: 0.45rem;
  color: var(--tn-green);
}

.terminal-window ul {
  list-style: none;
  margin: 0.7rem 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.terminal-window li {
  position: relative;
  padding-left: 1rem;
  color: var(--tn-fg-soft);
  font-size: 0.93rem;
}

.terminal-window li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--tn-blue);
}

.availability {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-green-mid);
  background: linear-gradient(140deg, rgba(39, 52, 43, 0.3), rgba(25, 31, 41, 0.72));
}

.availability-title {
  margin: 0 0 0.35rem;
  color: var(--label-color);
}

.availability p {
  margin: 0;
  color: var(--tn-fg-soft);
}

.section {
  padding: 1.9rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 780px;
}

.section-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.section-label {
  margin: 0;
  color: var(--label-color);
}

h2 {
  max-width: 26ch;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-accent-faint);
  background: linear-gradient(162deg, rgba(31, 35, 53, 0.86), rgba(25, 28, 42, 0.92));
}

.about-card h3 {
  margin-bottom: 0.7rem;
  color: var(--label-color);
  font-size: 1.14rem;
}

.about-card p {
  margin: 0;
  color: var(--tn-fg-soft);
}

.tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-cyan-mid);
  background: rgba(32, 37, 56, 0.7);
  color: var(--tn-cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.77rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  color: var(--tn-fg-soft);
  align-items: start;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.48rem;
  border: 1px solid var(--line-orange-mid);
  color: var(--tn-orange);
  background: var(--line-orange-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.experience-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.9rem;
}

.experience-card,
.credential-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-accent-faint);
  background: linear-gradient(162deg, rgba(31, 35, 53, 0.86), rgba(25, 28, 42, 0.92));
}

.experience-card {
  border-color: var(--line-green-mid);
  background: linear-gradient(160deg, rgba(34, 48, 42, 0.52), rgba(25, 30, 42, 0.92));
}

.experience-card h3,
.credential-card h3 {
  margin-bottom: 0.4rem;
  color: var(--label-color);
  font-size: 1.14rem;
}

.experience-meta {
  margin: 0;
  color: var(--tn-fg-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.experience-highlights {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.experience-highlights li {
  position: relative;
  padding-left: 1rem;
  color: var(--tn-fg-soft);
}

.experience-highlights li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--tn-green);
}

.credentials-stack {
  display: grid;
  gap: 0.9rem;
}

.credential-card {
  border-color: var(--line-cyan-mid);
  background: linear-gradient(162deg, rgba(31, 39, 57, 0.88), rgba(25, 28, 42, 0.92));
}

.credential-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.credential-list > li + li {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-accent-faint);
}

.credential-title {
  margin: 0;
  color: var(--tn-fg-strong);
  font-weight: 600;
}

.credential-detail {
  margin: 0.2rem 0 0;
  color: var(--tn-fg-soft);
  font-size: 0.92rem;
}

.project-groups {
  display: grid;
  gap: 1.2rem;
}

.project-group {
  display: grid;
  gap: 0.75rem;
}

.project-group-label {
  margin: 0;
  color: var(--label-color);
}

.eyebrow,
.section-label,
.metric-label,
.project-group-label,
.terminal-label,
.availability-title,
.about-card h3,
.experience-card h3,
.credential-card h3,
.project-card h3 {
  transition: color 0.2s ease;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-card {
  --project-link-tag-space: 9rem;
  --project-accent: var(--tn-blue);
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-accent-faint);
  background: linear-gradient(166deg, rgba(35, 39, 58, 0.92), rgba(24, 27, 41, 0.94));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-link-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-accent-mid);
  background: rgba(31, 35, 53, 0.8);
  color: var(--project-accent);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.project-link-tag:hover,
.project-link-tag:focus-visible {
  border-color: var(--project-accent);
  background: rgba(31, 35, 53, 0.9);
  color: var(--tn-fg-strong);
}

.project-link-tag:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--project-accent);
}

.project-card-current {
  --project-accent: var(--tn-green);
  border-color: var(--line-green-strong);
  background: linear-gradient(166deg, rgba(37, 48, 50, 0.9), rgba(24, 27, 41, 0.94));
}

.project-group:last-child .project-card {
  --project-accent: var(--tn-blue);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--project-accent);
  box-shadow: 0 14px 30px rgba(11, 13, 23, 0.56);
}

.project-type {
  margin: 0;
  padding-right: var(--project-link-tag-space);
  color: var(--project-accent);
}

.project-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--label-color);
}

.project-card p {
  margin: 0;
  color: var(--tn-fg-soft);
}

.project-card .project-type {
  color: var(--project-accent);
}

.project-card-current .project-type {
  color: var(--tn-green);
}

.project-tags {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
}

.project-tags li {
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px dashed var(--line-accent-mid);
  background: rgba(31, 35, 53, 0.68);
  color: var(--tn-fg-chip);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.2;
}

.contact {
  padding: 2.4rem 1.8rem;
  text-align: center;
}

.contact h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact p:not(.section-label) {
  max-width: 55ch;
  margin: 0.55rem auto 0;
  color: var(--tn-fg-soft);
}

.contact-actions {
  justify-content: center;
  margin-top: 1.2rem;
}

footer {
  padding: 1.35rem 0 2.2rem;
  color: var(--tn-fg-soft);
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.reveal {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

main .reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

main .reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

main .reveal:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0.86;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

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

  .experience-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-blur: 0px;
    --anchor-offset: 1rem;
  }

  body {
    background-image:
      radial-gradient(circle at 16% 12%, var(--bg-spot-a) 0%, transparent 56%),
      radial-gradient(circle at 88% -6%, var(--bg-spot-b) 0%, transparent 54%),
      radial-gradient(circle at 52% 112%, var(--bg-spot-c) 0%, transparent 58%),
      linear-gradient(165deg, var(--tn-bg-1) 0%, var(--tn-bg-2) 58%, var(--tn-bg-0) 100%);
    background-size: 104vmax 104vmax, 100vmax 100vmax, 96vmax 96vmax, auto;
    background-position: -52vmax -48vmax, 54vmax -54vmax, 50% 122%, 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  }

  body::before,
  body::after {
    display: none;
  }

  .site-header,
  main,
  footer {
    width: min(var(--max-width), calc(100vw - 1rem));
  }

  .site-header {
    position: static;
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.8rem;
    padding: 0.85rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
    gap: 0.45rem;
  }

  .site-nav a {
    width: 100%;
    min-height: 2.3rem;
    padding: 0.45rem 0.4rem;
    font-size: 0.82rem;
  }

  .theme-picker-wrap {
    width: 100%;
  }

  .theme-picker {
    width: 100%;
    justify-content: space-between;
    min-height: 2.35rem;
  }

  .theme-select {
    min-width: 0;
    width: 100%;
    text-align: right;
    font-size: 0.72rem;
  }

  .social-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .social-link,
  .icon-link {
    width: 100%;
    min-width: 0;
    min-height: 2.3rem;
    padding: 0.34rem 0.65rem;
    justify-content: flex-start;
  }

  .icon-link span {
    display: inline;
    font-size: 0.72rem;
  }

  .icon-link svg {
    flex-shrink: 0;
  }

  .hero,
  .section,
  .contact {
    padding: 1.35rem;
  }

  .hero {
    gap: 1rem;
  }

  .hero-main {
    gap: 0.95rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-social-links {
    grid-template-columns: 1fr;
  }

  .hero-social-links .social-link {
    width: 100%;
    min-width: 0;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .section {
    contain-intrinsic-size: 1px 1150px;
  }

  .hero-metrics,
  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  h2 {
    max-width: none;
  }

  main {
    padding-top: 1.2rem;
  }
}

@media (prefers-reduced-data: reduce) {
  body::before,
  body::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: calc(100vw - 0.75rem);
  }

  .hero,
  .section,
  .contact {
    padding: 1.05rem;
  }

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

  .site-nav a {
    min-height: 2.15rem;
    padding: 0.4rem 0.2rem;
    font-size: 0.76rem;
  }

  .theme-picker-label {
    font-size: 0.75rem;
  }

  .terminal-window p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .terminal-window li {
    font-size: 0.88rem;
  }

  .project-tags {
    gap: 0.35rem;
  }

  .project-tags li {
    font-size: 0.75rem;
  }

  .project-link-tag {
    position: static;
    justify-self: flex-start;
    margin-bottom: 0.15rem;
  }

  .project-type {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
