/* ============================================================
   MARCONI — AI Engineering & Architecture
   styles.css
   ============================================================ */

:root {
  --bg:           #03080a;
  --bg2:          #060e10;
  --bg3:          #04090c;
  --green-neon:   #00ffc8;
  --green-acid:   #4dff91;
  --green-dim:    #0a4a35;
  --cyan:         #00e5ff;
  --gold:         #c8ff00;
  --text:         #f0f7f4;
  --text-dim:     #a8c4b8;
  --text-mid:     #d0ede3;
  --glass:        rgba(0, 255, 200, 0.04);
  --glass-border: rgba(0, 255, 200, 0.12);
  --glass-hover:  rgba(0, 255, 200, 0.07);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--green-neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--green-neon);
  transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(0,255,200,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 14px; height: 14px;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

/* ── NAVIGATION ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 52px;
  background: linear-gradient(to bottom, rgba(3,8,10,.97), rgba(3,8,10,.0));
  border-bottom: 1px solid rgba(0,255,200,.05);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .3em;
  color: var(--green-neon);
  text-shadow: 0 0 28px rgba(0,255,200,.55);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s;
  position: relative;
  cursor: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--green-neon);
  transition: right .3s ease;
}
.nav-links a:hover  { color: var(--green-neon); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--green-neon);
  border: none;
  padding: 10px 22px;
  cursor: none;
  font-weight: 500;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--gold); transform: scale(1.04); }

/* ── SCANLINES ───────────────────────────────────────── */
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,255,200,.012) 2px, rgba(0,255,200,.012) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,200,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,200,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0; pointer-events: none;
}

#particleCanvas {
  position: absolute; inset: 0;
  z-index: 1; opacity: .55;
}

/* Leaf */
.leaf-container {
  position: absolute;
  right: -4%; top: 50%;
  transform: translateY(-50%);
  width: 68vw; max-width: 880px;
  z-index: 2; opacity: 0;
  animation: leafReveal 2s cubic-bezier(.16,1,.3,1) .5s forwards;
}
@keyframes leafReveal {
  from { opacity: 0; transform: translateY(-50%) scale(1.05); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
.leaf-svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 40px rgba(0,255,200,.22))
          drop-shadow(0 0 80px rgba(0,255,200,.08));
}

/* Vein animations */
@keyframes veinFlow {
  0%   { stroke-dashoffset: 600; opacity: 0; }
  30%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes veinPulse {
  0%,100% { stroke-opacity: .6; }
  50%     { stroke-opacity: 1;  }
}
@keyframes dataPacket {
  0%   { stroke-dashoffset:  300; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -300; opacity: 0; }
}
.vein-main      { stroke-dasharray:600; animation: veinFlow 3s   cubic-bezier(.4,0,.2,1) forwards; }
.vein-secondary { stroke-dasharray:300; animation: veinFlow 3.5s cubic-bezier(.4,0,.2,1) .3s forwards; }
.vein-tertiary  { stroke-dasharray:200; animation: veinFlow 4s   cubic-bezier(.4,0,.2,1) .6s forwards; }
.vein-pulse     { animation: veinPulse 3s ease-in-out infinite; }
.data-flow      { stroke-dasharray:20 580;  animation: dataPacket 4s linear        infinite; }
.data-flow-2    { stroke-dasharray:15 585;  animation: dataPacket 5s linear 1.5s   infinite; }
.data-flow-3    { stroke-dasharray:12 588;  animation: dataPacket 6s linear .8s    infinite; }

/* Hero text */
.hero-content {
  position: relative; z-index: 5;
  padding: 0 6vw; max-width: 590px;
  opacity: 0;
  animation: slideUp 1.2s ease 1.2s forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--green-neon);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: 7px 14px; margin-bottom: 24px;
  backdrop-filter: blur(12px);
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-neon); border-radius: 50%;
  box-shadow: 0 0 8px var(--green-neon);
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: .2; }
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.hero-title .line1 { color: var(--text); display: block; }
.hero-title .line2 { color: var(--green-neon); display: block; text-shadow: 0 0 40px rgba(0,255,200,.5); }
.hero-title .line3 { color: transparent; -webkit-text-stroke: 1px rgba(0,255,200,.28); display: block; }

.hero-sub {
  font-size: 13px; font-weight: 300; line-height: 1.8;
  color: var(--text-dim); margin: 28px 0 40px; max-width: 420px;
  border-left: 2px solid var(--green-dim); padding-left: 16px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bg); background: var(--green-neon);
  border: none; padding: 14px 32px; cursor: none; font-weight: 500;
  clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%);
  position: relative; overflow: hidden; transition: background .25s, transform .2s;
  text-decoration: none; display: inline-block;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%); transition: transform .4s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { background: var(--gold); transform: scale(1.03); }

.btn-secondary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-neon); background: transparent;
  border: 1px solid var(--glass-border); padding: 14px 28px;
  cursor: none; transition: all .25s; backdrop-filter: blur(8px);
  text-decoration: none; display: inline-block;
}
.btn-secondary:hover { border-color: var(--green-neon); background: var(--glass); }

