@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Chakra+Petch:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500;700&display=swap");

:root {
  --font-sans: "Chakra Petch", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-pixel: "Press Start 2P", monospace;
  --bg: #0a0b10;
  --bg-alt: #0c1019;
  --bg-deep: #090c12;
  --border-light: #4a5060;
  --overlay: rgba(10, 11, 16, 0.92);
  --glass-bg: linear-gradient(180deg, rgba(20, 22, 29, 0.92), rgba(12, 14, 20, 0.94));
  --glass-blur: blur(4px);
  --shimmer-gradient: linear-gradient(90deg, rgba(127, 37, 95, 0) 0%, rgba(127, 37, 95, 0.09) 42%, rgba(124, 154, 255, 0.1) 57%, rgba(127, 37, 95, 0) 100%);
  --panel: #101218;
  --line: #343844;
  --text: #f0f2f4;
  --muted: #c5ccd8;
  --yellow: #f0e55d;
  --cyan: #4fd8ff;
  --pink: #f04faf;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  --scroll-track: #0a0e17;
  --scroll-thumb: #2f3546;
  --scroll-thumb-hover: #4a5672;
  --scroll-corner: #0a0e17;
  --pixel-border-dark-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 2h2v2H0zM2 0h2v2H2zM4 2h2v2H4zM2 4h2v2H2z' fill='%23343844' /></svg>");
  --pixel-border-yellow-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 2h2v2H0zM2 0h2v2H2zM4 2h2v2H4zM2 4h2v2H2z' fill='%23d8ce4e' /></svg>");
  --pixel-border-cyan-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 2h2v2H0zM2 0h2v2H2zM4 2h2v2H4zM2 4h2v2H2z' fill='%234fd8ff' /></svg>");
  --pixel-border-width: 2px;
  --pixel-slice: 2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #39435a 0%, var(--scroll-thumb) 100%);
  border: 2px solid var(--scroll-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #55607d 0%, var(--scroll-thumb-hover) 100%);
}

*::-webkit-scrollbar-corner {
  background: var(--scroll-corner);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 216, 255, 0.1), transparent 20%),
    radial-gradient(circle at 90% 15%, rgba(240, 79, 175, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.18;
  z-index: 0;
}

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

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

.container {
  width: min(1220px, 94%);
  margin: 0 auto;
}

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

.nav-links a:focus-visible,
.social-links a:focus-visible,
.inline-link:focus-visible,
.btn:focus-visible,
.work-tab:focus-visible,
.project-image-btn:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.work-filters input:focus-visible,
.work-filters select:focus-visible,
.modal-close:focus-visible,
.modal-nav:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.site-top {
  padding: 18px 0 8px;
  min-height: 132px;
  position: sticky;
  top: 0;
  z-index: 1800;
  background: linear-gradient(180deg, #0a0b1000, #0a0b104d);
  backdrop-filter: var(--glass-blur);
}

.page-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header-tools {
  margin-left: auto;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--overlay);
  padding: 10px 12px;
}

.brand {
  font-family: var(--font-pixel);
  color: var(--yellow);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: 0.06em;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 250px;
}

.brand-main {
  display: block;
}

.brand-nick {
  display: block;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 32px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.rss-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 2px;
}

.rss-switch-select {
  border: 1px solid transparent;
  background: var(--bg-alt);
  color: var(--muted);
  min-width: 128px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 8px;
}

.rss-switch-select:hover {
  color: var(--yellow);
}

.rss-switch-select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 2px;
  gap: 2px;
}

.lang-switch-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  min-width: 36px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-switch-btn:hover {
  color: var(--yellow);
}

.lang-switch-btn.is-active {
  border-color: #d8ce4e;
  background: var(--yellow);
  color: #17160a;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--cyan);
  flex: 0 0 14px;
}

.nav-icon svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links a:hover .nav-icon {
  color: var(--yellow);
  border-color: #4a5163;
}

.frame-shell {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
  overflow-x: clip;
}

.stack-col {
  display: grid;
  gap: 18px;
  align-content: start;
}

.stack-left {
  grid-column: 1;
}

.stack-right {
  grid-column: 2;
}

.frame-arcade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.72;
}

.frame-arcade::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed rgba(79, 216, 255, 0.18);
  opacity: 0.6;
}

