/* =====================================================
   AAREZ ALI MEMON — style.css
   =====================================================
   TABLE OF CONTENTS
   1.  Theme tokens (colours, spacing)
   2.  Reset & base
   3.  Custom cursor
   4.  Scroll progress bar
   5.  Noise overlay
   6.  Page system
   7.  Navigation
   8.  Scroll reveal animations
   9.  Buttons
   10. Layout helpers
   11. Hero
   12. About
   13. Experience
   14. Projects
   15. Writing / Articles
   16. Blog index page
   17. Article reader page
   18. Skills
   19. Contact
   20. Footer
   21. Responsive / mobile
===================================================== */


/* =====================================================
   1. THEME TOKENS
   Change colours here — nowhere else needed.
===================================================== */
[data-theme="light"] {
  --bg:           #faf9f6;   /* page background */
  --bg2:          #f2f0eb;   /* subtle surface / hover */
  --ink:          #1a1a18;   /* primary text */
  --ink-mid:      #6b6b65;   /* body / secondary text */
  --ink-soft:     #b0afa8;   /* muted / meta text */
  --accent:       #2b5a3e;   /* green — primary brand colour */
  --accent-light: #e8f0ec;   /* green tint background */
  --rule:         #d8d6cf;   /* borders and dividers */
  --card-bg:      #ffffff;
  --nav-bg:       rgba(250, 249, 246, 0.88);
  --tag-bg:       #ede8df;
  --tag-ink:      #5a5853;
  --cursor-color: #1a1a18;
  --hero-ghost:   rgba(43, 90, 62, 0.06);
}

[data-theme="dark"] {
  --bg:           #161614;
  --bg2:          #1e1d1b;
  --ink:          #f0eee7;
  --ink-mid:      #9e9c95;
  --ink-soft:     #5a5956;
  --accent:       #72b893;
  --accent-light: #1a2e22;
  --rule:         #2e2d2a;
  --card-bg:      #1e1d1b;
  --nav-bg:       rgba(22, 22, 20, 0.88);
  --tag-bg:       #252420;
  --tag-ink:      #9e9c95;
  --cursor-color: #f0eee7;
  --hero-ghost:   rgba(114, 184, 147, 0.06);
}


/* =====================================================
   2. RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.35s, color 0.35s;
}

a { color: inherit; text-decoration: none; }

/* restore cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
  #cursor { display: none; }
}


/* =====================================================
   3. CUSTOM CURSOR
===================================================== */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}
#cursor-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cursor-color);
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
#cursor-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--cursor-color);
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.45;
}
body.cursor-hover #cursor-ring { width: 52px; height: 52px; opacity: 0.75; }
body.cursor-click #cursor-dot  { transform: translate(-50%, -50%) scale(0.5); }


/* =====================================================
   4. SCROLL PROGRESS BAR
===================================================== */
#progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.08s linear;
  pointer-events: none;
}


/* =====================================================
   5. NOISE OVERLAY
   Adds subtle texture to the background.
===================================================== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}


/* =====================================================
   6. PAGE SYSTEM
   JS shows/hides .page divs to simulate navigation.
===================================================== */
.page { display: none; }
.page.active { display: block; }


/* =====================================================
   7. NAVIGATION
===================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: var(--nav-bg);
  border-bottom: 0.5px solid var(--rule);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  transition: background 0.35s;
}

.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 19px; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.6; }

.nav-right { display: flex; align-items: center; gap: 1.75rem; }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-mid);
  cursor: pointer; position: relative; padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 0.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover         { color: var(--ink); }
.nav-links a:hover::after  { width: 100%; }

.theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 0.5px solid var(--rule);
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-mid);
  transition: background 0.2s, color 0.2s, transform 0.35s;
}
.theme-btn:hover { background: var(--bg2); color: var(--ink); transform: rotate(22deg); }


/* =====================================================
   8. SCROLL REVEAL
   Elements start invisible and slide up into view.
===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity   0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* stagger delays */
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.32s; }
.reveal-d4 { transition-delay: 0.44s; }


/* =====================================================
   9. BUTTONS
===================================================== */

/* filled button with green sweep on hover */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  border: none; padding: 11px 26px; border-radius: 2px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.1s;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

/* outlined ghost button */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 0.5px solid var(--rule); padding: 11px 26px; border-radius: 2px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* plain text back button */
.btn-back {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px; color: var(--ink-mid);
  letter-spacing: 0.09em; text-transform: uppercase; padding: 0;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s, gap 0.25s;
}
.btn-back:hover { color: var(--accent); gap: 12px; }


