/* ==========================================================================
   Abhishek Kumar — Hacker Mode
   A self-contained terminal/3D portfolio. No frameworks, no external assets.
   ========================================================================== */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #030806;
  --bg-deep: #020604;
  --bg-raised: #06120d;
  --panel: rgba(6, 18, 13, 0.82);
  --panel-solid: #06120d;
  --ink: #e7fff5;
  --muted: #9bb8aa;
  --dim: #6d8b7d;
  --green: #00ff9c;
  --green-soft: #7dffc9;
  --green-deep: #0a3b28;
  --cyan: #35e7ff;
  --magenta: #ff4d8d;
  --amber: #ffc857;
  --line: rgba(0, 255, 156, 0.14);
  --line-strong: rgba(0, 255, 156, 0.36);
  --line-cyan: rgba(53, 231, 255, 0.28);
  --glow: 0 0 28px rgba(0, 255, 156, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms var(--ease);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 720px at 82% -8%, rgba(0, 255, 156, 0.09), transparent 62%),
    radial-gradient(900px 620px at -8% 24%, rgba(53, 231, 255, 0.055), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(0, 255, 156, 0.05), transparent 65%),
    linear-gradient(180deg, #030806 0%, #040b08 52%, #030706 100%);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 78%);
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(0, 255, 156, 0.3);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus,
main:focus-visible {
  outline: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #030806;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #030806;
  background: #1c4d38;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a7353;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2200;
  padding: 10px 14px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #02100a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Boot sequence
   ========================================================================== */

.boot {
  display: none;
}

html.js .boot:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 255, 156, 0.08), transparent 52%),
    #020604;
  text-align: center;
  animation: boot-failsafe 300ms ease 4s forwards;
}

.boot.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 350ms ease, visibility 350ms ease;
}

.boot__inner {
  width: min(100%, 460px);
}

.boot__logo {
  color: var(--green);
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  text-shadow: 0 0 44px rgba(0, 255, 156, 0.32);
}

.boot__logo span {
  color: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

.boot__title {
  margin-top: 12px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.boot__log {
  max-width: 360px;
  margin: 26px auto 20px;
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  text-align: left;
}

.boot__log span {
  color: var(--green);
}

.boot__grant {
  margin-top: 6px;
  color: var(--green-soft);
}

.boot__progress {
  width: min(100%, 360px);
  height: 3px;
  margin: 0 auto;
  background: rgba(0, 255, 156, 0.12);
  overflow: hidden;
}

.boot__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  transition: width 80ms linear;
}

.boot__hint {
  margin-top: 16px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: blink 1.6s steps(1) infinite;
}

@keyframes boot-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ==========================================================================
   Global effects
   ========================================================================== */

.fx-layer {
  display: contents;
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}

html.matrix-on #matrix-canvas {
  opacity: 0.2;
}

.fx-scanlines,
.fx-noise,
.fx-vignette {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
}

.fx-scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
  opacity: 0.2;
  transition: opacity 300ms ease;
}

.fx-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  transition: opacity 300ms ease;
}

.fx-vignette {
  z-index: 801;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.48) 100%);
}

html.crt-off .fx-scanlines,
html.crt-off .fx-noise {
  opacity: 0;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 6, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status-bar {
  border-bottom: 1px solid rgba(0, 255, 156, 0.09);
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 28px;
}

.sys-id,
.status-bar__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.status-bar__mid {
  color: rgba(155, 184, 170, 0.7);
  white-space: nowrap;
}

.status-bar__right {
  color: var(--muted);
}

.sep {
  color: rgba(0, 255, 156, 0.3);
}

.availability {
  color: var(--green);
}

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 255, 156, 0.1), 0 0 12px rgba(0, 255, 156, 0.65);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0, 255, 156, 0.55);
  border-radius: inherit;
  animation: ping 2.4s ease-out infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 255, 156, 0.05);
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background var(--fast), box-shadow var(--fast);
}

.brand:hover .brand__mark {
  background: rgba(0, 255, 156, 0.12);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.16);
}