.frame-runner {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  will-change: transform;
  image-rendering: pixelated;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.frame-runner::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

.frame-dot {
  border-radius: 50%;
  background: #4fd8ff;
  box-shadow: 0 0 0 1px rgba(9, 14, 24, 0.65), 0 0 8px rgba(79, 216, 255, 0.75);
}

.frame-dot-a {
  background: #5ce0ff;
  animation: runnerIdlePulse 7.2s ease-in-out infinite;
}

.frame-dot-b {
  background: #31cfff;
  animation: runnerIdlePulse 7.2s ease-in-out infinite 1.6s;
}

.frame-runner.is-hit {
  animation: runnerSquash 0.26s cubic-bezier(0.2, 0.85, 0.24, 1), runnerHitFlash 0.26s ease-out;
}

.frame-score {
  position: absolute;
  top: 7px;
  right: 8px;
  border: 1px solid rgba(79, 216, 255, 0.45);
  background: rgba(10, 18, 30, 0.8);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  padding: 4px 6px;
  pointer-events: none;
}

.frame-hint {
  position: absolute;
  left: 8px;
  top: 7px;
  border: 1px solid rgba(79, 216, 255, 0.42);
  background: rgba(10, 18, 30, 0.85);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.frame-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.frame-hit-fx {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(79, 216, 255, 0.45);
  animation: frameHitFloat 0.52s ease-out forwards;
}

.frame-runner::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  border: 1px solid rgba(79, 216, 255, 0.45);
  background: rgba(10, 18, 30, 0.86);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.frame-runner:hover::after,
.frame-runner:focus-visible::after {
  opacity: 1;
}

.frame-burst {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  background:
    radial-gradient(circle, rgba(79, 216, 255, 0.95) 0%, rgba(79, 216, 255, 0.65) 28%, rgba(79, 216, 255, 0) 65%);
}

.frame-burst.is-active {
  animation: frameBurst 0.42s ease-out;
}

.frame-arcade.is-konami-mode {
  position: fixed;
  inset: 0;
  z-index: 96;
  opacity: 1;
  pointer-events: auto;
}

.frame-arcade.is-konami-mode::before {
  border: 0;
}

.frame-runner.is-ship {
  width: 16px;
  height: 16px;
  z-index: 7;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #9df6ff 0 28%, #40d2ff 29% 58%, #0f84c7 59% 100%);
  box-shadow: 0 0 0 1px rgba(6, 14, 24, 0.95), 0 0 12px rgba(79, 216, 255, 0.55);
  transform: translate(-50%, -50%) rotate(var(--ship-angle, 0deg));
}

.frame-runner.is-ship::before {
  inset: -14px;
}

.frame-runner.is-ship::after {
  top: -18px;
}

.frame-runner.is-ship.is-destroyed {
  opacity: 0.3;
}

.frame-shot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 1px;
  pointer-events: none;
}

.frame-shot-player {
  background: #c9fb6f;
  box-shadow: 0 0 0 1px rgba(16, 24, 8, 0.75), 0 0 10px rgba(201, 251, 111, 0.45);
}

.frame-shot-ship {
  background: #ff7b7b;
  box-shadow: 0 0 0 1px rgba(38, 8, 8, 0.75), 0 0 9px rgba(255, 123, 123, 0.45);
}

.frame-particle {
  position: absolute;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, #9fe4ff 70%, #ffffff 30%);
  filter: hue-rotate(var(--particle-hue, 0deg));
  pointer-events: none;
}

.konami-pixel-damage {
  position: absolute;
  width: var(--damage-size, 32px);
  height: var(--damage-size, 32px);
  transform: translate(-50%, -50%) rotate(var(--damage-rot, 0deg));
  border: 1px solid rgba(255, 90, 90, 0.42);
  background:
    repeating-linear-gradient(0deg, rgba(255, 109, 109, 0.28) 0 4px, rgba(255, 109, 109, 0.04) 4px 8px),
    repeating-linear-gradient(90deg, rgba(146, 52, 52, 0.34) 0 3px, rgba(146, 52, 52, 0) 3px 6px);
  box-shadow: 0 0 16px rgba(255, 90, 90, 0.24);
  pointer-events: none;
  animation: konamiDamageFade 0.56s ease-out forwards;
}

.konami-damaged {
  opacity: calc(1 - (var(--konami-damage-level, 1) * 0.08));
  filter:
    saturate(calc(1 - (var(--konami-damage-level, 1) * 0.08)))
    contrast(calc(1 - (var(--konami-damage-level, 1) * 0.04)))
    brightness(calc(1 - (var(--konami-damage-level, 1) * 0.05)));
  transform:
    translate(var(--konami-shift-x, 0), var(--konami-shift-y, 0))
    rotate(var(--konami-rot, 0deg))
    skewX(var(--konami-skew, 0deg));
  transition: transform 0.12s linear, opacity 0.12s linear, filter 0.12s linear;
  outline: 1px dashed rgba(255, 96, 96, 0.38);
  outline-offset: -1px;
}

.konami-damaged img,
.konami-damaged svg,
.konami-damaged video,
.konami-damaged canvas,
.konami-damaged picture {
  filter:
    saturate(calc(1 - (var(--konami-damage-level, 1) * 0.09)))
    contrast(calc(1 + (var(--konami-damage-level, 1) * 0.08)))
    brightness(calc(1 - (var(--konami-damage-level, 1) * 0.07)));
}

.konami-shattered-child {
  outline: 1px solid rgba(255, 96, 96, 0.28);
  outline-offset: -1px;
  text-shadow: 0 0 8px rgba(255, 86, 86, 0.34);
  transition: transform 0.1s linear, opacity 0.1s linear, clip-path 0.1s linear;
}

.konami-debris {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  image-rendering: pixelated;
  box-shadow:
    0 0 0 1px rgba(12, 8, 8, 0.42),
    0 0 8px rgba(255, 110, 110, 0.24);
  will-change: transform, opacity;
}

body.konami-mode-active,
body.konami-mode-active * {
  cursor: crosshair !important;
}

html.konami-mode-active-root,
body.konami-mode-active {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.konami-mode-active-root::-webkit-scrollbar,
body.konami-mode-active::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.konami-crosshair {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border: 1px solid rgba(201, 251, 111, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 110;
  box-shadow: 0 0 14px rgba(201, 251, 111, 0.35);
}

.konami-crosshair::before,
.konami-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(201, 251, 111, 0.86);
}

.konami-crosshair::before {
  width: 1px;
  height: 34px;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
}

.konami-crosshair::after {
  height: 1px;
  width: 34px;
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
}

.konami-hud {
  position: fixed;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 108;
  max-width: min(92vw, 760px);
}

.konami-hud span {
  border: 1px solid rgba(138, 226, 255, 0.55);
  background: rgba(7, 12, 18, 0.84);
  color: #9fe6ff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  padding: 5px 7px;
  letter-spacing: 0.04em;
}

.panel {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  border-color: var(--border-light);
}

.panel h2 {
  margin: 0 0 16px;
  font-family: var(--font-pixel);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.panel-hero {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-about {
  height: 100%;
  min-height: 460px;
}

.hero-terminal {
  margin-top: auto;
}

.hero-terminal .terminal-mini {
  margin-top: 0;
}

.kicker {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.pixel-title {
  margin: 0;
  font-family: var(--font-pixel);
  color: var(--yellow);
  font-size: clamp(1.15rem, 3vw, 2rem);
  line-height: 1.45;
}

.nickname {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  font-size: 12px;
  margin-left: 10px;
}

.hero-copy {
  margin: 16px 0 10px;
  max-width: 52ch;
}

.hero-value-list {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  display: grid;
  gap: 5px;
  color: #d7deea;
}

.hero-value-list li::marker {
  color: var(--cyan);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.hero-badge {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 6px 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
}

.hero-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-icons span {
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  background: #0b0f19;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-icons span b {
  font-size: 0.68rem;
  color: #071019;
  background: #64ddff;
  border: 1px solid #39b7da;
  padding: 1px 5px;
  line-height: 1.2;
}

.hero-icons span > a {
  color: var(--yellow);
  text-decoration: none;
}

.skills-matrix {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.skills-compact {
  margin-top: 4px;
  min-height: 420px;
}

.skills-recruiter-scan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 84px;
}

.skills-recruiter-scan span {
  border: 1px solid var(--line);
  background: #0b0f18;
  padding: 6px 8px;
  color: #9fe8ff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.skills-discovery-tools {
  border: 1px solid var(--line);
  background: #0a0e17;
  padding: 9px;
  margin-bottom: 8px;
}

.skills-discovery-tools input {
  width: 100%;
  border: 1px solid #2a5277;
  background: linear-gradient(180deg, #08111f, #060d18);
  color: #dbe8ff;
  padding: 10px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: 2px;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(45, 96, 138, 0.25);
  -webkit-appearance: none;
  appearance: none;
}

.skills-discovery-tools input:focus {
  outline: 1px solid #77e4ff;
  border-color: #77e4ff;
  box-shadow: 0 0 0 2px rgba(83, 214, 247, 0.18);
}

.skills-preset-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skills-discovery-tools .skills-preset-btn {
  border: 1px solid #305a7e;
  background: linear-gradient(180deg, #0b1728, #0a1220);
  color: #b9ecff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 9px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.skills-discovery-tools .skills-preset-btn:hover {
  border-color: #79e9ff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(121, 233, 255, 0.15) inset;
}

.skills-discovery-tools .skills-preset-btn.is-active {
  color: #0d1420;
  border-color: #d8ea46;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(13, 20, 32, 0.2) inset;
}

.skills-discovery-tools .skills-preset-btn:focus-visible {
  outline: 1px solid #79e9ff;
  outline-offset: 1px;
}

.skills-match-counter {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #b9c8dc;
}

.skills-match-counter strong {
  color: #f4ff63;
}

.skills-map-toggle {
  border: 1px solid var(--line);
  background: #090d16;
}

.skills-map-toggle summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9fe8ff;
}

.skills-map-toggle summary::-webkit-details-marker {
  display: none;
}

.skills-map-toggle summary::before {
  content: "+";
  display: inline-block;
  margin-right: 7px;
  color: #f4ff63;
}

.skills-map-toggle[open] summary::before {
  content: "-";
}

.skills-map-toggle .skills-matrix {
  margin: 0;
  padding: 0 10px 10px;
  height: 255px;
  max-height: 255px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.skills-map-toggle .hero-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.skills-map-toggle .hero-icons span {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.25;
  position: relative;
  padding-right: 44px;
}

@media (max-width: 1180px) {
  .skills-map-toggle .hero-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .skills-map-toggle .hero-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .skills-map-toggle .hero-icons {
    grid-template-columns: 1fr;
  }
}

.skills-map-toggle .hero-icons span b {
  position: absolute;
  top: -2px;
  right: 4px;
  min-width: 28px;
  text-align: center;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

@media (max-width: 560px) {
  .skills-map-toggle .hero-icons span {
    padding-right: 40px;
  }

  .skills-map-toggle .hero-icons span b {
    top: 3px;
    right: 3px;
    min-width: 26px;
    font-size: 0.64rem;
    padding: 1px 4px;
  }
}

.skills-group {
  border: 1px solid var(--line);
  background: #0a0e17;
  padding: 10px;
}

@media (max-width: 920px) {
  .skills-recruiter-scan {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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

.hero-secondary-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-inline-link {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.hero-proof-strip {
  margin-top: 14px;
  border: 1px solid #2f4558;
  background: linear-gradient(180deg, rgba(17, 26, 37, 0.78), rgba(11, 18, 28, 0.85));
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-proof-strip article {
  border: 1px solid rgba(79, 216, 255, 0.22);
  background: rgba(10, 18, 30, 0.58);
  padding: 7px 8px;
}

.hero-proof-strip .proof-k {
  margin: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.66rem;
  color: #8ebfce;
}

.hero-proof-strip strong {
  margin-top: 5px;
  display: inline-block;
  font-family: var(--font-pixel);
  color: var(--yellow);
  font-size: 0.66rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 13px;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.btn-yellow {
  color: #17160a;
  background: var(--yellow);
  border-color: #d8ce4e;
}

.hero-actions .btn-yellow {
  box-shadow: 0 0 0 1px rgba(216, 206, 78, 0.3), 0 0 18px rgba(216, 206, 78, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-actions .btn-yellow:hover {
  box-shadow: 0 0 0 1px rgba(216, 206, 78, 0.48), 0 0 24px rgba(216, 206, 78, 0.28);
}

.btn-dark {
  color: var(--text);
  background: #0d1018;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.about-grid p {
  margin: 0 0 10px;
  color: #d4dbe4;
}

.avatar {
  max-width: 100%;
  height: auto;
  border-radius: 100%;
  transform: rotate(17deg);
  border-bottom: 14px solid #484848;
}

.about-docs {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.about-side-fill {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.about-side-fill article {
  border: 1px solid var(--line);
  background: #0b101a;
  padding: 8px 10px;
}

.about-side-k {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8ebfce;
}

.about-side-fill strong {
  color: #e2ebfa;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.subpanel-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}

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

.docs-list a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.docs-list a:hover {
  border-color: var(--border-light);
  color: var(--yellow);
}

.social-links {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a::before {
  content: attr(data-ico);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  text-transform: lowercase;
}

.panel-exp {
  grid-column: 1 / -1;
}

.panel-recruiter {
  grid-column: 1 / -1;
  border-color: #3a4657;
  background:
    linear-gradient(180deg, rgba(18, 26, 36, 0.9), rgba(13, 19, 28, 0.95)),
    radial-gradient(circle at 85% 20%, rgba(79, 216, 255, 0.12), transparent 45%);
}

.recruiter-intro {
  margin: 0 0 12px;
  color: #d1dbea;
}

.recruiter-note {
  margin: -4px 0 12px;
  color: #8ebfce;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

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

.recruiter-card {
  border: 1px solid #32465d;
  background: rgba(9, 14, 22, 0.86);
  padding: 12px;
}

.recruiter-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.recruiter-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.recruiter-card p {
  margin: 0;
  color: #d4dde9;
}

.recruiter-card ul {
  margin: 0;
  padding-left: 17px;
  display: grid;
  gap: 7px;
}

.recruiter-card li {
  color: #d4dde9;
}

.recruiter-card li strong {
  color: var(--yellow);
}

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

.exp-hint {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.exp-table {
  border: 1px solid var(--line);
}

.exp-item {
  border-bottom: 1px solid var(--line);
}

.exp-item:last-child {
  border-bottom: 0;
}

.exp-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 0.12fr 1.1fr 1fr 1.6fr 0.2fr;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  cursor: pointer;
}

.exp-toggle:hover {
  background: rgba(79, 216, 255, 0.06);
}

.exp-arrow {
  color: var(--cyan);
  font-weight: 700;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.exp-item.is-open .exp-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.exp-company {
  color: var(--text);
}

.exp-role {
  color: var(--muted);
}

.exp-meta {
  color: #cdd6e2;
}

.exp-more {
  text-align: right;
  color: var(--yellow);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.exp-item.is-open .exp-more {
  transform: rotate(45deg);
}

.exp-details {
  padding: 0 12px 12px;
  color: var(--muted);
}

.exp-details ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  text-transform: none;
}

.exp-details li::marker {
  color: var(--cyan);
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags li {
  border: 1px solid var(--line);
  background: #0f121b;
  padding: 6px 10px;
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.82rem;
}

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

.cert-grid,
.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
  justify-content: start;
}

.project-grid > .project-card,
.cert-grid > .cert-card {
  width: 100%;
  max-width: 340px;
}

.card {
  border: 1px solid var(--line);
  padding: 10px;
  background: #0d1018;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card,
.cert-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #464d5f;
}

.card h3 {
  margin: 10px 0 6px;
  font-size: 1.01rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.project-image-btn {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image-btn img,
.card img,
.page-content img {
  width: 100%;
  border: 1px solid var(--line);
}

.project-image-btn img {
  height: 100%;
  object-fit: cover;
}

.cert-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-head {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-head h3 {
  margin: 0;
}

.project-status {
  border: 1px solid var(--line);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-status-andamento {
  color: #f8ca56;
  border-color: #7c6430;
  background: rgba(248, 202, 86, 0.08);
}

.project-status-concluido {
  color: #68f4ad;
  border-color: #2a7651;
  background: rgba(104, 244, 173, 0.08);
}

.project-status-cancelado {
  color: #ff8d8d;
  border-color: #844848;
  background: rgba(255, 141, 141, 0.1);
}

.project-description {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.project-category {
  margin-top: 8px;
  color: #c6cede;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project-card .inline-link,
.cert-card .inline-link,
.project-card .project-card-cta,
.cert-card .project-card-cta {
  margin-top: auto;
}

.project-card .project-card-cta {
  margin-top: 12px;
  align-self: flex-start;
  color: var(--yellow);
  background: linear-gradient(180deg, #111726 0%, #0b1020 100%);
  border-color: #38425a;
  text-transform: uppercase;
}

.project-card .project-card-cta:hover {
  color: #101507;
  background: var(--yellow);
  border-color: #d8ce4e;
}

.project-tags {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags li {
  border: 1px solid var(--line);
  background: #0f121b;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

.project-tags li:nth-child(n + 4) {
  display: none;
}

.work-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 12px;
}

.work-tab {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.work-tab.is-active {
  color: #0f1a08;
  background: var(--yellow);
  border-color: #d8ce4e;
}

.work-panel.is-hidden {
  display: none;
}

.work-filters {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 150px auto;
  gap: 8px;
}

.work-filters input,
.work-filters select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.work-filters select {
  text-transform: uppercase;
}

.work-filters .btn {
  align-self: stretch;
}

.project-card.is-filter-hidden {
  display: none;
}

.panel-projects-list {
  grid-column: 1 / -1;
}

.panel-projects-list h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
}

.projects-intro {
  margin: 8px 0 14px;
  color: #c5ceda;
}

.projects-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.projects-kpi {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 8px 10px;
}

.projects-kpi-label {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--cyan);
}

.projects-kpi strong {
  margin-top: 4px;
  display: inline-block;
  font-family: var(--font-pixel);
  color: var(--yellow);
  font-size: 0.72rem;
}

.panel-projects-list .work-filters {
  grid-template-columns: minmax(220px, 1fr) 160px 160px 150px auto;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--yellow);
  text-decoration: none;
}

.inline-link-video {
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid #3a495f;
  background: #0a0f18;
  color: #d9fb57;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.inline-link-video:hover {
  border-color: #5addff;
  color: #ffffff;
  background: #101a29;
  transform: translateY(-1px);
}

.cert-preview-actions {
  margin-top: 14px;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px;
  font-family: var(--font-mono);
}

.contact-form button {
  justify-self: start;
}

.contact-modal-entry p {
  margin: 0 0 10px;
  color: var(--muted);
}

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

.status-card {
  border: 1px solid var(--line);
  background: #0d1018;
  padding: 10px;
}

.status-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.status-value {
  margin: 8px 0 4px;
  font-family: var(--font-pixel);
  color: var(--yellow);
  font-size: 0.8rem;
}

.status-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.proof-list li {
  border: 1px solid var(--line);
  background: #0d1018;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.proof-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-icon {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  background: #0f1727;
  box-shadow: 0 0 6px rgba(79, 216, 255, 0.25);
}

.proof-icon-years {
  background:
    linear-gradient(#0f1727, #0f1727),
    linear-gradient(#4fd8ff, #4fd8ff);
  background-size: 100% 100%, 60% 2px;
  background-position: center, center;
  background-repeat: no-repeat;
}

.proof-icon-services {
  background:
    linear-gradient(#4fd8ff, #4fd8ff),
    linear-gradient(#4fd8ff, #4fd8ff),
    #0f1727;
  background-size: 2px 60%, 60% 2px, 100% 100%;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.proof-icon-response {
  border-radius: 50%;
  background:
    radial-gradient(circle, #4fd8ff 35%, rgba(79, 216, 255, 0) 36%),
    #0f1727;
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.35);
}

.proof-list strong {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  color: var(--yellow);
}

.proof-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.proof-list li.is-highlight {
  animation: proofPulse 0.9s ease-out;
}

.cases-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-item {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 10px;
}

.case-title {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.case-item strong {
  margin-top: 6px;
  display: inline-block;
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
}

.case-item span {
  margin-top: 7px;
  display: block;
  color: var(--muted);
}

.posts-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.posts-list {
  display: grid;
  gap: 10px;
}

.posts-item {
  border: 1px solid var(--line);
  background: #0d1018;
  padding: 10px;
}

.posts-item h3 {
  margin: 6px 0;
  font-size: 1rem;
  line-height: 1.35;
}

.posts-item p {
  margin: 0;
  color: var(--muted);
}

.posts-date {
  margin: 0 0 6px !important;
  color: var(--cyan) !important;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.posts-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.posts-tags span {
  border: 1px solid var(--line);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: var(--bg-alt);
}

.blog-shell {
  display: grid;
  gap: 14px;
}

[data-i18n-page="blog_hub"] .page-header .container {
  display: grid;
  gap: 8px;
}

[data-i18n-page="blog_hub"] .page-header h1 {
  margin-bottom: 0;
}

.blog-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(280px, 1fr) 220px 220px;
  align-items: end;
}

.blog-controls label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-controls input,
.blog-controls select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px;
  font-family: var(--font-mono);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  justify-content: start;
}

.blog-grid > .blog-card {
  width: 100%;
  max-width: 360px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.blog-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-page-btn,
.blog-page-nav {
  border: 1px solid var(--line);
  background: #0b1019;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

.blog-page-btn:hover,
.blog-page-nav:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.blog-page-btn.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--bg-alt);
  font-weight: 700;
}

.blog-page-nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-page-sep {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 2px;
}

.blog-card h3 {
  margin: 6px 0 8px;
}

.blog-card-hero {
  margin: -10px -10px 10px;
}

.blog-card-cover-link {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  min-height: 168px;
}

.blog-card-cover {
  width: 100%;
  height: 202px;
  object-fit: cover;
  border: 0;
  transition: transform 0.24s ease;
}

.blog-card-cover-link:hover .blog-card-cover {
  transform: scale(1.03);
}

.blog-card-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.05) 0%, rgba(7, 11, 18, 0.5) 58%, rgba(7, 11, 18, 0.92) 100%);
}

.blog-card-cover-overlay .posts-date {
  margin: 0;
  font-size: 0.7rem;
  color: var(--cyan);
  text-shadow: 0 1px 0 rgba(6, 10, 18, 0.75);
}

.blog-card-cover-overlay h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.26;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(6, 10, 18, 0.9);
}

.blog-card .category-link {
  display: inline;
  margin-top: 0;
}

.blog-post {
  width: min(1220px, 94%);
  max-width: min(1220px, 94%);
  margin-left: auto;
  margin-right: auto;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1300;
  background: rgba(52, 56, 68, 0.52);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #7f255f 0%, #9a2f74 38%, #6c40b8 66%, #2f8fb8 100%);
  box-shadow: 0 0 10px rgba(127, 37, 95, 0.26), 0 0 6px rgba(47, 143, 184, 0.16);
  transition: width 180ms ease-out;
}

.page-header.blog-post-header.has-cover {
    position: relative;
    width: min(1220px, 94%);
    margin: 0 auto;
    min-height: clamp(300px, 44vh, 460px);
    display: flex;
    align-items: flex-end;
    padding: 26px clamp(14px, 1vw, 24px) 24px;
    background-image: var(--blog-cover-image);
    background-size: cover;
    background-position: var(--blog-cover-position, center center);
    border: 0;
}

.blog-post-header.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.06) 0%, rgba(5, 8, 14, 0.46) 56%, rgba(5, 8, 14, 0.86) 100%),
    linear-gradient(90deg, rgba(6, 10, 18, 0.68) 0%, rgba(6, 10, 18, 0.34) 42%, rgba(6, 10, 18, 0.08) 74%, rgba(6, 10, 18, 0.28) 100%);
}

.blog-post-header.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(70, 224, 255, 0.16) 0, rgba(70, 224, 255, 0) 34%),
    radial-gradient(circle at 78% 18%, rgba(198, 110, 255, 0.1) 0, rgba(198, 110, 255, 0) 30%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 22px
    );
  pointer-events: none;
}

.blog-post-header.has-cover .blog-post-header-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    align-items: start;
    max-width: min(860px, 72%);
    margin-left: 0;
    margin-right: auto;
    padding: 16px 0 14px;
    backdrop-filter: blur(2px);
}

.blog-post-header.has-cover .blog-post-header-inner .back-link,
.blog-post-header.has-cover .blog-post-header-inner h1,
.blog-post-header.has-cover .blog-post-header-inner .posts-kicker {
  margin: 0;
}

.blog-post-header.has-cover .blog-post-header-inner h1 {
  max-width: 28ch;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(1.66rem, 3.2vw, 2.74rem);
}

.blog-post-header.has-cover .back-link {
  color: #eaff6e;
  text-shadow: 0 0 9px rgba(17, 22, 7, 0.4);
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(202, 255, 70, 0.45);
  background: rgba(8, 12, 20, 0.55);
}

.blog-post-header.has-cover h1 {
  text-shadow: 0 2px 12px rgba(5, 8, 14, 0.9);
}

.blog-post-header.has-cover .posts-kicker {
  text-shadow: 0 1px 8px rgba(5, 8, 14, 0.65);
  color: #71dcff;
  font-size: 0.84rem;
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(78, 168, 255, 0.34);
  background: rgba(8, 12, 20, 0.52);
}

@media (max-width: 760px) {
  .blog-post-header.has-cover {
    min-height: clamp(260px, 42vh, 340px);
    padding: 18px 12px 14px;
  }

  .blog-post-header.has-cover .blog-post-header-inner {
    max-width: 100%;
    padding: 0;
    gap: 10px;
    border-left: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
  }

  .blog-post-header.has-cover .blog-post-header-inner h1 {
    max-width: 20ch;
    font-size: clamp(1.45rem, 8vw, 2.05rem);
  }
}

.blog-post h2 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.blog-post p,
.blog-post li {
  color: #d7deea;
}

.blog-post img {
  width: auto;
  max-width: min(100%, 920px);
  max-height: min(72vh, 720px);
  margin: 12px auto 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--cyan) 22%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  object-fit: contain;
  cursor: zoom-in;
}

.blog-post img.image-compact {
  max-width: min(100%, 760px);
  max-height: min(64vh, 560px);
}

.blog-post img.image-full {
  max-width: 100%;
  max-height: none;
}

.blog-post ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.blog-post blockquote {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--cyan);
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--cyan) 22%);
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.84), rgba(8, 11, 18, 0.9));
  color: #dbe4f4;
}

.blog-post blockquote p {
  margin: 0;
}

body.is-image-lightbox-open {
  overflow: hidden;
}

.blog-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
}

.blog-image-lightbox[hidden] {
  display: none;
}

.blog-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.88);
  backdrop-filter: blur(2px);
}

.blog-image-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(95vw, 1280px);
  max-height: 92vh;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, var(--cyan) 35%);
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.96), rgba(8, 12, 18, 0.96));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}

.blog-image-lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 78px);
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--cyan) 28%);
}

.blog-image-lightbox-caption {
  margin: 8px 0 0;
  text-align: center;
  color: #b8c8e2;
  font-size: 0.88rem;
}

.blog-image-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #0b111b;
  color: #d7deea;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.blog-image-lightbox-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.blog-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.blog-share-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-toc-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-toc-select {
  border: 1px solid var(--line);
  background: #0b1019;
  color: #d7deea;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 8px;
  min-width: 220px;
}

.blog-toc-select:focus {
  outline: none;
  border-color: var(--cyan);
}

.blog-share-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.blog-share-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-tool-btn {
  border: 1px solid var(--line);
  background: #0d141f;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 10px;
  cursor: pointer;
}

.blog-tool-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.blog-tool-btn.is-ghost {
  background: #0a1019;
  color: #d4deef;
}

.blog-tool-btn.is-saved {
  border-color: #c8ff35;
  color: #dfff6a;
  background: #10190b;
}

.blog-comments {
  width: min(1220px, 94%);
  max-width: min(1220px, 94%);
  margin: 14px auto 0;
  padding-top: 14px;
}

.blog-comments h2 {
  margin: 0 0 8px;
}

.blog-comments p {
  margin: 0 0 12px;
  color: var(--muted);
}

.blog-comments-note {
  border: 1px dashed #3a4d6f;
  background: #0b1321;
  color: #b8c8e2;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.blog-comments [data-comments-host] {
  margin-top: 10px;
  min-height: 420px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, #4fd8ff 22%);
  background: linear-gradient(180deg, rgba(9, 13, 21, 0.78), rgba(7, 10, 16, 0.88));
  padding: 6px;
}

.blog-comments #cusdis_thread {
  min-height: 400px;
}

.blog-comments #cusdis_thread iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  background: transparent;
}

.blog-cc-license {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 78%, #56d9ff 22%);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-cc-license-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 76%, #56d9ff 24%);
  background: #0a101a;
  padding: 4px;
}

.blog-cc-license img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.blog-cc-license p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-cc-license a {
  color: var(--cyan);
}

@media (max-width: 760px) {
  .blog-reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-toc-select {
    width: 100%;
    min-width: 0;
  }

  .blog-cc-license img {
    width: 132px;
  }
}

.code-block-shell {
  position: relative;
  margin: 10px 0 14px;
}

.code-block-shell.has-system {
  margin-top: 10px;
}

.code-system-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 36px;
  border: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background: #090d16;
  color: #dbe8ff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0px 10px 0px;
  min-height: 0;
  margin-bottom: 0;
  pointer-events: none;
  max-width: max-content;
}

.code-system-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  border: 0;
  box-shadow: none;
}

.code-system-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border: 0;
  box-shadow: none;
}