/* =====================================================
   10. LAYOUT HELPERS
===================================================== */
.wrap    { max-width: 880px; margin: 0 auto; padding: 0 2rem; }
section  { padding: 5.5rem 0; }
.divider { max-width: 880px; margin: 0 auto; padding: 0 2rem; border-top: 0.5px solid var(--rule); }

.section-label {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 0.5px; background: var(--accent);
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.15; margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--accent); }


/* =====================================================
   11. HERO
===================================================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 2rem 5rem;
  max-width: 880px; margin: 0 auto;
  position: relative;
}

/* large ghost italic text behind hero */
.hero-ghost-text {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(100px, 16vw, 200px);
  font-style: italic; font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--hero-ghost);
  white-space: nowrap; pointer-events: none; user-select: none;
  letter-spacing: -0.04em; z-index: 0;
  opacity: 0;
  animation: fadeIn 1.4s 0.2s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero-eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
  opacity: 0; animation: slideUp 0.8s 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1.5rem;
  opacity: 0; animation: slideUp 1s 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-desc {
  font-size: 14.5px; color: var(--ink-mid); line-height: 1.9;
  max-width: 480px; margin-bottom: 2.5rem;
  opacity: 0; animation: slideUp 1s 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; animation: slideUp 1s 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2rem; border-top: 0.5px solid var(--rule);
  opacity: 0; animation: slideUp 1s 1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-stat .s-val {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem; color: var(--ink); display: block;
}
.hero-stat .s-lbl {
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}


/* =====================================================
   12. ABOUT
===================================================== */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4.5rem; align-items: start; }

.about-body p { font-size: 14.5px; line-height: 1.95; color: var(--ink-mid); margin-bottom: 1.1rem; }
.about-body p strong { color: var(--ink); font-weight: 500; }

.about-pull {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.45rem; font-style: italic; font-weight: 400;
  color: var(--ink); line-height: 1.35;
  border-left: 2px solid var(--accent); padding-left: 1.25rem;
  margin: 2rem 0;
}

.about-right { position: sticky; top: 80px; }

.info-box {
  background: var(--card-bg); border: 0.5px solid var(--rule);
  border-radius: 6px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.info-box-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem;
}
.info-box p { font-size: 13px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 5px; }
.info-box p:last-child { margin: 0; }

.interests { display: flex; flex-wrap: wrap; gap: 7px; }
.interest-tag {
  font-size: 11.5px; padding: 4px 11px; border-radius: 2px;
  border: 0.5px solid var(--rule); color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.interest-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }


/* =====================================================
   13. EXPERIENCE
===================================================== */
.exp-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 2.5rem; padding: 2.5rem 0;
  border-bottom: 0.5px solid var(--rule);
}
.exp-item:first-child { border-top: 0.5px solid var(--rule); }

.exp-period {
  font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px;
}
.exp-company {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem; font-style: italic; color: var(--accent);
}

.exp-content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 400; color: var(--ink);
  margin-bottom: 0.6rem; line-height: 1.25;
}
.exp-content > p { font-size: 13.5px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 1rem; }

.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.exp-bullets li {
  font-size: 13px; color: var(--ink-mid); line-height: 1.7;
  padding-left: 1.25rem; position: relative;
}
.exp-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.exp-bullets li strong  { color: var(--ink); font-weight: 500; }


/* =====================================================
   14. PROJECTS
===================================================== */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--rule); border-radius: 4px; overflow: hidden;
}

.project-card {
  background: var(--bg); padding: 1.75rem;
  border-right: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  position: relative; overflow: hidden; cursor: default;
  transition: background 0.25s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
/* green underline sweep on hover */
.project-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
}
.project-card:hover              { background: var(--bg2); transform: translateY(-3px); }
.project-card:hover::after       { transform: scaleX(1); }

.project-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3rem; font-style: italic;
  color: var(--rule); line-height: 1; margin-bottom: 1rem;
  transition: color 0.3s;
}
.project-card:hover .project-num { color: var(--accent); opacity: 0.35; }

.project-tag-pill {
  display: inline-block; font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-light);
  padding: 3px 9px; border-radius: 2px; margin-bottom: 0.75rem;
}

.project-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 400; color: var(--ink);
  margin-bottom: 0.5rem; line-height: 1.25;
}
.project-card p { font-size: 13px; color: var(--ink-mid); line-height: 1.65; }

.project-card-meta {
  margin-top: 1.25rem; font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: space-between;
}

.proud-badge {
  font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--accent); color: var(--bg); padding: 2px 8px; border-radius: 2px;
}


/* =====================================================
   15. WRITING / ARTICLES (shared list styles)
===================================================== */
.articles-list { display: flex; flex-direction: column; }

