/* ── 90s Vintage Pastel + Emerald Portfolio ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --mint:        #d4e8d0;
  --mint-light:  #e8f4e5;
  --mint-pale:   #f2f9f0;
  --emerald:     #1a5c2a;
  --emerald-mid: #2d7a3d;
  --emerald-dark:#0f3a1a;
  --emerald-deep:#071f0d;
  --cream:       #f5f0e8;
  --cream-dark:  #e8e0d0;
  --brown:       #5c4a2a;
  --text-dark:   #1a2a1a;
  --text-mid:    #2d4a2d;
  --text-muted:  #5a7a5a;

  --font-type:   'Special Elite', 'Courier New', monospace;
  --font-mono:   'Courier Prime', 'Courier New', monospace;
  --font-serif:  'Playfair Display', Georgia, serif;

  --accent:        #4a9e4a;
  --accent-bright: #6abf6a;
  --green-light:   #8fb88f;
  --border-heavy: 3px solid var(--emerald-dark);
  --border-mid:   2px solid var(--emerald);
  --border-thin:  1px solid var(--emerald-mid);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--mint-pale);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* subtle vintage paper grain */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212,232,208,0.3) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23f2f9f0'/%3E%3Ccircle cx='1' cy='1' r='0.4' fill='%23c8ddc4' opacity='0.4'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
p { margin-bottom: 0.9em; }
ul { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
nav {
  background: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  border-bottom: var(--border-heavy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-initials {
  font-family: var(--font-type);
  font-size: 1.1rem;
  color: var(--mint);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--mint-light);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  position: relative;
  transition: color 0.15s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--mint);
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--mint); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── HOME PAGE — matches mockup exactly ─────────────────────────────────── */
.home-page {
  background: var(--mint-light);
  display: flex;
  flex-direction: column;
  border: var(--border-heavy);
  margin: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  animation: revealUp 0.5s ease both;
}

/* HERO ROW: name | vertical divider | photo */
.hero-panel {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  min-height: 320px;
  padding: 2.5rem 3rem;
  gap: 0;
  align-items: center;
}

.hero-name {
  padding-right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.hero-name h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1.0;
  letter-spacing: -0.02em;
  width: 100%;
}

p.hero-tagline, .hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-mid);
  letter-spacing: 0.14em;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-style: italic;
  display: block;
  width: 100%;
  clear: both;
}

.hero-divider-v {
  width: 3px;
  background: var(--emerald-dark);
  align-self: stretch;
  margin: 0;
}

.hero-photo {
  padding-left: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#portrait-canvas {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 0 !important;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: saturate(0.75) contrast(1.1);
  transition: filter 0.8s ease;
  clip-path: inset(0);
}

#portrait-canvas.resolved {
  filter: saturate(1) contrast(1);
  image-rendering: auto;
}

.photo-fallback {
  display: none;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--emerald);
  font-style: italic;
}

.hero-divider-h {
  height: 3px;
  background: var(--emerald-dark);
  width: 100%;
}

/* ABOUT SECTION */


.about-section {
  background: var(--emerald-dark);
  padding: 2.5rem 3rem 3rem;
  display: flex;
  flex-direction: column;
}

.about-label {
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-bright);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-label::before,
.about-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--emerald-mid);
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--mint-light);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.about-divider-v { display: none; }

.about-body p {
  font-size: 0.85rem;
  line-height: 1.9;
}

.about-body p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

@media (max-width: 800px) {
  .about-body { grid-template-columns: 1fr; gap: 1rem; }
  .about-quote { font-size: 1rem; }
  .about-section { padding: 2rem 1.5rem; }
}

/* Pixel shimmer on photo */
@keyframes pixelShimmer {
  0%   { box-shadow: none; }
  50%  { box-shadow: none; }
  100% { box-shadow: none; }
}
.hero-photo { animation: pixelShimmer 1.8s ease-in-out 3; }

/* CRT scan lines */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(15,58,26,0.03) 3px, rgba(15,58,26,0.03) 4px
  );
  pointer-events: none;
  max-width: 380px;
  margin: auto;
}

@media (max-width: 800px) {
  .home-page { margin: 0.75rem; }
  .hero-panel { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1.5rem; }
  .hero-divider-v { display: none; }
  .hero-name { padding-right: 0; justify-content: center; text-align: center; }
  .hero-photo { padding-left: 0; }
  #portrait-canvas { max-width: 260px; }
  .about-section { padding: 2rem 1.5rem; }
}

/* removed */

.name-block h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 0;
  border: var(--border-heavy);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.photo-initials {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--emerald);
  font-style: italic;
}

