:root {
  --paper: #f6f3eb;
  --paper-2: #fbf9f4;
  --ink: #20201d;
  --muted: #706d66;
  --line: #d8d2c8;
  --line-strong: #bdb6aa;
  --rust: #c65d32;
  --rust-dark: #9f4523;
  --max: 1080px;
  --narrow: 860px;
  --header: 58px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

::selection {
  background: var(--rust);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

button,
summary { font: inherit; }

button { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 500;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
}

.skip-link:focus { transform: none; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(var(--narrow), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 4vw, 34px);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  flex: 0 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  padding: 1px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  scroll-snap-align: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 11px;
  height: 1px;
  background: var(--rust);
  transition: right .18s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--ink); }

.nav-link:hover::after,
.nav-link.active::after { right: 0; }

.site-main { min-height: calc(100vh - var(--header)); }

.page-intro {
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1,
.hero h1,
.blog-post h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.page-intro h1 { font-size: clamp(38px, 6vw, 58px); }

.page-intro p {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.cv-section-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.section-head p {
  margin: 6px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  padding: 68px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  align-items: end;
  gap: 72px;
}

.hero-copy { max-width: 710px; }

.hero h1 { font-size: clamp(52px, 8vw, 88px); }

.hero-role {
  margin: 25px 0 0;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.48;
  letter-spacing: -.01em;
}

.hero-photo-wrap {
  display: flex;
  align-items: flex-end;
  align-self: stretch;
}

.hero-photo {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
}

.home-section {
  padding: 64px 0 68px;
}

.home-section .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.home-section .section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.5vw, 36px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.03em;
}

.home-section .section-head p {
  max-width: 360px;
  margin: 0 0 2px;
  text-align: right;
  font-size: 12px;
}

.home-section .social-grid,
.home-section .project-list,
.home-section .pub-list {
  border-top: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.social-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.social-row:nth-child(odd) { padding-right: 28px; }

.social-row:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.social-row:hover .social-copy strong,
.social-row:hover .social-arrow {
  color: var(--rust-dark);
}

.social-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.social-icon img {
  max-width: 27px;
  max-height: 27px;
  object-fit: contain;
}

.social-copy { min-width: 0; }

.social-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.social-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.social-arrow,
.external-arrow,
.cv-entry-action {
  font-family: Arial, Helvetica, sans-serif;
  font-variant-emoji: text;
}

.social-arrow {
  color: var(--muted);
  font-size: 13px;
}

.about-copy {
  max-width: 780px;
  padding-top: 2px;
}

.about-copy p {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.45vw, 27px);
  line-height: 1.45;
  letter-spacing: -.015em;
}

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

.project-list,
.pub-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.project-row[hidden],
.blog-row[hidden] { display: none; }

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.project-row:hover .project-media img { transform: scale(1.012); }

.project-meta,
.cv-meta,
.modal-meta,
.blog-date,
.blog-post-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
}

.project-row h3 {
  margin: 5px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.025em;
}

.project-row p {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 14px;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.tag-line span + span::before {
  content: " · ";
  padding: 0 5px;
  color: var(--line-strong);
}

.row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 15px;
}

.section-more { margin-top: 20px; }

.text-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

.text-link:hover {
  color: var(--rust-dark);
  border-color: var(--rust);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-btn,
.blog-filter-btn {
  border: 0;
  background: transparent;
  padding: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.filter-btn:hover,
.filter-btn.active,
.blog-filter-btn:hover,
.blog-filter-btn.active {
  color: var(--ink);
  border-color: var(--rust);
}

.cv-page { padding: 4px 0 68px; }

.cv-section { margin-top: 46px; }

.cv-section[hidden] { display: none; }

.cv-section-head { margin-bottom: 16px; }

.cv-list { border-top: 1px solid var(--line); }

.cv-institution-group {
  position: relative;
  padding: 6px 0 2px;
  border-bottom: 1px solid var(--line);
}

.cv-institution-group:last-child { border-bottom: 0; }

.cv-institution-group + .cv-institution-group { margin-top: 13px; }

.cv-institution-group.connected::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 57px;
  bottom: 28px;
  width: 1px;
  background: var(--line-strong);
  pointer-events: none;
}

.cv-entry-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  gap: 20px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 17px 0 19px;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
}

.cv-entry-trigger + .cv-entry-trigger {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.cv-entry-trigger:hover {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}

.cv-entry-trigger:hover .cv-title,
.cv-entry-trigger:hover .cv-entry-action {
  color: var(--rust-dark);
}

.cv-marker {
  min-height: 52px;
  position: relative;
  display: grid;
  place-items: center;
}

.cv-logo,
.cv-logo-placeholder {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.cv-logo {
  padding: 6px;
  object-fit: contain;
}

.cv-logo-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.cv-dot {
  position: relative;
  z-index: 2;
  width: 9px;
  height: 9px;
  margin-top: 10px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
}

.cv-entry-copy {
  display: block;
  min-width: 0;
}

.cv-title,
.cv-org,
.cv-location,
.cv-grade,
.cv-preview {
  display: block;
}

.cv-title {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.cv-org {
  margin-top: 3px;
  font-size: 14px;
}

.cv-location {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cv-grade {
  margin-top: 5px;
  color: var(--rust-dark);
  font-size: 12px;
}

.cv-preview {
  margin-top: 10px;
  max-width: 650px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.cv-entry-action {
  padding-top: 21px;
  color: var(--muted);
  font-size: 13px;
}

.language-list { border-top: 1px solid var(--line); }

.language-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.language-row img {
  width: 34px;
  height: 26px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.language-row strong { font-size: 14px; }

.language-row > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(32, 32, 29, .42);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-sheet {
  width: min(820px, 100%);
  max-height: min(88vh, 920px);
  max-height: min(88dvh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(32, 32, 29, .18);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 26px 30px 22px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-header h2 {
  margin: 5px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 39px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-grade {
  display: inline-block;
  margin-top: 7px;
  color: var(--rust-dark);
  font-size: 12px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--rust-dark);
  border-color: var(--rust);
}

.modal-content { padding: 8px 30px 34px; }

.modal-lede {
  margin: 20px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.45;
}

.modal-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.modal-block:last-child { border-bottom: 0; }

.modal-block h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.modal-notes {
  margin: 0;
  padding-left: 20px;
}

.modal-notes li {
  color: var(--muted);
  font-size: 14px;
}

.modal-notes li + li { margin-top: 9px; }

.honour-list { border-top: 1px solid var(--line); }

.honour-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.honour-row strong { font-size: 13px; }

.honour-row span {
  color: var(--muted);
  font-size: 12px;
}

.honour-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.coursework > summary {
  cursor: pointer;
  list-style: none;
  color: var(--rust-dark);
  font-size: 13px;
}

.coursework > summary::-webkit-details-marker { display: none; }

.course-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.course-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 72px;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.course-grade,
.course-credits {
  color: var(--muted);
  text-align: right;
}

.course-repos {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cv-gallery a {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
}

.cv-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.pub-year {
  color: var(--rust-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.pub-row h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.23;
  letter-spacing: -.02em;
}

.pub-authors,
.pub-venue {
  color: var(--muted);
  font-size: 13px;
}

.pub-venue { margin-top: 4px; }

.pub-details { margin-top: 14px; }

.pub-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--rust-dark);
  font-size: 13px;
}

.pub-details summary::-webkit-details-marker { display: none; }

.pub-details p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
}

.blog-index { padding: 42px 0 68px; }

.blog-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.blog-filter {
  position: sticky;
  top: calc(var(--header) + 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.blog-filter-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.blog-list { border-top: 1px solid var(--line); }

.blog-row { border-bottom: 1px solid var(--line); }

.blog-row-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 26px;
  text-decoration: none;
}

.blog-row-link:hover h2,
.blog-row-link:hover .blog-read {
  color: var(--rust-dark);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  margin-bottom: 7px;
  color: var(--rust-dark);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.blog-row h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.blog-row p {
  margin: 10px 0 0;
  max-width: 670px;
  color: var(--muted);
  font-size: 14px;
}

.blog-read {
  display: inline-block;
  margin-top: 13px;
  font-size: 12px;
}

.blog-post { padding: 54px 0 78px; }

.blog-back {
  display: inline-block;
  margin-bottom: 42px;
}

.blog-post-meta { margin-bottom: 8px; }

.blog-post h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 66px);
}

.blog-post-lede {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.48;
}

.blog-body {
  max-width: 700px;
  margin-top: 42px;
}

.blog-body p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.72;
}

.blog-body h2 {
  margin: 40px 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.blog-body blockquote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 2px solid var(--rust);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.blog-body figure { margin: 34px 0; }

.blog-body figure img {
  width: 100%;
  border: 1px solid var(--line);
}

.blog-body figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.post-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.post-link > span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 26px 0 calc(38px + env(safe-area-inset-bottom));
}

.footer-row {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  :root { --header: 56px; }

  .container,
  .narrow {
    width: min(100% - 32px, var(--max));
  }

  .nav-shell { width: 100%; }

  .nav-tabs {
    justify-content: flex-start;
    gap: 24px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    scroll-padding-inline: 16px;
  }

  .hero { padding: 48px 0 40px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy { max-width: 760px; }

  .hero-photo-wrap { width: min(100%, 300px); }

  .content-section { padding: 42px 0; }

  .home-section { padding: 48px 0 52px; }

  .home-section .section-head {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 24px;
    padding-bottom: 15px;
  }

  .home-section .section-head p { text-align: left; }

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

  .social-row:nth-child(odd),
  .social-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-media { width: min(100%, 480px); }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .blog-filter {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .blog-filter::-webkit-scrollbar { display: none; }

  .blog-filter-title {
    flex: 0 0 auto;
    margin: 0 6px 0 0;
  }

  .blog-filter-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 0 4px;
  }

  .blog-row-link { grid-template-columns: 100px minmax(0, 1fr); }

  .page-intro { padding: 42px 0 25px; }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: calc(100% - 28px);
  }

  .nav-tabs { gap: 22px; }

  .nav-link {
    min-height: 54px;
    font-size: 12px;
  }

  .nav-link::after { bottom: 9px; }

  .hero { padding: 40px 0 36px; }

  .hero h1 {
    font-size: clamp(44px, 14vw, 52px);
    line-height: .96;
  }

  .hero-role {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-photo-wrap { width: min(76vw, 270px); }

  .home-section { padding: 44px 0 48px; }

  .home-section .section-head {
    margin-bottom: 21px;
    padding-bottom: 13px;
  }

  .home-section .section-head h2 { font-size: 28px; }

  .home-section .section-head p {
    font-size: 12px;
    line-height: 1.45;
  }

  .social-row {
    min-height: 70px;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .social-icon img {
    max-width: 25px;
    max-height: 25px;
  }

  .social-copy strong { font-size: 14px; }

  .social-copy span {
    font-size: 12px;
    line-height: 1.35;
  }

  .social-arrow,
  .external-arrow,
  .cv-entry-action {
    font-family: Arial, Helvetica, sans-serif !important;
    font-variant-emoji: text;
  }

  .about-copy p {
    font-size: 20px;
    line-height: 1.48;
  }

  .page-intro h1 { font-size: 38px; }

  .page-intro p {
    font-size: 13px;
    line-height: 1.5;
  }

  .filter-bar {
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    margin-bottom: 28px;
    padding: 0 0 11px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 0 3px;
  }

  .project-row { padding: 24px 0 27px; }

  .project-media {
    width: 100%;
    max-width: none;
  }

  .project-row h3 { font-size: 23px; }

  .project-row p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .row-links { gap: 10px 16px; }

  .text-link { font-size: 13px; }

  .cv-section { margin-top: 40px; }

  .cv-section-head h2 { font-size: 16px; }

  .cv-institution-group + .cv-institution-group { margin-top: 10px; }

  .cv-institution-group.connected::before {
    left: 19px;
    top: 50px;
    bottom: 25px;
  }

  .cv-entry-trigger {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 15px 0 17px;
  }

  .cv-logo,
  .cv-logo-placeholder {
    width: 40px;
    height: 40px;
  }

  .cv-marker { min-height: 40px; }

  .cv-dot { margin-top: 7px; }

  .cv-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .cv-org { font-size: 13px; }

  .cv-preview {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .cv-entry-action { padding-top: 17px; }

  .language-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
  }

  .language-row > span:last-child {
    grid-column: 2;
    margin-top: -5px;
  }

  .modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .modal-sheet {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -16px 50px rgba(32, 32, 29, .16);
  }

  .modal-header {
    gap: 14px;
    padding: 20px 18px 16px;
  }

  .modal-header h2 { font-size: 29px; }

  .modal-close {
    width: 40px;
    height: 40px;
  }

  .modal-content {
    padding: 4px 18px calc(28px + env(safe-area-inset-bottom));
  }

  .modal-lede { font-size: 18px; }

  .honour-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .course-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .course-credits { display: none; }

  .cv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pub-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0 25px;
  }

  .pub-year { font-size: 17px; }

  .pub-row h3 {
    font-size: 21px;
    line-height: 1.28;
  }

  .pub-authors,
  .pub-venue {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .pub-details p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .blog-index { padding: 30px 0 58px; }

  .blog-layout { gap: 20px; }

  .blog-filter {
    margin-left: -14px;
    width: calc(100% + 28px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .blog-row-link {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 22px 0 25px;
  }

  .blog-date { font-size: 12px; }

  .blog-tags { margin-bottom: 5px; }

  .blog-row h2 {
    font-size: 25px;
    line-height: 1.2;
  }

  .blog-row p {
    margin-top: 9px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .blog-read {
    margin-top: 12px;
    font-size: 12.5px;
  }

  .blog-post {
    padding: 38px 0 calc(68px + env(safe-area-inset-bottom));
  }

  .blog-back { margin-bottom: 30px; }

  .blog-post h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .blog-post-lede {
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.5;
  }

  .blog-body { margin-top: 34px; }

  .blog-body p {
    font-size: 16px;
    line-height: 1.74;
  }

  .blog-body h2 {
    margin-top: 34px;
    font-size: 19px;
  }

  .site-footer { padding-top: 24px; }
}

@media (max-width: 380px) {
  .nav-tabs { gap: 19px; }
  .nav-link { font-size: 11.5px; }
  .hero h1 { font-size: 43px; }
  .home-section .section-head h2 { font-size: 26px; }
  .blog-post h1 { font-size: 36px; }
}

@media (hover: none) {
  .project-row:hover .project-media img { transform: none; }
  .cv-entry-trigger:hover { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
