:root {
  --ink: #11120f;
  --muted: rgba(17, 18, 15, 0.56);
  --line: rgba(17, 18, 15, 0.14);
  --paper: #f3f1ea;
  --paper-bright: #fbfaf6;
  --bronze: #9c6c3e;
  --ease: cubic-bezier(0.2, 0.82, 0.18, 1);
  --room-field: #dce7d6;
  --room-light: #fffdf8;
  --room-shadow: rgba(50, 62, 43, 0.14);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}
body {
  overflow: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
a {
  color: inherit;
  font: inherit;
}
button {
  border: 0;
  background: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

.portfolio-space {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 36rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, var(--room-light) 0, transparent 42%),
    radial-gradient(circle at 68% 58%, var(--room-field), transparent 58%), #ece9df;
  transition: background 700ms var(--ease);
}

body[data-active-project='united-states-bugs'] {
  --room-field: #d7e5d6;
  --room-light: #fffdf3;
  --room-shadow: rgba(31, 72, 48, 0.16);
}
body[data-active-project='united-states-fish-catalog'] {
  --room-field: #d2e8ec;
  --room-light: #fbffff;
  --room-shadow: rgba(25, 76, 94, 0.17);
}
body[data-active-project='botanica-usa'] {
  --room-field: #dfe7ce;
  --room-light: #fffff5;
  --room-shadow: rgba(49, 86, 45, 0.16);
}
body[data-active-project='backyard-ballistics'] {
  --room-field: #deddfa;
  --room-light: #fff7de;
  --room-shadow: rgba(55, 48, 126, 0.2);
}
body[data-active-project='penis-clicker'] {
  --room-field: #eedbe2;
  --room-light: #fff9e9;
  --room-shadow: rgba(90, 28, 56, 0.2);
}
body[data-active-project='fieldcraft'] {
  --room-field: #e4d7b9;
  --room-light: #fffbec;
  --room-shadow: rgba(62, 72, 46, 0.18);
}
body[data-active-project='stirring-up-a-little-happiness'] {
  --room-field: #f2dfe3;
  --room-light: #fffdf9;
  --room-shadow: rgba(128, 65, 78, 0.16);
}
body[data-active-project='sisyphus-llc'] {
  --room-field: #ddd3c3;
  --room-light: #fff8e9;
  --room-shadow: rgba(74, 55, 36, 0.22);
}
body[data-active-project='mopwater'] {
  --room-field: #b9cec5;
  --room-light: #fff2d4;
  --room-shadow: rgba(5, 37, 34, 0.27);
}
.space-grid {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(30, 30, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 30, 25, 0.035) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.space-glow {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(circle at 43% 38%, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at 60% 58%, var(--room-shadow), transparent 32%);
  transition: background 700ms var(--ease);
}

.space-header {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: 0;
  height: 5.5rem;
  padding: max(1.15rem, env(safe-area-inset-top)) clamp(1.1rem, 3.5vw, 3.5rem) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.space-header > * {
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 2.35rem;
  height: 2.35rem;
  filter: brightness(0.46) sepia(0.22);
}
.brand span {
  display: grid;
  gap: 0.16rem;
}
.brand strong {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand small,
.header-actions,
.space-intro p,
.space-controls {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand small {
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  min-height: 2.75rem;
  color: var(--muted);
}
.header-actions b {
  color: var(--bronze);
}
.header-actions button {
  min-width: 4.8rem;
  min-height: 2.75rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.header-actions i {
  margin-left: 0.4rem;
  color: var(--bronze);
  font-style: normal;
  font-size: 0.9rem;
}

.space-intro {
  position: absolute;
  z-index: 60;
  left: clamp(1.2rem, 4vw, 4rem);
  top: clamp(5.7rem, 10vh, 6.8rem);
  max-width: min(32rem, 48vw);
  padding: 0.7rem 0.9rem 0.78rem;
  border: 1px solid rgba(17, 18, 15, 0.12);
  background: rgba(251, 250, 246, 0.88);
  box-shadow: 0 1rem 3rem rgba(44, 38, 30, 0.08);
  backdrop-filter: blur(0.7rem);
  pointer-events: none;
}
.space-intro p {
  margin: 0 0 0.65rem;
  color: var(--bronze);
}
.space-intro h1 {
  margin: 0;
  max-width: 14ch;
  font:
    400 clamp(1.65rem, 2.35vw, 2.6rem)/0.94 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.045em;
}

.interaction-space {
  position: absolute;
  inset: 0;
  z-index: 10;
  perspective: 1150px;
  perspective-origin: 50% 48%;
  touch-action: none;
  cursor: grab;
}
.interaction-space.is-dragging {
  cursor: grabbing;
}
.project-orbit {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.project-card {
  --artifact-back: #c7c2b5;
  --artifact-side: #ada79a;
  --artifact-edge: #d7d2c7;
  --artifact-paper: rgba(250, 249, 245, 0.96);
  --artifact-ink: #11120f;
  --artifact-accent: var(--bronze);
  --artifact-border: rgba(25, 24, 20, 0.18);
  position: absolute;
  left: 50%;
  top: 56%;
  width: clamp(20rem, 44vw, 40rem);
  aspect-ratio: 1.45;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform, opacity, filter;
  transition:
    opacity 180ms linear,
    filter 180ms linear;
}
.project-card:nth-child(1) {
  z-index: 3;
  transform: translate3d(-50%, -50%, 6rem);
}
.project-card:nth-child(2) {
  z-index: 2;
  opacity: 0.48;
  transform: translate3d(-92%, -48%, -11rem) rotateY(22deg) scale(0.72);
}
.project-card:nth-child(3) {
  z-index: 1;
  opacity: 0.35;
  transform: translate3d(-8%, -53%, -18rem) rotateY(-28deg) scale(0.67);
}
.project-card:nth-child(4) {
  z-index: 1;
  opacity: 0.28;
  transform: translate3d(-50%, -58%, -23rem) rotateY(36deg) scale(0.62);
}
.project-card:nth-child(5) {
  z-index: 1;
  opacity: 0.24;
  transform: translate3d(-110%, -48%, -25rem) rotateY(34deg) scale(0.58);
}
.project-card:nth-child(6) {
  z-index: 1;
  opacity: 0.2;
  transform: translate3d(8%, -52%, -28rem) rotateY(-38deg) scale(0.54);
}
.project-card:nth-child(7) {
  z-index: 1;
  opacity: 0.18;
  transform: translate3d(-50%, -44%, -30rem) scale(0.5);
}
.project-card:nth-child(8) {
  z-index: 1;
  opacity: 0.16;
  transform: translate3d(-84%, -52%, -33rem) rotateY(42deg) scale(0.48);
}
.project-card:nth-child(9) {
  z-index: 1;
  opacity: 0.15;
  transform: translate3d(-12%, -48%, -36rem) rotateY(-45deg) scale(0.46);
}
.artifact-shadow {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -12%;
  height: 20%;
  background: rgba(48, 39, 28, 0.22);
  border-radius: 50%;
  filter: blur(2rem);
  transform: translateZ(-3.5rem) rotateX(76deg);
  opacity: var(--depth, 0.7);
}
.artifact-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: box-shadow 220ms ease;
}
.artifact-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--artifact-back);
  border: 1px solid rgba(30, 28, 23, 0.18);
  transform: translateZ(-1.25rem);
  box-shadow: 0 2.2rem 5rem rgba(49, 42, 33, 0.2);
}
.artifact-body::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1.25rem;
  width: 1.25rem;
  height: 100%;
  background: linear-gradient(90deg, var(--artifact-back), var(--artifact-side));
  transform-origin: left center;
  transform: rotateY(90deg);
}
.artifact-edge {
  position: absolute;
  left: 0;
  bottom: -1.25rem;
  width: 100%;
  height: 1.25rem;
  background: linear-gradient(var(--artifact-side), var(--artifact-edge));
  transform-origin: center top;
  transform: rotateX(-90deg);
}
.artifact-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--artifact-paper);
  border: 1px solid var(--artifact-border);
  transform: translateZ(0.02rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}
.artifact-face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.28),
    transparent 22%,
    transparent 64%,
    rgba(255, 255, 255, 0.08)
  );
  mix-blend-mode: screen;
}
.artifact-screen {
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #dfe5d8;
  border-bottom: 1px solid rgba(20, 20, 17, 0.13);
}
.artifact-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}
.artifact-screen--portrait {
  background: #123b4a;
}
.artifact-screen--portrait img {
  object-fit: contain;
}
.artifact-screen--contain img {
  object-fit: contain;
}
.artifact-caption {
  min-height: 6.6rem;
  padding: 1.05rem 1.2rem 1.15rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.3rem;
  background: var(--artifact-paper);
  color: var(--artifact-ink);
}
.artifact-caption span {
  display: block;
  margin-bottom: 0.36rem;
  color: var(--artifact-accent);
  font-size: 0.51rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.artifact-caption h2 {
  margin: 0;
  font:
    400 clamp(1.42rem, 2.1vw, 2.2rem)/0.95 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.045em;
}
.artifact-caption a {
  position: relative;
  z-index: 4;
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.artifact-caption a span {
  display: inline;
  margin: 0 0 0 0.55rem;
  color: inherit;
  font-size: 0.72rem;
}
.project-card:not(.is-active) .artifact-caption a {
  pointer-events: none;
}
.project-card:not(.is-active) .artifact-screen {
  pointer-events: none;
}
.project-card.is-active .artifact-body {
  box-shadow: 0 2rem 7rem rgba(49, 42, 33, 0.18);
}
.project-card.is-active {
  cursor: pointer;
}
.project-card.is-active:hover .artifact-face,
.project-card.is-active:focus-within .artifact-face {
  border-color: var(--artifact-accent);
}

.project-card[data-project='united-states-bugs'],
.index-card[data-project='united-states-bugs'] {
  --artifact-back: #274b37;
  --artifact-side: #173526;
  --artifact-edge: #647b4c;
  --artifact-paper: #e7ebd8;
  --artifact-ink: #123224;
  --artifact-accent: #8b6b24;
  --artifact-border: #52705c;
}

.project-card[data-project='united-states-bugs'] .artifact-screen {
  border: 0.5rem solid #e7ebd8;
}

.project-card[data-project='united-states-fish-catalog'],
.index-card[data-project='united-states-fish-catalog'] {
  --artifact-back: #315c6a;
  --artifact-side: #173d4e;
  --artifact-edge: #7fa9aa;
  --artifact-paper: #e0eeee;
  --artifact-ink: #163b49;
  --artifact-accent: #337c70;
  --artifact-border: #4c7c87;
}

.project-card[data-project='united-states-fish-catalog'] .artifact-screen {
  padding: 0.45rem;
  background: #173d4e;
}

.project-card[data-project='botanica-usa'],
.index-card[data-project='botanica-usa'] {
  --artifact-back: #4c6547;
  --artifact-side: #2d4936;
  --artifact-edge: #9baa7c;
  --artifact-paper: #eef0df;
  --artifact-ink: #25412f;
  --artifact-accent: #8b6b2f;
  --artifact-border: #688064;
}

.project-card[data-project='botanica-usa'] .artifact-face,
.project-card[data-project='botanica-usa'] .artifact-screen {
  border-radius: 5rem 5rem 0 0;
}

.project-card[data-project='backyard-ballistics'],
.index-card[data-project='backyard-ballistics'] {
  --artifact-back: #394694;
  --artifact-side: #1e275b;
  --artifact-edge: #e14c79;
  --artifact-paper: #1a204d;
  --artifact-ink: #fff2c4;
  --artifact-accent: #ffdc35;
  --artifact-border: #ffdc35;
}

.project-card[data-project='backyard-ballistics'] .artifact-face {
  box-shadow:
    inset 0 0 0 0.3rem #e14c79,
    inset 0 0 0 0.55rem #1a204d;
}

.project-card[data-project='backyard-ballistics'] .artifact-caption h2 {
  font-family: Consolas, 'Courier New', monospace;
  font-weight: 800;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.project-card[data-project='penis-clicker'],
.index-card[data-project='penis-clicker'] {
  --artifact-back: #5b1734;
  --artifact-side: #280817;
  --artifact-edge: #d4a244;
  --artifact-paper: #260914;
  --artifact-ink: #ffedbd;
  --artifact-accent: #e1b75b;
  --artifact-border: #d4a244;
}

.project-card[data-project='penis-clicker'] .artifact-face {
  border: 0.35rem double #d4a244;
  border-radius: 4.5rem 4.5rem 0.25rem 0.25rem;
}

.project-card[data-project='fieldcraft'],
.index-card[data-project='fieldcraft'] {
  --artifact-back: #8f855f;
  --artifact-side: #374f42;
  --artifact-edge: #d89b31;
  --artifact-paper: #d9c9a5;
  --artifact-ink: #1c4035;
  --artifact-accent: #9a6111;
  --artifact-border: #365144;
}

.project-card[data-project='fieldcraft'] .artifact-face {
  border-left: 0.65rem solid #d89b31;
}

.project-card[data-project='fieldcraft'] .artifact-caption h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.project-card[data-project='stirring-up-a-little-happiness'],
.index-card[data-project='stirring-up-a-little-happiness'] {
  --artifact-back: #c58fa0;
  --artifact-side: #7d4157;
  --artifact-edge: #eed1d7;
  --artifact-paper: #fff8f3;
  --artifact-ink: #573630;
  --artifact-accent: #b44771;
  --artifact-border: #c58fa0;
}

.project-card[data-project='stirring-up-a-little-happiness'] .artifact-face,
.project-card[data-project='stirring-up-a-little-happiness'] .artifact-screen {
  border-radius: 5.5rem 5.5rem 0.7rem 0.7rem;
}

.project-card[data-project='sisyphus-llc'],
.index-card[data-project='sisyphus-llc'] {
  --artifact-back: #62513e;
  --artifact-side: #2a2e2d;
  --artifact-edge: #c99a5e;
  --artifact-paper: #252b2a;
  --artifact-ink: #f4e8cf;
  --artifact-accent: #d7ae72;
  --artifact-border: #a97d49;
}

.project-card[data-project='sisyphus-llc'] .artifact-face {
  clip-path: polygon(3% 0, 100% 4%, 97% 100%, 0 96%);
  border: 0.32rem ridge #b88a53;
  box-shadow:
    inset 0 0 0 0.25rem #252b2a,
    inset 0 0 2.5rem rgba(215, 174, 114, 0.12);
}

.project-card[data-project='sisyphus-llc'] .artifact-screen img {
  filter: saturate(0.88) contrast(1.06);
}

.project-card[data-project='sisyphus-llc'] .artifact-caption h2 {
  font-variant: small-caps;
  letter-spacing: 0.035em;
}

.project-card[data-project='mopwater'],
.index-card[data-project='mopwater'] {
  --artifact-back: #173c39;
  --artifact-side: #071d1c;
  --artifact-edge: #9d7239;
  --artifact-paper: #d8c39d;
  --artifact-ink: #20170f;
  --artifact-accent: #6d3b1f;
  --artifact-border: #8d6337;
}

.project-card[data-project='mopwater'] .artifact-face {
  clip-path: polygon(1.8% 2%, 98.8% 0, 100% 96%, 2.5% 100%, 0 5%);
  border: 0.3rem solid #8d6337;
  box-shadow:
    inset 0 0 0 0.18rem rgba(32, 23, 15, 0.3),
    inset 0 0 2.4rem rgba(73, 44, 21, 0.24);
  transform: translateZ(0.02rem) rotate(-0.65deg);
}

.project-card[data-project='mopwater'] .artifact-screen {
  background: #071d1c;
}

.project-card[data-project='mopwater'] .artifact-screen img {
  filter: saturate(0.82) contrast(1.08) brightness(0.88);
}

.project-card[data-project='mopwater'] .artifact-caption {
  background:
    radial-gradient(circle at 12% 18%, rgba(95, 53, 24, 0.14), transparent 2.8rem),
    repeating-linear-gradient(rgba(63, 43, 25, 0.13) 0 1px, transparent 1px 1.45rem), #d8c39d;
}

.project-card[data-project='mopwater'] .artifact-caption h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.space-controls {
  position: absolute;
  z-index: 70;
  left: clamp(1.1rem, 3.5vw, 3.5rem);
  right: clamp(1.1rem, 3.5vw, 3.5rem);
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  min-height: 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  pointer-events: none;
}
.space-controls > * {
  pointer-events: auto;
}
.space-controls p {
  margin: 0;
}
.space-controls > a {
  justify-self: end;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.motion-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.motion-controls button {
  min-width: 2.8rem;
  min-height: 2.8rem;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.motion-controls button:first-child,
.motion-controls button:last-child {
  font-size: 1rem;
}
.motion-controls .spin-control {
  min-width: 9.8rem;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spin-track {
  position: relative;
  width: 2.25rem;
  height: 1px;
  background: rgba(20, 20, 17, 0.25);
}
.spin-track i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.36rem;
  height: 0.36rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bronze);
}
.is-spinning .spin-track i {
  animation: shuttle 620ms var(--ease);
}
@keyframes shuttle {
  0% {
    transform: translate(-50%, -50%);
  }
  45% {
    transform: translate(180%, -50%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

.index-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: auto;
  padding: clamp(4.8rem, 9vh, 7rem) clamp(1.2rem, 5vw, 5rem);
  background: rgba(247, 245, 238, 0.97);
  backdrop-filter: blur(1.6rem);
}
.index-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.index-panel__header p {
  margin: 0 0 0.55rem;
  color: var(--bronze);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.index-panel__header h2 {
  margin: 0;
  font:
    400 clamp(2.6rem, 5vw, 5rem)/0.92 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.055em;
}
.index-panel__header button {
  width: 3.2rem;
  height: 3.2rem;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
}
.index-card {
  --artifact-accent: var(--bronze);
  padding: 0.7rem 0.7rem 1rem;
  cursor: pointer;
  text-align: left;
  border-top: 0.24rem solid var(--artifact-accent);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
  transition:
    transform 220ms var(--ease),
    background 220ms ease;
}
.index-card:hover,
.index-card:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-0.35rem);
}
.index-card img {
  width: 100%;
  aspect-ratio: 1.55;
  display: block;
  object-fit: cover;
  object-position: top;
  background: #173f52;
}
.index-card > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}
.index-card strong {
  font:
    400 clamp(1.15rem, 2vw, 1.7rem) Georgia,
    'Times New Roman',
    serif;
}
.index-card small {
  color: var(--bronze);
}
.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 5rem;
  z-index: 100;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .portfolio-space {
    min-height: 39rem;
  }
  .space-header {
    padding-top: max(0.7rem, env(safe-area-inset-top));
  }
  .brand img {
    width: 2rem;
    height: 2rem;
  }
  .brand small,
  .header-actions > span {
    display: none;
  }
  .space-intro {
    left: 1rem;
    top: 4.9rem;
    max-width: calc(100vw - 2rem);
    padding: 0.65rem 0.75rem 0.72rem;
  }
  .space-intro p {
    margin-bottom: 0.38rem;
  }
  .space-intro h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    max-width: none;
  }
  .interaction-space {
    perspective: 780px;
  }
  .project-card {
    top: 53%;
    width: min(80vw, 23rem);
    aspect-ratio: 0.86;
  }
  .artifact-screen img {
    object-fit: cover;
  }
  .artifact-screen--portrait img {
    object-fit: contain;
  }
  .artifact-caption {
    min-height: 7.8rem;
    padding: 0.9rem 0.95rem 1rem;
    display: grid;
    align-content: end;
  }
  .artifact-caption h2 {
    font-size: 1.55rem;
  }
  .artifact-caption a {
    min-height: 2.2rem;
    justify-self: start;
  }
  .space-controls {
    grid-template-columns: 1fr auto;
    bottom: max(0.7rem, env(safe-area-inset-bottom));
  }
  .space-controls p {
    display: none;
  }
  .space-controls > a {
    font-size: 0;
  }
  .space-controls > a span {
    font-size: 0.8rem;
  }
  .motion-controls {
    justify-self: start;
  }
  .motion-controls .spin-control {
    min-width: 7rem;
    font-size: 0;
  }
  .spin-track {
    width: 3rem;
  }
  .index-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-height: 950px) {
  .project-card {
    width: clamp(20rem, 38vw, 34.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .space-grid {
    display: none;
  }
}
