/* =====================================================
   KVP PORTFOLIO — styles.css
   Palette: deep navy-black + indigo-to-cyan signal trace
   Type: Inter (body) + JetBrains Mono (code/terminal)
   ===================================================== */

/* ── TOKENS ── */

:root {
  /* Base */
  --bg:          #080b12;
  --bg-surface:  #0d1320;
  --bg-raised:   #111827;
  --bg-subtle:   #0f172a;

  /* Borders */
  --border:      rgba(148, 163, 184, 0.08);
  --border-mid:  rgba(148, 163, 184, 0.14);

  /* Text */
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;

  /* Signal-trace accent — indigo → cyan */
  --accent-a:    #818cf8;     /* indigo */
  --accent-b:    #22d3ee;     /* cyan   */
  --accent-mid:  #38bdf8;     /* sky    */
  --gradient: linear-gradient(90deg, var(--accent-a) 0%, var(--accent-b) 100%);

  /* Status */
  --green:       #22c55e;
  --mono-fg:     #7dd3fc;     /* terminal prompt */

  /* Type scale */
  --font-body:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Nav height */
  --nav-h: 64px;

  /* Max content width */
  --max-w: 1140px;
}

/* ── RESET ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

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

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

/* ── CONTAINER ── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── GRADIENT TEXT ── */

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.82; transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
}

.btn-secondary:hover { border-color: var(--accent-b); color: var(--accent-b); opacity: 1; }

/* ── TAGS ── */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--space-sm);
}

.tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.2s, border-bottom 0.2s;
}

.site-header.scrolled {
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
}

.brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

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

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-dim);
  transition: transform 0.2s, opacity 0.2s;
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Let the flex centering do the work — padding-top offsets for nav */
  padding-top: var(--nav-h);
  padding-bottom: 0;
  box-sizing: border-box;
}

/* Subtle grid overlay — like a scope graticule */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial vignette so grid fades at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  width: 100%;
  padding-block: 3rem;
}


.hero-copy {
  width: 100%;
  max-width: 560px;
}

/* ── Hero copy ── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-description strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ── Terminal card ── */

.terminal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #22c55e; }

.terminal-header > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  line-height: 1.9;
}

.terminal-body p { color: var(--text); }

.terminal-body .muted { color: var(--text-muted); }

.terminal-body .prompt {
  color: var(--mono-fg);
  margin-right: 0.5rem;
  user-select: none;
}

.terminal-output {
  color: var(--accent-b) !important;
  font-style: normal;
}

/* =====================================================
   SECTIONS — shared
   ===================================================== */

.section {
  padding-block: var(--space-xl);
  scroll-margin-top: var(--nav-h);
}

/* contact and open-source don't use .section class */
#contact,
#opensource {
  scroll-margin-top: var(--nav-h);
}

.section-dark {
  background: var(--bg-subtle);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* =====================================================
   ABOUT
   ===================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-grid > div > p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  max-width: 58ch;
}

.about-grid > div > p strong { color: var(--text); font-weight: 600; }

/* Focus card */
.focus-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.focus-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.focus-item:last-child { border-bottom: none; }

.focus-item:hover { background: var(--bg-raised); }

.focus-icon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 0.2rem;
  letter-spacing: 0.04em;
}

.focus-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.focus-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================================================
   HARDWARE FLOW
   ===================================================== */

.flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  min-width: 120px;
  text-align: center;
  flex-shrink: 0;
}

.flow-node span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-b);
  letter-spacing: 0.06em;
}

.flow-node strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.flow-node small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  padding-inline: 0.25rem;
}

/* Hardware cards */
.hardware-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hardware-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.15s;
}

.hardware-card:hover { border-color: var(--border-mid); }

.card-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  color: var(--accent-b);
  margin-bottom: 0.75rem;
}

.hardware-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hardware-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================================================
   PROJECTS
   ===================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s, transform 0.15s;
}

.project-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.project-card.featured {
  grid-column: 1 / -1;
  background: var(--bg-raised);
  border-color: rgba(129, 140, 248, 0.2);
}

.project-card.featured:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

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

.project-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-card.featured h3 { font-size: 1.3rem; }

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-b);
  letter-spacing: 0.02em;
  margin-top: auto;
  transition: opacity 0.15s;
}

.project-link:hover { opacity: 0.7; }

/* =====================================================
   STACK
   ===================================================== */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 3rem;
}

