@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: FontAwesome;
  src: url("../font-awesome/4.6.1/fonts/fontawesome-webfont.woff2") format("woff2");
  font-display: block;
  unicode-range: U+F021;
}

:root {
  color-scheme: light;
  --page: #fff;
  --surface: #fff;
  --ink: #262626;
  --muted: #545454;
  --accent: #286090;
  --accent-hover: #204d74;
  --rule: #d9d9d9;
  --sans: "Open Sans", Arial, sans-serif;
  --heading-font: Raleway, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 1rem/1.6 var(--sans);
  overflow-wrap: anywhere;
}

img { display: block; width: auto; height: auto; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h2, h3, p { color: inherit; }
p { font: inherit; }

.wrap { width: min(68rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; inset: .5rem auto auto .5rem; z-index: 1001; padding: .5rem 1rem; background: var(--surface); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
:target { scroll-margin-top: 4.25rem; }
#home:target { scroll-margin-top: 0; }

.main-button > #menu-toggle {
  position: static;
  width: auto;
  height: auto;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  color: #fff;
  font: inherit;
}
#site-menu {
  inset: 0 auto 0 0;
  margin: 0;
  width: min(17rem, 90vw);
  height: 100%;
  max-height: 100%;
  border: 0;
  padding: 0 0 .75rem;
  color: #fff;
}
#site-menu::backdrop { background: rgb(0 0 0 / .36); }
.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .6rem;
  padding: 1.25rem .85rem;
}
.drawer-header .push_nav_brand { width: auto; margin: 0; color: #fff; line-height: 1.15; text-decoration: none; }
.drawer-header button {
  flex: none;
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
#site-menu .push_nav { margin: 0; }
#site-menu .push_nav a { text-decoration: none; }
#site-menu a:focus-visible, #site-menu button:focus-visible { outline-offset: -4px; }

#home {
  /* The halo center is at 49.47%, 41.31% in bg-mia.jpg. */
  --hero-halo-x: .4947;
  --portrait-size: clamp(9rem, 17vw, 12.5rem);
  display: grid;
  container-type: inline-size;
  grid-template-rows: minmax(0, 41.31fr) minmax(0, 58.69fr);
  min-height: 94vh;
  min-height: 94svh;
  text-align: center;
  color: #fff;
  background-color: #3c4c57;
  background-attachment: scroll;
  background-position: calc(var(--hero-halo-x) * 100%) 41.31%;
}
#home .info {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  margin-block: 0;
  padding-block-end: clamp(2.5rem, 8vh, 5rem);
}
#home .info_detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.profile-portrait {
  position: relative;
  margin-block-start: calc(var(--portrait-size) / -2);
  left: calc((var(--hero-halo-x) - .5) * 100vw);
  left: calc((var(--hero-halo-x) - .5) * 100cqw);
}
.info .info_detail .zoom {
  display: block;
  width: var(--portrait-size);
  height: auto;
  aspect-ratio: 1;
  z-index: auto;
  transition: transform .18s ease-out;
}
.profile-portrait .zoom:empty { background-color: #909090; }
.info .info_detail .zoom img { object-fit: cover; }
.profile-portrait:is(:hover, :focus-within) .zoom { transform: scale(.96); }
.profile-portrait .zoom:focus-within { outline: 2px solid #fff; outline-offset: 4px; }
.portrait-description {
  position: absolute;
  z-index: 1;
  inset: auto auto calc(100% + .6rem) 50%;
  width: max-content;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: .55rem .85rem;
  transform: translateX(-50%);
  border-radius: .65rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 10px rgb(0 0 0 / .24);
  font-size: .9rem;
  line-height: 1.45;
  visibility: hidden;
}
.portrait-description::before {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: .6rem;
}
.portrait-description::after {
  content: "";
  position: absolute;
  inset: 100% auto auto 50%;
  transform: translateX(-50%);
  border: .4rem solid transparent;
  border-top-color: var(--surface);
}
.profile-portrait:is(:hover, :focus-within) .portrait-description {
  visibility: visible;
  animation: portrait-description-in .16s ease-out;
}
@keyframes portrait-description-in {
  from { opacity: 0; transform: translate(-50%, .2rem); }
}
.portrait-switch {
  position: absolute;
  inset: auto 2% 2% auto;
  display: grid;
  place-items: center;
  width: 2.625rem;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: #666;
  background: var(--surface);
  box-shadow: 0 1px 6px rgb(0 0 0 / .28);
  font: 1.05rem/1 FontAwesome;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.portrait-switch:hover { color: #444; background: #f4f4f4; }
.portrait-switch:active { background: #eaeaea; }
.portrait-switch[aria-busy="true"] { cursor: progress; }
.portrait-switch:focus-visible { outline-color: #fff; }
#home h1 {
  margin: clamp(1.4rem, 4.5vh, 3rem) 0 .3rem;
  color: #fff;
  font: 400 clamp(2rem, 4.7vw, 3rem)/1.13 var(--heading-font);
}
#home h1, #home .info_detail p, .profile-links, #home .button { text-shadow: 0 1px 4px #222; }
#home .info_detail p { line-height: 1.5; }
.profile-links, .photo-list, .project-list, .news-list, .paper-feature-list, .publication-list, .experience-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
  margin-top: .7rem;
}
.profile-links a { display: inline-block; padding-block: .35rem; color: #fff; font-size: .92rem; }
.profile-links a:hover { text-decoration-thickness: 2px; }
#home .button {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin-top: auto;
  padding-block-start: clamp(1.75rem, 7vh, 4.5rem);
}
#home .button .btn { margin: 0; text-decoration: none; }
#home .button .btn:hover { text-shadow: none; }

.page-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-section.career, .page-section.work { margin: 0; }
.heading { margin-bottom: clamp(1.3rem, 3vw, 2rem); text-align: center; }
.heading h2 { font: 400 clamp(1.7rem, 4vw, 1.95rem)/1.2 var(--heading-font); }
.heading > a { display: inline-block; margin-top: .4rem; font-size: .9rem; }
.about-layout { max-width: 63rem; margin-inline: auto; }
.about-layout.with-photo {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.about-photo img { width: 100%; }
.research { max-width: 49rem; margin-inline: auto; }
.research p + p { margin-top: .9rem; }
#affiliation { font-size: 1.1rem; font-weight: 600; }
.affiliation-suffix { font-weight: 400; }
#affiliation:not([hidden]) + .research-body { margin-top: .85rem; }
.research-body p, .paper-summary p, .news-summary { white-space: pre-line; }
.research-reading { margin-top: 1.15rem; }
.research-reading h3 { font-size: 1rem; font-weight: 600; }
#research-papers { margin: .35rem 0 0; padding-left: 1.2rem; }
#research-papers li { list-style: disc; }
#research-papers span { color: var(--muted); }
.load-note { margin: 1rem auto 0; max-width: 49rem; color: var(--muted); }

#interview, #Experience { background: #f4f4f4; }
.news-carousel { max-width: 53rem; margin-inline: auto; }
.news-stage { position: relative; }
.news-list {
  display: flex;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: center;
}
.news-list::-webkit-scrollbar { display: none; }
@media (any-pointer: fine) {
  .news-list[data-draggable] { cursor: grab; }
}
.news-list.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.news-list.is-dragging a { cursor: grabbing; }
.news-arrow {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.news-arrow-previous { inset-inline-start: -.35rem; }
.news-arrow-next { inset-inline-end: -.35rem; }
.news-arrow::before, .news-arrow::after { content: ""; grid-area: 1 / 1; }
.news-arrow::before { width: 1.9rem; aspect-ratio: 1; border-radius: 50%; background: rgb(0 0 0 / .4); }
.news-arrow::after { width: .55rem; height: .55rem; border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg); }
.news-arrow-previous::after { transform: rotate(225deg); }
.news-arrow:hover::before, .news-arrow:active::before, .news-arrow:focus-visible::before { background: rgb(0 0 0 / .65); }
.news-arrow:focus-visible { outline-color: var(--accent); }
.news-slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  min-width: 0;
  padding: .15rem .2rem;
  scroll-snap-align: start;
}
.news-list h3 { font: 500 clamp(1.15rem, 2.6vw, 1.4rem)/1.35 var(--heading-font); }
.news-meta { margin-top: .45rem; color: var(--muted); font-size: .9rem; font-style: italic; }
.news-summary { max-width: 62ch; margin: .6rem auto 0; color: var(--muted); text-align: left; }
.news-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
}
.news-images img {
  flex: 1 1 0;
  min-width: 0;
}
.news-images img:only-child { flex: none; width: min(100%, 27rem); }
.news-controls, .news-navigation { display: flex; flex-wrap: wrap; justify-content: center; }
.news-controls { align-items: center; margin-top: .4rem; }
.news-controls button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.news-navigation button::after {
  content: "";
  width: .6rem;
  height: .6rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.news-navigation button[aria-pressed="true"] { color: var(--accent); }
.news-navigation button[aria-pressed="true"]::after, .news-navigation button:hover::after { background: currentColor; }
.news-playback::before { content: ""; width: .46rem; height: .65rem; border-inline: 2px solid currentColor; }
.news-playback[data-playing="false"]::before {
  width: 0;
  height: 0;
  border: .32rem solid transparent;
  border-inline-start: .55rem solid currentColor;
  border-inline-end: 0;
}
.news-playback:hover { color: var(--accent); }

.publication-group + .publication-group { margin-top: 2.25rem; }
.publication-group > h3, .honours > h3 {
  margin-bottom: .85rem;
  font: 500 1.25rem/1.35 var(--heading-font);
}
.paper-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem; }
.paper-figure {
  display: block;
  aspect-ratio: 16 / 9;
  padding: .6rem;
  border: 1px solid var(--rule);
  background: #fafafa;
  margin-bottom: .75rem;
}
.paper-figure img { width: 100%; height: 100%; object-fit: contain; }
.paper-figure-unavailable { display: grid; place-items: center; }
.publication-list { max-width: 57rem; }
#more-publications { margin-top: 2rem; }
.publication {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .25rem clamp(.75rem, 2.7vw, 1.5rem);
  align-items: start;
  padding-block: .9rem;
  border-top: 1px solid var(--rule);
}
.publication-year { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.publication h3, .paper-feature h4, .project-list h3 { margin: 0; font-size: 1.04rem; line-height: 1.35; font-weight: 600; }
.publication h3 a, .paper-feature h4 a, .news-list h3 a, .project-list h3 a { text-decoration: none; }
.publication h3 a:hover, .paper-feature h4 a:hover, .news-list h3 a:hover, .project-list h3 a:hover { text-decoration: underline; }
.publication-meta, .publication-authors { margin-top: .2rem; color: var(--muted); font-size: .91rem; }
.publication-meta { font-style: italic; }
.publication-links { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-top: .4rem; font-size: .9rem; }
.paper-summary { margin-top: .45rem; font-size: .9rem; }
.paper-summary p { margin-top: .4rem; max-width: 74ch; }
summary { width: fit-content; color: var(--accent); cursor: pointer; }
summary:hover { text-decoration: underline; }
.disclosure { border-top: 1px solid var(--rule); }
.disclosure > summary { padding-block: .75rem; font-weight: 600; }

.experience { max-width: 57rem; margin-inline: auto; }
.experience-notes, .experience-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.experience-note {
  padding: 1rem 1.2rem;
  border-radius: 1rem 1rem 1rem .25rem;
  background: #e7f0f7;
}
.experience-note:nth-child(2) { background: #eaeef2; border-radius: 1rem 1rem .25rem 1rem; }
.experience-note h3 { margin-bottom: .2rem; color: var(--accent-hover); font-size: 1rem; }
.honours { margin-top: 1.75rem; }
.experience-list li {
  padding: .8rem 1rem;
  border-inline-start: 2px solid #a9c2d6;
  border-radius: 0 .55rem .55rem 0;
  background: var(--surface);
}
.experience-list strong { display: block; line-height: 1.4; }
.experience-year { display: block; margin-bottom: .2rem; color: var(--accent); font-size: .85rem; font-variant-numeric: tabular-nums; }
.experience-list p { color: var(--muted); font-size: .9rem; }

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .75rem;
  margin: -.5rem 0 1.15rem;
}
.project-filters button {
  border: 0;
  padding: .5rem .25rem;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.project-filters button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.project-filters button:hover { text-decoration: underline; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.project-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-copy { padding-block: .55rem; }
.project-copy h3 { margin: 0; }
.project-copy .project-description { margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.project-category { margin-bottom: .25rem; color: var(--muted); font-size: .82rem; }
#more-videos { margin-top: 1rem; }

#photos { padding-top: .5rem; }
.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.15rem;
}
.photo-list a { display: block; }
.photo-list img { width: 100%; }
figcaption { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.gallery-link { margin-top: 1.1rem; text-align: center; }
.gallery-header { padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.gallery-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.gallery-header span { color: var(--muted); }
.gallery-page { padding-block: clamp(2rem, 6vw, 4rem) 0; }
.gallery-page h1 {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font: 400 clamp(2rem, 5vw, 3rem)/1.2 var(--heading-font);
}
.photography-list { columns: 2 24rem; gap: 1.35rem; }
.photography-list li { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery-footer { padding-bottom: 1.5rem; }
#project-quote { margin: 2.75rem 0 0; text-align: center; }
#project-quote blockquote {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: .3em;
  white-space: pre-line;
  text-wrap: balance;
  font: italic 400 clamp(1.95rem, 4.3vw, 3rem)/1.25 "Great Vibes", "Apple Chancery", Georgia, serif;
}
.work .title .getin { margin-top: 1rem; }

#contactme {
  text-align: center;
  color: #fff;
  background-color: rgb(18 22 28 / .72);
  background-blend-mode: multiply;
  background-attachment: scroll;
}
#contactme .contact { margin-block: 0; }
#contactme p + p { margin-top: .3rem; }
#contactme a { color: #fff; }
.edit-site { display: inline-block; margin-top: 1.25rem; font-size: .9rem; }

@media (max-width: 700px) {
  #home .button { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 22rem); margin-inline: auto; }
  #home .button .btn { padding: .65rem .6rem; }
  .about-layout.with-photo { grid-template-columns: 1fr; }
  .about-photo { width: min(100%, 28rem); margin-inline: auto; }
  .project-list, .paper-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .wrap { width: calc(100% - 2rem); }
  #home .profile-links { gap: 0 .7rem; }
  #home .profile-links a { font-size: .86rem; }
  .publication { gap: .2rem .6rem; }
  .news-images { gap: .45rem; }
  .paper-feature-list, .experience-notes, .experience-list { grid-template-columns: 1fr; }
}

@media (max-width: 415px) {
  .project-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-portrait .zoom { transition: none; }
  .profile-portrait:is(:hover, :focus-within) .zoom { transform: none; }
  .profile-portrait:is(:hover, :focus-within) .portrait-description { animation: none; }
  #home .button a { transition: none; }
}