.code-system-label.is-icon-missing .code-system-icon::before {
  content: "•";
  color: #9dc6ff;
  font-size: 1rem;
  line-height: 1;
}

.code-block-shell.is-system-sql .code-system-label,
.code-block-shell.is-system-mysql .code-system-label,
.code-block-shell.is-system-mariadb .code-system-label {
  border-color: #3f4f73;
  color: #d7e8ff;
}

.code-block-shell.is-system-php .code-system-label,
.code-block-shell.is-system-javascript .code-system-label,
.code-block-shell.is-system-typescript .code-system-label {
  border-color: #5a4b7d;
  color: #ebddff;
}

.code-block-shell.is-system-text .code-system-label {
  border-color: #2f3950;
  color: #dff4ff;
}

.blog-post pre,
.project-paper pre {
  margin: 0;
  /*background: linear-gradient(180deg, #0b111a 0%, #090f17 100%);
    border: 1px solid #2b3344;
    box-shadow: inset 0 0 0 1px rgba(79, 216, 255, 0.08);
  */
  background: #090d16;
  overflow-x: auto;
  padding: 14px 14px 12px;
}

.code-block-shell.has-system .blog-post pre,
.code-block-shell.has-system pre {
  border-top-left-radius: 0;
  margin-top: -1px;
  border-bottom: 4px solid #0f1727;
}

