/* =======================================================
 *  Tech FX — Dev-by-Dev futuristic layer
 *  Layered on top of style.css (loaded after it)
 * ======================================================= */

/* ---------- A11y: skip link + focus styles ---------- */
.skip-link {
  position: absolute;
  top: -42px;
  left: 8px;
  background: var(--cyan);
  color: var(--bg-dark) !important;
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  z-index: 100000;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--cyan) 40%, transparent);
  transition: top 0.18s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Visible keyboard focus for everything. !important is intentional — the
   legacy a11y-hostile rules in style.css (`a:focus { outline: none }`,
   `.btn:focus { outline: none !important }`) otherwise win on specificity
   and wipe keyboard focus indication. */
*:focus-visible {
  outline: 2px solid var(--cyan) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

/* Theme-aware page scrollbar. Pairs with meta name=color-scheme so the
   native track also follows mode (dark/light), while the thumb stays
   palette-tinted. WebKit and Firefox/Edge get the same look. */
html {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--cyan) 38%, transparent) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--cyan) 32%, transparent);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--cyan) 60%, transparent);
  background-clip: padding-box;
}
.btn:focus-visible,
.cta-btn:focus-visible,
.cta-form__submit:focus-visible,
.work-filter:focus-visible {
  outline-offset: 4px;
}

/* =======================================================
 *  Case-studies tree filter pills — sit above the
 *  .case-studies__list inside the terminal-chrome panel.
 *  Buttons are populated by tech-fx.js (caseFilter IIFE).
 * ======================================================= */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.12);
}
.case-filter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent);
  color: color-mix(in srgb, var(--cyan) 70%, transparent);
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case-filter:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
}
.case-filter.is-active {
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  border-color: var(--cyan);
  color: #fff;
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent);
}
.case-filter__count {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.10);
  padding: 1px 6px;
  border-radius: 8px;
}
.case-filter.is-active .case-filter__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.case-filter:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
/* Filter hides items via this class (set by JS) — animate the disappearance */
.case-studies__list li.is-hidden {
  display: none;
}
:root[data-theme="light"] .case-filter {
  border-color: rgba(10, 30, 60, 0.18);
  color: rgba(10, 30, 60, 0.65);
}
:root[data-theme="light"] .case-filter:hover {
  color: #007a90;
  background: rgba(0, 102, 122, 0.06);
}
:root[data-theme="light"] .case-filter.is-active {
  background: rgba(0, 102, 122, 0.18);
  border-color: #007a90;
  color: #007a90;
  text-shadow: none;
}
:root[data-theme="light"] .case-filter__count {
  color: rgba(10, 30, 60, 0.5);
  background: rgba(10, 30, 60, 0.06);
}

/* ---------- Global dark-theme overrides (kill white surfaces) ---------- */
html, body {
  background: var(--bg-deep) !important;
  color: #e6f3ff !important;
}
#page {
  background: transparent !important;
}

/* Navigation: glass-dark — backdrop-filter removed; it was costing
   ~5-15ms/frame every frame because backdrop-filter blur(12px) on a
   fixed-position nav repaints whenever ANYTHING under it changes
   (marquee, parallax, scroll). Bumped the background opacity to
   0.92 to compensate for losing the blur. */
#fh5co-nav {
  background: rgba(8, 12, 28, 0.92) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}
.fh5co-nav-brand {
  color: var(--cyan) !important;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}
.fh5co-nav-links li a {
  color: rgba(230, 243, 255, 0.78) !important;
}
.fh5co-nav-links li a:hover {
  color: var(--cyan) !important;
}

/* About: keep dark cyber, no light gradient */
#fh5co-about {
  background:
    radial-gradient(ellipse at top right, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255, 144, 0, 0.06), transparent 60%),
    var(--bg-dark) !important;
}
#fh5co-about::before { opacity: 0.25; }
#fh5co-about .info li .first-block { color: var(--cyan-dim) !important; }
#fh5co-about .info li .second-block { color: rgba(230, 243, 255, 0.85) !important; }

/* Resume: already dark via the new exp-card layer, but enforce */
#fh5co-resume.fh5co-bg-color,
#fh5co-resume {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%) !important;
}

/* Skills: dark */
#fh5co-skills {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%) !important;
}

/* Blog / case studies wrapper section */
#fh5co-blog {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%) !important;
  position: relative;
}
#fh5co-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
  pointer-events: none;
  opacity: 0.35;
}
#fh5co-blog > .container { position: relative; z-index: 1; }
#fh5co-blog h2 { color: #fff !important; }

/* Started/Hire is already overridden above */

/* Tool badges: dark glass instead of white */
.tool-badge {
  background: color-mix(in srgb, var(--cyan) 6%, transparent) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--cyan) !important;
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.tool-badge:hover {
  background: var(--cyan) !important;
  color: var(--bg-dark) !important;
  box-shadow: 0 0 12px var(--cyan);
}
.tool-badge.tool-ai {
  /* Hex-clipped sci-fi badge — distinguishes AI tools at a glance.
     Border becomes redundant (clip-path masks the rect anyway), so
     swap the cyan/orange border for a more saturated gradient bg. */
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.22), rgba(255, 43, 214, 0.18)) !important;
  border: 0 !important;
  color: #ffd28a !important;
  text-shadow: 0 0 8px rgba(255, 144, 0, 0.55) !important;
  padding: 9px 26px !important;
  border-radius: 0 !important;
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 50%,
    calc(100% - 14px) 100%,
    14px 100%,
    0 50%
  );
}
.tool-badge.tool-ai:hover {
  background: linear-gradient(135deg, var(--brand), var(--magenta)) !important;
  color: #fff !important;
  /* Box-shadow would be clipped by clip-path. Use a brighter bg
     gradient + brighter text-shadow as the "hover lift" signal. */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7) !important;
}
/* Mobile: slightly less padding so hex badges don't crowd narrow viewports */
@media (max-width: 480px) {
  .tool-badge.tool-ai { padding: 7px 20px !important; }
}
.tool-badge.tool-mobile {
  background: rgba(255, 144, 0, 0.08) !important;
  border-color: rgba(255, 144, 0, 0.35) !important;
  color: var(--brand) !important;
}
.tool-badge.tool-mobile:hover {
  background: var(--brand) !important;
  color: var(--bg-dark) !important;
  box-shadow: 0 0 12px var(--brand);
}

/* Dead-style cleanup: any leftover timeline-panel from style.css can't render here anyway */
.timeline-panel { background: transparent !important; }

/* Body text default contrast on dark */
p, li { color: rgba(230, 243, 255, 0.82); }
strong { color: var(--cyan); }

/* Make sure the loader area is fully dark while visible */
.fh5co-loader { color: var(--cyan); }


/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--brand), var(--magenta));
  box-shadow: 0 0 10px var(--cyan), 0 0 20px color-mix(in srgb, var(--cyan) 60%, transparent);
  z-index: 10000;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ---------- Matrix rain canvas (hero) ---------- */
.matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- Floating tech particles ---------- */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---------- Glitch text effect ---------- */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}
.glitch::before {
  left: 2px;
  text-shadow: -1.5px 0 var(--magenta);
  animation: glitch-anim-1 3.2s infinite linear alternate-reverse;
  clip-path: inset(0 0 60% 0);
}
.glitch::after {
  left: -2px;
  text-shadow: 1.5px 0 var(--cyan);
  animation: glitch-anim-2 2.6s infinite linear alternate-reverse;
  clip-path: inset(55% 0 0 0);
}
@keyframes glitch-anim-1 {
  0%   { clip-path: inset(0 0 75% 0); transform: translate(0); }
  20%  { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 0); }
  40%  { clip-path: inset(40% 0 30% 0); transform: translate(1px, 0); }
  60%  { clip-path: inset(20% 0 50% 0); transform: translate(-1px, 1px); }
  80%  { clip-path: inset(60% 0 10% 0); transform: translate(0); }
  100% { clip-path: inset(0 0 80% 0); transform: translate(1px, 0); }
}
@keyframes glitch-anim-2 {
  0%   { clip-path: inset(70% 0 0 0); transform: translate(0); }
  20%  { clip-path: inset(50% 0 20% 0); transform: translate(1px, 0); }
  40%  { clip-path: inset(30% 0 40% 0); transform: translate(-1px, 0); }
  60%  { clip-path: inset(60% 0 5% 0); transform: translate(1px, -1px); }
  80%  { clip-path: inset(15% 0 65% 0); transform: translate(0); }
  100% { clip-path: inset(80% 0 0 0); transform: translate(-1px, 0); }
}

/* Kill template decoration dashes around the hero H1 so glitch can take over */
#fh5co-header .display-tc h1 span:before,
#fh5co-header .display-tc h1 span:after,
.fh5co-cover .display-tc h1 span:before,
.fh5co-cover .display-tc h1 span:after {
  content: none !important;
  display: none !important;
}

/* Re-assert glitch pseudo elements on the hero H1 (specificity beats template) */
#fh5co-header .display-tc h1 span.glitch::before,
#fh5co-header .display-tc h1 span.glitch::after,
.fh5co-cover .display-tc h1 span.glitch::before,
.fh5co-cover .display-tc h1 span.glitch::after {
  content: attr(data-text) !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}
#fh5co-header .display-tc h1 span.glitch::before,
.fh5co-cover .display-tc h1 span.glitch::before {
  left: 2px;
  text-shadow: -1.5px 0 var(--magenta);
  animation: glitch-anim-1 3.2s infinite linear alternate-reverse;
  clip-path: inset(0 0 60% 0);
}
#fh5co-header .display-tc h1 span.glitch::after,
.fh5co-cover .display-tc h1 span.glitch::after {
  left: -2px;
  text-shadow: 1.5px 0 var(--cyan);
  animation: glitch-anim-2 2.6s infinite linear alternate-reverse;
  clip-path: inset(55% 0 0 0);
}

/* Section heading hover-glitch */
.fh5co-heading h2 {
  cursor: default;
  transition: text-shadow 0.3s;
}
.fh5co-heading h2:hover {
  text-shadow:
    -2px 0 var(--magenta),
    2px 0 var(--cyan),
    0 0 18px rgba(0, 229, 255, 0.6);
  animation: heading-jitter 0.4s steps(2) 1;
}
@keyframes heading-jitter {
  0%   { transform: translate(0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, 0); }
  100% { transform: translate(0); }
}

/* ---------- IDE-style code card (about section) ---------- */
.code-card {
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 229, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Space Mono', monospace;
  margin: 30px auto 0;
  max-width: 720px;
  position: relative;
  text-align: left;
}
.code-card__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0d1430 0%, #0a1024 100%);
  border-bottom: 1px solid var(--line);
}
.code-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.code-card__dot--r { background: #ff5f57; box-shadow: 0 0 8px rgba(255, 95, 87, 0.6); }
.code-card__dot--y { background: #febc2e; box-shadow: 0 0 8px rgba(254, 188, 46, 0.5); }
.code-card__dot--g { background: #28c840; box-shadow: 0 0 8px rgba(40, 200, 64, 0.5); }
.code-card__title {
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 1px;
}
.code-card__title .tab-active {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}
.code-card__body {
  display: flex;
  background: transparent;
  font-size: 13px;
  line-height: 1.7;
}
.code-card__gutter {
  user-select: none;
  padding: 18px 12px 18px 16px;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  border-right: 1px solid rgba(0, 229, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
}
.code-card__code {
  padding: 18px 20px;
  flex: 1;
  overflow-x: auto;
  color: #e6f3ff;
}
.code-card__code pre {
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: inherit;
  line-height: 1.7;
  white-space: pre;
}
.tk-key      { color: #ff79c6; }
.tk-str      { color: #f1fa8c; }
.tk-num      { color: var(--brand); }
.tk-bool     { color: #bd93f9; }
.tk-fn       { color: var(--cyan); }
.tk-cmt      { color: rgba(255, 255, 255, 0.35); font-style: italic; }
.tk-punct    { color: rgba(255, 255, 255, 0.6); }

.code-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
}

/* ---------- Boot sequence (loader) ---------- */
.fh5co-loader {
  background: var(--bg-deep) !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-screen {
  font-family: 'JetBrains Mono', 'Space Mono', monospace;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  max-width: 460px;
  width: 90%;
  line-height: 1.9;
}
.boot-line { opacity: 0; animation: boot-fade 0.25s forwards; }
.boot-line.ok::after { content: ' ✓'; color: #28c840; }
.boot-bar {
  margin-top: 14px;
  height: 4px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.boot-bar__fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--brand));
  box-shadow: 0 0 10px var(--cyan);
  animation: boot-fill 1.6s ease-out forwards;
}
@keyframes boot-fade { to { opacity: 1; } }
@keyframes boot-fill { to { inset: 0 0 0 0; } }

/* ---------- Nav: file-path breadcrumb feel ---------- */
.fh5co-nav-brand::before {
  content: '~/';
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan-dim);
  font-size: 14px;
  margin-right: 4px;
  opacity: 0.7;
}

/* ---------- Hero terminal: multi-line cycler ---------- */
.terminal-tag {
  min-height: 30px;
  text-align: left;
  padding: 6px 16px !important;
  min-width: 260px;
}
.term-prompt { color: var(--brand); margin-right: 6px; }
.term-out { color: rgba(0, 229, 255, 0.85); }

/* ---------- Magnetic hover hint ---------- */
.magnetic {
  display: inline-block;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ---------- Stat strip under hero name (devy data) ---------- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero-stats .stat strong {
  display: block;
  color: var(--cyan);
  font-size: 20px;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  letter-spacing: 2px;
}
.hero-stats .stat {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 18px;
  border-radius: 6px;
  min-width: 110px;
  text-align: center;
  transition: 0.3s;
}
.hero-stats .stat:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ---------- Section "// section_name" labels ---------- */
.fh5co-heading::before {
  content: '// ' attr(data-section);
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan-dim);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: lowercase;
  margin-bottom: 10px;
  opacity: 0.7;
}
.fh5co-heading:not([data-section])::before { display: none; }

/* ---------- Work tile: scanline shimmer on hover ---------- */
.work {
  position: relative;
  overflow: hidden;
}
.work::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(0, 229, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.work:hover::after {
  transform: translateX(110%);
}

/* ---------- Tech chip: subtle bracket decorators ---------- */
.tech-chip {
  position: relative;
  transition: 0.22s;
  cursor: default;
}
.tech-chip::before {
  content: '<';
  color: var(--cyan-dim);
  margin-right: 4px;
  opacity: 0.6;
  background: none !important;
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  transition: 0.22s;
}
.tech-chip::after {
  content: '/>';
  color: var(--cyan-dim);
  margin-left: 4px;
  opacity: 0.6;
  transition: 0.22s;
}
/* Brighten the JSX-style brackets and lift slightly on hover */
.tech-chip:hover {
  transform: translateY(-1px);
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.tech-chip:hover::before,
.tech-chip:hover::after {
  color: var(--cyan);
  opacity: 1;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

/* ---------- Tool badge: hover lift + glow ---------- */
.tool-badge {
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s !important;
}
.tool-badge:hover {
  transform: translateY(-3px) scale(1.04);
}

/* ---------- Mini commit graph (footer-ish vibe) ---------- */
.commit-graph {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 18px auto 0;
  flex-wrap: wrap;
  max-width: 460px;
}
.commit-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.1);
  transition: 0.3s;
}
.commit-cell[data-level="1"] { background: color-mix(in srgb, var(--cyan) 25%, transparent); }
.commit-cell[data-level="2"] { background: color-mix(in srgb, var(--cyan) 50%, transparent); }
.commit-cell[data-level="3"] { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.commit-cell[data-level="4"] { background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.commit-cell:hover { transform: scale(1.6); }
.commit-graph-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan-dim);
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 22px;
}
.commit-graph-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(230, 243, 255, 0.65);
  letter-spacing: 0.4px;
  margin-top: 12px;
}
.commit-graph-meta strong {
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
  font-weight: 500;
}
.commit-graph-meta .sep { color: rgba(255, 255, 255, 0.25); }
.commit-graph-meta a {
  color: var(--brand);
  text-decoration: none;
}
.commit-graph-meta a:hover {
  text-shadow: 0 0 8px rgba(255, 144, 0, 0.5);
}

/* ---------- Footer console line ---------- */
#fh5co-footer p::before {
  content: '$ ';
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Reveal-on-scroll classes ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Konami activation flash ---------- */
body.konami-on {
  animation: hue-cycle 6s linear infinite;
}
@keyframes hue-cycle {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ---------- Hero badge text — slight type-color update ---------- */
.hero-status .status-badge {
  font-size: 12px;
  letter-spacing: 1.2px;
}

/* ---------- Hero social icons — lift + accent glow on hover ----------
   The base color: #fff from style.css; tech-fx adds interactivity. */
#fh5co-header .fh5co-social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s, transform 0.22s, text-shadow 0.22s;
}
#fh5co-header .fh5co-social-icons li a:hover {
  color: var(--cyan) !important;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
#fh5co-header .fh5co-social-icons li a:focus-visible {
  color: var(--cyan) !important;
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* ---------- Hero primary CTA — book a call ---------- */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
}
.hero-cta__primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--cyan) 18%, transparent) 0%,
    color-mix(in srgb, var(--cyan) 8%, transparent) 100%);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: #eafdff !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  text-decoration: none;
  box-shadow: 0 0 22px color-mix(in srgb, var(--cyan) 22%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 8px color-mix(in srgb, var(--cyan) 50%, transparent);
  transition: 0.22s;
}
.hero-cta__primary:hover,
.hero-cta__primary:focus-visible {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--cyan) 32%, transparent) 0%,
    color-mix(in srgb, var(--cyan) 16%, transparent) 100%);
  box-shadow: 0 0 32px color-mix(in srgb, var(--cyan) 40%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.hero-cta__primary:active { transform: translateY(0); }
.hero-cta__prompt {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.7);
}
.hero-cta__arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.22s;
}
.hero-cta__primary:hover .hero-cta__arrow { transform: translateX(3px); }
.hero-cta__secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: rgba(230, 243, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px dashed rgba(230, 243, 255, 0.25);
  padding-bottom: 1px;
  transition: 0.18s;
}
.hero-cta__secondary:hover,
.hero-cta__secondary:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

@media (max-width: 640px) {
  .hero-cta__primary { padding: 11px 20px; font-size: 13px; letter-spacing: 1.2px; }
  .hero-cta__secondary { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta__primary,
  .hero-cta__primary:hover,
  .hero-cta__arrow,
  .hero-cta__primary:hover .hero-cta__arrow { transition: none; transform: none; }
}

/* Light-theme variant */
:root[data-theme="light"] .hero-cta__primary {
  background: linear-gradient(180deg, #007a90 0%, #005f70 100%) !important;
  border-color: #005f70 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 122, 144, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .hero-cta__primary:hover {
  background: linear-gradient(180deg, #00667a 0%, #004f5e 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 122, 144, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
:root[data-theme="light"] .hero-cta__prompt { color: #ffe9a8 !important; text-shadow: none !important; }
:root[data-theme="light"] .hero-cta__secondary {
  color: rgba(20, 30, 50, 0.6) !important;
  border-bottom-color: rgba(20, 30, 50, 0.25) !important;
}
:root[data-theme="light"] .hero-cta__secondary:hover {
  color: #00667a !important;
  border-bottom-color: #00667a !important;
}

/* ---------- Responsive: pull back heavy fx ---------- */
@media (max-width: 768px) {
  .matrix-canvas { opacity: 0.10; }
  .hero-stats { gap: 10px; }
  .hero-stats .stat { min-width: 90px; padding: 8px 12px; }
  .hero-stats .stat strong { font-size: 16px; }
  .code-card { font-size: 12px; }
  .code-card__gutter { padding: 14px 8px 14px 12px; font-size: 11px; }
  .code-card__code { padding: 14px; }
  .code-card__code pre { font-size: 11px; }
}

/* =======================================================
 *  HYPERFRAMES — advanced interactive UI layer
 * ======================================================= */

/* ---------- HUD status panel (top-right) ---------- */
.hud {
  position: fixed;
  top: 80px;
  right: 18px;
  z-index: 9997;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(5, 8, 20, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 14px 12px;
  min-width: 200px;
  /* Theme-aware glow — derives from --cyan so xeno glows red, crt green, etc. */
  box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 18%, transparent),
              inset 0 0 18px color-mix(in srgb, var(--cyan) 4%, transparent);
  /* backdrop-filter removed — always-visible fixed widget shouldn't pay
     the every-frame blur cost. Bumped background opacity to 0.92. */
  pointer-events: none;
}
.hud::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: hud-scan 3s linear infinite;
}
@keyframes hud-scan {
  0% { transform: translateX(-40%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(40%); opacity: 0; }
}
.hud__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0;
}
.hud__label {
  color: rgba(255, 255, 255, 0.45);
}
.hud__val {
  color: var(--cyan);
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 55%, transparent);
}
.hud__val.warn {
  color: var(--brand);
  text-shadow: 0 0 6px color-mix(in srgb, var(--brand) 55%, transparent);
}
.hud__bar {
  height: 3px;
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  position: relative;
}
.hud__bar > i {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--brand));
  transition: inset 0.15s linear;
}
@media (max-width: 768px) {
  .hud { display: none; }
}

/* ---------- Hyperframe corner brackets ---------- */
.hyperframe {
  position: relative;
}
.hyperframe::before,
.hyperframe::after,
.hyperframe > .hf-tr,
.hyperframe > .hf-bl {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--cyan);
  pointer-events: none;
  z-index: 5;
  transition: 0.4s ease;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 60%, transparent));
}
.hyperframe::before { top: -8px; left: -8px; border-top: 2px solid; border-left: 2px solid; }
.hyperframe::after  { bottom: -8px; right: -8px; border-bottom: 2px solid; border-right: 2px solid; }
.hyperframe > .hf-tr { top: -8px; right: -8px; border-top: 2px solid; border-right: 2px solid; }
.hyperframe > .hf-bl { bottom: -8px; left: -8px; border-bottom: 2px solid; border-left: 2px solid; }
.hyperframe:hover::before,
.hyperframe:hover::after,
.hyperframe:hover > .hf-tr,
.hyperframe:hover > .hf-bl {
  width: 34px;
  height: 34px;
  border-color: var(--brand);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 70%, transparent));
}

/* Tilt setup */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  will-change: transform;
}
.tilt-inner {
  transform: translateZ(0);
}

/* ---------- Command palette ---------- */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  animation: cmdk-fade 0.18s ease;
}
.cmdk-overlay.is-open { display: flex; }
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }

.cmdk {
  width: min(640px, 92vw);
  background: linear-gradient(180deg, #0b1226, #070a18);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px color-mix(in srgb, var(--cyan) 18%, transparent),
              0 0 50px color-mix(in srgb, var(--cyan) 20%, transparent);
  font-family: 'JetBrains Mono', monospace;
  color: #e6f3ff;
  overflow: hidden;
  animation: cmdk-pop 0.22s ease;
}
@keyframes cmdk-pop {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cmdk__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.cmdk__prompt {
  color: var(--brand);
  font-size: 14px;
}
.cmdk__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--cyan);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.cmdk__input::placeholder { color: rgba(255, 255, 255, 0.3); }
.cmdk__kbd {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.cmdk__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.cmdk__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.12s;
  font-size: 13px;
  color: rgba(230, 243, 255, 0.85);
}
.cmdk__list li .cmdk__icon {
  color: var(--cyan-dim);
  font-size: 14px;
  width: 18px;
}
.cmdk__list li .cmdk__meta {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.cmdk__list li.is-active,
.cmdk__list li:hover {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.04));
  color: #fff;
}
.cmdk__list li.is-active .cmdk__icon { color: var(--cyan); }
.cmdk__foot {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
}
.cmdk__foot kbd {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  margin-right: 4px;
}

/* ---------- Cmd+K open hint pill (bottom-right, dismissible) ---------- */
.cmdk-hint {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 9996;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(5, 8, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: cmdk-hint-in 0.4s ease 1s backwards;
}
.cmdk-hint kbd {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}
@keyframes cmdk-hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .cmdk-hint { display: none; }
}

/* ---------- Mobile FAB: opens the palette where Ctrl+K isn't a thing ---------- */
.cmdk-fab {
  position: fixed;
  bottom: 22px;
  left: 18px;
  z-index: 9997;
  display: none;            /* shown on small viewports only */
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 60%, transparent);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--cyan) 25%, #050814),
              color-mix(in srgb, var(--cyan) 8%, #050814));
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45),
              0 0 22px color-mix(in srgb, var(--cyan) 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cmdk-fab:hover,
.cmdk-fab:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5),
              0 0 32px color-mix(in srgb, var(--cyan) 55%, transparent);
  outline: none;
}
.cmdk-fab__kbd {
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
@media (max-width: 768px) {
  .cmdk-fab { display: flex; }
}
/* Hide while palette is open (no point pointing at itself) and while tour
   is running (the bubble owns attention then). */
.cmdk-overlay.is-open ~ .cmdk-fab,
body.tour-active .cmdk-fab,
body.pchat-active .cmdk-fab {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* First-time mobile coachmark — speech bubble pointing at the FAB. Shown
   only on viewports ≤768px (the FAB is desktop-hidden anyway). */
.cmdk-fab-coach {
  position: fixed;
  left: 76px;            /* just past the 48px FAB + 18px left + gap */
  bottom: 26px;
  z-index: 9998;
  max-width: calc(100vw - 100px);
  padding: 10px 14px;
  background: linear-gradient(180deg, #0b1226, #070a18);
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  border-radius: 8px;
  color: rgba(230, 243, 255, 0.95);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5),
              0 0 24px color-mix(in srgb, var(--cyan) 35%, transparent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
}
.cmdk-fab-coach.is-open    { opacity: 1; transform: translateX(0); }
.cmdk-fab-coach.is-leaving { opacity: 0; transform: translateX(-8px); }
.cmdk-fab-coach__body { display: flex; flex-direction: column; gap: 2px; }
.cmdk-fab-coach__body strong {
  color: var(--cyan);
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent);
  letter-spacing: 0.5px;
}
.cmdk-fab-coach__sub {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.cmdk-fab-coach__arrow {
  position: absolute;
  left: -6px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #0b1226 50%, transparent 50%);
  border-left: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  transform: rotate(45deg);
}
@media (min-width: 769px) { .cmdk-fab-coach { display: none; } }

/* ---------- Command palette: sectioned/fuzzy extensions ---------- */
/* Override generic li styles for non-row entries (headers / empty / "more"). */
.cmdk__list .cmdk__section {
  cursor: default;
  padding: 12px 12px 4px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
  border-radius: 0;
  pointer-events: none;
  /* Stay visible as the list scrolls — keeps the user oriented inside long
     FAQ / case-section result sets. Backdrop hides the rows behind the header
     so transparent + scrolling text doesn't bleed through. */
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg,
              rgba(7, 10, 24, 0.95) 0%,
              rgba(7, 10, 24, 0.95) 70%,
              rgba(7, 10, 24, 0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cmdk__list .cmdk__section:first-child { padding-top: 6px; }
.cmdk__list .cmdk__more,
.cmdk__list .cmdk__empty {
  cursor: default;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  padding: 6px 14px 10px;
  background: transparent !important;
  pointer-events: none;
}
.cmdk__list .cmdk__empty { padding: 16px 14px; }

/* Virtual "Ask the assistant" row: brand-tinted, stands out from FAQ rows. */
.cmdk__list .cmdk__row--ask {
  background: linear-gradient(90deg,
              color-mix(in srgb, var(--brand) 14%, transparent),
              color-mix(in srgb, var(--brand) 4%, transparent));
  border: 1px dashed color-mix(in srgb, var(--brand) 50%, transparent);
}
.cmdk__list .cmdk__row--ask .cmdk__icon { color: var(--brand); }
.cmdk__list .cmdk__row--ask.is-active,
.cmdk__list .cmdk__row--ask:hover {
  background: linear-gradient(90deg,
              color-mix(in srgb, var(--brand) 24%, transparent),
              color-mix(in srgb, var(--brand) 8%, transparent));
}

/* Match-highlight inside palette rows. */
.cmdk__list .cmdk__hl {
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  padding: 0;
}

/* Label column needs ellipsis so long FAQ questions don't push meta off-row. */
.cmdk__list .cmdk__row .cmdk__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Staggered row entry — rows fade up in sequence as the list renders so the
   palette feels like it's being typed in rather than dropped in. Capped at
   ~9 steps so very long result sets don't feel laggy. */
@keyframes cmdk-row-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cmdk__list .cmdk__row {
  animation: cmdk-row-in 0.22s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .cmdk__list .cmdk__row { animation: none; }
}

/* 3D parallax variant on case-study rows — the row tilts under the cursor
   (set inline by JS) and the thumbnail floats forward via translateZ. */
.cmdk__list .cmdk__row--tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}
.cmdk__list .cmdk__row--tilt .cmdk__icon--thumb img {
  transform: translateZ(8px);
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.cmdk__list .cmdk__row--tilt:hover .cmdk__icon--thumb img {
  transform: translateZ(14px) scale(1.04);
}
.cmdk__list .cmdk__row--tilt .cmdk__label,
.cmdk__list .cmdk__row--tilt .cmdk__meta {
  transform: translateZ(2px);
}

/* Thumbnail variant of the icon cell — case-study rows show their OG image
   instead of the generic ◆ glyph so the palette reads like a magazine TOC. */
.cmdk__list .cmdk__row .cmdk__icon--thumb {
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
}
.cmdk__list .cmdk__row .cmdk__icon--thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 15%, transparent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cmdk__list .cmdk__row.is-active .cmdk__icon--thumb img,
.cmdk__list .cmdk__row:hover .cmdk__icon--thumb img {
  border-color: color-mix(in srgb, var(--cyan) 70%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 35%, transparent);
}
/* Case-section labels are content-rich ("AI Engineer · PHPUnit deploy verifier")
   and got ellipsis-truncated under the original 1-line rule. Allow these rows
   to wrap to 2 lines so the keyword stays visible. */
.cmdk__list .cmdk__row[data-section="case-section"] {
  align-items: flex-start;
  padding-top: 9px;
  padding-bottom: 9px;
}
.cmdk__list .cmdk__row[data-section="case-section"] .cmdk__label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}
.cmdk__list .cmdk__row[data-section="case-section"] .cmdk__icon,
.cmdk__list .cmdk__row[data-section="case-section"] .cmdk__meta {
  margin-top: 2px;
}

/* Result counter in the footer — right-aligned. */
.cmdk__foot .cmdk__count {
  margin-left: auto;
  color: rgba(0, 229, 255, 0.5);
}

/* Copy-action toast — non-blocking confirmation, slides up from the footer. */
.cmdk__toast {
  position: absolute;
  left: 50%;
  bottom: 56px;            /* sit just above the footer's 36ish px */
  transform: translate(-50%, 8px);
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  background: rgba(5, 8, 20, 0.92);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45),
              0 0 18px color-mix(in srgb, var(--cyan) 30%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk__toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Guided 30-second tour ---------- */
.tour-bubble {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  width: min(640px, 92vw);
  z-index: 10002;
  background: linear-gradient(180deg, #0b1226, #070a18);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
              0 0 0 1px color-mix(in srgb, var(--cyan) 18%, transparent),
              0 0 50px color-mix(in srgb, var(--cyan) 22%, transparent);
  font-family: 'JetBrains Mono', monospace;
  color: #e6f3ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
.tour-bubble.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.tour-bubble__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.04);
}
.tour-bubble__title {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}
.tour-bubble__step {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.tour-bubble__caption {
  padding: 14px 18px 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(230, 243, 255, 0.92);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.tour-bubble__caption strong { color: var(--cyan); text-shadow: 0 0 6px rgba(0, 229, 255, 0.35); }
.tour-bubble__bar {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  flex-wrap: wrap;
}
.tour-btn {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line);
  color: rgba(230, 243, 255, 0.85);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.15s;
}
.tour-btn:hover { background: rgba(0, 229, 255, 0.12); color: #fff; }
.tour-btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--cyan) 35%, transparent), color-mix(in srgb, var(--cyan) 18%, transparent));
  border-color: color-mix(in srgb, var(--cyan) 60%, transparent);
  color: #fff;
  margin-left: auto;
}
.tour-btn--primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--cyan) 55%, transparent), color-mix(in srgb, var(--cyan) 28%, transparent));
}
.tour-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}
.tour-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}
/* The finale uses anchor elements styled as buttons for Email + Book links —
   reset link defaults so they match button siblings exactly. */
a.tour-btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Finale-mode bubble: brighter glow, slightly larger so it commands attention
   after a tour completion. */
.tour-bubble--finale {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
              0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent),
              0 0 70px color-mix(in srgb, var(--brand) 35%, transparent);
}
.tour-bubble--finale .tour-bubble__head {
  background: linear-gradient(90deg,
              color-mix(in srgb, var(--brand) 12%, transparent),
              color-mix(in srgb, var(--cyan) 8%, transparent));
}
.tour-bubble--finale .tour-bubble__title { color: var(--brand); text-shadow: 0 0 8px color-mix(in srgb, var(--brand) 40%, transparent); }
.tour-bubble--finale .tour-bubble__caption kbd {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}
.tour-bubble__bar--finale {
  flex-wrap: wrap;
  align-items: center;
}
.tour-bubble__bar--finale .tour-btn--primary { margin-left: auto; }
.tour-bubble__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}
.tour-bubble__progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--brand));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  transition: width 0.4s ease;
}

/* Highlight the currently-focused section during the tour.
   Bright pulse on entry → settles into a persistent soft ring so the eye
   stays connected to the section the caption refers to. */
.tour-target {
  position: relative;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 55%, transparent),
              0 0 40px color-mix(in srgb, var(--cyan) 18%, transparent);
  animation: tour-pulse 1.6s ease-out;
  transition: box-shadow 0.4s ease;
}
@keyframes tour-pulse {
  0%   { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cyan) 90%, transparent), 0 0 70px color-mix(in srgb, var(--cyan) 45%, transparent); }
  100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 55%, transparent), 0 0 40px color-mix(in srgb, var(--cyan) 18%, transparent); }
}

/* Dim ambient UI while the tour runs so attention follows the caption. */
body.tour-active .siderail,
body.tour-active .hud,
body.tour-active .cmdk-hint {
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .tour-bubble { transition: opacity 0.15s ease; transform: translateX(-50%) translateY(0); }
  .tour-target { animation: none; }
  .tour-bubble__progress > span { transition: none; }
}
@media (max-width: 768px) {
  .tour-bubble { bottom: 12px; width: calc(100vw - 24px); }
  .tour-bubble__caption { font-size: 13px; padding: 12px 14px 6px; }
  .tour-bubble__bar { padding: 8px 10px 12px; }
}

