@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c0d0e;
  --panel: #141516;
  --text: #f5f4f1;
  --muted: #adaeae;
  --line: #303133;
  --accent: #ff7545;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 5.4vw, 6rem);
  font-family: "Instrument Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 250px;
  -webkit-font-smoothing: antialiased;
}
button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
button svg,
a svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.shell {
  width: min(calc(100% - var(--gutter) * 2), 85rem);
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1rem;
  z-index: 20;
}
.skip:focus {
  top: 1rem;
}
.masthead {
  position: relative;
  z-index: 2;
  height: 4.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 1.56rem;
  font-weight: 650;
  letter-spacing: -0.065em;
}
.brand-mark {
  position: relative;
  display: inline-grid;
  width: 2.75rem;
  aspect-ratio: 1;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  mask: url("assets/glass-gate.svg") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 43%, #efffff9c 50%, transparent 57%)
    100% 0 / 310% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .is-moving .brand:is(:hover, :focus-visible) .brand-mark::after {
    background-position: 0% 0;
    transition: background-position 650ms ease-in-out;
  }
}
nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  font-size: 0.9rem;
  font-weight: 520;
}
nav a {
  transition: color 0.18s ease;
}
nav a:hover,
footer a:hover {
  color: var(--accent);
}
.github {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 1.65rem;
  border-left: 1px solid var(--line);
  color: #c8c8c8;
}
.github svg {
  width: 1rem;
  height: 1rem;
}
.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(27.8rem, 34.5vw, 34rem);
  border-bottom: 1px solid var(--line);
}
.intro {
  z-index: 1;
  position: relative;
  padding: 2.6rem 0 3rem;
  pointer-events: none;
}
.intro a {
  pointer-events: auto;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.115em;
  color: #bcbdbd;
}
.signal {
  width: 1.38rem;
  height: 0.15rem;
  background: var(--accent);
}
h1 {
  font-size: clamp(5.6rem, 7.7vw, 8.15rem);
  font-weight: 570;
  line-height: 0.88;
  letter-spacing: -0.072em;
  margin: 1.43rem 0 1.28rem;
}
h1 span {
  color: var(--accent);
}
.intro p {
  font-size: clamp(1rem, 1.14vw, 1.12rem);
  line-height: 1.48;
  letter-spacing: -0.015em;
  margin: 0;
  color: #b0b1b2;
}
.browse {
  display: inline-flex;
  align-items: center;
  gap: 0.63rem;
  min-height: 2.8rem;
  padding: 0.7rem 1.12rem;
  margin-top: 1.45rem;
  border-radius: 0.28rem;
  background: var(--accent);
  color: #201009;
  font-weight: 650;
  font-size: 0.91rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.browse:hover {
  background: #ff936a;
  transform: translateY(-2px);
}
.browse svg {
  width: 1rem;
  height: 1rem;
}
.scene {
  position: absolute;
  inset: 0.3rem -1.25rem 0.3rem 33%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
  background: var(--bg);
}
.plot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #8d909514 1px, transparent 1px),
    linear-gradient(to bottom, #8d909514 1px, transparent 1px);
  background-size: 3.7rem 3.7rem;
  mask-image: radial-gradient(
    ellipse 54% 51% at 54% 50%,
    #000 18%,
    transparent 100%
  );
}
.artifact-depth {
  position: absolute;
  inset: 1% 0 2%;
  display: grid;
  place-items: center;
  mix-blend-mode: screen;
  transform: perspective(900px)
    translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0)
    rotateY(var(--tilt-y, 0deg)) rotateX(var(--tilt-x, 0deg));
  transition: transform 0.65s ease-out;
}
.artifact {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  animation: float 11s ease-in-out infinite;
  animation-play-state: paused;
}
.artifact .living-surface {
  position: absolute;
  inset: 0;
}
.artifact img,
.artifact .living-surface {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: contrast(1.04);
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 3px, 0) rotate(-1.6deg) scale(0.96);
  }
  50% {
    transform: translate3d(2px, -5px, 0) rotate(1.3deg) scale(0.99);
  }
}
body.is-moving .artifact {
  animation-play-state: running;
}
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}
.register {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  opacity: 0.6;
  background:
    linear-gradient(#898b8d, #898b8d) center / 1px 100% no-repeat,
    linear-gradient(#898b8d, #898b8d) center / 100% 1px no-repeat;
}
.reg-a {
  left: 19%;
  top: 16%;
}
.reg-b {
  right: 8%;
  top: 25%;
}
.reg-c {
  left: 11%;
  bottom: 14%;
}
.motion {
  position: absolute;
  right: 0;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #3c3d3d;
  border-radius: 2rem;
  background: #121313ba;
  color: #c5c5c5;
  font: 400 0.75rem/1.25 var(--mono);
  z-index: 1;
}
.motion:hover {
  background: #282929;
  color: #fff;
}
.motion svg {
  width: 0.85rem;
  height: 0.85rem;
}
.directory {
  padding-block: 2.05rem 2.6rem;
  scroll-margin-top: 1rem;
  outline: none;
}
.section-head,
.section-title {
  display: flex;
  align-items: center;
}
.section-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.section-title {
  gap: 0.65rem;
}
.index-mark {
  height: 1rem;
  width: 0.72rem;
  background: repeating-linear-gradient(
    -65deg,
    transparent 0 2px,
    var(--accent) 2px 4px,
    transparent 4px 6px
  );
  transform: skew(-5deg);
}
h2 {
  font-weight: 560;
  font-size: 1.58rem;
  letter-spacing: -0.05em;
  margin: 0;
  line-height: 1.25;
}
.count {
  color: #b1b2b3;
  font: 0.75rem/1.4 var(--mono);
  align-self: center;
  padding: 0.11rem 0.35rem;
  border: 1px solid #38393b;
  border-radius: 0.22rem;
}
.views {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  gap: 2px;
  border-radius: 0.37rem;
}
.views button {
  border: 0;
  border-radius: 0.2rem;
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 1.7rem;
  color: #8e9091;
  background: transparent;
  transition:
    background 0.2s,
    color 0.2s;
}
.views button[aria-pressed="true"] {
  background: #303133;
  color: #fff;
}
.views button:hover {
  color: var(--text);
}
.views svg {
  width: 1rem;
  height: 1rem;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.12rem;
}
.project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #323335;
  background: var(--panel);
  border-radius: 0.47rem;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.3s,
    background 0.2s;
}
.project:hover,
.project:focus-visible {
  border-color: #666665;
  background: #191a1a;
  transform: translateY(-3px);
}
.cover {
  position: relative;
  aspect-ratio: 2.75;
  overflow: hidden;
  background: #171818;
  border-bottom: 1px solid var(--line);
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.21, 0.68, 0.22, 1);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #08090a40, transparent 62%);
  pointer-events: none;
}
.project:hover .cover img,
.project:focus-visible .cover img {
  transform: scale(1.045);
}
.category {
  position: absolute;
  left: 0.85rem;
  bottom: 0.72rem;
  z-index: 1;
  background: #101112ed;
  border: 1px solid #ffffff38;
  color: #e7e7e5;
  padding: 0.25rem 0.46rem 0.23rem;
  border-radius: 0.21rem;
  font: 400 0.75rem/1.2 var(--mono);
}
.details {
  padding: 1.15rem 1.22rem 1.12rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  font-weight: 540;
  line-height: 1.13;
  letter-spacing: -0.055em;
  margin: 0 0 0.37rem;
}
.details p {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: -0.015em;
  line-height: 1.43;
  margin: 0 0 1.1rem;
  max-width: 34ch;
}
.host {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font: 400 0.75rem/1.4 var(--mono);
  color: #c5c5c6;
  margin-top: auto;
  overflow-wrap: anywhere;
}
.host svg {
  color: #878a8d;
  width: 0.92rem;
  height: 0.92rem;
}
.project:hover .host,
.project:focus-visible .host {
  color: var(--accent);
}
.projects[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 0.62rem;
}
.projects[data-view="list"] .project {
  display: grid;
  grid-template-columns: minmax(10rem, 25%) 1fr;
}
.projects[data-view="list"] .cover {
  min-height: 6.2rem;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.projects[data-view="list"] .cover img {
  position: absolute;
  inset: 0;
}
.projects[data-view="list"] .details {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  align-items: center;
  column-gap: 1rem;
}
.projects[data-view="list"] h3 {
  font-size: 1.55rem;
}
.projects[data-view="list"] .details p {
  margin: 0;
  grid-column: 1;
  font-size: 1rem;
  max-width: none;
}
.projects[data-view="list"] .host {
  grid-column: 2;
  grid-row: 1/3;
  margin: 0;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem 1.6rem;
  font: 400 0.75rem/1.5 var(--mono);
  color: #929596;
}
@media (max-width: 900px) {
  .projects {
    gap: 0.8rem;
  }
  .details {
    padding: 1rem;
  }
  .cover {
    aspect-ratio: 2.15;
  }
  .scene {
    left: 38%;
  }
  .hero {
    min-height: 27rem;
  }
  .projects[data-view="list"] .details {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .projects[data-view="list"] .host {
    margin-top: 0.5rem;
  }
}
@media (max-width: 670px) {
  .masthead {
    height: 4.1rem;
  }
  .brand {
    font-size: 1.35rem;
  }
  .brand-mark {
    width: 2.2rem;
  }
  nav {
    gap: 1rem;
  }
  .github {
    padding-left: 1rem;
  }
  .hero {
    display: grid;
    min-height: 0;
  }
  .intro {
    padding: 2.5rem 0 0;
  }
  .eyebrow {
    font-size: 0.75rem;
  }
  h1 {
    font-size: clamp(4.1rem, 13vw, 5.6rem);
    line-height: 0.93;
    margin: 1.1rem 0 0.88rem;
  }
  .intro p {
    max-width: 25rem;
  }
  .wide-only {
    display: none;
  }
  .browse {
    margin-top: 1rem;
  }
  .scene {
    position: relative;
    grid-row: 2;
    inset: auto;
    margin: -0.25rem -0.65rem 0 6%;
    height: clamp(12.7rem, 46vw, 18.5rem);
  }
  .motion {
    bottom: 0.65rem;
  }
  .artifact-depth {
    inset: 0;
  }
  .directory {
    padding-block: 1.55rem 2rem;
  }
  .section-head {
    margin-bottom: 1rem;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cover {
    aspect-ratio: 2.7;
  }
  .details {
    padding: 1.05rem 1.12rem;
  }
  .details p {
    max-width: none;
    margin-bottom: 0.95rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.7rem;
  }
  .projects[data-view="list"] .project {
    grid-template-columns: 6.3rem 1fr;
  }
  .projects[data-view="list"] .category {
    display: none;
  }
  .projects[data-view="list"] .details {
    padding: 0.85rem;
  }
  .projects[data-view="list"] h3 {
    font-size: 1.35rem;
  }
  .projects[data-view="list"] .details p {
    font-size: 0.94rem;
  }
  .projects[data-view="list"] .host {
    font-size: 0.75rem;
  }
}
@media (max-width: 370px) {
  .nav-directory {
    display: none;
  }
  .github {
    border: 0;
  }
  .section-title {
    gap: 0.42rem;
  }
  .views button {
    width: 1.75rem;
  }
  .scene {
    margin-top: 0.25rem;
  }
  .projects[data-view="list"] .project {
    grid-template-columns: 4.5rem 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
  .project:hover,
  .project:focus-visible,
  .browse:hover,
  .project:hover .cover img,
  .project:focus-visible .cover img {
    transform: none;
  }
}
