site-bio { display: contents; } /* let .bio be the flex item of .page */

.page {
  display: flex; justify-content: space-start; gap: 20px;
/*  max-width: 1728px; */
  margin: 0 auto; padding: 39px 50px 80px;
  background-color: rgb(255, 253, 250);
}

.bio { flex: 0 0 300px; 
/*  padding-right: 22px; */
  font-size: 14px; line-height: normal; }
.bio p + p { margin-top: 1lh; }
.bio .ref { color: var(--accent); }
.bio a { text-decoration:underline; }

.grid {
  flex: 1 1 0; 
/*  max-width: 1400px;*/
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 12px; align-content: start;
}

/* Project card */
.card { display: flex; flex-direction: column; gap: 16px; }
.thumb { position: relative; height: 260px; overflow: hidden; background: var(--placeholder);}
.thumb img { position: absolute; max-width: none; pointer-events: none; }
.thumb .cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
/*.thumb .cover2 { inset: 0; width: 100%; height: 100%; object-fit: scale-down; }*/
.meta { display: flex; flex-direction: column; gap: 4px; line-height: normal; }
.title { font-weight: 500; font-size: 14px; }
.tags {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; opacity: 0.3; white-space: nowrap;
}
a.card:hover .title, a.card:focus-visible .title { text-decoration: underline; }


/* ====================================
  RESPONSIVE PROPERTIES
  =====================================  */

@media (min-width: 1000px) {
  .bio {
    position: sticky;
    top: 105px;          /* 80px nav + 24px gap */
    align-self: flex-start;
  }
/*  .thumb {height:350px;}*/
}
@media (max-width: 1000px) {
  .page { flex-direction: column; gap: 40px; }
  .bio { flex-basis: auto; max-width: 420px; padding-right: 0; }
  .grid { max-width: none; }
}


/* Tablet2, 769–1200x : 2-column grid */
@media (max-width: 1200px) {
  .nav { padding: 0 25px; gap: 72px; }
  .nav ul { gap: 24px; }
  .page { padding: 24px 25px 48px; gap: 12px; }
  .bio { /*max-width: 250px; */font-size: 14px; margin-bottom:24px;}
  .bio .ref, .bio a { text-decoration: underline; text-underline-position: from-font; }
  .bio a { text-decoration-skip-ink: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 2fr)); gap: 48px 12px; }
  .card { height: 352px; gap: 16px; }
  .thumb {height:350px;}
}



/* Tablet, 577–768px (Figma node 154:1836): 2-column grid */
@media (max-width: 768px) {
  .nav { padding: 0 25px; gap: 72px; }
  .nav ul { gap: 24px; }
  .page { padding: 24px 25px 48px; gap: 24px; }
  .bio { max-width: none; font-size: 14px; }
  .bio .ref, .bio a { text-decoration: underline; text-underline-position: from-font; }
  .bio a { text-decoration-skip-ink: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 12px; }
  .card { height: 352px; gap: 16px; }
  .thumb { flex: 1 1 0; height: auto; min-height: 0; }
  #svmk-data {object-position: center !important;}
}

/* Mobile, ≤576px (Figma node 154:1792): single column */
@media (max-width: 576px) {
  .grid { grid-template-columns: 1fr; }
  .card:not(:last-child) { padding-bottom: 24px; }
  #svmk-data {object-position: center !important;}
}