:root {
  --bg: #050607;
  --fg: #eeede8;
  --muted: #aaa9a4;
  --line: #687a86;
  --accent: #05dddd ;
  --secondary: #687a86;
  --panel: #404447;
  font-family: "Geist Mono", monospace, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: 0;
  cursor: url(/assets/cursor.svg), auto;
}
button,
a {
  transition: color 0.5s;
  font: inherit;
  color: var(--secondary);
  border-radius: 10px;
  cursor: url(/assets/cursor-select.svg) 10 10, pointer;
}
button:hover {
  color: var(--accent);
}
a {
  color: var(--secondary);
  text-decoration: none;
}
a:hover {
  transition: color 0.5s;
  color: var(--accent);
}
button {
  border: 0;
  background: none;
}
.site-header {
  border-bottom: 1px solid var(--muted);
  padding: 1.25rem 1rem;
}
.nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}
.bio-toggle,
.language-switch button,
.filter {
  cursor: url(/assets/cursor-select.svg) 10 10, pointer;
}
.bio-toggle {
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.chevron {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 15px;
  font-weight: 800;
  line-height: 0.7;
  transition: transform 0.3s;
}
.bio-toggle[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 12px;
}
.language-switch span {
  color: var(--muted);
}
.language-switch button {
  padding: 0.2rem;
}
.language-switch button.active {
  color: var(--accent);
  font-weight: 700;
}
.bio-cascade {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.35s,
    opacity 0.25s;
}
.bio-cascade.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.bio-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.bio-copy {
  min-width: 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.4;
  margin-left: 0.75rem;
  margin-right: 2rem;
}
.portrait-trigger {
  padding: 0;
  color: var(--secondary);
  text-decoration-style: dotted;
  text-underline-offset: 0.2em;
  cursor: url(/assets/cursor-zoom-in.svg) 5 5, zoom-in;
}
.extras-toggle {
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--secondary);
  cursor: url(/assets/cursor-select.svg) 10 10, pointer;
  text-align: left;
}
.extras-chevron {
  display: inline-block;
  margin-right: 0.2rem;
  font-weight: 800;
  line-height: 0.7;
  transition: transform 0.3s;
}
.extras-toggle[aria-expanded="true"] .extras-chevron {
  transform: rotate(90deg);
}
.extras-cascade {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.35s,
    opacity 0.25s;
}
.extras-cascade.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.extras-details-inner {
  overflow: hidden;
  margin-left: 0.75rem;
}
.extras-section {
  margin: 1.5rem 0 1.5rem;
}
.extras-section p {
  margin: 0 0 0.5rem;
}
.extras-year {
  color: var(--panel);
}
#workshop-details {
  margin-bottom: 1rem;
}
.bio-contact {
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  margin-left: 0.75rem;
}
.bio-contact a {
  display: block;
  text-decoration: none;
}
.bio-contact a span {
  display: inline-block;
  white-space: nowrap;
}
.bio-contact a .email-layout {
  display: none;
  white-space: normal;
}
.bio-contact p span {
  display: inline-block;
  white-space: pre;
}
.home-main,
.project-main {
  min-height: 70vh;
  padding: 1rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem 0 0.5rem;
  line-height: 1.5;
}
.filter {
  flex: none;
  font-size: 13px;
  color: var(--secondary);
  background: transparent;
  transition: border-color 0.5s, color 0.5s, background-color 0.5s;
}
.filter:not(:last-child)::after {
  content: " ·";
  color: var(--secondary);
}
.filter.filter-row-end::after {
  visibility: hidden;
}
.filter:hover {
  color: var(--accent);
}
.filter.active {
  color: var(--accent);
}
.filter.active:hover {
  cursor: url(/assets/cursor.svg), auto;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1rem 0 1rem 0;
}
.project-card {
  min-width: 0;
}
.project-thumb {
  display: block;
  overflow: hidden;
  background: var(--panel);
}
.project-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.4/1;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.5s;
}
.project-thumb:hover img {
  transform: scale(1.025);
}
.project-meta {
  display: none;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 12px;
  line-height: 1.35;
}
.project-meta p,
.project-meta h2 {
  margin: 0;
}
.project-meta h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.back-link {
  display: inline-block;
  color: var(--secondary);
  font-size: 12px;
  text-decoration: none;
}
.project-intro {
  display: block;
  gap: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--muted);
  padding-top: 1.25rem;
}
.project-intro h1 {
  min-width: 0;
  margin: 0.35rem 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}