.brand__text {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.brand__prompt {
  color: var(--green);
}

.brand__cursor {
  color: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.nav-link span {
  color: var(--dim);
  font-size: 7.5px;
}

.nav-link::before {
  content: "[";
  position: absolute;
  left: 2px;
  color: var(--green);
  opacity: 0;
  transform: translateX(3px);
  transition: opacity var(--fast), transform var(--fast);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  border-color: var(--line);
  background: rgba(0, 255, 156, 0.055);
  color: var(--green-soft);
}

.nav-link:hover span,
.nav-link.active span {
  color: var(--green);
}

.nav-link.active::before {
  opacity: 1;
  transform: translateX(0);
}

.nav-link.active {
  padding-left: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.palette-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.03);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.palette-trigger:hover,
.palette-trigger:focus-visible {
  border-color: var(--line-strong);
  background: rgba(0, 255, 156, 0.08);
  color: var(--green);
}

.palette-trigger .icon {
  width: 14px;
  height: 14px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 18px;
  padding: 1px 4px;
  border: 1px solid rgba(155, 184, 170, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.recruiter-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(53, 231, 255, 0.26);
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.recruiter-link:hover,
.recruiter-link:focus-visible {
  border-color: var(--cyan);
  background: rgba(53, 231, 255, 0.07);
  box-shadow: 0 0 18px rgba(53, 231, 255, 0.1);
}

.recruiter-link__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-toggle,
.nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.04);
  color: var(--green);
  cursor: pointer;
}

.nav-toggle .icon,
.nav-close .icon {
  width: 20px;
  height: 20px;
}

.nav-drawer__head,
.nav-drawer__foot {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

.scroll-progress {
  height: 1px;
  background: rgba(0, 255, 156, 0.07);
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.6);
  transform: scaleX(0);
  transform-origin: left;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(130px, 16vh, 190px) 0 clamp(74px, 9vh, 110px);
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 58% 48%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 58% 48%, #000 8%, transparent 72%);
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}

.hero-glow--a {
  top: 6%;
  right: 4%;
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle, rgba(0, 255, 156, 0.11), transparent 66%);
}

.hero-glow--b {
  bottom: -12%;
  left: -8%;
  width: 42vw;
  height: 42vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(53, 231, 255, 0.07), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--green);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow__sep {
  color: var(--dim);
}

.hero-title {
  position: relative;
  margin: 18px 0 18px;
  color: var(--ink);
  font-size: clamp(3.2rem, 8.6vw, 8.2rem);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(0, 255, 156, 0.08);
  animation: title-flicker 11s linear infinite;
}

.hero-title__line {
  display: block;
}

.hero-title__line--accent {
  background: linear-gradient(100deg, var(--green) 8%, var(--green-soft) 46%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 46px rgba(0, 255, 156, 0.24);
  filter: drop-shadow(0 0 18px rgba(0, 255, 156, 0.16));
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--green-soft);
  font-size: clamp(0.88rem, 1.5vw, 1.06rem);
  letter-spacing: 0.02em;
}

.prompt,
.t-prompt {
  color: var(--green);
}

.typed-cursor {
  display: inline-block;
  width: 9px;
  height: 1.08em;
  margin-left: 2px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.55);
  animation: blink 1s steps(1) infinite;
}

.hero-lede {
  max-width: 62ch;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.85;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}

.btn .icon {
  width: 14px;
  height: 14px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  border-color: var(--green);
  background: var(--green);
  color: #02100a;
  box-shadow: 0 0 22px rgba(0, 255, 156, 0.12);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-soft);
  border-color: var(--green-soft);
  box-shadow: 0 0 34px rgba(0, 255, 156, 0.24);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--green-soft);
  background: rgba(0, 255, 156, 0.03);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--green);
  background: rgba(0, 255, 156, 0.08);
  box-shadow: 0 0 22px rgba(0, 255, 156, 0.1);
}

.btn--text {
  color: var(--cyan);
  padding-inline: 5px;
}

.btn--text:hover,
.btn--text:focus-visible {
  color: var(--green-soft);
  text-shadow: 0 0 14px rgba(53, 231, 255, 0.3);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 640px;
  margin: 32px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats > div {
  min-width: 0;
  padding: 12px 0 12px 14px;
  border-left: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-stats dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-stats dd span {
  color: var(--green);
  font-size: 0.7em;
}

.hero-terminal {
  max-width: 590px;
  border: 1px solid var(--line);
  background: rgba(4, 14, 9, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 29px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.035);
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.terminal-dots {
  display: inline-flex;
  gap: 4px;
}

.terminal-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
}

.terminal-dots i:nth-child(1) {
  background: var(--magenta);
}

.terminal-dots i:nth-child(2) {
  background: var(--amber);
}

.terminal-dots i:nth-child(3) {
  background: var(--green);
}

.terminal-bar__tag,
.panel-bar__tag {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 11px 14px 12px;
  font-size: 9.5px;
  line-height: 1.85;
}

.terminal-body p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body .t-out {
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
  perspective: 1200px;
}

.operator {
  position: relative;
  width: min(100%, 410px);
  margin: 0;
}

.operator__orbit {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 126%;
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 255, 156, 0.15);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg);
  animation: orbit 34s linear infinite;
}

.operator__orbit--two {
  width: 105%;
  border-color: rgba(53, 231, 255, 0.12);
  border-style: solid;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(55deg);
  animation: orbit-reverse 26s linear infinite;
}

.operator__frame {
  position: relative;
  z-index: 1;
  padding: 9px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(0, 255, 156, 0.05), transparent 36%),
    rgba(4, 14, 9, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 0 44px rgba(0, 255, 156, 0.07);
  transform: perspective(1100px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, -7deg));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.operator__frame::before,
.operator__frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.operator__frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--green);
  border-left: 1px solid var(--green);
}

.operator__frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
}

.operator__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 9px;
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.operator__hud .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
}

.operator__hud .live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.8s steps(1) infinite;
}

.operator__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 255, 156, 0.12), transparent 55%),
    #020806;
}

.operator__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) contrast(1.06);
  opacity: 0.94;
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

.operator__scan {
  position: absolute;
  top: -20%;
  right: 0;
  left: 0;
  height: 20%;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 156, 0.14), transparent);
  mix-blend-mode: screen;
  animation: portrait-scan 5.4s linear infinite;
  pointer-events: none;
}

.operator__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.12;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 80%, transparent);
  pointer-events: none;
}

