:root {
  --bg: #071018;
  --bg-soft: #0c1621;
  --panel: rgba(14, 20, 31, 0.82);
  --panel-strong: rgba(18, 24, 38, 0.92);
  --text: #edf4fb;
  --muted: #92a4b7;
  --line: rgba(156, 179, 200, 0.16);
  --cyan: #64d2ff;
  --amber: #ffbf69;
  --red: #ff7a90;
  --blue-deep: #6d8cff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --container-max: 1680px;
  --container-gutter: 44px;
}

.threat-dashboard {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: start;
}

.threat-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.threat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.panel-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: rgba(100, 210, 255, 0.16);
  color: var(--cyan);
}

.threat-count {
  font-weight: 600;
  color: var(--text);
}

.threat-feed {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: hidden;
}

.threat-feed-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(10, 16, 26, 0.68);
  border: 1px solid rgba(100, 210, 255, 0.12);
}

.threat-feed-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.threat-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

.threat-level-tag {
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.threat-level-tag.level-critical {
  background: rgba(255, 122, 144, 0.2);
  color: #ff9aab;
}

.threat-level-tag.level-high {
  background: rgba(255, 159, 67, 0.2);
  color: #ffb15f;
}

.threat-level-tag.level-medium {
  background: rgba(100, 210, 255, 0.2);
  color: #8ee2ff;
}

.threat-level-tag.level-low {
  background: rgba(150, 200, 180, 0.2);
  color: #a8e0c8;
}

.threat-level-tag.level-info {
  background: rgba(150, 160, 180, 0.2);
  color: #c1c8d4;
}

.threat-map-window {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  border: 1px solid rgba(100, 210, 255, 0.2);
  background: linear-gradient(140deg, rgba(15, 24, 38, 0.86), rgba(6, 12, 20, 0.82));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.threat-map-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(100, 210, 255, 0.12), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(255, 122, 144, 0.12), transparent 48%);
  pointer-events: none;
}

.threat-map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  max-width: 320px;
}

.map-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.threat-map-overlay h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.threat-map-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.threat-map-stats {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  text-align: right;
  z-index: 2;
}

.threat-map-stats div {
  background: rgba(7, 14, 22, 0.68);
  border: 1px solid rgba(100, 210, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
}

.threat-map-stats small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.threat-map-stats strong {
  font-size: 1.1rem;
}

.threat-levels {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.threat-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(100, 210, 255, 0.12);
  background: rgba(10, 16, 26, 0.6);
  color: var(--text);
  font: inherit;
}

.threat-level span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}

.threat-level strong {
  font-size: 0.95rem;
}

.threat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.threat-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.12);
  border: 1px solid rgba(100, 210, 255, 0.12);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .instagram-showcase .project-grid {
    grid-template-columns: 1fr;
  }

  .instagram-showcase {
    grid-template-columns: 1fr;
  }

  .instagram-showcase #instagram-profile {
    position: static;
    max-height: none;
  }
  .threat-dashboard {
    grid-template-columns: 1fr;
  }

  .threat-map-window {
    min-height: 380px;
  }

  .threat-feed {
    max-height: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI Variable", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(109, 140, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(100, 210, 255, 0.12), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(255, 122, 144, 0.10), transparent 34%),
    linear-gradient(180deg, #071018 0%, #0a1018 44%, #060b11 100%);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

.page-noise,
.page-orbit {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.threat-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.threat-map-canvas,
.surveillance-hud,
.assembly-wall {
  position: absolute;
  inset: 0;
}

.threat-map-canvas {
  opacity: 0.5;
  mix-blend-mode: screen;
}

.surveillance-hud {
  opacity: 0.3;
}

.hud-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(100, 210, 255, 0.02) 42%, rgba(100, 210, 255, 0.14) 50%, rgba(255, 191, 105, 0.06) 52%, transparent 60%);
  animation: scanSweep 14s linear infinite;
}

.hud-scan-b {
  animation-duration: 19s;
  animation-delay: -7s;
  opacity: 0.55;
}

.hud-corners {
  position: absolute;
  width: 28vw;
  height: 28vh;
  border: 1px solid rgba(100, 210, 255, 0.08);
}

.hud-corners::before,
.hud-corners::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 122, 144, 0.22);
  border-style: solid;
}

