:root {
  --bg: #e6e6e6;        /* cool light grey */
  --text: #111111;      /* near-black (better than pure black) */
  --muted: #6f6f6f;     /* secondary text */
  --accent: #cbb6d4;    /* your lilac */
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 120px;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10vh;
  padding-bottom: 8vh;
}

.hero h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.075em;
}

.subtitle {
  margin: 48px 0 40px;
  text-align: center;
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  line-height: 1.02;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.055em;
}

/* NAV PILLS */

.pill-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.pill {
  min-width: 230px;
  padding: 20px 36px;
  border: 2px solid var(--accent);
  border-radius: 999px;

  color: #111111; /* 👈 force black text */
  text-decoration: none;
  text-align: center;

  font-size: 1.7rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;

  background: transparent;

  transition: all 0.2s ease;
}

.pill:hover {
  background: #343434;
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* CONTENT SECTIONS */

.content-section {
  padding: 110px 0 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.content-section h2 {
  margin: 0 0 40px;
  font-size: clamp(2.6rem, 4.2vw, 4.1rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.055em;
}

/* ABOUT */

.about-top {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  margin-bottom: 56px;
}

.about-photo-wrap {
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 25%; /* 👈 this is the key */
  transform: scale(1.1);
}

.about-text {
  max-width: 760px;
}

.about-text p {
  margin: 0 0 20px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* TRAIT CARDS */

.trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.trait-card {
  border: 2px solid var(--accent);
  border-radius: 28px;
  padding: 24px 24px 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
}

.trait-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
}

.trait-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.38;
  color: var(--muted);
  max-width: 100%;
}

/* PROJECTS */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 28px;
}

.project-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 4px 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.project-item:hover {
  color: var(--accent);
  opacity: 0.96;
}

.project-item h3 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.project-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--muted);
}

/* CV */

.cv-text {
  margin: 0;
  max-width: 760px;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--muted);
}

/* MOBILE */

@media (max-width: 900px) {
  .about-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .about-photo-wrap {
    width: 220px;
    height: 220px;
  }

  .trait-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    padding-top: 6vh;
    padding-bottom: 6vh;
  }

  .subtitle {
    margin: 48px 0 40px;
  }

  .pill {
    min-width: 100%;
  }

  .content-section {
    padding-top: 90px;
  }

  .about-text p {
    font-size: 1.1rem;
  }

  .trait-card {
    min-height: auto;
    padding: 22px 20px 20px;
  }

  .trait-card h3 {
    font-size: 1.4rem;
  }
}


.project-list {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.project-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-row:last-child {
  border-bottom: none;
}

.project-row:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.project-text {
  max-width: 600px;
}

.project-row h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-row p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* IMAGE */
.project-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 0px;
  flex-shrink: 0;
}



.see-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
}

.see-more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.see-more-link:hover {
  opacity: 0.7;
  transform: translateX(3px);
}


.projects-page {
  padding-top: 56px;
  padding-bottom: 120px;
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.archive-header h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  color: var(--text);

  font-size: 1.6rem;        /* 👈 matches "See more" */
  font-weight: 500;
  letter-spacing: -0.03em;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-link span {
  font-size: 1.4rem;
}

.back-link:hover {
  opacity: 0.7;
  transform: translateX(-3px);  /* 👈 slides left instead of right */
}


.archive-list {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.archive-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 36px 0;

  text-decoration: none;
  color: inherit;

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.archive-row:last-child {
  border-bottom: none;
}

.archive-row:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* LEFT SIDE */
.archive-left {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 700px;
}

.archive-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

/* TEXT */
.archive-meta {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.archive-row h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.archive-summary {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

/* DATE */
.archive-date {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}



.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.skill-pills span {
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}



/* PROJECT PAGE */

.project-page {
  padding-top: 56px;
  padding-bottom: 120px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.project-meta {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.project-header h1 {
  margin: 0 0 18px;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.07em;
  max-width: 900px;
}

.project-intro {
  margin: 0;
  max-width: 760px;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--text);
}

.project-section p {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text);
}

.project-section p:last-child {
  margin-bottom: 0;
}

.project-figure-grid {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.project-figure-grid.two-up {
  grid-template-columns: 1fr 1fr;
}

.project-figure {
  width: 100%;
}

.placeholder-figure .figure-placeholder {
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.18);
}

.wide-figure {
  margin-top: 36px;
  max-width: 900px;
}

.wide-figure .figure-placeholder {
  min-height: 360px;
}

.figure-caption {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 900px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-figure-grid.two-up {
    grid-template-columns: 1fr;
  }

  .placeholder-figure .figure-placeholder,
  .wide-figure .figure-placeholder {
    min-height: 220px;
  }
}


.project-img-full {
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
}

.project-figure {
  margin-top: 24px;
}


.project-figure-grid.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
}

/* make both image containers same height */
.project-figure-grid.two-up .project-figure {
  height: 260px;   /* 👈 adjust this */
}

/* make images fill that height cleanly */
.project-figure-grid.two-up img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 👈 key line */
}

.wide-figure img {
  max-width: 600px;
}


.project-hero-image {
  margin-top: 32px;
  max-width: 780px;   /* match text width */
}

.project-hero-image img {
  width: 30%;
  height: auto;
  display: block;
}