.hud-tag {
  position: absolute;
  z-index: 2;
  padding: 3px 5px;
  border: 1px solid rgba(0, 255, 156, 0.25);
  background: rgba(2, 8, 5, 0.72);
  color: var(--green-soft);
  font-size: 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.hud-tag--a {
  bottom: 10px;
  left: 10px;
}

.hud-tag--b {
  right: 10px;
  bottom: 10px;
}

.hud-corner {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-color: var(--green);
  border-style: solid;
  opacity: 0.7;
}

.hud-corner--tl {
  top: 9px;
  left: 9px;
  border-width: 1px 0 0 1px;
}

.hud-corner--tr {
  top: 9px;
  right: 9px;
  border-width: 1px 1px 0 0;
}

.hud-corner--bl {
  bottom: 9px;
  left: 9px;
  border-width: 0 0 1px 1px;
}

.hud-corner--br {
  right: 9px;
  bottom: 9px;
  border-width: 0 1px 1px 0;
}

.operator__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px 2px;
}

.operator__caption strong,
.operator__caption small {
  display: block;
}

.operator__caption strong {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.operator__caption small {
  margin-top: 2px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.operator__sig {
  color: transparent;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(0, 255, 156, 0.55);
}

.operator__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: translateX(-50%);
  transition: color var(--fast);
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--green);
}

.scroll-cue__line {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(82px, 10vw, 138px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 810px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-cursor {
  color: var(--green);
  animation: blink 1.2s steps(1) infinite;
}

.section-lede {
  max-width: 68ch;
  margin-top: 17px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.85;
}

.mini-kicker {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 255, 156, 0.035), transparent 34%),
    linear-gradient(180deg, rgba(7, 20, 14, 0.88), rgba(4, 12, 8, 0.92));
  box-shadow: var(--shadow);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--green);
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
}

.panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 37px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.035);
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.filter span {
  color: var(--dim);
  font-size: 7px;
}

.filter:hover,
.filter:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter.is-active {
  border-color: var(--green);
  background: rgba(0, 255, 156, 0.1);
  color: var(--green);
}

.filter.is-active span {
  color: var(--green-soft);
}

.filter-status {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.82fr);
  gap: 22px;
  align-items: start;
}

.about-log {
  display: grid;
  gap: 7px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.about-log p {
  display: grid;
  grid-template-columns: 28px 74px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.log-num {
  color: var(--dim);
}

.log-key {
  color: var(--green-soft);
}

.log-val {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.log-val--live {
  color: var(--green);
}

.about-copy {
  display: grid;
  gap: 16px;
  padding: 24px 26px 28px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 0.98rem);
  line-height: 1.85;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.dossier {
  padding: 20px 21px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(0, 255, 156, 0.045), transparent 42%),
    rgba(4, 13, 8, 0.86);
  box-shadow: var(--shadow);
}

.dossier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.dossier__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  white-space: nowrap;
}

.dossier__status i,
.contact-row__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s steps(1) infinite;
}

.dossier__list {
  display: grid;
  margin: 4px 0 0;
}

.dossier__list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(0, 255, 156, 0.1);
}

.dossier__list dt {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier__list dd {
  color: var(--ink);
  font-size: 9.5px;
  text-align: right;
}

.dossier__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 16px 0;
}

.dossier__stack span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--green-soft);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.dossier__note {
  margin-top: 9px;
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

.arsenal {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 255, 156, 0.035), transparent 42%),
    rgba(4, 13, 8, 0.65);
}

.arsenal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.arsenal__head h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.skill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
  transition: color var(--fast), border-color var(--fast), background var(--fast), transform var(--fast);
}

.skill span {
  color: var(--green);
  font-size: 8px;
}

.skill:hover {
  border-color: var(--line-strong);
  background: rgba(0, 255, 156, 0.055);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-status {
  margin-top: 14px;
}

.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 22px;
  margin-top: 22px;
}

.edu-list {
  padding: 4px 22px 10px;
}

.edu-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(0, 255, 156, 0.1);
}

.edu-list li:last-child {
  border-bottom: 0;
}