.hud-corners-a {
  top: 22px;
  left: 22px;
  border-right: 0;
  border-bottom: 0;
}

.hud-corners-a::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hud-corners-a::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.hud-corners-b {
  right: 22px;
  bottom: 22px;
  border-left: 0;
  border-top: 0;
}

.hud-corners-b::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hud-corners-b::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.assembly-wall {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 48px 22px;
  opacity: 0.12;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 191, 105, 0.72);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

.assembly-line {
  white-space: nowrap;
  animation: assemblyDrift linear infinite;
}

.page-noise {
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
}

.page-orbit {
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.17;
}

.orbit-a {
  width: 320px;
  height: 320px;
  top: 90px;
  right: -80px;
  background: rgba(100, 210, 255, 0.35);
  animation: driftA 18s ease-in-out infinite;
}

.orbit-b {
  width: 280px;
  height: 280px;
  bottom: 90px;
  left: -60px;
  background: rgba(255, 122, 144, 0.24);
  animation: driftB 20s ease-in-out infinite;
}

@keyframes driftA {
  50% {
    transform: translate(-36px, 28px) scale(1.05);
  }
}

@keyframes driftB {
  50% {
    transform: translate(44px, -22px) scale(1.08);
  }
}

@keyframes scanSweep {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes assemblyDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-6%);
  }
}

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

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

