@font-face {
  font-family: 'Open Sans';
  font-weight: 300 800;
  font-display: swap;
  src: url(../../OpenSans.woff2) format("woff2");
}

@font-face {
  font-family: 'OpenSans';
  font-weight: 300 800;
  font-display: swap;
  src: url(../../OpenSans.woff2) format("woff2");
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 300 800;
  font-display: swap;
  src: url(../../OpenSans.woff2) format("woff2");
}

@font-face {
  font-family: X;
  font-weight: 300 800;
  font-display: swap;
  src: url(../../OpenSans.woff2) format("woff2");
}

:root {
  --gray1: hsl(0 0% 99%);
  --gray2: hsl(0 0% 97.3%);
  --gray3: hsl(0 0% 95.1%);
  --gray4: hsl(0 0% 93%);
  --gray5: hsl(0 0% 90.9%);
  --gray6: hsl(0 0% 88.7%);
  --gray7: hsl(0 0% 85.8%);
  --gray8: hsl(0 0% 78%);
  --gray9: hsl(0 0% 56.1%);
  --gray10: hsl(0 0% 52.3%);
  --gray11: hsl(0 0% 43.5%);
  --gray12: hsl(0 0% 9%);

  --grayA4: hsl(0 0% 0% / 0.071);
  --grayA6: hsl(0 0% 0% / 0.114);

  --amber9: hsl(39 100% 57%);

  --shadow-large: 0 30px 60px rgba(0, 0, 0, 0.12);
  --shadow-small: 0 5px 10px rgba(0, 0, 0, 0.12);
  --radii-round: 9999px;
  --space-3: 24px;

  --font-body:
    "Open Sans", "OpenSans", "Space Grotesk", X, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

  --fade-edge: rgba(255, 255, 255, 0.00001);
}

.dark {
  --gray1: hsl(0 0% 8.5%);
  --gray2: hsl(0 0% 11%);
  --gray3: hsl(0 0% 13.6%);
  --gray4: hsl(0 0% 15.8%);
  --gray5: hsl(0 0% 17.9%);
  --gray6: hsl(0 0% 20.5%);
  --gray7: hsl(0 0% 24.3%);
  --gray8: hsl(0 0% 31.2%);
  --gray9: hsl(0 0% 43.9%);
  --gray10: hsl(0 0% 49.4%);
  --gray11: hsl(0 0% 62.8%);
  --gray12: hsl(0 0% 93%);

  --grayA4: hsl(0 0% 100% / 0.077);
  --grayA6: hsl(0 0% 100% / 0.129);

  --fade-edge: rgba(22, 22, 22, 0.00001);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--gray1);
  margin: 0;
}

::selection {
  background: #fff9a8;
  color: black;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

em,
i {
  font-family: Georgia, serif;
  font-size: 17px;
}

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

ul {
  padding: 0;
  list-style: none;
}

button,
ul,
ul li {
  margin: 0;
}

button {
  padding: 0;
  background: transparent;
  font-family: var(--font-body);
  border: 0;
}

strong {
  font-weight: 600;
  color: var(--gray12);
}

.vh {
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  width: 1px;
  position: absolute;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  padding-top: 120px;
  padding-bottom: 0;
  margin: 0 auto;
}
.page-wrapper--scroll {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 120px;
}

@media (max-width: 720px) {
  .page-wrapper {
    padding-top: 40px;
  }
}

.bio-section {
  max-width: 672px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 10;
}

@media (max-width: 720px) {
  .bio-section {
    margin: 0 0 24px;
  }
}

.header-bar {
  margin-bottom: 12px;
  height: 28px;
  width: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 400ms ease;
}

.header-bar.visible {
  opacity: 1;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray10);
  text-transform: lowercase;
  user-select: none;
  white-space: nowrap;
}

.meta-dot {
  color: var(--gray9);
  font-size: 12px;
  line-height: 1;
}

