/* === Typewriter — machine text === */
@keyframes cursorBlink {
  0%, 100% { border-color: var(--green-light); }
  50%       { border-color: transparent; }
}
.hero-statement {
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  font-size: .97rem;
  letter-spacing: .01em;
  border-right: 2px solid var(--green-light);
  animation: cursorBlink .65s step-end infinite;
}
.hero-statement.typed-done {
  border-right: none;
  animation: none;
}

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

:root {
  --green:       #34d399;
  --green-mid:   #22c55e;
  --green-light: #4ade80;
  --green-pale:  #052e1a;
  --green-glow:  rgba(52, 211, 153, 0.22);
  --cyan:        #22d3ee;
  --cyan-glow:   rgba(34, 211, 238, 0.18);
  --slate:       #e2e8f0;
  --slate-mid:   #94a3b8;
  --slate-light: #64748b;
  --bg:          #05070d;
  --bg-alt:      #0b101b;
  --bg-card:     #0f1623;
  --bg-elev:     #131c2c;
  --border:      #1e2a3f;
  --border-mid:  #2a3a55;
  --radius:      10px;
  --shadow:      0 1px 4px rgba(0,0,0,.45), 0 8px 28px rgba(0,0,0,.35);
  --font-body:   'Inter', system-ui, sans-serif;
  --font-head:   'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background:
    linear-gradient(rgba(5,7,13,0.86), rgba(5,7,13,0.92)),
    url('../../brg.png') center top / cover fixed,
    var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--green-light); }
ul { list-style: none; }
strong { color: var(--slate); }
em { color: var(--slate); }

/* === Layout === */
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* === Keyframe Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 var(--green-glow); }
  70%  { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 40px; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* === Navbar === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled {
  background: rgba(5, 7, 13, 0.92);
  box-shadow: 0 2px 24px rgba(52, 211, 153, .08);
}

.nav-container {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--green); letter-spacing: .05em;
  transition: opacity .2s, text-shadow .2s;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}
.nav-logo:hover { opacity: .85; text-decoration: none; text-shadow: 0 0 18px rgba(52, 211, 153, 0.6); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--slate-mid);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--green-light); text-decoration: none; border-bottom-color: var(--green-light); }
.nav-links a.active { color: var(--green); border-bottom-color: var(--green); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(5, 7, 13, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; font-size: 1rem; border-bottom: none; }
  .nav-links a.active { background: var(--green-pale); }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 10px 24px;
  border-radius: 6px; font-size: .9rem; font-weight: 600;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--green); color: #04110a;
  box-shadow: 0 0 0 1px rgba(52,211,153,.4), 0 8px 24px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-light); text-decoration: none; color: #04110a;
  transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(74,222,128,.6), 0 12px 32px var(--green-glow);
}
.btn-outline {
  border: 1.5px solid var(--green); color: var(--green); background: transparent;
}
.btn-outline:hover {
  background: rgba(52, 211, 153, 0.08); text-decoration: none;
  color: var(--green-light); border-color: var(--green-light);
  transform: translateY(-1px);
}

/* === Hero (home) === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse at top right, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(52, 211, 153, 0.10), transparent 55%),
    rgba(5, 7, 13, 0.55);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1040px;
  width: 100%;
}

.hero-photo {
  flex-shrink: 0;
  width: 320px; height: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12), 0 20px 60px rgba(52, 211, 153, 0.18);
  border: 2px solid var(--green-light);
  animation: pulseRing 2.8s ease-out infinite, fadeUp .7s ease both;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(.95) contrast(1.05);
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--slate); line-height: 1.15; margin-bottom: 8px;
  animation: fadeUp .7s .1s ease both;
}
.hero-title {
  font-size: 1.1rem; font-weight: 600;
  background: linear-gradient(90deg, var(--green-light), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  animation: fadeUp .7s .2s ease both;
}
.hero-affiliation {
  font-size: .95rem; color: var(--slate-mid); margin-bottom: 24px;
  animation: fadeUp .7s .3s ease both;
}
.hero-statement {
  color: var(--slate);
  margin-bottom: 32px; font-size: .97rem;
  animation: fadeUp .7s .4s ease both;
}
.hero-links {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp .7s .5s ease both;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .hero-photo {
    width: 220px; height: 260px;
  }
  .hero-text { text-align: center; }
  .hero-links { justify-content: center; }
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: 100px 0 52px;
  background:
    radial-gradient(ellipse at top right, rgba(34, 211, 238, 0.06), transparent 60%),
    rgba(5, 7, 13, 0.55);
  border-bottom: 1px solid var(--border);
}
.page-breadcrumb { font-size: .8rem; color: var(--slate-light); margin-bottom: 12px; }
.page-breadcrumb a { color: var(--slate-light); transition: color .15s; }
.page-breadcrumb a:hover { color: var(--green); }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--slate); margin-bottom: 12px;
  animation: fadeUp .6s ease both;
}
.page-hero-sub {
  font-size: 1rem; color: var(--slate-mid); max-width: 620px;
  animation: fadeUp .6s .1s ease both;
}

/* === Sections === */
.page-section { padding: 72px 0; background: rgba(5, 7, 13, 0.55); }
.section-alt { background: rgba(11, 16, 27, 0.70); }