.container {
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(7, 16, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-shell,
.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  order: 2;
  flex-wrap: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(156, 179, 200, 0.28);
  background: rgba(7, 16, 24, 0.7);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(6, 10, 16, 0.35);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  color: #071018;
  font: 700 0.95rem/1 "JetBrains Mono", monospace;
  box-shadow: 0 0 28px rgba(100, 210, 255, 0.24);
}

.brand-mark-photo {
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 42px;
}

.brand-mark-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.brand-copy small {
  white-space: nowrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
}

.lang-switcher select {
  min-height: 46px;
  min-width: 180px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(156, 179, 200, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(6, 12, 20, 0.85);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(6, 10, 16, 0.35);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(214, 228, 240, 0.9) 50%),
    linear-gradient(135deg, rgba(214, 228, 240, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lang-switcher select:focus {
  outline: none;
  border-color: rgba(100, 210, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(100, 210, 255, 0.15);
}

.lang-switcher select option {
  color: #e6f1ff;
  background-color: #0b1220;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-stat {
  display: grid;
  gap: 4px;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}

.nav-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-value {
  font-size: 0.82rem;
  color: var(--text);
}

.nav-uptime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-hamster {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(100, 210, 255, 0.25);
  filter:invert(1);
}

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

.brand-copy strong,
.brand-copy small,
.site-nav,
.eyebrow,
.section-kicker,
.panel-label,
.pill,
.ticker-track,
.tag-list span,
.button,
.terminal-body,
.hero-topline {
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", monospace;
}

.brand-copy small,
.site-nav a,
.hero-topline,
.panel-label,
.section-intro,
.hero-summary,
.panel p,
.panel li,
.mini-card p,
.contact-item p,
.site-footer p,
.github-bio,
.repo-meta,
.repo-date {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1400px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }
}

.hero,
.section {
  position: relative;
  padding: 96px 0;
}

.section-compact {
  padding: 32px 0 24px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.hero-topline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(255, 191, 105, 0.7);
}

.topline-separator {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.hero-grid,
.contact-grid,
.github-live-grid,
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  margin-top: 28px;
}

.github-live-shell {
  display: grid;
  gap: 22px;
}

.signal-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.signal-chip {
  padding: 18px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.signal-chip strong,
.signal-chip p {
  display: block;
}

.signal-chip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.signal-token {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
}

.hero-copy,
.hero-stack {
  display: grid;
  gap: 20px;
}

.hero-copy {
  align-content: start;
  max-width: 780px;
  padding: 28px 30px 30px;
  border: 1px solid rgba(156, 179, 200, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(135deg, rgba(100, 210, 255, 0.05), rgba(109, 140, 255, 0.03) 54%, rgba(255, 191, 105, 0.04)),
    rgba(9, 18, 28, 0.36);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
 }

.hero-image-cluster {
  position: relative;
  min-height: 280px;
  margin-top: 6px;
}

.cluster-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(156, 179, 200, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  --cluster-rotation: 0deg;
  transform: rotate(var(--cluster-rotation));
  animation: floatCluster 9s ease-in-out infinite;
}

.cluster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cluster-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(156, 179, 200, 0.16);
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.82);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.cluster-card-1 {
  top: 0;
  left: 0;
  width: 56%;
  height: 220px;
  --cluster-rotation: -4deg;
}

.cluster-card-2 {
  top: 34px;
  right: 0;
  width: 40%;
  height: 160px;
  --cluster-rotation: 6deg;
  animation-delay: -2s;
}

.cluster-card-3 {
  bottom: 0;
  left: 18%;
  width: 46%;
  height: 170px;
  --cluster-rotation: 2deg;
  animation-delay: -4s;
}

@keyframes floatCluster {
  50% {
    transform: translateY(-10px) rotate(var(--cluster-rotation, 0deg));
  }
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.section-kicker {
  color: var(--amber);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.eyebrow::before {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(100, 210, 255, 0.55);
}

.section-kicker::before {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(255, 191, 105, 0.45);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(3.8rem, 8.6vw, 7rem);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-role {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(100, 210, 255, 0.18);
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.06);
  font-size: clamp(0.96rem, 1.7vw, 1.12rem);
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.hero-summary {
  margin: 0;
  max-width: 54ch;
  font-size: 1.06rem;
  line-height: 1.82;
  color: #afbed0;
}

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

.hero-tags {
  gap: 12px;
}

.hero-tags span {
  min-height: 38px;
  padding: 0 16px;
  border-color: rgba(156, 179, 200, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(12, 20, 31, 0.56);
  color: #dce9f5;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}

.hero-actions .button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.button-icon {
  gap: 10px;
}

.button-icon i {
  font-size: 0.95rem;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--cyan), #8dd7ff);
  color: #071018;
  box-shadow: 0 14px 34px rgba(100, 210, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 191, 105, 0.08);
  color: var(--amber);
  border-color: rgba(255, 191, 105, 0.28);
}

.button-ghost {
  background: rgba(109, 140, 255, 0.08);
  color: #b9c9ff;
  border-color: rgba(109, 140, 255, 0.2);
}

.hero-actions .button-primary {
  box-shadow: 0 18px 44px rgba(100, 210, 255, 0.22);
}

.hero-actions .button-secondary,
.hero-actions .button-ghost {
  background-clip: padding-box;
}

.signal-panel,
.panel,
.intel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-panel::before,
.panel::before,
.intel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
}

.dossier-panel,
.panel-primary,
.timeline-card,
.contact-panel {
  background:
    linear-gradient(180deg, rgba(109, 140, 255, 0.05), transparent 26%),
    var(--panel-strong);
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.signal-title {
  color: var(--text);
}

.signal-time {
  color: var(--muted);
}

.dossier-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.portrait-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(156, 179, 200, 0.18);
  background: rgba(255, 255, 255, 0.03);
  min-height: 280px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terminal-body {
  padding: 22px 22px 26px;
  color: #dbe7f5;
  font-size: 0.92rem;
}

.terminal-body.compact {
  padding: 0;
}

.terminal-body p {
  margin: 0 0 10px;
}

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

.accent-good {
  color: var(--amber);
}

.cursor-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor {
  width: 10px;
  height: 20px;
  background: var(--red);
  animation: blink 0.95s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.intel-grid,
.focus-grid,
.project-grid,
.triple-grid,
.recognition-grid,
.media-strip,
.github-repo-grid {
  display: grid;
  gap: 18px;
}

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

.intel-card {
  min-height: 122px;
  padding: 20px;
  display: grid;
  align-content: space-between;
}

.intel-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.intel-card strong {
  font-size: 1.08rem;
  line-height: 1.4;
}

.ticker-band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.ticker-track {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  padding: 14px 0;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  color: rgba(237, 244, 251, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-30%);
  }
}

.section-heading {
  margin-bottom: 32px;
  max-width: 760px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.section-intro {
  margin-top: 18px;
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.stacked-panels {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 28px;
}

.panel-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.panel h3,
.project-card h3,
.timeline-card h3,
.github-profile h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.focus-grid,
.project-grid,
.triple-grid,
.github-repo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.github-repo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.github-repo-grid .repo-card {
  padding: 12px;
  border-radius: 16px;
}

.github-repo-grid .repo-card h3 {
  margin: 8px 0 6px;
  font-size: 1rem;
}

.github-repo-grid .repo-card p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.github-repo-grid .repo-meta {
  gap: 8px;
  font-size: 0.75rem;
}

.github-repo-grid .tag-list {
  gap: 6px;
}

.github-repo-grid .tag-list span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.github-repo-grid .repo-links {
  gap: 6px;
}

.github-repo-grid .repo-link {
  font-size: 0.72rem;
}

.github-repo-grid .repo-date {
  font-size: 0.72rem;
}

.github-repo-grid .repo-preview {
  height: 110px;
}

.feature-list {
  margin-bottom: 0;
}

.feature-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.extended-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.media-card,
.mini-card,
.repo-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.02);
}

.project-thumb {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(156, 179, 200, 0.12);
  background: rgba(6, 10, 16, 0.6);
}

.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.focus-card h4 {
  margin: 0 0 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(156, 179, 200, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #d6e4f0;
  font-size: 0.82rem;
}

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

.mini-card {
  display: flex;
  gap: 14px;
}

.mini-card-mark,
.contact-icon {
  color: var(--amber);
  font-size: 1.2rem;
  line-height: 1;
}

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

@media (min-width: 1500px) {
  .hero-grid,
  .contact-grid,
  .github-live-grid,
  .feature-grid,
  .about-layout {
    gap: 42px;
  }

  .project-grid,
  .focus-grid,
  .triple-grid,
  .github-repo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 1900px) {
  :root {
    --container-max: 1960px;
    --container-gutter: 64px;
  }

  .hero,
  .section {
    padding: 112px 0;
  }

  .hero-grid,
  .contact-grid,
  .github-live-grid,
  .feature-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  }

  .project-grid,
  .focus-grid,
  .triple-grid,
  .github-repo-grid,
  .media-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .signal-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
}

.media-card {
  padding: 0;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card figcaption {
  padding: 14px 16px 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.media-card figcaption strong,
.media-card figcaption a {
  display: block;
}

.media-card figcaption a {
  margin-top: 8px;
  color: var(--cyan);
}

.timeline {
  position: relative;
  margin-bottom: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--red));
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 0 20px rgba(100, 210, 255, 0.42);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.timeline-company {
  margin: 0;
  color: var(--cyan);
}

.bullet-list {
  margin: 18px 0;
  padding-left: 18px;
}

.bullet-list li + li {
  margin-top: 8px;
}

.list-block + .list-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.list-block strong,
.link-list a,
.link-list span {
  display: block;
}

.list-block span,
.list-block small {
  color: var(--muted);
  margin-top: 4px;
}

.list-block-media {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.list-block-image {
  width: 72px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(156, 179, 200, 0.2);
  background: rgba(6, 10, 16, 0.6);
}

.list-block-content {
  display: grid;
  gap: 4px;
}

.project-card,
.repo-card {
  display: grid;
  gap: 14px;
}

.format-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.format-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(156, 179, 200, 0.2);
  background: rgba(6, 10, 16, 0.5);
  color: var(--cyan);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.card-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(156, 179, 200, 0.16);
  background: rgba(6, 10, 16, 0.6);
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-media.card-media-contain img {
  object-fit: contain;
  background: rgba(6, 10, 16, 0.7);
}

.project-card-featured {
  background:
    radial-gradient(circle at top right, rgba(100, 210, 255, 0.08), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 191, 105, 0.08), transparent 28%),
    var(--panel-strong);
  border-color: rgba(100, 210, 255, 0.24);
}

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

.project-actions .button {
  min-height: 42px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-marker {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 122, 144, 0.48);
}

.github-profile {
  display: grid;
  gap: 20px;
  background:
    radial-gradient(circle at top right, rgba(100, 210, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 191, 105, 0.08), transparent 26%),
    var(--panel-strong);
}

.github-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.github-avatar {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(156, 179, 200, 0.18);
}

.github-handle {
  margin: 0;
  color: var(--cyan);
}

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

.github-metrics div {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.github-metrics small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.github-metrics strong {
  font-size: 1.2rem;
}

.github-profile-actions,
.github-section-head,
.github-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.github-catalog,
.github-activity {
  display: grid;
  gap: 18px;
}

.github-section-head {
  flex-wrap: wrap;
}

.github-section-head h3 {
  margin: 0;
}

.github-page-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(109, 140, 255, 0.24);
  border-radius: 12px;
  background: rgba(109, 140, 255, 0.08);
  color: #d9e4ff;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.github-page-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(100, 210, 255, 0.36);
}

.github-page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.github-page-indicator {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.repo-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.repo-date {
  font-size: 0.82rem;
}

.repo-placeholder {
  min-height: 220px;
  place-content: center;
}

.repo-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(255, 255, 255, 0.025);
}

.repo-preview {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(156, 179, 200, 0.16);
  background: rgba(6, 10, 16, 0.65);
}

.repo-card.featured-repo {
  background:
    radial-gradient(circle at top right, rgba(100, 210, 255, 0.1), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 191, 105, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(100, 210, 255, 0.24);
}

.repo-card h3 a:hover {
  color: var(--cyan);
}

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.repo-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #0b0f16;
  color: #fff;
  font-size: 0.75rem;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.github-heatmap-card,
.github-readme-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(100, 210, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(100, 210, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.github-heatmap-card:hover,
.github-readme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 210, 255, 0.3);
}

.github-heatmap-image {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(156, 179, 200, 0.12);
  background: rgba(6, 12, 24, 0.92);
}

.github-heatmap-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.github-readme-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.github-readme-preview {
  display: grid;
  gap: 12px;
}

.github-readme-preview > :last-child {
  margin-bottom: 0;
}

.github-readme-preview h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.github-readme-preview p,
.github-readme-preview ul {
  margin: 0;
  color: var(--muted);
}

.github-readme-preview ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.github-readme-preview code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.09);
  border: 1px solid rgba(100, 210, 255, 0.18);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.github-readme-empty {
  color: var(--muted);
}

.activity-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.02);
}

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

.activity-item p,
.activity-meta {
  margin: 0;
  color: var(--muted);
}

.instagram-showcase .github-profile {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 144, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 191, 105, 0.08), transparent 26%),
    var(--panel-strong);
}

.instagram-showcase .github-profile {
  padding: 26px;
  border: 1px solid rgba(120, 190, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(6, 10, 16, 0.45);
}

.instagram-showcase #instagram-profile {
  gap: 18px;
  align-content: start;
}

.instagram-showcase .github-head {
  align-items: flex-start;
}

.instagram-showcase .github-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(100, 210, 255, 0.22);
}

.instagram-showcase #instagram-title {
  font-size: 1.15rem;
  margin: 0 0 2px;
}

.instagram-showcase #instagram-handle {
  margin: 0;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.instagram-showcase #instagram-bio {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-showcase .github-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.instagram-showcase .github-metrics div {
  padding: 12px;
  background: rgba(8, 14, 22, 0.7);
  border: 1px solid rgba(120, 190, 255, 0.14);
  text-align: left;
}

.instagram-showcase .github-metrics strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.instagram-showcase .project-actions .button-primary {
  width: 100%;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(100, 210, 255, 0.25);
}

.instagram-feed-card {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 144, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.02);
}

/* Instagram Feed Styles */
.instagram-showcase .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.instagram-showcase {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  align-items: start;
}

.instagram-showcase #instagram-profile {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
}

.instagram-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%), rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(120, 190, 255, 0.16);
  border-radius: 20px;
  padding: 0;
}