/* ============================================================================
   ORBITAL 3D — full-screen ring of case-study cards orbiting the viewer.
   Triggered from the palette's "Explore case studies in 3D" command.
   Pure CSS 3D, no Three.js. The ring rotates via the --rot custom property
   set by JS; cards are positioned via --i and the parent's --total.
   ============================================================================ */
.orbital3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 10003;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--cyan) 14%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 60%),
    rgba(3, 5, 12, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: block;
  font-family: 'JetBrains Mono', monospace;
  animation: orb-fade 0.32s ease;
}
@keyframes orb-fade { from { opacity: 0; } to { opacity: 1; } }

/* Deep-space starfield — Canvas2D point cloud rendered by orbital3d() in JS.
   Sits behind every other overlay layer so the cards/grid float over it. */
.orbital3d-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* Subtle additive glow + vignette so the edges fade into darkness */
  mask-image: radial-gradient(ellipse at 50% 50%, #000 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 65%, transparent 100%);
}

/* Drifting nebula clouds — pure CSS radial-gradient blobs that slowly orbit
   the viewport. Three layers, each on a different timing + tint, create the
   illusion of volumetric depth without any GPU shader cost. */
.orbital3d-nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.55;
}
.orbital3d-nebula__cloud {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.orbital3d-nebula__cloud--a {
  top: -25vmax;
  left: -20vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 38%, transparent) 0%, transparent 60%);
  animation: orb-neb-a 38s ease-in-out infinite;
}
.orbital3d-nebula__cloud--b {
  bottom: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 30%, transparent) 0%, transparent 60%);
  animation: orb-neb-b 52s ease-in-out infinite;
}
.orbital3d-nebula__cloud--c {
  top: 20vmax;
  left: 40vmax;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, color-mix(in srgb, #b074ff 35%, transparent) 0%, transparent 65%);
  animation: orb-neb-c 64s ease-in-out infinite;
}
@keyframes orb-neb-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
}
@keyframes orb-neb-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-10vmax, -4vmax, 0) scale(0.92); }
}
@keyframes orb-neb-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate3d(-12vmax, 8vmax, 0) scale(1.18) rotate(60deg); }
}

/* Energy horizon — a glowing pulse-bar along the grid horizon line. Sells the
   "stage" feel; cycles like a slow heartbeat. */
.orbital3d-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 80px);
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--cyan) 75%, transparent) 50%,
    transparent 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 60%, transparent),
              0 0 38px color-mix(in srgb, var(--cyan) 35%, transparent);
  animation: orb-horizon 4.2s ease-in-out infinite;
}
@keyframes orb-horizon {
  0%, 100% { opacity: 0.55; transform: scaleY(1); }
  50%      { opacity: 1;    transform: scaleY(1.6); }
}

/* Cyber grid floor — gives the ring a sense of place */
.orbital3d-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--cyan) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cyan) 10%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 calc(50vh + 80px);
  mask-image: linear-gradient(180deg, transparent 50%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000 70%, transparent 100%);
  transform: perspective(900px) rotateX(60deg);
  transform-origin: 50% 100%;
  opacity: 0.5;
}

.orbital3d-stage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  cursor: grab;
  touch-action: none;
}
.orbital3d-stage:active { cursor: grabbing; }

.orbital3d-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(var(--rot, 0deg));
  will-change: transform;
}

.orbital3d-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 200px;
  margin: -100px 0 0 -180px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
  background: #0b1226;
  box-shadow: 0 0 30px color-mix(in srgb, var(--cyan) 12%, transparent);
  transform: rotateY(calc(360deg / var(--total) * var(--i))) translateZ(440px);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  /* Hide back-facing cards on the far side of the ring — cleaner than
     letting mirrored text show through from the rear. */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
}
.orbital3d-card:hover,
.orbital3d-card.is-front {
  border-color: color-mix(in srgb, var(--cyan) 80%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--cyan) 35%, transparent),
              0 0 120px color-mix(in srgb, var(--cyan) 18%, transparent);
  transform: rotateY(calc(360deg / var(--total) * var(--i))) translateZ(490px);
}
.orbital3d-card.is-front {
  z-index: 2;
}
.orbital3d-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) contrast(1.05) saturate(1.1);
  transition: filter 0.4s ease;
}
.orbital3d-card.is-front .orbital3d-card__img,
.orbital3d-card:hover .orbital3d-card__img { filter: brightness(0.95) saturate(1.15); }
.orbital3d-card__inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 20, 0.85) 60%, rgba(5, 8, 20, 0.95) 100%);
  color: #e6f3ff;
}
.orbital3d-card__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.orbital3d-card__meta {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cyan) 70%, white);
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 30%, transparent);
}

.orbital3d-hud {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 3;
  max-width: 80vw;
}
.orbital3d-hud__title {
  display: block;
  color: var(--cyan);
  font-size: 18px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 60%, transparent);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orbital3d-hud__hint {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.orbital3d-hud__hint kbd {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  margin: 0 1px;
}

.orbital3d-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 4;
  transition: background 0.15s ease;
}
.orbital3d-close:hover { background: rgba(0, 229, 255, 0.16); }

/* Lock the body's scroll while the orbital is open so the underlying page
   doesn't shift behind us. */
body.orbital3d-active { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .orbital3d-overlay { animation: none; }
  .orbital3d-card { transition: none; }
  .orbital3d-nebula__cloud,
  .orbital3d-horizon { animation: none; }
  .orbital3d-nebula { opacity: 0.32; }
}
@media (max-width: 768px) {
  .orbital3d-card { width: 260px; height: 146px; margin: -73px 0 0 -130px; transform: rotateY(calc(360deg / var(--total) * var(--i))) translateZ(320px); }
  .orbital3d-card:hover,
  .orbital3d-card.is-front { transform: rotateY(calc(360deg / var(--total) * var(--i))) translateZ(360px); }
  .orbital3d-hud { bottom: 22px; }
  .orbital3d-hud__title { font-size: 14px; }
}

/* ============================================================================
   HOLOGRAPHIC SHIMMER — iridescent sweep across palette case-study rows.
   Activates on hover; layered on top of the existing tilt + thumbnail.
   ============================================================================ */
.cmdk__list .cmdk__row[data-section="case-study"]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 35%,
    color-mix(in srgb, var(--cyan) 22%, transparent) 48%,
    color-mix(in srgb, var(--brand) 18%, transparent) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
  background-position: 200% 0;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cmdk__list .cmdk__row[data-section="case-study"] {
  position: relative;        /* anchor the ::before */
}
.cmdk__list .cmdk__row[data-section="case-study"]:hover::before,
.cmdk__list .cmdk__row[data-section="case-study"].is-active::before {
  opacity: 1;
  animation: holo-sweep 1.6s linear infinite;
}
@keyframes holo-sweep {
  from { background-position: 200% 0; }
  to   { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cmdk__list .cmdk__row[data-section="case-study"]::before { animation: none; }
}

/* ---------- Side-rail section navigator ---------- */
.siderail {
  position: fixed;
  left: 14px;                                /* moved from right → left to declutter the
                                                right column (HUD top, chat bottom) */
  top: 50%;
  transform: translateY(-50%);
  z-index: 9996;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.siderail__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;               /* was flex-end (right-aligned) */
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: 0.25s;
}
.siderail__dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  border-radius: 50%;
  background: transparent;
  transition: 0.25s;
  flex-shrink: 0;
}
.siderail__label {
  position: absolute;
  left: 22px;                                /* was right: 22px — label now sits to the right
                                                of the dot, since the rail is on the left */
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(5, 8, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.siderail__item:hover .siderail__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.siderail__item:hover .siderail__dot {
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.siderail__item.is-active .siderail__dot {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 20px color-mix(in srgb, var(--cyan) 40%, transparent);
  transform: scale(1.2);
}
.siderail__item.is-active .siderail__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  border-color: var(--line-strong);
  color: #fff;
}
@media (max-width: 768px) {
  .siderail { display: none; }
}

/* ---------- Work-tile tech chips ---------- */
.work .tech-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.work:hover .tech-tags {
  opacity: 1;
  transform: translateY(0);
}
.work .tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(5, 8, 20, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  padding: 3px 7px;
  border-radius: 3px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- Animated count-up wrapper ---------- */
.stat strong[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- Keyboard shortcuts help overlay ---------- */
.kbdhelp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  animation: cmdk-fade 0.18s ease;
}
.kbdhelp-overlay.is-open { display: flex; }
.kbdhelp {
  width: min(540px, 92vw);
  background: linear-gradient(180deg, #0b1226, #070a18);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 50px color-mix(in srgb, var(--cyan) 20%, transparent);
  font-family: 'JetBrains Mono', monospace;
  color: #e6f3ff;
  overflow: hidden;
  animation: cmdk-pop 0.22s ease;
}
.kbdhelp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
}
.kbdhelp__head span:first-child::before {
  content: '> ';
  color: var(--brand);
}
.kbdhelp__close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}
.kbdhelp__close:hover { background: rgba(0, 229, 255, 0.08); }
.kbdhelp__body {
  padding: 16px 18px 20px;
}
.kbdhelp__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.1);
  font-size: 13px;
}
.kbdhelp__row:last-child { border-bottom: 0; }
.kbdhelp__keys {
  display: flex;
  gap: 4px;
  align-items: center;
}
.kbdhelp__keys kbd {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  box-shadow: 0 2px 0 rgba(0, 229, 255, 0.18);
}
.kbdhelp__keys span { color: rgba(255, 255, 255, 0.4); font-size: 11px; }
.kbdhelp__desc {
  color: rgba(230, 243, 255, 0.75);
}

/* ---------- Project filter pills ---------- */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}
.work-filter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.22s;
}
.work-filter:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
}
.work-filter.is-active {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cyan) 18%, transparent),
    color-mix(in srgb, var(--brand) 12%, transparent));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 35%, transparent);
}
.work-filter .count {
  margin-left: 6px;
  font-size: 9px;
  color: var(--cyan-dim);
}
#fh5co-work .col-padding {
  transition: opacity 0.32s, transform 0.32s;
}
#fh5co-work .col-padding.is-hidden {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  display: none;
}

/* ---------- Custom right-click context menu ---------- */
.ctx-menu {
  position: fixed;
  z-index: 10003;
  min-width: 220px;
  background: linear-gradient(180deg, #0b1226, #070a18);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px;
  font-family: 'JetBrains Mono', monospace;
  color: #e6f3ff;
  /* Glow uses the per-palette --glow-cyan token so xeno glows red, crt
     glows phosphor green, etc. The dark drop-shadow is universal. */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  display: none;
  animation: ctx-in 0.14s ease;
}
.ctx-menu.is-open { display: block; }
@keyframes ctx-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ctx-menu__title {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  padding: 6px 10px 4px;
}
.ctx-menu__title::before { content: '// '; color: var(--brand); }
.ctx-menu__sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}
.ctx-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(230, 243, 255, 0.85);
  transition: 0.12s;
}
.ctx-menu__item:hover {
  /* color-mix derives the hover tint from the active palette's --cyan,
     so xeno hovers red, crt hovers green, matrix hovers bright-green, etc. */
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  color: #fff;
}
.ctx-menu__icon {
  width: 14px;
  text-align: center;
  color: var(--cyan-dim);
  font-size: 12px;
}
.ctx-menu__item:hover .ctx-menu__icon { color: var(--cyan); }
.ctx-menu__shortcut {
  margin-left: auto;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
}

/* Toast (used by context menu actions) */
.tech-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10004;
  background: rgba(5, 8, 20, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 229, 255, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
  pointer-events: none;
}
.tech-toast::before { content: '> '; color: var(--brand); }
.tech-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile nav hamburger toggle + slide-down menu ----------
   The legacy style.css rule sets .fh5co-nav-links { display: none } at
   ≤768px with no replacement, leaving mobile visitors stranded. This
   block adds a hamburger button + a full-width drop-down panel that
   actually lets people navigate the site on phones. */
.fh5co-nav-toggle {
  display: none;                /* Hidden on desktop — only shows ≤768px */
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  float: right;
  margin-top: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1101;
  transition: 0.22s;
}
.fh5co-nav-toggle:hover,
.fh5co-nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}
.fh5co-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: 0.22s ease;
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
}
/* Open-state — morph 3 bars into an X */
.fh5co-nav-toggle[aria-expanded="true"] .fh5co-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.fh5co-nav-toggle[aria-expanded="true"] .fh5co-nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.fh5co-nav-toggle[aria-expanded="true"] .fh5co-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .fh5co-nav-toggle { display: flex; }
  /* Override the legacy display: none from style.css so we can animate
     the menu open. Start closed (height: 0 + overflow hidden), open by
     adding .is-open which expands. */
  #fh5co-nav .fh5co-nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 18px;
    background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 229, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, visibility 0.22s, padding 0.28s ease;
    z-index: 1100;
    line-height: 1.4;
  }
  #fh5co-nav .fh5co-nav-links.is-open {
    max-height: 600px;
    padding: 14px 18px 18px;
    opacity: 1;
    visibility: visible;
  }
  #fh5co-nav .fh5co-nav-links li {
    display: block;
    margin: 0;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.12);
  }
  #fh5co-nav .fh5co-nav-links li:last-child { border-bottom: 0; }
  #fh5co-nav .fh5co-nav-links li a {
    display: block;
    padding: 14px 4px;
    color: rgba(230, 243, 255, 0.85);
    line-height: 1.2;
  }
  #fh5co-nav .fh5co-nav-links li a:hover,
  #fh5co-nav .fh5co-nav-links li a:focus-visible {
    color: var(--cyan);
  }
  #fh5co-nav .fh5co-nav-links li a.hire-btn {
    text-align: center;
    margin: 8px 0 4px;
    background: linear-gradient(135deg, var(--cyan), var(--brand));
    color: var(--bg-dark) !important;
    font-weight: 700;
  }
  /* The theme picker lives inside the nav — let its popover anchor
     fully on-screen rather than overflowing the right edge. */
  #fh5co-nav .fh5co-nav-extra { padding: 10px 0 4px; }
  /* Mobile theme picker — sit inside the menu flow, fit the parent width.
     Base rule's min-width: 220px would overflow narrow phones; reset it. */
  #fh5co-nav .theme-picker__menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    box-sizing: border-box;
  }
  /* Mode-row buttons can wrap if the screen is super narrow */
  #fh5co-nav .theme-picker__group {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  /* Preview tooltips don't make sense on touch — already display:none
     via the @media (hover: none) rule, but reinforced here. */
  #fh5co-nav .theme-picker__preview { display: none; }
}

/* Light-theme variants for the mobile menu surfaces */
:root[data-theme="light"] .fh5co-nav-toggle {
  border-color: rgba(10, 30, 60, 0.25);
}
:root[data-theme="light"] .fh5co-nav-toggle__bar {
  background: #00667a;
  box-shadow: 0 0 4px rgba(0, 122, 144, 0.4);
}
@media screen and (max-width: 768px) {
  :root[data-theme="light"] #fh5co-nav .fh5co-nav-links {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%);
    border-bottom-color: rgba(10, 30, 60, 0.2);
    box-shadow: 0 18px 30px rgba(10, 30, 60, 0.12);
  }
  :root[data-theme="light"] #fh5co-nav .fh5co-nav-links li {
    border-bottom-color: rgba(10, 30, 60, 0.1);
  }
  :root[data-theme="light"] #fh5co-nav .fh5co-nav-links li a {
    color: rgba(10, 30, 60, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh5co-nav-toggle__bar { transition: none; }
  #fh5co-nav .fh5co-nav-links { transition: opacity 0.15s, visibility 0.15s; }
}

/* ---------- Theme switcher (palettes) ---------- */
.theme-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.18);
}
.theme-pick__label {
  color: rgba(255, 255, 255, 0.45);
  flex: 1;
}
.theme-pick__btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  transition: 0.18s;
}
.theme-pick__btn:hover { transform: scale(1.18); }
.theme-pick__btn.is-on { border-color: #fff; box-shadow: 0 0 8px currentColor; transform: scale(1.18); }
.theme-pick__btn[data-th="cyber"]  { background: #00e5ff; color: #00e5ff; }
.theme-pick__btn[data-th="matrix"] { background: #00ff7c; color: #00ff7c; }
.theme-pick__btn[data-th="sunset"] { background: #ff2bd6; color: #ff2bd6; }
.theme-pick__btn[data-th="xeno"]   { background: #ff1840; color: #ff1840; }
.theme-pick__btn[data-th="crt"]    { background: #33ff33; color: #33ff33; }
.theme-pick__btn[data-th="arcade"] { background: #ffcc00; color: #ffcc00; }

/* Matrix palette: green-dominant */
:root.theme-matrix {
  --cyan: #00ff7c;
  --cyan-dim: #08b85d;
  --line: rgba(0, 255, 124, 0.22);
  --line-strong: rgba(0, 255, 124, 0.5);
  --glow-cyan: 0 0 12px rgba(0, 255, 124, 0.6), 0 0 30px rgba(0, 255, 124, 0.25);
}
/* Sunset palette: magenta-pink */
:root.theme-sunset {
  --cyan: #ff2bd6;
  --cyan-dim: #c41fa3;
  --line: rgba(255, 43, 214, 0.22);
  --line-strong: rgba(255, 43, 214, 0.5);
  --glow-cyan: 0 0 12px rgba(255, 43, 214, 0.6), 0 0 30px rgba(255, 43, 214, 0.25);
  --brand: #ffaa00;
}
/* CRT palette: retro phosphor monitor — single-color green-on-black, heavy scanlines, sharp corners */
:root.theme-crt {
  --cyan: #33ff33;
  --cyan-dim: #28b428;
  --line: rgba(51, 255, 51, 0.22);
  --line-strong: rgba(51, 255, 51, 0.55);
  --glow-cyan: 0 0 12px rgba(51, 255, 51, 0.6), 0 0 28px rgba(51, 255, 51, 0.25);
  --brand: #ffb400;        /* amber secondary — like older monochrome monitors that ran amber */
  --magenta: #33ff33;      /* fold magenta into green so the palette stays monochrome */
}
/* Xeno palette: alien-invasion / interstellar — hostile red + bio-luminescent green + UV purple */
:root.theme-xeno {
  --cyan: #ff1840;          /* intrusion-alert red (replaces cyan accent) */
  --cyan-dim: #b80c2a;
  --line: rgba(255, 24, 64, 0.22);
  --line-strong: rgba(255, 24, 64, 0.55);
  --glow-cyan: 0 0 12px rgba(255, 24, 64, 0.6), 0 0 30px rgba(255, 24, 64, 0.25);
  --brand: #00ff85;         /* bio-luminescent green (replaces orange) */
  --magenta: #c050ff;       /* UV cosmic purple */
}
/* Arcade palette: retro game cabinet — coin gold + player red + hard pixel shadows */
:root.theme-arcade {
  --cyan: #ffcc00;          /* coin gold (replaces cyan accent) */
  --cyan-dim: #c79a00;
  --line: rgba(255, 204, 0, 0.28);
  --line-strong: rgba(255, 204, 0, 0.6);
  --glow-cyan: 3px 3px 0 rgba(0, 0, 0, 0.55);   /* hard pixel drop shadow instead of neon glow */
  --brand: #ff3864;         /* player-red */
  --magenta: #00a8ff;       /* power-up blue */
}
/* Xeno-specific visual flourishes — make the theme feel genuinely out-of-this-world,
   not just a recolor. Hero status badge pulses like an intrusion alert, scanline
   gains a red tint, body gets a deep-void radial wash. */
:root.theme-xeno body {
  background-image:
    radial-gradient(ellipse 70% 50% at 75% 0%, rgba(255, 24, 64, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 50% at 25% 100%, rgba(0, 255, 133, 0.04), transparent 60%);
}
:root.theme-xeno .hero-status .status-badge {
  border-color: rgba(255, 24, 64, 0.55) !important;
  background: rgba(255, 24, 64, 0.08) !important;
  animation: xeno-alert-pulse 2.4s ease-in-out infinite;
}
:root.theme-xeno .hero-status .status-dot {
  background: #ff1840 !important;
  box-shadow: 0 0 8px rgba(255, 24, 64, 0.8), 0 0 14px rgba(255, 24, 64, 0.4);
}
:root.theme-xeno .scanline {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 24, 64, 0.06) 50%, transparent 100%) !important;
}
:root.theme-xeno .tech-grid {
  background-image:
    linear-gradient(rgba(255, 24, 64, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 24, 64, 0.08) 1px, transparent 1px) !important;
}
@keyframes xeno-alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 24, 64, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 24, 64, 0.15), 0 0 14px rgba(255, 24, 64, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  :root.theme-xeno .hero-status .status-badge { animation: none; }
}

/* =========================================================================
   XENO SKIN — radical visual departure from cyber theme.
   Same content, different planet: deep-void background, hostile alien chrome,
   sweeping scanner, scope-reticle hero, diamond glyphs, angular clip-paths.
   Activated by :root.theme-xeno only — cyber/matrix/sunset themes are untouched.
   ========================================================================= */

/* -- Void background + nebula wash -- */
:root.theme-xeno {
  background: #02000a;
}
:root.theme-xeno body {
  background:
    radial-gradient(ellipse 80% 50% at 18% 12%, rgba(192, 80, 255, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 82% 30%, rgba(255, 24, 64, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 85%, rgba(0, 255, 133, 0.06), transparent 60%),
    radial-gradient(circle at 50% 50%, #050108 0%, #02000a 70%) !important;
}

/* -- Starfield: fixed-position pseudo-element with many tiny box-shadow points -- */
:root.theme-xeno body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 220px 220px;
  background-position: 0 0;
  opacity: 0.35;
  /* Layer a second starfield at different scale + offset for depth */
}
:root.theme-xeno body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 255, 133, 0.5) 1px, transparent 1px);
  background-size: 470px 470px;
  background-position: 80px 110px;
  opacity: 0.25;
  animation: xeno-drift 90s linear infinite;
}
@keyframes xeno-drift {
  to { background-position: 880px 990px; }
}

/* -- Global sweeping scan beam (sweeps top → bottom every ~14s) -- */
:root.theme-xeno #page {
  position: relative;
  z-index: 1;
}
:root.theme-xeno #page::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: -120px;
  height: 120px;
  z-index: 9998;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 24, 64, 0.06) 40%,
    rgba(255, 24, 64, 0.14) 50%,
    rgba(255, 24, 64, 0.06) 60%,
    transparent 100%);
  box-shadow: 0 0 32px rgba(255, 24, 64, 0.35);
  animation: xeno-scan 14s linear infinite;
}
@keyframes xeno-scan {
  0%   { transform: translateY(0); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* -- Hero override: suppress the cover photo, lay down a deep-space + reticle -- */
:root.theme-xeno #fh5co-header {
  background-image: none !important;
  background:
    radial-gradient(ellipse 100% 60% at 50% 40%, rgba(255, 24, 64, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(192, 80, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #05000c 0%, #07000a 60%, #02000a 100%) !important;
}
/* Replace the cyber tech-grid with a red alien lattice */
:root.theme-xeno .tech-grid {
  background-image:
    linear-gradient(rgba(255, 24, 64, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 24, 64, 0.10) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  opacity: 0.7;
}
/* Replace the gentle cyber scanline with an aggressive red horizon line */
:root.theme-xeno .scanline {
  background: repeating-linear-gradient(0deg,
    transparent 0px,
    transparent 2px,
    rgba(255, 24, 64, 0.045) 2px,
    rgba(255, 24, 64, 0.045) 3px) !important;
}
/* Scope-reticle corner brackets on the hero (4 corners) */
:root.theme-xeno #fh5co-header::before,
:root.theme-xeno #fh5co-header::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 24, 64, 0.55);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 24, 64, 0.5));
}
:root.theme-xeno #fh5co-header::before {
  top: 80px;
  left: 28px;
  border-right: 0;
  border-bottom: 0;
}
:root.theme-xeno #fh5co-header::after {
  bottom: 28px;
  right: 28px;
  border-left: 0;
  border-top: 0;
}
/* Pair them with two more via the .overlay element (also already present in markup) */
:root.theme-xeno #fh5co-header .overlay::before,
:root.theme-xeno #fh5co-header .overlay::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 24, 64, 0.55);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 24, 64, 0.5));
}
:root.theme-xeno #fh5co-header .overlay::before {
  top: 80px;
  right: 28px;
  border-left: 0;
  border-bottom: 0;
}
:root.theme-xeno #fh5co-header .overlay::after {
  bottom: 28px;
  left: 28px;
  border-right: 0;
  border-top: 0;
}
/* Hero h1 — glitch-style red+green offset shadow for an "intercepted transmission" feel */
:root.theme-xeno #fh5co-header h1 span {
  text-shadow:
    -1px 0 rgba(255, 24, 64, 0.6),
    2px 0 rgba(0, 255, 133, 0.45),
    0 0 18px rgba(255, 24, 64, 0.4) !important;
  letter-spacing: 4px !important;
}

/* -- Terminal-pane "mac dots" → diamond alien glyphs in red gradient.
      Targets every pane chrome that uses the .*__dots > i pattern. -- */
:root.theme-xeno .case-studies__dots i,
:root.theme-xeno .cta-card__dots i,
:root.theme-xeno .px-card__dots i {
  border-radius: 0 !important;
  width: 10px !important;
  height: 10px !important;
  transform: rotate(45deg);
  box-shadow: 0 0 6px currentColor;
}
:root.theme-xeno .case-studies__dots i:nth-child(1),
:root.theme-xeno .cta-card__dots i:nth-child(1),
:root.theme-xeno .px-card__dots i:nth-child(1)   { background: #ff1840 !important; color: #ff1840; }
:root.theme-xeno .case-studies__dots i:nth-child(2),
:root.theme-xeno .cta-card__dots i:nth-child(2),
:root.theme-xeno .px-card__dots i:nth-child(2)   { background: #c050ff !important; color: #c050ff; }
:root.theme-xeno .case-studies__dots i:nth-child(3),
:root.theme-xeno .cta-card__dots i:nth-child(3),
:root.theme-xeno .px-card__dots i:nth-child(3)   { background: #00ff85 !important; color: #00ff85; }

/* Pane chrome — red bottom-glow + hostile-tech border-top */
:root.theme-xeno .case-studies__chrome,
:root.theme-xeno .cta-card__chrome,
:root.theme-xeno .px-card__chrome {
  border-bottom: 1px solid rgba(255, 24, 64, 0.35) !important;
  background: linear-gradient(180deg, #16000a 0%, #0a0008 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 24, 64, 0.15);
}

/* -- Section panels: hostile-tech border + red corner cut -- */
:root.theme-xeno .case-studies,
:root.theme-xeno .cta-card,
:root.theme-xeno .px-card,
:root.theme-xeno .proj-card,
:root.theme-xeno .skill-card,
:root.theme-xeno .exp-card,
:root.theme-xeno .stack-group {
  border: 1px solid rgba(255, 24, 64, 0.3) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 24, 64, 0.05) inset !important;
}
:root.theme-xeno .proj-card:hover,
:root.theme-xeno .skill-card:hover,
:root.theme-xeno .stack-group:hover {
  border-color: rgba(255, 24, 64, 0.7) !important;
  box-shadow: 0 14px 40px rgba(255, 24, 64, 0.25), 0 0 0 1px rgba(255, 24, 64, 0.35) inset !important;
}

/* -- Angular clip-path on every primary CTA — alien-tech chevron cut -- */
:root.theme-xeno .hero-cta__primary,
:root.theme-xeno .cs-btn--primary {
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
  border-radius: 0 !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
}
:root.theme-xeno .btn.btn-ghost,
:root.theme-xeno .cs-btn--ghost {
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  border-radius: 0 !important;
  letter-spacing: 1.6px !important;
}

/* -- All exp-chips get a hostile-tech corner cut (alien glyph aesthetic) -- */
:root.theme-xeno .exp-chip,
:root.theme-xeno .tech-chip {
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  border-radius: 0 !important;
  border-color: rgba(255, 24, 64, 0.4) !important;
  background: rgba(255, 24, 64, 0.06) !important;
  color: #ffb0bf !important;
}

/* -- Hero stat block: red glow on numbers, hostile-tech border on the frame -- */
:root.theme-xeno .hero-stats {
  border-color: rgba(255, 24, 64, 0.5) !important;
  box-shadow: 0 0 28px rgba(255, 24, 64, 0.18), inset 0 0 18px rgba(255, 24, 64, 0.06) !important;
}
:root.theme-xeno .hero-stats .stat strong {
  color: #ff1840 !important;
  text-shadow: 0 0 14px rgba(255, 24, 64, 0.55) !important;
}

/* -- Terminal-tag (the "> ./init_developer.sh_") gets a "TRANSMISSION" feel -- */
:root.theme-xeno .terminal-tag {
  background: rgba(255, 24, 64, 0.08) !important;
  border-color: rgba(255, 24, 64, 0.5) !important;
  color: #ff8094 !important;
  text-shadow: 0 0 6px rgba(255, 24, 64, 0.5);
}
:root.theme-xeno .terminal-tag .cursor-blink { color: #ff1840 !important; }

/* -- Nav: hostile-red hover + slight glow on Hire Me -- */
:root.theme-xeno .fh5co-nav-links li a:hover { color: #ff8094 !important; }
:root.theme-xeno .hire-btn {
  background: linear-gradient(135deg, #ff1840, #c050ff) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 24, 64, 0.7) !important;
  box-shadow: 0 0 18px rgba(255, 24, 64, 0.5);
  text-shadow: 0 0 6px rgba(255, 24, 64, 0.5);
}

/* -- Hyperframe (decorative corners on profile thumb + stats) — red treatment -- */
:root.theme-xeno .hyperframe__corner {
  border-color: rgba(255, 24, 64, 0.7) !important;
  filter: drop-shadow(0 0 4px rgba(255, 24, 64, 0.5));
}
:root.theme-xeno .hyperframe__halo {
  background: radial-gradient(circle, rgba(255, 24, 64, 0.25), transparent 65%) !important;
  animation: xeno-halo-pulse 3.6s ease-in-out infinite;
}
@keyframes xeno-halo-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.06); }
}

/* -- Section heading h2: red sci-fi treatment -- */
:root.theme-xeno .fh5co-heading h2,
:root.theme-xeno section h2 {
  color: #fff !important;
  text-shadow:
    -1px 0 rgba(255, 24, 64, 0.6),
    2px 0 rgba(0, 255, 133, 0.35),
    0 0 18px rgba(255, 24, 64, 0.4) !important;
  letter-spacing: 5px !important;
}

/* -- Case-study tree (the ls -la list) — alien transmission feel -- */
:root.theme-xeno .case-name--link { color: #ff8094 !important; }
:root.theme-xeno .case-status--live {
  background: rgba(0, 255, 133, 0.08) !important;
  border-color: rgba(0, 255, 133, 0.5) !important;
  color: #00ff85 !important;
  text-shadow: 0 0 6px rgba(0, 255, 133, 0.5);
}

/* -- HUD widget (right-side panel) — red on void -- */
:root.theme-xeno .hud {
  border-color: rgba(255, 24, 64, 0.3) !important;
  background: rgba(8, 0, 12, 0.85) !important;
  box-shadow: 0 0 32px rgba(255, 24, 64, 0.15), inset 0 0 18px rgba(255, 24, 64, 0.04) !important;
}
:root.theme-xeno .hud__val { color: #ff8094 !important; }
:root.theme-xeno .hud__bar i { background: linear-gradient(90deg, #ff1840, #c050ff) !important; }

/* -- Siderail (right-side dot-nav) — red dot, red glow on hover -- */
:root.theme-xeno .siderail__dot { background: rgba(255, 24, 64, 0.4) !important; }
:root.theme-xeno .siderail__item.is-active .siderail__dot,
:root.theme-xeno .siderail__item:hover .siderail__dot {
  background: #ff1840 !important;
  box-shadow: 0 0 10px rgba(255, 24, 64, 0.7);
}

/* -- Reduced-motion respects xeno animations -- */
@media (prefers-reduced-motion: reduce) {
  :root.theme-xeno body::after,
  :root.theme-xeno #page::before,
  :root.theme-xeno .hyperframe__halo { animation: none !important; }
}

/* -- Mobile/touch — keep the heavy effects from crushing perf -- */
@media (max-width: 768px) {
  :root.theme-xeno body::before { background-size: 160px 160px; opacity: 0.25; }
  :root.theme-xeno body::after { display: none; }
  :root.theme-xeno #page::before { display: none; }
  :root.theme-xeno #fh5co-header::before,
  :root.theme-xeno #fh5co-header::after,
  :root.theme-xeno #fh5co-header .overlay::before,
  :root.theme-xeno #fh5co-header .overlay::after { width: 32px; height: 32px; }
}

/* -- Xeno cursor: red scope-reticle SVG (desktop only, hotspot at 16,16).
      Interactive elements keep their pointer/text cursors. -- */
:root.theme-xeno body {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='12' fill='none' stroke='%23ff1840' stroke-width='1.5' stroke-opacity='0.85'/><circle cx='16' cy='16' r='1.5' fill='%23ff1840'/><line x1='16' y1='4' x2='16' y2='10' stroke='%23ff1840' stroke-width='1.5'/><line x1='16' y1='22' x2='16' y2='28' stroke='%23ff1840' stroke-width='1.5'/><line x1='4' y1='16' x2='10' y2='16' stroke='%23ff1840' stroke-width='1.5'/><line x1='22' y1='16' x2='28' y2='16' stroke='%23ff1840' stroke-width='1.5'/></svg>") 16 16, crosshair;
}
:root.theme-xeno a,
:root.theme-xeno button,
:root.theme-xeno [role="button"],
:root.theme-xeno [role="menuitemradio"],
:root.theme-xeno summary { cursor: pointer; }
:root.theme-xeno input,
:root.theme-xeno textarea,
:root.theme-xeno select { cursor: text; }
@media (hover: none) {
  :root.theme-xeno body { cursor: auto; }
}

/* =========================================================================
   CRT SKIN — old phosphor green-on-black monitor. Heavy horizontal scanlines,
   subtle vignette darkening for a CRT-curvature illusion, sharp corners on
   every panel, monochrome phosphor glow on text.
   ========================================================================= */
:root.theme-crt {
  background: #000800;
}
:root.theme-crt body {
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0, 60, 0, 0.35), transparent 80%),
    radial-gradient(circle at 50% 50%, #001500 0%, #000400 90%) !important;
  color: #aaffaa !important;
}
/* Heavy horizontal scanlines — fixed overlay, multiply blend for that "CRT lines" feel */
:root.theme-crt body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 2px,
    rgba(0, 0, 0, 0.28) 3px);
  mix-blend-mode: multiply;
  opacity: 0.7;
}
/* Soft vignette — corners darker to simulate CRT screen curvature */
:root.theme-crt body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
}
/* Sharp corners everywhere — CRT monitors had pixel-sharp UIs */
:root.theme-crt .hyperframe,
:root.theme-crt .proj-card,
:root.theme-crt .skill-card,
:root.theme-crt .exp-card,
:root.theme-crt .case-studies,
:root.theme-crt .cta-card,
:root.theme-crt .px-card,
:root.theme-crt .stack-group,
:root.theme-crt .hero-cta__primary,
:root.theme-crt .hero-cta__secondary,
:root.theme-crt .btn,
:root.theme-crt .cs-btn,
:root.theme-crt .exp-chip,
:root.theme-crt .tech-chip,
:root.theme-crt .skill-tier,
:root.theme-crt .theme-picker__menu,
:root.theme-crt .terminal-tag,
:root.theme-crt .case-status--live,
:root.theme-crt .status-badge { border-radius: 0 !important; }

/* Phosphor green glow on text — applied to common text containers */
:root.theme-crt #fh5co-header h1 span,
:root.theme-crt #fh5co-header h3,
:root.theme-crt section h2,
:root.theme-crt .fh5co-heading h2,
:root.theme-crt .terminal-tag,
:root.theme-crt .case-name--link,
:root.theme-crt .cs-meta__v,
:root.theme-crt .hero-stats .stat strong {
  text-shadow: 0 0 6px rgba(51, 255, 51, 0.55), 0 0 14px rgba(51, 255, 51, 0.22) !important;
}
/* Subtle chromatic-aberration h1 effect — old CRT signal artifact */
:root.theme-crt #fh5co-header h1 span {
  text-shadow:
    -1px 0 rgba(255, 80, 80, 0.45),
    1px 0 rgba(80, 200, 255, 0.4),
    0 0 14px rgba(51, 255, 51, 0.7) !important;
}

/* Faint CRT screen flicker — every ~6s the screen dims by 4% for one frame */
:root.theme-crt #page {
  animation: crt-flicker 6s steps(48) infinite;
}
@keyframes crt-flicker {
  0%, 95%, 100% { opacity: 1; }
  97%           { opacity: 0.96; }
  98%           { opacity: 0.99; }
}

/* Suppress the cyber hero background — let the CRT phosphor wash show through */
:root.theme-crt #fh5co-header {
  background: linear-gradient(180deg, #001500 0%, #000800 100%) !important;
  background-image: none !important;
}
/* Re-tint the tech-grid green */
:root.theme-crt .tech-grid {
  background-image:
    linear-gradient(rgba(51, 255, 51, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 255, 51, 0.10) 1px, transparent 1px) !important;
  opacity: 0.6;
}
/* Cyber scanline gets replaced by CRT phosphor pulse */
:root.theme-crt .scanline { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  :root.theme-crt #page { animation: none; }
  :root.theme-crt body::before { opacity: 0.4; } /* lighter scanlines under reduced motion */
}

/* ---------- Nav theme picker (popover) ---------- */
.theme-picker { position: relative; display: inline-block; }
.theme-picker__trigger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.18s;
  line-height: 1;
}
.theme-picker__trigger:hover,
.theme-picker__trigger[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}
.theme-picker__trigger .theme-toggle__icon {
  font-size: 14px;
  line-height: 1;
}
/* trigger icons cross-fade like the legacy theme-toggle: moon shown in dark, sun in light */
.theme-picker__trigger .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-picker__trigger .theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-picker__trigger .theme-toggle__icon--sun  { display: inline; }

