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

  :root {
    --pink:   #E8828A;
    --mauve:  #A08DA8;
    --teal:   #6BBCB8;
    --green:  #72B87A;
    --ink:    #1a1a2e;
    --muted:  #555566;
    --faint:  #999aaa;
    --bg:     #fafafa;
    --border: rgba(0,0,0,0.09);
  }

  html { font-size: 16px; scroll-behavior: smooth; }

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250,250,250,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
  }

  .nav-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.01em;
  }

  .nav-links { display: flex; gap: 0.25rem; list-style: none; }

  .nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    padding: 0.38rem 1rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: all 0.2s;
  }

  .nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

  .nav-links a.active {
    color: var(--ink);
    border-color: rgba(0,0,0,0.18);
    background: #fff;
  }

  /* ── PAGES ── */
  .page { min-height: 100vh; padding-top: 56px; animation: fadeIn 0.3s ease; }

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

  /* ── GRADIENT UTILITIES ── */
  .grad {
    background: linear-gradient(90deg, var(--pink) 0%, var(--mauve) 35%, var(--teal) 65%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── HOME PAGE BG ── */
  .hero-bg {
    background:
      radial-gradient(ellipse 60% 55% at 0% 0%, rgba(232,130,138,0.14) 0%, transparent 70%),
      radial-gradient(ellipse 55% 50% at 100% 0%, rgba(114,184,122,0.12) 0%, transparent 70%),
      #fafafa;
  }

  /* ── HOME LAYOUT ── */
  .home-grid {
    max-width: 1020px;
    margin: 0 auto;
    padding: 5.5rem 2.5rem 6rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5rem;
    align-items: start;
  }

  /* Left col */
  .eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    display: block;
  }

  .home-name {
    font-size: clamp(2.6rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.5rem;
  }

  .home-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 2.25rem;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.82;
    color: #333344;
    font-weight: 300;
    max-width: 54ch;
    margin-bottom: 1rem;
  }

  .home-ctas { display: flex; gap: 0.75rem; margin-top: 2.25rem; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }

  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: #2e2e50; transform: translateY(-1px); }

  .btn-outline { background: #fff; color: var(--ink); border: 1.5px solid rgba(0,0,0,0.16); }
  .btn-outline:hover { background: #f3f3f5; transform: translateY(-1px); }

  /* Right col — photo */
  .photo-col { position: sticky; top: 76px; }

  .photo-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    background: #e8ece6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }

  .photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: #bbb; }
  .photo-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
  .photo-placeholder p { font-size: 0.78rem; font-family: 'DM Mono', monospace; }

  .photo-caption {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: var(--faint);
    text-align: center;
    line-height: 1.5;
    font-style: italic;
  }

  /* ── CV PAGE ── */
  .cv-wrap { max-width: 760px; margin: 0 auto; padding: 4.5rem 2.5rem 6rem; }

  .page-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
  }

  .page-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }

  .page-sub {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
  }

  .cv-section { margin-bottom: 3rem; }

  .cv-section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.25rem;
    padding-bottom: 0.55rem;
    border-bottom: 1.5px solid rgba(107,188,184,0.25);
  }

  .cv-item {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
  }
  .cv-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .cv-year { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--faint); padding-top: 3px; line-height: 1.5; }
  .cv-role { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
  .cv-org { font-size: 0.875rem; color: var(--muted); font-style: italic; margin-bottom: 0.45rem; }
  .cv-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; font-weight: 300; }

  .skills-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

  .skill-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: 'DM Mono', monospace;
    color: var(--muted);
    letter-spacing: 0.03em;
    transition: border-color 0.2s, color 0.2s;
  }
  .skill-tag:hover { border-color: var(--teal); color: var(--ink); }

  .cv-download-row { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

  /* ── PROJECTS PAGE ── */
  .projects-wrap { max-width: 1020px; margin: 0 auto; padding: 4.5rem 2.5rem 6rem; }

  .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-top: 0; }

  .project-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
  }

  .project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--mauve), var(--teal), var(--green));
    opacity: 0;
    transition: opacity 0.2s;
  }

  .project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
  .project-card:hover::before { opacity: 1; }
  .project-card.linked { cursor: pointer; }

  .project-tag {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.85rem;
    background: rgba(107,188,184,0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
  }

  .project-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
  .project-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; font-weight: 300; margin-bottom: 1.25rem; }
  .project-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }

  .tool-chip {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    background: #f4f4f6;
    border-radius: 6px;
    color: var(--faint);
  }

  .ext-link {
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    font-size: 0.8rem;
    color: var(--faint);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .project-card:hover .ext-link { opacity: 1; }

  /* FOOTER */
  footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    color: var(--faint);
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border);
  }

  /* RESPONSIVE */
  @media (max-width: 720px) {
    .home-grid { grid-template-columns: 1fr; padding: 3rem 1.5rem 4rem; gap: 2.5rem; }
    .photo-col { order: -1; position: static; top: auto; }
    .photo-frame { max-width: 260px; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%; }
    nav { padding: 0 1.25rem; }
    .nav-links { gap: 0.15rem; }
    .cv-item { grid-template-columns: 1fr; gap: 0.25rem; }
    .cv-wrap, .projects-wrap { padding: 3rem 1.25rem 4rem; }
  }

  /* ── CONTACT PAGE ── */
  .contact-wrap { max-width: 760px; margin: 0 auto; padding: 4.5rem 2.5rem 6rem; }
  .contact-email-card {
    padding: 1.6rem 1.75rem;
    border-radius: 20px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(90deg, rgba(232,130,138,0.55), rgba(160,141,168,0.45), rgba(107,188,184,0.55), rgba(114,184,122,0.45)) border-box;
    border: 1.5px solid transparent;
    margin-bottom: 2rem;
  }
  .contact-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.6rem;
  }
  .contact-email {
    display: inline-block;
    font-size: clamp(1.1rem, 3vw, 1.55rem);
    font-weight: 750;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    word-break: break-word;
  }
  .contact-email:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
  .contact-note { margin-top: 1rem; font-size: 0.95rem; line-height: 1.75; color: var(--muted); font-weight: 300; }
  .contact-links { display: grid; gap: 1rem; margin-top: 2rem; }
  .contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .contact-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
  .contact-link span:first-child { font-weight: 650; }
  .contact-link span:last-child { color: var(--faint); font-family: 'DM Mono', monospace; font-size: 0.78rem; }

  @media (max-width: 720px) {
    .contact-wrap { padding: 3rem 1.25rem 4rem; }
  }