.code-block-shell.has-system .code-copy-btn {
  top: 6px;
  z-index: 2;
}

.blog-post pre code,
.project-paper pre code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #dde6f4;
  text-shadow: none;
}

.blog-post pre[data-code-kind="text"],
.project-paper pre[data-code-kind="text"] {
  /*
  border-color: #36506f;
  background: linear-gradient(180deg, #0e1a2a 0%, #0b1724 100%);
  box-shadow: inset 0 0 0 1px rgba(143, 231, 255, 0.15);
  */
}

.blog-post pre[data-code-kind="text"] code,
.project-paper pre[data-code-kind="text"] code {
  color: #dff4ff;
}

.blog-post pre[class*="language-"],
.blog-post code[class*="language-"],
.project-paper pre[class*="language-"],
.project-paper code[class*="language-"] {
  background: #090d16 !important;
  color: #dde6f4;
}

.blog-post .token.comment,
.blog-post .token.prolog,
.blog-post .token.doctype,
.blog-post .token.cdata {
  color: #7088a5;
  font-style: italic;
}

.blog-post .token.punctuation {
  color: #b5c3d8;
}

.blog-post .token.property,
.blog-post .token.tag,
.blog-post .token.boolean,
.blog-post .token.number,
.blog-post .token.constant,
.blog-post .token.symbol,
.blog-post .token.deleted {
  color: #ff7b9c;
}