.instagram-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instagram-post-type {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.16);
  color: var(--cyan);
}

.instagram-post-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7%;
  display: block;
}

.instagram-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.instagram-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.instagram-likes,
.instagram-comments,
.instagram-date,
.instagram-engagement {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.instagram-caption {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  margin: 6px 0 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-caption.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.instagram-caption-toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  cursor: pointer;
}

.instagram-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.instagram-post-actions .button {
  align-self: flex-start;
}

.instagram-post-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.instagram-feed-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.instagram-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.instagram-pagination .instagram-page {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(156, 179, 200, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(156, 179, 200, 0.12);
  background: rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  animation: logoScroll 26s linear infinite;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 10px;
  border-radius: 18px;
  border: none;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.logo-item:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 210, 255, 0.28);
}

.logo-mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 210, 255, 0.12);
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.logo-mark-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
  /* border: 1px solid rgba(156, 179, 200, 0.16); */
  width: 180px;
  height: 108px;
  border-radius: 16px;
}

.logo-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo-item:hover .logo-mark-image img {
  filter: none;
  transform: scale(1.02);
}

.logo-name {
  display: none;
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section-subheading {
  margin-top: 46px;
}

#signal-map {
  display: none;
}

.callout {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255, 191, 105, 0.10), transparent 34%),
    var(--panel-strong);
}

