/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1a1119;
  --surface:   #201420;
  --card:      #281b26;
  --border:    rgba(255, 255, 255, 0.08);
  --border-h:  rgba(212, 120, 154, 0.35);
  --text:      #f5eef2;
  --text-muted:#9a7d8a;
  --accent:    #d4789a;
  --accent2:   #e8a87c;
  --radius:    16px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.accent { color: var(--accent); }

/* ── Particles canvas ───────────────────────────────────────── */
canvas#particles-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all page content sits above the canvas */
#navbar { z-index: 100; }
section, .marquee-strip, footer {
  position: relative;
  z-index: 1;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2e1a22; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0f0d15;
}
.btn-primary:hover {
  background: #e8a0be;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 120, 154, 0.4);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(212, 120, 154, 0.5);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Tags ─────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  background: rgba(212, 120, 154, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(212, 120, 154, 0.18);
  transition: background 0.2s;
}
.tag:hover { background: rgba(212, 120, 154, 0.15); }

/* ────────────────────────────────────────────────────────────── */
/* ── NAVBAR ─────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(26, 17, 25, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: 'JetBrains Mono', monospace;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(26, 17, 25, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 300px; }
.mobile-link {
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem);
  color: var(--text-muted);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-link:hover { color: var(--accent); background: rgba(212, 120, 154, 0.05); }

/* ────────────────────────────────────────────────────────────── */
/* ── HERO ───────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
#hero {
  min-height: calc(100dvh - 50px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(212, 120, 154, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%,  rgba(232, 168, 124, 0.08) 0%, transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.8s 0.05s ease both;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
  padding-bottom: 0.15em;
  animation: fadeUp 0.8s 0.1s ease both;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 70%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-name .accent { -webkit-text-fill-color: var(--accent2); }

.hero-type-row {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.15s ease both;
  min-height: 1.6em;
}
.hero-type-static { color: var(--text-muted); }
.hero-typewriter {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.hero-typewriter::after {
  content: '|';
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.25s ease both;
}

/* ── Hero decoration ──────────────────────────────────────────── */
.hero-deco {
  position: relative;
  height: 400px;
  animation: fadeIn 1.2s 0.4s ease both;
}

.hero-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 50%, rgba(212, 120, 154, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 65% 55%, rgba(232, 168, 124, 0.12) 0%, transparent 50%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  filter: blur(40px);
  animation: morph 9s ease-in-out infinite;
}

.hero-dot-grid {
  position: absolute;
  inset: 20px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 72%);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 1s 1.2s ease both;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ────────────────────────────────────────────────────────────── */
/* ── MARQUEE ────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-track .sep {
  color: var(--accent);
  opacity: 0.5;
}

/* ────────────────────────────────────────────────────────────── */
/* ── ABOUT ──────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
#about {
  padding: 6rem 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 4rem;
  align-items: start;
}

.about-headline {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.about-headline em {
  font-style: italic;
  color: var(--accent);
}

.about-body {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.stat-card {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-card:last-child { border-bottom: none; }

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 0.05em;
  line-height: 1;
}

.stat-n {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-size: 2rem;
  font-weight: 700;
  vertical-align: top;
  line-height: 1;
  margin-left: 2px;
  -webkit-text-fill-color: var(--accent);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.stat-card.arizona .stat-n {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ────────────────────────────────────────────────────────────── */
/* ── SECTION SHARED ─────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
#projects, #connect { padding: 6rem 0; }

.section-head { margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ────────────────────────────────────────────────────────────── */
/* ── BENTO GRID ─────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Row 1: SheetDL(2) + Netflix(1) */
.bento-wide   { grid-column: span 2; }   /* SheetDL  */
/* Netflix = span 1 default */

/* Row 2: Pinterest(1) + MQA(2) */
.bento-wide-r { grid-column: span 2; }  /* MQA      */
/* Pinterest = span 1 default */

/* Row 3: Teaser full width */
.bento-teaser { grid-column: span 3; }