.section-title {
  font-family: var(--font-head);
  font-size: 1.75rem; color: var(--slate);
  margin-bottom: 16px; position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
  animation: underlineGrow .6s ease both;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}
.section-lead { color: var(--slate-mid); max-width: 700px; margin-bottom: 48px; }

/* === Nav Cards (home page) === */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 32px;
}
.nav-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  color: inherit;
}
.nav-card:hover {
  transform: translateY(-5px);
  background: var(--bg-elev);
  box-shadow: 0 16px 40px rgba(52, 211, 153, 0.12);
  border-color: var(--green-mid);
  text-decoration: none;
}
.nav-card-icon {
  font-size: 2rem; color: var(--green); margin-bottom: 12px;
  display: inline-block;
  transition: transform .3s, text-shadow .3s;
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.4);
}
.nav-card:hover .nav-card-icon { transform: scale(1.15); text-shadow: 0 0 24px rgba(52, 211, 153, 0.7); }
.nav-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--slate); }
.nav-card p  { font-size: .875rem; color: var(--slate-mid); line-height: 1.6; flex: 1; }
.nav-card-link { display: block; margin-top: 16px; font-size: .8rem; font-weight: 600; color: var(--green); }

/* === Research Cards === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-5px); background: var(--bg-elev);
  box-shadow: 0 16px 40px rgba(52, 211, 153, 0.12);
  border-color: var(--green-mid);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  font-size: 2rem; color: var(--green); margin-bottom: 12px;
  font-family: 'Times New Roman', serif; font-weight: bold;
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.4);
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--slate); }
.card p  { font-size: .875rem; color: var(--slate-mid); line-height: 1.6; }

/* === Research Focus Block === */
.focus-block {
  display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start;
}
@media (max-width: 720px) { .focus-block { grid-template-columns: 1fr; } }
.focus-text p { color: var(--slate-mid); margin-bottom: 16px; font-size: .95rem; }
.focus-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.focus-card:hover {
  border-color: var(--green-mid); background: var(--bg-elev);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.08);
}
.focus-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-light); }
.focus-value { font-size: .9rem; font-weight: 600; color: var(--slate); }
.focus-active { color: var(--green) !important; }