.edu-date {
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.edu-list h3 {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

.edu-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.edu-note {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 8px;
}

.cert-list {
  padding: 4px 20px 12px;
}

.cert-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(0, 255, 156, 0.1);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
}

.cert-list li:last-child {
  border-bottom: 0;
}

.cert-mark {
  color: var(--green);
  font-size: 8px;
}

.cert-list time {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ==========================================================================
   Experience
   ========================================================================== */

.exp-list {
  display: grid;
  gap: 16px;
}

.exp {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 255, 156, 0.03), transparent 34%),
    rgba(4, 13, 8, 0.7);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.exp:hover {
  border-color: rgba(0, 255, 156, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.exp__meta {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 21px 20px;
  border-right: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.02);
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

.exp__meta time {
  color: var(--green-soft);
  font-size: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 6px;
  border: 1px solid rgba(155, 184, 170, 0.2);
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.badge--live {
  border-color: rgba(0, 255, 156, 0.32);
  background: rgba(0, 255, 156, 0.06);
  color: var(--green);
}

.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: blink 1.8s steps(1) infinite;
}

.exp__body {
  min-width: 0;
  padding: 21px 24px 23px;
}

.exp__title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.exp__title-row h3 {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.exp__company {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.exp__bullets {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.exp__bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

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

.exp__bullets strong {
  color: var(--ink);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.tags li {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

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

.project {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(0, 255, 156, 0.035), transparent 42%),
    rgba(4, 13, 8, 0.78);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: border-color var(--fast), box-shadow var(--fast), transform 160ms ease-out;
  will-change: transform;
}

.project:hover {
  border-color: rgba(0, 255, 156, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.project--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  min-height: 430px;
}

.project__visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: #07110d;
}

.project--featured .project__visual {
  aspect-ratio: auto;
  min-height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.project--wide {
  grid-column: 1 / -1;
}

@media (min-width: 761px) {
  .project--wide {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .project--wide .project__visual {
    aspect-ratio: auto;
    min-height: 100%;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

.project__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(2, 8, 5, 0.3), transparent 25%, transparent 75%, rgba(2, 8, 5, 0.35)),
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(2, 8, 5, 0.18));
  pointer-events: none;
}

.visual-tag {
  position: absolute;
  z-index: 2;
  padding: 3px 6px;
  border: 1px solid rgba(0, 255, 156, 0.28);
  background: rgba(2, 8, 5, 0.88);
  color: var(--green-soft);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.visual-tag--tl {
  top: 9px;
  left: 9px;
}

.visual-tag--tr {
  top: 9px;
  right: 9px;
}

.visual-tag--bl {
  bottom: 9px;
  left: 9px;
}

.visual-tag--br {
  right: 9px;
  bottom: 9px;
}

.project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 21px 22px 23px;
}

.project__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

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

.project__body h3 {
  display: flex;
  align-items: flex-start;
  min-height: 2.6em;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.project--featured .project__body h3 {
  min-height: auto;
}

.project--featured .project__body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.project__summary {
  min-height: 56px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.78;
}

.project--featured .project__summary {
  min-height: auto;
}

.project--featured .project__summary {
  font-size: 11px;
  line-height: 1.82;
}

.project__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project__metrics li {
  min-width: 0;
}

.project__metrics strong {
  display: block;
  color: var(--green);
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project__metrics span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.project__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.project__actions .btn {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 8.5px;
}

.project__actions .btn .icon {
  width: 12px;
  height: 12px;
}

.project__body .tags {
  margin-top: 0;
}

/* SVG instrument panels */

.road-grid path {
  fill: none;
  stroke: rgba(0, 255, 156, 0.08);
  stroke-width: 1;
}

.road-lanes path {
  filter: drop-shadow(0 0 5px rgba(184, 255, 220, 0.16));
}

.road-boxes text,
.road-hud text,
.road-health text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.road-boxes text {
  font-size: 8px;
}

.road-scanline {
  animation: road-scan 5.2s linear infinite;
  filter: drop-shadow(0 0 7px rgba(0, 255, 156, 0.65));
}

.net-lines path {
  stroke-dasharray: 4 7;
  animation: dash-flow 14s linear infinite;
}

.net-nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3.6s ease-in-out infinite;
}

.net-nodes circle:nth-child(2n) {
  animation-delay: -1.2s;
}

.net-nodes circle:nth-child(3n) {
  animation-delay: -2.1s;
}

.net-core {
  filter: drop-shadow(0 0 14px rgba(255, 77, 141, 0.24));
}

.net-score {
  font-family: var(--mono);
}

.voice-rings circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-pulse 4.8s ease-in-out infinite;
}

.voice-rings circle:nth-child(2) {
  animation-delay: -1.4s;
}

.voice-rings circle:nth-child(3) {
  animation-delay: -2.6s;
}

.voice-wave {
  stroke-dasharray: 5 4;
  animation: dash-flow 3.4s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 255, 156, 0.32));
}

.doc-grid path {
  fill: none;
  stroke: rgba(0, 255, 156, 0.06);
}

.barcode rect {
  opacity: 0.8;
}

.visual-scanline {
  animation: visual-scan 5.6s linear infinite;
  filter: drop-shadow(0 0 6px currentColor);
}

.projects-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(0, 255, 156, 0.045), transparent 45%),
    rgba(4, 13, 8, 0.7);
}

.projects-cta__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  color: var(--green);
  background: rgba(0, 255, 156, 0.05);
}

.projects-cta__icon .icon {
  width: 20px;
  height: 20px;
}

.projects-cta__copy {
  flex: 1;
  min-width: 0;
}

.projects-cta__copy h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.projects-cta__copy p {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.projects-cta .btn {
  flex: 0 0 auto;
}

.noscript-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 200, 87, 0.06);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.noscript-note a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 22px;
  align-items: start;
}

.contact-rows {
  padding: 5px 22px;
}

.contact-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(0, 255, 156, 0.1);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row__label {
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-row a,
.contact-row > span:not(.contact-row__label) {
  min-width: 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-row a {
  text-decoration: none;
  transition: color var(--fast);
}

.contact-row a:hover,
.contact-row a:focus-visible {
  color: var(--green);
}

.contact-row__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green) !important;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--green);
  background: rgba(0, 255, 156, 0.07);
  color: var(--green);
}

.icon-btn .icon {
  width: 13px;
  height: 13px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
  border-color: var(--line-strong);
  background: rgba(0, 255, 156, 0.05);
  color: var(--green);
}

.contact-socials .icon {
  width: 12px;
  height: 12px;
}

.contact-socials a span {
  color: var(--dim);
  font-size: 8px;
}

.contact-terminal {
  padding: 14px 22px 17px;
  border-top: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.02);
  color: var(--dim);
  font-size: 9px;
  line-height: 1.8;
}

.contact-terminal p span {
  color: var(--green);
}

.contact-terminal__out {
  margin-bottom: 5px;
  color: var(--green-soft);
}

.form-panel form {
  padding: 20px 22px 22px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field__control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.field__control > span {
  color: var(--green);
  font-size: 10px;
}

.field__control:focus-within {
  border-color: var(--green);
  background: rgba(0, 255, 156, 0.035);
  box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.18);
}

