:root {
  --bg: #fff;
  --ink: #181818;
  --muted: #9a9a9a;
  --nav-fill: rgb(255 255 255 / 85%);
  --scroll-thumb: #bbb;
  --scroll-track: #fff;
  --pill-hover: #2a2a2a;
  --gap: 2.25rem;
  --nav-pad: 1.75rem;
  --topbar-height: 4.25rem;
  --top-space: 4.25rem;
  --bottom-space: 4.5rem;
  --nav-left: 30px;
  --caption-space: 1.4rem;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #181818;
  --ink: #f0f0f0;
  --muted: #8e8e8e;
  --nav-fill: rgb(24 24 24 / 85%);
  --scroll-thumb: #4a4a4a;
  --scroll-track: #181818;
  --pill-hover: #dcdcdc;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--sans);
}

html.skip-intro .intro {
  display: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
}

.intro__name,
.intro__role {
  margin: 0;
  text-align: center;
}

.intro__name {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  animation: intro-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.intro__role {
  margin-top: 0.85rem;
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: lowercase;
  animation: intro-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.intro.is-out {
  animation: intro-out 0.95s ease 0.05s forwards;
  pointer-events: none;
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: scale(1.14) translateY(18px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
  }
}

.shell {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "stage";
}

.topbar {
  display: none;
}

.nav {
  grid-area: stage;
  position: relative;
  z-index: 20;
  justify-self: start;
  align-self: center;
  margin-left: var(--nav-left);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.75rem;
  width: max-content;
  max-width: calc(100vw - var(--nav-left) - var(--gap));
  height: 70%;
  min-width: 0;
  padding: 1rem 1.2rem var(--caption-space) 1.15rem;
  background: var(--nav-fill);
  overflow: hidden;
  pointer-events: none;
}

.nav a,
.nav button {
  pointer-events: auto;
}

.gallery {
  grid-area: stage;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2.5px;
  padding: 0 var(--gap) 0 calc(var(--nav-left) + 2.5px);
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.gallery:active {
  cursor: grabbing;
}

.gallery:focus {
  outline: none;
}

.photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  height: 70%;
  margin: 0;
}

.photo picture {
  display: contents;
}

.photo img {
  display: block;
  height: calc(100% - 2.45rem);
  width: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.photo figcaption {
  align-self: flex-start;
  margin: 0;
  padding-top: 0.35rem;
  max-width: 75%;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
}

.nav__name {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}

.nav__name--side {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.nav__categories {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.nav__categories a {
  display: block;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.nav__categories a.is-active {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav__about {
  margin-top: 0.85rem;
}

.nav__foot {
  margin-top: auto;
}

.nav__copyright {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
}

.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  pointer-events: auto;
}

.theme-switch__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 1.3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
}

html[data-theme="dark"] .theme-toggle {
  background: #5a5a5a;
}

.theme-toggle__thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

html[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(1.05rem);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.pill:hover,
.pill:focus-visible {
  background: var(--pill-hover);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: auto;
}

.pill--current {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.pill--current:hover,
.pill--current:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 800px) {
  .shell {
    grid-template-rows: var(--topbar-height) minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "stage";
  }

  .topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--nav-pad);
    background: var(--bg);
    z-index: 50;
  }

  body.menu-open .topbar {
    background: transparent;
  }

  body.menu-open .nav__name--bar {
    visibility: hidden;
  }

  .nav__name--side {
    display: block;
  }

  .nav__categories a {
    white-space: normal;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 1.35rem;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle__bars {
    position: relative;
  }

  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle__bars::before {
    top: -6px;
  }

  .menu-toggle__bars::after {
    top: 6px;
  }

  body.menu-open .menu-toggle__bars {
    background: transparent;
  }

  body.menu-open .menu-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.menu-open .menu-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
    min-width: 0;
    min-height: 100dvh;
    margin: 0;
    padding: 5.25rem var(--nav-pad) 2rem;
    background: var(--bg);
    overflow: auto;
    pointer-events: auto;
  }

  body.menu-open .nav {
    display: flex;
    justify-content: space-between;
    gap: 0;
  }

  .nav__foot {
    margin-top: auto;
  }

  .nav__categories {
    gap: 0.85rem;
  }

  .nav__categories a {
    font-size: 1rem;
  }

  .gallery {
    align-items: center;
    padding: 0.65rem 0.5rem 1.1rem;
  }

  .photo {
    height: auto;
    max-height: 100%;
    max-width: 100%;
  }

  .photo img {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - var(--topbar-height) - 3.75rem);
  }

  .photo figcaption {
    padding: 0.75rem 0.2rem 0.55rem;
    line-height: 1.5;
  }

  .pill {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after,
  .theme-toggle__thumb,
  .intro__name,
  .intro__role,
  .intro.is-out {
    animation: none;
    transition: none;
    filter: none;
    transform: none;
  }

  .about-panel.is-active,
  .about-panel.is-out {
    animation: none;
    transform: none;
  }

  .intro {
    display: none;
  }
}

html.page-about,
html.page-about body {
  height: 100%;
  overflow: hidden;
}

html.page-about .shell {
  height: 100%;
}

html.page-about .about-main {
  grid-area: stage;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  isolation: isolate;
  max-width: none;
  margin: 0;
  padding: 0 var(--gap) 0;
  overflow: hidden;
  min-height: 0;
}

.about-scroll {
  grid-area: 1 / 1;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-inner {
  width: min(42rem, 100%);
  padding-top: var(--about-align, 4.5rem);
  padding-bottom: 10rem;
  text-align: center;
}

.about-panel {
  padding-bottom: 4rem;
  scroll-margin-top: var(--about-align, 4.5rem);
}

html.page-about .about-fade {
  grid-area: 1 / 1;
  pointer-events: none;
  z-index: 2;
}

html.page-about .about-fade--in {
  align-self: start;
  height: 7rem;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
}

html.page-about .about-fade--out {
  align-self: end;
  height: 11rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 48%,
    #fff 82%
  );
}

html[data-theme="dark"] .about-fade--in {
  background: linear-gradient(to bottom, #181818, rgba(24, 24, 24, 0));
}

html[data-theme="dark"] .about-fade--out {
  background: linear-gradient(
    to bottom,
    rgba(24, 24, 24, 0) 0%,
    rgba(24, 24, 24, 0.7) 48%,
    #181818 82%
  );
}

@keyframes about-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes about-in {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes about-in-prev {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes about-out {
  to {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes about-out-prev {
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

.about-panel.is-active[data-dir="prev"] {
  animation-name: about-in-prev;
}

.about-panel.is-out[data-dir="prev"] {
  animation-name: about-out-prev;
}

.about-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about-quote {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.02rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.65;
}

.about-quote p {
  margin: 0;
}

.about-attrib {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.about-accolades {
  max-width: none;
  margin: 0 0 2rem;
  text-align: center;
}

.about-accolades .about-h2 {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.about-accolades__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.25rem;
}

.about-accolades .about-pull {
  margin: 0;
  max-width: none;
}

.about-accolades .about-pull p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 72%, var(--bg));
}

.about-accolades .about-pull footer {
  font-size: 0.72rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@media (min-width: 701px) {
  .about-accolades__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-accolades .about-pull p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 72%, var(--bg));
}

.about-accolades .about-pull footer {
  font-size: 0.72rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.about-h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.about-copy {
  margin: 0 auto 1.1rem;
  max-width: 36rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

.about-see {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.about-see a {
  color: var(--ink);
}

.about-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0 0;
  justify-items: center;
}

.about-figure {
  margin: 0;
}

.about-figure picture {
  display: block;
}

.about-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(52vh, 28rem);
}

.about-honors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-honors .about-h2 {
  margin-top: 0;
}

.about-honors .about-copy {
  max-width: none;
}

.about-honors__photos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5px;
  width: 100%;
}

.about-honors__photos .about-figure {
  flex: 1 1 0;
  min-width: 0;
}

.about-honors__photos img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.about-copyright {
  margin: 4.5rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

@media (min-width: 801px) {
  html.page-about .nav {
    position: fixed;
    top: 15vh;
    height: 70vh;
    margin-left: var(--nav-left);
  }
}

@media (max-width: 800px) {
  html.page-about .about-main {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    padding-top: 0;
  }

  .about-inner {
    padding-top: 1.25rem;
  }

  .about-portraits {
    grid-template-columns: 1fr;
  }
}