.bio-text {
  color: var(--gray12);
  margin-bottom: 0;
  font-size: 25px;
  line-height: 35px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  position: relative;
  user-select: none;
}

@media (max-width: 720px) {
  .bio-text {
    font-size: 23px;
    text-align: justify;
    hyphens: auto;
  }
}

.bio-name {
  color: var(--gray11);
}

.bio-icon {
  display: inline-block;
  vertical-align: middle;
  transform: translate(2px, 4px);
  margin-left: 3px;
  margin-right: 6px;
  width: 24px;
  height: 24px;
}

.mirror-letter {
  transform: scaleX(-1);
  display: inline-block;
}

.italic-letter {
  display: inline-block;
  font-style: italic;
}

.bio-link {
  text-decoration: none;
  color: var(--gray11);
  transition: color 150ms ease;
  border-radius: 4px;
}

.bio-link:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--gray1),
    0 0 0 4px var(--amber9);
}

.bio-link:hover {
  color: var(--gray12);
}

.carousel-section {
  width: 100%;
  height: 340px;
  position: relative;
  margin-top: 64px;
}

@media (hover: none) {
  .carousel-section {
    display: none;
  }
}

@media (max-width: 720px) {
  .carousel-section {
    display: none;
  }
}

.name-svg-overlay {
  max-width: 720px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding-left: 32px;
  padding-right: 32px;
  pointer-events: none;
  overflow: visible;
  color: var(--gray12);
}

.name-svg-overlay path {
  transform: translateZ(0);
  will-change: transform, filter;
  transition:
    transform 0ms linear,
    filter 0ms linear;
  transform-origin: center center;
}

.carousel-inner {
  height: 340px;
  position: relative;
}

.carousel-fade {
  width: 20vw;
  height: 100%;
  position: fixed;
  bottom: 0;
  z-index: 3;
  opacity: 1;
  min-width: 120px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .carousel-fade {
    display: none;
  }
}

.carousel-fade--left {
  background: linear-gradient(to left, var(--fade-edge), var(--gray1));
  -webkit-mask-image: linear-gradient(to right, var(--gray1), var(--fade-edge));
  mask-image: linear-gradient(to right, var(--gray1), var(--fade-edge));
  left: -24px;
}

.carousel-fade--right {
  background: linear-gradient(to right, var(--fade-edge), var(--gray1));
  -webkit-mask-image: linear-gradient(to left, var(--gray1), var(--fade-edge));
  mask-image: linear-gradient(to left, var(--gray1), var(--fade-edge));
  right: 0;
}

.carousel-track {
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0.5;
  will-change: transform;
  transform: translate3d(0, 0, 0) translateZ(0);
  cursor: default;
  position: relative;
  z-index: 1;
}

.dark .carousel-track {
  opacity: 1 !important;
}

.carousel-card {
  --blur: 0px;
  width: auto;
  min-width: 340px;
  list-style: none;
  height: fit-content;
  position: relative;
  overflow: hidden;
  filter: grayscale(1) blur(var(--blur));
  transition: filter 500ms ease;
  transform: translateZ(0);
  outline: 0;
  text-decoration: none;
  display: block;
  flex-shrink: 0;
}

.carousel-card:hover {
  filter: grayscale(0) blur(var(--blur));
}

.carousel-card:hover .card-arrow-btn {
  opacity: 1;
}

.carousel-card img,
.carousel-card video,
.carousel-card canvas {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: var(--gray3);
}

.card-arrow-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.card-arrow-btn svg {
  transform: rotate(-45deg);
  width: 16px;
  height: 16px;
  color: white;
}

.carousel-dupe {
  display: flex;
  gap: 12px;
  align-items: center;
}