.theme-picker__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.08);
  z-index: 1100;
  font-family: 'JetBrains Mono', monospace;
}
.theme-picker__menu[hidden] { display: none; }
.theme-picker__group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.theme-picker__group + .theme-picker__group {
  border-top: 1px dashed rgba(0, 229, 255, 0.14);
  margin-top: 2px;
}
.theme-picker__label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  flex: 0 0 56px;
}
.theme-picker__mode {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(230, 243, 255, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  transition: 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.theme-picker__mode:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-picker__mode.is-on {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.45);
}
.theme-picker__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  transition: 0.18s;
  position: relative;
}
.theme-picker__dot:hover { transform: scale(1.18); }
.theme-picker__dot.is-on { border-color: #fff; box-shadow: 0 0 8px currentColor; transform: scale(1.18); }
.theme-picker__dot[data-palette="cyber"]  { background: #00e5ff; color: #00e5ff; }
.theme-picker__dot[data-palette="matrix"] { background: #00ff7c; color: #00ff7c; }
.theme-picker__dot[data-palette="sunset"] { background: #ff2bd6; color: #ff2bd6; }
.theme-picker__dot[data-palette="xeno"]   { background: #ff1840; color: #ff1840; }
.theme-picker__dot[data-palette="crt"]    { background: #33ff33; color: #33ff33; }
.theme-picker__dot[data-palette="arcade"] { background: #ffcc00; color: #ffcc00; }
.theme-picker__dot[data-palette="xeno"]::after {
  content: 'NEW';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 1.2px;
  color: #ff1840;
  background: rgba(8, 12, 24, 0.95);
  border: 1px solid rgba(255, 24, 64, 0.55);
  border-radius: 2px;
  padding: 2px 4px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(255, 24, 64, 0.6);
  transition: opacity 0.18s;
}
/* When previewing xeno, hide the NEW badge so it doesn't collide with the preview card */
.theme-picker__dot[data-palette="xeno"]:hover::after { opacity: 0; }

/* -- Animated theme preview tooltips — pop above each dot on hover -- */
.theme-picker__preview {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 148px;
  height: 86px;
  border-radius: 6px;
  padding: 9px 11px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1200;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: lowercase;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-picker__dot:hover > .theme-picker__preview,
.theme-picker__dot:focus-visible > .theme-picker__preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  .theme-picker__preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-picker__preview { transition: opacity 0.18s, visibility 0.18s; transform: translateX(-50%) translateY(0); }
}
.theme-picker__preview-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.theme-picker__preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.theme-picker__preview-bar {
  height: 14px;
  border-radius: 3px;
  margin-top: 2px;
}
.theme-picker__preview-text {
  margin-top: auto;
  text-align: right;
  opacity: 0.7;
  font-size: 8.5px;
  letter-spacing: 1.4px;
}

/* Per-theme preview chrome — each tile is a tiny mockup of that theme's UI */
.theme-picker__preview--cyber {
  background: linear-gradient(180deg, #0b1226, #070a18);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 229, 255, 0.22);
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
}
.theme-picker__preview--cyber .theme-picker__preview-dots i:nth-child(1) { background: #ff5f57; }
.theme-picker__preview--cyber .theme-picker__preview-dots i:nth-child(2) { background: #febc2e; }
.theme-picker__preview--cyber .theme-picker__preview-dots i:nth-child(3) { background: #28c840; }
.theme-picker__preview--cyber .theme-picker__preview-bar {
  background: linear-gradient(90deg, #00e5ff, transparent 75%);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.theme-picker__preview--matrix {
  background: linear-gradient(180deg, #001a0c, #000a05);
  border: 1px solid rgba(0, 255, 124, 0.5);
  color: #00ff7c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 255, 124, 0.22);
  text-shadow: 0 0 4px rgba(0, 255, 124, 0.5);
}
.theme-picker__preview--matrix .theme-picker__preview-dots i { background: #00ff7c; }
.theme-picker__preview--matrix .theme-picker__preview-dots i:nth-child(2) { opacity: 0.65; }
.theme-picker__preview--matrix .theme-picker__preview-dots i:nth-child(3) { opacity: 0.4; }
.theme-picker__preview--matrix .theme-picker__preview-bar {
  background: linear-gradient(90deg, #00ff7c, transparent 70%);
  box-shadow: 0 0 6px rgba(0, 255, 124, 0.4);
}

.theme-picker__preview--sunset {
  background: linear-gradient(180deg, #1f0820, #0a0010);
  border: 1px solid rgba(255, 43, 214, 0.5);
  color: #ff2bd6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 43, 214, 0.25);
  text-shadow: 0 0 4px rgba(255, 43, 214, 0.5);
}
.theme-picker__preview--sunset .theme-picker__preview-dots i:nth-child(1) { background: #ff2bd6; }
.theme-picker__preview--sunset .theme-picker__preview-dots i:nth-child(2) { background: #ffaa00; }
.theme-picker__preview--sunset .theme-picker__preview-dots i:nth-child(3) { background: #ff2bd6; opacity: 0.55; }
.theme-picker__preview--sunset .theme-picker__preview-bar {
  background: linear-gradient(90deg, #ff2bd6, #ffaa00);
  box-shadow: 0 0 6px rgba(255, 43, 214, 0.4);
}

.theme-picker__preview--xeno {
  background: linear-gradient(180deg, #16000a, #02000a);
  border: 1px solid rgba(255, 24, 64, 0.6);
  color: #ff1840;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 24, 64, 0.3);
  text-shadow: 0 0 4px rgba(255, 24, 64, 0.6);
}
/* Xeno: diamond glyphs instead of round dots */
.theme-picker__preview--xeno .theme-picker__preview-dots i {
  border-radius: 0;
  transform: rotate(45deg);
  width: 5px;
  height: 5px;
}
.theme-picker__preview--xeno .theme-picker__preview-dots i:nth-child(1) { background: #ff1840; }
.theme-picker__preview--xeno .theme-picker__preview-dots i:nth-child(2) { background: #c050ff; }
.theme-picker__preview--xeno .theme-picker__preview-dots i:nth-child(3) { background: #00ff85; }
.theme-picker__preview--xeno .theme-picker__preview-bar {
  background: linear-gradient(90deg, #ff1840, #c050ff);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0 50%);
  box-shadow: 0 0 6px rgba(255, 24, 64, 0.4);
  border-radius: 0;
}
/* Xeno: scope-reticle corner accents */
.theme-picker__preview--xeno::before,
.theme-picker__preview--xeno::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 24, 64, 0.7);
  pointer-events: none;
}
.theme-picker__preview--xeno::before {
  top: 3px;
  left: 3px;
  border-right: 0;
  border-bottom: 0;
}
.theme-picker__preview--xeno::after {
  bottom: 3px;
  right: 3px;
  border-left: 0;
  border-top: 0;
}

.theme-picker__preview--crt {
  background: linear-gradient(180deg, #001500, #000400);
  border: 1px solid rgba(51, 255, 51, 0.55);
  color: #33ff33;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 14px rgba(51, 255, 51, 0.3);
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
  border-radius: 0; /* sharp corners — on-brand */
  position: relative;
  overflow: hidden;
}
.theme-picker__preview--crt .theme-picker__preview-dots i { background: #33ff33; }
.theme-picker__preview--crt .theme-picker__preview-dots i:nth-child(2) { opacity: 0.65; }
.theme-picker__preview--crt .theme-picker__preview-dots i:nth-child(3) { opacity: 0.4; }
.theme-picker__preview--crt .theme-picker__preview-bar {
  background: linear-gradient(90deg, #33ff33, transparent 75%);
  box-shadow: 0 0 6px rgba(51, 255, 51, 0.5);
  border-radius: 0;
}
/* Heavy scanline overlay inside the preview to convey the CRT vibe */
.theme-picker__preview--crt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 1px,
    rgba(0,0,0,0.35) 1px,
    rgba(0,0,0,0.35) 2px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Arcade preview — pixel cabinet: gold chrome, hard shadow, no glow blur */
.theme-picker__preview--arcade {
  background: linear-gradient(180deg, #1a0b3a, #0d0221);
  border: 2px solid rgba(255, 204, 0, 0.6);
  color: #ffcc00;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  border-radius: 0; /* pixel corners — on-brand */
}
.theme-picker__preview--arcade .theme-picker__preview-dots i:nth-child(1) { background: #ff3864; }
.theme-picker__preview--arcade .theme-picker__preview-dots i:nth-child(2) { background: #ffcc00; }
.theme-picker__preview--arcade .theme-picker__preview-dots i:nth-child(3) { background: #00a8ff; }
.theme-picker__preview--arcade .theme-picker__preview-dots i { border-radius: 0; }
.theme-picker__preview--arcade .theme-picker__preview-bar {
  background: repeating-linear-gradient(90deg, #ffcc00 0 6px, #c79a00 6px 8px);
  border-radius: 0;
}

/* Edge-flip: rightmost dots' previews would overflow the popover right edge —
   anchor them to the right of the dot row instead of centered. */
.theme-picker__dot:nth-last-of-type(1) > .theme-picker__preview,
.theme-picker__dot:nth-last-of-type(2) > .theme-picker__preview {
  left: auto;
  right: -6px;
  transform: translateY(6px);
}
.theme-picker__dot:nth-last-of-type(1):hover > .theme-picker__preview,
.theme-picker__dot:nth-last-of-type(1):focus-visible > .theme-picker__preview,
.theme-picker__dot:nth-last-of-type(2):hover > .theme-picker__preview,
.theme-picker__dot:nth-last-of-type(2):focus-visible > .theme-picker__preview {
  transform: translateY(0);
}
/* Same for leftmost (mirror) */
.theme-picker__dot:nth-of-type(1) > .theme-picker__preview {
  left: -6px;
  transform: translateY(6px);
}
.theme-picker__dot:nth-of-type(1):hover > .theme-picker__preview,
.theme-picker__dot:nth-of-type(1):focus-visible > .theme-picker__preview {
  transform: translateY(0);
}
/* Light-theme overrides for the picker menu */
:root[data-theme="light"] .theme-picker__menu {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border-color: rgba(10, 30, 60, 0.18) !important;
  box-shadow: 0 12px 28px rgba(10, 30, 60, 0.18) !important;
}
:root[data-theme="light"] .theme-picker__label { color: rgba(10, 30, 60, 0.6) !important; }
:root[data-theme="light"] .theme-picker__mode {
  border-color: rgba(10, 30, 60, 0.18) !important;
  color: rgba(10, 30, 60, 0.7) !important;
}
:root[data-theme="light"] .theme-picker__mode.is-on {
  background: rgba(0, 122, 144, 0.08) !important;
  color: #00667a !important;
  border-color: #00667a !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .theme-picker__trigger {
  color: #00667a !important;
  border-color: rgba(10, 30, 60, 0.18) !important;
}
:root[data-theme="light"] .theme-picker__trigger:hover,
:root[data-theme="light"] .theme-picker__trigger[aria-expanded="true"] {
  background: rgba(0, 122, 144, 0.06) !important;
  border-color: #00667a !important;
}
@media (max-width: 640px) {
  .theme-picker__menu { right: -10px; min-width: 200px; }
}

/* HUD now: rotating status row */
.hud__now {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed color-mix(in srgb, var(--cyan) 18%, transparent);
  min-height: 16px;
}
.hud__now-label {
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 4px;
}
.hud__now-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}
.hud__now-val {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: none;
  text-align: right;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.4); opacity: 1; }
}

/* HUD interactive: allow theme-pick clicks */
.hud { pointer-events: none; }
.hud .theme-pick { pointer-events: auto; }

/* ---------- Tech tooltip system ---------- */
.tech-tip {
  position: fixed;
  z-index: 10005;
  background: rgba(5, 8, 20, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  line-height: 1.5;
  color: #e6f3ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 229, 255, 0.25);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(0.96);
  transition: opacity 0.14s, transform 0.14s;
  pointer-events: none;
  white-space: normal;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  text-align: center;
}
.tech-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(5, 8, 20, 0.95);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.tech-tip.is-show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 12px)) scale(1);
}
.tech-tip__key {
  color: var(--cyan);
  margin-right: 6px;
}

/* =======================================================
 *  Resume — single-rail card timeline
 * ======================================================= */
#fh5co-resume .fh5co-heading { margin-bottom: 2.5em; }

.exp-group {
  position: relative;
  padding: 0 0 12px 36px;
  margin-bottom: 28px;
}
.exp-group::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 36px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--brand) 100%);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  opacity: 0.55;
}
.exp-group__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--cyan-dim);
  text-transform: lowercase;
  margin: 0 0 22px -36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-group__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.exp-group__count {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1.5px;
}

.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exp-item {
  position: relative;
  margin-bottom: 28px;
}
.exp-item:last-child { margin-bottom: 0; }
.exp-item__dot {
  position: absolute;
  left: -29px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12), 0 0 12px var(--cyan);
  transition: 0.3s;
  z-index: 2;
}
.exp-item__dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.exp-item__dot--edu {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 144, 0, 0.12), 0 0 12px var(--brand);
}
.exp-item__dot--edu::after {
  background: var(--brand);
  box-shadow: 0 0 6px var(--brand);
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.7); opacity: 0.6; }
}
.exp-item:hover .exp-item__dot {
  transform: scale(1.18);
  background: var(--cyan);
}

/* Card */
.exp-card {
  position: relative;
  background: linear-gradient(180deg, #0c1430 0%, #0a1024 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: 0.3s;
}
.exp-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 36px color-mix(in srgb, var(--cyan) 16%, transparent),
              0 0 0 1px color-mix(in srgb, var(--cyan) 25%, transparent);
  transform: translateY(-2px);
}
.exp-card__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #0d1430 0%, #0a1024 100%);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
}
.exp-card__dots {
  display: inline-flex;
  gap: 6px;
}
.exp-card__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.exp-card__dots i:nth-child(1) { background: #ff5f57; }
.exp-card__dots i:nth-child(2) { background: #febc2e; }
.exp-card__dots i:nth-child(3) { background: #28c840; }
.exp-card__path {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 1px;
  margin-left: 8px;
}
.exp-card__path .tab-active {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.exp-card__period {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(255, 144, 0, 0.08);
  border: 1px solid rgba(255, 144, 0, 0.35);
  padding: 3px 8px;
  border-radius: 3px;
}
.exp-card__body {
  padding: 18px 22px 20px;
}
.exp-card__role {
  margin: 0 0 4px;
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 1px;
  color: #fff !important;
  line-height: 1.35;
}
.exp-card__role .exp-card__sub {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cyan-dim);
  margin-left: 4px;
  font-weight: 400;
  text-transform: none;
}
.exp-card__company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--cyan-dim);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.exp-card__co { color: var(--cyan); }
.exp-card__loc { color: rgba(255, 255, 255, 0.45); }
.exp-card__summary {
  color: rgba(230, 243, 255, 0.85);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.exp-card__bullets {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.exp-card__bullets li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: rgba(230, 243, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.65;
}
.exp-card__bullets li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.6;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.exp-card__bullets strong { color: var(--cyan); font-weight: 500; }
.exp-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 229, 255, 0.12);
}
.exp-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line);
  color: rgba(230, 243, 255, 0.8);
  padding: 4px 9px;
  border-radius: 3px;
  transition: 0.2s;
}
.exp-chip:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--line-strong);
  color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}
.exp-chip--ai {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.12), rgba(255, 43, 214, 0.1));
  border-color: rgba(255, 144, 0, 0.4);
  color: #ffb352;
}
.exp-card--edu .exp-card__period {
  color: var(--brand);
}

/* Resume background: dark cyber */
#fh5co-resume {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%) !important;
  position: relative;
}
#fh5co-resume:before {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px) !important;
  background-size: 60px 60px !important;
  opacity: 0.35;
}
#fh5co-resume .fh5co-heading h2 { color: #fff !important; }

@media (max-width: 768px) {
  .exp-group { padding-left: 28px; }
  .exp-group::before { left: 10px; }
  .exp-item__dot { left: -25px; width: 14px; height: 14px; }
  .exp-group__label { margin-left: -28px; font-size: 11px; }
  .exp-card__chrome { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .exp-card__period { margin-left: 0; }
  .exp-card__body { padding: 16px 16px 18px; }
  .exp-card__role { font-size: 16px !important; }
}

/* =======================================================
 *  Skills — categorized cards with animated bars
 * ======================================================= */
.skills-intro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(0, 229, 255, 0.7);
  letter-spacing: 0.5px;
  margin: -10px 0 36px;
}
.skill-grid {
  margin-bottom: 1.5em;
}
.skill-grid > [class*="col-"] {
  margin-bottom: 22px;
}
.skill-card {
  background: linear-gradient(180deg, #0c1430 0%, #0a1024 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.skill-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--cyan) 18%, transparent),
              0 0 0 1px color-mix(in srgb, var(--cyan) 25%, transparent);
  transform: translateY(-3px);
}
.skill-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.18);
}
.skill-card__icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 3px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.skill-card__title {
  margin: 0 !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 14px !important;
  letter-spacing: 2px;
  color: #fff !important;
  text-transform: uppercase;
  flex: 1;
}
.skill-card__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--cyan-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 3px;
}
.skill-card__list {
  list-style: none;
  margin: 0;
  padding: 14px 18px 16px;
}
.skill-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.08);
}
.skill-card__list li:last-child { border-bottom: 0; }
.skill-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e6f3ff;
  letter-spacing: 0.3px;
}
/* Proficiency tier — replaces the old self-assessed % bars */
.skill-tier {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
  transition: 0.2s;
}
/* Subtle lift + glow on the surrounding row's hover — non-interactive
   chips, but reading should feel alive when the cursor crosses a skill. */
.skill-card__list li:hover .skill-tier {
  transform: translateX(-2px);
}
.skill-card__list li:hover .skill-tier--primary {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.skill-card__list li:hover .skill-tier--strong {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
}
.skill-card__list li:hover .skill-tier--working {
  color: rgba(230, 243, 255, 0.75);
  border-color: rgba(230, 243, 255, 0.32);
}
.skill-card__list li:hover .skill-tier--brand {
  background: rgba(255, 144, 0, 0.14);
  border-color: var(--brand);
  box-shadow: 0 0 10px rgba(255, 144, 0, 0.35);
}
.skill-card__list li:hover .skill-tier--ai {
  background: rgba(255, 43, 214, 0.12);
  border-color: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.35);
}
/* Subtle bg highlight on the row itself */
.skill-card__list li {
  transition: background 0.2s, color 0.2s;
  margin: 0 -4px;
  padding-left: 4px !important;
  padding-right: 4px !important;
  border-radius: 3px;
}
.skill-card__list li:hover {
  background: rgba(0, 229, 255, 0.04);
}
.skill-tier--primary {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.45);
}
.skill-tier--strong {
  color: var(--cyan-dim);
  border-color: rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.03);
}
.skill-tier--working {
  color: rgba(230, 243, 255, 0.55);
  border-color: rgba(230, 243, 255, 0.18);
  background: transparent;
}
.skill-tier--brand {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--brand) 40%, transparent);
}
.skill-tier--ai {
  color: var(--magenta);
  border-color: color-mix(in srgb, var(--magenta) 40%, transparent);
  background: color-mix(in srgb, var(--magenta) 5%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--magenta) 40%, transparent);
}
/* Inline tier legend chips in the intro paragraph */
.skill-tier-key {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  padding: 1px 6px;
  border: 1px solid;
  border-radius: 3px;
  vertical-align: 1px;
}
.skill-tier-key--primary { color: var(--cyan); border-color: rgba(0, 229, 255, 0.45); }
.skill-tier-key--strong  { color: var(--cyan-dim); border-color: rgba(0, 229, 255, 0.22); }
.skill-tier-key--working { color: rgba(230, 243, 255, 0.55); border-color: rgba(230, 243, 255, 0.18); }

/* =======================================================
 *  Stack — grouped tool badges
 * ======================================================= */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 0 auto 24px;
  max-width: 1000px;
}
.stack-group {
  background: rgba(10, 16, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 12px;
  transition: 0.25s;
}
.stack-group:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--cyan) 14%, transparent);
}
.stack-group__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan-dim);
  text-transform: lowercase;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.15);
}
.stack-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Skills section bg → dark cyber */
#fh5co-skills {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%) !important;
}
#fh5co-skills::before { opacity: 0.4; }
#fh5co-skills .fh5co-heading h2 { color: #fff !important; }

@media (max-width: 768px) {
  .skill-tier { font-size: 9.5px; padding: 2px 7px; letter-spacing: 1.6px; }
}

/* =======================================================
 *  About — two-column intro + profile.config
 * ======================================================= */
.about-intro {
  align-items: stretch;
  margin-bottom: 26px;
}
.about-intro > [class*="col-"] {
  display: flex;
}
.about-intro .code-card {
  margin: 0;
  width: 100%;
  max-width: none;
  flex: 1;
}
.about-panel {
  width: 100%;
  background: linear-gradient(180deg, #0c1430 0%, #0a1024 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.about-panel__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--cyan-dim);
  margin-bottom: 8px;
  text-transform: lowercase;
}
.about-panel__title {
  font-family: 'Orbitron', monospace !important;
  font-size: 18px !important;
  letter-spacing: 2px;
  color: #fff !important;
  margin: 0 0 14px;
  line-height: 1.4;
}
.about-panel__lead,
.about-panel p {
  color: rgba(230, 243, 255, 0.85);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-panel strong {
  color: var(--cyan);
  font-weight: 500;
}
.about-pillars {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0;
}
.about-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: rgba(230, 243, 255, 0.78);
  letter-spacing: 0.3px;
}
.about-pillars__k {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  flex-shrink: 0;
  width: 14px;
}
.about-panel__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}
.btn.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cyan) !important;
  padding: 8px 18px !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: none;
  transition: 0.22s;
}
.btn.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ---------- profile.config card ---------- */
.profile-config {
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.profile-config__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #0d1430 0%, #0a1024 100%);
  border-bottom: 1px solid var(--line);
}
.profile-config__dots {
  display: inline-flex;
  gap: 6px;
}
.profile-config__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.profile-config__dots i:nth-child(1) { background: #ff5f57; }
.profile-config__dots i:nth-child(2) { background: #febc2e; }
.profile-config__dots i:nth-child(3) { background: #28c840; }
.profile-config__path {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 6px;
}
.profile-config__path .tab-active {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.profile-config__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #28c840;
  text-transform: uppercase;
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.35);
  padding: 3px 8px;
  border-radius: 3px;
}
.profile-config__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
  animation: pulse 1.4s ease-in-out infinite;
}
.profile-config__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cfg-col {
  padding: 18px 22px;
}
.cfg-col + .cfg-col {
  border-left: 1px dashed rgba(0, 229, 255, 0.15);
}
.cfg-row {
  display: grid;
  grid-template-columns: 110px 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}
.cfg-key {
  color: #ff79c6;
  letter-spacing: 0.4px;
}
.cfg-op { color: rgba(255, 255, 255, 0.5); }
.cfg-val { color: rgba(230, 243, 255, 0.85); }
.cfg-val--str { color: #f1fa8c; }
.cfg-val--arr { color: rgba(255, 255, 255, 0.7); }
.cfg-val--arr .cfg-val--str { color: #f1fa8c; }
.cfg-link {
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.18s;
}
.cfg-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.cfg-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.18s;
}
.cfg-copy:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 8px var(--cyan);
}
.cfg-copy.is-done {
  background: rgba(40, 200, 64, 0.15);
  border-color: rgba(40, 200, 64, 0.55);
  color: #28c840;
}
.cfg-socials {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cfg-socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 13px;
  transition: 0.22s;
  text-decoration: none;
}
.cfg-socials a:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateY(-2px);
}

/* About background: keep light-cyber but tighten */
#fh5co-about {
  background:
    radial-gradient(ellipse at top right, rgba(0, 229, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255, 144, 0, 0.05), transparent 60%),
    var(--bg-dark) !important;
  position: relative;
}
#fh5co-about::before { opacity: 0.25; }
#fh5co-about .fh5co-heading h2 { color: #fff !important; }

@media (max-width: 992px) {
  .about-intro > [class*="col-"] {
    display: block;
    margin-bottom: 18px;
  }
  .profile-config__body { grid-template-columns: 1fr; }
  .cfg-col + .cfg-col { border-left: 0; border-top: 1px dashed rgba(0, 229, 255, 0.15); }
}
@media (max-width: 768px) {
  .cfg-row {
    grid-template-columns: 86px 12px 1fr;
    grid-template-rows: auto auto;
    font-size: 12px;
  }
  .cfg-copy { grid-column: 3; justify-self: start; }
}

/* =======================================================
 *  Services — numbered engineering cards
 * ======================================================= */
.services-intro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: rgba(0, 229, 255, 0.78);
  letter-spacing: 0.3px;
  line-height: 1.7;
  margin: -10px auto 36px;
  max-width: 760px;
}
.services-grid > [class*="col-"] {
  margin-bottom: 22px;
  display: flex;
}
.svc-card {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #0c1430 0%, #0a1024 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.svc-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 40px rgba(0, 229, 255, 0.2), 0 0 0 1px rgba(0, 229, 255, 0.28);
  transform: translateY(-4px);
}
.svc-card:hover::before { opacity: 1; }