.field__control input,
.field__control textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

.field__control input {
  min-height: 22px;
}

.field__control textarea {
  min-height: 108px;
  padding-top: 2px;
  resize: vertical;
}

.field__control input::placeholder,
.field__control textarea::placeholder {
  color: rgba(155, 184, 170, 0.72);
}

.field__control--area {
  align-items: flex-start;
}

.field__control--area > span {
  padding-top: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 2px 0 12px;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.65;
}

.form-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note--warning {
  margin-top: 8px;
  color: var(--amber);
}

.form-status {
  min-height: 20px;
  padding: 0 22px 18px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.6;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--magenta);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 54px 0 26px;
  background: rgba(2, 7, 5, 0.6);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 13px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 6px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--fast);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--green);
}

.footer-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.fx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--fast);
}

.fx-toggle:hover,
.fx-toggle:focus-visible {
  color: var(--green);
}

.fx-toggle .icon {
  width: 12px;
  height: 12px;
}

.fx-toggle__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(109, 139, 125, 0.55);
  transition: background var(--fast), box-shadow var(--fast);
}

.fx-toggle[aria-pressed="true"] {
  color: var(--green-soft);
}

.fx-toggle[aria-pressed="true"] .fx-toggle__led {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-bottom__right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.footer-bottom__right .status-dot {
  width: 5px;
  height: 5px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--green);
  text-decoration: none;
}

.to-top .icon {
  width: 11px;
  height: 11px;
}

/* ==========================================================================
   Command palette and case-file dialogs
   ========================================================================== */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

dialog[open] {
  animation: dialog-in 260ms var(--ease);
}

.command-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: 80vh;
  margin: 10vh auto auto;
}

.command-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 680px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(140deg, rgba(0, 255, 156, 0.05), transparent 38%),
    #06120d;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(0, 255, 156, 0.08);
}

.command-dialog__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.command-dialog__prompt {
  color: var(--green);
  font-size: 16px;
}

.command-dialog__head input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.command-dialog__head input::placeholder {
  color: var(--dim);
}

.command-dialog__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.palette-list {
  overflow-y: auto;
  padding: 5px;
  overscroll-behavior: contain;
}

.palette-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: left;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.palette-item .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.palette-item__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.palette-item__hint {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.palette-item:hover,
.palette-item:focus-visible {
  border-left-color: var(--green);
  outline: 0;
  background: rgba(0, 255, 156, 0.075);
  color: var(--ink);
}

.palette-item:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(0, 255, 156, 0.35);
}

.palette-empty {
  padding: 26px 18px;
  color: var(--dim);
  font-size: 10px;
  text-align: center;
}

.command-dialog__foot {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 7.5px;
}

.command-dialog__foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.case-dialog {
  width: min(880px, calc(100% - 28px));
  max-height: 88vh;
  margin: 6vh auto auto;
}

.case-dialog__inner {
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(140deg, rgba(0, 255, 156, 0.045), transparent 32%),
    #05110c;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 110px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(0, 255, 156, 0.07);
  overscroll-behavior: contain;
}

.case-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 17, 12, 0.96);
}

.case-dialog__head h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.case-dialog__sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.dialog-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--magenta);
  background: rgba(255, 77, 141, 0.08);
  color: var(--magenta);
}

.dialog-close .icon {
  width: 18px;
  height: 18px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.case-meta > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.case-meta > div:last-child {
  border-right: 0;
}

.case-meta dt {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-meta dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.case-dialog__body {
  display: grid;
  gap: 22px;
  padding: 22px 26px 6px;
}

.case-section h3 {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-section h3 span {
  margin-right: 6px;
  color: var(--dim);
}

.case-section p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.case-list {
  display: grid;
  gap: 8px;
}

.case-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.case-list li::before {
  content: ">";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--green);
}

.case-list strong {
  color: var(--ink);
  font-weight: 600;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.case-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 156, 0.025);
}

.case-metrics strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.case-metrics span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.case-section .tags {
  margin-top: 0;
}

.case-dialog__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: rgba(5, 17, 12, 0.96);
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 1300;
  max-width: calc(100% - 32px);
  padding: 9px 14px;
  border: 1px solid var(--green);
  background: #06120d;
  color: var(--green);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 255, 156, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity 250ms ease, visibility 250ms ease, transform 250ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Motion, reveal, and keyframes
   ========================================================================== */

html.js .reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 700ms var(--ease), translate 700ms var(--ease);
}

html.js .reveal-ready [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(0.55);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes title-flicker {
  0%,
  92%,
  95%,
  100% {
    opacity: 1;
    transform: none;
  }
  93% {
    opacity: 0.82;
    transform: translateX(1px);
  }
  96% {
    opacity: 0.94;
    transform: translateX(-1px);
  }
}

@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes orbit-reverse {
  to {
    transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-305deg);
  }
}

@keyframes portrait-scan {
  0% {
    top: -20%;
  }
  100% {
    top: 105%;
  }
}

@keyframes road-scan {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(350px);
  }
}

