/* Shared portfolio styles — extends W3.CSS + Raleway theme */

:root {
  --bg-page: #f5f7fa;
  --indigo: #3f51b5;
  --indigo-dark: #303f9f;
  --text: #333;
  --text-muted: #5a6270;
  --card-shadow: 0 4px 16px rgba(63, 81, 181, 0.12);
  --card-shadow-hover: 0 12px 32px rgba(63, 81, 181, 0.22);
  --radius: 12px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-page);
  color: var(--text);
}

/* ---- Header ---- */
.tech-header {
  height: 380px;
  position: relative;
  overflow: hidden;
}

.tech-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0d47a1,
    #8e24aa,
    #e53935,
    #fb8c00,
    #43a047,
    #1e88e5
  );
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

.tech-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.35) 0,
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.2) 0,
      transparent 40%
    );
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.overlay-content {
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.overlay-content .hero-subtitle {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.95;
}

.header-fade {
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg-page));
  margin-top: -50px;
}

/* ---- Featured project stage (homepage hero) ---- */
.tech-header--home {
  height: auto;
  min-height: 520px;
  padding-bottom: 1.5rem;
}

.hero-featured-stage {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0.5rem;
}

.hero-featured-stage .featured-stage-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.hero-featured-stage .featured-stage-header h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
}

.hero-featured-stage .featured-stage-header p {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.hero-resume-btn,
.hero-contact-btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-resume-btn {
  color: white;
  background: var(--indigo);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-resume-btn:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}

.hero-contact-btn {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-contact-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.featured-stage-grid {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .featured-stage-grid {
    grid-template-columns: minmax(220px, 260px) minmax(380px, 1fr);
  }
}

.featured-stage-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-stage-tab {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  text-align: left;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  color: var(--text-muted);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.featured-stage-tab:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--indigo-dark);
  transform: translateX(2px);
}

.featured-stage-tab.active {
  border-left-color: var(--indigo);
  border-color: rgba(255, 255, 255, 0.75);
  background: white;
  color: var(--indigo-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.featured-stage-tab-num {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--indigo);
  opacity: 0.75;
  padding-top: 0.15rem;
}

.featured-stage-tab.active .featured-stage-tab-num {
  opacity: 1;
}

.featured-stage-tab-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.featured-stage-window {
  min-height: 320px;
  border-radius: var(--radius);
  background: #1e2433;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}

.featured-stage-window.is-updating {
  opacity: 0.55;
}

.featured-stage-window--with-preview {
  min-height: 520px;
}

.featured-stage-window--with-preview .stage-window-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stage-window-chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1rem 0.65rem;
  background: #161b27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stage-window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.stage-window-chrome span:nth-child(1) {
  background: #ff5f57;
}

.stage-window-chrome span:nth-child(2) {
  background: #febc2e;
}

.stage-window-chrome span:nth-child(3) {
  background: #28c840;
}

.stage-window-bar {
  padding: 0.7rem 1.15rem;
  background: linear-gradient(180deg, #141a28 0%, #10151f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stage-window-trace {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", "Consolas", "Courier New", monospace;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.stage-window-trace-text {
  color: #e8eaf6;
  text-shadow: 0 0 14px rgba(144, 202, 249, 0.25);
}

.stage-window-trace-cmd {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

.stage-window-trace-sep {
  color: rgba(144, 202, 249, 0.45);
  font-weight: 500;
}

.stage-window-trace-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem 0.2rem 0.5rem;
  border-radius: 999px;
  color: #b9f6ca;
  background: rgba(46, 125, 50, 0.22);
  border: 1px solid rgba(105, 240, 174, 0.35);
  text-shadow: 0 0 12px rgba(105, 240, 174, 0.35);
  box-shadow: 0 0 18px rgba(105, 240, 174, 0.12);
}

.stage-window-trace-live {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69f0ae;
  box-shadow: 0 0 10px rgba(105, 240, 174, 0.85);
  animation: trace-live-pulse 1.6s ease-in-out infinite;
}

@keyframes trace-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-window-trace-live {
    animation: none;
  }
}

.stage-window-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
  font-family: "Raleway", sans-serif;
}

.stage-window-title {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.stage-window-description {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.stage-window-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.stage-tag {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #c5cae9;
  background: rgba(63, 81, 181, 0.35);
  border: 1px solid rgba(144, 202, 249, 0.2);
}

.stage-window-cta {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: var(--indigo);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.stage-window-cta:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}

.stage-window-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stage-window-cta--secondary {
  color: #c5cae9;
  background: transparent;
  border: 1px solid rgba(144, 202, 249, 0.35);
}

.stage-window-cta--secondary:hover {
  color: white;
  background: rgba(63, 81, 181, 0.45);
}

.stage-window-preview {
  flex: 1 1 auto;
  min-height: 360px;
  height: 360px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #2b1a12;
}

.stage-window-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage-window-preview--image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121722;
}

.stage-window-preview--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stage-window-preview--image[style*="background"] img {
  background: #000000;
}

.stage-window-body--with-preview .stage-window-meta {
  padding: 1rem 1.25rem 1.2rem;
  flex-shrink: 0;
}

.stage-window-body--with-preview .stage-window-title {
  display: none;
}

.stage-window-body--with-preview .stage-window-description {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
  max-width: none;
}

.stage-window-body--with-preview .stage-window-tags {
  margin-bottom: 0.85rem;
}

.stage-window-body--with-preview .stage-window-cta-row .stage-window-cta {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

/* ---- Sticky navigation ---- */
.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 81, 181, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.site-nav-articles,
.site-nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.site-nav-articles {
  padding: 0.25rem 0.4rem 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(63, 81, 181, 0.06);
  border: 1px solid rgba(63, 81, 181, 0.14);
}

.site-nav-articles::before {
  content: "Articles";
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding-right: 0.15rem;
}

.site-nav-divider {
  width: 1px;
  height: 1.65rem;
  background: rgba(63, 81, 181, 0.28);
  flex-shrink: 0;
  margin: 0 0.1rem;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.15rem;
}

.site-nav-cta {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--indigo-dark);
  background: rgba(63, 81, 181, 0.08);
  border: 1px solid rgba(63, 81, 181, 0.18);
  transition: background 0.2s ease, transform 0.15s ease;
}

.site-nav-cta:hover {
  background: rgba(63, 81, 181, 0.16);
  transform: translateY(-1px);
}

.site-nav-cta--contact {
  color: white;
  background: var(--indigo);
  border-color: var(--indigo);
}

.site-nav-cta--contact:hover {
  background: var(--indigo-dark);
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--indigo-dark);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.site-nav a:hover {
  background: rgba(63, 81, 181, 0.08);
  transform: translateY(-1px);
}

.site-nav a.active {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
}

/* ---- Gallery sections ---- */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
}

.gallery-header {
  margin-bottom: 1.75rem;
}

.gallery-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  border-left: 6px solid var(--indigo);
  padding-left: 14px;
}