.svc-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.15);
}
.svc-card__num {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 38px;
}
.svc-card__heading { flex: 1; }
.svc-card__cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: var(--brand);
  text-transform: lowercase;
  margin-bottom: 4px;
  opacity: 0.85;
}
.svc-card__title {
  margin: 0 !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 15px !important;
  letter-spacing: 1.2px;
  line-height: 1.4;
  color: #fff !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.svc-card__badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9px;
  letter-spacing: 1.5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 500;
}
.svc-card__badge--ai {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.18), rgba(255, 43, 214, 0.15));
  border-color: rgba(255, 144, 0, 0.5);
  color: #ffb352;
  text-shadow: 0 0 6px rgba(255, 144, 0, 0.4);
}
.svc-card__lead {
  font-size: 13.5px;
  color: rgba(230, 243, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 12px;
}
.svc-card__deliverables {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  flex: 1;
}
.svc-card__deliverables li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230, 243, 255, 0.75);
}
.svc-card__deliverables li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--cyan);
  font-size: 11px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.svc-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 229, 255, 0.12);
}
.svc-card--ai {
  border-color: rgba(255, 144, 0, 0.28);
  background: linear-gradient(180deg, #14102b 0%, #0a0824 100%);
}
.svc-card--ai .svc-card__num {
  color: var(--brand);
  text-shadow: 0 0 12px rgba(255, 144, 0, 0.55);
}
.svc-card--ai:hover {
  border-color: var(--brand);
  box-shadow: 0 14px 40px rgba(255, 144, 0, 0.22), 0 0 0 1px rgba(255, 144, 0, 0.35);
}
.svc-card--ai::before {
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

/* Services CTA footer */
.services-cta { margin-top: 8px; }
.services-foot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(10, 16, 36, 0.7);
  border: 1px dashed var(--line-strong);
  padding: 14px 22px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(230, 243, 255, 0.78);
  margin: 0;
  justify-content: center;
}
.services-foot__prompt {
  color: var(--brand);
  font-weight: 700;
}
.services-foot__txt { letter-spacing: 0.2px; }

/* Remove old feature-left visual chrome since cards now own the design.
   The new .svc-card sits inside the same .services-grid row. */

#fh5co-features::before { opacity: 0.5; }

@media (max-width: 992px) {
  .svc-card__num { font-size: 22px; min-width: 32px; }
  .svc-card__title { font-size: 14px !important; }
}
@media (max-width: 480px) {
  .svc-card { padding: 18px 16px 16px; }
  .svc-card__head { gap: 10px; }
}

/* =======================================================
 *  Work — project cards
 * ======================================================= */
.work-intro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: rgba(0, 229, 255, 0.78);
  letter-spacing: 0.3px;
  margin: -8px auto 30px;
  max-width: 720px;
}
.work-grid {
  display: flex;
  flex-wrap: wrap;
}
.work-grid > [class*="col-"] {
  margin-bottom: 22px;
  display: flex;
}
.proj-card {
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #0c1430 0%, #0a1024 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--cyan) 20%, transparent),
              0 0 0 1px color-mix(in srgb, var(--cyan) 28%, transparent);
  transform: translateY(-4px);
}
.proj-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.proj-card__link:hover { text-decoration: none; }
.proj-card__thumb {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #0a1024;
  overflow: hidden;
}
.proj-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(10, 16, 36, 0.65) 100%),
    linear-gradient(115deg, transparent 30%, rgba(0, 229, 255, 0.18) 50%, transparent 70%);
  background-size: 100%, 200% 100%;
  background-position: 0 0, -100% 0;
  background-repeat: no-repeat;
  transition: background-position 0.7s ease;
  pointer-events: none;
}
.proj-card:hover .proj-card__thumb::after {
  background-position: 0 0, 100% 0;
}
.proj-card__status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  background: rgba(5, 8, 20, 0.92);
  /* Hex clip — matches the .tool-badge.tool-ai treatment from iter 9.
     border removed because clip-path would slice the rectangle border
     into a visible artifact; the colored variant rules below supply
     glow via text-shadow + bg tinting instead. */
  border: 0;
  color: var(--cyan);
  padding: 5px 18px;
  border-radius: 0;
  clip-path: polygon(
    11px 0,
    calc(100% - 11px) 0,
    100% 50%,
    calc(100% - 11px) 100%,
    11px 100%,
    0 50%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.proj-card__status--live {
  background: linear-gradient(90deg, rgba(40, 200, 64, 0.22), rgba(5, 8, 20, 0.92) 60%) !important;
  color: #28c840;
  text-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}
.proj-card__status--live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #28c840;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 6px #28c840;
  animation: pulse 1.4s ease-in-out infinite;
  vertical-align: 1px;
}
.proj-card__status--proto {
  background: linear-gradient(90deg, rgba(255, 144, 0, 0.22), rgba(5, 8, 20, 0.92) 60%) !important;
  color: var(--brand);
  text-shadow: 0 0 6px rgba(255, 144, 0, 0.5);
}
.proj-card__status--archive {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(5, 8, 20, 0.92) 60%) !important;
  color: rgba(255, 255, 255, 0.65);
}
.proj-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-card__path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.proj-card__path .tab-active {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.proj-card__title {
  margin: 0 0 6px !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 15px !important;
  letter-spacing: 1px;
  color: #fff !important;
  line-height: 1.35;
}
.proj-card__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--cyan-dim);
  margin: 0 0 10px;
}
.proj-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  flex: 1;
  align-content: flex-start;
}
.proj-card__cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cyan);
  border-top: 1px dashed rgba(0, 229, 255, 0.18);
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.proj-card__arrow {
  transition: transform 0.25s;
}
.proj-card:hover .proj-card__arrow { transform: translateX(4px); color: var(--brand); }
.proj-card:hover .proj-card__cta { color: #fff; }

/* Override old tech-tags overlay since we now show stack inline */
.work .tech-tags { display: none; }

/* Code-themed thumbnail (no image required) */
.proj-card__thumb--code {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 144, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1226 0%, #060914 100%);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.12) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 144, 0, 0.10), transparent 60%),
    linear-gradient(180deg, #0b1226 0%, #060914 100%);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.proj-card__thumb--code::after { display: none; }
.proj-card__codewin {
  width: 100%;
  max-width: 260px;
  background: rgba(5, 8, 20, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 229, 255, 0.15);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  transition: 0.35s;
}
.proj-card:hover .proj-card__codewin {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 229, 255, 0.3);
}
.proj-card__codewin-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  background: linear-gradient(180deg, #0d1430, #0a1024);
  border-bottom: 1px solid var(--line);
}
.proj-card__codewin-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.proj-card__codewin-bar i:nth-child(1) { background: #ff5f57; }
.proj-card__codewin-bar i:nth-child(2) { background: #febc2e; }
.proj-card__codewin-bar i:nth-child(3) { background: #28c840; }
.proj-card__codewin-tab {
  margin-left: 6px;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.proj-card__codewin-body {
  padding: 9px 11px;
  font-size: 9.5px;
  line-height: 1.55;
  color: #e6f3ff;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 480px) {
  .proj-card__codewin-body { font-size: 8.5px; }
}

/* =======================================================
 *  Case Studies (terminal ls block)
 * ======================================================= */
.case-studies {
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}
.case-studies__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #0d1430 0%, #0a1024 100%);
  border-bottom: 1px solid var(--line);
}
.case-studies__dots {
  display: inline-flex;
  gap: 6px;
}
.case-studies__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.case-studies__dots i:nth-child(1) { background: #ff5f57; }
.case-studies__dots i:nth-child(2) { background: #febc2e; }
.case-studies__dots i:nth-child(3) { background: #28c840; }
.case-studies__path {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 6px;
}
.case-studies__path .tab-active {
  color: var(--cyan);
}
.case-studies__cmd {
  margin-left: auto;
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 1px;
}
.case-studies__body {
  padding: 22px 28px 24px;
}
.case-studies__lead {
  color: rgba(230, 243, 255, 0.85);
  font-size: 14px;
  margin-bottom: 14px;
}
.case-studies__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.case-studies__list li {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(230, 243, 255, 0.85);
  border-bottom: 1px dashed rgba(0, 229, 255, 0.08);
  position: relative;
}
.case-studies__list li:last-child { border-bottom: 0; }

/* Hover-preview thumbnail: desktop only — pops the OG card next to the row.
   Keeps the text-art ls -la look intact when idle. */
.case-preview {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 280px;
  height: auto;
  aspect-ratio: 320 / 168;
  display: block;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #0a1024;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(4px);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 5;
}
.case-studies__list li:hover > .case-preview,
.case-studies__list li:focus-within > .case-preview {
  opacity: 1;
  transform: scale(1) translateY(0);
}
/* Top two rows: pop BELOW so the preview isn't clipped by the panel chrome */
.case-studies__list li:nth-child(1) > .case-preview,
.case-studies__list li:nth-child(2) > .case-preview {
  bottom: auto;
  top: calc(100% + 8px);
  transform-origin: top right;
  transform: scale(0.96) translateY(-4px);
}
.case-studies__list li:nth-child(1):hover > .case-preview,
.case-studies__list li:nth-child(1):focus-within > .case-preview,
.case-studies__list li:nth-child(2):hover > .case-preview,
.case-studies__list li:nth-child(2):focus-within > .case-preview {
  transform: scale(1) translateY(0);
}
@media (hover: none), (max-width: 768px) {
  .case-preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .case-preview { transition: none; }
}
.case-tree {
  color: var(--cyan-dim);
  letter-spacing: -1px;
}
.case-name {
  color: var(--cyan);
  font-size: 13.5px;
}
.case-tags {
  display: inline-flex;
  gap: 4px;
}
.case-status {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.case-status--wip {
  background: rgba(255, 144, 0, 0.1);
  border: 1px solid rgba(255, 144, 0, 0.4);
  color: var(--brand);
}
.case-status--planned {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}
.case-status--draft {
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.55);
  color: var(--cyan);
  text-decoration: none;
  transition: 0.22s;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}
.case-status--draft:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 12px var(--cyan);
}
.case-status--live {
  background: rgba(120, 255, 140, 0.10);
  border: 1px solid rgba(120, 255, 140, 0.55);
  color: #7cff8c;
  text-decoration: none;
  transition: 0.22s;
  text-shadow: 0 0 6px rgba(120, 255, 140, 0.35);
}
.case-status--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #7cff8c;
  box-shadow: 0 0 8px #7cff8c;
  vertical-align: middle;
  animation: case-live-pulse 1.8s ease-in-out infinite;
}
.case-status--live:hover {
  background: #7cff8c;
  color: var(--bg-dark);
  box-shadow: 0 0 12px rgba(120, 255, 140, 0.7);
}
.case-status--live:hover::before {
  background: var(--bg-dark);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
@keyframes case-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ==========================================================================
   WORK FILTER CHIPS (#fh5co-work > .work-filters)
   ========================================================================== */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 12px 8px;
}
.work-filters:empty { display: none; }

.work-filter {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: rgba(230, 243, 255, 0.7);
  cursor: pointer;
  transition: 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: lowercase;
}
.work-filter:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}
.work-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 10px;
  font-size: 10px;
  color: rgba(0, 229, 255, 0.85);
}
.work-filter.is-active {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.work-filter.is-active .work-filter__count {
  background: var(--cyan);
  color: var(--bg-deep);
  border-color: var(--cyan);
}
.work-filter:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.work-grid > .col-padding.is-hidden {
  display: none !important;
}

/* Light theme overrides for filter chips */
:root[data-theme="light"] .work-filter {
  color: rgba(10, 30, 60, 0.65) !important;
  border-color: rgba(10, 30, 60, 0.2) !important;
}
:root[data-theme="light"] .work-filter:hover {
  color: #007a90 !important;
  border-color: #007a90 !important;
  box-shadow: 0 0 10px rgba(0, 122, 144, 0.18);
}
:root[data-theme="light"] .work-filter__count {
  background: rgba(0, 122, 144, 0.08) !important;
  color: #007a90 !important;
  border-color: rgba(0, 122, 144, 0.25) !important;
}
:root[data-theme="light"] .work-filter.is-active {
  background: rgba(0, 122, 144, 0.10) !important;
  border-color: #007a90 !important;
  color: #007a90 !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .work-filter.is-active .work-filter__count {
  background: #007a90 !important;
  color: #ffffff !important;
  border-color: #007a90 !important;
}
.case-name--link {
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.18s;
}
.case-name--link:hover {
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.case-studies__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 229, 255, 0.18);
  font-size: 13px;
  color: rgba(230, 243, 255, 0.78);
}
.case-prompt {
  color: var(--brand);
  font-weight: 700;
}

/* =======================================================
 *  CTA / Let's Work Together
 * ======================================================= */
#fh5co-started {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%) !important;
  padding: 5em 0 !important;
  position: relative;
  overflow: hidden;
}
#fh5co-started .overlay { display: none; }
#fh5co-started::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
  pointer-events: none;
  opacity: 0.4;
}
#fh5co-started > .container { position: relative; z-index: 2; }

.cta-card {
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.cta-card__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #0d1430 0%, #0a1024 100%);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
}
.cta-card__dots {
  display: inline-flex;
  gap: 6px;
}
.cta-card__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cta-card__dots i:nth-child(1) { background: #ff5f57; }
.cta-card__dots i:nth-child(2) { background: #febc2e; }
.cta-card__dots i:nth-child(3) { background: #28c840; }
.cta-card__path {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 6px;
}
.cta-card__path .tab-active {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.cta-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #28c840;
  text-transform: uppercase;
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.4);
  padding: 4px 10px;
  border-radius: 3px;
}
.cta-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px #28c840;
  animation: pulse 1.4s ease-in-out infinite;
}
.cta-card__body {
  padding: 32px 38px 36px;
}
.cta-card__intro {
  text-align: center;
  margin-bottom: 22px;
}
.cta-card__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--cyan-dim);
  margin-bottom: 8px;
}
.cta-card__title {
  font-family: 'Orbitron', monospace !important;
  font-size: 32px !important;
  letter-spacing: 4px !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.3), 0 0 36px rgba(255, 144, 0, 0.15);
}
.cta-card__lead {
  color: rgba(230, 243, 255, 0.85);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}
.cta-card__lead strong { color: var(--cyan); font-weight: 500; }

/* ---- Engagement flow (what happens next) ---- */
.cta-flow {
  margin: 26px auto 18px;
  max-width: 760px;
}
.cta-flow__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--cyan-dim);
  margin: 0 0 14px;
  text-align: center;
  opacity: 0.85;
}
.cta-flow__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.cta-flow__steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.35) 12%, rgba(0,229,255,0.35) 88%, transparent 100%);
  pointer-events: none;
}
.cta-flow__step {
  position: relative;
  background: linear-gradient(180deg, #0a1024 0%, #070a18 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: 0.22s;
}
.cta-flow__step:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}
.cta-flow__num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.55);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
  position: relative;
  z-index: 2;
}
.cta-flow__step:hover .cta-flow__num {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 12px var(--cyan);
}
.cta-flow__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.cta-flow__head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.4px;
}
.cta-flow__sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  line-height: 1.45;
}

/* ---- Track toggle (Hiring vs Client) ---- */
.cta-track {
  display: inline-flex;
  margin: 6px auto 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  align-self: center;
}
.cta-card__body { display: block; }
.cta-card__body > .cta-track { display: inline-flex; }
/* center the track via wrapper */
.cta-track-wrap { display: flex; justify-content: center; }
.cta-track__tab {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: lowercase;
  transition: 0.18s;
}
.cta-track__tab:hover { color: rgba(255, 255, 255, 0.85); }
.cta-track__icon {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  transition: 0.18s;
}
.cta-track__tab.is-active {
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  color: var(--cyan);
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent);
}
.cta-track__tab.is-active .cta-track__icon {
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}
.cta-track__tab[data-cta-track="client"].is-active {
  background: rgba(120, 255, 140, 0.12);
  color: #7cff8c;
  text-shadow: 0 0 6px rgba(120, 255, 140, 0.4);
}
.cta-track__tab[data-cta-track="client"].is-active .cta-track__icon {
  color: #7cff8c;
  text-shadow: 0 0 6px #7cff8c;
}

@media (max-width: 720px) {
  .cta-flow__steps { grid-template-columns: repeat(2, 1fr); }
  .cta-flow__steps::before { display: none; }
}
@media (max-width: 420px) {
  .cta-flow__steps { grid-template-columns: 1fr; }
  .cta-track { flex-direction: column; border-radius: 8px; }
  .cta-track__tab { border-radius: 6px; justify-content: center; }
}

.cta-email {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 22px auto;
  max-width: 480px;
  font-family: 'JetBrains Mono', monospace;
}
.cta-email__icon {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}
.cta-email__addr {
  flex: 1;
  color: var(--cyan);
  font-size: 14.5px;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.cta-email__addr:hover { text-decoration: underline; color: #fff; }
.cta-email__copy {
  margin: 0;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 16, 36, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: 0.25s;
}
.cta-btn:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.18);
  transform: translateY(-2px);
  text-decoration: none;
}
.cta-btn__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  flex-shrink: 0;
  transition: 0.25s;
}
.cta-btn:hover .cta-btn__icon {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 12px var(--cyan);
}
.cta-btn__label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.cta-btn__caption {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #fff;
}
.cta-btn__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--cyan-dim);
  letter-spacing: 0.3px;
}
.cta-btn__arrow {
  color: var(--cyan);
  font-size: 16px;
  transition: transform 0.25s;
}
.cta-btn:hover .cta-btn__arrow {
  transform: translateX(4px);
  color: var(--brand);
}
.cta-btn--primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 144, 0, 0.12));
  border-color: var(--line-strong);
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.15);
}
.cta-btn--primary .cta-btn__icon {
  background: linear-gradient(135deg, var(--cyan), var(--brand));
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}
.cta-btn--cal {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.16), rgba(255, 43, 214, 0.10));
  border-color: rgba(255, 144, 0, 0.45);
  box-shadow: 0 4px 18px rgba(255, 144, 0, 0.18);
}
.cta-btn--cal .cta-btn__icon {
  background: linear-gradient(135deg, var(--brand), var(--magenta));
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255, 144, 0, 0.55);
}
.cta-btn--cal .cta-btn__caption { color: #fff; }
.cta-btn--cal:hover { box-shadow: 0 10px 28px rgba(255, 144, 0, 0.3); border-color: var(--brand); }

.cta-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px dashed rgba(0, 229, 255, 0.18);
}
.cta-meta__item {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.cta-meta__k {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}
.cta-meta__v {
  display: block;
  font-size: 12.5px;
  color: var(--cyan);
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .cta-card__body { padding: 24px 22px 26px; }
  .cta-card__title { font-size: 24px !important; letter-spacing: 3px !important; }
  .cta-actions { grid-template-columns: 1fr; }
  .cta-meta { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .case-studies__list li {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 4px;
  }
  .case-tags { grid-column: 2; }
  .case-status { grid-column: 2; justify-self: start; }
  .case-studies__body { padding: 16px 18px 20px; }
}

/* =======================================================
 *  Contact form (Netlify Forms)
 * ======================================================= */
.cta-form-wrap {
  margin-top: 8px;
  border-top: 1px dashed rgba(0, 229, 255, 0.18);
  padding-top: 18px;
}
.cta-form-wrap > summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  user-select: none;
}
.cta-form-wrap > summary::-webkit-details-marker { display: none; }
.cta-form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cyan);
  padding: 4px 0;
  transition: 0.18s;
}
.cta-form-toggle__chev {
  color: var(--brand);
  transition: transform 0.22s;
}
.cta-form-wrap[open] .cta-form-toggle__chev { transform: rotate(90deg); }
.cta-form-toggle:hover { text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent); }

.cta-form {
  margin-top: 18px;
  display: block;
}
.cta-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cta-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.cta-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cta-form__field--wide { grid-column: 1 / -1; margin-bottom: 12px; }
.cta-form__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: lowercase;
  color: var(--cyan-dim);
}
.cta-form__label::before { content: '# '; color: var(--brand); }
.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: #e6f3ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: 0.18s;
  outline: none;
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), 0 0 12px rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.04);
}
/* Invalid state — only fires AFTER the user has interacted (clicked
   submit or blurred a field), so empty fields don't flash red on first
   render. :user-invalid is the modern, well-supported spec. */
.cta-form input:user-invalid,
.cta-form textarea:user-invalid,
.cta-form select:user-invalid {
  border-color: #ff5f57 !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 87, 0.12), 0 0 10px rgba(255, 95, 87, 0.25) !important;
  background: rgba(255, 95, 87, 0.04) !important;
}
.cta-form input:user-invalid:focus,
.cta-form textarea:user-invalid:focus,
.cta-form select:user-invalid:focus {
  border-color: #ff7a72 !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 87, 0.18), 0 0 14px rgba(255, 95, 87, 0.35) !important;
}
/* Light-theme + xeno overrides — invalid red shifts to match the palette mood */
:root[data-theme="light"] .cta-form input:user-invalid,
:root[data-theme="light"] .cta-form textarea:user-invalid,
:root[data-theme="light"] .cta-form select:user-invalid {
  border-color: #c43030 !important;
  background: rgba(196, 48, 48, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(196, 48, 48, 0.12) !important;
}
.cta-form textarea {
  resize: vertical;
  min-height: 96px;
  font-family: 'JetBrains Mono', monospace;
}
.cta-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  color: #e6f3ff;
}
.cta-form select option,
.cta-form select optgroup {
  background: #0a0f1f;
  color: #e6f3ff;
  font-family: 'JetBrains Mono', monospace;
}
.cta-form select option:hover,
.cta-form select option:checked {
  background: #00e5ff;
  color: #0a0f1f;
}
.cta-form__localhost {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 144, 0, 0.08);
  border: 1px dashed var(--brand);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255, 215, 160, 0.95);
  letter-spacing: 0.2px;
  line-height: 1.55;
}
.cta-form__localhost strong { color: var(--brand); }
.cta-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.cta-form__submit {
  background: linear-gradient(135deg, var(--cyan), var(--brand));
  color: var(--bg-dark);
  border: 0;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.25);
  transition: 0.22s;
}
.cta-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4), 0 0 18px rgba(255, 144, 0, 0.3);
}
.cta-form__arrow { transition: transform 0.22s; }
.cta-form__submit:hover .cta-form__arrow { transform: translateX(4px); }
.cta-form__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}
.cta-form__success {
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.4);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 12px;
  color: #d3f6dd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.cta-form-wrap.is-sent .cta-form { display: none; }
.cta-form-wrap.is-sent .cta-form__success { display: flex; }
.cta-form__success-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #28c840;
  color: var(--bg-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 10px #28c840;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cta-form__grid { grid-template-columns: 1fr; }
}

/* Footer meta links */
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
}
.footer-meta a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.18s;
  margin: 0 4px;
}
.footer-meta a:hover {
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent);
}
.footer-meta__sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 2px;
}
.footer-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.35);
}
.footer-stamp__label {
  color: rgba(120, 255, 140, 0.55);
  margin-right: 4px;
}
.footer-stamp__val {
  color: rgba(0, 229, 255, 0.72);
}

/* =======================================================
   Footer git-log panel (recent commits, live from GitHub)
   ======================================================= */