/* ── BLOG-STYLE PROJECTS PAGE ── */
.blog-wrap {
  max-width: 860px;
}

.project-post {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--mauve), var(--teal), var(--green));
  opacity: 0.75;
}

.project-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.055);
}

.featured-post {
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(232,130,138,0.08) 0%, transparent 72%),
    radial-gradient(ellipse 65% 75% at 100% 0%, rgba(107,188,184,0.08) 0%, transparent 72%),
    #fff;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.post-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  max-width: 720px;
}

.post-standfirst {
  font-size: 1rem;
  line-height: 1.75;
  color: #333344;
  font-weight: 400;
  max-width: 68ch;
  margin-bottom: 1.3rem;
}

.post-body {
  max-width: 70ch;
}

.post-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.45rem 0 0.45rem;
  letter-spacing: -0.01em;
}

.post-body p {
  font-size: 0.93rem;
  line-height: 1.82;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1rem;
}

.post-body code {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  background: #f4f4f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08rem 0.32rem;
  color: var(--ink);
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .blog-wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .project-post { padding: 1.45rem; border-radius: 20px; }
  .post-meta-row { align-items: flex-start; }
  .post-footer { align-items: flex-start; }
}

/* ── PROJECT INDEX + LONG PROJECT PAGES ── */
.blog-index-wrap {
  max-width: 900px;
}

.project-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--mauve), var(--teal), var(--green));
  opacity: 0.72;
}

.project-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.055);
}

.preview-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  max-width: 760px;
}

.preview-title a {
  color: var(--ink);
  text-decoration: none;
}

.preview-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.preview-footer {
  align-items: flex-end;
}

.preview-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.article-page {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(232,130,138,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(107,188,184,0.07) 0%, transparent 70%),
    var(--bg);
}

.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem 6rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.35rem;
}

.article-title {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.article-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: #333344;
  max-width: 68ch;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-meta span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.article-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 2.4rem;
}

.article-section {
  margin-bottom: 2.25rem;
}