/* === Full Timeline (research page) === */
.timeline-full { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.timeline-full-item {
  display: grid; grid-template-columns: 100px 20px 1fr;
  gap: 0 20px; padding-bottom: 36px; position: relative;
}
.tf-left { text-align: right; padding-top: 4px; }
.tf-date { font-size: .78rem; font-weight: 700; color: var(--green); }
.tf-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15), 0 0 18px rgba(52, 211, 153, 0.5);
  position: relative; z-index: 1;
  transition: transform .2s, box-shadow .2s;
}
.timeline-full-item:hover .tf-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.18), 0 0 24px rgba(52, 211, 153, 0.7);
}
.timeline-full-item:not(:last-child) .tf-dot::after {
  content: ''; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: calc(100% + 24px);
  background: var(--border-mid);
}
.tf-right { padding-top: 0; }
.tf-right h3 { font-size: 1rem; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.tf-org { font-size: .875rem; color: var(--green); margin-bottom: 6px; }
.tf-desc { font-size: .85rem; color: var(--slate-mid); }

/* === Education List (home page) === */
.edu-list { display: flex; flex-direction: column; }
.edu-item {
  padding: 28px 0; border-bottom: 1px solid var(--border);
  transition: padding-left .2s;
}
.edu-item:last-child { border-bottom: none; }
.edu-item:hover { padding-left: 6px; }
.edu-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.edu-date { font-size: .8rem; color: var(--slate-light); }
.edu-tag {
  font-size: .7rem; font-weight: 700;
  background: rgba(52, 211, 153, 0.12); color: var(--green-light);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.edu-item h3 { font-size: 1.05rem; font-weight: 600; color: var(--slate); margin-bottom: 2px; }
.edu-org { font-size: .9rem; color: var(--green); margin-bottom: 6px; }
.edu-detail { font-size: .875rem; color: var(--slate-mid); }

/* === Experience Items === */
.exp-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.exp-item:last-child { border-bottom: none; }
.exp-featured {
  padding: 28px; margin-bottom: 20px; border-bottom: none;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  border-left: 4px solid transparent;
}
.exp-featured:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 36px rgba(52, 211, 153, 0.12);
  border-left-color: var(--green);
}
.exp-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.exp-date { font-size: .8rem; color: var(--slate-light); }
.exp-tag {
  font-size: .7rem; font-weight: 700;
  background: rgba(52, 211, 153, 0.12); color: var(--green-light);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.exp-item h3, .exp-item h4 { font-size: 1.05rem; font-weight: 600; color: var(--slate); margin-bottom: 2px; }
.exp-org { font-size: .875rem; color: var(--green); margin-bottom: 10px; }
.exp-item ul { padding-left: 16px; list-style: disc; }
.exp-item li { font-size: .875rem; color: var(--slate-mid); margin-bottom: 5px; }

/* === Publications Page === */
.pub-list { margin-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.pub-item-full {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.pub-item-full:hover {
  transform: translateY(-3px); background: var(--bg-elev);
  box-shadow: 0 14px 36px rgba(52, 211, 153, 0.12);
}
.pub-number {
  font-family: var(--font-head); font-size: 2.5rem;
  color: rgba(52, 211, 153, 0.25); font-weight: 700; line-height: 1; flex-shrink: 0;
}
.pub-title { font-size: 1.05rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.pub-authors { font-size: .875rem; color: var(--slate-mid); margin-bottom: 4px; }
.pub-year { font-size: .8rem; color: var(--slate-light); margin-bottom: 10px; }
.pub-abstract { font-size: .875rem; color: var(--slate-mid); line-height: 1.65; }

/* === Awards Grid === */
.awards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 32px;
}
.award-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.award-card:hover {
  transform: translateY(-4px); background: var(--bg-elev);
  border-color: var(--green-mid);
  box-shadow: 0 14px 36px rgba(52, 211, 153, 0.12);
}
.award-year {
  display: inline-block; font-size: .75rem; font-weight: 700;
  background: var(--green); color: #04110a;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
.award-card h3 { font-size: .95rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.award-card p  { font-size: .8rem; color: var(--slate-mid); }

/* === Skills Full === */
.skills-full {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px;
}
@media (max-width: 640px) { .skills-full { grid-template-columns: 1fr; } }
.skills-col-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--slate-mid); margin-bottom: 12px;
}
.skills-detail-list { display: flex; flex-direction: column; gap: 8px; }
.skills-detail-list li {
  font-size: .9rem; color: var(--slate);
  padding: 8px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  border-left: 3px solid var(--green);
  transition: background .2s, transform .2s, border-left-color .2s;
}
.skills-detail-list li:hover {
  background: var(--bg-elev);
  transform: translateX(4px);
  border-left-color: var(--cyan);
}

/* === Memberships Grid === */
.memberships-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-top: 32px;
}
.membership-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.membership-card:hover {
  transform: translateY(-3px); background: var(--bg-elev);
  box-shadow: 0 12px 30px rgba(52, 211, 153, 0.12);
}
.membership-abbr {
  font-size: .75rem; font-weight: 800;
  background: rgba(52, 211, 153, 0.12); color: var(--green-light);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 8px; border-radius: 8px; text-align: center;
  min-width: 54px; letter-spacing: .03em;
  transition: background .2s, color .2s;
}
.membership-card:hover .membership-abbr { background: var(--green); color: #04110a; }
.membership-card h3 { font-size: .9rem; font-weight: 600; color: var(--slate); margin-bottom: 2px; }
.membership-card p  { font-size: .8rem; color: var(--slate-mid); }

/* === Contact Page === */
.contact-page-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 720px) { .contact-page-layout { grid-template-columns: 1fr; gap: 40px; } }

.contact-detail-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px;
  color: inherit; background: var(--bg-card); box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
  word-break: break-all;
}
.contact-detail-item:hover {
  border-color: var(--green-mid); background: var(--bg-elev);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.10), 0 12px 28px rgba(52, 211, 153, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
}

.cd-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(52, 211, 153, 0.12); color: var(--green-light);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}
.contact-detail-item:hover .cd-icon {
  background: var(--green); color: #04110a;
  transform: rotate(10deg) scale(1.08);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.5);
}
.cd-body { flex: 1; min-width: 0; }
.cd-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #04110a;
  background: linear-gradient(90deg, var(--green-light), var(--cyan));
  padding: 2px 10px; border-radius: 999px;
  margin-bottom: 6px;
}
.cd-value {
  display: block; font-size: .9rem; font-weight: 500; color: var(--slate);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  word-break: break-all;
}