.git-log {
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto 28px;
  max-width: 720px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
              0 0 0 1px color-mix(in srgb, var(--cyan) 8%, transparent);
  overflow: hidden;
}
.git-log__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0d1430 0%, #0a1024 100%);
  border-bottom: 1px solid var(--line);
}
.git-log__dots { display: inline-flex; gap: 6px; }
.git-log__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.git-log__dots i:nth-child(1) { background: #ff5f57; }
.git-log__dots i:nth-child(2) { background: #febc2e; }
.git-log__dots i:nth-child(3) { background: #28c840; }
.git-log__path {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  letter-spacing: 1px;
  margin-left: 6px;
}
.git-log__path .tab-active {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.git-log__cmd {
  margin-left: auto;
  color: rgba(120, 255, 140, 0.7);
  font-size: 11px;
  letter-spacing: 0.6px;
}
.git-log__list {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
}
.git-log__entry {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  color: rgba(230, 243, 255, 0.85);
}
.git-log__entry + .git-log__entry { border-top: 1px dashed color-mix(in srgb, var(--cyan) 8%, transparent); }
.git-log__sha {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.18s;
  letter-spacing: 0.5px;
}
.git-log__sha:hover { border-bottom-color: var(--cyan); text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent); }
.git-log__msg {
  color: rgba(230, 243, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.git-log__date {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.git-log__loading,
.git-log__empty,
.px-repos__loading {
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 0;
  font-size: 12px;
}
/* Live loading cursor — gives the user a rhythm cue while the GitHub API
   call is in flight (up to 5s timeout). Reuses the existing `blink` keyframe
   from style.css. Reduced-motion users see a static underscore via the
   global motion media query already in tech-fx.css. */
.git-log__loading::after,
.px-repos__loading::after {
  content: '_';
  display: inline-block;
  margin-left: 2px;
  color: var(--cyan);
  animation: blink 1s steps(2, start) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .git-log__loading::after,
  .px-repos__loading::after { animation: none; }
}
.git-log__foot {
  padding: 8px 14px 10px;
  border-top: 1px dashed rgba(0, 229, 255, 0.1);
  font-size: 11px;
  text-align: right;
}
.git-log__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.18s;
  letter-spacing: 0.5px;
}
.git-log__foot a:hover { border-bottom-color: var(--cyan); text-shadow: 0 0 6px rgba(0, 229, 255, 0.4); }

@media (max-width: 560px) {
  .git-log__entry { grid-template-columns: 72px 1fr; }
  .git-log__date { grid-column: 2; color: rgba(255, 255, 255, 0.35); font-size: 10px; }
  .git-log__chrome { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  .git-log__cmd { margin-left: 0; font-size: 10px; }
}

/* Light theme variant — match profile-config / code-card paneling */
:root[data-theme="light"] .git-log {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border-color: rgba(10, 30, 60, 0.12) !important;
  box-shadow: 0 12px 32px rgba(10, 30, 60, 0.08), 0 0 0 1px rgba(0, 122, 144, 0.08) !important;
}
:root[data-theme="light"] .git-log__chrome {
  background: linear-gradient(180deg, #f0ece2 0%, #e6e0d2 100%) !important;
  border-bottom-color: rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .git-log__path { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .git-log__path .tab-active { color: #00667a !important; border-bottom-color: #00667a !important; }
:root[data-theme="light"] .git-log__cmd { color: #1f8a3e !important; }
:root[data-theme="light"] .git-log__entry { color: #1a1f2e !important; border-top-color: rgba(10, 30, 60, 0.08) !important; }
:root[data-theme="light"] .git-log__sha { color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .git-log__sha:hover { border-bottom-color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .git-log__msg { color: #1a1f2e !important; }
:root[data-theme="light"] .git-log__date { color: rgba(10, 30, 60, 0.5) !important; }
:root[data-theme="light"] .git-log__loading,
:root[data-theme="light"] .git-log__empty { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .git-log__foot { border-top-color: rgba(0, 122, 144, 0.18) !important; }
:root[data-theme="light"] .git-log__foot a { color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .git-log__foot a:hover { border-bottom-color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .footer-stamp { color: rgba(10, 30, 60, 0.45) !important; }
:root[data-theme="light"] .footer-stamp__label { color: #1f8a3e !important; }
:root[data-theme="light"] .footer-stamp__val { color: #007a90 !important; }

/* =======================================================
 *  Live visitor stats (footer)
 * ======================================================= */
.live-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  padding: 14px 18px;
  background: rgba(10, 16, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 1.1px;
  color: rgba(230, 243, 255, 0.7);
}
.live-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-stats__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
  animation: pulse 1.4s ease-in-out infinite;
}
.live-stats__label {
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 1.6px;
}
.live-stats__sep { color: rgba(255, 255, 255, 0.25); }
.live-stats__val {
  color: var(--cyan);
  font-weight: 500;
  /* color-mix derives the glow from the active palette's --cyan, so xeno
     value text glows red, crt glows green, matrix bright-green, etc. */
  text-shadow: 0 0 6px color-mix(in srgb, var(--cyan) 40%, transparent);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  transition: color 0.25s;
}
.live-stats__val.is-bumped {
  color: var(--brand);
  text-shadow: 0 0 10px color-mix(in srgb, var(--brand) 60%, transparent);
  animation: bump 0.4s ease;
}
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@media (max-width: 640px) {
  .live-stats { gap: 14px; font-size: 10.5px; }
}

/* =======================================================
 *  Profile extras — now.json, principles.md, repos, FAQ
 * ======================================================= */
.about-extras {
  margin-top: 24px;
  align-items: stretch;
}
.about-extras > [class*="col-"] {
  display: flex;
  margin-bottom: 22px;
}
.px-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  transition: 0.3s;
}
.px-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--cyan) 18%, transparent),
              0 0 0 1px color-mix(in srgb, var(--cyan) 25%, transparent);
  transform: translateY(-2px);
}
.px-card__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #0d1430, #0a1024);
  border-bottom: 1px solid var(--line);
}
.px-card__dots {
  display: inline-flex;
  gap: 6px;
}
.px-card__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.px-card__dots i:nth-child(1) { background: #ff5f57; }
.px-card__dots i:nth-child(2) { background: #febc2e; }
.px-card__dots i:nth-child(3) { background: #28c840; }
.px-card__path {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 6px;
}
.px-card__path .tab-active {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}
.px-card__badge {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 3px;
}
.px-card__badge--brand {
  background: rgba(255, 144, 0, 0.1);
  border-color: rgba(255, 144, 0, 0.45);
  color: var(--brand);
}
.px-card__body {
  padding: 18px 22px 20px;
  flex: 1;
}

/* now.json — code block */
.px-code {
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #e6f3ff;
  white-space: pre;
  overflow-x: auto;
}

/* principles.md — numbered list */
.px-principles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.px-principles li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230, 243, 255, 0.85);
  border-bottom: 1px dashed rgba(0, 229, 255, 0.1);
}
.px-principles li:last-child { border-bottom: 0; }
.px-principles__num {
  color: var(--cyan);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
  min-width: 22px;
}

/* recent-repos — live list */
.px-repos {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.px-repos li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.1);
}
.px-repos li:last-child { border-bottom: 0; }
.px-repos__loading {
  color: var(--cyan-dim);
  font-size: 12.5px;
  font-style: italic;
}
.px-repo__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.px-repo__name {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}
.px-repo__name:hover { text-decoration: underline; color: #fff; }
.px-repo__visibility {
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  padding: 1px 6px;
  border-radius: 3px;
}
.px-repo__lang {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.px-repo__lang::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 4px var(--brand);
}
.px-repo__stars {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
}
.px-repo__stars strong { color: var(--cyan); font-weight: 500; margin-right: 2px; }
.px-repo__desc {
  font-size: 12px;
  color: rgba(230, 243, 255, 0.7);
  margin: 0 0 4px;
  line-height: 1.5;
}
.px-repo__when {
  font-size: 10.5px;
  color: var(--cyan-dim);
  letter-spacing: 0.4px;
}
.px-repos__foot {
  border-top: 1px dashed rgba(0, 229, 255, 0.18);
  padding-top: 12px;
  font-size: 12px;
  text-align: right;
}
.px-repos__foot a {
  color: var(--brand);
  text-decoration: none;
}
.px-repos__foot a:hover {
  text-shadow: 0 0 8px rgba(255, 144, 0, 0.4);
}

/* FAQ — collapsible */
.px-faq {
  list-style: none;
  margin: 0;
  padding: 0;
}
.px-faq > li {
  border-bottom: 1px dashed rgba(0, 229, 255, 0.12);
}
.px-faq > li:last-child { border-bottom: 0; }
.px-faq details > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: 0.15s;
}
.px-faq details > summary::-webkit-details-marker { display: none; }
.px-faq details > summary::before {
  content: '▸';
  color: var(--brand);
  font-size: 11px;
  transition: transform 0.22s;
  margin-top: 3px;
  flex-shrink: 0;
}
.px-faq details[open] > summary::before {
  transform: rotate(90deg);
  color: var(--cyan);
}
.px-faq__q {
  color: #e6f3ff;
  font-size: 13px;
  letter-spacing: 0.2px;
  flex: 1;
}
.px-faq__a {
  margin: 0 0 12px 22px;
  font-size: 12.5px;
  color: rgba(230, 243, 255, 0.75);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .about-extras > [class*="col-"] { margin-bottom: 16px; }
  .px-card__body { padding: 14px 16px 16px; }
  .px-code { font-size: 11px; }
}

/* =======================================================
 *  UTM-aware welcome pill
 * ======================================================= */
.utm-pill {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9995;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  background: rgba(5, 8, 20, 0.92);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--utm-accent, var(--cyan));
  border-radius: 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 229, 255, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: rgba(230, 243, 255, 0.85);
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: auto;
}
.utm-pill.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.utm-pill__emoji { font-size: 16px; line-height: 1; }
.utm-pill__txt strong {
  color: var(--utm-accent, var(--cyan));
  font-weight: 500;
  margin: 0 2px;
  text-shadow: 0 0 6px color-mix(in srgb, var(--utm-accent, var(--cyan)) 50%, transparent);
}
.utm-pill__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: 0.18s;
}
.utm-pill__close:hover { color: #ff5f57; transform: scale(1.18); }
@media (max-width: 640px) {
  .utm-pill {
    top: auto;
    bottom: 80px;
    left: 12px;
    right: 12px;
    transform: translateY(20px);
    border-radius: 8px;
    justify-content: flex-start;
  }
  .utm-pill.is-show { transform: translateY(0); }
}

/* =======================================================
 *  Interactive dev terminal (` to toggle)
 * ======================================================= */
.dev-term {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  width: min(820px, 94vw);
  height: 380px;
  max-height: 70vh;
  z-index: 10004;
  background: linear-gradient(180deg, rgba(11, 18, 38, 0.95), rgba(7, 10, 24, 0.97));
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 229, 255, 0.18);
  font-family: 'JetBrains Mono', monospace;
  color: #e6f3ff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.22s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dev-term.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dev-term__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #0d1430, #0a1024);
  border-bottom: 1px solid var(--line);
}
.dev-term__dots {
  display: inline-flex;
  gap: 6px;
}
.dev-term__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dev-term__dots i:nth-child(1) { background: #ff5f57; }
.dev-term__dots i:nth-child(2) { background: #febc2e; }
.dev-term__dots i:nth-child(3) { background: #28c840; }
.dev-term__path {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 1px;
  flex: 1;
  text-align: center;
}
.dev-term__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: 0.18s;
}
.dev-term__close:hover { color: #ff5f57; transform: scale(1.18); }
.dev-term__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 6px;
  font-size: 12.5px;
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.25);
}
.dev-term__body::-webkit-scrollbar { width: 8px; }
.dev-term__body::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.25); border-radius: 4px; }
.dev-term__line {
  color: #e6f3ff;
  white-space: pre-wrap;
  word-break: break-word;
}
.dev-term__line.dim { color: rgba(230, 243, 255, 0.5); }
.dev-term__line.err { color: #ff7a72; }
.dev-term__line a {
  color: var(--cyan);
  text-decoration: underline;
}
.dev-term__line .ok   { color: #28c840; }
.dev-term__line .err  { color: #ff7a72; }
.dev-term__line .dim  { color: rgba(230, 243, 255, 0.5); }
.dev-term__welcome { color: rgba(230, 243, 255, 0.7); }
.dev-term__welcome strong { color: var(--cyan); font-weight: 500; }
.dev-term__prompt { color: var(--cyan-dim); }
.dev-term__prompt .user { color: var(--brand); }
.dev-term__prompt .path { color: var(--cyan); }
.dev-term__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}
.dev-term__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #e6f3ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  caret-color: var(--cyan);
}
.dev-term__input::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Hint pill (always-on, small) */
.dev-term-hint {
  display: none; /* hidden — cmdk-hint already covers shortcut discovery */
}

@media (max-width: 768px) {
  .dev-term { display: none !important; }
}

/* =======================================================
 *  Mobile QA — defensive fixes for narrow screens
 * ======================================================= */
@media (max-width: 768px) {
  /* Hero stats: tighter spacing, smaller numbers */
  .hero-stats { gap: 8px; }
  .hero-stats .stat { padding: 8px 10px; min-width: 78px; flex: 1 1 calc(50% - 8px); }
  .hero-stats .stat strong { font-size: 16px; }
  .terminal-tag { font-size: 11px; padding: 5px 10px !important; min-width: 0; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
  .tech-stack-strip { gap: 6px; }
  .tech-chip { font-size: 10px; padding: 4px 8px; }

  /* Code card: shrink gutter and code */
  .code-card { max-width: 100%; }
  .code-card__gutter { padding: 12px 6px 12px 10px !important; font-size: 10px !important; }
  .code-card__code { padding: 12px !important; overflow-x: auto; }
  .code-card__code pre { font-size: 10.5px !important; line-height: 1.55 !important; }
  .code-card__title { font-size: 11px; }

  /* About panel + pillars */
  .about-panel { padding: 18px 18px; }
  .about-panel__title { font-size: 16px !important; letter-spacing: 1px; }
  .about-panel__cta { gap: 8px; }
  .about-panel__cta .btn { width: 100%; text-align: center; }

  /* Profile-config: collapse into single column already, make rows wrap better */
  .profile-config__chrome { flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
  .profile-config__path { margin-left: 0; font-size: 11px; }
  .profile-config__status { margin-left: 0; }
  .cfg-col { padding: 14px 16px; }
  .cfg-key { font-size: 11px; }
  .cfg-val, .cfg-link { font-size: 11.5px; word-break: break-word; }

  /* Resume cards */
  .exp-card__chrome { flex-wrap: wrap; row-gap: 4px; }
  .exp-card__period { font-size: 9px; padding: 2px 6px; }
  .exp-card__role { font-size: 15px !important; }
  .exp-card__role .exp-card__sub { display: block; font-size: 11px; margin-left: 0; margin-top: 2px; }
  .exp-card__bullets li { font-size: 12.5px; line-height: 1.55; padding-left: 18px; }
  .exp-card__bullets li::before { left: 2px; top: 5px; }

  /* Services cards */
  .services-grid > [class*="col-"] { margin-bottom: 14px; }
  .svc-card { padding: 18px 16px 16px; }
  .svc-card__title { font-size: 14px !important; }
  .svc-card__lead { font-size: 12.5px; }
  .svc-card__deliverables li { font-size: 12px; line-height: 1.5; }

  /* Project cards */
  .proj-card__thumb { height: 150px; }
  .proj-card__title { font-size: 14px !important; }
  .proj-card__meta { font-size: 11px; }

  /* CTA card */
  .cta-card__chrome { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .cta-card__path { font-size: 11px; }
  .cta-status { font-size: 9px; padding: 3px 6px; }
  .cta-card__body { padding: 22px 18px 24px; }
  .cta-card__title { font-size: 22px !important; letter-spacing: 2px !important; }
  .cta-card__lead { font-size: 13px; }
  .cta-email { padding: 10px 12px; gap: 8px; font-size: 12.5px; }
  .cta-email__addr { font-size: 12.5px; word-break: break-all; }

  /* Filter pills */
  .work-filters { gap: 5px; }
  .work-filter { font-size: 10px; padding: 5px 10px; }

  /* Side rail / HUD already hidden, double-check */
  .siderail, .hud, .cmdk-hint, .cursor-dot, .cursor-ring { display: none !important; }

  /* Footer live stats */
  .live-stats { padding: 10px 12px; gap: 10px 12px; font-size: 10.5px; }

  /* Skip section number being absurdly tall on long titles */
  .skill-card__title { font-size: 13px !important; letter-spacing: 1.5px; }

  /* Section heading sizes */
  .fh5co-heading h2 { font-size: 26px !important; letter-spacing: 3px; }
}

@media (max-width: 380px) {
  .hero-stats .stat { flex: 1 1 100%; }
  .cta-card__title { font-size: 18px !important; }
  .exp-group { padding-left: 22px; }
  .exp-group::before { left: 8px; }
  .exp-item__dot { left: -22px; width: 12px; height: 12px; }
  .commit-cell { width: 9px; height: 9px; }
  /* "Lemmuel Turaya" at 32px + 2px letter-spacing wraps on a 320px viewport.
     Drop spacing and font-size one more notch so the name stays on a single line. */
  #fh5co-header .display-tc h1,
  .fh5co-cover .display-tc h1 {
    font-size: 26px !important;
    letter-spacing: 1px !important;
  }
}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { animation: none; }
  .matrix-canvas, .particles-canvas { display: none; }
  body.konami-on { animation: none; }
  .case-status--live::before { animation: none; }
  /* reduced motion users always see content immediately */
  .animate-box { opacity: 1 !important; }
  .animate-box.fadeInUp,
  .animate-box.fadeInLeft,
  .animate-box.fadeInRight,
  .animate-box.fadeIn { animation: none !important; }
}

/* ============================================================
   MOBILE HERO FIX
   The legacy `.fh5co-cover { height: 600px }` is a fixed height the
   original template assumed. The new hero packs much more content
   (role tag, status badge, tech-chip strip, hero-stats, social icons).
   On mobile the centered content overflows past 600px and the social
   icons row visually overlaps the #fh5co-about heading below.
   Fix: make the hero grow with content on small screens.
   ============================================================ */
@media screen and (max-width: 768px) {
  #fh5co-header,
  .fh5co-cover,
  #fh5co-header.fh5co-cover.js-fullheight {
    height: auto !important;
    min-height: 100vh;
    padding: 90px 0 60px;
  }
  #fh5co-header .display-t,
  .fh5co-cover .display-t,
  #fh5co-header .display-t.js-fullheight,
  .fh5co-cover .display-t.js-fullheight {
    display: block !important;
    height: auto !important;
    width: 100%;
  }
  #fh5co-header .display-tc,
  .fh5co-cover .display-tc,
  #fh5co-header .display-tc.js-fullheight,
  .fh5co-cover .display-tc.js-fullheight {
    display: block !important;
    height: auto !important;
    padding: 24px 0;
  }
  /* Stack hero-stats vertically on phones for breathing room */
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  /* Social icons row sits cleanly at the bottom of the hero */
  #fh5co-header .display-tc .fh5co-social-icons {
    margin-top: 22px;
    padding-bottom: 10px;
  }
}

/* Reveal-instant: applied by tech-fx.js to .animate-box elements that
   are already in or above the viewport on page load (typically after a
   reload that restored the scroll position). Skips the fade keyframe so
   the user doesn't watch 30+ above-fold sections re-animate every time
   they reload.
   Wins over `.js .animate-box { opacity: 0 }` via specificity (0,2,0). */
.js .animate-box.reveal-instant {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
}

/* ==========================================================================
   THEME TOGGLE BUTTON (nav)
   ========================================================================== */
.fh5co-nav-extra {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}
.theme-toggle__icon { display: inline-flex; transition: opacity 0.2s; pointer-events: none; }
.theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle__icon--sun  { display: inline-flex; }

/* ==========================================================================
   LIGHT THEME OVERRIDES — surfaces + text, accents preserved
   Engaged only when <html data-theme="light">. Dark stays the default.
   ========================================================================== */
:root[data-theme="light"] {
  --bg-deep:  #f6f4ee;
  --bg-dark:  #efece4;
  --surface:  #ffffff;
  --line:         rgba(10, 40, 80, 0.10);
  --line-strong:  rgba(10, 40, 80, 0.22);
  --cyan-dim: #007a90;
}

:root[data-theme="light"] body {
  background: #f6f4ee !important;
  color: #1a1f2e !important;
}

/* Disable heavy fx in light mode — the brand stays via accents, not effects */
:root[data-theme="light"] .matrix-canvas,
:root[data-theme="light"] .particles-canvas { display: none !important; }
:root[data-theme="light"] .glitch::before,
:root[data-theme="light"] .glitch::after { display: none !important; }

/* Nav */
:root[data-theme="light"] #fh5co-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(10, 40, 80, 0.1);
  box-shadow: 0 2px 14px rgba(10, 30, 60, 0.06) !important;
}
:root[data-theme="light"] .fh5co-nav-brand {
  color: var(--brand) !important;
  text-shadow: none;
}
:root[data-theme="light"] .fh5co-nav-links li a {
  color: rgba(10, 30, 60, 0.78) !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .fh5co-nav-links li a:hover { color: var(--brand) !important; }
/* Hero */
:root[data-theme="light"] #fh5co-header {
  background: linear-gradient(180deg, #f6f4ee 0%, #efece4 100%) !important;
  color: #1a1f2e;
}
:root[data-theme="light"] #fh5co-header .display-t,
:root[data-theme="light"] #fh5co-header .display-tc { color: #1a1f2e; }
:root[data-theme="light"] #fh5co-header h1,
:root[data-theme="light"] #fh5co-header h2 { color: #1a1f2e !important; }
:root[data-theme="light"] #fh5co-header h2,
:root[data-theme="light"] #fh5co-header p { color: rgba(20, 30, 50, 0.78) !important; }

/* Sections — flatten dark gradients onto paper */
:root[data-theme="light"] #fh5co-about,
:root[data-theme="light"] #fh5co-resume,
:root[data-theme="light"] #fh5co-features,
:root[data-theme="light"] #fh5co-skills,
:root[data-theme="light"] #fh5co-work,
:root[data-theme="light"] #fh5co-blog,
:root[data-theme="light"] #fh5co-started,
:root[data-theme="light"] #fh5co-counter,
:root[data-theme="light"] #fh5co-services {
  background: #f6f4ee !important;
  color: #1a1f2e;
}
:root[data-theme="light"] .fh5co-bg-dark,
:root[data-theme="light"] .fh5co-bg-color { background: #f6f4ee !important; }

/* Generic text adjustments inside sections */
:root[data-theme="light"] body,
:root[data-theme="light"] p,
:root[data-theme="light"] li,
:root[data-theme="light"] .fh5co-heading h2,
:root[data-theme="light"] section h2,
:root[data-theme="light"] section h3 { color: #1a1f2e; }
:root[data-theme="light"] .fh5co-heading h2 {
  text-shadow: none !important;
}

/* Card panes — flip to warm paper */
:root[data-theme="light"] .cta-card,
:root[data-theme="light"] .case-studies,
:root[data-theme="light"] .px-card,
:root[data-theme="light"] .exp-card,
:root[data-theme="light"] .cs-section,
:root[data-theme="light"] .proj-card,
:root[data-theme="light"] .live-stats {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border: 1px solid rgba(10, 30, 60, 0.12) !important;
  box-shadow: 0 12px 32px rgba(10, 30, 60, 0.08), 0 0 24px rgba(255, 144, 0, 0.04) !important;
  color: #1a1f2e !important;
}

/* Pane chromes (terminal bars) — light variant */
:root[data-theme="light"] .cta-card__chrome,
:root[data-theme="light"] .case-studies__chrome,
:root[data-theme="light"] .px-card__chrome {
  background: linear-gradient(180deg, #f0ece2 0%, #e6e0d2 100%) !important;
  border-bottom: 1px solid rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .cta-card__path,
:root[data-theme="light"] .case-studies__path,
:root[data-theme="light"] .px-card__path { color: rgba(10, 30, 60, 0.6) !important; }

/* CTA card inner: flow + tabs */
:root[data-theme="light"] .cta-card__title { color: #1a1f2e !important; text-shadow: none !important; }
:root[data-theme="light"] .cta-card__lead { color: rgba(20, 30, 50, 0.78) !important; }
:root[data-theme="light"] .cta-card__lead strong { color: #007a90 !important; }
:root[data-theme="light"] .cta-flow__step {
  background: linear-gradient(180deg, #fdfaf2 0%, #f6f2e6 100%) !important;
  border-color: rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .cta-flow__head { color: #1a1f2e !important; }
:root[data-theme="light"] .cta-flow__sub  { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .cta-track {
  background: rgba(10, 30, 60, 0.04);
  border-color: rgba(10, 30, 60, 0.12);
}
:root[data-theme="light"] .cta-track__tab { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .cta-track__tab:hover { color: #1a1f2e !important; }

/* Live stats + footer */
:root[data-theme="light"] #fh5co-footer { background: #efece4 !important; color: #1a1f2e !important; }
:root[data-theme="light"] #fh5co-footer p { color: rgba(20, 30, 50, 0.75) !important; }
:root[data-theme="light"] .live-stats {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(10, 30, 60, 0.12) !important;
}
:root[data-theme="light"] .live-stats__label { color: rgba(10, 30, 60, 0.6) !important; }
:root[data-theme="light"] .live-stats__val   { color: #007a90 !important; text-shadow: none !important; }

/* Scroll progress bar accent stays */
/* Custom cursor visibility tweak handled in JS isTouch branch; leave as-is */

/* Code panes & sample code */
:root[data-theme="light"] pre,
:root[data-theme="light"] .cs-code pre {
  background: #1c2233 !important;
  color: #e6f3ff !important;
}

/* Cyan-on-white contrast: darken cyan-tinted text in light mode */
:root[data-theme="light"] .cta-status,
:root[data-theme="light"] .cta-email__addr,
:root[data-theme="light"] .case-status--live,
:root[data-theme="light"] .case-studies__foot {
  background: rgba(0, 122, 144, 0.04);
}
:root[data-theme="light"] .cs-section__label,
:root[data-theme="light"] .cta-card__label,
:root[data-theme="light"] .cta-flow__label { color: #007a90 !important; }

/* Inputs */
:root[data-theme="light"] .cta-form__field input,
:root[data-theme="light"] .cta-form__field select,
:root[data-theme="light"] .cta-form__field textarea {
  background: #ffffff !important;
  color: #1a1f2e !important;
  border-color: rgba(10, 30, 60, 0.18) !important;
}
:root[data-theme="light"] .cta-form__field input::placeholder,
:root[data-theme="light"] .cta-form__field textarea::placeholder { color: rgba(10, 30, 60, 0.4) !important; }
:root[data-theme="light"] .cta-form__label { color: rgba(10, 30, 60, 0.6) !important; }

/* ---- Phase D: round-2 light-theme overrides for remaining components ---- */

/* px-card / exp-card body content */
:root[data-theme="light"] .px-card,
:root[data-theme="light"] .exp-card {
  color: #1a1f2e !important;
}
:root[data-theme="light"] .px-card *,
:root[data-theme="light"] .exp-card * {
  color: inherit;
}
:root[data-theme="light"] .px-card__path,
:root[data-theme="light"] .exp-card__path { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .px-card__badge,
:root[data-theme="light"] .exp-card__badge {
  background: rgba(0, 122, 144, 0.08) !important;
  color: #007a90 !important;
  border-color: rgba(0, 122, 144, 0.35) !important;
}
:root[data-theme="light"] .px-principles__num,
:root[data-theme="light"] .exp-item__dot {
  color: var(--brand) !important;
}
:root[data-theme="light"] .px-faq summary,
:root[data-theme="light"] .px-faq__q { color: #1a1f2e !important; }
:root[data-theme="light"] .px-faq__a { color: rgba(20, 30, 50, 0.78) !important; }
:root[data-theme="light"] .exp-group::before {
  background: rgba(0, 122, 144, 0.35) !important;
}

/* proj-card */
:root[data-theme="light"] .proj-card {
  color: #1a1f2e !important;
}
:root[data-theme="light"] .proj-card__body { color: #1a1f2e !important; }
:root[data-theme="light"] .proj-card__title { color: #1a1f2e !important; text-shadow: none !important; }
:root[data-theme="light"] .proj-card__meta { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .proj-card__path { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .proj-card__chip {
  background: rgba(0, 122, 144, 0.08) !important;
  color: #007a90 !important;
  border-color: rgba(0, 122, 144, 0.35) !important;
}

/* case-studies inline list */
:root[data-theme="light"] .case-studies__lead { color: rgba(10, 30, 60, 0.7) !important; }
:root[data-theme="light"] .case-tree { color: rgba(10, 30, 60, 0.45) !important; }
:root[data-theme="light"] .case-name,
:root[data-theme="light"] .case-name--link { color: #007a90 !important; text-shadow: none !important; }
:root[data-theme="light"] .case-studies__foot { color: rgba(10, 30, 60, 0.7) !important; }
:root[data-theme="light"] .case-studies__foot a { color: #007a90 !important; }
:root[data-theme="light"] .case-prompt { color: var(--brand) !important; }

/* Hero stats tiles */
:root[data-theme="light"] .hero-stats .stat {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(10, 30, 60, 0.12) !important;
  color: #1a1f2e !important;
}
:root[data-theme="light"] .hero-stats .stat strong {
  color: var(--brand) !important;
  text-shadow: none !important;
}

/* Hero header inner */
:root[data-theme="light"] #fh5co-header {
  color: #1a1f2e !important;
}
:root[data-theme="light"] #fh5co-header h1,
:root[data-theme="light"] #fh5co-header h2,
:root[data-theme="light"] #fh5co-header p,
:root[data-theme="light"] #fh5co-header .tech-chip { color: #1a1f2e !important; }
:root[data-theme="light"] #fh5co-header .tech-chip {
  background: rgba(255, 144, 0, 0.08) !important;
  border-color: rgba(255, 144, 0, 0.4) !important;
  color: var(--brand) !important;
}
:root[data-theme="light"] #fh5co-header .fh5co-social-icons a {
  color: rgba(10, 30, 60, 0.55) !important;
}
:root[data-theme="light"] #fh5co-header .fh5co-social-icons a:hover { color: var(--brand) !important; }

/* Section headings */
:root[data-theme="light"] .fh5co-heading h2,
:root[data-theme="light"] section h2,
:root[data-theme="light"] .fh5co-heading h3 {
  color: #1a1f2e !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .fh5co-heading > p,
:root[data-theme="light"] .work-intro { color: rgba(10, 30, 60, 0.7) !important; }

/* Skills bars / progress */
:root[data-theme="light"] .progress {
  background: rgba(10, 30, 60, 0.08) !important;
}
:root[data-theme="light"] .progress-bar { color: #fff !important; }
:root[data-theme="light"] .progress + p,
:root[data-theme="light"] .pgb-text { color: #1a1f2e !important; }

/* Services / features */
:root[data-theme="light"] .feature-left,
:root[data-theme="light"] .feature-center {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border: 1px solid rgba(10, 30, 60, 0.1) !important;
  color: #1a1f2e !important;
}
:root[data-theme="light"] .feature-left h3,
:root[data-theme="light"] .feature-center h3 { color: #1a1f2e !important; }
:root[data-theme="light"] .feature-left p,
:root[data-theme="light"] .feature-center p { color: rgba(10, 30, 60, 0.75) !important; }
:root[data-theme="light"] .feature-left .icon,
:root[data-theme="light"] .feature-center .icon { color: var(--brand) !important; }

/* CTA buttons within sections */
:root[data-theme="light"] .cta-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(10, 30, 60, 0.18) !important;
  color: #1a1f2e !important;
}
:root[data-theme="light"] .cta-btn:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 0 18px rgba(255, 144, 0, 0.2) !important;
}
:root[data-theme="light"] .cta-btn__caption { color: #1a1f2e !important; }
:root[data-theme="light"] .cta-btn__sub { color: rgba(10, 30, 60, 0.5) !important; }
:root[data-theme="light"] .cta-btn--primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
:root[data-theme="light"] .cta-btn--primary .cta-btn__caption,
:root[data-theme="light"] .cta-btn--primary .cta-btn__sub { color: #fff !important; }

/* Hire button in nav */
:root[data-theme="light"] .hire-btn {
  background: var(--brand) !important;
  color: #fff !important;
}

/* GitHub commit graph cells */
:root[data-theme="light"] .commit-cell { border-color: rgba(10, 30, 60, 0.1) !important; }

/* Recent repos card content */
:root[data-theme="light"] .px-repos li { color: #1a1f2e !important; }
:root[data-theme="light"] .px-repos__loading { color: rgba(10, 30, 60, 0.5) !important; }
:root[data-theme="light"] .px-repos__foot a { color: #007a90 !important; }

/* Cover photo overlay */
:root[data-theme="light"] #fh5co-header.fh5co-cover::before,
:root[data-theme="light"] #fh5co-header.fh5co-cover::after { display: none !important; }
:root[data-theme="light"] #fh5co-header.fh5co-cover { background-image: none !important; }

/* ============================================================
   FOCUS-VISIBLE rings (a11y) — applies in both themes
   ============================================================ */
/* Comprehensive focus-visible — restores keyboard focus indication that
   style.css's legacy `a:focus { outline: none }` (and similar rules) wipes
   out. Lists every interactive element on the site so keyboard nav stays
   visible across every theme. */
.theme-picker__trigger:focus-visible,
.theme-picker__mode:focus-visible,
.theme-picker__dot:focus-visible,
.theme-pick__btn:focus-visible,
.fh5co-nav-toggle:focus-visible,
.fh5co-nav-links li a:focus-visible,
.fh5co-nav-brand:focus-visible,
.cta-track__tab:focus-visible,
[data-cta-track]:focus-visible,
.work-filter:focus-visible,
.case-filter:focus-visible,
.case-status:focus-visible,
.case-name--link:focus-visible,
.proj-card__link:focus-visible,
.cs-btn:focus-visible,
.cta-btn:focus-visible,
.cta-form__submit:focus-visible,
.hero-cta__primary:focus-visible,
.hero-cta__secondary:focus-visible,
.btn-ghost:focus-visible,
a.btn:focus-visible {
  outline: 2px solid var(--brand) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
:root[data-theme="light"] .theme-picker__trigger:focus-visible,
:root[data-theme="light"] .cta-track__tab:focus-visible,
:root[data-theme="light"] .work-filter:focus-visible,
:root[data-theme="light"] .cta-btn:focus-visible,
:root[data-theme="light"] .cs-btn:focus-visible {
  outline-color: var(--brand);
}
.fh5co-nav-links li a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}
:root[data-theme="light"] .fh5co-nav-links li a:focus-visible {
  outline-color: #007a90;
}

/* ============================================================
   Light theme — contrast fixes for syntax-highlight tinted text
   These spans use bright "code editor" tints meant for dark bg.
   On paper bg they're invisible (yellow / pale cyan on cream).
   ============================================================ */

/* Code syntax tokens — adapt to a "light editor" palette */
:root[data-theme="light"] .tk-key   { color: #b16fc6 !important; }   /* purple */
:root[data-theme="light"] .tk-str   { color: #8a6f00 !important; }   /* mustard (was light yellow) */
:root[data-theme="light"] .tk-num   { color: #c66a00 !important; }   /* deep brand orange */
:root[data-theme="light"] .tk-fn    { color: #00667a !important; }   /* deep cyan */
:root[data-theme="light"] .tk-cmt   { color: rgba(10, 30, 60, 0.45) !important; }
:root[data-theme="light"] .tk-punct { color: rgba(10, 30, 60, 0.6) !important; }

/* Config card values (about section JSON-style block) */
:root[data-theme="light"] .cfg-key       { color: #b16fc6 !important; }
:root[data-theme="light"] .cfg-val       { color: rgba(10, 30, 60, 0.85) !important; }
:root[data-theme="light"] .cfg-val--str  { color: #8a6f00 !important; }
:root[data-theme="light"] .cfg-val--arr  { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .cfg-val--arr .cfg-val--str { color: #8a6f00 !important; }
:root[data-theme="light"] .cfg-link      { color: #00667a !important; }
:root[data-theme="light"] .cfg-link:hover { color: #c66a00 !important; }

/* Skill / experience chips */
:root[data-theme="light"] .exp-chip {
  background: rgba(0, 122, 144, 0.06) !important;
  border-color: rgba(0, 122, 144, 0.35) !important;
  color: #00667a !important;
}
:root[data-theme="light"] .exp-chip:hover {
  background: rgba(0, 122, 144, 0.14) !important;
  border-color: #00667a !important;
  color: #003f4a !important;
  box-shadow: 0 0 8px rgba(0, 122, 144, 0.25);
}
:root[data-theme="light"] .exp-chip--ai {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.12), rgba(255, 43, 214, 0.1)) !important;
  border-color: rgba(255, 144, 0, 0.5) !important;
  color: #b85c00 !important;
}

/* Resume background (forced via !important in dark — needs explicit light override) */
:root[data-theme="light"] #fh5co-resume {
  background: linear-gradient(180deg, #f6f4ee 0%, #efece4 100%) !important;
}

/* Anywhere using var(--cyan) directly as primary text — too bright on white.
   Replace high-saturation cyan with deep teal in light mode via inherited
   tokens where possible. Specific surface fixes: */
:root[data-theme="light"] .cs-chip,
:root[data-theme="light"] .cs-meta__v {
  color: #00667a !important;
}
:root[data-theme="light"] .cs-section__label {
  color: #00667a !important;
}

/* Hero subtitle "tagline / tech chips" — make sure they read on cover */
:root[data-theme="light"] #fh5co-header h2 small,
:root[data-theme="light"] #fh5co-header .tagline { color: rgba(10, 30, 60, 0.78) !important; }

/* Live stats footer values */
:root[data-theme="light"] [data-live="total"],
:root[data-theme="light"] [data-live="session"],
:root[data-theme="light"] [data-live="refresh"] { color: #00667a !important; }

/* ============================================================
   Round-2.5 hotfix — remaining light-mode contrast bugs
   Sweep of all elements that still inherit dark-theme tints.
   ============================================================ */

/* Skills section */
:root[data-theme="light"] .skill-name { color: #1a1f2e !important; }
:root[data-theme="light"] .skill-level,
:root[data-theme="light"] .skill-meta { color: rgba(10, 30, 60, 0.6) !important; }

/* Services / services-card */
:root[data-theme="light"] .svc-card__cmd { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .svc-card__title { color: #1a1f2e !important; text-shadow: none !important; }
:root[data-theme="light"] .svc-card__desc,
:root[data-theme="light"] .svc-card__body { color: rgba(20, 30, 50, 0.78) !important; }
:root[data-theme="light"] .svc-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border-color: rgba(10, 30, 60, 0.12) !important;
  color: #1a1f2e !important;
}

/* Project card CTA */
:root[data-theme="light"] .proj-card__cta { color: #00667a !important; }
:root[data-theme="light"] .proj-card:hover .proj-card__cta { color: var(--brand) !important; }

/* Custom right-click context menu */
:root[data-theme="light"] .ctx-menu {
  background: #ffffff !important;
  border-color: rgba(10, 30, 60, 0.15) !important;
  box-shadow: 0 14px 36px rgba(10, 30, 60, 0.14) !important;
}
:root[data-theme="light"] .ctx-menu__item { color: #1a1f2e !important; }
:root[data-theme="light"] .ctx-menu__item:hover { background: rgba(0, 122, 144, 0.08) !important; color: #00667a !important; }

/* Experience card role + period */
:root[data-theme="light"] .exp-card__role { color: #1a1f2e !important; text-shadow: none !important; }
:root[data-theme="light"] .exp-card__sub { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .exp-card__period { color: rgba(10, 30, 60, 0.6) !important; }
:root[data-theme="light"] .exp-card__co { color: #00667a !important; }
:root[data-theme="light"] .exp-card__loc { color: rgba(10, 30, 60, 0.5) !important; }
:root[data-theme="light"] .exp-card__bullets { color: rgba(20, 30, 50, 0.82) !important; }
:root[data-theme="light"] .exp-card__bullets strong { color: #00667a !important; }

/* Tech chips in hero */
:root[data-theme="light"] .tech-chip {
  background: rgba(255, 144, 0, 0.08) !important;
  border-color: rgba(255, 144, 0, 0.4) !important;
  color: var(--brand) !important;
}

/* Boot console (initial terminal lines on cover) */
:root[data-theme="light"] .boot-console,
:root[data-theme="light"] .boot-line { color: #00667a !important; }
:root[data-theme="light"] .boot-line.ok::after { color: #1f8a3e !important; }

/* Tab-active terminal path highlight — keep teal but darker for white bg */
:root[data-theme="light"] .tab-active,
:root[data-theme="light"] .case-studies__path .tab-active,
:root[data-theme="light"] .cta-card__path .tab-active,
:root[data-theme="light"] .px-card__path .tab-active,
:root[data-theme="light"] .exp-card__path .tab-active,
:root[data-theme="light"] .proj-card__path .tab-active,
:root[data-theme="light"] .profile-config__path .tab-active {
  color: #00667a !important;
  border-bottom-color: #00667a !important;
}

/* Generic <strong> inside section body — must be dark on light bg.
   Originals often use cyan for emphasis. */
:root[data-theme="light"] section p strong,
:root[data-theme="light"] section li strong,
:root[data-theme="light"] .cs-section strong { color: #00667a !important; }

/* Headings inside the inner content */
:root[data-theme="light"] section h2,
:root[data-theme="light"] section h3 { color: #1a1f2e !important; text-shadow: none !important; }
:root[data-theme="light"] .cs-hero h1,
:root[data-theme="light"] .cs-section h2 { color: #1a1f2e !important; }

/* Profile-config path/key (about JSON card) */
:root[data-theme="light"] .profile-config__path { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .profile-config__cmd { color: #1f8a3e !important; }

/* Code card outside pre block */
/* ============================================================
   Hotfix #10 — Code-card (About's developer.js editor pane)
   Mirror the profile-config card pattern: light surface, light chrome,
   light editor palette. Was previously kept dark which made the title
   invisible after the chrome got overridden elsewhere.
   ============================================================ */
:root[data-theme="light"] .code-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border: 1px solid rgba(10, 30, 60, 0.12) !important;
  box-shadow:
    0 12px 32px rgba(10, 30, 60, 0.08),
    0 0 0 1px rgba(0, 122, 144, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
:root[data-theme="light"] .code-card__chrome {
  background: linear-gradient(180deg, #f0ece2 0%, #e6e0d2 100%) !important;
  border-bottom: 1px solid rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .code-card__title {
  color: rgba(10, 30, 60, 0.55) !important;
}
:root[data-theme="light"] .code-card__title .tab-active {
  color: #00667a !important;
  border-bottom-color: #00667a !important;
}
:root[data-theme="light"] .code-card__cmd { color: #1f8a3e !important; }

/* Code-card body: light editor pane */
:root[data-theme="light"] .code-card__gutter {
  color: rgba(10, 30, 60, 0.32) !important;
  background: rgba(10, 30, 60, 0.04) !important;
  border-right: 1px solid rgba(10, 30, 60, 0.08) !important;
}
:root[data-theme="light"] .code-card__code {
  color: #1a1f2e !important;
}
:root[data-theme="light"] .code-card__code pre {
  background: transparent !important;
  color: #1a1f2e !important;
}

/* Syntax tokens inside the code-card use the LIGHT editor palette.
   These selectors must beat the generic `pre .tk-*` dark-editor rules
   I added earlier (which still apply for case-study pre blocks). */
:root[data-theme="light"] .code-card pre .tk-key,
:root[data-theme="light"] .code-card .tk-key   { color: #b16fc6 !important; }
:root[data-theme="light"] .code-card pre .tk-str,
:root[data-theme="light"] .code-card .tk-str   { color: #8a6f00 !important; }
:root[data-theme="light"] .code-card pre .tk-num,
:root[data-theme="light"] .code-card .tk-num   { color: #c66a00 !important; }
:root[data-theme="light"] .code-card pre .tk-fn,
:root[data-theme="light"] .code-card .tk-fn    { color: #00667a !important; }
:root[data-theme="light"] .code-card pre .tk-cmt,
:root[data-theme="light"] .code-card .tk-cmt   { color: rgba(10, 30, 60, 0.45) !important; }
:root[data-theme="light"] .code-card pre .tk-punct,
:root[data-theme="light"] .code-card .tk-punct { color: rgba(10, 30, 60, 0.6) !important; }
:root[data-theme="light"] .code-card .tk-bool  { color: #c66a00 !important; }

/* Code-card blinking caret indicator */
:root[data-theme="light"] .code-card .code-caret {
  background: #00667a !important;
  box-shadow: 0 0 6px rgba(0, 122, 144, 0.5) !important;
}

/* "About" section paragraph + secondary */
:root[data-theme="light"] .about-bio,
:root[data-theme="light"] .about-bio p,
:root[data-theme="light"] .fh5co-heading h2 + p { color: rgba(20, 30, 50, 0.82) !important; }

/* ============================================================
   Round-2.5 hotfix #2 — remaining contrast issues after first sweep
   ============================================================ */

/* Section H2 inside .fh5co-heading — style.css forces white with !important.
   Need higher-specificity override. */
:root[data-theme="light"] .fh5co-bg-dark .fh5co-heading h2,
:root[data-theme="light"] .fh5co-bg-color .fh5co-heading h2,
:root[data-theme="light"] .fh5co-heading h2,
:root[data-theme="light"] .col-md-8.fh5co-heading h2 {
  color: #1a1f2e !important;
  text-shadow: none !important;
}

/* About-panel lead paragraph cyan strong tags */
:root[data-theme="light"] .about-panel__lead strong,
:root[data-theme="light"] .about-bio strong,
:root[data-theme="light"] p.about-panel__lead strong { color: #00667a !important; }

/* Case-study meta key/value */
:root[data-theme="light"] .cta-meta__k,
:root[data-theme="light"] .cs-meta__k { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .cta-meta__v,
:root[data-theme="light"] .cs-meta__v { color: #1a1f2e !important; }

/* Skill-card icon brackets */
:root[data-theme="light"] .skill-card__icon { color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .skill-card,
:root[data-theme="light"] .skill-card__head {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border-color: rgba(10, 30, 60, 0.12) !important;
  color: #1a1f2e !important;
}
:root[data-theme="light"] .skill-card__head { background: transparent !important; }
:root[data-theme="light"] .skill-card__title { color: #1a1f2e !important; }

/* Tech-chip orange on cream is poor contrast — use deeper brand tone.
   Must beat the Phase D selector "#fh5co-header .tech-chip" which used
   var(--brand). Adding #fh5co-header to win specificity. */
:root[data-theme="light"] .tech-chip,
:root[data-theme="light"] #fh5co-header .tech-chip,
:root[data-theme="light"] .tech-stack-strip .tech-chip,
:root[data-theme="light"] #fh5co-header .tech-stack-strip .tech-chip {
  color: #b85c00 !important;
  background: rgba(255, 144, 0, 0.10) !important;
  border-color: rgba(184, 92, 0, 0.45) !important;
}
:root[data-theme="light"] .tech-chip::before,
:root[data-theme="light"] .tech-chip::after { color: rgba(184, 92, 0, 0.55) !important; }

/* Exp-group__count and other small inline labels */
:root[data-theme="light"] .exp-group__count { color: rgba(10, 30, 60, 0.55) !important; }

/* svc-card AI badge */
:root[data-theme="light"] .svc-card__badge { background: rgba(0, 122, 144, 0.08) !important; color: #00667a !important; border-color: rgba(0, 122, 144, 0.4) !important; }
:root[data-theme="light"] .svc-card__badge--ai {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.12), rgba(255, 43, 214, 0.1)) !important;
  border-color: rgba(255, 144, 0, 0.5) !important;
  color: #b85c00 !important;
}

/* <em> generic */
:root[data-theme="light"] em { color: rgba(20, 30, 50, 0.88) !important; }

/* Generic <a> with no class — bare anchors. Use deep teal. */
:root[data-theme="light"] a:not([class]),
:root[data-theme="light"] .footer-meta a,
:root[data-theme="light"] p a:not([class]) { color: #00667a !important; }

/* about-panel CTA - the resume download button text is white on cream */
:root[data-theme="light"] .btn.btn-primary,
:root[data-theme="light"] .about-panel__cta .btn,
:root[data-theme="light"] .about-panel__cta a.btn {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}
:root[data-theme="light"] .btn.btn-primary:hover,
:root[data-theme="light"] .about-panel__cta .btn:hover { background: #c66a00 !important; border-color: #c66a00 !important; }

/* skip-link — currently cyan on cream when light. Improve contrast */
:root[data-theme="light"] .skip-link {
  background: var(--brand) !important;
  color: #fff !important;
}
:root[data-theme="light"] .skip-link:focus {
  background: var(--brand) !important;
  color: #fff !important;
  outline: 2px solid #1a1f2e !important;
}

/* case-status--live pulse pill - on cream needs darker green */
:root[data-theme="light"] .case-status--live {
  background: rgba(31, 138, 62, 0.10) !important;
  border-color: rgba(31, 138, 62, 0.55) !important;
  color: #1f8a3e !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .case-status--live::before { background: #1f8a3e !important; box-shadow: 0 0 8px rgba(31, 138, 62, 0.5) !important; }
:root[data-theme="light"] .case-status--live:hover { background: #1f8a3e !important; color: #fff !important; box-shadow: 0 0 12px rgba(31, 138, 62, 0.5) !important; }

/* tab-active also referenced in non-fh5co contexts — ensure all are darkened */
:root[data-theme="light"] .tab-active { color: #00667a !important; border-bottom-color: #00667a !important; }

/* IMPORTANT: tk-* token overrides EARLIER were applied globally and made
   tokens inside dark code blocks (pre) too dark. Restore brighter tokens
   when inside a dark pre. The pre stays dark in light theme by design. */
:root[data-theme="light"] pre .tk-key   { color: #ff79c6 !important; }
:root[data-theme="light"] pre .tk-str   { color: #f1fa8c !important; }
:root[data-theme="light"] pre .tk-num   { color: var(--brand) !important; }
:root[data-theme="light"] pre .tk-fn    { color: var(--cyan) !important; }
:root[data-theme="light"] pre .tk-cmt   { color: rgba(255, 255, 255, 0.35) !important; }
:root[data-theme="light"] pre .tk-punct { color: rgba(255, 255, 255, 0.6) !important; }

/* ============================================================
   Round-2.5 hotfix #3 — final sweep
   ============================================================ */

/* role-tag (hero "<Full-Stack & Mobile App Developer/>") */
:root[data-theme="light"] .role-tag,
:root[data-theme="light"] #fh5co-header .role-tag {
  color: #00667a !important;
  text-shadow: none !important;
}

/* status-badge (hero "Open to remote opportunities") */
:root[data-theme="light"] .status-badge,
:root[data-theme="light"] #fh5co-header .status-badge {
  color: #1f8a3e !important;
  background: rgba(31, 138, 62, 0.08) !important;
  border-color: rgba(31, 138, 62, 0.4) !important;
  text-shadow: none !important;
}

/* about-panel title and lead */
:root[data-theme="light"] .about-panel__title { color: #1a1f2e !important; text-shadow: none !important; }
:root[data-theme="light"] .about-panel__lead { color: rgba(20, 30, 50, 0.82) !important; }
:root[data-theme="light"] .about-panel { background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important; border-color: rgba(10, 30, 60, 0.12) !important; }

/* profile-config status */
:root[data-theme="light"] .profile-config__status { color: #1f8a3e !important; text-shadow: none !important; }

/* cfg-copy clipboard button */
:root[data-theme="light"] .cfg-copy {
  background: rgba(10, 30, 60, 0.06) !important;
  border-color: rgba(10, 30, 60, 0.18) !important;
  color: rgba(10, 30, 60, 0.7) !important;
}
:root[data-theme="light"] .cfg-copy:hover { background: rgba(0, 122, 144, 0.1) !important; color: #00667a !important; border-color: #00667a !important; }

/* btn-ghost — used as secondary CTA */
:root[data-theme="light"] .btn.btn-ghost,
:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] a.btn-ghost {
  background: transparent !important;
  color: #00667a !important;
  border: 1px solid #00667a !important;
}
:root[data-theme="light"] .btn.btn-ghost:hover,
:root[data-theme="light"] .btn-ghost:hover { background: rgba(0, 122, 144, 0.08) !important; color: #003f4a !important; }

/* magnetic class buttons (uses transforms via JS, color overridden) */
:root[data-theme="light"] .magnetic.btn-primary,
:root[data-theme="light"] a.btn-primary.magnetic { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
:root[data-theme="light"] .magnetic.btn-ghost,
:root[data-theme="light"] a.btn-ghost.magnetic { color: #00667a !important; border-color: #00667a !important; }

/* General <strong> inside any text content paragraph — final catch-all
   for anything I missed. Cyan strong tags break on cream. */
:root[data-theme="light"] strong { color: inherit; }
:root[data-theme="light"] p strong,
:root[data-theme="light"] li strong,
:root[data-theme="light"] dd strong,
:root[data-theme="light"] dt strong,
:root[data-theme="light"] td strong {
  color: #00667a !important;
}
/* But leave dark-bg content (code panes, terminal chrome) alone */
:root[data-theme="light"] pre strong,
:root[data-theme="light"] .cs-code strong,
:root[data-theme="light"] .ctx-menu strong { color: inherit !important; }

/* Generic SPAN catch — match anything still using rgba(230, 243, 255, ...) */
:root[data-theme="light"] section span[style*="rgba(230"],
:root[data-theme="light"] section span[style*="rgb(230"] { color: #1a1f2e !important; }

/* Section H2 — original CSS has id-specificity overrides forcing white.
   Beat them with id+attr selectors. */
:root[data-theme="light"] #fh5co-about .fh5co-heading h2,
:root[data-theme="light"] #fh5co-resume .fh5co-heading h2,
:root[data-theme="light"] #fh5co-skills .fh5co-heading h2,
:root[data-theme="light"] #fh5co-blog h2,
:root[data-theme="light"] #fh5co-blog .fh5co-heading h2,
:root[data-theme="light"] #fh5co-work .fh5co-heading h2,
:root[data-theme="light"] #fh5co-features .fh5co-heading h2,
:root[data-theme="light"] #fh5co-services .fh5co-heading h2,
:root[data-theme="light"] #fh5co-started .fh5co-heading h2 {
  color: #1a1f2e !important;
  text-shadow: none !important;
}

/* Footer success message & dev-term welcome — strongs inside */
:root[data-theme="light"] .cta-form__success { color: rgba(20, 30, 50, 0.85) !important; }
:root[data-theme="light"] .cta-form__success strong { color: #1f8a3e !important; }
:root[data-theme="light"] .dev-term__welcome,
:root[data-theme="light"] .dev-term__welcome strong { color: rgba(20, 30, 50, 0.78) !important; }

/* Services foot text — was dark on darker overlay; ensure clean light bg */
:root[data-theme="light"] .services-foot,
:root[data-theme="light"] .services-foot__txt {
  background: rgba(0, 122, 144, 0.04) !important;
  color: rgba(20, 30, 50, 0.82) !important;
  border-color: rgba(0, 122, 144, 0.18) !important;
}

/* Terminal-tag (hero whoami / lemmuel callout) */
:root[data-theme="light"] .terminal-tag,
:root[data-theme="light"] .terminal-tag .term-cmd,
:root[data-theme="light"] .terminal-tag .term-out,
:root[data-theme="light"] .terminal-tag .term-prompt { color: #00667a !important; }
:root[data-theme="light"] .terminal-tag { background: rgba(0, 122, 144, 0.06) !important; border-color: rgba(0, 122, 144, 0.3) !important; }

/* Case studies path command (the "$ ls -la" hint) */
:root[data-theme="light"] .case-studies__cmd,
:root[data-theme="light"] .cta-card__cmd { color: #1f8a3e !important; }

/* case-status--draft and --planned pills */
:root[data-theme="light"] .case-status--draft {
  background: rgba(0, 122, 144, 0.08) !important;
  border-color: rgba(0, 122, 144, 0.5) !important;
  color: #00667a !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .case-status--draft:hover {
  background: #00667a !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(0, 122, 144, 0.4) !important;
}
:root[data-theme="light"] .case-status--wip {
  background: rgba(255, 144, 0, 0.10) !important;
  border-color: rgba(184, 92, 0, 0.5) !important;
  color: #b85c00 !important;
}
:root[data-theme="light"] .case-status--planned {
  background: rgba(10, 30, 60, 0.04) !important;
  border-color: rgba(10, 30, 60, 0.2) !important;
  color: rgba(10, 30, 60, 0.55) !important;
}

/* Skip link: brand orange too low contrast for "Skip to content" text.
   Switch to dark navy bg + brand-orange text underline. */
:root[data-theme="light"] .skip-link {
  background: #1a1f2e !important;
  color: #fff !important;
}
:root[data-theme="light"] .skip-link:focus {
  background: #1a1f2e !important;
  color: #fff !important;
  outline: 2px solid var(--brand) !important;
}

/* ============================================================
   Hotfix #4 — hire CTA card internals + dev-term
   ============================================================ */

/* cta-status pill ("open to opportunities") */
:root[data-theme="light"] .cta-status {
  background: rgba(31, 138, 62, 0.08) !important;
  border-color: rgba(31, 138, 62, 0.45) !important;
  color: #1f8a3e !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .cta-status__dot {
  background: #1f8a3e !important;
  box-shadow: 0 0 8px #1f8a3e !important;
}

/* cta-email pill */
:root[data-theme="light"] .cta-email {
  background: rgba(0, 122, 144, 0.05) !important;
  border-color: rgba(0, 122, 144, 0.35) !important;
}
:root[data-theme="light"] .cta-email__icon { color: var(--brand) !important; }
:root[data-theme="light"] .cta-email__addr { color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .cta-email__addr:hover { color: #003f4a !important; }
:root[data-theme="light"] .cta-email__copy {
  background: rgba(0, 122, 144, 0.06) !important;
  border-color: rgba(0, 122, 144, 0.3) !important;
  color: #00667a !important;
}
:root[data-theme="light"] .cta-email__copy:hover { background: #00667a !important; color: #fff !important; }

/* cta-btn caption / sub already covered for non-primary; ensure primary
   cta-btn__sub is readable too */
:root[data-theme="light"] .cta-btn--primary .cta-btn__caption { color: #fff !important; }
:root[data-theme="light"] .cta-btn--primary .cta-btn__sub { color: rgba(255, 255, 255, 0.78) !important; }
:root[data-theme="light"] .cta-btn--primary {
  background: #c66a00 !important;
  border-color: #c66a00 !important;
}
:root[data-theme="light"] .cta-btn--primary:hover { background: #a35800 !important; border-color: #a35800 !important; }
:root[data-theme="light"] .cta-btn--cal { color: #1a1f2e !important; }

/* cta-form toggle + hint */
:root[data-theme="light"] .cta-form-toggle__txt { color: #00667a !important; }
:root[data-theme="light"] .cta-form-toggle__chev { color: #00667a !important; }
:root[data-theme="light"] .cta-form__hint { color: rgba(10, 30, 60, 0.6) !important; }
:root[data-theme="light"] .cta-form__submit {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}
:root[data-theme="light"] .cta-form__submit:hover { background: #c66a00 !important; border-color: #c66a00 !important; }

/* dev-term (terminal hero callout below resume? — a chrome-style box) */
:root[data-theme="light"] .dev-term {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border-color: rgba(10, 30, 60, 0.12) !important;
}
:root[data-theme="light"] .dev-term__chrome {
  background: linear-gradient(180deg, #f0ece2 0%, #e6e0d2 100%) !important;
  border-color: rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .dev-term__path { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .dev-term__body { color: rgba(20, 30, 50, 0.82) !important; }
:root[data-theme="light"] .dev-term__line { color: rgba(20, 30, 50, 0.82) !important; }
:root[data-theme="light"] .dev-term__user,
:root[data-theme="light"] .user { color: #00667a !important; }
:root[data-theme="light"] .dev-term__prompt { color: #1f8a3e !important; }
:root[data-theme="light"] .dev-term__cmd { color: #b16fc6 !important; }
:root[data-theme="light"] .dev-term__output { color: rgba(20, 30, 50, 0.78) !important; }

/* ============================================================
   Hotfix #5 — commit graph meta + btn-ghost.magnetic
   ============================================================ */

/* GitHub commit graph meta line ("9 repos · 0 followers · 0 following") */
:root[data-theme="light"] .commit-graph-meta,
:root[data-theme="light"] .commit-graph-meta span,
:root[data-theme="light"] .commit-graph-meta a {
  color: rgba(10, 30, 60, 0.7) !important;
}

/* btn-ghost.magnetic combo — magnetic class adds another class which slightly
   increases specificity; ensure ghost styling wins. */
:root[data-theme="light"] a.btn.btn-ghost.magnetic,
:root[data-theme="light"] a.btn-ghost.magnetic,
:root[data-theme="light"] button.btn.btn-ghost.magnetic {
  background: transparent !important;
  color: #00667a !important;
  border: 1px solid #00667a !important;
}
:root[data-theme="light"] a.btn.btn-ghost.magnetic:hover { background: rgba(0, 122, 144, 0.08) !important; color: #003f4a !important; }

/* "live" badge inside commit-graph meta (proj-card or other) */
:root[data-theme="light"] .proj-card__status--live {
  background: rgba(31, 138, 62, 0.10) !important;
  border-color: rgba(31, 138, 62, 0.55) !important;
  color: #1f8a3e !important;
  text-shadow: none !important;
}

/* commit-graph-label badge ("live") */
:root[data-theme="light"] .commit-graph-label,
:root[data-theme="light"] .commit-graph-label span {
  color: #1f8a3e !important;
  background: rgba(31, 138, 62, 0.08) !important;
  border-color: rgba(31, 138, 62, 0.4) !important;
}

/* hero-stats strong numerals: darken from brand orange for AA contrast */
:root[data-theme="light"] .hero-stats .stat strong {
  color: #c66a00 !important;
  text-shadow: none !important;
}

/* ============================================================
   Hotfix #6 — HUD floating widget (top-right diagnostic panel)
   ============================================================ */
:root[data-theme="light"] .hud {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(10, 30, 60, 0.18) !important;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.12) !important;
  color: #1a1f2e !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
  backdrop-filter: blur(8px) saturate(140%) !important;
}
:root[data-theme="light"] .hud__head,
:root[data-theme="light"] .hud__row { color: #1a1f2e !important; }
:root[data-theme="light"] .hud__label { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .hud__val { color: #00667a !important; text-shadow: none !important; }
:root[data-theme="light"] .hud__val--online { color: #1f8a3e !important; }
:root[data-theme="light"] .hud__val--warn,
:root[data-theme="light"] .hud__val--fps { color: #c66a00 !important; }
:root[data-theme="light"] .hud__dot {
  background: var(--brand) !important;
}
:root[data-theme="light"] .hud__bar {
  background: rgba(10, 30, 60, 0.08) !important;
}
:root[data-theme="light"] .hud__bar-fill {
  background: linear-gradient(90deg, var(--brand), #c66a00) !important;
}
:root[data-theme="light"] .hud__foot,
:root[data-theme="light"] .hud__now {
  color: rgba(10, 30, 60, 0.7) !important;
  border-top-color: rgba(10, 30, 60, 0.08) !important;
}
:root[data-theme="light"] .hud__now-label { color: #1f8a3e !important; }
:root[data-theme="light"] .hud__now-pulse { background: #1f8a3e !important; box-shadow: 0 0 6px #1f8a3e !important; }

/* Scroll-indicator dots on right edge */
:root[data-theme="light"] .scroll-indicator__dot {
  background: rgba(10, 30, 60, 0.15) !important;
  border-color: rgba(10, 30, 60, 0.25) !important;
}
:root[data-theme="light"] .scroll-indicator__dot.is-active,
:root[data-theme="light"] .scroll-indicator__dot:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 8px rgba(255, 144, 0, 0.5) !important;
}
:root[data-theme="light"] .scroll-indicator__label {
  background: #1a1f2e !important;
  color: #fff !important;
}

/* Top scroll-progress bar (the colored bar at very top) */
:root[data-theme="light"] .scroll-progress {
  background: rgba(10, 30, 60, 0.08) !important;
}
:root[data-theme="light"] .scroll-progress__fill {
  background: linear-gradient(90deg, var(--brand), #c66a00, #ff2bd6) !important;
}

/* Floating "scroll to top" button */
:root[data-theme="light"] .gototop a,
:root[data-theme="light"] .js-gotop {
  background: #1a1f2e !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 6px 18px rgba(10, 30, 60, 0.25) !important;
}
:root[data-theme="light"] .gototop a:hover { background: var(--brand) !important; color: #fff !important; }

/* Hero cover image: hide on light (CSS fallback in case JS doesn't fire) */
:root[data-theme="light"] #fh5co-header,
:root[data-theme="light"] #fh5co-header.fh5co-cover {
  background-image: none !important;
  background: linear-gradient(180deg, #f6f4ee 0%, #efece4 100%) !important;
}

/* Hero overlay sub-layers — `.overlay` is a solid 90% orange wash that
   gives the dark theme its sunset look but turns the whole hero brown on
   light. Make it nearly transparent so the warm-paper bg shows through. */
:root[data-theme="light"] #fh5co-header .overlay,
:root[data-theme="light"] .fh5co-cover .overlay {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 122, 144, 0.08), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(255, 144, 0, 0.06), transparent 60%),
    transparent !important;
}

/* Cyan grid drift behind the hero — keep but soften */
:root[data-theme="light"] #fh5co-header .tech-grid {
  background-image:
    linear-gradient(rgba(0, 122, 144, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 144, 0.08) 1px, transparent 1px) !important;
  opacity: 0.6;
}

/* Scanline + cyan sweep — keep but tone down */
:root[data-theme="light"] #fh5co-header .scanline {
  background: repeating-linear-gradient(
    0deg,
    rgba(10, 30, 60, 0.025) 0px,
    rgba(10, 30, 60, 0.025) 1px,
    transparent 1px,
    transparent 3px
  ) !important;
  mix-blend-mode: multiply !important;
}
:root[data-theme="light"] #fh5co-header .scanline::before {
  background: linear-gradient(90deg, transparent, #00667a, transparent) !important;
  opacity: 0.4 !important;
}

/* ============================================================
   Hotfix #7 — Resume section headers (exp-group + exp-card chrome)
   The original .exp-card kept a dark gradient even in light mode for
   contrast against the light section bg. The CHROME header on top of
   each card was forced to dark too — which looks fine if you keep the
   card dark. But the "// experience.log" group label and the timeline
   spine were tuned for dark bg and don't read on cream.
   ============================================================ */

/* Section-level: ensure #fh5co-resume background actually goes light.
   The legacy rule at line 82 uses !important — match specificity. */
:root[data-theme="light"] #fh5co-resume,
:root[data-theme="light"] #fh5co-resume.fh5co-bg-color {
  background: linear-gradient(180deg, #f6f4ee 0%, #efece4 100%) !important;
}

/* "// experience.log" / "// education.log" group label */
:root[data-theme="light"] .exp-group__label {
  color: #00667a !important;
}
:root[data-theme="light"] .exp-group__label::after {
  background: linear-gradient(90deg, rgba(0, 122, 144, 0.4), transparent) !important;
}

/* "6 entries" / "1 entry" count pill — already styled but ensure final */
:root[data-theme="light"] .exp-group__count {
  background: rgba(0, 122, 144, 0.08) !important;
  border: 1px solid rgba(0, 122, 144, 0.35) !important;
  color: #00667a !important;
}

/* Vertical timeline spine */
:root[data-theme="light"] .exp-group::before {
  background: linear-gradient(180deg, #00667a 0%, var(--brand) 100%) !important;
  box-shadow: 0 0 10px rgba(0, 122, 144, 0.25) !important;
  opacity: 0.7 !important;
}

/* Timeline dot on each exp-item */
:root[data-theme="light"] .exp-item__dot {
  background: linear-gradient(135deg, #00667a, var(--brand)) !important;
  border: 2px solid #f6f4ee !important;
  box-shadow: 0 0 0 2px rgba(0, 122, 144, 0.3), 0 0 12px rgba(0, 122, 144, 0.4) !important;
}
:root[data-theme="light"] .exp-item__dot::after {
  background: rgba(255, 255, 255, 0.6) !important;
}
:root[data-theme="light"] .exp-item__dot--edu {
  background: linear-gradient(135deg, var(--brand), #ff2bd6) !important;
}
:root[data-theme="light"] .exp-item:hover .exp-item__dot {
  box-shadow: 0 0 0 3px rgba(0, 122, 144, 0.4), 0 0 18px rgba(0, 122, 144, 0.55) !important;
}

/* Card chrome: card body went light (per .exp-card override at 4519),
   so the dark chrome bar on top now looks mismatched.
   Make the chrome match the light palette. */
:root[data-theme="light"] .exp-card__chrome {
  background: linear-gradient(180deg, #f0ece2 0%, #e6e0d2 100%) !important;
  border-bottom: 1px solid rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .exp-card__path {
  color: rgba(10, 30, 60, 0.55) !important;
}
:root[data-theme="light"] .exp-card__path .tab-active {
  color: #00667a !important;
  border-bottom: 1px solid #00667a !important;
}
:root[data-theme="light"] .exp-card__period {
  color: #c66a00 !important;
  background: rgba(255, 144, 0, 0.08) !important;
  border: 1px solid rgba(184, 92, 0, 0.45) !important;
}

/* Exp-card body content */
:root[data-theme="light"] .exp-card__body { color: #1a1f2e !important; }
:root[data-theme="light"] .exp-card__company {
  color: #00667a !important;
}
:root[data-theme="light"] .exp-card--edu .exp-card__period {
  color: #b85c00 !important;
}

/* Education section uses same group label class */
:root[data-theme="light"] .exp-group__label--edu { color: #b85c00 !important; }
:root[data-theme="light"] .exp-group__label--edu::after { background: linear-gradient(90deg, rgba(184, 92, 0, 0.4), transparent) !important; }

/* ============================================================
   Hotfix #8 — About Me section internals
   ============================================================ */

/* About panel (right-column bio + CTA) */
:root[data-theme="light"] .about-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border: 1px solid rgba(10, 30, 60, 0.12) !important;
  box-shadow: 0 12px 32px rgba(10, 30, 60, 0.08) !important;
  color: #1a1f2e !important;
}
:root[data-theme="light"] .about-panel__label {
  color: #00667a !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .about-panel__title {
  color: #1a1f2e !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .about-panel__lead,
:root[data-theme="light"] .about-panel p { color: rgba(20, 30, 50, 0.82) !important; }
:root[data-theme="light"] .about-panel__lead strong,
:root[data-theme="light"] .about-panel p strong { color: #00667a !important; }

/* About pillars (checkmark list) */
:root[data-theme="light"] .about-pillars li { color: #1a1f2e !important; }
:root[data-theme="light"] .about-pillars__k {
  color: #1f8a3e !important;
  text-shadow: none !important;
}

/* Profile config card (the ~/profile.config terminal pane) */
:root[data-theme="light"] .profile-config {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border: 1px solid rgba(10, 30, 60, 0.12) !important;
  box-shadow: 0 12px 32px rgba(10, 30, 60, 0.08), 0 0 24px rgba(0, 122, 144, 0.04) !important;
}
:root[data-theme="light"] .profile-config__chrome {
  background: linear-gradient(180deg, #f0ece2 0%, #e6e0d2 100%) !important;
  border-bottom: 1px solid rgba(10, 30, 60, 0.1) !important;
}
:root[data-theme="light"] .profile-config__path { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .profile-config__path .tab-active {
  color: #00667a !important;
  border-bottom-color: #00667a !important;
}
:root[data-theme="light"] .profile-config__status {
  background: rgba(31, 138, 62, 0.08) !important;
  border-color: rgba(31, 138, 62, 0.45) !important;
  color: #1f8a3e !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .profile-config__pulse {
  background: #1f8a3e !important;
  box-shadow: 0 0 8px #1f8a3e !important;
}
:root[data-theme="light"] .profile-config__body { color: #1a1f2e !important; }

/* cfg-row internals: key = value */
:root[data-theme="light"] .cfg-row { border-bottom-color: rgba(10, 30, 60, 0.06) !important; }
:root[data-theme="light"] .cfg-key { color: #b16fc6 !important; }
:root[data-theme="light"] .cfg-op { color: rgba(10, 30, 60, 0.5) !important; }
:root[data-theme="light"] .cfg-val { color: rgba(20, 30, 50, 0.85) !important; }
:root[data-theme="light"] .cfg-val--str { color: #8a6f00 !important; }
:root[data-theme="light"] .cfg-val--arr { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .cfg-link { color: #00667a !important; }
:root[data-theme="light"] .cfg-link:hover { color: #003f4a !important; border-bottom-color: #00667a !important; }

/* Socials row inside profile-config */
:root[data-theme="light"] .cfg-socials a {
  color: rgba(10, 30, 60, 0.65) !important;
  background: rgba(0, 122, 144, 0.04) !important;
  border: 1px solid rgba(0, 122, 144, 0.25) !important;
}
:root[data-theme="light"] .cfg-socials a:hover {
  color: #00667a !important;
  background: rgba(0, 122, 144, 0.1) !important;
  border-color: #00667a !important;
  box-shadow: 0 0 10px rgba(0, 122, 144, 0.25) !important;
}

/* The about section's two inner cards row (px-card variants paired in row) */
:root[data-theme="light"] .px-principles li {
  color: #1a1f2e !important;
  border-bottom-color: rgba(10, 30, 60, 0.06) !important;
}
:root[data-theme="light"] .px-principles__num {
  background: rgba(0, 122, 144, 0.06) !important;
  border-color: rgba(0, 122, 144, 0.3) !important;
  color: #00667a !important;
  text-shadow: none !important;
}

/* ============================================================
   Hotfix #9 — Skills section "Tools & Stack" sub-area
   ============================================================ */

/* Skills section background (the legacy rule pins it dark) */
:root[data-theme="light"] #fh5co-skills {
  background: linear-gradient(180deg, #f6f4ee 0%, #efece4 100%) !important;
}

/* Tools & Stack heading "fh5co-heading-sm" variant */
:root[data-theme="light"] #fh5co-skills .fh5co-heading.fh5co-heading-sm h2,
:root[data-theme="light"] .fh5co-heading.fh5co-heading-sm h2 {
  color: #1a1f2e !important;
  text-shadow: none !important;
}

/* Stack-grid containers */
:root[data-theme="light"] .stack-group {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%) !important;
  border: 1px solid rgba(10, 30, 60, 0.12) !important;
}
:root[data-theme="light"] .stack-group:hover {
  border-color: rgba(0, 122, 144, 0.4) !important;
  box-shadow: 0 6px 22px rgba(0, 122, 144, 0.12) !important;
}
:root[data-theme="light"] .stack-group__label {
  color: #00667a !important;
  border-bottom-color: rgba(0, 122, 144, 0.18) !important;
}

/* Tool badges — base variant (default = "tech tooling") */
:root[data-theme="light"] .tool-badge {
  background: rgba(0, 122, 144, 0.06) !important;
  border: 1px solid rgba(0, 122, 144, 0.35) !important;
  color: #00667a !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .tool-badge:hover {
  background: #00667a !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(0, 122, 144, 0.4) !important;
}
:root[data-theme="light"] .tool-badge.tool-ai {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.12), rgba(255, 43, 214, 0.10)) !important;
  border-color: rgba(184, 92, 0, 0.5) !important;
  color: #b85c00 !important;
}
:root[data-theme="light"] .tool-badge.tool-ai:hover {
  background: linear-gradient(135deg, #c66a00, #b22299) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(198, 106, 0, 0.4) !important;
}
:root[data-theme="light"] .tool-badge.tool-mobile {
  background: rgba(255, 144, 0, 0.08) !important;
  border-color: rgba(184, 92, 0, 0.45) !important;
  color: #b85c00 !important;
}
:root[data-theme="light"] .tool-badge.tool-mobile:hover {
  background: #c66a00 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(198, 106, 0, 0.4) !important;
}

/* Skill cards (the cards above Tools & Stack — tier labels in light mode) */
:root[data-theme="light"] .skill-card__list li { color: #1a1f2e !important; }
:root[data-theme="light"] .skill-tier--primary {
  color: #00667a !important;
  border-color: rgba(0, 122, 144, 0.55) !important;
  background: rgba(0, 122, 144, 0.06) !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .skill-tier--strong {
  color: rgba(0, 102, 122, 0.78) !important;
  border-color: rgba(0, 122, 144, 0.3) !important;
  background: rgba(0, 122, 144, 0.03) !important;
}
:root[data-theme="light"] .skill-tier--working {
  color: rgba(10, 30, 60, 0.55) !important;
  border-color: rgba(10, 30, 60, 0.2) !important;
  background: transparent !important;
}
:root[data-theme="light"] .skill-tier--brand {
  color: #c66a00 !important;
  border-color: rgba(198, 106, 0, 0.5) !important;
  background: rgba(198, 106, 0, 0.06) !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .skill-tier--ai {
  color: #b22299 !important;
  border-color: rgba(178, 34, 153, 0.5) !important;
  background: rgba(178, 34, 153, 0.05) !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .skill-tier-key--primary { color: #00667a !important; border-color: rgba(0, 122, 144, 0.5) !important; }
:root[data-theme="light"] .skill-tier-key--strong  { color: rgba(0, 102, 122, 0.78) !important; border-color: rgba(0, 122, 144, 0.3) !important; }
:root[data-theme="light"] .skill-tier-key--working { color: rgba(10, 30, 60, 0.55) !important; border-color: rgba(10, 30, 60, 0.2) !important; }

/* =======================================================
 *  Polish pass: featured chip, outcome chip, linked stat
 * ======================================================= */
.exp-chip--featured {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.18), rgba(255, 43, 214, 0.12)) !important;
  border-color: rgba(255, 144, 0, 0.55) !important;
  color: #ffb352 !important;
  text-shadow: 0 0 6px rgba(255, 144, 0, 0.35);
  font-weight: 700;
}
/* outcome chip sits on its own sub-row under the case-name so the
   original tree | name | tags | LIVE single-line layout stays intact */
.case-studies__list li { grid-template-rows: auto auto; row-gap: 2px; }
.case-studies__list li > .case-tree {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 2px;
}
.case-outcome {
  grid-column: 2 / -1;
  grid-row: 2;
  justify-self: start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(124, 255, 140, 0.85);
  white-space: nowrap;
}
.case-outcome::before {
  content: "─ ";
  color: rgba(255, 255, 255, 0.35);
}

/* "1 AI-Augmented Dev" linked stat tile — looks like the sibling .stat
   divs but is clickable and points to the strongest AI case study. */
.hero-stats .stat--linked {
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.hero-stats .stat--linked:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent);
}
.stat__sub {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: color-mix(in srgb, var(--brand) 85%, transparent);
  margin-top: 2px;
  text-transform: lowercase;
}

/* Light-theme overrides */
:root[data-theme="light"] .exp-chip--featured {
  background: linear-gradient(135deg, rgba(255, 144, 0, 0.18), rgba(198, 106, 0, 0.12)) !important;
  border-color: #c66a00 !important;
  color: #8a4a00 !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .case-outcome {
  color: #1f8a3e !important;
}
:root[data-theme="light"] .case-outcome::before {
  color: rgba(10, 30, 60, 0.4) !important;
}
:root[data-theme="light"] .stat__sub {
  color: #c66a00 !important;
}
:root[data-theme="light"] .hero-stats .stat--linked:hover {
  border-color: #c66a00 !important;
  box-shadow: 0 0 12px rgba(198, 106, 0, 0.45) !important;
}

/* Mobile: outcome flows in col 2 row 4 (after tags + status); reset
   the desktop tree span because the mobile grid already stacks cleanly. */
@media (max-width: 768px) {
  .case-studies__list li {
    grid-template-rows: auto auto auto auto;
  }
  .case-studies__list li > .case-tree { grid-row: 1; padding-top: 0; }
  .case-outcome { grid-column: 2; grid-row: 4; }
}

/* =======================================================
 *  Hyperframe — reusable HUD-style frame chrome
 *
 *  Drop in any container. Renders 4 corner L-brackets, a
 *  pulsing halo, and an inert (animated) inner trace line.
 *  Designed to feel like a sci-fi HUD plate without making
 *  the content inside any harder to scan.
 *
 *  Usage:
 *    <div class="hero-stats hyperframe">
 *      <span class="hyperframe__corner hyperframe__corner--tl" aria-hidden="true"></span>
 *      <span class="hyperframe__corner hyperframe__corner--tr" aria-hidden="true"></span>
 *      <span class="hyperframe__corner hyperframe__corner--bl" aria-hidden="true"></span>
 *      <span class="hyperframe__corner hyperframe__corner--br" aria-hidden="true"></span>
 *      <span class="hyperframe__halo" aria-hidden="true"></span>
 *      ...existing content...
 *    </div>
 * ======================================================= */
.hyperframe {
  position: relative;
  isolation: isolate;
}
.hyperframe__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.55));
  z-index: 5; /* sit above any sibling content inside the hyperframe */
}
.hyperframe__corner--tl { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.hyperframe__corner--tr { top: -12px; right: -12px; border-left: none; border-bottom: none; }
.hyperframe__corner--bl { bottom: -12px; left: -12px; border-right: none; border-top: none; }
.hyperframe__corner--br { bottom: -12px; right: -12px; border-left: none; border-top: none; }

/* tiny radar tick on each corner */
.hyperframe__corner::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}
.hyperframe__corner--tl::after { top: -3px; left: -3px; }
.hyperframe__corner--tr::after { top: -3px; right: -3px; }
.hyperframe__corner--bl::after { bottom: -3px; left: -3px; }
.hyperframe__corner--br::after { bottom: -3px; right: -3px; }

.hyperframe__halo {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  pointer-events: none;
  border-radius: inherit;
  animation: hyperframe-pulse 3.6s ease-in-out infinite;
  z-index: 4; /* below corners but above container background */
}
@keyframes hyperframe-pulse {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(0, 229, 255, 0.18),
      inset 0 0 14px rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.22);
  }
  50% {
    box-shadow:
      0 0 32px rgba(0, 229, 255, 0.34),
      inset 0 0 22px rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.42);
  }
}

/* Brand-orange variant for hero-stats so the four cyan tile borders
   don't visually compete with cyan brackets. */
.hyperframe--brand .hyperframe__corner {
  border-color: var(--brand);
  filter: drop-shadow(0 0 6px rgba(255, 144, 0, 0.55));
}
.hyperframe--brand .hyperframe__corner::after {
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}
.hyperframe--brand .hyperframe__halo {
  border-color: rgba(255, 144, 0, 0.22);
  animation-name: hyperframe-pulse-brand;
}
@keyframes hyperframe-pulse-brand {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(255, 144, 0, 0.18),
      inset 0 0 14px rgba(255, 144, 0, 0.06);
    border-color: rgba(255, 144, 0, 0.22);
  }
  50% {
    box-shadow:
      0 0 32px rgba(255, 144, 0, 0.34),
      inset 0 0 22px rgba(255, 144, 0, 0.12);
    border-color: rgba(255, 144, 0, 0.42);
  }
}

/* Light-theme overrides — brackets need darker hue to stay visible on cream */
:root[data-theme="light"] .hyperframe__corner {
  border-color: #007a90 !important;
  filter: drop-shadow(0 0 4px rgba(0, 102, 122, 0.45)) !important;
}
:root[data-theme="light"] .hyperframe__corner::after {
  background: #007a90 !important;
  box-shadow: 0 0 6px rgba(0, 102, 122, 0.5) !important;
}
:root[data-theme="light"] .hyperframe--brand .hyperframe__corner {
  border-color: #c66a00 !important;
  filter: drop-shadow(0 0 4px rgba(198, 106, 0, 0.45)) !important;
}
:root[data-theme="light"] .hyperframe--brand .hyperframe__corner::after {
  background: #c66a00 !important;
  box-shadow: 0 0 6px rgba(198, 106, 0, 0.5) !important;
}
:root[data-theme="light"] .hyperframe__halo {
  border-color: rgba(10, 30, 60, 0.18) !important;
}

/* Reduced-motion users get the static frame, no pulse */
@media (prefers-reduced-motion: reduce) {
  .hyperframe__halo { animation: none; }
}

/* Mobile: pull the brackets closer to the content so they don't
   collide with viewport edges on narrow screens */
@media (max-width: 480px) {
  .hyperframe__corner { width: 14px; height: 14px; }
  .hyperframe__corner--tl { top: -8px; left: -8px; }
  .hyperframe__corner--tr { top: -8px; right: -8px; }
  .hyperframe__corner--bl { bottom: -8px; left: -8px; }
  .hyperframe__corner--br { bottom: -8px; right: -8px; }
}

/* =======================================================
 *  Holographic shimmer — animated rainbow gradient sweep
 *  clipped to the glyph shape of hero <h1>. Cyan → white →
 *  brand-orange → white → cyan, ~7s loop, very slow so it
 *  reads as "alive" rather than "distracting."
 * ======================================================= */
#fh5co-header h1 span {
  background-image: linear-gradient(
    90deg,
    var(--cyan) 0%,
    #ffffff 22%,
    var(--brand) 50%,
    #ffffff 78%,
    var(--cyan) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: holo-shimmer 7s ease-in-out infinite;
  /* Keep the existing glow — text-shadow renders off the glyph
     shape, not the fill color, so the cyan halo behind the letters
     stays intact even though the fill itself is transparent. */
}
@keyframes holo-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Light-theme: dial down the white midpoints (white on cream
   disappears) and lead with darker brand + cyan-dim. */
:root[data-theme="light"] #fh5co-header h1 span {
  background-image: linear-gradient(
    90deg,
    #007a90 0%,
    #1a1a1a 22%,
    #c66a00 50%,
    #1a1a1a 78%,
    #007a90 100%
  ) !important;
}

@media (prefers-reduced-motion: reduce) {
  #fh5co-header h1 span { animation: none; }
}

/* (Removed redundant .dot-nav — the existing JS-built .siderail at
   tech-fx.js:1045 already does this. .dot-nav was duplicating it.) */

/* =======================================================
 *  Hero particle field
 *
 *  12 small scattered "stars" rendered via stacked
 *  radial-gradients on #fh5co-header::before. Twinkles via
 *  opacity pulse + a tiny translateY drift. Reads as a
 *  starfield/holographic dust behind the hero. Sits just
 *  above the background image but below the overlay grid
 *  and the scan beam (::after, z-index 4).
 * ======================================================= */
#fh5co-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    radial-gradient(circle 1.5px at  8% 22%, rgba(0, 229, 255, 0.70), transparent 100%),
    radial-gradient(circle 1px   at 17% 68%, rgba(255, 144, 0, 0.55), transparent 100%),
    radial-gradient(circle 2px   at 28% 38%, rgba(0, 229, 255, 0.55), transparent 100%),
    radial-gradient(circle 1.5px at 41% 78%, rgba(255, 43, 214, 0.45), transparent 100%),
    radial-gradient(circle 1px   at 53% 28%, rgba(0, 229, 255, 0.60), transparent 100%),
    radial-gradient(circle 2px   at 62% 58%, rgba(255, 144, 0, 0.50), transparent 100%),
    radial-gradient(circle 1.5px at 74% 18%, rgba(0, 229, 255, 0.65), transparent 100%),
    radial-gradient(circle 1px   at 81% 78%, rgba(255, 43, 214, 0.40), transparent 100%),
    radial-gradient(circle 2px   at 89% 38%, rgba(0, 229, 255, 0.60), transparent 100%),
    radial-gradient(circle 1.5px at 94% 88%, rgba(255, 144, 0, 0.45), transparent 100%),
    radial-gradient(circle 1px   at 35% 12%, rgba(0, 229, 255, 0.55), transparent 100%),
    radial-gradient(circle 1.5px at 68% 92%, rgba(255, 43, 214, 0.40), transparent 100%);
  animation: hero-particle-twinkle 7s ease-in-out infinite;
}
@keyframes hero-particle-twinkle {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  33%      { opacity: 0.85; }
  66%      { opacity: 0.65; transform: translateY(-2px); }
}
/* Light theme — dial down brightness so particles don't blow out on cream */
:root[data-theme="light"] #fh5co-header::before {
  background-image:
    radial-gradient(circle 1.5px at  8% 22%, rgba(0, 102, 122, 0.55), transparent 100%),
    radial-gradient(circle 1px   at 17% 68%, rgba(198, 106, 0, 0.45), transparent 100%),
    radial-gradient(circle 2px   at 28% 38%, rgba(0, 102, 122, 0.45), transparent 100%),
    radial-gradient(circle 1.5px at 41% 78%, rgba(178, 34, 153, 0.40), transparent 100%),
    radial-gradient(circle 1px   at 53% 28%, rgba(0, 102, 122, 0.50), transparent 100%),
    radial-gradient(circle 2px   at 62% 58%, rgba(198, 106, 0, 0.40), transparent 100%),
    radial-gradient(circle 1.5px at 74% 18%, rgba(0, 102, 122, 0.55), transparent 100%),
    radial-gradient(circle 1px   at 81% 78%, rgba(178, 34, 153, 0.35), transparent 100%),
    radial-gradient(circle 2px   at 89% 38%, rgba(0, 102, 122, 0.50), transparent 100%),
    radial-gradient(circle 1.5px at 94% 88%, rgba(198, 106, 0, 0.40), transparent 100%),
    radial-gradient(circle 1px   at 35% 12%, rgba(0, 102, 122, 0.45), transparent 100%),
    radial-gradient(circle 1.5px at 68% 92%, rgba(178, 34, 153, 0.35), transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  #fh5co-header::before { animation: none; opacity: 0.65; }
}

/* =======================================================
 *  Hero power-on scan beam
 *
 *  A horizontal cyan→orange→cyan beam sweeps once from
 *  top to bottom across the hero on page load (1.4s, 0.4s
 *  delay so it fires after the initial paint). Reads as a
 *  holographic projector booting / a CT scan of the
 *  subject. One-time, no loop, so it never gets annoying.
 * ======================================================= */
#fh5co-header {
  position: relative;
}
#fh5co-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.55) 25%,
    rgba(255, 144, 0, 0.7) 50%,
    rgba(0, 229, 255, 0.55) 75%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(0, 229, 255, 0.5),
    0 0 30px rgba(0, 229, 255, 0.18);
  filter: blur(0.5px);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  animation: hero-scan-sweep 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.5s 1 forwards;
}
@keyframes hero-scan-sweep {
  0%   { top: -3px;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
:root[data-theme="light"] #fh5co-header::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 102, 122, 0.55) 25%,
    rgba(198, 106, 0, 0.7) 50%,
    rgba(0, 102, 122, 0.55) 75%,
    transparent 100%
  ) !important;
  box-shadow:
    0 0 8px rgba(0, 102, 122, 0.4),
    0 0 18px rgba(0, 102, 122, 0.15) !important;
}
@media (prefers-reduced-motion: reduce) {
  #fh5co-header::after { display: none; }
}

/* =======================================================
 *  Armed-state pulse on the nav "Hire Me" CTA
 *
 *  Two signals stacked:
 *  - Ripple ring emanating outward from the button (says
 *    "armed" without nagging)
 *  - Green indicator dot in the top-right (says "ready")
 *
 *  Both loop slowly enough to read as ambient, not anxious.
 *  The button itself stays orange-on-dark / brand-on-light;
 *  this just frames it.
 * ======================================================= */
.fh5co-nav-links li a.hire-btn {
  position: relative !important;
  box-shadow: 0 0 14px rgba(255, 144, 0, 0.35);
}
/* Ripple ring — transform/opacity only, so it stays on the compositor.
   The old version animated box-shadow, which repainted the always-visible
   nav button on every frame of the 2.8s loop. */
.fh5co-nav-links li a.hire-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 144, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: hire-btn-ripple 2.8s ease-out infinite;
}
:root.theme-xeno .fh5co-nav-links li a.hire-btn::after {
  border-color: rgba(255, 24, 64, 0.6);
}
.fh5co-nav-links li a.hire-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7cff8c;
  box-shadow: 0 0 6px #7cff8c, 0 0 12px rgba(124, 255, 140, 0.55);
  animation: hire-btn-dot 1.6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes hire-btn-ripple {
  0%        { opacity: 0.8; transform: scale(1); }
  70%, 100% { opacity: 0;   transform: scale(1.25, 1.6); }
}
@keyframes hire-btn-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.65); }
}

/* Light theme: orange-against-cream is fine, just dampen the glow + ring
   so it doesn't blow out against the brighter background */
:root[data-theme="light"] .fh5co-nav-links li a.hire-btn {
  box-shadow: 0 0 10px rgba(255, 144, 0, 0.25);
}
:root[data-theme="light"] .fh5co-nav-links li a.hire-btn::after {
  border-color: rgba(255, 144, 0, 0.45);
}
:root[data-theme="light"] .fh5co-nav-links li a.hire-btn::before {
  background: #1f8a3e;
  box-shadow: 0 0 6px rgba(31, 138, 62, 0.7), 0 0 12px rgba(31, 138, 62, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .fh5co-nav-links li a.hire-btn,
  .fh5co-nav-links li a.hire-btn::before,
  .fh5co-nav-links li a.hire-btn::after { animation: none; }
}

/* =======================================================
 *  LIVE-pill streaming highlight
 *
 *  .case-status--live (work-tree case studies) and
 *  .proj-card__status--live (work grid) get a soft green
 *  highlight that streams across the pill every ~4.5s.
 *  Pairs with the existing pulsing dot (::before).
 *  Reads as "live data flowing" rather than just "label."
 * ======================================================= */
.case-status--live,
.proj-card__status--live {
  position: relative;
  overflow: hidden;
}
.case-status--live::after,
.proj-card__status--live::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(120, 255, 140, 0.42) 50%,
    transparent 100%);
  transform: translateX(-200%);
  animation: live-stream 4.5s linear infinite;
  pointer-events: none;
}
.proj-card__status--live::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(40, 200, 64, 0.4) 50%,
    transparent 100%);
}
@keyframes live-stream {
  from { transform: translateX(-200%); }
  to   { transform: translateX(380%); }
}
:root[data-theme="light"] .case-status--live::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(31, 138, 62, 0.28) 50%,
    transparent 100%) !important;
}
:root[data-theme="light"] .proj-card__status--live::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(31, 138, 62, 0.28) 50%,
    transparent 100%) !important;
}
@media (prefers-reduced-motion: reduce) {
  .case-status--live::after,
  .proj-card__status--live::after { display: none; }
}

/* =======================================================
 *  Chip sheen — single sweep across .exp-chip on hover.
 *  Doesn't touch .tech-chip (already uses ::before / ::after
 *  for the < /> markers); .cs-chip variant lives in
 *  case-study.css (same component, different stylesheet load).
 * ======================================================= */
.exp-chip {
  overflow: hidden;
}
.exp-chip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.45) 50%,
    transparent 100%);
  transform: translateX(-200%);
  pointer-events: none;
  border-radius: inherit;
}
.exp-chip:hover::after {
  animation: chip-sheen 0.85s ease-out forwards;
}
.exp-chip--featured:hover::after,
.exp-chip--ai:hover::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 144, 0, 0.5) 50%,
    transparent 100%);
}
@keyframes chip-sheen {
  from { transform: translateX(-200%); }
  to   { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) {
  .exp-chip::after { display: none; }
}

/* Work-tree case-name links: always-on slow holographic shimmer
   to draw the eye to the 8 case-study entries. */
.case-name--link {
  background-image: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--cyan) 35%,
    #ffffff 50%,
    var(--cyan) 65%,
    var(--cyan) 100%
  );
  background-size: 280% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: case-name-shimmer 9s ease-in-out infinite;
}
.case-name--link:hover {
  animation-duration: 1.8s; /* speed up the shimmer on hover */
}
@keyframes case-name-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
:root[data-theme="light"] .case-name--link {
  background-image: linear-gradient(
    90deg,
    #007a90 0%,
    #007a90 35%,
    #1a1a1a 50%,
    #007a90 65%,
    #007a90 100%
  ) !important;
}
@media (prefers-reduced-motion: reduce) {
  .case-name--link {
    animation: none;
    background-position: 0% 50%;
  }
}

/* =======================================================
 *  Viewport HUD — 4 fixed L-bracket frames pinned to the
 *  corners of the viewport (not the content). Looks like
 *  the visor of an alien-tech cockpit, frames everything.
 *  pointer-events:none so it doesn't intercept clicks.
 *  aria-hidden in markup. Pure decoration.
 * ======================================================= */
.viewport-hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60; /* above .cs-nav (50), below modals */
}
.viewport-hud__corner {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 2px solid var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.55));
  opacity: 0.62;
  animation: viewport-hud-breathe 5.5s ease-in-out infinite;
}
.viewport-hud__corner--tl { top: 14px;    left: 14px;   border-right: none; border-bottom: none; }
.viewport-hud__corner--tr { top: 14px;    right: 14px;  border-left: none;  border-bottom: none; }
.viewport-hud__corner--bl { bottom: 14px; left: 14px;   border-right: none; border-top: none;    }
.viewport-hud__corner--br { bottom: 14px; right: 14px;  border-left: none;  border-top: none;    }

/* tiny radar dot at each outer corner of each bracket */
.viewport-hud__corner::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}
.viewport-hud__corner--tl::after { top: -4px; left: -4px; }
.viewport-hud__corner--tr::after { top: -4px; right: -4px; }
.viewport-hud__corner--bl::after { bottom: -4px; left: -4px; }
.viewport-hud__corner--br::after { bottom: -4px; right: -4px; }

@keyframes viewport-hud-breathe {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4)); }
  50%      { opacity: 0.85; filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.7)); }
}

/* Light-theme: swap cyan for darker hue so brackets stay visible on cream */
:root[data-theme="light"] .viewport-hud__corner {
  border-color: #007a90 !important;
  filter: drop-shadow(0 0 6px rgba(0, 102, 122, 0.45)) !important;
}
:root[data-theme="light"] .viewport-hud__corner::after {
  background: #007a90 !important;
  box-shadow: 0 0 8px rgba(0, 102, 122, 0.5) !important;
}

@media (prefers-reduced-motion: reduce) {
  .viewport-hud__corner { animation: none; }
}

/* (Viewport-HUD readout removed — the existing .hud widget built by
   tech-fx.js already displays sys/time/fps/scroll/section/views/now,
   making the lat/lon readout redundant.) */

/* Calm-mode motion toggle — two flavors:
   1. As a .hud__row inside the existing .hud widget on index
   2. As a standalone fixed button on case studies
   Both share the .motion-toggle class. */
.motion-toggle {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.hud .motion-toggle {
  /* When inside .hud, mimic existing .hud__row layout — already done
     by the .hud__row class added in the JS markup. Just add hover hint. */
  border-top: 1px dashed rgba(0, 229, 255, 0.18);
  margin-top: 6px;
  padding-top: 8px;
}
.hud .motion-toggle:hover .motion-toggle__label {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}
.hud .motion-toggle:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__label {
  color: var(--brand);
  text-shadow: 0 0 6px rgba(255, 144, 0, 0.5);
}

/* Standalone variant — used on case studies (no .hud widget there) */
.motion-toggle--standalone {
  position: fixed;
  top: 60px;
  right: 22px;
  z-index: 65;
  width: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(0, 229, 255, 0.7);
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  gap: 6px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}
.motion-toggle--standalone:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
}
.motion-toggle--standalone:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.motion-toggle--standalone[aria-pressed="true"] {
  border-color: rgba(255, 144, 0, 0.45);
  color: var(--brand);
}
.motion-toggle__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cff8c;
  box-shadow: 0 0 6px #7cff8c;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__dot {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}
@media (max-width: 640px) {
  .motion-toggle--standalone { display: none; }
}

/* =======================================================
   NUCLEAR REDUCED-MOTION RULE
   When the user toggles the motion-toggle (or saved
   preference loads), <html data-motion="reduced"> turns
   off all animations site-wide. Transitions on hover etc
   stay intact so the site still feels responsive — just
   no more idle loops chewing CPU + attention.
   ======================================================= */
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  animation: none !important;
}

/* Hide on mobile (≤640px) — corners eat scarce visual real estate
   and would crowd the hero hard. Keep them on tablet+. */
@media (max-width: 640px) {
  .viewport-hud { display: none; }
}

/* Hide when printing */
@media print {
  .viewport-hud { display: none !important; }
}

/* =========================================================================
   PORTFOLIO CHAT — floating "ask me anything" widget. Theme-aware, mobile
   responsive, prefers-reduced-motion respected, no external API.
   ========================================================================= */
.pchat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  /* Above siderail (9996), HUD (9997), tech-tip (10005). Below
     command palette + dialogs which sit at 10000+. */
  z-index: 9998;
  font-family: 'JetBrains Mono', monospace;
}
/* When chat is open, dim the right-side siderail + HUD so their
   labels/tooltips don't show through the chat panel content. */
body.pchat-active .siderail,
body.pchat-active .hud,
body.pchat-active .viewport-hud {
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* -- Bubble -- */
.pchat__bubble {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cyan) 22%, transparent),
    color-mix(in srgb, var(--cyan) 8%, transparent));
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 0 22px color-mix(in srgb, var(--cyan) 32%, transparent);
  transition: transform 0.22s, box-shadow 0.22s;
  padding: 0;
  overflow: visible;
}
.pchat__bubble:hover,
.pchat__bubble:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45),
              0 0 32px color-mix(in srgb, var(--cyan) 50%, transparent);
}
.pchat__bubble:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
/* Stack chat-icon + close-icon at the bubble center. Default = chat shown,
   close hidden. When aria-expanded="true" (panel open), they swap. */
.pchat__bubble-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
  line-height: 1;
  pointer-events: none;
}
.pchat__bubble-icon--chat  { opacity: 1; transform: scale(1) rotate(0deg); }
.pchat__bubble-icon--close { opacity: 0; transform: scale(0.7) rotate(-45deg); }
.pchat__bubble[aria-expanded="true"] .pchat__bubble-icon--chat  { opacity: 0; transform: scale(0.7) rotate(45deg); }
.pchat__bubble[aria-expanded="true"] .pchat__bubble-icon--close { opacity: 1; transform: scale(1) rotate(0deg); }
.pchat__bubble-icon svg { display: block; }
.pchat__bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  animation: pchat-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pchat-pulse {
  0%   { transform: scale(0.92); opacity: 0.7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* -- Panel -- */
.pchat__panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  height: 540px;
  max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #0b1226 0%, #070a18 100%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 30px color-mix(in srgb, var(--cyan) 18%, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pchat-pop 0.22s ease-out;
}
.pchat__panel[hidden] { display: none; }
@keyframes pchat-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* -- Header -- */
.pchat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: linear-gradient(180deg, #0d1430, #0a1024);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pchat__head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--cyan);
  text-transform: lowercase;
}
.pchat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
  animation: pchat-blink 2s ease-in-out infinite;
}
@keyframes pchat-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.pchat__head-actions {
  display: inline-flex;
  gap: 4px;
}
/* Unified icon-button styling for all three header actions
   (browse / reset / close). */
.pchat__icon-btn {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
  color: rgba(230, 243, 255, 0.7);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
  padding: 0;
}
.pchat__icon-btn:hover,
.pchat__icon-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
.pchat__icon-btn[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
}
.pchat__close { font-size: 17px; }
.pchat__icon-btn svg { display: block; }

/* Browse view — toggled by header browse button; shows all FAQ entries
   grouped by category for discoverability. Replaces the chat body in
   the same panel space (no separate modal). */
.pchat__browse-view {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  font-size: 12.5px;
  color: rgba(230, 243, 255, 0.88);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--cyan) 40%, transparent) transparent;
}
.pchat__browse-view::-webkit-scrollbar { width: 6px; }
.pchat__browse-view::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--cyan) 40%, transparent); border-radius: 3px; }
.pchat__browse-head {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(230, 243, 255, 0.55);
  padding-bottom: 8px;
  border-bottom: 1px dashed color-mix(in srgb, var(--cyan) 22%, transparent);
  margin-bottom: 8px;
}
.pchat__browse-head strong { color: var(--cyan); }

/* Filter input — sticky at the top of the browse view as the user scrolls */
.pchat__browse-search-wrap {
  position: sticky;
  top: -14px;
  margin: 0 -14px 12px;
  padding: 6px 14px 10px;
  background: linear-gradient(180deg, #0b1226 0%, rgba(11, 18, 38, 0.96) 85%, rgba(11, 18, 38, 0));
  z-index: 2;
}
.pchat__browse-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent);
  color: #e6f3ff;
  padding: 7px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.pchat__browse-search::placeholder { color: rgba(230, 243, 255, 0.4); }
.pchat__browse-search:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 14%, transparent);
}
.pchat__browse-empty {
  display: block;
  font-size: 11px;
  color: rgba(230, 243, 255, 0.5);
  margin-top: 6px;
  font-style: italic;
}
:root[data-theme="light"] .pchat__browse-search-wrap {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 85%, rgba(255, 255, 255, 0));
}
:root[data-theme="light"] .pchat__browse-search { background: #fff; color: #1a1f2e; border-color: rgba(10, 30, 60, 0.18); }
.pchat__browse-cat {
  margin-bottom: 14px;
}
.pchat__browse-cat-title {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin: 0 0 6px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pchat__browse-cat-title::before { content: '// '; opacity: 0.65; }
.pchat__browse-cat-count {
  font-size: 9.5px;
  color: rgba(230, 243, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.5px;
}
.pchat__browse-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pchat__browse-row {
  text-align: left;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--cyan) 12%, transparent);
  color: rgba(230, 243, 255, 0.82);
  padding: 7px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.15s;
  line-height: 1.4;
}
.pchat__browse-row:hover,
.pchat__browse-row:focus-visible {
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 40%, transparent);
  color: var(--cyan);
  transform: translateX(2px);
}

/* Light theme overrides for the browse view */
:root[data-theme="light"] .pchat__browse-view { color: rgba(10, 30, 60, 0.85); }
:root[data-theme="light"] .pchat__browse-head { color: rgba(10, 30, 60, 0.6); }
:root[data-theme="light"] .pchat__browse-cat-title { color: var(--cyan-dim); }
:root[data-theme="light"] .pchat__browse-cat-count { color: rgba(10, 30, 60, 0.4); }
:root[data-theme="light"] .pchat__browse-row { color: rgba(10, 30, 60, 0.8); border-color: rgba(10, 30, 60, 0.1); }

/* -- Body / messages -- */
.pchat__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230, 243, 255, 0.9);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--cyan) 40%, transparent) transparent;
}
.pchat__body::-webkit-scrollbar { width: 6px; }
.pchat__body::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--cyan) 40%, transparent); border-radius: 3px; }

.pchat__welcome p {
  margin: 0 0 8px;
  color: rgba(230, 243, 255, 0.85);
}
.pchat__welcome-sub {
  font-size: 11.5px;
  color: rgba(230, 243, 255, 0.55) !important;
}
.pchat__welcome-sub a {
  color: var(--cyan);
  border-bottom: 1px dashed color-mix(in srgb, var(--cyan) 40%, transparent);
  text-decoration: none;
}

/* -- Suggestion chips -- */
.pchat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.pchat__sugg {
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
  color: rgba(230, 243, 255, 0.78);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: 0.18s;
  text-align: left;
}
.pchat__sugg:hover,
.pchat__sugg:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}

/* -- Messages -- */
.pchat__msg {
  display: flex;
  margin: 10px 0;
}
.pchat__msg--user { justify-content: flex-end; }
.pchat__msg--bot  { justify-content: flex-start; }
.pchat__msg-bubble {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.pchat__msg--user .pchat__msg-bubble {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cyan) 24%, transparent),
    color-mix(in srgb, var(--cyan) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  color: #eafdff;
  border-bottom-right-radius: 2px;
}
.pchat__msg--bot .pchat__msg-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--cyan) 18%, transparent);
  color: rgba(230, 243, 255, 0.92);
  border-bottom-left-radius: 2px;
}
.pchat__msg--bot .pchat__msg-bubble a {
  color: var(--cyan);
  border-bottom: 1px dashed color-mix(in srgb, var(--cyan) 40%, transparent);
  text-decoration: none;
}
.pchat__msg--bot .pchat__msg-bubble a:hover { border-bottom-style: solid; }
.pchat__msg--bot .pchat__msg-bubble code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--cyan);
}
.pchat__msg--bot .pchat__msg-bubble strong { color: #fff; }

/* Typing dots (3 pulsing) */
.pchat__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}
.pchat__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cyan) 60%, transparent);
  animation: pchat-dots 1.1s ease-in-out infinite;
}
.pchat__dots i:nth-child(2) { animation-delay: 0.18s; }
.pchat__dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes pchat-dots {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1); opacity: 1; }
}

/* "Did you mean?" suggestions row inside a fallback bot message —
   3 closest non-matching entries shown as clickable chips so a missed
   query has a rebound path. */
.pchat__fallback-related {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 4px;
}
.pchat__fallback-related .pchat__sugg {
  width: 100%;
  text-align: left;
}

/* Fallback action buttons (shown when no FAQ match) */
.pchat__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pchat__fallback-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: 4px;
  color: var(--cyan) !important;
  text-decoration: none !important;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  border-bottom-style: solid !important;
  transition: 0.18s;
}
.pchat__fallback-btn:hover {
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border-color: var(--cyan);
}
.pchat__fallback-btn--primary {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cyan) 24%, transparent),
    color-mix(in srgb, var(--brand) 14%, transparent));
  color: #fff !important;
  border-color: var(--cyan);
}

/* -- Form -- */
.pchat__form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.pchat__input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent);
  color: #e6f3ff;
  padding: 8px 10px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
}
.pchat__input::placeholder { color: rgba(230, 243, 255, 0.35); }
.pchat__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 14%, transparent);
}
.pchat__submit {
  background: linear-gradient(135deg, var(--cyan), var(--brand));
  color: var(--bg-dark);
  border: 0;
  border-radius: 5px;
  width: 38px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  transition: 0.18s;
  padding: 0;
  flex-shrink: 0;
}
.pchat__submit:hover,
.pchat__submit:focus-visible {
  filter: brightness(1.1);
  box-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 40%, transparent);
}

/* -- Browse-row search highlight -- */
.pchat__hl {
  background: color-mix(in srgb, var(--cyan) 30%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}
:root[data-theme="light"] .pchat__hl {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
  color: #1a1f2e;
}

/* -- Stack the "scroll to top" button above the chat bubble so they don't
   overlap. Chat bubble is 56px tall at bottom:24px; sit gototop 12px above. */
.gototop {
  bottom: 92px !important;
  right: 27px !important;
}

/* -- Mobile -- */
@media (max-width: 640px) {
  .pchat { bottom: 14px; right: 14px; }
  .pchat__bubble { width: 50px; height: 50px; font-size: 20px; }
  .pchat__panel {
    width: calc(100vw - 28px);
    height: calc(100vh - 130px);
    max-height: 600px;
    right: 0;
    bottom: 64px;
  }
  /* Bubble is 50px tall at bottom:14px on mobile — gototop sits above it. */
  .gototop {
    bottom: 74px !important;
    right: 14px !important;
  }
}

/* -- Light theme -- */
:root[data-theme="light"] .pchat__panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f3 100%);
  border-color: rgba(10, 30, 60, 0.18);
  box-shadow: 0 20px 50px rgba(10, 30, 60, 0.15), 0 0 22px color-mix(in srgb, var(--cyan) 15%, transparent);
}
:root[data-theme="light"] .pchat__head { background: linear-gradient(180deg, #f0ece2, #e6e0d2); border-bottom-color: rgba(10, 30, 60, 0.1); }
:root[data-theme="light"] .pchat__body { color: rgba(10, 30, 60, 0.85); }
:root[data-theme="light"] .pchat__welcome p { color: rgba(10, 30, 60, 0.78); }
:root[data-theme="light"] .pchat__welcome-sub { color: rgba(10, 30, 60, 0.55) !important; }
:root[data-theme="light"] .pchat__msg--bot .pchat__msg-bubble {
  background: rgba(10, 30, 60, 0.04);
  border-color: rgba(10, 30, 60, 0.12);
  color: rgba(10, 30, 60, 0.85);
}
:root[data-theme="light"] .pchat__msg--bot .pchat__msg-bubble strong { color: #1a1f2e; }
:root[data-theme="light"] .pchat__msg--bot .pchat__msg-bubble code {
  background: rgba(10, 30, 60, 0.06);
  border-color: rgba(10, 30, 60, 0.15);
  color: #00667a;
}
:root[data-theme="light"] .pchat__sugg { color: rgba(10, 30, 60, 0.75); }
:root[data-theme="light"] .pchat__input { background: #fff; color: #1a1f2e; border-color: rgba(10, 30, 60, 0.2); }
:root[data-theme="light"] .pchat__form { background: rgba(10, 30, 60, 0.03); border-top-color: rgba(10, 30, 60, 0.1); }

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .pchat__bubble-pulse { animation: none; }
  .pchat__panel { animation: none; }
  .pchat__dot { animation: none; }
  .pchat__dots i { animation: none; opacity: 0.8; }
}

/* -- Print: hide it -- */
@media print {
  .pchat { display: none !important; }
}

/* ============================================================================
   3D ACROSS THE PORTFOLIO — magnetic card tilt, hero parallax layers, and
   3D scroll-reveal entries. All driven by tech-fx.js. CSS handles the
   transforms + transitions; JS provides the per-frame variable values.
   ============================================================================ */

/* -- Magnetic 3D tilt -- pointer-driven rotateX/rotateY on cards.
   --tilt-rx / --tilt-ry / --tilt-z are set per frame by JS.
   --tilt-gx / --tilt-gy follow the cursor for a soft inner glow. */
.tilt3d {
  transform-style: preserve-3d;
  transform: perspective(900px)
             rotateX(var(--tilt-rx, 0deg))
             rotateY(var(--tilt-ry, 0deg))
             translateZ(var(--tilt-z, 0px));
  transition: transform var(--tx-base) var(--ez-out),
              box-shadow var(--tx-base) var(--ez-out);
  /* will-change moved to :hover so we don't pin a compositor layer per card
     forever. ~30 cards × always-on will-change was real GPU pressure. */
  position: relative;
}
.tilt3d:hover { will-change: transform; }
.tilt3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
              color-mix(in srgb, var(--cyan) 20%, transparent) 0%,
              transparent 45%);
  opacity: 0;
  transition: opacity var(--tx-fast) var(--ez-soft);
  mix-blend-mode: screen;
  z-index: 1;
}
.tilt3d:hover::after { opacity: 0.6; }
/* When actively tilting, kill the easing so motion follows the cursor 1:1.
   The pointerleave handler resets variables; the transition then takes
   over to ease everything back to neutral smoothly. */
.tilt3d:hover { transition: transform var(--tx-instant) linear; }

/* The card body content needs preserve-3d too so any nested z-translated
   elements (badges, code-card windows, OG thumbs) pop forward properly. */
.tilt3d > * { transform-style: preserve-3d; }

/* -- Hero pointer parallax -- each layer is translated by JS via inline
   transform; we just need transition so the easing feels natural when JS
   stops updating. JS sets transform directly so we don't need !important. */
.hero-parallax-layer {
  transition: transform var(--tx-fast) var(--ez-out);
  will-change: transform;
}

/* -- 3D Scroll Reveal -- elements start tilted back + faded, snap forward
   when they intersect the viewport. The .reveal-delay variable adds a
   stagger for sibling cards in grids. */
.reveal3d {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 40px, -180px) rotateX(-10deg);
  transition:
    opacity var(--tx-slow) var(--ez-out),
    transform var(--tx-stage) var(--ez-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal3d-in {
  opacity: 1;
  transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg);
  /* Drop will-change after the entry animation — keeping it indefinitely
     pins a compositor layer per card for no reason. */
  will-change: auto;
}

/* A11y rescue: if a keyboard user tabs INTO a card that hasn't yet been
   revealed (e.g. they tabbed past faster than the IO fired, or JS hiccup),
   force visibility + cancel the transform so the focus ring is in a
   reachable spot. Same rescue for headings. */
.reveal3d:focus-within,
.reveal3d:has(:focus-visible) {
  opacity: 1;
  transform: none;
}
.heading3d:focus,
.heading3d:focus-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion: skip the 3D entry — just fade in. */
@media (prefers-reduced-motion: reduce) {
  .reveal3d { transform: none; }
  .reveal3d-in { transform: none; }
  .tilt3d { transition: none; transform: none; }
  .hero-parallax-layer { transition: none; }
}

/* Touch/coarse pointer: kill the tilt entirely so taps don't leave cards
   stuck at an angle waiting for a pointerleave that never comes. */
@media (hover: none) {
  .tilt3d { transform: none !important; }
  .tilt3d::after { display: none; }
}

/* ============================================================================
   PAGE DIVE — when navigating to a case-study link, the page tilts back +
   zooms forward + fades so the load feels like a continuous spatial motion
   rather than a hard cut. The receiving case-study page picks up the dive
   intent via sessionStorage and runs the reverse "rise" animation on load.
   ============================================================================ */
body.page-dive-out {
  pointer-events: none;
  animation: page-dive-out var(--tx-stage) var(--ez-in) forwards;
  transform-origin: 50% 30%;
  perspective: 1400px;
}
@keyframes page-dive-out {
  0%   { transform: perspective(1400px) translateZ(0) rotateX(0deg); opacity: 1; filter: blur(0); }
  100% { transform: perspective(1400px) translateZ(420px) rotateX(6deg); opacity: 0; filter: blur(6px); }
}

body.page-dive-in {
  animation: page-dive-in var(--tx-stage) var(--ez-out) both;
  transform-origin: 50% 70%;
  perspective: 1400px;
}
@keyframes page-dive-in {
  0%   { transform: perspective(1400px) translateZ(-420px) rotateX(-6deg); opacity: 0; filter: blur(6px); }
  100% { transform: perspective(1400px) translateZ(0)      rotateX(0deg);  opacity: 1; filter: blur(0); }
}

/* Dive overlay — a brief flash of cyan light that washes the screen during
   the dive, providing a perceptual "transition cover" so the navigation's
   actual page-swap discontinuity is hidden inside the flash. */
.page-dive-flash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--cyan) 35%, transparent) 0%, transparent 60%),
    rgba(3, 5, 12, 0);
  opacity: 0;
  animation: dive-flash var(--tx-stage) var(--ez-out) forwards;
}
@keyframes dive-flash {
  0%   { opacity: 0;   transform: scale(0.6); }
  40%  { opacity: 0.9; }
  100% { opacity: 0;   transform: scale(1.8); }
}

/* ============================================================================
   3D SECTION HEADINGS — every section's <h2> heading gets a dramatic 3D
   entry as it scrolls in: rotates from rotateY(-30deg) translateZ(-200px)
   to flat with a slight overshoot. Bigger than the card reveal so the
   heading feels like the "anchor" of each section.
   ============================================================================ */
.heading3d {
  display: inline-block;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(-30deg) translateZ(-200px) translateX(-40px);
  opacity: 0;
  transition:
    transform var(--tx-stage) var(--ez-back),
    opacity var(--tx-slow) var(--ez-out);
  will-change: transform, opacity;
}
.heading3d.heading3d-in {
  transform: perspective(1000px) rotateY(0deg) translateZ(0) translateX(0);
  opacity: 1;
  /* Headings are static after entry — release the compositor layer. */
  will-change: auto;
}

/* ============================================================================
   3D TECH CHIPS — the hero's tech-chip strip + case-study exp-chips lift
   forward on hover with a slight rotateY so they feel like physical tokens.
   ============================================================================ */
.tech-chip, .exp-chip {
  transform-style: preserve-3d;
  transition:
    transform var(--tx-base) var(--ez-back),
    box-shadow var(--tx-base) var(--ez-out),
    background var(--tx-fast) var(--ez-soft),
    color var(--tx-fast) var(--ez-soft);
  will-change: transform;
}
.tech-chip:hover, .exp-chip:hover {
  transform: perspective(600px) translateZ(8px) rotateY(-4deg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cyan) 28%, transparent),
              0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ============================================================================
   3D SOCIAL ICONS — hero social row gets a tactile spring-pop on hover.
   ============================================================================ */
.fh5co-social-icons li a {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform var(--tx-base) var(--ez-back),
              color var(--tx-fast) var(--ez-soft),
              text-shadow var(--tx-base) var(--ez-out);
  will-change: transform;
}
.fh5co-social-icons li a:hover {
  transform: perspective(500px) translateZ(14px) rotateY(-12deg) scale(1.18);
  text-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 70%, transparent),
               0 6px 16px rgba(0, 0, 0, 0.45);
}

/* ============================================================================
   3D HERO CTAs — the primary book-call button gets a forward push on hover.
   ============================================================================ */
.hero-cta__primary,
.hero-cta__secondary {
  transform-style: preserve-3d;
  transition:
    transform var(--tx-base) var(--ez-back),
    box-shadow var(--tx-base) var(--ez-out),
    background var(--tx-fast) var(--ez-soft);
  will-change: transform;
}
.hero-cta__primary:hover {
  transform: perspective(800px) translateZ(20px) translateY(-3px) rotateX(6deg);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 45%, transparent),
              0 4px 12px rgba(0, 0, 0, 0.5);
}
.hero-cta__secondary:hover {
  transform: perspective(800px) translateZ(8px) translateY(-2px);
}

/* ============================================================================
   3D NAV LINKS — the sticky top nav gets z-pop on hover too so the whole
   chrome feels in-system.
   ============================================================================ */
#fh5co-nav .menu-1 li a,
#fh5co-nav .menu-2 li a {
  transform-style: preserve-3d;
  transition: transform var(--tx-fast) var(--ez-back),
              color var(--tx-fast) var(--ez-soft);
}
#fh5co-nav .menu-1 li a:hover,
#fh5co-nav .menu-2 li a:hover {
  transform: perspective(400px) translateZ(6px) translateY(-1px);
}

/* Reduced motion: kill all the chip/social/cta/nav 3D so it stays calm. */
@media (prefers-reduced-motion: reduce) {
  .tech-chip:hover, .exp-chip:hover,
  .fh5co-social-icons li a:hover,
  .hero-cta__primary:hover, .hero-cta__secondary:hover,
  #fh5co-nav .menu-1 li a:hover, #fh5co-nav .menu-2 li a:hover {
    transform: none;
  }
  body.page-dive-out, body.page-dive-in { animation: none; }
  .page-dive-flash { display: none; }
  .heading3d { transform: none; opacity: 1; }
}

/* ============================================================================
   CURSOR SPOTLIGHT — global radial-gradient that tracks the cursor across
   every page. Sits on <html>::before so it's beneath all content but above
   the body's background. mix-blend-mode: screen adds light without
   obscuring. Position controlled by --spot-x / --spot-y from JS.
   ============================================================================ */
html.has-spotlight::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;            /* above bg, below nav (9998) and modals */
  /* Reduced gradient (was 360px) — same visible effect at near-zero
     paint cost. Removed mix-blend-mode: screen — it forced the browser
     to recomposite the entire viewport every frame because of any
     animation underneath (marquee, etc), which was the single biggest
     idle-state fps killer. */
  background: radial-gradient(
    circle 260px at var(--spot-x, 50vw) var(--spot-y, 50vh),
    color-mix(in srgb, var(--cyan) 14%, transparent) 0%,
    transparent 65%
  );
  /* will-change removed too — the gradient repaints when --spot-x/y
     change, which is fine without a forced compositor layer. */
  transition: opacity 0.4s var(--ez-soft, ease);
}
/* When the orbital is open its overlay (z:10003) already covers the
   spotlight (z:9997), so no extra hide rule needed. */
/* Light theme: warmer + dimmer spotlight so it doesn't blow out a bright bg */
:root[data-theme="light"].has-spotlight::before {
  background: radial-gradient(
    circle 320px at var(--spot-x, 50vw) var(--spot-y, 50vh),
    color-mix(in srgb, var(--brand) 14%, transparent) 0%,
    color-mix(in srgb, var(--brand) 5%, transparent) 28%,
    transparent 70%
  );
}

/* ============================================================================
   SIDERAIL 3D DEPTH — active dot pops forward, near-active dots lift
   slightly less, far dots stay flat. The whole rail also has perspective
   so the depth reads as real 3D rather than just scale.
   ============================================================================ */
.siderail--3d {
  perspective: 600px;
  transform-style: preserve-3d;
}
.siderail--3d .siderail__item {
  transform-style: preserve-3d;
  transition: transform var(--tx-base) var(--ez-back),
              filter var(--tx-base) var(--ez-out);
  filter: brightness(0.55);
}
.siderail--3d .siderail__item.is-near-2 {
  transform: translateZ(4px);
  filter: brightness(0.75);
}
.siderail--3d .siderail__item.is-near-1 {
  transform: translateZ(10px);
  filter: brightness(0.9);
}
.siderail--3d .siderail__item.is-active {
  transform: translateZ(22px) rotateY(8deg);   /* positive Y — rail is on the left now, so
                                                  the dot tilts toward the content */
  filter: brightness(1.2) drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 60%, transparent));
}
.siderail--3d .siderail__item:hover {
  transform: translateZ(28px) rotateY(12deg);
  filter: brightness(1.3);
}

/* ============================================================================
   SECTION PARALLAX HEADINGS — heading translateZ scales with scroll
   progress through its section. JS writes --sp-z and --sp-rx per scroll
   tick. Combined with the .heading3d entry transform, the heading does a
   continuous 3D motion: rotates in from the side, then drifts back as you
   scroll past it.
   ============================================================================ */
.section-parallax {
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}
/* Apply parallax transform only *after* the heading entry has completed.
   While entering, .heading3d's transform owns the element; once in, the
   parallax transform takes over with no transition so scroll updates feel
   1:1 with the wheel. */
.heading3d.heading3d-in.section-parallax,
.section-parallax:not(.heading3d) {
  transform: perspective(1200px)
             translateZ(var(--sp-z, 0px))
             rotateX(var(--sp-rx, 0deg));
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html.has-spotlight::before { display: none; }
  .siderail--3d .siderail__item { transform: none; filter: none; transition: none; }
  .section-parallax { transform: none; }
}

/* ============================================================================
   CUSTOM CURSOR — dot + ring follower. The dot is the actual pointer; the
   ring lags via JS spring-easing. Hides the OS cursor entirely except over
   text inputs (where the caret needs to stay visible).
   ============================================================================ */
/* Universal selector wins over normal .btn { cursor: pointer } rules.
   Then restore the text caret on inputs so they remain typeable. */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none; }
html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor select,
html.has-custom-cursor [contenteditable="true"] { cursor: text; }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99996;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 80%, transparent),
              0 0 22px color-mix(in srgb, var(--cyan) 50%, transparent);
  mix-blend-mode: screen;
  transition: width var(--tx-fast) var(--ez-back),
              height var(--tx-fast) var(--ez-back),
              background var(--tx-fast) var(--ez-soft);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--cyan) 80%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--cyan) 4%, transparent);
  transition: width var(--tx-base) var(--ez-back),
              height var(--tx-base) var(--ez-back),
              border-color var(--tx-fast) var(--ez-soft),
              background var(--tx-fast) var(--ez-soft);
}
/* Over interactive elements: ring inflates, dot disappears inward */
html.cursor-over-link .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}
html.cursor-over-link .cursor-dot {
  width: 3px;
  height: 3px;
}
/* On pointerdown: ring contracts, dot expands */
html.cursor-down .cursor-ring {
  width: 24px;
  height: 24px;
}
html.cursor-down .cursor-dot {
  width: 10px;
  height: 10px;
}
/* When cursor leaves the window, hide both */
html.cursor-out .cursor-dot,
html.cursor-out .cursor-ring {
  opacity: 0;
  transition: opacity var(--tx-fast) var(--ez-soft);
}

/* Theme-aware tint: light mode uses brand orange instead of cyan */
:root[data-theme="light"] .cursor-dot {
  background: var(--brand);
  box-shadow: 0 0 10px color-mix(in srgb, var(--brand) 80%, transparent),
              0 0 22px color-mix(in srgb, var(--brand) 50%, transparent);
}
:root[data-theme="light"] .cursor-ring {
  border-color: color-mix(in srgb, var(--brand) 80%, transparent);
  background: color-mix(in srgb, var(--brand) 4%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
  html.has-custom-cursor, html.has-custom-cursor body { cursor: auto; }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================================
   GLITCH TEXT — RGB-split chromatic aberration via text-shadow on cyan +
   magenta channels, plus a JS-driven character scramble. The base state
   has a very subtle 1px split (ambient feel); --active amps it up.
   ============================================================================ */
.glitch-text {
  position: relative;
  text-shadow:
    0.5px 0 0 color-mix(in srgb, var(--cyan) 25%, transparent),
    -0.5px 0 0 color-mix(in srgb, var(--magenta) 25%, transparent);
  transition: text-shadow var(--tx-fast) var(--ez-soft);
}
.glitch-text--active {
  text-shadow:
    2px 0 0 var(--cyan),
    -2px 0 0 var(--magenta),
    0 0 8px color-mix(in srgb, var(--cyan) 40%, transparent);
}
/* Keyframe shake only on elements that DON'T own a 3D transform —
   otherwise the shake's translate+skew would clobber heading3d's
   perspective + rotateY mid-entry. Headings still get RGB-split + scramble,
   just not the physical jolt. */
.glitch-text--active:not(.heading3d):not(.section-parallax) {
  animation: glitch-shake 0.42s steps(6, end);
}
@keyframes glitch-shake {
  0%   { transform: translate(0, 0)    skewX(0); }
  16%  { transform: translate(-2px, 1px) skewX(-2deg); }
  32%  { transform: translate(2px, -1px) skewX(1deg); }
  48%  { transform: translate(-1px, 0) skewX(-1deg); }
  64%  { transform: translate(1px, 1px) skewX(2deg); }
  82%  { transform: translate(0, -1px) skewX(0); }
  100% { transform: translate(0, 0)    skewX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-text, .glitch-text--active { text-shadow: none; animation: none; }
}

/* ============================================================================
   HUD COORDS ROW — extends the existing HUD with a coordinates field. The
   row inherits all .hud__row styling; just add a small monospace tweak so
   coords stay readable (the degree symbol can look weird otherwise).
   ============================================================================ */
.hud__row--coords .hud__val {
  font-feature-settings: 'tnum' 1;  /* tabular nums so the coords don't jiggle */
  letter-spacing: 0.5px;
}

/* ============================================================================
   MARQUEE TECH TICKER — continuous-loop horizontal scroller injected
   between hero and about. Two identical rows side-by-side animate left
   indefinitely; when the first row exits, the second is already in place.
   ============================================================================ */
.tech-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb, var(--cyan) 4%, transparent) 50%,
      transparent 100%);
  border-top: 1px solid color-mix(in srgb, var(--cyan) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--cyan) 14%, transparent);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  z-index: 1;
}
.tech-marquee__row {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.tech-marquee:hover .tech-marquee__row,
.tech-marquee.is-paused .tech-marquee__row { animation-play-state: paused; }
.tech-marquee__item {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cyan) 75%, white);
  padding: 0 4px;
  text-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 30%, transparent);
}
.tech-marquee__sep {
  display: inline-block;
  margin: 0 22px;
  font-size: 11px;
  color: color-mix(in srgb, var(--cyan) 40%, transparent);
  transform: translateY(-1px);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* exactly one row-width */
}

@media (prefers-reduced-motion: reduce) {
  .tech-marquee__row { animation: none; }
  .tech-marquee { mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 768px) {
  .tech-marquee { padding: 12px 0; }
  .tech-marquee__item { font-size: 11px; letter-spacing: 1.5px; }
  .tech-marquee__sep { margin: 0 14px; font-size: 10px; }
}

/* Scroll-velocity boost: the marquee tints brighter + adds a top/bottom
   highlight when the user is scrolling fast. JS writes --marquee-boost
   (0..1) per RAF tick during decay. */
.tech-marquee::before,
.tech-marquee::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--cyan) 90%, transparent) 50%,
    transparent 100%);
  opacity: calc(var(--marquee-boost, 0) * 0.9);
  pointer-events: none;
  box-shadow: 0 0 16px color-mix(in srgb, var(--cyan) 60%, transparent);
  transition: opacity 0.18s var(--ez-soft);
}
.tech-marquee::before { top: 0; }
.tech-marquee::after  { bottom: 0; }
.tech-marquee__item {
  transition: text-shadow 0.18s var(--ez-soft);
}
.tech-marquee[style*="--marquee-boost"] .tech-marquee__item {
  text-shadow: 0 0 calc(8px + var(--marquee-boost, 0) * 18px)
               color-mix(in srgb, var(--cyan) calc(30% + var(--marquee-boost, 0) * 50%), transparent);
}

/* ============================================================================
   BOOT SEQUENCE OVERLAY — terminal boot screen on first session visit.
   Types out a command, reveals status lines, dissolves into the hero.
   Total duration ~750ms.
   ============================================================================ */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg-deep, #050814);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: boot-overlay-fade-in 0.2s var(--ez-out);
  /* Subtle scanline overlay so it feels like a CRT booting */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(0, 229, 255, 0.025) 3px,
      rgba(0, 229, 255, 0.025) 4px
    ),
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--cyan) 8%, transparent) 0%, transparent 60%);
  background-color: var(--bg-deep, #050814);
}
@keyframes boot-overlay-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.boot-overlay--out {
  animation: boot-overlay-dissolve 0.22s var(--ez-in) forwards;
}
@keyframes boot-overlay-dissolve {
  0%   { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.06) translateZ(0); filter: blur(8px); }
}
.boot-overlay__inner {
  width: min(620px, 90vw);
  padding: 24px 30px;
  border: 1px solid color-mix(in srgb, var(--cyan) 24%, transparent);
  border-radius: 6px;
  background: rgba(5, 8, 20, 0.65);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cyan) 10%, transparent),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 40px color-mix(in srgb, var(--cyan) 6%, transparent);
}
.boot-overlay__lines {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}
.boot-overlay__line {
  display: block;
  color: rgba(255, 255, 255, 0.86);
}
.boot-overlay__line--out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ez-out), transform 0.18s var(--ez-out);
}
.boot-overlay__line--out.is-in {
  opacity: 1;
  transform: translateY(0);
}
.boot-overlay__line--final {
  color: var(--cyan);
  text-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 60%, transparent);
}
.boot-overlay__prompt {
  color: var(--brand);
  font-weight: 600;
  margin-right: 4px;
}
.boot-overlay__cmd {
  color: var(--cyan);
}
.boot-overlay__cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--cyan);
  animation: boot-cursor-blink 0.6s steps(1) infinite;
}
@keyframes boot-cursor-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-overlay { display: none; }
}
@media (hover: none) {
  .boot-overlay { display: none; }
}

/* ============================================================================
   KONAMI TOAST + DEVELOPER MODE — earned reward for the few who try
   ↑↑↓↓←→←→BA. Toast slides in from the top-right, amps the global glitch,
   and reveals an extra HUD line on the right-side widget.
   ============================================================================ */
.konami-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99998;
  min-width: 280px;
  padding: 14px 18px;
  background: rgba(5, 8, 20, 0.92);
  border: 1px solid color-mix(in srgb, var(--cyan) 60%, transparent);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'JetBrains Mono', monospace;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cyan) 18%, transparent),
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 36px color-mix(in srgb, var(--cyan) 32%, transparent);
  transform: translate3d(0, -16px, 0) scale(0.96);
  opacity: 0;
  transition:
    transform var(--tx-base) var(--ez-back),
    opacity var(--tx-fast) var(--ez-soft);
  pointer-events: none;
}
.konami-toast.is-in {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}
.konami-toast__title {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 60%, transparent);
}
.konami-toast__body {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}
.konami-toast__hint {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
.konami-toast__hint kbd {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  margin: 0 2px;
}

/* Developer-mode-on amplifications. Subtle by default — we still want the
   page to be readable; we just signal that something extra is alive. */
html.developer-mode-on .glitch-text {
  text-shadow:
    1px 0 0 color-mix(in srgb, var(--cyan) 50%, transparent),
    -1px 0 0 color-mix(in srgb, var(--magenta) 50%, transparent);
}
html.developer-mode-on .cursor-dot {
  box-shadow:
    0 0 14px var(--cyan),
    0 0 32px color-mix(in srgb, var(--cyan) 60%, transparent),
    0 0 60px color-mix(in srgb, var(--magenta) 30%, transparent);
}
html.developer-mode-on .cursor-ring {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
}

/* Hidden HUD line that only shows in developer mode */
.hud__row--dev {
  display: none;
}
html.developer-mode-on .hud__row--dev {
  display: flex;
  color: var(--brand);
}
html.developer-mode-on .hud__row--dev .hud__val {
  color: var(--brand);
  text-shadow: 0 0 8px color-mix(in srgb, var(--brand) 60%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .konami-toast { transition: none; }
}

/* ============================================================================
   HUD HARDWARE ROWS — subtle differentiation so the new geek rows
   visually cluster as device info, separate from the live counters.
   ============================================================================ */
.hud__row--hw .hud__label {
  color: rgba(0, 229, 255, 0.55);
}
.hud__row--hw .hud__val {
  font-feature-settings: 'tnum' 1;
  letter-spacing: 0.5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================================
   IDLE NUDGE — chat bubble pulses after 45s of inactivity; a small
   tooltip drifts up from the bubble with "still there?". Dismissed on
   any input.
   ============================================================================ */
.pchat__bubble.is-nudging,
.pchat__fab.is-nudging,
[data-pchat-toggle].is-nudging {
  animation: idle-nudge-pulse 1.4s var(--ez-soft) infinite;
}
@keyframes idle-nudge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 60%, transparent),
                0 8px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--cyan) 0%, transparent),
                0 0 28px color-mix(in srgb, var(--cyan) 50%, transparent),
                0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

.idle-nudge-tip {
  position: fixed;
  /* Sit just above the chat bubble (bubble is typically bottom-right) */
  right: 24px;
  bottom: 100px;
  z-index: 99997;
  padding: 8px 14px;
  background: rgba(5, 8, 20, 0.92);
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  border-radius: 4px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 18px color-mix(in srgb, var(--cyan) 30%, transparent);
  transform: translate3d(0, 6px, 0) scale(0.96);
  opacity: 0;
  transition: transform var(--tx-base) var(--ez-back),
              opacity var(--tx-fast) var(--ez-soft);
  pointer-events: none;
}
.idle-nudge-tip.is-in {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}
/* Pointer triangle linking the tip to the bubble */
.idle-nudge-tip::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: rgba(5, 8, 20, 0.92);
  border-right: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .pchat__bubble.is-nudging,
  .pchat__fab.is-nudging,
  [data-pchat-toggle].is-nudging { animation: none; }
  .idle-nudge-tip { transition: none; }
}