@keyframes dock-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(80px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.dock {
  display: flex;
  align-items: flex-end;
  width: auto;
  height: 58px;
  padding-left: 8px;
  padding-right: 8px;
  position: fixed;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-large);
  -webkit-backdrop-filter: blur(100px) saturate(400%) brightness(100%);
  backdrop-filter: blur(100px) saturate(400%) brightness(100%);
  border: 1px solid var(--grayA4);
  bottom: -8px;
  left: 50%;
  border-radius: 9999px;
  z-index: 10;
  /* Off-screen initial position, animated in */
  transform: translate(-50%, -50%) translateY(80px);
  animation: dock-rise 500ms ease forwards 200ms;
}

.dark .dock {
  background: rgba(22, 22, 22, 0.8);
}

@media (max-width: 430px) {
  .dock {
    width: calc(100% - 69px);
    top: unset;
    bottom: 0;
  }
}

.dock-highlight {
  display: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    var(--gray6) 20%,
    var(--gray10) 67.19%,
    rgba(0, 0, 0, 0)
  );
  opacity: 0.2;
  height: 1px;
  position: absolute;
  top: -1px;
  width: 95%;
  z-index: -1;
}

.dark .dock-highlight {
  display: block;
}

.dock-items {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 720px) {
  .dock-items {
    height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.dock-btn {
  --gradient-color-1: var(--gray2);
  --gradient-color-2: var(--gray5);
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 9999px;
  background: var(--gray3);
  position: relative;
  color: var(--gray10);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  background-image: linear-gradient(
    45deg,
    var(--gradient-color-1),
    var(--gradient-color-2),
    var(--gradient-color-1),
    var(--gradient-color-2)
  );
  background-size: 200% 100%;
}

.dock-btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--gray1),
    0 0 0 4px var(--amber9);
}

.dark .dock-btn {
  --gradient-color-1: var(--gray2);
  --gradient-color-2: var(--gray3);
}

.dock-btn svg,
.dock-btn img {
  width: 50%;
  height: 50%;
  pointer-events: none;
  transform-origin: unset !important;
}

.dock-btn-sheen {
  display: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    var(--gray4) 20%,
    var(--gray7) 67.19%,
    rgba(0, 0, 0, 0)
  );
  height: 1px;
  opacity: 0.8;
  position: absolute;
  top: -1px;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  z-index: -1;
}

.dark .dock-btn-sheen {
  display: block;
}

.dock-indicator {
  background: var(--gray7);
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: var(--radii-round);
  bottom: -6px;
  z-index: 1;
  opacity: 0;
  transition: opacity 200ms ease 200ms;
}

.dock-divider {
  opacity: 1;
  height: 36px;
  width: 1px;
  background: var(--grayA6);
  border: 0;
  flex-shrink: 0;
  -webkit-mask-image: linear-gradient(
    0deg,
    transparent,
    #fff 16px,
    #fff calc(100% - 16px),
    transparent
  );
  mask-image: linear-gradient(
    0deg,
    transparent,
    #fff 16px,
    #fff calc(100% - 16px),
    transparent
  );
}

.icon-sun,
.icon-moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.icon-sun {
  opacity: 0;
  transform: scale(0.5);
}

.icon-moon {
  opacity: 1;
  transform: scale(1);
}

.dark .icon-sun {
  opacity: 1;
  transform: scale(1);
}

.dark .icon-moon {
  opacity: 0;
  transform: scale(0.5);
}

.dock-tooltip-popup {
  position: fixed;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  z-index: 1337;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.blend-overlay {
  background: var(--gray1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  transform: translateZ(0);
  mix-blend-mode: darken;
}

.dark .blend-overlay {
  mix-blend-mode: lighten;
}

.noise-canvas-wrap {
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  transform: translateZ(0);
  opacity: 0;
  mix-blend-mode: color-burn;
}

.noise-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hidden {
  display: none;
}

.cursor-none * {
  cursor: none;
}

.cursor-none * * {
  user-select: none;
}

.cursor-moving * {
  cursor: move;
}

.cursor-moving* * {
  user-select: none;
}