.article-section h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.article-section p {
  font-size: 1rem;
  line-height: 1.88;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.05rem;
}

.article-list {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

.article-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.article-list a:hover {
  border-bottom-color: var(--teal);
}

@media (max-width: 720px) {
  .project-preview { padding: 1.45rem; border-radius: 20px; }
  .preview-footer { align-items: flex-start; }
  .article-wrap { padding: 3rem 1.25rem 4rem; }
  .article-actions { align-items: flex-start; }
  .article-title { letter-spacing: -0.035em; }
}

/* ── PUBLICATIONS & TALKS ── */
.outputs-page {
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(232,130,138,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(107,188,184,0.08) 0%, transparent 70%),
    var(--bg);
}

.outputs-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem 6rem;
}

.outputs-header .page-sub {
  margin-bottom: 3.25rem;
}

.outputs-section {
  margin-bottom: 4rem;
}

.outputs-section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid rgba(107,188,184,0.25);
}

.section-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.outputs-section-heading h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.output-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.6rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--border);
}

.output-entry:first-of-type {
  padding-top: 0.25rem;
}

.output-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.55;
  padding-top: 0.18rem;
}

.output-date span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.output-type {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(107,188,184,0.11);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  margin-bottom: 0.55rem;
}

.output-body h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.018em;
  margin-bottom: 0.4rem;
}

.output-meta {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.45rem;
}

.output-summary {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

.output-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.output-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.14);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.34rem 0.78rem;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.output-links a:hover {
  border-color: var(--teal);
  background: #f7fbfb;
  transform: translateY(-1px);
}

.featured-output {
  background:
    linear-gradient(90deg, rgba(232,130,138,0.08), rgba(107,188,184,0.08));
  border: 1px solid rgba(107,188,184,0.2);
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
}

/* Wider nav support */
@media (max-width: 980px) {
  nav {
    height: auto;
    min-height: 56px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .page {
    padding-top: 96px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 0.32rem 0.7rem;
  }
}

@media (max-width: 720px) {
  .outputs-wrap { padding: 3rem 1.25rem 4rem; }
  .output-entry,
  .featured-output {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.25rem 0;
    border-radius: 0;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .output-date {
    color: var(--teal);
  }
}

/* ── PUBLICATIONS & TALKS: CV-MATCHED LAYOUT ── */
.output-item .cv-desc {
  margin-bottom: 0.75rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.inline-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 0.08rem;
}

.inline-links a:hover {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

.featured-inline-output {
  padding: 1.35rem 1.25rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  border: 1px solid rgba(107,188,184,0.22);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(232,130,138,0.06), rgba(107,188,184,0.08));
}

@media (max-width: 720px) {
  .featured-inline-output {
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem;
  }
}

/* ── HOMEPAGE EDUCATION LIST ── */
.photo-education {
  margin-top: 1.15rem;
}

.photo-education-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.education-mini-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
}

.education-mini-degree {
  color: var(--teal);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.education-mini-item strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.education-mini-item p {
  margin-top: 0.12rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.education-mini-funding {
  color: var(--faint);
  font-size: 0.72rem;
  font-style: italic;
}

@media (max-width: 720px) {
  .photo-education {
    max-width: 320px;
    margin: 1rem auto 0;
    text-align: left;
  }
}

/* Profile links under homepage photo */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.1rem;
  margin-bottom: 1.45rem;
}

.profile-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.profile-links a span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.profile-links a:hover {
  transform: translateY(-2px);
  color: var(--ink);
  background: #fff;
  border-color: rgba(107,188,184,0.55);
}

@media (max-width: 720px) {
  .profile-links {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

.author-me {
  font-weight: 800;
  color: var(--ink);
  background: rgba(107, 188, 184, 0.16);
  padding: 0.05rem 0.18rem;
  border-radius: 5px;
}

/* Project previews with optional images */
.project-preview-with-image {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.65rem;
  align-items: start;
}

.project-preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #f0f0f2;
  border: 1px solid var(--border);
}

.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 45%;
  display: block;
  transition: transform 0.25s ease;
}

.project-preview-image:hover img {
  transform: scale(1.025);
}

.project-preview-content {
  min-width: 0;
}

@media (max-width: 720px) {
  .project-preview-with-image {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