/* ── Card base ────────────────────────────────────────────────── */
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.bento-card:hover {
  border-color: rgba(212, 120, 154, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 120, 154, 0.08);
}
.bento-card:hover .card-shine { opacity: 1; }

/* Featured large card gets a subtle glow bg */
.bento-wide {
  border-color: rgba(212, 120, 154, 0.2);
  background: linear-gradient(145deg, #2e1c2a, #281b26);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.card-badges {
  flex: 1;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Language badges */
.lang-badge {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  border: 1px solid;
}
.lang-badge.python {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}
.lang-badge.js {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}
.lang-badge.csharp {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

.feat-badge {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(232, 168, 124, 0.1);
  border: 1px solid rgba(232, 168, 124, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.card-gh {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.card-gh:hover { color: var(--accent); transform: translateY(-2px); }
.card-gh svg { width: 22px; height: 22px; }

.card-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.card-title a {
  transition: color 0.2s;
}
.card-title a:hover {
  color: var(--accent);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

.pill {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  background: rgba(212, 120, 154, 0.07);
  color: var(--accent);
  border: 1px solid rgba(212, 120, 154, 0.14);
}

/* ── Teaser card ──────────────────────────────────────────────── */
.bento-teaser {
  background: rgba(212, 120, 154, 0.04);
  border-style: dashed;
  border-color: rgba(212, 120, 154, 0.2);
  flex-direction: row;
}
.teaser-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.teaser-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.teaser-icon { font-size: 1.5rem; }
.teaser-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.teaser-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ────────────────────────────────────────────────────────────── */
/* ── CONNECT ────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
#connect { background: var(--surface); }

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.connect-card:hover {
  border-color: rgba(212, 120, 154, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.connect-card:hover .connect-arrow { color: var(--accent); transform: translate(3px, -2px); }
.connect-card:hover .connect-icon  { color: var(--accent); background: rgba(212, 120, 154, 0.1); }

.connect-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background 0.25s, color 0.25s;
}
.connect-icon svg { width: 20px; height: 20px; }

.connect-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.connect-platform {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.connect-handle {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.connect-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

/* ────────────────────────────────────────────────────────────── */
/* ── FOOTER ─────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

/* ────────────────────────────────────────────────────────────── */
/* ── ANIMATIONS ─────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; transform: rotate(0deg); }
  25%       { border-radius: 30% 70% 40% 60% / 60% 40% 70% 30%; transform: rotate(5deg); }
  50%       { border-radius: 50% 50% 30% 70% / 40% 70% 50% 60%; transform: rotate(0deg); }
  75%       { border-radius: 70% 30% 60% 40% / 70% 30% 60% 40%; transform: rotate(-5deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
@keyframes rotateCog {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Spinning cog ───────────────────────────────────────────── */
.spin-cog {
  display: inline-block;
  animation: rotateCog 7s linear infinite;
  transform-origin: center;
  line-height: 1;
}

/* ── Brand icons inside card-icon ───────────────────────────── */
.card-icon svg,
.card-icon img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────── */
/* ── RESPONSIVE ─────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-deco  { display: none; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-wide   { grid-column: span 2; }
  .bento-wide-r { grid-column: span 2; }
  .bento-teaser { grid-column: span 2; }

  .about-grid { grid-template-columns: 1fr; }
  .about-right {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-card {
    flex: 1;
    min-width: 120px;
    padding: 1.25rem 1rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .stat-card:last-child { border-right: none; }
}

@media (max-width: 640px) {
  .nav-links    { display: none; }
  .nav-menu-btn { display: flex; }
  .mobile-menu  { display: flex; }

  .bento-grid   { grid-template-columns: 1fr; }
  .bento-wide   { grid-column: span 1; }
  .bento-wide-r { grid-column: span 1; }
  .bento-teaser { grid-column: span 1; flex-direction: column; }
  .teaser-content { flex-direction: column; align-items: flex-start; }

  .hero-ctas    { flex-direction: column; align-items: flex-start; }

  .about-right  { flex-direction: column; }
  .stat-card    { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
}