/* ============================================================================
   SCROLL-STATE PERF — when body.is-scrolling is set (JS adds during active
   scroll, removes 150ms after the last scroll event), pause the most
   expensive paint operations so the wheel feels glass-smooth. Effects
   resume immediately on scroll stop.

   Targets here are the proven expensive ones:
     - mix-blend-mode: screen pseudos (spotlight, tilt glow, shimmer)
     - text-shadow on every glitch-text character
     - filter on heavy mix-blend layers
   ============================================================================ */
/* JS adds .is-scrolling on <html> (document.documentElement) during active
   scroll. CSS uses that as the ancestor signal to pause descendants. */
html.is-scrolling.has-spotlight::before { opacity: 0; }

html.is-scrolling .tilt3d::after,
html.is-scrolling .cs-tilt3d::after { opacity: 0; }

html.is-scrolling .glitch-text { text-shadow: none; }

html.is-scrolling .cmdk__row[data-section="case-study"]::before {
  animation-play-state: paused;
  opacity: 0;
}

/* Marquee pauses during scroll too — animation contributes to composite
   cost on every paint. Resumes after scroll stops. */
html.is-scrolling .tech-marquee__row { animation-play-state: paused; }

/* ============================================================================
   AGGRESSIVE PERF — browser-native paint scoping
   ============================================================================
   These two CSS features let the browser skip work on offscreen / isolated
   regions. They're free wins on modern Chromium / Safari / Firefox.

   `content-visibility: auto` — sections offscreen are skipped entirely
   during render (the browser still knows they exist for layout). When they
   approach the viewport, they're rendered just in time. Combined with
   `contain-intrinsic-size`, the scrollbar position is preserved.

   `contain: content` — equivalent to `layout style paint`. Tells the
   browser that a card's internals never affect the rest of the page —
   repainting a hovered card cannot invalidate the layout/paint of
   neighbors. Limits the dirty region per paint.
   ============================================================================ */