.contact-list,
.link-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.link-list a,
.link-list span {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(156, 179, 200, 0.14);
  background: rgba(255, 255, 255, 0.03);
  word-break: break-word;
}

.link-list a:hover {
  color: var(--text);
  border-color: rgba(100, 210, 255, 0.3);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 36px 0 24px;
}

.site-footer p {
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 1fr));
  gap: 28px;
  order: 1;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-summary {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(100, 210, 255, 0.18);
  background: rgba(100, 210, 255, 0.08);
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
}

.footer-block h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(156, 179, 200, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
  border-color: rgba(100, 210, 255, 0.3);
  transform: translateY(-1px);
}

.footer-note {
  font-size: 0.72rem;
  color: rgba(156, 179, 200, 0.68);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 1040px) {
  .hero-grid,
  .about-layout,
  .contact-grid,
  .github-live-grid,
  .feature-grid,
  .signal-rail,
  .focus-grid,
  .project-grid,
  .triple-grid,
  .recognition-grid,
  .github-repo-grid,
  .media-strip,
  .extended-grid {
    grid-template-columns: 1fr;
  }

  .timeline-top,
  .callout,
  .nav-shell,
  .footer-shell,
  .github-head,
  .github-profile-actions,
  .github-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switcher {
    width: 100%;
  }

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

  .site-header {
    position: sticky;
    top: 0;
  }

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

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

  .instagram-showcase {
    grid-template-columns: 1fr;
  }

  .nav-meta {
    width: 100%;
    justify-content: space-between;
  }

  .nav-stat {
    text-align: left;
  }

  .instagram-showcase #instagram-profile {
    position: static;
    max-height: none;
  }

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

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