.stack-group h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stack-items span {
  font-size: 0.85rem;
  color: var(--text);
  position: relative;
  padding-left: 0.9rem;
}

.stack-items span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-b);
  opacity: 0.7;
}

/* =====================================================
   OPEN SOURCE
   ===================================================== */

.opensource-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.opensource-content .lead {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.opensource-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.repo-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.repo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}

.repo-item:last-child { border-bottom: none; }

.repo-item:hover {
  background: var(--bg-raised);
  color: var(--text);
}

/* =====================================================
   CONTACT
   ===================================================== */

.contact-section {
  padding-block: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-section .eyebrow {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-section > .container > p {
  color: var(--text-dim);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-inner span,
.footer-inner a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-inner a:hover { color: var(--text); }

.footer-code {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .projects-grid     { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: 1 / -1; }
  .stack-grid        { grid-template-columns: repeat(3, 1fr); }
  .hardware-columns  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-xl: 4rem; }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    background: rgba(8, 11, 18, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: flex; }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
  }

  .hero-copy {
    max-width: 100%;
  }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Flow */
  .flow { gap: 0.35rem; }
  .flow-node { min-width: 90px; padding: 0.75rem 0.75rem; }

  /* Hardware */
  .hardware-columns { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Stack */
  .stack-grid { grid-template-columns: repeat(2, 1fr); }

  /* Open source */
  .opensource-content { grid-template-columns: 1fr; gap: 2rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2rem; }
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   OPEN SOURCE — contributions grid
   ===================================================== */

.opensource-intro {
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.opensource-intro p { color: var(--text-dim); font-size: 0.9rem; }
.opensource-intro .lead { font-size: 1.15rem; color: var(--text); margin-bottom: 0.75rem; }

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 0;
  align-items: stretch;
}

.contrib-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.15s;
}

.contrib-card:hover { border-color: var(--border-mid); }

.contrib-header { display: flex; flex-direction: column; gap: 0.5rem; }

.contrib-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}

.contrib-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contrib-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.contrib-list li {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.contrib-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-b);
  opacity: 0.7;
}

.pr-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 2px;
  color: var(--accent-b);
  white-space: nowrap;
  margin-left: 0.25rem;
}

@media (max-width: 768px) {
  .contrib-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PR LIST — live GitHub feed
   ===================================================== */

.pr-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 320px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

.pr-list::-webkit-scrollbar       { width: 4px; }
.pr-list::-webkit-scrollbar-track { background: transparent; }
.pr-list::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.pr-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pr-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border-mid);
  border-top-color: var(--accent-b);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.pr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.12s;
}

.pr-row:last-child { border-bottom: none; }
.pr-row:hover { background: var(--bg-raised); }

.pr-icon {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.pr-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.pr-title {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-meta {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.pr-repo { color: var(--accent-b); opacity: 0.8; }
.pr-num  { color: var(--text-muted); }

.pr-comments {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Status badges */
.pr-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  align-self: flex-start;
  margin-top: 1px;
}

.pr-status.merged {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--accent-a);
}

.pr-status.open {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green);
}

.pr-status.closed {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
}

.pr-empty {
  padding: 1rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pr-empty a { color: var(--accent-b); }

/* =====================================================
   FINAL GLOBAL CENTERING FIX
   ===================================================== */

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

main,
.site-header,
.footer,
.section,
.contact-section {
  width: 100%;
}

/*
   One centering rule for the entire site.
   The container itself owns horizontal positioning.
*/
.container {
  width: min(calc(100% - 48px), 1140px);
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 0;
}

/*
   Hero is nested inside .container, so it must NOT
   become a second independent centered container.
*/
.hero-content {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  padding-block: 3rem;
}

.hero-copy {
  width: 100%;
  max-width: 560px;
  margin-inline: 0;
}

.section > .container,
.contact-section > .container,
.footer > .container {
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
    max-width: 1140px;
    margin-inline: auto;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }
}


/* =====================================================
   OPEN SOURCE — EQUAL CARD WIDTHS
   ===================================================== */

/* Prevent long PR titles from making the first grid column wider. */
.contrib-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.contrib-card {
  min-width: 0;
  width: 100%;
}

.contrib-header,
.pr-list,
.tags,
.pr-row,
.pr-info {
  min-width: 0;
}

.pr-info {
  overflow: hidden;
}

.pr-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-meta {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contrib-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