@keyframes visual-scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(300px);
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.03);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .project--featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .project--featured .project__visual {
    min-height: 280px;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 92px;
  }

  .status-bar__mid {
    display: none;
  }

  .main-nav {
    height: 62px;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(360px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 18px;
    border-left: 1px solid var(--line-strong);
    background:
      linear-gradient(160deg, rgba(0, 255, 156, 0.06), transparent 38%),
      #04100b;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 350ms var(--ease), visibility 350ms var(--ease);
  }

  body.nav-open .nav-drawer {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .nav-close {
    display: grid;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 18px;
  }

  .nav-link {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(0, 255, 156, 0.08);
    font-size: 13px;
  }

  .nav-link span {
    font-size: 8px;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link.active {
    padding-left: 8px;
  }

  .nav-drawer__foot {
    display: block;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .nav-drawer__foot p {
    margin-top: 7px;
    color: var(--dim);
    font-size: 8px;
    line-height: 1.6;
  }

  .nav-actions .recruiter-link--nav {
    display: none;
  }

  .nav-backdrop {
    z-index: 990;
  }

  .hero {
    min-height: auto;
    padding-top: 138px;
  }

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

  .hero-visual {
    margin-top: 26px;
  }

  .operator {
    width: min(100%, 360px);
  }

  .hero-title {
    font-size: clamp(3.4rem, 13vw, 6.2rem);
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-block: 76px;
  }

  .about-grid,
  .edu-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .exp__meta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 13px 18px;
  }

  .exp__body {
    padding: 18px 20px 21px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 126px;
    padding-bottom: 64px;
  }

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

  .hero-stats > div {
    padding-left: 12px;
  }

  .hero-stats > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .hero-actions .btn--text {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0;
  }

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

  .project--featured {
    grid-column: auto;
  }

  .project--featured .project__visual {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .project__body,
  .project--featured .project__body {
    padding: 18px;
  }

  .project--featured .project__body h3 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .projects-cta {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  .projects-cta .btn {
    width: 100%;
  }

  .edu-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .cert-list li {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .cert-list time {
    grid-column: 2;
  }

  .contact-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .case-dialog {
    margin-top: 4vh;
  }

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

  .case-meta > div:nth-child(2) {
    border-right: 0;
  }

  .case-meta > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}

@media (max-width: 560px) {
  .project__metrics {
    gap: 6px;
  }

  .project__metrics strong {
    font-size: 0.95rem;
  }

  .project__metrics span {
    font-size: 7px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .status-bar {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .status-bar__inner {
    height: 25px;
  }

  .status-bar__right .availability {
    display: none;
  }

  .status-bar__right .sep {
    display: none;
  }

  .main-nav {
    height: 58px;
    gap: 10px;
  }

  .brand__mark {
    min-width: 34px;
    height: 28px;
    font-size: 9px;
  }

  .brand__text {
    font-size: 10px;
  }

  .nav-actions {
    gap: 5px;
  }

  .palette-trigger {
    padding: 5px 7px;
  }

  .palette-trigger__label,
  .palette-trigger kbd {
    display: none;
  }

  .hero {
    padding-top: 116px;
  }

  .eyebrow {
    gap: 6px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .hero-title {
    margin-top: 15px;
    font-size: clamp(2.85rem, 15vw, 4.4rem);
  }

  .hero-role {
    font-size: 0.82rem;
  }

  .hero-lede {
    margin: 18px 0 23px;
    font-size: 0.86rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 7px;
  }

  .btn {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 9px;
  }

  .hero-stats {
    margin-top: 25px;
  }

  .hero-stats dt {
    font-size: 7px;
    white-space: normal;
  }

  .hero-stats dd {
    font-size: 1.22rem;
  }

  .terminal-body {
    font-size: 8.5px;
  }

  .terminal-body p {
    white-space: normal;
  }

  .hero-terminal {
    margin-top: 2px;
  }

  .operator {
    width: min(100%, 340px);
  }

  .operator__frame {
    transform: none;
  }

  .operator__orbit {
    display: none;
  }

  .hud-tag {
    font-size: 6px;
  }

  .operator__meta {
    font-size: 6.5px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .section-lede {
    font-size: 0.86rem;
  }

  .about-log {
    padding: 15px 17px;
  }

  .about-log p {
    grid-template-columns: 24px 64px minmax(0, 1fr);
    gap: 7px;
    font-size: 9px;
  }

  .about-copy {
    padding: 20px 18px 22px;
    font-size: 0.86rem;
  }

  .dossier {
    padding: 17px;
  }

  .arsenal {
    padding: 18px 16px;
  }

  .arsenal__head {
    align-items: flex-start;
  }

  .skill {
    font-size: 8.5px;
  }

  .edu-list,
  .cert-list {
    padding-inline: 16px;
  }

  .exp__body {
    padding: 16px 16px 19px;
  }

  .exp__bullets li {
    font-size: 9.5px;
  }

  .projects-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .project__metrics {
    gap: 5px;
  }

  .project__metrics span {
    font-size: 6.5px;
  }

  .project__actions .btn {
    flex: 1 1 auto;
  }

  .visual-tag--bl,
  .visual-tag--br {
    display: none;
  }

  .contact-rows {
    padding-inline: 17px;
  }

  .contact-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .contact-row a,
  .contact-row > span:not(.contact-row__label) {
    font-size: 9px;
  }

  .contact-socials {
    padding-inline: 17px;
  }

  .contact-socials a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .contact-terminal {
    padding-inline: 17px;
  }

  .form-panel form {
    padding: 17px;
  }

  .form-status {
    padding-inline: 17px;
  }

  .command-dialog {
    width: calc(100% - 20px);
    margin-top: 7vh;
  }

  .command-dialog__head input {
    font-size: 11px;
  }

  .command-dialog__meta {
    font-size: 6.5px;
  }

  .palette-item {
    font-size: 9.5px;
  }

  .case-dialog {
    width: calc(100% - 16px);
    max-height: 92vh;
    margin-top: 3vh;
  }

  .case-dialog__inner {
    max-height: 92vh;
  }

  .case-dialog__head {
    padding: 18px 17px 16px;
  }

  .case-dialog__sub {
    font-size: 9px;
  }

  .case-meta > div {
    padding: 10px 12px;
  }

  .case-dialog__body {
    padding: 18px 17px 4px;
    gap: 19px;
  }

  .case-dialog__foot {
    padding: 15px 17px 18px;
  }

  .case-dialog__foot .btn {
    flex: 1 1 auto;
  }

  .footer-brand p {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .project__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project__metrics li:last-child {
    grid-column: 1 / -1;
  }

  .container {
    width: calc(100% - 22px);
  }

  .hero-title {
    font-size: 2.55rem;
  }

  .hero-stats dd {
    font-size: 1.1rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .project__body,
  .project--featured .project__body {
    padding: 15px;
  }

  .project__topline {
    font-size: 6.5px;
  }

  .project__summary {
    font-size: 9.5px;
  }

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

  .cert-list li {
    font-size: 8px;
  }

  .footer-bottom {
    font-size: 7px;
  }
}

/* ==========================================================================
   No-JS fallbacks
   ========================================================================== */

html:not(.js) .boot,
html:not(.js) [data-case],
html:not(.js) [data-open-palette],
html:not(.js) [data-toggle],
html:not(.js) .filter-group,
html:not(.js) .filter-status,
html:not(.js) #contact-form button[type="submit"],
html:not(.js) .nav-toggle,
html:not(.js) .nav-close,
html:not(.js) .nav-drawer__head,
html:not(.js) .nav-backdrop {
  display: none !important;
}

html:not(.js) [data-reveal] {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 980px) {
  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .main-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  html:not(.js) .nav-drawer {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    width: auto;
    height: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  html:not(.js) .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 0;
  }

  html:not(.js) .nav-link {
    padding: 6px 7px;
    border: 0;
    font-size: 9px;
  }

  html:not(.js) .nav-drawer__foot {
    display: none;
  }

  html:not(.js) .nav-actions .palette-trigger {
    display: none;
  }

  html:not(.js) .nav-actions .recruiter-link--nav {
    display: inline-flex;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal-ready [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }

  .hero-title,
  .operator__scan,
  .road-scanline,
  .visual-scanline {
    animation: none !important;
  }

  .operator__orbit,
  .voice-rings circle,
  .net-nodes circle,
  .net-lines path,
  .voice-wave {
    animation: none !important;
  }

  .operator__frame,
  .project {
    transform: none !important;
  }

  .boot {
    display: none !important;
  }
}

/* ==========================================================================
   Readability floor
   Keeps the terminal aesthetic while ensuring long-form copy and controls
   stay comfortably legible at normal zoom levels.
   ========================================================================== */

.about-log,
.exp__bullets li,
.case-section p,
.case-list li,
.project__summary,
.contact-row a,
.contact-row > span:not(.contact-row__label),
.field__control input,
.field__control textarea,
.palette-item {
  font-size: 13px;
}

.project--featured .project__summary {
  font-size: 13.5px;
}

.form-note,
.form-status,
.noscript-note,
.projects-cta__copy p {
  font-size: 11.5px;
}

.btn {
  font-size: 12px;
}

.project__actions .btn {
  font-size: 11px;
}

.nav-link {
  font-size: 12px;
}

html:not(.js) .nav-link {
  font-size: 11px;
}

.nav-link span,
.palette-item__hint,
.recruiter-link {
  font-size: 9.5px;
}

.skill {
  font-size: 10.5px;
}

.skill span,
.tags li,
.dossier__head,
.dossier__note,
.dossier__stack span,
.contact-row__label,
.field__control > span,
.case-meta dt,
.case-metrics span,
.visual-tag,
.project__topline,
.project__metrics span,
.filter span,
.edu-date,
.edu-note,
.cert-list li,
.contact-socials a,
.command-dialog__meta,
.command-dialog__foot,
.footer-bottom,
.status-bar,
.hero-stats dt,
.operator__meta,
.operator__caption small,
.badge {
  font-size: 10px;
}

.dossier__list dt {
  font-size: 9.5px;
}

.dossier__list dd,
.case-meta dd,
.terminal-body,
.footer-nav a,
.footer-brand p,
.toast {
  font-size: 11px;
}

.eyebrow,
.section-kicker,
.filter {
  font-size: 10.5px;
}

.edu-list p {
  font-size: 11.5px;
}

.edu-list h3 {
  font-size: 13px;
}

.case-dialog__sub {
  font-size: 11px;
}

@media (max-width: 380px) {
  .contact-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
  }

  .contact-row__label {
    grid-column: 1 / -1;
  }

  .contact-row a,
  .contact-row > span:not(.contact-row__label) {
    grid-column: 1;
  }

  .contact-row .icon-btn {
    grid-column: 2;
    grid-row: 2;
  }
}



/* ==========================================================================
   Interactive CLI Terminal, Audio Controls & High-Tech Visualizer Additions
   ========================================================================== */

/* HUD Audio Button */
.hud-audio-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--fast);
}

.hud-audio-btn:hover,
.hud-audio-btn:focus-visible {
  border-color: var(--green);
  color: var(--ink);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.2);
}

.hud-audio-btn.is-active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 255, 156, 0.08);
}

.hud-audio-btn.is-active .fx-toggle__led {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Interactive REPL Terminal Component */
.interactive-terminal {
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  border-radius: 4px;
  box-shadow: var(--shadow), 0 0 35px rgba(0, 255, 156, 0.06);
  overflow: hidden;
  position: relative;
  margin-top: 24px;
}

.interactive-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 156, 0.015) 0px,
    rgba(0, 255, 156, 0.015) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 2;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(2, 6, 4, 0.95);
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: #ff5f56; box-shadow: 0 0 4px #ff5f56; }
.dot--yellow { background: #ffbd2e; box-shadow: 0 0 4px #ffbd2e; }
.dot--green { background: #27c93f; box-shadow: 0 0 4px #27c93f; }

.terminal-bar__title {
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.terminal-bar__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* Quick Command Pills */
.cli-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 255, 156, 0.02);
  border-bottom: 1px dashed var(--line);
}

.cli-pill {
  background: rgba(0, 255, 156, 0.05);
  border: 1px solid var(--line);
  color: var(--green-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--fast);
  letter-spacing: 0.03em;
}

.cli-pill:hover,
.cli-pill:focus-visible {
  background: rgba(0, 255, 156, 0.15);
  border-color: var(--green);
  color: var(--ink);
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.25);
  transform: translateY(-1px);
}

/* Terminal Screen / Output */
.terminal-screen {
  padding: 18px 20px;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--green-deep) transparent;
}

.terminal-screen::-webkit-scrollbar {
  width: 6px;
}

.terminal-screen::-webkit-scrollbar-thumb {
  background: var(--green-deep);
  border-radius: 3px;
}

.terminal-line {
  margin-bottom: 8px;
  word-break: break-word;
}

.terminal-line.banner-line {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 156, 0.1);
  margin-bottom: 14px;
}

.term-cmd-row {
  color: var(--cyan);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 4px;
}

.term-green { color: var(--green); }
.term-cyan  { color: var(--cyan); }
.term-amber { color: var(--amber); }
.term-pink  { color: var(--magenta); }
.term-dim   { color: var(--dim); }
.term-muted { color: var(--muted); }

.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.8rem;
}

.term-table td {
  padding: 3px 8px;
  border-bottom: 1px solid rgba(0, 255, 156, 0.05);
}

.term-table td:first-child {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  width: 130px;
}

/* Interactive Input Line */
.terminal-input-form {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(3, 8, 6, 0.9);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.term-prompt {
  color: var(--green);
  font-weight: 700;
  font-size: 0.84rem;
  margin-right: 10px;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88rem;
  caret-color: var(--green);
}

.terminal-input::placeholder {
  color: rgba(155, 184, 170, 0.4);
}

.terminal-submit-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--green);
  padding: 4px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-submit-btn:hover,
.terminal-submit-btn:focus-visible {
  border-color: var(--green);
  background: rgba(0, 255, 156, 0.12);
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.25);
}

/* Architecture Flowcharts inside Dialogs */
.arch-diagram {
  margin: 16px 0;
  padding: 14px;
  background: rgba(2, 6, 4, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
}

.arch-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.arch-node {
  background: rgba(0, 255, 156, 0.08);
  border: 1px solid var(--green);
  padding: 6px 12px;
  border-radius: 2px;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.arch-node--cyan {
  background: rgba(53, 231, 255, 0.08);
  border-color: var(--cyan);
}

.arch-node--amber {
  background: rgba(255, 200, 87, 0.08);
  border-color: var(--amber);
}

.arch-arrow {
  color: var(--muted);
  font-size: 0.9rem;
}



/* ==========================================================================
   Responsive rules for Interactive Terminal & Dialog Flowcharts
   ========================================================================== */

@media (max-width: 760px) {
  .interactive-terminal {
    margin-top: 18px;
  }

  .terminal-screen {
    padding: 14px 14px;
    font-size: 0.8rem;
    min-height: 220px;
    max-height: 320px;
  }

  .cli-pills {
    padding: 8px 12px;
    gap: 6px;
  }

  .cli-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .terminal-input-form {
    padding: 10px 14px;
  }

  .term-prompt {
    font-size: 0.78rem;
    margin-right: 6px;
  }

  .terminal-input {
    font-size: 0.82rem;
  }

  .arch-diagram {
    padding: 10px;
    font-size: 0.72rem;
  }

  .arch-node {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  .terminal-bar {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .terminal-bar__title {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .terminal-bar__status {
    font-size: 0.64rem;
  }

  .terminal-screen {
    padding: 12px 10px;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .term-prompt {
    font-size: 0.74rem;
  }

  .term-table td:first-child {
    width: 95px;
    font-size: 0.74rem;
  }

  .term-table td {
    padding: 2px 4px;
    font-size: 0.74rem;
  }

  .hud-audio-btn {
    padding: 3px 6px;
    font-size: 0.66rem;
  }
}

@media (max-width: 390px) {
  .terminal-bar__title {
    max-width: 120px;
  }

  .terminal-bar__status span:not(.status-dot) {
    display: none;
  }

  .cli-pill {
    font-size: 0.64rem;
    padding: 3px 6px;
  }

  .term-prompt {
    font-size: 0.7rem;
  }

  .terminal-input {
    font-size: 0.78rem;
  }

  .term-table {
    display: block;
  }

  .term-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
  }

  .term-table td {
    padding: 1px 0;
  }

  .term-table td:first-child {
    width: 100%;
  }
}
