@font-face {
  font-family: "Host Grotesk";
  src: url("assets/fonts/HostGrotesk-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("assets/fonts/HostGrotesk-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #111111;
  --cursor-rgb: 40, 72, 255;
  --font-interface: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --muted: #8c8c87;
  --line: #141414;
  --surface: #ffffff;
  --surface-soft: #e8e8e4;
  --header-h: 52px;
  --footer-h: 41px;
  --max: 1920px;
}

:root[data-theme="black"] {
  --paper: #050505;
  --ink: #f5f5f2;
  --cursor-rgb: 216, 245, 31;
  --muted: #8c8c88;
  --line: #f5f5f2;
  --surface: #141414;
  --surface-soft: #1f1f1f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
  transition:
    background 180ms ease,
    color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button {
    cursor: none;
  }
}

body[data-page="home"] {
  padding-bottom: var(--footer-h);
}

body::selection {
  background: var(--ink);
  color: var(--paper);
}

.is-transitioning {
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

video,
.media-video {
  pointer-events: none;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none;
}

.media--png {
  background: #fff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding: 9px 18px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-interface);
}

.site-header__identity {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.brand,
.nav a,
.header-contact,
.site-footer,
.project-card__meta,
.archive-row,
.contact-links,
.footer-filters__button {
  font-size: clamp(15px, 1.12vw, 22px);
  line-height: 1.18;
}

.brand {
  font-weight: 800;
  line-height: 1.18;
  white-space: nowrap;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.theme-toggle__button {
  appearance: none;
  display: block;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.theme-toggle__button:hover,
.theme-toggle__button:focus-visible {
  transform: scale(1.08);
}

:root[data-theme="black"] .theme-toggle__button {
  border-color: var(--ink);
  background: var(--ink);
}

.mobile-header-button,
.mobile-home-cube,
.mobile-menu-toggle,
.mobile-menu,
.mobile-footer-archive {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 16px;
  color: var(--muted);
  text-align: center;
}

.nav a:hover,
.nav a.is-active,
.header-contact:hover,
.header-contact.is-active {
  color: var(--ink);
}

.header-contact {
  color: var(--muted);
}

.project-detail-title {
  justify-self: center;
  font-size: clamp(15px, 1.12vw, 22px);
  font-weight: 400;
  text-align: center;
}

.project-close {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}

.project-close::before,
.project-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform-origin: center;
}

.project-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

main {
  max-width: var(--max);
  margin: 0 auto;
}

.site-header,
main,
.site-footer {
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-content-exiting body > main,
.is-content-exiting body > .site-footer {
  opacity: 0.74;
  filter: blur(9px);
}

.is-content-entering body > main,
.is-content-entering body > .site-footer {
  opacity: 0.86;
  filter: blur(7px);
}

.soft-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cursor-rgb), 0.94) 0 28%, rgba(var(--cursor-rgb), 0.58) 44%, rgba(var(--cursor-rgb), 0.16) 70%, transparent 100%);
  color: var(--paper);
  filter: blur(0.2px);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: normal;
  transition:
    opacity 160ms ease,
    width 180ms ease,
    height 180ms ease;
}

.soft-cursor.is-visible {
  opacity: 1;
}

.soft-cursor.is-active {
  width: 118px;
  height: 118px;
}

.page-transition {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 140;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  isolation: isolate;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transform: scale(1);
  transition:
    opacity var(--transition-in-ms, 640ms) cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter var(--transition-in-ms, 640ms) cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter var(--transition-in-ms, 640ms) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--transition-in-ms, 640ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition.is-covering,
.page-transition.is-complete {
  opacity: 0.95;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: scale(1.012);
}

.page-transition.is-revealing {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transform: scale(1.02);
  transition-duration: var(--transition-out-ms, 760ms);
}

.project-exit-transition {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
  opacity: 1;
  filter: blur(0) saturate(1);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-exit-transition.is-blurring-out {
  opacity: 0;
  filter: blur(22px) saturate(0.85);
  transform: scale(1.018);
}

.project-exit-transition .site-header {
  position: relative;
  z-index: 1;
}

.project-exit-transition .project-detail-footer {
  position: fixed;
}

.page-transition--project-return {
  z-index: 170;
}

.home-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000000;
  color: #ffffff;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: scale(1);
  transition:
    opacity 1800ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 1800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1800ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1800ms ease;
}

.home-intro.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-intro.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-intro.is-disintegrating {
  background-color: rgba(0, 0, 0, 0);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.035);
}

.home-intro__fluid {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition:
    opacity 1450ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1450ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-intro.is-disintegrating .home-intro__fluid {
  opacity: 0;
  filter: blur(26px);
  transform: scale(1.035);
}

.home-intro__fluid-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.home-intro__text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16em;
  font-size: clamp(22px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 650;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-intro__line {
  display: block;
  min-height: 1.05em;
  white-space: nowrap;
}

.home-intro__line--name {
  text-transform: uppercase;
}

.home-intro__line--works {
  font-size: 0.44em;
  line-height: 1;
  font-weight: 650;
  text-transform: lowercase;
}

.home-intro.is-closing .home-intro__text {
  transform: translateY(-14px);
}

.home-intro.is-disintegrating .home-intro__text {
  opacity: 0;
}

.home-intro__cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.95em;
  margin-left: 0.12em;
  background: currentColor;
  vertical-align: -0.1em;
  animation: homeIntroBlink 920ms steps(1, end) infinite;
}

@keyframes homeIntroBlink {
  50% {
    opacity: 0;
  }
}

.home-gallery {
  padding: 0 18px 18px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(var(--bento-columns, 4), minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.bento-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.bento-card {
  display: block;
  width: 100%;
}

.bento-card[hidden] {
  display: none;
}

.bento-card a {
  position: relative;
  display: block;
  overflow: hidden;
  background: transparent;
}

.bento-card img {
  width: 100%;
  height: auto;
  filter: saturate(0.98);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.bento-card video {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.98);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.bento-card:hover img,
.bento-card:hover video {
  transform: scale(1.025);
  filter: saturate(1.12) contrast(1.02);
}

.bento-card__label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-interface);
  font-size: clamp(15px, 1.12vw, 22px);
  line-height: 1;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover .bento-card__label,
.bento-card:focus-within .bento-card__label {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 18px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-interface);
}

.site-footer--filters {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  min-height: var(--footer-h);
  max-width: none;
  justify-content: center;
  background: var(--paper);
}

.footer-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 16px;
}

.footer-filters__button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  line-height: 1.18;
  cursor: pointer;
}

.footer-filters__button:hover,
.footer-filters__button.is-active {
  color: var(--ink);
}

.featured-section,
.page-intro,
.text-page,
.archive-page {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2,
.page-intro h1,
.archive-head h1,
.text-page h1 {
  font-size: clamp(52px, 10vw, 168px);
  line-height: 0.86;
  font-weight: 500;
}

.section-heading a {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-grid--all {
  padding: 0 18px 72px;
}

.project-card {
  min-width: 0;
}

.project-card a {
  display: block;
}

.project-card img,
.project-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.project-card:hover img,
.project-card:hover video {
  filter: saturate(1.15) contrast(1.05);
  transform: translateY(-2px);
}

body[data-page="projects"] {
  overflow: hidden;
}

.project-detail {
  max-width: none;
}

.project-viewer {
  height: calc(100svh - var(--header-h) - var(--footer-h));
  overflow: hidden;
  background: var(--paper);
}

.project-viewer__track {
  display: flex;
  gap: 18px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: e-resize;
}

.project-viewer__track::-webkit-scrollbar {
  display: none;
}

.project-slide {
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.project-slide img,
.project-slide video {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.project-detail-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-interface);
}

.project-detail-footer:focus {
  outline: none;
}

.project-detail-footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--footer-h);
  padding: 8px 18px 10px;
  font-size: clamp(15px, 1.12vw, 22px);
}

.project-detail-footer__bar span:first-child {
  justify-self: start;
}

.project-detail-footer__bar span:last-child {
  grid-column: 2;
  justify-self: center;
}

.project-detail-footer__panel {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(360px, 1fr);
  align-items: start;
  gap: 48px;
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  opacity: 0;
  transition:
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-detail-footer:hover .project-detail-footer__panel,
.project-detail-footer:focus-within .project-detail-footer__panel,
.project-detail-footer.is-open .project-detail-footer__panel {
  max-height: 240px;
  padding: 18px 18px 24px;
  opacity: 1;
}

.project-detail-footer__panel p,
.project-detail-footer__panel dl {
  margin: 0;
  font-size: clamp(15px, 1.12vw, 22px);
  line-height: 1.1;
}

.project-detail-footer__info {
  display: grid;
}

.project-detail-footer__panel dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(220px, 0.64fr);
  gap: 2px 28px;
}

.project-detail-footer__panel dl div {
  display: contents;
}

.project-detail-footer__panel dt,
.project-detail-footer__panel dd {
  margin: 0;
}

.project-detail-footer__panel dt {
  color: var(--ink);
  font-weight: 700;
}

.project-detail-footer__panel dd,
.project-detail-footer__panel p {
  font-weight: 400;
}

.project-detail-footer__panel a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
}

