/* ── TOKENS ── */
:root {
  --bg: #111;
  --bg2: #1a1a1a;
  --card: #1e1e1e;
  --accent: #e8445a;
  --text: #e8e8e8;
  --muted: #888;
  --border: #2a2a2a;
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(17,17,17,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav ul { list-style: none; display: flex; gap: 2rem; font-size: .9rem; }
nav ul a:hover { color: var(--accent); }
nav ul a.active { color: var(--accent); }

/* ── PAGE HEADER (reusable hero-lite) ── */
.page-header {
  padding: 6rem 2rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1a0f1a 0%, var(--bg) 70%);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
.page-header p { margin-top: .5rem; color: var(--muted); font-style: italic; font-size: .95rem; }

/* ── BUTTON ── */
.btn {
  display: inline-block;
  padding: .55rem 1.6rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: sans-serif; font-size: .85rem; font-weight: 600;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  transition: border-color .2s;
}
.card:hover { border-color: var(--accent); }
.card-title { color: var(--accent); font-size: 1rem; margin-bottom: .25rem; }
.card-meta {
  font-family: sans-serif; font-size: .72rem;
  color: var(--muted); margin-bottom: .5rem;
}
.card-body { font-size: .82rem; color: #bbb; line-height: 1.5; }

/* ── SECTION WRAPPER ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.section h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }

/* ── AUTO GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ── DIVIDER ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2rem;
  border-top: 1px solid var(--border);
  font-family: sans-serif; font-size: .8rem; color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 1rem; }
  nav ul { gap: 1.2rem; }
  .section { padding: 2rem 1rem; }
}


  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--bg); color: var(--text); font-family: 'Georgia', serif; line-height: 1.6; }
  a { color: inherit; text-decoration: none; }


  /* ── HERO ── */
  .hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 6rem 2rem 3rem;
    background: radial-gradient(ellipse at 50% 0%, #2a1018 0%, var(--bg) 70%);
  }
  .hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.01em; }
  .hero p { margin-top: .75rem; color: var(--muted); font-size: 1rem; font-style: italic; }
  .btn {
    display: inline-block; margin-top: 1.75rem;
    padding: .55rem 1.6rem; border-radius: 999px;
    background: var(--accent); color: #fff;
    font-family: sans-serif; font-size: .85rem; font-weight: 600;
    transition: opacity .2s;
  }
  .btn:hover { opacity: .85; }

  /* ── FEATURE CARDS ── */
  .feature-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem; padding: 0 2rem 4rem; max-width: 900px; margin: 0 auto;
    position: relative;
  }
  .feature-img {
    border-radius: 10px; overflow: hidden; height: 160px;
    position: relative;
  }
  .feature-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
  .feature-card {
    border-radius: 10px; background: var(--card);
    padding: 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .4rem;
    border: 1px solid var(--border); transition: border-color .2s;
  }
  .feature-card:hover { border-color: var(--accent); }
  .feature-card h2 { font-size: 1.1rem; color: var(--accent); }
  .feature-card p { font-size: .82rem; color: var(--muted); font-family: sans-serif; }
  /* middle card overlaps images */
  .feature-row .middle {
    grid-column: 2; grid-row: 1;
    border-radius: 10px; overflow: hidden; height: 160px;
    position: relative; z-index: 2; margin-top: 20px;
  }
  .feature-row .middle img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); border-radius: 10px; }
  .left-img  { grid-column: 1; grid-row: 1; }
  .right-img { grid-column: 3; grid-row: 1; }
  .left-card  { grid-column: 1; grid-row: 1; position: relative; z-index: 3; align-self: center; margin: 16px; }
  .right-card { grid-column: 3; grid-row: 1; position: relative; z-index: 3; align-self: center; margin: 16px; }

  /* ── ABOUT ── */
  .about-section {
    background: var(--bg2); padding: 4rem 2rem;
    display: flex; justify-content: center;
  }
  .about-card {
    background: #222; border: 1px solid var(--border);
    border-radius: 14px; max-width: 540px; width: 100%;
    padding: 2.5rem 2rem; text-align: center;
  }
  .avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  margin: 0 auto 1rem;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keeps the face in frame */
}
  .about-card h2 { color: var(--accent); font-size: 1.4rem; margin-bottom: .3rem; }
  .about-card .tagline { color: var(--muted); font-size: .85rem; font-family: sans-serif; margin-bottom: .75rem; }
  .about-card .bio { font-size: .9rem; color: #ccc; margin-bottom: 1.25rem; }
  .social-links { display: flex; justify-content: center; gap: 1rem; }
  .social-links a {
    font-family: sans-serif; font-size: .8rem; color: var(--muted);
    border: 1px solid var(--border); border-radius: 6px;
    padding: .3rem .75rem; transition: all .2s;
  }
  .social-links a:hover { border-color: var(--accent); color: var(--accent); }

  /* ── TYPES OF WORK ── */
  .work-section { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
  .work-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .work-tile {
    border-radius: 12px; overflow: hidden; position: relative;
    height: 200px; border: 1px solid var(--border);
    transition: border-color .2s;
  }
  .work-tile:hover { border-color: var(--accent); }
  .work-tile-bg {
    position: absolute; inset: 0;
    background: var(--card);
  }
  .work-tile.code-tile .work-tile-bg {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2a1a 100%);
  }
  .work-tile.writing-tile .work-tile-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
  .tile-code-art {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'Courier New', monospace; font-size: .65rem; color: #1a4a1a;
    padding: 1rem; line-height: 1.4; overflow: hidden; opacity: .7;
  }
  .tile-writing-art {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'Courier New', monospace; font-size: .6rem; color: #1a1a3a;
    padding: 1rem; line-height: 1.5; overflow: hidden; opacity: .7;
  }
  .work-tile-content {
    position: absolute; inset: 0; padding: 1.25rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  }
  .work-tile-content h3 { font-size: 1rem; color: var(--accent); margin-bottom: .3rem; }
  .work-tile-content p { font-size: .78rem; color: #ccc; font-family: sans-serif; line-height: 1.45; }
  .tile-arrow { margin-right: .35rem; }