/* Long sections — let the browser skip them when far offscreen */
#fh5co-resume,
#fh5co-features,
#fh5co-skills,
#fh5co-work,
#fh5co-blog,
#fh5co-started {
  content-visibility: auto;
  /* Approximate height so the scrollbar doesn't jump when sections come
     into view. Conservative estimates — actual heights vary. */
  contain-intrinsic-size: 0 1200px;
}

/* Self-contained cards — paint scope locked in */
.exp-card,
.proj-card,
.svc-card,
.skill-card,
.px-card,
.cta-card,
.code-card {
  contain: content;
}

/* =======================================================
 *  Adaptive quality — tech-fx.js latches .fx-lite on <html>
 *  when the device sustains < 48fps. Pauses the ambient
 *  always-on loops that repaint (the canvases thin out via
 *  JS); layout, interactions, and hover effects stay intact.
 * ======================================================= */
:root.fx-lite .glitch::before,
:root.fx-lite .glitch::after,
:root.fx-lite .hud::before,
:root.fx-lite .fh5co-nav-links li a.hire-btn::after,
:root.fx-lite .tech-grid,
:root.fx-lite .scanline::before {
  animation-play-state: paused;
}

/* =========================================================================
   ARCADE SKIN — the portfolio as a retro game cabinet.
   Same content, different machine: pixel type, hard-edged chrome, hard
   drop shadows instead of neon glows, coin-slot status, XP-bar HUD,
   PRESS START prompt. Activated by :root.theme-arcade only — the other
   five palettes are untouched.
   Perf note (see tech-fx perf conventions): no infinite box-shadow/filter
   loops here — the only ambient animations are steps() opacity blinks on
   tiny elements, and they pause under .fx-lite.
   ========================================================================= */