.project-card h3 {
  margin-top: 4px;
  font-size: clamp(32px, 4vw, 74px);
  line-height: 0.9;
  font-weight: 500;
}

.project-card p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.05;
}

.page-intro {
  min-height: 38svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.about-layout,
.contact-layout {
  min-height: calc(100svh - 116px);
  display: grid;
  align-content: space-between;
  gap: 56px;
}

.about-hero {
  display: contents;
}

.about-fluid-panel {
  display: none;
}

body[data-page="about"] .text-page h1 {
  line-height: 0.98;
}

.about-copy,
.contact-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.about-copy p {
  max-width: 920px;
  font-size: clamp(26px, 3vw, 52px);
  line-height: 1.06;
}

.about-portrait {
  align-self: start;
  justify-self: end;
  width: min(100%, calc(75svh * 2435 / 3629));
  margin: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75svh;
  object-fit: cover;
  object-position: 50% 35%;
}

.about-copy h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 24%, transparent);
  font-size: clamp(20px, 2vw, 34px);
}

.about-experience {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.about-experience h2 {
  display: block;
  width: 100%;
  margin: 0 0 1px;
  padding: 8px 10px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.experience-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(104px, 0.18fr) minmax(168px, 0.26fr) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 10px 13px;
  background: var(--paper);
}

.experience-item__index {
  display: none;
}

.experience-item__type {
  justify-self: start;
  padding: 4px 7px 5px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-interface);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1;
}

