/* ============================================================
   ALAN GREBELSKY PORTFOLIO — style.css
   Inspired by crrapi.xyz: dark split-pane, code-comment headings
   ============================================================ */

/* ── Design tokens ── */
:root {
  --bg-left:    #0d0d0d;
  --bg-right:   #111111;
  --bg-card:    #1a1a1a;
  --bg-hover:   #202020;
  --border:     #2a2a2a;
  --border-mid: #333333;

  --text-white:  #ffffff;
  --text-body:   #cccccc;
  --text-muted:  #888888;
  --text-faint:  #555555;

  --accent:      #6366f1; /* indigo — distinct from original teal */
  --accent-dim:  rgba(99, 102, 241, 0.15);

  --sidebar-w:   340px;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius-card: 10px;
  --radius-pill: 999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-right);
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; background: none; border: none; font: inherit; }
::selection { background: var(--accent-dim); color: var(--text-white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100dvh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-left);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-inner {
  padding: 3rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

/* Hero name */
.hero-name {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}
.name-line {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  line-height: 1.0;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

/* Tagline */
.hero-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Rule */
.hero-rule {
  width: 30px;
  height: 2px;
  background: var(--text-white);
  margin: 0;
}

/* Bio */
.hero-bio {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 100%;
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  border-left-color: var(--accent);
}

/* Social icons */
.sidebar-social {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}
.social-link {
  color: var(--text-faint);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.social-link:hover { color: var(--text-white); }

/* ── Main content ── */
.content {
  flex: 1;
  min-width: 0;
  padding: 3rem 3rem 2rem;
  max-width: 860px;
}

/* ── Sections ── */
.section {
  margin-bottom: 5rem;
}

/* Section heading with // prefix */
.section-heading {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.section-heading::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border-mid);
  flex: 1;
  margin-left: 1rem;
}
.heading-prefix {
  color: var(--accent);
  font-weight: 400;
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.card-grid--single {
  grid-template-columns: 1fr;
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: #444;
  background: var(--bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

/* Large logo banner at top of card */
.card-logo {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.card-logo svg {
  width: auto;
  height: 100%;
  max-height: 70px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem 1.75rem;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 0.1rem;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.65;
  margin-top: 0.4rem;
}

/* ── Tags / Pills ── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 12px;
  color: var(--text-body);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: default;
}
.tag:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-white);
}

/* ── Skills blocks ── */
.skills-block {
  margin-bottom: 1.75rem;
}
.skills-subheading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

/* ── Contact ── */
.contact-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  min-width: 80px;
  flex-shrink: 0;
}
.contact-value {
  font-size: 14px;
  color: var(--text-body);
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--text-white); }

/* ── Footer ── */
.footer {
  margin-top: 4rem;
  padding-bottom: 2rem;
}
.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}
.footer p {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered children ── */
.card-grid .card:nth-child(1) { transition-delay: 0ms; }
.card-grid .card:nth-child(2) { transition-delay: 80ms; }
.card-grid .card:nth-child(3) { transition-delay: 160ms; }
.card-grid .card:nth-child(4) { transition-delay: 240ms; }
.card-grid .card:nth-child(5) { transition-delay: 320ms; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-inner {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0;
    gap: 0.5rem 1rem;
  }
  .nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding-left: 0;
    padding-bottom: 0.25rem;
  }
  .nav-link:hover, .nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
  .name-line { font-size: 2.5rem; }
  .content { padding: 2rem 1.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .sidebar-inner { padding: 1.5rem 1rem; }
  .content { padding: 1.5rem 1rem; }
  .name-line { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Inline code */
.card-desc code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-white);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   INTERACTIVE ENHANCEMENTS
   ============================================================ */

/* ── Typewriter cursor ── */
.name-line {
  position: relative;
}
.name-line.typed-done::after {
  content: '|';
  color: var(--accent);
  animation: blink 0.75s step-end infinite;
  margin-left: 3px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Project filter bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover {
  color: var(--text-white);
  border-color: #555;
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Project card transition for filter ── */
.project-card {
  transition: opacity 0.3s ease, transform 0.3s ease,
              border-color var(--transition), background var(--transition),
              box-shadow var(--transition);
}

/* ── Expand button ── */
.card-expand-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0;
  margin-top: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.8;
  align-self: flex-start;
}
.card-expand-btn:hover {
  opacity: 1;
  color: #818cf8;
}
.card-expand-btn.open {
  color: var(--text-muted);
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.3s ease;
}

/* ── Card desc smooth expand ── */
.card-desc {
  transition: none;
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */

/* Clickable card cursor */
.project-card[data-project] {
  cursor: pointer;
}
.project-card[data-project]:hover .card-title {
  color: #818cf8;
  transition: color var(--transition);
}
.project-card[data-project]::after {
  content: '↗';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 14px;
  color: var(--text-faint);
  transition: color var(--transition), transform var(--transition);
  font-family: var(--font-sans);
}
.project-card[data-project] {
  position: relative;
}
.project-card[data-project]:hover::after {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay:not([hidden]) {
  opacity: 1;
}
.modal-overlay[hidden] {
  display: none !important;
}

/* Container — slides up from bottom */
.modal-container {
  background: #161616;
  border: 1px solid #2e2e2e;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
.modal-overlay:not([hidden]) .modal-container {
  transform: translateY(0);
}

/* Header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem 1rem;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
}
.modal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.modal-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.modal-close {
  color: var(--text-faint);
  padding: 0.35rem;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.06);
}

/* Modal tags */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}

/* Tabs */
.modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 2rem;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
}
.modal-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.modal-tab:hover { color: var(--text-body); }
.modal-tab.active {
  color: var(--text-white);
  border-bottom-color: var(--accent);
}

/* Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Panels */
.modal-panel { display: none; padding: 1.75rem 2rem 2.5rem; }
.modal-panel.active { display: block; }

/* Overview text */
.modal-overview {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.8;
  white-space: pre-line;
  max-width: 72ch;
}

/* Code block */
.modal-code {
  background: #0d0d0d;
  border: 1px solid #252525;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.modal-code::-webkit-scrollbar { height: 6px; }
.modal-code::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Syntax highlighting (simple CSS classes set by JS) */
.tok-comment  { color: #6b7280; font-style: italic; }
.tok-keyword  { color: #818cf8; }
.tok-string   { color: #86efac; }
.tok-number   { color: #fbbf24; }
.tok-function { color: #67e8f9; }
.tok-operator { color: #f472b6; }
.tok-heading  { color: #a78bfa; font-weight: 700; }
.tok-bullet   { color: var(--accent); }

/* Key Findings list */
.modal-findings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.modal-findings li {
  display: flex;
  gap: 0.75rem;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.6;
  align-items: flex-start;
}
.modal-findings li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive */
@media (min-width: 700px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
  .modal-container {
    border-radius: 16px;
    border-bottom: 1px solid #2e2e2e;
    max-height: 82vh;
  }
}

/* ============================================================
   CHATBOT — Ask Alan
   ============================================================ */

.chat-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 58ch;
  line-height: 1.65;
}

.chatbot-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

/* Message window */
.chat-window {
  height: 360px;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.chat-window::-webkit-scrollbar { width: 5px; }
.chat-window::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Messages */
.chat-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  animation: msgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.bot-avatar  { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(99,102,241,0.3); }
.user-avatar { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid #333; }

.chat-bubble {
  max-width: 78%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-line;
}
.bot-bubble {
  background: #1e1e2e;
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--text-body);
  border-radius: 4px 12px 12px 12px;
}
.user-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid #2e2e2e;
  color: var(--text-white);
  border-radius: 12px 4px 12px 12px;
}

/* Typing indicator */
.typing-bubble {
  background: #1e1e2e;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 4px 12px 12px 12px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
  opacity: 0.6;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Suggestion chips */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #222;
  background: rgba(0,0,0,0.2);
}
.suggestion-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.suggestion-chip:hover {
  color: var(--text-white);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Input row */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #222;
  background: #161616;
}
.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-white);
  caret-color: var(--accent);
}
.chat-input::placeholder { color: var(--text-faint); }
.chat-send {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.chat-send:hover {
  background: #818cf8;
  transform: scale(1.05);
}
.chat-send:active { transform: scale(0.97); }

/* ── Project card banners ── */
.project-banner {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.banner-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

/* Individual banner gradients */
.banner-bmw      { background: linear-gradient(135deg, #1a1a3e 0%, #0d1b4b 100%); }
.banner-bmw::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%, rgba(99,102,241,0.3) 0%, transparent 70%); }

.banner-vending  { background: linear-gradient(135deg, #1a2e1a 0%, #0d2b1a 100%); }
.banner-vending::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%, rgba(74,222,128,0.25) 0%, transparent 70%); }

.banner-thermo   { background: linear-gradient(135deg, #2e1a1a 0%, #2b0d0d 100%); }
.banner-thermo::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%, rgba(251,146,60,0.3) 0%, transparent 70%); }

.banner-altai    { background: linear-gradient(135deg, #1a1a2e 0%, #0d0d2b 100%); }
.banner-altai::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.3) 0%, transparent 70%); }

.banner-income   { background: linear-gradient(135deg, #1a2a2e 0%, #0d1f2b 100%); }
.banner-income::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%, rgba(56,189,248,0.25) 0%, transparent 70%); }

.banner-wine     { background: linear-gradient(135deg, #2a1a2e 0%, #1f0d2b 100%); }
.banner-wine::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%, rgba(232,121,249,0.25) 0%, transparent 70%); }

/* ── Project cards — text-only style (no banner) ── */
.project-grid .card {
  padding: 1.75rem;
}
.project-grid .card-body {
  padding: 0;
  gap: 0.6rem;
}
.project-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--text-white) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}
.project-grid .card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}
.project-grid .card-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-top: 0.25rem;
}
.project-grid .card-desc strong {
  color: var(--text-white);
  font-weight: 600;
}