.hero-metrics {
  position: absolute; bottom: 48px; left: 6vw;
  display: flex; gap: 44px; z-index: 5;
  opacity: 0; animation: slideUp 1.2s ease 1.8s forwards;
}
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-val {
  font-family: 'Orbitron', monospace; font-size: 22px;
  font-weight: 700; color: var(--green-neon);
}
.metric-label { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); }

.scroll-hint {
  position: absolute; right: 44px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 5;
}
.scroll-hint span {
  font-size: 9px; letter-spacing: .25em; writing-mode: vertical-rl;
  color: var(--text-dim); text-transform: uppercase;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--green-neon), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%,100% { opacity: .3; }
  50%     { opacity: 1;  }
}

/* ── TICKER ──────────────────────────────────────────── */
.stats-bar {
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center;
  height: 54px; overflow: hidden;
}
.ticker-wrap { display: flex; animation: ticker 28s linear infinite; white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 36px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim);
  border-right: 1px solid var(--glass-border);
}
.ticker-item .dot {
  width: 5px; height: 5px; background: var(--green-neon);
  border-radius: 50%; box-shadow: 0 0 6px var(--green-neon);
}
.ticker-item .val { color: var(--green-neon); font-weight: 500; }

/* ── SECTION BASE ────────────────────────────────────── */
.section-label {
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--green-neon); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--green-neon); }

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 700; color: var(--text);
  margin-bottom: 56px; max-width: 520px; line-height: 1.15;
}
.section-title em { font-style: normal; color: var(--green-neon); text-shadow: 0 0 28px rgba(0,255,200,.4); }

/* ── ABOUT ───────────────────────────────────────────── */
#about {
  padding: 130px 6vw;
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
}

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

.about-text p {
  font-size: 13px; font-weight: 300; line-height: 1.9;
  color: var(--text-dim); margin-bottom: 20px;
}
.about-text p strong { color: var(--text-mid); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  margin-top: 40px;
}
.about-stat {
  background: var(--bg2);
  padding: 28px 24px;
  transition: background .3s;
}
.about-stat:hover { background: var(--glass-hover); }
.about-stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 28px; font-weight: 700; color: var(--green-neon);
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim);
}

.about-profile {
  position: relative;
}
.profile-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green-neon), var(--cyan), var(--gold));
}
.profile-avatar {
  width: 72px; height: 72px;
  border: 2px solid var(--glass-border);
  background: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
.profile-avatar svg { color: var(--green-neon); }
.profile-avatar::after {
  content: '●';
  position: absolute; bottom: -2px; right: -2px;
  width: 14px; height: 14px;
  background: var(--green-neon);
  border-radius: 50%;
  font-size: 6px; color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.profile-name {
  font-family: 'Orbitron', monospace;
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; letter-spacing: .05em;
}
.profile-role {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-neon); margin-bottom: 24px;
}
.profile-bio {
  font-size: 12px; font-weight: 300; line-height: 1.8;
  color: var(--text-dim); margin-bottom: 28px;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--glass-border); padding: 5px 12px;
  background: var(--glass); transition: all .2s;
}
.tag:hover { color: var(--green-neon); border-color: rgba(0,255,200,.3); }

/* ── TECHNOLOGIES ────────────────────────────────────── */
#technologies {
  padding: 130px 6vw;
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  margin-bottom: 64px;
}

.tech-card {
  background: var(--bg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
  cursor: default;
}
.tech-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green-neon);
  transition: width .4s cubic-bezier(.16,1,.3,1);
}
.tech-card:hover { background: var(--glass-hover); }
.tech-card:hover::before { width: 100%; }

.tech-card-category {
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--green-neon); margin-bottom: 14px; opacity: .7;
}
.tech-card-name {
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 10px; letter-spacing: .04em;
}
.tech-card-desc {
  font-size: 11px; font-weight: 300; line-height: 1.7; color: var(--text-dim);
}
.tech-card-level {
  margin-top: 18px;
  display: flex; align-items: center; gap: 4px;
}
.level-bar {
  height: 3px; flex: 1;
  background: var(--green-dim);
  position: relative; overflow: hidden;
}
.level-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--green-neon);
  width: 0;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 6px var(--green-neon);
}
.level-label {
  font-size: 8px; letter-spacing: .15em; color: var(--text-dim); white-space: nowrap;
}

/* Architecture diagram section */
.arch-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--glass-border);
}

.arch-diagram {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.arch-diagram::before {
  content: 'SYSTEM ARCHITECTURE';
  position: absolute; top: 16px; left: 16px;
  font-size: 9px; letter-spacing: .3em; color: var(--green-neon); opacity: .6;
}

/* ── CONTACT ─────────────────────────────────────────── */
#contact {
  padding: 130px 6vw;
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
}

.form-field {
  display: flex; flex-direction: column; gap: 8px;
}
.form-label {
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-dim);
}
.form-input, .form-textarea {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 300;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 14px 16px;
  outline: none;
  transition: border-color .25s, background .25s;
  resize: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(0,255,200,.4);
  background: rgba(0,255,200,.06);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 140px; }