/* -- Cabinet background: deep arcade violet + pixel starfield -- */
:root.theme-arcade {
  background: #0d0221;
}
:root.theme-arcade body {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(0, 168, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(255, 56, 100, 0.07), transparent 60%),
    #0d0221 !important;
}
:root.theme-arcade body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 204, 0, 0.45) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1.6px);
  background-size: 240px 240px, 170px 170px;
  background-position: 30px 40px, 110px 90px;
  opacity: 0.5;
}
/* Static scanlines over everything — one paint, never animates */
:root.theme-arcade #page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(0, 0, 0, 0.10) 0,
    rgba(0, 0, 0, 0.10) 1px,
    transparent 1px,
    transparent 4px);
}

/* -- Pixel type: Press Start 2P (lazy-loaded by tech-fx.js on activation).
      The face is huge per glyph, so every target gets an explicit size. -- */
:root.theme-arcade #fh5co-header h1 {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace !important;
  font-size: clamp(20px, 4.5vw, 40px) !important;
  letter-spacing: 2px !important;
  line-height: 1.35 !important;
}
:root.theme-arcade .fh5co-heading h2,
:root.theme-arcade #fh5co-header h2 .role-tag {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace !important;
  font-size: clamp(12px, 2vw, 19px) !important;
  letter-spacing: 1px !important;
  line-height: 1.7 !important;
}
:root.theme-arcade #fh5co-header h2 .role-tag { font-size: clamp(10px, 1.5vw, 13px) !important; line-height: 2 !important; }
:root.theme-arcade .fh5co-nav-links li a,
:root.theme-arcade .terminal-tag,
:root.theme-arcade .fh5co-heading::before {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: 1px !important;
}
:root.theme-arcade .btn {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  line-height: 1.6 !important;
  letter-spacing: 1px !important;
}
:root.theme-arcade .hud,
:root.theme-arcade .tech-chip,
:root.theme-arcade .status-badge {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace !important;
  font-size: 8px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.5px !important;
}

/* -- Pixel chrome: square corners, chunky borders, hard drop shadows -- */
:root.theme-arcade .exp-card,
:root.theme-arcade .proj-card,
:root.theme-arcade .svc-card,
:root.theme-arcade .skill-card,
:root.theme-arcade .px-card,
:root.theme-arcade .cta-card,
:root.theme-arcade .code-card,
:root.theme-arcade .about-panel {
  border: 3px solid rgba(255, 204, 0, 0.45) !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45) !important;
}
:root.theme-arcade .btn,
:root.theme-arcade .tech-chip,
:root.theme-arcade .status-badge,
:root.theme-arcade .work,
:root.theme-arcade .hud,
:root.theme-arcade .theme-picker__menu,
:root.theme-arcade .cmdk,
:root.theme-arcade .cmdk-hint {
  border-radius: 0 !important;
}
:root.theme-arcade .btn {
  border: 3px solid currentColor !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6) !important;
}
/* Button press — the whole point of an arcade button */
:root.theme-arcade .btn:active {
  transform: translate(3px, 3px) !important;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6) !important;
}

/* -- Hero: coin-slot status + PRESS START -- */
:root.theme-arcade .hero-status .status-badge {
  border: 3px solid rgba(255, 204, 0, 0.6) !important;
  background: rgba(13, 2, 33, 0.85) !important;
}
:root.theme-arcade .hero-status .status-dot {
  background: #ffcc00 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  animation: arcade-blink 1.1s steps(2, jump-none) infinite;
}
:root.theme-arcade .hero-status::after {
  content: '▶ PRESS START';
  content: '▶ PRESS START' / '';
  display: block;
  margin-top: 14px;
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--brand);
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  animation: arcade-blink 1.1s steps(2, jump-none) infinite;
}
@keyframes arcade-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* -- Hero: drop the photographic cover — a game cabinet doesn't have a
      stock photo behind the title screen. Violet attract-mode gradient
      instead, with the gold rain + grid carrying the texture. -- */
:root.theme-arcade #fh5co-header {
  background-image: none !important;
  background:
    radial-gradient(ellipse 100% 60% at 50% 35%, rgba(0, 168, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255, 56, 100, 0.10), transparent 60%),
    linear-gradient(180deg, #150535 0%, #0d0221 60%, #0d0221 100%) !important;
}
/* The base theme's .overlay is a warm orange wash for the cover photo —
   with the photo gone it just muddies the cabinet violet. */
:root.theme-arcade #fh5co-header .overlay {
  background: linear-gradient(180deg, rgba(13, 2, 33, 0.25) 0%, rgba(13, 2, 33, 0.7) 100%) !important;
}

/* -- Hero grid + profile frame in cabinet gold -- */
:root.theme-arcade .tech-grid {
  background-image:
    linear-gradient(rgba(255, 204, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 204, 0, 0.07) 1px, transparent 1px) !important;
}
:root.theme-arcade .hyperframe__corner { border-color: rgba(255, 204, 0, 0.8) !important; }

/* -- HUD as game status panel, scroll bar as segmented XP bar -- */
:root.theme-arcade .hud {
  border: 3px solid rgba(255, 204, 0, 0.5) !important;
  background: rgba(13, 2, 33, 0.92) !important;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45) !important;
}
:root.theme-arcade .hud__bar {
  height: 10px !important;
  border: 2px solid rgba(255, 204, 0, 0.5) !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
}
:root.theme-arcade .hud__bar i {
  background: repeating-linear-gradient(90deg, #ffcc00 0 6px, #c79a00 6px 8px) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* -- Nav hire button ring in gold -- */
:root.theme-arcade .fh5co-nav-links li a.hire-btn::after { border-color: rgba(255, 204, 0, 0.6); }

/* -- Adaptive + reduced-motion: kill the blinks -- */
:root.fx-lite.theme-arcade .hero-status .status-dot,
:root.fx-lite.theme-arcade .hero-status::after {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  :root.theme-arcade .hero-status .status-dot,
  :root.theme-arcade .hero-status::after { animation: none; }
}

/* =========================================================================
   ARCADE DEEP PASS — every component speaks game.
   Layered after the base arcade skin: global pixel hardware (square
   corners everywhere), a two-tier type system (Press Start 2P display,
   VT323 body), hard-offset logo shadows, dither texture, and pixel chrome
   for each JS-built widget. Static textures only — no new animation loops.
   ========================================================================= */

/* -- Pixel hardware: nothing on a cabinet is rounded -- */
:root.theme-arcade *,
:root.theme-arcade *::before,
:root.theme-arcade *::after {
  border-radius: 0 !important;
}

/* -- Type tier 2: VT323 for running text (Press Start 2P is unreadable at
      body sizes; VT323 is the classic terminal pixel face). Sized up a step
      because it runs small. -- */
:root.theme-arcade body { font-family: 'VT323', 'JetBrains Mono', monospace; }
:root.theme-arcade p,
:root.theme-arcade li,
:root.theme-arcade td, :root.theme-arcade th,
:root.theme-arcade dd, :root.theme-arcade dt,
:root.theme-arcade blockquote, :root.theme-arcade figcaption,
:root.theme-arcade input, :root.theme-arcade textarea, :root.theme-arcade select,
:root.theme-arcade .case-tree, :root.theme-arcade .live-stats__item,
:root.theme-arcade .footer-meta, :root.theme-arcade .footer-stamp,
:root.theme-arcade .cta-form__hint, :root.theme-arcade .cta-form__label,
:root.theme-arcade .dev-term, :root.theme-arcade .tech-tag,
:root.theme-arcade .cmdk__row, :root.theme-arcade .tour-bubble,
:root.theme-arcade .idle-nudge-tip, :root.theme-arcade .tech-tip {
  font-family: 'VT323', 'JetBrains Mono', monospace !important;
  font-size: 17px;
  line-height: 1.5;
}
:root.theme-arcade code, :root.theme-arcade pre {
  font-family: 'VT323', 'JetBrains Mono', monospace !important;
  font-size: 16px;
}

/* -- Type tier 1: Press Start 2P for every display surface -- */
:root.theme-arcade h3,
:root.theme-arcade .cmdk__section,
:root.theme-arcade .work-filter, :root.theme-arcade .case-filter,
:root.theme-arcade .utm-pill, :root.theme-arcade .konami-toast,
:root.theme-arcade .tech-toast, :root.theme-arcade .cmdk__toast,
:root.theme-arcade .siderail, :root.theme-arcade .boot-overlay,
:root.theme-arcade .cta-form__submit, :root.theme-arcade .scroll-down,
:root.theme-arcade .commit-graph-meta {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: 1px !important;
  line-height: 1.8 !important;
}

/* -- Arcade-logo glow: hard color offsets, the way cabinets bled phosphor -- */
:root.theme-arcade #fh5co-header h1 {
  background: none !important;
  -webkit-background-clip: initial !important;
          background-clip: initial !important;
  color: #ffcc00 !important;
  text-shadow: 3px 3px 0 #ff3864, 6px 6px 0 rgba(0, 0, 0, 0.55) !important;
}
:root.theme-arcade .fh5co-heading h2 {
  color: #ffcc00 !important;
  text-shadow: 2px 2px 0 rgba(255, 56, 100, 0.85), 4px 4px 0 rgba(0, 0, 0, 0.5) !important;
}

/* -- Texture: 8px dither checker layered into the fixed starfield (static) -- */
:root.theme-arcade body::before {
  background-image:
    radial-gradient(rgba(255, 204, 0, 0.45) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1.6px),
    repeating-conic-gradient(rgba(255, 255, 255, 0.015) 0% 25%, transparent 0% 50%);
  background-size: 240px 240px, 170px 170px, 8px 8px;
  background-position: 30px 40px, 110px 90px, 0 0;
}

/* -- Selection + keyboard focus: coin-gold block, hard offset -- */
:root.theme-arcade ::selection { background: #ffcc00; color: #0d0221; text-shadow: none; }
:root.theme-arcade :focus-visible {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 2px !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55) !important;
}

/* -- Command palette as pause-menu -- */
:root.theme-arcade .cmdk {
  border: 3px solid rgba(255, 204, 0, 0.55) !important;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5) !important;
  background: rgba(13, 2, 33, 0.96) !important;
}
:root.theme-arcade .cmdk input {
  border: 2px solid rgba(255, 204, 0, 0.35) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  font-size: 19px;
}
:root.theme-arcade .cmdk__row[aria-selected="true"],
:root.theme-arcade .cmdk__row.is-active {
  background: rgba(255, 204, 0, 0.14) !important;
  box-shadow: inset 3px 0 0 #ffcc00 !important;
}

/* -- Overlays/popovers: dialog-box chrome (terminal, kbd help, ctx menu,
      toasts, tour, theme menu) -- */
:root.theme-arcade .dev-term,
:root.theme-arcade .kbdhelp-overlay > *,
:root.theme-arcade .ctx-menu,
:root.theme-arcade .konami-toast,
:root.theme-arcade .tech-toast,
:root.theme-arcade .cmdk__toast,
:root.theme-arcade .idle-nudge-tip,
:root.theme-arcade .tour-bubble,
:root.theme-arcade .utm-pill,
:root.theme-arcade .cmdk-hint,
:root.theme-arcade .theme-picker__menu {
  border: 3px solid rgba(255, 204, 0, 0.55) !important;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5) !important;
  background: rgba(13, 2, 33, 0.96) !important;
  backdrop-filter: none !important;
}
:root.theme-arcade kbd {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 8px !important;
  border: 2px solid rgba(255, 204, 0, 0.5) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

/* -- Contact form: password-entry styling -- */
:root.theme-arcade .cta-form input,
:root.theme-arcade .cta-form textarea {
  border: 3px solid rgba(255, 204, 0, 0.4) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.45) !important;
  font-size: 18px !important;
  caret-color: #ffcc00;
}
:root.theme-arcade .cta-form input:focus,
:root.theme-arcade .cta-form textarea:focus {
  border-color: #ffcc00 !important;
}
:root.theme-arcade .cta-form__submit {
  border: 3px solid currentColor !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6) !important;
}
:root.theme-arcade .cta-form__submit:active {
  transform: translate(3px, 3px) !important;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6) !important;
}

/* -- Siderail dot-nav: level-select squares -- */
:root.theme-arcade .siderail__item {
  border: 2px solid rgba(255, 204, 0, 0.5) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55) !important;
}

/* -- Work tree + filters: quest-log framing -- */
:root.theme-arcade .work-filter,
:root.theme-arcade .case-filter {
  border: 2px solid rgba(255, 204, 0, 0.45) !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5) !important;
}

/* -- Marquee chips + tool badges: cartridge labels -- */
:root.theme-arcade .tech-tag,
:root.theme-arcade .tech-chip {
  border: 2px solid rgba(255, 204, 0, 0.45) !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5) !important;
  background: rgba(13, 2, 33, 0.8) !important;
}

/* -- Profile photo becomes the character-select portrait -- */
:root.theme-arcade .profile-thumb {
  border: 4px solid rgba(255, 204, 0, 0.7) !important;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5) !important;
  image-rendering: pixelated;
}

/* -- Boot overlay: attract-mode self-test -- */
:root.theme-arcade .boot-overlay { background: #0d0221 !important; }

/* -- fx-lite / reduced-motion: nothing extra to pause — this pass is static -- */

/* -- Readability polish (arcade) ------------------------------------------
   Pixel faces are thinner per-pixel than antialiased type, so dim grays and
   tiny sizes that worked in cyber drop below comfortable here. Floors:
   body 18px VT323 at ~0.92 alpha, labels >= 9px Press Start, no per-char
   wrapping, HUD capped so max-content sizing can't balloon it. */
:root.theme-arcade .hud { width: 272px !important; }
:root.theme-arcade .hud__label { color: rgba(255, 220, 120, 0.75) !important; }
:root.theme-arcade .fh5co-nav-links li a { white-space: nowrap; }
:root.theme-arcade p,
:root.theme-arcade li,
:root.theme-arcade blockquote {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(238, 240, 255, 0.92);
}
:root.theme-arcade .status-badge {
  font-size: 9px !important;
  line-height: 2 !important;
  color: #fff !important;
}
:root.theme-arcade .footer-meta,
:root.theme-arcade .footer-stamp {
  color: rgba(230, 235, 255, 0.72) !important;
  font-size: 16px;
}