.gallery-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* ---- Project cards (matches HCI / Data Viz pattern) ---- */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.project-card a.card-link,
.project-card .card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.project-card:not(.project-card--text) img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Text-only cards (no screenshot) */
.project-card--text .project-card-body {
  border-radius: var(--radius);
}

.project-card--text:hover {
  transform: translateY(-4px);
}

.project-card-body {
  background: var(--indigo);
  color: white;
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.project-card:not(.project-card--text) .project-card-body {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.project-card-body b {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.45rem;
}

.project-card-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tech-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- Home page sections ---- */
#about-section,
.home-panel {
  background: white;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  max-width: 960px;
  margin: 2rem auto;
}

#about-section h2,
.home-panel h2 {
  border-left: 8px solid var(--indigo);
  padding-left: 15px;
  margin-top: 0;
}

.about-lead {
  max-width: 62ch;
}

.about-meta {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-meta-sep {
  margin: 0 0.35rem;
}

.credibility-bar {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.credibility-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  list-style: none;
  border-radius: var(--radius);
  background: rgba(63, 81, 181, 0.06);
  border: 1px solid rgba(63, 81, 181, 0.12);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.credibility-list strong {
  color: var(--indigo-dark);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.skill-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--indigo-dark);
  background: rgba(63, 81, 181, 0.1);
  border: 1px solid rgba(63, 81, 181, 0.2);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.featured-link {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--indigo-dark);
  font-weight: 600;
  background: rgba(63, 81, 181, 0.06);
  border: 1px solid rgba(63, 81, 181, 0.15);
  transition: background 0.2s, transform 0.15s;
}

.featured-link:hover {
  background: rgba(63, 81, 181, 0.14);
  transform: translateY(-2px);
}

.featured-link small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

/* ---- Contact links ---- */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(63, 81, 181, 0.12);
}

.contact-bar a {
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
}

.contact-bar a:hover {
  text-decoration: underline;
}

.contact-links {
  margin-bottom: 0.75rem;
}

.contact-links a {
  margin: 0 0.85rem;
  color: #90caf9;
  text-decoration: none;
  font-weight: 600;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ---- Design manifesto ---- */
.manifesto-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 0.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.manifesto-intro h2 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  border-left: 6px solid var(--indigo);
  padding-left: 14px;
}

.manifesto-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.manifesto-principles {
  margin: 0 0 2rem;
  padding-left: 1.35rem;
  line-height: 1.8;
  font-size: 1.02rem;
}

.manifesto-principles li {
  margin-bottom: 0.35rem;
}

.manifesto-section {
  margin-bottom: 2.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(63, 81, 181, 0.1);
}

.manifesto-section:last-of-type {
  border-bottom: none;
}

.manifesto-section h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--indigo-dark);
}