.contact-note p { color: var(--slate-mid); margin-bottom: 16px; font-size: .95rem; }
.contact-topics { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; padding-left: 16px; list-style: disc; }
.contact-topics li { font-size: .9rem; color: var(--slate-mid); }

/* === Projects Page === */
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 48px;
  transition: box-shadow .3s, border-color .3s;
}
.project-card:hover {
  box-shadow: 0 18px 50px rgba(52, 211, 153, 0.15);
  border-color: var(--green-mid);
}

.project-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(34, 211, 238, 0.04), transparent);
}
.project-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--green); color: #04110a;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.4);
}
.project-badge-purple {
  background: linear-gradient(90deg, #a78bfa, var(--cyan));
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.45);
  color: #0c0820;
}
.project-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--slate); line-height: 1.3; margin-bottom: 10px;
}
.project-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .85rem;
}
.project-role {
  font-weight: 600; color: var(--green-light);
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 10px; border-radius: 999px;
}
.project-collab { color: var(--slate-mid); }

.project-body { padding: 32px 36px; }
.project-section { margin-bottom: 32px; }
.project-section h3 {
  font-size: 1rem; font-weight: 700; color: var(--slate);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 2px solid rgba(52, 211, 153, 0.18);
}
.project-section h4 {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--slate-mid); margin-bottom: 8px;
}
.project-section p { font-size: .9rem; color: var(--slate-mid); line-height: 1.7; }
.project-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 12px;
}
@media (max-width: 720px) { .project-cols { grid-template-columns: 1fr; } }

.project-list { padding-left: 16px; list-style: disc; margin-top: 8px; }
.project-list li { font-size: .875rem; color: var(--slate-mid); margin-bottom: 6px; line-height: 1.6; }

/* Status grid */
.project-status-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px;
}
@media (max-width: 640px) { .project-status-grid { grid-template-columns: 1fr; } }
.status-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.status-item strong { display: block; font-size: .875rem; color: var(--slate); margin-bottom: 2px; }
.status-item p { font-size: .8rem; color: var(--slate-mid); }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.status-done { background: rgba(52, 211, 153, 0.06); border-color: rgba(52, 211, 153, 0.25); }
.status-done .status-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.status-progress { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.30); }
.status-progress .status-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

/* SUM pillars */
.sum-pillar {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .25s, box-shadow .25s;
}
.sum-pillar:hover {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15);
}
.sum-pillar-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sum-icon {
  font-size: 1.4rem; color: var(--green);
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}
.sum-pillar h4 { font-size: 1rem; font-weight: 700; color: var(--slate); }
.sum-pillar p  { font-size: .875rem; color: var(--slate-mid); margin-bottom: 12px; line-height: 1.65; }
.sum-demo-note {
  margin-top: 14px; font-size: .8rem; color: var(--green-light);
  background: rgba(52, 211, 153, 0.08); padding: 8px 12px; border-radius: 6px;
  font-style: italic;
  border: 1px solid rgba(52, 211, 153, 0.20);
}

/* Phase track */
.phase-track {
  display: flex; gap: 0; margin-top: 16px; flex-wrap: wrap;
}
.phase-item {
  flex: 1; min-width: 120px; padding: 16px 14px;
  border: 1px solid var(--border); border-right: none;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.phase-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.phase-item:last-child  { border-right: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
.phase-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
}
.phase-done { background: rgba(52, 211, 153, 0.08); }
.phase-done .phase-num { background: var(--green); color: #04110a; }
.phase-done strong { color: var(--green-light); }
.phase-planned { background: rgba(167, 139, 250, 0.06); }
.phase-planned .phase-num { background: #a78bfa; color: #0c0820; }
.phase-planned strong { color: #c4b5fd; }
.phase-item strong { font-size: .8rem; display: block; }
.phase-item p { font-size: .72rem; color: var(--slate-mid); line-height: 1.4; }
.phase-note {
  font-size: .8rem; color: var(--slate-mid); margin-top: 14px; font-style: italic;
}

/* Confidential notice */
.project-confidential {
  display: flex; align-items: center; gap: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.30);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 32px;
}
.confidential-icon { font-size: 1.1rem; flex-shrink: 0; }
.project-confidential p { font-size: .9rem; color: #fbbf24; font-style: italic; }

/* Project tags */
.project-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.project-tags span {
  font-size: .75rem; font-weight: 600;
  background: rgba(52, 211, 153, 0.10);
  color: var(--green-light);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 3px 10px; border-radius: 999px;
}

/* === Footer === */
.footer {
  text-align: center; padding: 24px;
  font-size: .8rem; color: var(--slate-light);
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 13, 0.65);
}

/* === Scrollbar (webkit) === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-mid); border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* === Selection === */
::selection { background: rgba(52, 211, 153, 0.30); color: #fff; }