.blog-post .token.selector,
.blog-post .token.attr-name,
.blog-post .token.string,
.blog-post .token.char,
.blog-post .token.builtin,
.blog-post .token.inserted {
  color: #7ef7c2;
}

.blog-post .token.operator,
.blog-post .token.entity,
.blog-post .token.url,
.blog-post .language-css .token.string,
.blog-post .style .token.string {
  color: #9ac2ff;
}

.blog-post .token.atrule,
.blog-post .token.attr-value,
.blog-post .token.keyword {
  color: #ffd166;
}

.blog-post .token.function,
.blog-post .token.class-name {
  color: #8ad8ff;
}

.blog-post .token.regex,
.blog-post .token.important,
.blog-post .token.variable {
  color: #ffbd66;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid #2d3b57;
  background: #0d1422;
  color: #93dbff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.code-copy-btn:hover {
  border-color: #4fd8ff;
  color: #dff7ff;
  background: #101c30;
}

.code-copy-btn.is-copied {
  border-color: #7ef7c2;
  color: #7ef7c2;
}

.blog-post code:not(pre code) {
  font-family: var(--font-mono);
  background: #0b1220;
  border: 1px solid #2f3a57;
  color: var(--cyan);
  padding: 1px 5px;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 0.92rem;
}

.blog-table th,
.blog-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.blog-table th {
  font-family: var(--font-mono);
  color: var(--yellow);
  background: #0a0e17;
}

.terminal-mini {
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

.terminal-mini p {
  margin: 0 0 4px;
}

.terminal-mini p:last-child {
  margin-bottom: 0;
}

.terminal-live::after {
  content: "_";
  margin-left: 2px;
  animation: blinkCursor 0.95s steps(1) infinite;
}

.terminal-live {
  display: block;
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cert-page {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.cert-panel-head .pixel-title {
  margin-top: 0;
}

.cert-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
}

.control-item {
  display: grid;
  gap: 6px;
}

.control-item label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.control-item input,
.control-item select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px;
  font-family: var(--font-mono);
}

.cert-count {
  margin: 12px 0 0;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.cert-mobile-hint {
  display: none;
  margin: 6px 0 0;
  color: #9fdfff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.cert-grid-full {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cert-image-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 150px;
  border: 1px solid var(--line);
  background: #090c14;
  overflow: hidden;
}

.cert-image-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #090c14;
}

.cert-card-meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.cert-load-actions {
  margin-top: 16px;
  text-align: center;
}

.cert-load-sentinel {
  margin-top: 14px;
  min-height: 34px;
  border: 1px dashed rgba(79, 216, 255, 0.32);
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.62), rgba(9, 13, 22, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-modal-meta,
.cert-modal-tags {
  color: var(--muted);
}

#certModalImage {
  width: 100%;
  height: min(62vh, 640px);
  object-fit: contain;
  border: 1px solid var(--line);
  background: #090c14;
  margin: 0 0 10px;
}

.empty-state {
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
}

.loading-state {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 16, 25, 0.94), rgba(9, 13, 22, 0.96));
  padding: 12px;
}