.article-row {
  grid-template-columns: 80px 1fr 32px;
}
.article-row:first-child { border-top: 0.5px solid var(--rule); }

/* background sweep on hover */
.article-row::before {
  content: '';
  position: absolute; left: -2rem; right: -2rem; top: 0; bottom: 0;
  background: var(--bg2); opacity: 0;
  transition: opacity 0.22s; z-index: 0;
}
.article-row:hover::before { opacity: 1; }
.article-row > * { position: relative; z-index: 1; }

.article-date {
  font-size: 10.5px; color: var(--ink-soft);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-top: 3px; line-height: 1.5;
}

.article-content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 400; color: var(--ink);
  margin-bottom: 4px; line-height: 1.25;
  transition: color 0.2s;
}
.article-row:hover .article-content h3 { color: var(--accent); }
.article-content p { font-size: 13px; color: var(--ink-mid); line-height: 1.65; }

.article-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.article-tag {
  font-size: 10px; padding: 2px 8px;
  background: var(--tag-bg); color: var(--tag-ink);
  border-radius: 2px; letter-spacing: 0.04em;
}

.article-arrow {
  font-size: 16px; color: var(--ink-soft); padding-top: 2px;
  transition: transform 0.28s, color 0.2s;
}
.article-row:hover .article-arrow { transform: translate(3px, -3px); color: var(--accent); }


/* =====================================================
   16. BLOG INDEX PAGE
===================================================== */
.blog-hero {
  padding: 9rem 0 3.5rem;
  border-bottom: 0.5px solid var(--rule);
}
.blog-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400; letter-spacing: -0.025em; color: var(--ink);
  line-height: 1.1; margin-bottom: 1rem;
}
.blog-hero h1 em { font-style: italic; color: var(--accent); }
.blog-hero p    { font-size: 14.5px; color: var(--ink-mid); max-width: 500px; line-height: 1.85; margin-bottom: 2rem; }

.blog-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-btn {
  font-size: 11px; padding: 5px 15px; border-radius: 2px;
  border: 0.5px solid var(--rule); background: none; color: var(--ink-mid);
  cursor: pointer; font-family: 'DM Sans', system-ui, sans-serif;
  letter-spacing: 0.07em; text-transform: uppercase;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.blog-list { padding: 1.5rem 0 6rem; }


/* =====================================================
   17. ARTICLE READER PAGE
===================================================== */
.article-page-header {
  padding: 8.5rem 0 3rem;
  border-bottom: 0.5px solid var(--rule);
  max-width: 680px;
}
.article-page-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 400; letter-spacing: -0.025em; color: var(--ink);
  line-height: 1.1; margin: 0.75rem 0;
}
.article-byline {
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em;
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem;
}

/* article body text */
.article-prose { max-width: 660px; padding: 3.5rem 0 7rem; }
.article-prose p              { font-size: 15.5px; color: var(--ink-mid); line-height: 2; margin-bottom: 1.4rem; }
.article-prose p strong       { color: var(--ink); font-weight: 500; }
.article-prose h2             { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.8rem; font-weight: 400; color: var(--ink); margin: 3rem 0 1rem; line-height: 1.2; }
.article-prose h3             { font-size: 1rem; font-weight: 500; color: var(--ink); margin: 2.5rem 0 0.75rem; }
.article-prose ul             { list-style: none; margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: 9px; }
.article-prose ul li          { font-size: 15px; color: var(--ink-mid); padding-left: 1.4rem; position: relative; line-height: 1.8; }
.article-prose ul li::before  { content: '—'; position: absolute; left: 0; color: var(--accent); }
.article-prose blockquote     { border-left: 2px solid var(--accent); padding: 0.25rem 0 0.25rem 1.5rem; margin: 2.5rem 0; }
.article-prose blockquote p   { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.3rem; font-style: italic; color: var(--ink); line-height: 1.45; margin: 0; }
.article-prose .callout       { background: var(--bg2); border: 0.5px solid var(--rule); border-radius: 4px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.article-prose .callout p     { font-size: 14px; margin: 0; }


/* =====================================================
   18. SKILLS
===================================================== */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }

.skill-group-title {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 0.9rem; padding-bottom: 0.7rem;
  border-bottom: 0.5px solid var(--rule);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill {
  font-size: 12px; color: var(--ink-mid);
  border: 0.5px solid var(--rule); padding: 4px 11px; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }


/* =====================================================
   19. CONTACT
===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.contact-h {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.1; margin-bottom: 1.1rem;
}
.contact-h em { font-style: italic; color: var(--accent); }
.contact-body { font-size: 14.5px; color: var(--ink-mid); line-height: 1.85; margin-bottom: 1.75rem; }

.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 0.5px solid var(--rule);
  color: var(--ink-mid); font-size: 13.5px;
  transition: color 0.2s, padding-left 0.28s;
  cursor: pointer;
}
.contact-link:first-child { border-top: 0.5px solid var(--rule); }
.contact-link:hover { color: var(--accent); padding-left: 7px; }

.contact-link-icon {
  width: 34px; height: 34px; border-radius: 2px;
  border: 0.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.contact-link:hover .contact-link-icon { background: var(--accent-light); border-color: var(--accent); }


/* =====================================================
   20. FOOTER
===================================================== */
footer {
  border-top: 0.5px solid var(--rule); padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--ink-soft); letter-spacing: 0.05em;
}


/* =====================================================
   21. RESPONSIVE / MOBILE
===================================================== */
@media (max-width: 860px) {
  .projects-grid  { grid-template-columns: 1fr 1fr; }
  .skills-grid    { grid-template-columns: 1fr 1fr; }
  .about-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-right    { position: static; }
  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  nav               { padding: 0 1.25rem; }
  .nav-links        { display: none; }
  .hero             { padding: 0 1.25rem 3rem; }
  .wrap             { padding: 0 1.25rem; }
  .projects-grid    { grid-template-columns: 1fr; }
  .skills-grid      { grid-template-columns: 1fr 1fr; }
  .exp-item         { grid-template-columns: 1fr; gap: 0.4rem; }
  .article-row      { grid-template-columns: 68px 1fr; }
  .article-arrow    { display: none; }
  footer            { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-ghost-text  { font-size: 20vw; }
}


/* =====================================================
   NEW: HERO LAYOUT (photo + text side by side)
===================================================== */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;}
.hero-text { display: flex; flex-direction: column; }

/* typewriter line */
.hero-typewriter {
  font-size: 30px; color: var(--ink-mid); line-height: 1.5;
  margin-bottom: 1.25rem; min-height: 2em;
  opacity: 0; animation: slideUp 1s 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
}
.typewriter-word {
  color: var(--accent); font-weight: 500;
}
.typewriter-cursor {
  display: inline-block; color: var(--accent);
  animation: blink 0.9s step-end infinite;
  font-weight: 300; margin-left: 1px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* hero photo */
.hero-photo-wrap {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center;
}
.hero-photo {
  width: 100%; aspect-ratio: 4/4;
  border-radius: 6px; overflow: hidden;
  border: 0.5px solid var(--rule);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-initials {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3rem; font-style: italic; color: var(--accent);
  opacity: 0.5;
}
.photo-hint {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-photo-stats {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; padding: 1.25rem;
  background: var(--card-bg); border: 0.5px solid var(--rule);
  border-radius: 6px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat .s-val {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.95rem; color: var(--ink);
}
.hero-stat .s-lbl {
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}


/* =====================================================
   NEW: EXPERIENCE — logo placeholder
===================================================== */
.exp-meta {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
}
.exp-logo {
  margin-top: 10px;
  width: 100px; height: 100px; border-radius: 6px;
  object-fit: contain; background: transparent;
  padding: 0; display: block;
}


/* =====================================================
   NEW: PROJECT CARDS — image at top
===================================================== */

/* override old grid to allow image header */
.project-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.project-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  border-bottom: 0.5px solid var(--rule);
}
.project-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg2);
  border-bottom: 0.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  transition: background 0.25s;
  position: relative;
}
.project-img-placeholder::after {
  content: 'Add image';
  position: absolute; bottom: 8px; right: 10px;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.6;
}
.project-card:hover .project-img-placeholder { background: var(--accent-light); }
.project-body { padding: 1.5rem; flex: 1; }


/* =====================================================
   NEW: ARTICLE ROWS — thumbnail placeholder
===================================================== */
.article-row {
  grid-template-columns: 80px 64px 1fr 32px;
}
.article-thumb {
  width: 64px; height: 64px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0;
  border: 0.5px solid var(--rule);
}
.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-thumb-placeholder {
  width: 64px; height: 64px; border-radius: 4px;
  background: var(--bg2); border: 0.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-soft); flex-shrink: 0;
  transition: background 0.2s;
}
.article-row:hover .article-thumb-placeholder { background: var(--accent-light); }


/* =====================================================
   RESPONSIVE overrides for new layouts
===================================================== */
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo-wrap { flex-direction: row; align-items: flex-start; }
  .hero-photo { width: 160px; flex-shrink: 0; }
  .hero-photo-stats { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 600px) {
  nav               { padding: 0.5rem 1.25rem; }
  .nav-links        { display: none; }
  .hero             { padding: 5rem 1.25rem 3rem; }
}
