/* =========================================================
   PureAI Development — styles.css
   Mobile-first. Base styles target mobile.
   min-width media queries enhance for larger screens.
   MDN responsive design standards.
   ========================================================= */

/* ---------------------------------------------------------
   Custom properties
   --------------------------------------------------------- */
:root {
  --bg:            #06060f;
  --bg-tint:       #0d0d1a;
  --surface:       #13132a;
  --surface-hi:    #1a1a35;
  --border:        rgba(99, 102, 241, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --text:          #e2e8f0;
  --text-muted:    #94a3b8;
  --text-faint:    #475569;
  --indigo:        #6366f1;
  --cyan:          #06b6d4;
  --red:           #ef4444;
  --grad:          linear-gradient(135deg, #6366f1, #06b6d4);
  --grad-text:     linear-gradient(120deg, #818cf8, #a78bfa, #38bdf8);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --mono:          'JetBrains Mono', 'Fira Code', monospace;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 40px rgba(99, 102, 241, 0.15);

  /* Fluid section padding: 48px mobile → 96px desktop */
  --section-py: clamp(3rem, 8vw, 6rem);
  /* Fluid horizontal container padding */
  --container-px: clamp(1rem, 5vw, 1.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Prevent scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ---------------------------------------------------------
   Buttons  (min touch target: 44 × 44px — MDN a11y)
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

/* ---------------------------------------------------------
   Section shared styles
   --------------------------------------------------------- */
.section { padding-block: var(--section-py); }

.section--tinted {
  background: linear-gradient(180deg, transparent, var(--bg-tint) 15%, var(--bg-tint) 85%, transparent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--grad);
  flex-shrink: 0;
}

/* Fluid heading: 1.5rem → 2.5rem */
.section-title {
  font-size: clamp(1.5rem, 1rem + 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* ---------------------------------------------------------
   Navigation — mobile base
   --------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding-block: 14px;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: rgba(6, 6, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: 10px;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}

.logo-accent { color: var(--indigo); }

/* Hamburger toggle — visible on mobile */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.nav-toggle:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle--open .icon-menu { display: none; }
.nav-toggle--open .icon-close { display: block; }

/* Mobile menu — full-screen overlay */
.nav-menu {
  list-style: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 190;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-menu li { width: 100%; text-align: center; }

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s, background 0.15s;
  min-height: 64px;
}

.nav-menu a:hover { color: var(--text); background: var(--surface); }

/* ---------------------------------------------------------
   Hero — mobile base (single column)
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding-block-start: clamp(5rem, 20vw, 7rem);
  padding-block-end: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

/* Background decoration */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.orb-1 {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: -20%;
  right: -15%;
}

.orb-2 {
  width: min(350px, 80vw);
  height: min(350px, 80vw);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: 0;
  left: -10%;
}

.grid-lines {
  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: 50px 50px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 10%, transparent 70%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

/* Hero content */
.hero-content { order: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
  animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Fluid hero title: 2rem → 3.75rem */
.hero-title {
  font-size: clamp(2rem, 2rem + 3vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #f8fafc;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.hero-title .gradient-text { display: block; }

.hero-subtitle {
  font-size: clamp(0.9375rem, 0.875rem + 0.5vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2rem;
}

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

/* Full-width buttons on smallest screens */
.hero-actions .btn { flex: 1 1 140px; }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 28px);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Code window — hidden on mobile, visible on tablet+ */
.hero-visual { order: 2; display: none; }

/* ---------------------------------------------------------
   Code window
   --------------------------------------------------------- */
.code-window {
  background: #0d0d1e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca41; }

.window-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-inline: auto;
}

.code-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: #cbd5e1;
  white-space: pre;
  tab-size: 2;
}

.kw  { color: #a78bfa; }
.fn  { color: #38bdf8; }
.pl  { color: #cbd5e1; }
.cm  { color: #475569; font-style: italic; }

.cursor {
  display: inline-block;
  color: var(--indigo);
  animation: blink 1s step-end infinite;
}

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

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-cards { display: flex; flex-direction: column; gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover { border-color: var(--border); background: var(--surface-hi); }

.card-icon {
  width: 42px;
  height: 42px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 5px;
}

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

/* ---------------------------------------------------------
   Philosophy
   --------------------------------------------------------- */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.principle {
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  background: var(--surface);
  transition: background 0.2s;
}

.principle:hover { background: var(--surface-hi); }

.principle-number {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 14px;
  opacity: 0.8;
}

.principle h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

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

.philosophy-quote {
  text-align: center;
  padding-inline: clamp(0px, 5vw, 3rem);
}

.philosophy-quote blockquote,
.philosophy-quote {
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.05rem);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   Projects
   --------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Featured project card */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow), 0 0 50px rgba(99, 102, 241, 0.1);
}

/* Elevation chart */
.project-visual {
  background: #08081a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px;
}

.elevation-demo {
  background: #0d0d1e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.elevation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.elevation-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.elevation-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-dot--red {
  background: var(--red) !important;
  animation: pulse-soft 1.5s infinite;
}

.elevation-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  display: block;
  padding: 10px 10px 0;
}

.elevation-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* Project body */
.project-body { padding: clamp(1.25rem, 4vw, 2rem); }

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-title {
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.project-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-features svg { flex-shrink: 0; margin-top: 2px; }

.project-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-footer .btn { flex-shrink: 0; }

.project-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* Next project card */
.project-card--next {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  border-style: dashed;
  background: var(--surface);
}

.next-icon { margin-bottom: 1rem; opacity: 0.6; }

.project-card--next h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-card--next p {
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 28ch;
}

.building-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
}

/* ---------------------------------------------------------
   Stack / Toolchain
   --------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  transition: background 0.2s;
  min-height: 80px;
}

.stack-item:hover { background: var(--surface-hi); }

.stack-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-icon--claude { background: rgba(217, 119, 6, 0.12); }
.stack-icon--react  { background: rgba(97, 218, 251, 0.1); }
.stack-icon--go     { background: rgba(0, 173, 216, 0.1); }
.stack-icon--vscode { background: rgba(0, 122, 204, 0.1); }

.stack-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.stack-role {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.45;
  margin-top: 2px;
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact-box {
  position: relative;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 6vw, 4rem);
  overflow: hidden;
}

.orb-contact-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -160px;
  right: -80px;
  filter: blur(60px);
  pointer-events: none;
}

.orb-contact-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  bottom: -130px;
  left: -50px;
  filter: blur(60px);
  pointer-events: none;
}

.contact-box .section-label { justify-content: center; }
.contact-box .section-title { margin-bottom: 1rem; }

.contact-text {
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-actions .btn { width: 100%; max-width: 280px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 100px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

.footer-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ==========================================================
   TABLET — min-width: 640px
   ========================================================== */
@media (min-width: 640px) {
  /* Hero: show code window, two columns */
  .hero-visual { display: block; }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-content { order: 1; }
  .hero-visual  { order: 2; }

  /* Buttons no longer full-width */
  .hero-actions .btn { flex: none; }

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

  /* Contact actions: row */
  .contact-actions { flex-direction: row; justify-content: center; }
  .contact-actions .btn { width: auto; max-width: none; }

  /* Footer: row */
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }

  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================
   DESKTOP — min-width: 1024px
   ========================================================== */
@media (min-width: 1024px) {
  /* Nav: hide hamburger, show inline links */
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    inset: unset;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    gap: 32px;
    z-index: auto;
    transition: none;
  }

  .nav-menu li { width: auto; }

  .nav-menu a {
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: none;
    min-height: auto;
    background: transparent;
  }

  .nav-menu a:hover { color: var(--text); background: transparent; }

  /* Hero: wider code window */
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  /* About: two columns */
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Philosophy: 4 columns */
  .principles-grid { grid-template-columns: repeat(4, 1fr); }

  /* Projects: featured + next side by side */
  .projects-grid { grid-template-columns: 1fr 320px; align-items: start; }

  .project-card--next { min-height: 400px; }
}