.loading-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(79, 216, 255, 0.16);
  border-top-color: rgba(124, 154, 255, 0.72);
  border-right-color: rgba(154, 47, 116, 0.45);
  border-radius: 50%;
  animation: loadingSpin 1.15s linear infinite;
}

.loading-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.loading-grid-blog {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.loading-card {
  border: 1px solid var(--line);
  background: #0a0e18;
  padding: 10px;
}

.loading-card-blog {
  min-height: 178px;
}

.loading-card-cert .loading-line {
  margin-top: 8px;
}

.loading-shimmer {
  position: relative;
  overflow: hidden;
  background: #101524;
}

.loading-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(127, 37, 95, 0) 0%,
    rgba(127, 37, 95, 0.09) 42%,
    rgba(124, 154, 255, 0.1) 57%,
    rgba(127, 37, 95, 0) 100%
  );
  animation: loadingShimmer 1.9s cubic-bezier(0.35, 0.55, 0.25, 0.95) infinite;
}

.loading-thumb {
  height: 140px;
  border: 1px solid var(--line);
}

.loading-thumb-cert {
  height: 158px;
  background: #0c1020;
}

.loading-line {
  height: 10px;
  margin-top: 10px;
  border: 1px solid rgba(52, 56, 68, 0.45);
}

.loading-line.w-85 {
  width: 85%;
}

.loading-line.w-65 {
  width: 65%;
}

.loading-line.w-30 {
  width: 30%;
}

.loading-line.w-70 {
  width: 70%;
}

.loading-line.w-40 {
  width: 40%;
}

.loading-tags-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.loading-tag {
  width: 54px;
  height: 18px;
  border: 1px solid rgba(52, 56, 68, 0.5);
  background: #101524;
}

@keyframes loadingShimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .loading-shimmer::after {
    animation: none !important;
  }
}

.footer {
  padding: 24px 0 34px;
  text-align: center;
  color: #8b93a3;
  font-family: var(--font-mono);
}

.footer-links {
  margin: 6px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cyan);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(860px, 96vw);
  max-height: calc(100vh - 20px);
  margin: 0;
  background: #0e121c;
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal.is-certificate-modal .modal-box {
  width: min(980px, 97vw);
}

.modal.is-certificate-modal .modal-gallery {
  height: min(54vh, 560px);
}

.modal-gallery {
  position: relative;
  border: 1px solid var(--line);
  background: #0a0f19;
  height: min(46vh, 430px);
  display: grid;
  place-items: center;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  background: #090c14;
  margin: 0 auto;
}

#shotModal .modal-box {
  width: min(1120px, 97vw);
  max-height: calc(100vh - 24px);
}

#shotModal .modal-gallery {
  height: min(66vh, 720px);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 25, 0.88);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-nav-prev {
  left: 8px;
}

.modal-nav-next {
  right: 8px;
}

.modal-thumbs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 10px;
  align-items: center;
  min-height: 78px;
  scrollbar-width: thin;
}

.modal-thumb {
  border: 1px solid var(--line);
  background: #070b14;
  padding: 3px;
  flex: 0 0 112px;
  min-width: 112px;
  height: 68px;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #070b14;
  border: 0;
  image-rendering: auto;
}

.modal-thumbs .modal-thumb img {
  min-width: 0;
  min-height: 0;
}

.modal-thumb.is-active {
  border-color: var(--yellow);
}