.neuro-title-narrow {
  display: none;
}
.project-intro p {
  font-size: 14px;
  line-height: 1.65;
}
.project-description {
  margin-top: 2rem;
}
#collaboration-toggle {
  font-size: 14px;
}
.masonry {
  columns: 1;
  column-gap: 1.5rem;
  margin-top: 2rem;
}
.masonry img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: 10px;
}
.gallery-image {
  display: block;
  width: 100%;
  padding: 0;
  cursor: url(/assets/cursor-zoom-in.svg) 5 5, zoom-in;
}
.gallery-image img {
  margin-bottom: 1rem;
}
.gallery-video {
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
  justify-content: flex-start;
  cursor: url(/assets/cursor-zoom-in.svg) 5 5, zoom-in;
  break-inside: avoid;
}
.gallery-video-frame {
  position: relative;
  width: 100%;
}
.gallery-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.video-mute {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0.5rem;
  color: var(--secondary);
  cursor: pointer;
}
.video-mute[hidden] {
  display: none;
}
.video-mute:hover {
  color: var(--accent);
}
.video-mute svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.video-mute[aria-pressed="true"] .video-sound-on,
.video-mute[aria-pressed="false"] .video-sound-off {
  display: none;
}
.gallery-video .video-mute {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
}
.video-controls {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--fg);
  pointer-events: none;
}
.video-controls[hidden] {
  display: none;
}
.video-play {
  display: grid;
  position: absolute;
  bottom: 0.5rem;
  left: 0.3rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0.35rem;
  color: var(--secondary);
  cursor: url(/assets/cursor-select.svg) 5 5, pointer;
  pointer-events: auto;
}
.video-play svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.video-play[aria-pressed="true"] .video-play-icon,
.video-play[aria-pressed="false"] .video-pause-icon {
  display: none;
}
.video-progress {
  position: absolute;
  bottom: -0.3rem;
  left: 0;
  display: block;
  width: 100%;
  height: 0.75rem;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  --video-progress-played: var(--secondary);
  cursor: url(/assets/cursor-select.svg) 5 5, pointer;
  pointer-events: auto;
}
.video-progress::-webkit-slider-runnable-track {
  height: 0.1875rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--video-progress-played) var(--progress, 0%),
    var(--panel) var(--progress, 0%)
  );
}
.video-progress::-moz-range-track {
  height: 0.1875rem;
  border-radius: 999px;
  background: var(--panel);
}
.video-progress::-moz-range-progress {
  height: 0.1875rem;
  border-radius: 999px;
  background: var(--video-progress-played);
}
.video-progress::-webkit-slider-thumb {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.15625rem;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--video-progress-played);
}
.video-progress::-moz-range-thumb {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--video-progress-played);
}
.video-progress:hover {
  --video-progress-played: var(--accent);
}
.video-controls button:focus-visible,
.video-progress:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gallery-image:focus-visible,
.gallery-video video:focus-visible,
.lightbox button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.lightbox {
  position: fixed;
  grid-template-columns: 2.5rem minmax(0, max-content) 2.5rem;
  align-items: center;
  width: fit-content;
  max-width: 96vw;
  max-height: 96dvh;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3rem 1rem 1rem;
  background: var(--bg);
  color: var(--fg);
}
.lightbox[open] {
  display: grid;
}
.lightbox.portrait-view {
  grid-template-columns: max-content;
}
.lightbox.portrait-view .lightbox-previous,
.lightbox.portrait-view .lightbox-next {
  display: none;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 88%);
}
.lightbox figure {
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  margin: 0;
  text-align: center;
}
.lightbox-viewport {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  height: 80dvh;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-controls {
  inset: 0;
}
.lightbox-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox-mute {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}
.lightbox .video-mute {
  padding: 0.5rem;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: url(/assets/cursor-zoom-in.svg), zoom-in;
  touch-action: none;
  user-select: none;
  transition: transform 0.2s ease;
}
.lightbox-image.zoomed {
  cursor: url(assets/cursor-pan.svg), grab;
}
.lightbox-image.dragging {
  cursor: url(/assets/cursor-pan.svg), grab;
  transition: none;
}
.lightbox-caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 12px;
}
.lightbox button {
  padding: 0.25rem;
  color: var(--secondary);
  cursor: url(/assets/cursor-select.svg) 10 10, pointer;
}
.lightbox button:hover {
  color: var(--accent);
}
.lightbox-previous,
.lightbox-next {
  font-size: 2rem;
}
.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.75rem;
  line-height: 1;
}
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  border-top: 1px solid var(--muted);
  padding-top: 1rem;
  font-size: 14px;
}
.project-nav a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.project-nav a:last-child {
  text-align: right;
}
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 1rem;
  border-top: 1px solid var(--muted);
  padding: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: 11px;
}
.site-footer p {
  margin: 0;
}
.project-categories {
  flex: none;
  font-size: 13px;
  background: transparent;
  transition: border-color 0.5s, color 0.5s, background-color 0.5s;
}
.label {
  color: var(--muted);
}
@media (max-width: 420px) {
  .neuro-title-medium {
    display: none;
  }
  .neuro-title-narrow {
    display: inline;
  }
}
@media (min-width: 640px) {
  .site-header {
    padding: 1.75rem;
  }
  .bio-inner {
    grid-template-columns: 1.25fr 0.75fr;
    padding-top: 1.5rem;
  }
  .home-main,
  .project-main {
    padding: 1rem 1.75rem 1rem;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
  }
  .project-card[data-project-slug="logos"]:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 2.25rem) / 2);
  }
  .project-intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    display: grid;
  }
  .project-description {
    margin-top: 0;
  }
  .masonry {
    columns: 2;
  }
  .masonry.has-video {
    display: grid;
    grid-template-columns:
      min(50%, calc(640px * var(--video-ratio, 1))) minmax(0, 1fr);
    align-items: start;
  }
  .masonry.has-video .masonry-videos {
    min-width: 0;
  }
  .masonry.has-video .masonry-images {
    min-width: 0;
    columns: 1;
  }
  .gallery-video-frame {
    width: min(100%, calc(640px * var(--video-ratio, 1)));
  }
  .masonry img {
    margin-bottom: 1.5rem;
    border-radius: 10px;
}
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    margin: 0 1.75rem;
    padding-bottom: 2rem;
  }
  .filters {
    padding: 1rem 0 1rem;
}
  }
@media (max-width: 300px) {
  .bio-contact p span{
    display: block;
    white-space: normal;
  }
  .bio-contact a .email-full {
    display: none;
  }
  .bio-contact a .email-medium {
    display: block;
  }
}
@media (max-width: 150px) {
  .bio-contact a .email-medium {
    display: none;
  }
  .bio-contact a .email-narrow {
    display: block;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
  .home-main,
  .project-main {
    padding: 1rem 2.25rem 1rem 2.25rem;
  }
  .masonry {
    columns: 3;
  }
  .masonry.has-video {
    grid-template-columns:
      min(33.333%, calc(640px * var(--video-ratio, 1))) minmax(0, 1fr);
  }
  .masonry.has-video .masonry-images {
    columns: 2;
    column-gap: 1.5rem;
  }
  .site-footer {
    margin-right: 2.25rem;
    margin-left: 2.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