.manifesto-section p {
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text);
}

.manifesto-section a {
  color: var(--indigo);
}

.manifesto-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.manifesto-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.manifesto-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.manifesto-closing {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(63, 81, 181, 0.06);
  border-radius: var(--radius);
  border-left: 4px solid var(--indigo);
}

.manifesto-closing p {
  margin: 0;
  line-height: 1.75;
  font-size: 1rem;
}

/* ---- JITVis research blog (page-specific) ---- */
.jitvis-blog {
  max-width: 820px;
  margin: 2rem auto 1.5rem;
  padding: 2.25rem 2.5rem 1.75rem;
}

.jitvis-blog,
.jitvis-blog p,
.jitvis-blog li,
.jitvis-blog figcaption,
.jitvis-blog a {
  font-family: "Raleway", sans-serif;
}

.jitvis-intro {
  margin-bottom: 0.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(63, 81, 181, 0.12);
}

.jitvis-meta {
  margin: 0 0 1rem;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.jitvis-blog .manifesto-lead {
  font-weight: 600;
}

.jitvis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  padding-left: 20px;
}

.jitvis-repo-link {
  display: inline-block;
  margin-left: 20px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--indigo-dark);
  background: rgba(63, 81, 181, 0.08);
  border: 1px solid rgba(63, 81, 181, 0.2);
  transition: background 0.2s, transform 0.15s;
}

.jitvis-repo-link:hover {
  background: rgba(63, 81, 181, 0.15);
  transform: translateY(-1px);
}

.jitvis-blog .manifesto-section h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0 0.55rem 0.85rem;
  border-left: 4px solid var(--indigo);
  background: rgba(63, 81, 181, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.jitvis-blog .manifesto-figure {
  margin: 1.75rem 0;
  padding: 0.85rem;
  background: rgba(63, 81, 181, 0.03);
  border: 1px solid rgba(63, 81, 181, 0.1);
  border-radius: var(--radius);
}

.jitvis-blog .manifesto-figure img {
  box-shadow: 0 4px 18px rgba(63, 81, 181, 0.12);
}

.jitvis-blog .manifesto-principles {
  background: rgba(63, 81, 181, 0.04);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1rem 2rem;
  border: 1px solid rgba(63, 81, 181, 0.08);
}

.jitvis-workflow {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.25rem;
  background: rgba(63, 81, 181, 0.06);
  border-radius: var(--radius);
  border-left: 4px solid var(--indigo);
}

.jitvis-workflow-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo-dark);
}

.jitvis-workflow ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
  color: var(--text);
}

.jitvis-workflow li {
  margin-bottom: 0.25rem;
}

.jitvis-blog .manifesto-closing {
  margin-top: 0.5rem;
}

.jitvis-blog .manifesto-closing p + p {
  margin-top: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: #263238;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #90caf9;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---- Legacy W3 card compatibility ---- */
.w3-row-padding .w3-quarter {
  display: flex;
}

.w3-row-padding .w3-quarter > .project-card,
.w3-row-padding .w3-quarter[id="card"],
.w3-row-padding .w3-quarter:not([class*="w3-col"]) {
  width: 100%;
}

.w3-container.w3-indigo.project-card-legacy {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

img.w3-hover-opacity {
  transition: opacity 0.2s;
}

.project-card:hover img.w3-hover-opacity,
.project-card a:hover img {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .tech-header {
    height: 320px;
  }

  .tech-header--home {
    height: auto;
    min-height: 0;
    padding-bottom: 1rem;
  }

  .hero-featured-stage {
    padding: 1.5rem 1rem 0.25rem;
  }

  .featured-stage-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .featured-stage-tab {
    padding: 0.85rem 0.9rem;
  }

  .featured-stage-tab:hover {
    transform: none;
  }

  .featured-stage-window {
    min-height: 280px;
  }

  .featured-stage-window--with-preview {
    min-height: 460px;
  }

  .stage-window-preview {
    min-height: 280px;
    height: 280px;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding: 0.4rem 0.65rem;
  }

  .site-nav-divider {
    display: none;
  }

  .site-nav-articles {
    width: 100%;
    justify-content: center;
  }

  .site-nav-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 0.15rem;
  }

  .site-nav-main {
    width: 100%;
    justify-content: center;
  }

  #about-section,
  .home-panel {
    padding: 1.5rem;
    margin: 1.25rem 1rem;
  }

  .manifesto-content {
    margin: 1.25rem 1rem;
    padding: 1.25rem;
  }

  .jitvis-blog {
    margin: 1.25rem 1rem;
    padding: 1.5rem 1.25rem;
  }

  .jitvis-tags {
    padding-left: 0;
  }

  .jitvis-repo-link {
    margin-left: 0;
  }

  .jitvis-meta {
    padding-left: 0;
  }
}