.modal-counter {
  margin: 8px 0 6px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.modal-info {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.modal-info h3 {
  margin: 0 0 6px;
}

.modal-description {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-certs-link {
  position: relative;
  padding-inline-start: 34px;
  border-color: #355f7a;
  color: #8fe7ff;
  background: linear-gradient(180deg, #0f1a2a 0%, #0a1422 100%);
  box-shadow: inset 0 0 0 1px rgba(79, 216, 255, 0.12);
}

.modal-certs-link::before {
  content: "◈";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 0.78rem;
  color: #68dcff;
}

.modal-certs-link:hover {
  border-color: #6ddfff;
  color: #d9f8ff;
  background: linear-gradient(180deg, #12304a 0%, #0b2236 100%);
}

.modal-certs-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.modal-certs-link.is-primary {
  border-color: #d8ce4e;
  color: #17160a;
  background: var(--yellow);
  box-shadow: none;
}

.modal-certs-link.is-primary::before {
  color: #17160a;
}

.modal-certs-link.is-primary:hover {
  background: #f7ee7a;
  color: #101507;
}

.modal-box-cv {
  width: min(1180px, 96vw);
  height: min(90vh, 980px);
  max-height: calc(100vh - 20px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
}

.modal-box-sendmail {
  width: min(1040px, 96vw);
  height: min(90vh, 980px);
  max-height: calc(100vh - 20px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  overflow: hidden;
}

.cv-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 72vh, 860px);
  border: 1px solid var(--line);
  background: #090c14;
}

.sendmail-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  background: #090c14;
}

.modal-box-video {
  width: min(1220px, 97vw);
  height: min(92vh, 980px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  overflow: hidden;
}

.video-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 72vh, 860px);
  border: 1px solid var(--line);
  background: #090c14;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #0a0f19;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
  cursor: pointer;
}

.page-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--yellow);
  text-decoration: none;
  font-family: var(--font-mono);
}

[data-i18n-page="project_detail"] .page-header .container {
  display: grid;
  gap: 6px;
  align-items: start;
}

[data-i18n-page="project_detail"] .page-header h1 {
  margin: 0;
}

.page-content {
  padding: 24px 0 42px;
}

.cv-page .page-content {
  padding-top: 32px;
}

.cv-paper {
  max-width: 940px;
  margin: 0 auto;
  padding: 28px 30px;
  background: #ffffff;
  color: #1e2430;
  border: 1px solid #d2d8e4;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.cv-paper h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  color: #101522;
  letter-spacing: 0;
  text-transform: none;
}

.cv-paper p,
.cv-paper li {
  color: #2b3445;
  line-height: 1.7;
  font-size: 1.08rem;
}

.cv-paper ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.cv-paper a {
  color: #144f9e;
  text-decoration: underline;
}

.cv-paper h2 + p {
  margin-top: 0;
}

.project-paper {
  width: min(1220px, 94%);
  max-width: min(1220px, 94%);
  padding: 34px 40px;
  background: #101218;
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.project-cover-wrap {
  position: relative;
  background: #090c14;
  margin: 0 0 18px;
  padding: 14px 10px;
}

.project-cover-inner {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.project-paper .project-cover {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(42vh, 420px);
  object-fit: contain;
  background: transparent;
  border: 0;
  margin: 0;
}

.project-status-ribbon {
  position: absolute;
  top: 6px;
  right: -24px;
  transform: rotate(35deg);
  border: 1px solid var(--line);
  padding: 3px 26px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.project-status-ribbon-andamento {
  color: #ffe56d;
  border-color: #a58f2c;
  background: rgba(216, 206, 78, 0.2);
}

.project-status-ribbon-concluido {
  color: #6df7b7;
  border-color: #20895e;
  background: rgba(38, 172, 115, 0.22);
}

.project-status-ribbon-cancelado {
  color: #ff9f9f;
  border-color: #a34b4b;
  background: rgba(156, 52, 52, 0.24);
}

.project-toolbar {
  position: sticky;
  top: 10px;
  z-index: 15;
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.96);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.project-toolbar-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #0a0f1b;
  color: #cdd6e5;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 7px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.project-toolbar-item:hover {
  border-color: #34bfe8;
  color: #ffffff;
  transform: translateY(-1px);
}

.project-toolbar-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2c9dbd;
  background: rgba(79, 216, 255, 0.12);
  color: #62deff;
  font-size: 0.52rem;
  line-height: 1;
  font-weight: 700;
}

.project-paper h2[id] {
  scroll-margin-top: 88px;
}

.project-hero-subtitle {
  margin: 8px 0 0;
  color: #a8bbd5;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.project-meta-strip {
  margin: 2px 0 14px;
  border: 1px solid var(--line);
  background: #0b0f18;
  padding: 8px;
}

.project-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.project-meta-item {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0f18, #090d16);
  color: #c6d2e2;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-meta-item small {
  color: #8ca5c4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta-item strong {
  color: #e2ebfa;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-meta-tags-title {
  margin: 0 0 6px;
  color: #8ca5c4;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-meta-tags li {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0f18, #090d16);
  color: #62deff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
}

.project-links-hub {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #0b0f19;
  padding: 12px;
}

.project-links-hub h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.project-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #0d1018;
  color: #cdd6e5;
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.project-paper a.project-link-chip {
  text-decoration: none;
  color: #cdd6e5;
}

.project-link-chip::before {
  content: attr(data-ico);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-size: 0.6rem;
  line-height: 1;
}

.project-link-chip:hover {
  border-color: #34bfe8;
  color: #ffffff;
  transform: translateY(-1px);
}

.project-paper a.project-link-chip:hover {
  color: #ffffff;
}

.project-link-chip-cyan {
  color: #62deff;
}

.project-link-chip-yellow {
  color: #17160a;
  background: var(--yellow);
  border-color: #d8ce4e;
}

.project-paper a.project-link-chip-yellow {
  color: #17160a;
}

.project-paper a.project-link-chip-yellow:hover {
  color: #17160a;
  border-color: #f2e96c;
}

.project-link-chip-yellow::before {
  color: #17160a;
}

.project-paper h2 {
  margin-top: 20px;
  font-size: 1.4rem;
  color: var(--text);
}

.project-paper p,
.project-paper li {
  color: #d4dbe6;
}

.project-paper a {
  color: var(--cyan);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}

.impact-card {
  background: #0b0f19;
  border: 1px solid var(--line);
  padding: 12px;
}

.impact-card h3 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.impact-card p {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.impact-card p:last-child {
  margin-bottom: 0;
}

.stack-validated-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-validated-list li {
  border: 1px solid var(--line);
  background: #090d16;
  color: #9fe8ff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 8px;
  letter-spacing: 0.02em;
}

.project-cta {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #0b0f19;
  padding: 12px;
}

.project-cta h2 {
  margin-top: 0;
}

.project-cta p {
  margin: 0 0 10px;
}

.project-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-paper .project-cta-actions .btn {
  text-decoration: none;
  padding: 10px 14px;
  min-height: 40px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.project-paper .project-cta-actions .btn-yellow {
  color: #17160a;
}

.project-paper .project-cta-actions .btn-dark {
  color: var(--text);
  background: #0d1018;
}

.project-paper .project-cta-actions .btn-dark:hover {
  color: #ffffff;
  border-color: #4a5a78;
}

.project-paper .project-cta-actions .btn[data-ico] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.project-paper .project-cta-actions .btn[data-ico]::before {
  content: attr(data-ico);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1;
}

.project-video-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.project-video-btn {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-color: #2f3a57;
  background: linear-gradient(180deg, #111725 0%, #0b101d 100%);
  color: #dbe4f8;
  box-shadow: inset 0 0 0 1px rgba(92, 112, 150, 0.18);
}

.project-video-btn:hover {
  border-color: #5a6f99;
  color: #fff;
  background: linear-gradient(180deg, #162136 0%, #101b2f 100%);
}

.issues-panel {
  border: 1px solid var(--line);
  background: #0b0f19;
  padding: 12px;
  margin-top: 8px;
}

.issues-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.issues-kicker {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.issues-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.issues-stats span {
  border: 1px solid var(--line);
  background: #090d16;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #c8d1df;
}

.issues-stats strong {
  color: var(--yellow);
}

.issues-loading,
.issues-error {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.issues-error {
  color: #ff8f8f;
}

.issues-board {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 146px;
  gap: 7px;
  align-items: start;
}

.issue-item {
  border: 1px solid var(--line);
  background: #0a0f1b;
  padding: 7px 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.issue-item:hover {
  border-color: #2a90b0;
  transform: translateY(-1px);
}

.issue-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.issue-link {
  text-decoration: none;
  color: var(--cyan);
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 92%;
}

.issue-open-github {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #0b1020;
  color: var(--yellow);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  white-space: nowrap;
}

.issue-meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #9da8bb;
}

.issue-state {
  border: 1px solid var(--line);
  padding: 1px 6px;
  text-transform: uppercase;
}

.issue-state-open {
  color: #56ffa2;
  border-color: #2d955d;
  background: rgba(57, 207, 124, 0.16);
}

.issue-state-closed {
  color: #aeb7c7;
  border-color: #586071;
  background: rgba(153, 166, 191, 0.12);
}

.issue-labels {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 22px;
  overflow: hidden;
}

.issue-labels span {
  border: 1px solid var(--line);
  background: #070b14;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8ddcff;
}

@media (max-width: 760px) {
  .project-grid > .project-card,
  .cert-grid > .cert-card,
  .blog-grid > .blog-card {
    max-width: none;
  }

  .blog-card-cover {
    height: 180px;
  }

  .issues-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
  }
}

@media (max-width: 520px) {
  .issues-board {
    grid-template-columns: 1fr;
    grid-auto-rows: 136px;
  }
}

.issues-empty {
  border: 1px solid var(--line);
  background: #090d16;
  padding: 10px;
  font-family: var(--font-mono);
  color: #9da8bb;
}

.issue-modal-box {
  width: min(980px, 97vw);
  max-height: calc(100vh - 20px);
  overflow-x: hidden;
}

.issue-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.issue-modal-top a {
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.issue-modal-meta {
  margin-top: 6px;
  color: #aab5c8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.issue-modal-body {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #090d16;
  padding: 12px;
  color: #d8dfeb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
  max-height: 38vh;
  overflow: auto;
}

.issue-modal-comments-title {
  margin: 14px 0 8px;
  font-family: var(--font-mono);
  color: #d6dbe6;
}

.issue-modal-comments {
  display: grid;
  gap: 8px;
  max-height: 30vh;
  overflow: auto;
  padding-right: 2px;
}

.issue-comment {
  border: 1px solid var(--line);
  background: #090d16;
  padding: 9px 10px;
}

.issue-comment p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.issue-comment-meta {
  margin-bottom: 6px !important;
  color: #9da8bb;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project-gallery {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.project-shot {
  display: block;
  background: #090c14;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-gallery > .project-shot:only-child {
  max-width: min(720px, 100%);
  justify-self: center;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.project-shot:hover img {
  transform: scale(1.02);
}

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

@keyframes pacmanMouth {
  0%,
  100% {
    transform: rotate(16deg);
  }
  50% {
    transform: rotate(-12deg);
  }
}

@keyframes frameBurst {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.15);
  }
  70% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(3.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.6);
  }
}

@keyframes runnerHitFlash {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(79, 216, 255, 0);
  }
  45% {
    filter: brightness(1.35);
    box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.28);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(79, 216, 255, 0);
  }
}

@keyframes runnerSquash {
  0% {
    width: 14px;
    height: 14px;
    border-radius: 50%;
  }
  28% {
    width: 20px;
    height: 9px;
    border-radius: 56% 56% 44% 44%;
  }
  58% {
    width: 11px;
    height: 17px;
    border-radius: 46% 46% 54% 54%;
  }
  100% {
    width: 14px;
    height: 14px;
    border-radius: 50%;
  }
}

@keyframes runnerIdlePulse {
  0%,
  78%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 216, 255, 0);
    filter: brightness(1);
  }
  84% {
    box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.22);
    filter: brightness(1.14);
  }
  90% {
    box-shadow: 0 0 0 0 rgba(79, 216, 255, 0);
    filter: brightness(1);
  }
}

@keyframes frameHitFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -160%);
  }
}