:root[data-theme="black"] .experience-item__type {
  background: transparent;
  color: var(--ink);
}

.experience-item__period {
  color: var(--muted);
  font-family: var(--font-interface);
  font-size: clamp(15px, 1.25vw, 21px);
  font-weight: 400;
  line-height: 1.08;
}

.experience-item__main {
  min-width: 0;
}

.experience-item__title {
  font-size: clamp(18px, 1.55vw, 28px);
  font-weight: 800;
  line-height: 1.05;
}

.experience-item__organization,
.experience-item__description {
  max-width: 680px;
  margin-top: 3px;
  font-size: clamp(15px, 1.1vw, 20px);
  line-height: 1.2;
}

.experience-item__description {
  color: var(--muted);
}

.archive-head {
  min-height: auto;
  padding-bottom: 20px;
}

.archive-marquee {
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}

.archive-marquee__track {
  display: flex;
  width: max-content;
  padding: 7px 0 9px;
  font-family: var(--font-interface);
  font-size: clamp(22px, 3vw, 48px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  animation: archiveMarquee 14s linear infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.archive-marquee__group {
  display: flex;
  flex: 0 0 auto;
  gap: 24px;
  padding-right: 24px;
}

.archive-marquee__track span {
  display: block;
}

@keyframes archiveMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.333333%, 0, 0);
  }
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 34vw);
  gap: 20px;
  align-items: start;
  padding-top: 0;
}

.archive-table {
  border-top: 1px solid var(--line);
}

.archive-row {
  display: grid;
  grid-template-columns: 74px minmax(180px, 1.2fr) minmax(120px, 0.7fr) minmax(150px, 0.8fr);
  gap: 14px;
  min-height: 36px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.archive-row--year-gap {
  margin-top: 28px;
}

.archive-row:not(.archive-row--head):hover,
.archive-row:not(.archive-row--head):focus {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.archive-row--head {
  color: var(--muted);
}

.archive-preview {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  justify-self: stretch;
  margin: 0;
  --archive-preview-max-height: min(72svh, calc(100svh - var(--header-h) - var(--footer-h) - 88px));
}

.archive-preview__media {
  width: 100%;
  max-width: 100%;
  max-height: var(--archive-preview-max-height);
  aspect-ratio: 3 / 4;
  height: auto;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-soft);
}

.archive-preview__media img,
.archive-preview__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-preview figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 18px);
}

.contact-layout h1 {
  max-width: 1200px;
}

.contact-links {
  align-items: start;
}

.contact-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 4vw, 72px);
  line-height: 1.04;
}

.contact-links a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-height: 760px) {
  .archive-preview {
    --archive-preview-max-height: min(68svh, calc(100svh - var(--header-h) - var(--footer-h) - 72px));
  }
}