.about-block h2 {
  font-family: var(--font-type);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--emerald);
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed var(--emerald-mid);
  padding-bottom: 0.3rem;
  text-transform: uppercase;
}

.about-block p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.65;
  text-align: justify;
  margin-bottom: 0.65em;
}

/* ── HOME RIGHT ─────────────────────────────────────────────────────────── */
.home-right {
  background: var(--mint-pale);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: revealRight 0.5s ease both;
}

/* Vintage ruled paper lines behind skill strip */
.skills-section {
  border: var(--border-mid);
  padding: 0.9rem 1rem;
  background: var(--cream);
  position: relative;
}

.skills-section::before {
  content: 'TECHNICAL SKILLS';
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  background: var(--cream);
  padding: 0 0.4rem;
  font-family: var(--font-type);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--emerald);
}

.skills-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.skills-strip span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-mid);
  padding: 0.15rem 0.55rem;
  background: var(--mint-light);
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.skills-strip span:hover {
  background: var(--emerald);
  color: var(--mint);
}

/* Stats row */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: var(--border-mid);
  background: var(--emerald);
}

.stat-item {
  background: var(--cream);
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--emerald-dark);
  line-height: 1;
  font-style: italic;
}

.stat-label {
  font-family: var(--font-type);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  display: block;
  text-transform: uppercase;
}

/* Timeline */
.timeline-section {
  border: var(--border-mid);
  background: var(--cream);
  position: relative;
}

.timeline-section::before {
  content: 'EXPERIENCE';
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  background: var(--cream);
  padding: 0 0.4rem;
  font-family: var(--font-type);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--emerald);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px dashed var(--emerald-mid);
}

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

.timeline-date {
  font-family: var(--font-type);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0.85rem 0.75rem;
  border-right: 1px dashed var(--emerald-mid);
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.timeline-content {
  padding: 0.85rem 1rem;
}

.timeline-content strong {
  font-family: var(--font-type);
  font-size: 0.8rem;
  color: var(--emerald-dark);
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.timeline-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── PAGE TITLE ─────────────────────────────────────────────────────────── */
.page-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: var(--emerald-dark);
  margin-bottom: 2rem;
  border-bottom: var(--border-heavy);
  padding-bottom: 0.75rem;
  animation: revealUp 0.5s ease both;
}

/* ── PROJECTS ────────────────────────────────────────────────────────────── */
.projects-layout {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

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

.project-card {
  background: var(--mint-light);
  border: var(--border-mid);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  animation: revealUp 0.5s ease both;
  position: relative;
}

/* Vintage corner decoration */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--emerald) transparent transparent;
  z-index: 1;
}

.project-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 4px 4px 0 var(--emerald-dark);
}

.project-img {
  height: 140px;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-mid);
}

/* Vintage halftone-ish dot pattern */
.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,232,208,0.18) 1px, transparent 1px);
  background-size: 8px 8px;
}

.project-icon {
  font-size: 2.8rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.project-tags {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--emerald-dark);
  padding: 0.3rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 2;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--mint);
  letter-spacing: 0.06em;
}

.tag + .tag::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--emerald-mid);
}

.project-desc {
  padding: 1rem 1.1rem 1.1rem;
}

.project-desc h3 {
  font-family: var(--font-type);
  font-size: 0.9rem;
  color: var(--emerald-dark);
  margin-bottom: 0.45rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.project-desc p {
  font-size: 0.77rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.project-link {
  font-family: var(--font-type);
  font-size: 0.72rem;
  color: var(--emerald);
  letter-spacing: 0.06em;
  border-bottom: 1px dashed var(--emerald-mid);
  transition: color 0.15s;
}

.project-link:hover { color: var(--emerald-dark); }

/* ── BLOG LIST ───────────────────────────────────────────────────────────── */
.blog-layout {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.blog-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--emerald-mid);
  transition: all 0.15s;
  cursor: pointer;
}

.blog-row:first-child { border-top: var(--border-mid); }
.blog-row:hover { background: var(--cream); padding-left: 0.75rem; margin: 0 -0.75rem; padding-right: 0.75rem; }

.blog-thumb {
  width: 90px;
  height: 65px;
  background: var(--emerald);
  border: var(--border-thin);
  flex-shrink: 0;
  align-self: center;
  position: relative;
  overflow: hidden;
}

.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,232,208,0.2) 1px, transparent 1px);
  background-size: 6px 6px;
}