@keyframes konamiDamageFade {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) rotate(var(--damage-rot, 0deg)) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--damage-rot, 0deg)) scale(1.15);
  }
}

@keyframes proofPulse {
  0% {
    box-shadow: 0 0 0 rgba(79, 216, 255, 0);
    transform: translateY(0);
  }
  35% {
    box-shadow: 0 0 0 2px rgba(79, 216, 255, 0.25);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 0 0 rgba(79, 216, 255, 0);
    transform: translateY(0);
  }
}

/* Reaplica pixel-borders apos regras base do tema */
.top-nav,
.panel,
.card,
.exp-table,
.status-card,
.terminal-mini,
.modal-box,
.modal-gallery,
.modal-thumb,
.project-paper,
.project-toolbar,
.project-toolbar-item,
.docs-list a,
.contact-form input,
.contact-form textarea,
.work-filters input,
.work-filters select,
.hero-badge,
.hero-icons span,
.tags li,
.case-item {
  border-style: solid !important;
  border-width: var(--pixel-border-width) !important;
  border-color: var(--line) !important;
  border-image-slice: var(--pixel-slice) !important;
  border-image-width: 1 !important;
  border-image-outset: 0 !important;
  border-image-source: var(--pixel-border-dark-svg) !important;
  border-image-repeat: stretch !important;
}

.btn {
  border-style: solid !important;
  border-width: 2px !important;
  border-image-slice: 2 !important;
  border-image-width: 1 !important;
  border-image-outset: 0 !important;
}

.btn-yellow {
  border-color: #d8ce4e !important;
  border-image-source: var(--pixel-border-yellow-svg) !important;
}

.btn-dark {
  border-color: #343844 !important;
  border-image-source: var(--pixel-border-dark-svg) !important;
}

@media (max-width: 1100px) {
  .frame-shell {
    grid-template-columns: 1fr;
  }

  .panel-hero,
  .panel-about {
    height: auto;
  }

  .panel-about {
    min-height: 0;
  }

  .skills-compact {
    min-height: 0;
  }

  .skills-map-toggle .skills-matrix {
    height: 235px;
    max-height: 235px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .stack-left,
  .stack-right {
    grid-column: auto;
  }

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

@media (max-width: 760px) {
  .site-top {
    position: relative;
    z-index: 2100;
    min-height: 172px;
  }

  .top-nav {
    flex-wrap: wrap;
    padding: 10px;
    align-items: flex-start;
    position: relative;
    z-index: 2101;
    isolation: isolate;
  }

  .brand {
    font-size: 0.7rem;
    white-space: normal;
    min-width: 0;
    gap: 4px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 2410;
  }

  .nav-links {
    display: flex;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin-top: 0;
    gap: 10px;
    padding: 78px 14px max(18px, env(safe-area-inset-bottom));
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2400;
    background: rgba(10, 11, 16, 0.98);
    border-left: 1px solid var(--line);
    box-shadow: -14px 0 28px rgba(0, 0, 0, 0.45);
    transform: translateX(105%);
    transition: transform 0.22s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
  }

  .nav-overlay {
    appearance: none;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
    position: fixed;
    inset: 0;
    z-index: 2390;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .top-nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    margin-top: 8px;
    position: relative;
    z-index: 2102;
  }

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

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

  .project-toolbar {
    top: 6px;
    margin-bottom: 12px;
    padding: 5px;
    gap: 5px;
  }

  .project-toolbar-item {
    font-size: 0.64rem;
    padding: 4px 6px;
  }

  .project-toolbar-icon {
    width: 15px;
    height: 15px;
  }

  .project-status-ribbon {
    top: 5px;
    right: -24px;
    padding: 3px 22px;
    font-size: 0.56rem;
  }

  .exp-toggle {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .exp-more {
    text-align: left;
  }

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

  .work-filters {
    grid-template-columns: 1fr;
  }

  .panel-projects-list .work-filters {
    grid-template-columns: 1fr;
  }

  .project-card p,
  .project-description,
  .project-category,
  .cert-card p,
  .card p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .project-tags li,
  .posts-tags span {
    font-size: 0.82rem;
  }

  .project-head h3,
  .card h3 {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .projects-kpis {
    grid-template-columns: 1fr;
  }

  .cases-strip {
    grid-template-columns: 1fr;
  }

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

  .cert-controls {
    grid-template-columns: 1fr;
  }

  .cert-panel-head {
    padding: 18px 14px;
  }

  .cert-panel-head .hero-copy {
    font-size: 1rem;
    line-height: 1.6;
  }

  .cert-controls .control-item {
    border: 1px solid var(--line);
    background: #0a0e17;
    padding: 8px;
  }

  .cert-controls label {
    font-size: 0.9rem;
  }

  .cert-controls input,
  .cert-controls select {
    font-size: 1rem;
    min-height: 42px;
  }

  .cert-count {
    margin-top: 10px;
    font-size: 1.02rem;
  }

  .cert-mobile-hint {
    display: none;
  }

  .blog-controls {
    grid-template-columns: 1fr;
  }

  .loading-state {
    padding: 9px;
  }

  .loading-title {
    margin-bottom: 9px;
    font-size: 0.76rem;
    gap: 8px;
  }

  .loading-spinner {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .loading-grid {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .loading-grid-blog {
    grid-template-columns: 1fr;
  }

  .loading-card {
    padding: 8px;
  }

  .loading-card-blog {
    min-height: 142px;
  }

  .loading-thumb {
    height: 110px;
  }

  .loading-thumb-cert {
    height: 126px;
  }

  .loading-line {
    height: 8px;
    margin-top: 8px;
  }

  .loading-tags-row {
    margin-top: 9px;
    gap: 6px;
  }

  .loading-tag {
    width: 42px;
    height: 14px;
  }

  .modal.is-open {
    padding: 6px;
  }

  .modal.is-open .modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-color: #3e485f;
    background: rgba(9, 14, 24, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    z-index: 4;
  }

  .modal-box {
    width: min(96vw, 96vw);
    max-height: calc(100vh - 12px);
    padding: 10px;
  }

  .modal-box-cv {
    width: min(98vw, 98vw);
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
  }

  .modal-box-sendmail {
    width: min(98vw, 98vw);
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
  }

  .modal-box-video {
    width: min(98vw, 98vw);
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
  }

  .video-frame {
    min-height: clamp(280px, 58vh, 560px);
  }

  .modal-gallery {
    height: min(34vh, 300px);
  }

  .modal.is-certificate-modal .modal-gallery {
    height: min(42vh, 360px);
  }

  #shotModal .modal-box {
    width: min(98vw, 98vw);
    max-height: calc(100vh - 12px);
  }

  #shotModal .modal-gallery {
    height: min(46vh, 420px);
  }

  .cv-frame {
    min-height: 0;
  }

  .frame-runner::before {
    inset: -16px;
  }

  #certModalImage {
    height: min(48vh, 420px);
  }

  .project-paper .project-cover {
    height: min(34vh, 300px);
  }

  .project-paper {
    width: 100%;
    max-width: none;
    padding: 22px 18px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .cert-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    gap: 10px;
    padding-bottom: 0;
  }

  .cert-grid-full > .cert-card,
  .cert-grid-full > .card {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1320px) and (min-width: 761px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    gap: 5px;
  }

  .top-nav-actions {
    gap: 8px;
  }

  .rss-switch-select {
    min-width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .card,
  .reveal,
  .reveal.is-visible {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
}