@media (max-width: 1200px) {
  .nav-shell {
    position: relative;
    align-items: center;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 1002;
  }

  .site-nav {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    width: auto;
    margin-top: 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(156, 179, 200, 0.18);
    background: rgba(6, 12, 20, 0.96);
    box-shadow: 0 20px 40px rgba(4, 8, 14, 0.55);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 1001;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }
}

@media (max-width: 760px) {
  .hero,
  .section {
    padding: 72px 0;
  }

  .section-compact {
    padding: 28px 0 18px;
  }

  .nav-shell,
  .footer-shell {
    min-height: auto;
    padding: 14px 0;
  }

  .lang-switcher select {
    width: 100%;
  }

  .intel-grid,
  .github-metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .callout-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

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

  .repo-preview {
    height: 120px;
  }

  .threat-map-canvas {
    opacity: 0.35;
  }

  .panel,
  .intel-card {
    padding: 22px;
  }

  .hero-copy {
    padding: 22px 20px 24px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 16vw, 4.3rem);
    line-height: 0.92;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
    line-height: 1;
  }

  .hero-summary,
  .section-intro,
  .panel p,
  .panel li {
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .dossier-grid {
    padding: 16px;
  }

  .portrait-frame {
    min-height: 220px;
  }

  .timeline-item {
    padding-left: 34px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: 4px;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-list span,
  .pill {
    min-height: 30px;
    font-size: 0.75rem;
  }

  .hero-actions .button {
    min-height: 50px;
    white-space: normal;
  }

  .project-actions {
    display: grid;
  }

  .project-actions .button {
    width: 100%;
  }

  .ticker-track {
    gap: 28px;
    font-size: 0.78rem;
  }

  .media-card img {
    aspect-ratio: 4 / 3;
  }

  .hero-image-cluster {
    min-height: 240px;
  }

  .cluster-card-1 {
    width: 62%;
    height: 180px;
  }

  .cluster-card-2 {
    top: 24px;
    width: 42%;
    height: 126px;
  }

  .cluster-card-3 {
    left: 14%;
    width: 52%;
    height: 138px;
  }
}

@media (max-width: 560px) {
  .hero,
  .section {
    padding: 60px 0;
  }

  .brand {
    width: 100%;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small {
    font-size: 0.75rem;
  }

  .hero-topline {
    width: 100%;
    border-radius: 18px;
    padding: 10px 12px;
  }

  .topline-separator {
    display: none;
  }

  .panel,
  .intel-card,
  .contact-item,
  .link-list a,
  .link-list span {
    border-radius: 18px;
  }

  .panel,
  .intel-card {
    padding: 18px;
  }

  .signal-head {
    padding: 16px 18px;
  }

  .terminal-body {
    font-size: 0.85rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .project-grid,
  .extended-grid,
  .media-strip,
  .recognition-grid,
  .triple-grid,
  .github-repo-grid {
    gap: 14px;
  }

  .activity-list {
    gap: 14px;
  }

  .github-head {
    gap: 12px;
  }

  .github-avatar {
    width: 64px;
    height: 64px;
  }

  .timeline-item {
    padding-left: 26px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-dot {
    left: 1px;
    width: 12px;
    height: 12px;
  }

  .section-subheading {
    margin-top: 34px;
  }

  .github-page-button,
  .repo-link {
    width: 100%;
    text-align: center;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-image-cluster {
    min-height: 420px;
  }

  .cluster-card {
    width: 100%;
    left: 0;
    right: auto;
    transform: none;
    --cluster-rotation: 0deg;
  }

  .cluster-card-1 {
    top: 0;
    height: 150px;
  }

  .cluster-card-2 {
    top: 134px;
    height: 132px;
  }

  .cluster-card-3 {
    top: 252px;
    height: 150px;
  }
}