.blog-row-content h2 {
  font-family: var(--font-type);
  font-size: 0.95rem;
  color: var(--emerald-dark);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.blog-row-content p {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  font-style: italic;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.blog-tag {
  font-family: var(--font-type);
  font-size: 0.62rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--emerald-mid);
  color: var(--emerald);
  letter-spacing: 0.06em;
  background: var(--mint-light);
}

.blog-new-post {
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--emerald-mid);
  background: var(--cream);
  text-align: center;
}

.mono-small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.mono-small code {
  background: var(--mint);
  padding: 0.1rem 0.35rem;
  color: var(--emerald-dark);
  font-family: var(--font-mono);
}

/* ── BLOG POST ───────────────────────────────────────────────────────────── */
.post-layout {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 2rem;
  border-bottom: 1px dashed var(--emerald-mid);
  transition: color 0.15s;
}

.back-link:hover { color: var(--emerald-dark); }

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border-mid);
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--emerald-dark);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.post-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-mono);
  margin: 0;
}

.post-body {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-mid);
  font-family: var(--font-mono);
}

.post-body h2 {
  font-family: var(--font-type);
  font-size: 1rem;
  color: var(--emerald-dark);
  margin: 2rem 0 0.65rem;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--emerald);
  padding-left: 0.75rem;
}

.post-body p { margin-bottom: 1em; }
.post-body ul { margin-bottom: 1em; }
.post-body li { color: var(--text-mid); }
.post-body strong { color: var(--emerald-dark); font-weight: 700; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--emerald-dark);
  border-top: var(--border-heavy);
  padding: 1.1rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner strong {
  display: block;
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--mint);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mint-light);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--mint); }

.resume-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dashed;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.10s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.20s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.30s; }
.project-card:nth-child(7) { animation-delay: 0.35s; }
.project-card:nth-child(8) { animation-delay: 0.40s; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-left { border-right: none; border-bottom: var(--border-heavy); }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-layout, .blog-layout, .post-layout { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
  nav { padding: 0.6rem 1rem; }
  .name-block h1 { font-size: 2rem; }
  .quick-stats { grid-template-columns: repeat(3, 1fr); }
  .blog-row { grid-template-columns: 1fr; }
  .blog-thumb { display: none; }
  .footer-links { gap: 0.75rem; }
  .home-right { padding: 1.5rem; }
}




/* ── EXPERIENCE PAGE ────────────────────────────────────────────────────── */
.exp-layout {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.exp-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.exp-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.exp-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--emerald-dark);
  background: var(--mint-light);
}

.exp-legend-sq {
  width: 10px; height: 10px;
  border: 2px solid var(--emerald-mid);
  background: var(--mint);
}

.vt { position: relative; }

.spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: var(--emerald-dark);
  transform: translateX(-50%);
  z-index: 1;
}

.spine::after {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 7px 12px 7px;
  border-color: transparent transparent var(--emerald-dark) transparent;
}

.vt-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  margin-bottom: 1.75rem;
  position: relative;
}

.vt-dot-col {
  grid-column: 2;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 2;
}

.vt-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mint-light);
  border: 3px solid var(--emerald-dark);
  cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}

.vt-dot.edu {
  border-radius: 0;
  border-color: var(--emerald-mid);
  background: var(--mint);
}

.vt-dot:hover, .vt-dot.active {
  background: var(--emerald-dark);
  transform: scale(1.25);
}

.vt-dot.edu:hover, .vt-dot.edu.active {
  background: var(--emerald-mid);
}

.vt-card { cursor: pointer; }
.vt-card.left  { grid-column: 1; text-align: right; padding-right: 20px; }
.vt-card.right { grid-column: 3; text-align: left;  padding-left: 20px; }
.vt-empty-left  { grid-column: 1; }
.vt-empty-right { grid-column: 3; }