.form-submit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bg); background: var(--green-neon);
  border: none; padding: 16px 36px;
  cursor: none; font-weight: 500;
  clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%);
  align-self: flex-start;
  transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--gold); transform: scale(1.03); }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 28px;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: border-color .3s;
}
.contact-item:hover { border-color: rgba(0,255,200,.25); }
.contact-icon { color: var(--green-neon); flex-shrink: 0; margin-top: 2px; }
.contact-item-label {
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 6px;
}
.contact-item-val {
  font-size: 13px; font-weight: 300; color: var(--text);
  text-decoration: none; transition: color .2s;
}
.contact-item-val:hover { color: var(--green-neon); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  padding: 44px 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900; font-size: 15px; letter-spacing: .28em;
  color: var(--green-neon); text-shadow: 0 0 20px rgba(0,255,200,.4);
  text-decoration: none;
}
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: 10px; letter-spacing: .15em; color: var(--text-dim); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; transition: color .2s; cursor: none;
}
.footer-links a:hover { color: var(--green-neon); }

/* ── PROJECTS BLOG PAGE ──────────────────────────────── */
.page-hero {
  padding: 160px 6vw 80px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero .grid-overlay { position: absolute; inset: 0; }

.page-hero-content { position: relative; z-index: 2; }

.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color .2s; margin-bottom: 40px; cursor: none;
}
.back-link svg { transition: transform .2s; }
.back-link:hover { color: var(--green-neon); }
.back-link:hover svg { transform: translateX(-4px); }

.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 900; line-height: .95; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.page-title .t1 { color: var(--text); display: block; }
.page-title .t2 { color: var(--green-neon); display: block; text-shadow: 0 0 40px rgba(0,255,200,.45); }

.page-sub {
  font-size: 13px; font-weight: 300; line-height: 1.8; color: var(--text-dim);
  max-width: 480px; border-left: 2px solid var(--green-dim); padding-left: 16px;
}

/* Blog grid */
.blog-section { padding: 90px 6vw 130px; background: var(--bg2); }

.blog-filters {
  display: flex; gap: 12px; margin-bottom: 52px; flex-wrap: wrap;
}
.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim); background: transparent;
  border: 1px solid var(--glass-border); padding: 8px 18px;
  cursor: none; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--green-neon); border-color: rgba(0,255,200,.35); background: var(--glass);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--glass-border);
  border: 1px solid var(--glass-border);
}

.blog-card {
  background: var(--bg2);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: background .3s;
  cursor: none;
}
.blog-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 0; height: 3px;
  background: var(--green-neon);
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.blog-card:hover { background: var(--glass-hover); }
.blog-card:hover::after { width: 100%; }

.blog-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.blog-card-tag {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green-neon); background: rgba(0,255,200,.08);
  border: 1px solid rgba(0,255,200,.15); padding: 4px 10px;
}
.blog-card-date { font-size: 9px; letter-spacing: .15em; color: var(--text-dim); }

.blog-card-title {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 600; color: var(--text);
  letter-spacing: .03em; line-height: 1.4; margin-bottom: 14px;
}
.blog-card-excerpt {
  font-size: 11px; font-weight: 300; line-height: 1.8;
  color: var(--text-dim); flex: 1; margin-bottom: 28px;
}
.blog-card-link {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green-neon); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s; cursor: none;
}
.blog-card-link:hover { gap: 14px; }

/* Featured card */
.blog-card.featured {
  grid-column: span 2;
}
.blog-card.featured .blog-card-title {
  font-size: 18px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .arch-section { grid-template-columns: 1fr; gap: 48px; }
  .arch-section { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card.featured { grid-column: span 2; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }

  /* ── HERO mobile ── */
  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 100svh;
    padding-bottom: 100px;
  }
  .hero-content {
    padding: 0 24px;
    position: relative;
    z-index: 5;
    max-width: 100%;
  }
  .hero-title { font-size: clamp(38px, 11vw, 58px); }

  /* Leaf becomes a very dim top-of-screen background watermark */
  .leaf-container {
    position: absolute;
    right: auto;
    left: 50%;
    top: 4%;
    transform: translateX(-30%);
    width: 115vw;
    max-width: none;
    opacity: 0;
    animation: leafRevealMobile 2s cubic-bezier(.16,1,.3,1) .5s forwards;
    z-index: 1;
  }
  @keyframes leafRevealMobile {
    from { opacity: 0; }
    to   { opacity: 0.15; }
  }
  .leaf-svg {
    filter: drop-shadow(0 0 16px rgba(0,255,200,.08));
  }

  .hero-metrics {
    position: relative;
    bottom: auto; left: auto;
    padding: 0 24px;
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 24px;
    animation: slideUp 1.2s ease 1.8s forwards;
  }
  .scroll-hint { display: none; }

  /* Sections */
  .tech-grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: span 1; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  #about, #technologies, #contact, .blog-section { padding: 80px 24px; }
  .about-grid, .contact-grid, .arch-section { grid-template-columns: 1fr; gap: 40px; }
}