@media (min-width: 901px) {
  .about-layout {
    gap: 0;
  }

  .about-hero {
    position: relative;
    display: block;
    padding-bottom: 56px;
    overflow: visible;
  }

  .about-hero h1 {
    position: relative;
    z-index: 1;
    pointer-events: none;
  }

  .about-fluid-panel {
    position: absolute;
    top: -18px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    overflow: hidden;
    background: transparent;
    pointer-events: auto;
    mix-blend-mode: screen;
  }

  .about-fluid-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 900px) {
  .site-header,
  .about-copy,
  .archive-head,
  .archive-layout,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 10px;
  }

  .site-header__identity,
  .site-header__right,
  .nav,
  .header-contact,
  .project-detail-title {
    justify-self: start;
  }

  .nav {
    justify-content: flex-start;
  }

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

  .archive-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .archive-row span:nth-child(3),
  .archive-row span:nth-child(4) {
    display: none;
  }

  .archive-preview {
    position: static;
  }

  .about-experience h2 {
    width: 100%;
  }

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

  .experience-item__period {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .experience-item__main {
    grid-column: 1 / -1;
  }

  .project-viewer {
    height: calc(100svh - var(--header-h) - var(--footer-h));
  }

  .project-viewer__track {
    gap: 12px;
  }

  .project-slide {
    width: 86vw;
  }

  .project-slide img,
  .project-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

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

  .project-detail-footer:hover .project-detail-footer__panel,
  .project-detail-footer:focus-within .project-detail-footer__panel,
  .project-detail-footer.is-open .project-detail-footer__panel {
    max-height: 340px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 57px;
    --footer-h: 44px;
    --mobile-line: 1.5px;
  }

  body {
    font-size: 16px;
  }

  body.is-mobile-menu-open {
    overflow: hidden;
  }

  .is-content-exiting body > main,
  .is-content-exiting body > .site-footer,
  .is-content-entering body > main,
  .is-content-entering body > .site-footer {
    opacity: 0.84;
    filter: blur(8px);
  }

  .is-content-entering body > main,
  .is-content-entering body > .site-footer {
    opacity: 0.9;
    filter: blur(5px);
  }

  .site-header {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 0;
    min-height: var(--header-h);
    padding: 0;
    border-bottom-width: var(--mobile-line);
  }

  .site-header__identity {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    text-align: center;
  }

  .brand {
    display: block;
    max-width: 100%;
    overflow: visible;
    font-size: 0;
    font-weight: 400;
    line-height: 1.16;
    text-overflow: ellipsis;
    text-transform: none;
  }

  .brand::after {
    content: attr(data-mobile-label);
    display: block;
    font-size: clamp(22px, 6.8vw, 31px);
    font-weight: 400;
    line-height: 1.16;
  }

  .nav,
  .site-header__right,
  .header-contact {
    display: none;
  }

  .mobile-header-button,
  .mobile-home-cube,
  .mobile-menu-toggle {
    display: block;
  }

  .mobile-home-cube {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    display: grid;
    place-items: center;
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-home-cube::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    border: var(--mobile-line) solid var(--ink);
    background: var(--ink);
  }

  .mobile-header-button {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    border-right: var(--mobile-line) solid var(--line);
  }

  .mobile-mark-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow:
      -12px -10px 0 var(--ink),
      0 -10px 0 var(--ink),
      12px -10px 0 var(--ink),
      -6px 2px 0 var(--ink),
      6px 2px 0 var(--ink),
      0 14px 0 var(--ink);
    transform: translate(-50%, -50%);
  }

  .mobile-home-button {
    display: grid;
    place-items: center;
  }

  .mobile-home-button img {
    width: 27px;
    height: 27px;
    display: block;
  }

  :root[data-theme="black"] .mobile-home-button img {
    filter: invert(1);
  }

  .mobile-header-button,
  .mobile-menu-toggle {
    position: relative;
    padding: 0;
    background: transparent;
    color: var(--ink);
  }

  .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    border: 0;
  }

  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 24px;
    height: var(--mobile-line);
    background: var(--ink);
    transform: translateX(-50%);
    transition:
      top 180ms ease,
      transform 180ms ease,
      box-shadow 180ms ease;
  }

  .mobile-menu-toggle::before {
    top: calc(50% - 7px);
    box-shadow: 0 7px 0 var(--ink), 0 14px 0 var(--ink);
  }

  .mobile-menu-toggle::after {
    top: calc(50% + 7px);
    opacity: 0;
  }

  .mobile-menu-toggle.is-open::before {
    top: 50%;
    box-shadow: none;
    transform: translateX(-50%) rotate(45deg);
  }

  .mobile-menu-toggle.is-open::after {
    top: 50%;
    opacity: 1;
    transform: translateX(-50%) rotate(-45deg);
  }

  .project-detail-title {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 10px 3px;
    font-size: min(clamp(22px, 6.8vw, 31px), var(--project-title-mobile-size, 31px));
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="projects"] .site-header__identity,
  body[data-page="projects"] .project-close {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 80;
    display: grid;
    border: var(--mobile-line) solid var(--line);
    border-top: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-interface);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu__theme {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: var(--mobile-line) solid var(--line);
  }

  .mobile-menu__theme-button,
  .mobile-menu__link {
    min-height: 92px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(17px, 5.5vw, 26px);
    line-height: 1.16;
    text-align: center;
  }

  .mobile-menu__theme-button {
    min-height: 46px;
    color: var(--muted);
  }

  .mobile-menu__theme-button + .mobile-menu__theme-button {
    border-left: var(--mobile-line) solid var(--line);
  }

  .mobile-menu__theme-button.is-active {
    background: var(--muted);
    color: var(--paper);
  }

  .mobile-menu__link {
    display: grid;
    align-items: center;
    border-bottom: var(--mobile-line) solid var(--line);
  }

  .mobile-menu__link:last-child {
    border-bottom: 0;
  }

  .home-gallery {
    padding: 0 12px calc(var(--footer-h) + 14px);
  }

  .bento-grid {
    gap: 12px;
  }

  .bento-column {
    gap: 12px;
  }

  .bento-card__label {
    display: none;
  }

  .site-footer--filters {
    min-height: var(--footer-h);
    padding: 0;
    border-top-width: var(--mobile-line);
  }

  .footer-filters {
    display: none;
  }

  .mobile-footer-archive {
    display: grid;
    min-height: var(--footer-h);
    align-items: center;
    color: var(--ink);
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.16;
    padding-bottom: 2px;
    text-align: center;
  }

  body[data-page="projects"] {
    overflow: hidden;
  }

  body[data-page="projects"] .project-viewer {
    height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="projects"] .project-viewer__track {
    flex-direction: column;
    height: auto;
    gap: 18px;
    overflow: visible;
    padding: 0 18px 18px;
    scroll-snap-type: none;
    cursor: default;
  }

  body[data-page="projects"] .project-slide {
    width: 100%;
    height: auto;
  }

  body[data-page="projects"] .project-slide img,
  body[data-page="projects"] .project-slide video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .project-detail-footer__bar {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 10px;
    min-height: var(--footer-h);
    padding-top: 0;
    padding-bottom: 0;
    font-size: clamp(17px, 5.1vw, 22px);
    line-height: 1.16;
  }

  .project-detail-footer__bar span:first-child {
    min-width: 0;
    overflow: hidden;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-detail-footer__bar span:last-child {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(14px, 4.1vw, 18px);
    line-height: 1.16;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-detail-footer__bar::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
    transform: rotate(45deg) translateY(4px);
  }

  .project-detail-footer.is-open .project-detail-footer__bar::after {
    transform: rotate(225deg) translateY(-4px);
  }

  .project-detail-footer__panel {
    gap: 22px;
    font-family: var(--font-interface);
  }

  .project-detail-footer:hover .project-detail-footer__panel,
  .project-detail-footer:focus-within .project-detail-footer__panel {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
  }

  .project-detail-footer.is-open .project-detail-footer__panel {
    max-height: calc(100svh - var(--header-h) - 96px);
    padding-top: 24px;
    padding-bottom: 26px;
    opacity: 1;
    overflow-y: auto;
  }

  .project-detail-footer__panel p {
    order: -1;
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.18;
  }

  .project-detail-footer__panel dl {
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.08;
  }

  .home-gallery,
  .featured-section,
  .page-intro,
  .text-page,
  .archive-page,
  .project-grid--all,
  .site-footer,
  .project-detail-footer__bar,
  .project-detail-footer__panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .project-detail-footer__panel dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-detail-footer__panel dl div {
    display: grid;
    gap: 1px;
  }

  .project-detail-footer__panel dt {
    line-height: 1.12;
  }

  .project-detail-footer__panel dd {
    line-height: 1.14;
  }

}