.vt-date {
  font-family: var(--font-type);
  font-size: 11px;
  color: var(--emerald-mid);
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.vt-title {
  font-family: var(--font-type);
  font-size: 13px;
  color: var(--emerald-deep);
  line-height: 1.3;
  margin-bottom: 2px;
}

.vt-company {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.vt-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, padding .3s ease;
  background: #1a5c2a;
  color: #ffffff;
  border-left: 3px solid #1a5c2a;
  padding: 0 1rem;
  margin-top: 0;
  text-align: left;
}

.vt-card.left .vt-body {
  border-left: none;
  border-right: 3px solid var(--emerald-mid);
}

.vt-body.open { max-height: 500px; padding: 1rem; margin-top: 8px; }

.vt-body ul { list-style: none; padding: 0; margin: 0 0 .75rem; }

.vt-body li {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: #ffffff;
  line-height: 1.75;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: .25rem;
}

.vt-body li::before { content: "—"; position: absolute; left: 0; color: #ffffff; }

.vt-tags { display: flex; flex-wrap: wrap; gap: .3rem; }

.vt-tags span {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-mid);
  padding: .1rem .4rem;
  letter-spacing: .5px;
  background: var(--mint-light);
}

@media (max-width: 700px) {
  .exp-layout { padding: 2rem 1rem; }
  .vt-row { grid-template-columns: 1fr 28px 1fr; }
  .vt-card.left { padding-right: 12px; }
  .vt-card.right { padding-left: 12px; }
  .vt-title { font-size: 11px; }
  .vt-company { font-size: 10px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN — Full breakpoint system
   Breakpoints: 1200px (large), 900px (tablet), 600px (mobile), 400px (small)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── GLOBAL ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

img, canvas, video { max-width: 100%; height: auto; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0.6rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav-initials { font-size: 0.95rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.75rem; }
}

@media (max-width: 400px) {
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.04em; }
}

/* ── HOME PAGE ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-name h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
  #portrait-canvas { max-width: 320px; }
}

@media (max-width: 800px) {
  .home-page { margin: 0.75rem; border-radius: 12px; }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-divider-v { display: none; }

  .hero-name {
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .hero-name h1 { font-size: clamp(2rem, 8vw, 3.5rem); text-align: center; }

  p.hero-tagline, .hero-tagline {
    text-align: center;
  }

  .hero-photo {
    padding-left: 0;
    justify-content: center;
  }

  #portrait-canvas { max-width: 260px; }

  .about-section { padding: 2rem 1.5rem; }
  .about-body { grid-template-columns: 1fr; gap: 0; }
  .about-quote { font-size: 1rem; }
}

@media (max-width: 500px) {
  .home-page { margin: 0.5rem; }
  .hero-panel { padding: 1.5rem 1rem; }
  .hero-name h1 { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  #portrait-canvas { max-width: 200px; }
  .about-section { padding: 1.5rem 1rem; }
  .about-quote { font-size: 0.9rem; padding-left: 0.75rem; }
  .about-body p { font-size: 0.78rem; }
}

/* ── PROJECTS PAGE ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .projects-layout { padding: 2rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  .projects-layout { padding: 1.5rem 1rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .page-title { font-size: 2rem; margin-bottom: 1.25rem; }
  .project-desc h3 { font-size: 0.9rem; }
  .project-desc p { font-size: 0.78rem; }
}

/* ── BLOG PAGE ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .blog-layout { padding: 1.5rem 1rem; }
  .blog-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.1rem 0; }
  .blog-thumb { display: none; }
  .blog-row-content h2 { font-size: 0.9rem; }
  .blog-row-content p { font-size: 0.75rem; }
  .page-title { font-size: 2rem; }
}

/* ── BLOG POST ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .post-layout { padding: 1.5rem 1rem; }
  .post-header h1 { font-size: 1.5rem; }
  .post-subtitle { font-size: 0.82rem; }
  .post-body { font-size: 0.85rem; }
  .post-body h2 { font-size: 0.95rem; }
}

/* ── EXPERIENCE TIMELINE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .exp-layout { padding: 2rem 1.5rem; }

  /* Switch to single-column timeline on tablet */
  .vt-row {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto;
    margin-bottom: 1.25rem;
  }

  .vt-dot-col {
    grid-column: 1;
    grid-row: 1;
    padding-top: 5px;
  }

  /* All cards go to the right on mobile */
  .vt-card.left, .vt-card.right {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding-left: 16px;
    padding-right: 0;
  }

  .vt-card.left .vt-body {
    border-right: none;
    border-left: 3px solid var(--emerald-mid);
  }

  .vt-empty-left, .vt-empty-right { display: none; }

  /* Spine on the left */
  .spine {
    left: 14px;
    transform: none;
  }

  .spine::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .exp-legend { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 600px) {
  .exp-layout { padding: 1.5rem 1rem; }
  .vt-title { font-size: 12px; }
  .vt-company { font-size: 10px; }
  .vt-date { font-size: 10px; }
  .vt-body li { font-size: 0.72rem; }
  .vt-tags span { font-size: 0.55rem; }
  .page-title { font-size: 2rem; }
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  footer { padding: 1rem 1.25rem; }
  .footer-links { gap: 0.75rem; flex-direction: column; align-items: center; }
  .footer-links a { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .footer-links { gap: 0.5rem; }
  .footer-inner strong { font-size: 0.65rem; }
}
