:root {
  --paper: #f5f5f3;
  --ink: #0d0d0d;
  --outer: #dededb;
  --surface: #fff;
  --muted-ink: rgba(13, 13, 13, 0.68);
  --soft-border: rgba(0, 0, 0, 0.1);
  --menu-divider: rgba(13, 13, 13, 0.14);
  --glass: rgba(255, 255, 255, 0.17);
  --glass-open: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.34);
  --glass-highlight: rgba(255, 255, 255, 0.26);
  --modal-overlay: rgba(13, 13, 13, 0.16);
  --icon-filter: none;
  --stage-scale: 1;
  --stage-width: 1440px;
  --stage-height: 900px;
  --content-width: 294px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0d0d;
  --ink: #f5f5f3;
  --outer: #000;
  --surface: #0d0d0d;
  --muted-ink: rgba(245, 245, 243, 0.68);
  --soft-border: rgba(245, 245, 243, 0.16);
  --menu-divider: rgba(245, 245, 243, 0.18);
  --glass: rgba(13, 13, 13, 0.36);
  --glass-open: rgba(13, 13, 13, 0.72);
  --glass-border: rgba(245, 245, 243, 0.28);
  --glass-highlight: rgba(245, 245, 243, 0.08);
  --modal-overlay: rgba(245, 245, 243, 0.1);
  --icon-filter: invert(1);
}

@font-face {
  font-family: "DotPreschool";
  src: url("./DotPreschool-D-RtaSE_.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Doto";
  src: url("./Doto--sEIrBuJ.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font-family: "DotPreschool", "Doto", monospace;
  transition:
    color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
button {
  color: inherit;
  font: inherit;
}

.custom-cursor {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.burst-canvas {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cursor-segment {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: var(--icon-filter);
  transform-origin: 50% 50%;
}
.custom-cursor.is-moving .cursor-segment {
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }
  .custom-cursor {
    display: block;
  }
  .custom-cursor.is-visible {
    opacity: 1;
  }
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: auto;
}
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--stage-width);
  height: var(--stage-height);
  overflow: hidden;
  background: var(--paper);
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
  isolation: isolate;
  transition: background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.prehome {
  position: absolute;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: var(--paper);
  transition: background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stage > .particle-canvas {
  z-index: 0;
}
.prehome.is-revealing {
  display: none;
}
.prehome.is-complete {
  display: none;
}
.prehome-credit {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transform-origin: center;
  z-index: 2;
}
.enter-trigger {
  position: absolute;
  left: 50%;
  top: calc(50% + 148.5px);
  width: 128px;
  height: 25px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transform: translateX(-50%);
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.enter-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--ink);
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.enter-label {
  position: absolute;
  left: 25px;
  top: 1px;
  font-size: 18px;
  line-height: 22px;
  white-space: nowrap;
}
.enter-label-dark {
  color: var(--ink);
}
.enter-white-reveal {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.enter-label-light {
  color: var(--paper);
}
.enter-trigger:hover .enter-fill,
.enter-trigger:hover .enter-white-reveal,
.enter-trigger:focus-visible .enter-fill,
.enter-trigger:focus-visible .enter-white-reveal,
.enter-trigger.is-armed .enter-fill,
.enter-trigger.is-armed .enter-white-reveal {
  width: 126px;
}
@keyframes enter-black-white-pulse {
  0%,
  49.99% {
    filter: invert(0);
  }
  50%,
  100% {
    filter: invert(1);
  }
}
.enter-trigger:hover,
.enter-trigger:focus-visible {
  animation: enter-black-white-pulse 0.28s steps(1, end) 0.22s infinite;
}
.enter-trigger:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
.prehome.is-launching .enter-trigger {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}
.stage > .margin {
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage > .menu-shell {
  transition:
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage > .scroll-hint {
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage.prehome-active > .margin,
.stage.prehome-active > .menu-shell,
.stage.prehome-active > .scroll-hint {
  opacity: 0;
  pointer-events: none;
}
.stage.prehome-active > .menu-shell {
  transform: translateY(-18px);
}
.stage.prehome-active.show-menu > .menu-shell {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stage.prehome-active.show-sides > .margin {
  opacity: 1;
}
.stage.prehome-active.show-scroll > .scroll-hint {
  opacity: 0.48;
}
.stage.gallery-returning > .margin,
.stage.gallery-returning > .menu-shell,
.stage.gallery-returning > .scroll-hint {
  opacity: 0;
  pointer-events: none;
}
.stage.gallery-returning > .menu-shell {
  transform: translateY(-18px);
}
.stage.gallery-returning.gallery-return-menu > .menu-shell {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stage.gallery-returning.gallery-return-sides > .margin {
  opacity: 1;
}
.stage.gallery-returning.gallery-return-scroll > .scroll-hint {
  opacity: 0.48;
}
.stage.contact-active > .scroll-hint {
  opacity: 0;
}
.contact-page[hidden] {
  display: none;
}
.contact-page {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  transform: none;
  pointer-events: none;
}
.contact-page::backdrop,
.project-modal::backdrop {
  background: transparent;
}
.contact-page.is-open {
  pointer-events: auto;
}
.contact-artboard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(
    calc(var(--stage-width) - 200px),
    calc(var(--stage-height) * 1.28)
  );
  aspect-ratio: 1126 / 880;
  container-type: inline-size;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
}
.contact-window {
  position: absolute;
  left: 9.86cqw;
  top: 14.56cqw;
  width: 80.28cqw;
  height: 48.93cqw;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  transition:
    color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-page [data-contact-reveal] {
  opacity: 0;
  translate: 0 2.66cqw;
  transition:
    opacity 0.54s cubic-bezier(0.22, 1, 0.36, 1)
      calc(var(--reveal-index) * 85ms),
    translate 0.72s cubic-bezier(0.16, 1, 0.3, 1)
      calc(var(--reveal-index) * 85ms);
}
.contact-page .contact-heading[data-contact-reveal],
.contact-page .contact-description[data-contact-reveal] {
  translate: -2.49cqw 0;
}
.contact-page .contact-portrait[data-contact-reveal] {
  translate: 2.49cqw 0;
}
.contact-page.is-open [data-contact-reveal] {
  opacity: 1;
  translate: 0 0;
}
.contact-heading {
  position: absolute;
  left: 4.98%;
  top: 13.25%;
  width: 44.25%;
  margin: 0;
  font-family: inherit;
  font-size: 3.55cqw;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}
.contact-description {
  position: absolute;
  left: 5.75%;
  top: 23.59%;
  width: 44.25%;
  height: 22.32%;
  font-family: "Doto", monospace;
  font-size: 0.99cqw;
  font-variation-settings: "ROND" 0;
  line-height: normal;
  white-space: normal;
}
.contact-description p {
  margin: 0 0 1.42cqw;
}
.contact-form {
  display: contents;
}
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-message-field {
  position: absolute;
  left: 5.75%;
  top: 47.73%;
  width: 44.25%;
  height: 30.85%;
  display: block;
  border: 1px solid var(--soft-border);
  background: var(--surface);
}
.contact-message-field textarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2.66cqw 1.15cqw 1.15cqw;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--ink);
  font: inherit;
  font-size: 1.33cqw;
  line-height: normal;
}
.contact-message-field:focus-within {
  border-color: var(--ink);
}
.typewriter-prompt {
  position: absolute;
  left: 1.15cqw;
  top: 0.89cqw;
  right: 1.15cqw;
  min-height: 2.04cqw;
  overflow: hidden;
  pointer-events: none;
  font-size: 1.33cqw;
  line-height: normal;
}
.typewriter-prompt i {
  display: inline-block;
  width: 0.53cqw;
  height: 1.24cqw;
  margin-left: 0.36cqw;
  vertical-align: -0.27cqw;
  background: currentColor;
  animation: typewriter-caret 0.68s steps(1, end) infinite;
}
.contact-message-field:focus-within .typewriter-prompt,
.contact-message-field.has-value .typewriter-prompt {
  opacity: 0;
}
@keyframes typewriter-caret {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}
.sending-trigger {
  position: absolute;
  left: 5.75%;
  top: 81.13%;
  width: 44.25%;
  height: 6.17%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.sending-trigger:hover .enter-fill,
.sending-trigger:hover .enter-white-reveal,
.sending-trigger:focus-visible .enter-fill,
.sending-trigger:focus-visible .enter-white-reveal,
.sending-trigger.is-armed .enter-fill,
.sending-trigger.is-armed .enter-white-reveal {
  width: calc(100% - 2px);
}
.sending-trigger:hover,
.sending-trigger:focus-visible,
.sending-trigger.is-armed {
  animation: enter-black-white-pulse 0.28s steps(1, end) 0.22s infinite;
}
.sending-trigger.is-sent {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  animation: none;
}
.sending-trigger.is-sent .enter-fill,
.sending-trigger.is-sent .enter-white-reveal {
  width: calc(100% - 2px);
  transition: none;
}
.sending-trigger.is-sent .sending-label {
  color: var(--paper);
}
.sending-trigger:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
.sending-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 35.52cqw;
  height: 3.02cqw;
  display: grid;
  place-items: center;
  font-size: 1.39cqw;
  line-height: normal;
  white-space: nowrap;
}
.contact-status {
  position: absolute;
  left: 5.75%;
  top: 90%;
  margin: 0;
  font:
    500 14px Doto,
    monospace;
  max-width: 44%;
}
.contact-status:empty {
  display: none;
}
.sending-trigger:disabled {
  cursor: wait;
}
.contact-message-field textarea:read-only {
  cursor: wait;
}
.contact-portrait {
  position: absolute;
  left: 57.19%;
  top: 12.89%;
  width: 33.96%;
  height: 74.41%;
  overflow: hidden;
}
.contact-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}
.contact-close {
  position: absolute;
  z-index: 3;
  right: 2.65%;
  top: 2.54%;
  width: 3.54%;
  height: 8.89%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 3.55cqw;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.contact-close:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 0.36cqw;
}

.margin {
  position: absolute;
  z-index: 10;
  top: 0;
  bottom: 0;
  width: 100px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  pointer-events: none;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--muted-ink);
}
.margin-left {
  left: 0;
}
.margin-right {
  right: 0;
}
.side-label,
.availability {
  position: static;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.side-contact {
  position: relative;
  width: 24px;
  height: 138px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  writing-mode: horizontal-tb;
  transform: none;
}
.side-contact:hover,
.side-contact:focus-visible {
  color: var(--ink);
}
.side-contact:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
.contact-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-drawer-panel > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.contact-drawer-next {
  top: 100%;
}
.side-contact.drawer-active .contact-drawer-panel {
  transform: translateY(-100%);
}
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-name {
  position: relative;
  width: 24px;
  height: 255px;
  overflow: hidden;
  writing-mode: horizontal-tb;
  transform: none;
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.side-name:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
.name-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.name-drawer-panel > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.name-drawer-next {
  top: 100%;
}
.side-name.drawer-active .name-drawer-panel {
  transform: translateY(-100%);
}
.skill-drawer {
  position: relative;
  width: 24px;
  height: 230px;
  overflow: hidden;
  writing-mode: horizontal-tb;
  transform: none;
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.skill-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-drawer-panel > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.skill-drawer-next {
  top: 100%;
}
.skill-creative {
  height: 280px;
}
.skill-drawer.drawer-active .skill-drawer-panel {
  transform: translateY(-100%);
}
.skill-drawer:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
.availability-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00f428;
  box-shadow: 0 0 9px rgba(0, 244, 40, 0.9);
  transform-origin: center;
  animation: heartbeat 1.6s linear infinite;
}
@keyframes heartbeat {
  0% {
    opacity: 0.72;
    scale: 1;
  }
  6.88% {
    opacity: 1;
    scale: 1.38;
  }
  13.75% {
    opacity: 0.64;
    scale: 0.94;
  }
  21.25% {
    opacity: 1;
    scale: 1.24;
  }
  31.25% {
    opacity: 0.82;
    scale: 1;
  }
  100% {
    opacity: 0.72;
    scale: 1;
  }
}

.menu-shell {
  position: absolute;
  z-index: 20;
  left: calc(50% - 183px);
  top: 40px;
  width: 358px;
  height: 47px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass);
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.15),
    inset 0 0 24px var(--glass-highlight);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  transition:
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
}
.menu-shell.open {
  height: 123px;
  background: var(--glass-open);
}
.menu-toggle {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 47px;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.menu-toggle .menu-label {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  font-size: 22px;
  line-height: 1.3;
}
.burger {
  position: absolute;
  left: 18px;
  top: 15px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.burger i {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform-origin: 50% 50%;
  transition:
    top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.burger i:first-child {
  top: 4px;
}
.burger i:last-child {
  top: 10px;
}
.menu-shell.open .burger i:first-child {
  top: 7px;
  transform: rotate(45deg);
}
.menu-shell.open .burger i:last-child {
  top: 7px;
  transform: rotate(-45deg);
}
.camera-pivot {
  position: absolute;
  right: 18px;
  top: 11px;
  width: 22px;
  height: 21px;
  pointer-events: none;
}
.camera-axis {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 6.64px;
  width: 0.84px;
  height: 14.36px;
  border-radius: 1px;
  background: var(--ink);
}
.camera-pivot img {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 21px;
  object-fit: contain;
  clip-path: inset(0 0 0 1.15px);
  transform-origin: 0 71.62%;
  filter: var(--icon-filter);
  transition:
    filter 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-panel {
  padding: 7px 25px 18px;
  cursor: default;
}
.menu-panel button {
  width: 100%;
  height: 51px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  text-align: center;
  font-size: 21px;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background-color 0.16s ease;
}
.menu-panel button:hover,
.menu-panel button:focus-visible {
  color: var(--paper);
  outline: none;
  background: var(--ink);
}
.menu-panel button.selected {
  display: none;
}
.mobile-menu-info {
  display: none;
}

.theme-toggle {
  position: absolute;
  z-index: 85;
  top: 40px;
  right: 110px;
  width: 126px;
  height: 47px;
  display: grid;
  grid-template-columns: auto 30px auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--glass);
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.12),
    inset 0 0 18px var(--glass-highlight);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    transform 0.22s ease;
}
.stage.contact-active > .theme-toggle {
  opacity: 0;
  pointer-events: none;
}
.theme-toggle:hover {
  transform: translateY(-2px);
}
.theme-toggle:active {
  transform: translateY(0) scale(0.97);
}
.theme-toggle:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
.theme-toggle-label,
.theme-toggle-state {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.theme-toggle-state {
  width: 18px;
  text-align: left;
}
.theme-toggle-switch {
  position: relative;
  width: 30px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.theme-toggle-switch i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle[aria-checked="true"] .theme-toggle-switch i {
  transform: translateX(14px);
}

.scroll-hint {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 12px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.48;
  pointer-events: none;
}
.scroll-hint i {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 0 3px 9px;
  background: currentColor;
}
.project-modal[hidden] {
  display: none;
}
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  overflow: hidden;
  background: transparent;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    background-color 0.48s ease;
}
.project-modal.is-open {
  opacity: 1;
  background: var(--modal-overlay);
}
.project-modal.is-closing {
  opacity: 1;
  pointer-events: none;
}
.project-modal-stage {
  position: absolute;
  inset: 50px 0 0;
  display: grid;
  grid-template-rows: clamp(160px, 22vh, 220px) minmax(0, 1fr) 200px;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.18);
  transform: translate3d(0, calc(100% + 60px), 0);
  transition: transform 0.74s cubic-bezier(0.7, 0, 0.84, 0);
}
.project-modal.is-animating .project-modal-stage {
  will-change: transform;
}
.project-modal.is-open .project-modal-stage {
  transform: translate3d(0, 0, 0);
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(180px, 0.55fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-width: 0;
  padding: 28px clamp(26px, 4.2vw, 72px);
}
.project-modal-heading,
.project-modal-meta {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  min-width: 0;
}
.project-modal-heading {
  align-self: center;
}
.project-modal-title {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  max-inline-size: 20ch;
  font-size: clamp(17px, 2.1vw, 36px);
  line-height: 0.94;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
.project-modal-type {
  margin: 12px 0 0;
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1;
}
.project-modal-meta {
  align-self: center;
  padding-bottom: 0;
  font-size: clamp(13px, 1.05vw, 18px);
  line-height: 1.05;
}
#projectModalYear {
  display: block;
}
#projectModalYear[hidden] {
  display: none;
}
.project-modal-controls {
  display: grid;
  grid-template-columns: repeat(3, clamp(46px, 4.2vw, 62px));
  align-self: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.project-modal-control {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background-color 0.16s ease;
}
.project-modal-control:last-child {
  border-right: 0;
}
.project-modal-close {
  position: relative;
  font-size: 0;
  isolation: isolate;
  background: var(--surface);
}
.project-modal-close-icon {
  display: block;
  width: clamp(22px, 1.8vw, 28px);
  height: clamp(22px, 1.8vw, 28px);
  pointer-events: none;
  position: relative;
  mix-blend-mode: difference;
}
.project-modal-control:hover,
.project-modal-control:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}
@keyframes project-close-flash {
  0%,
  100% {
    background-color: var(--surface);
  }
  14%,
  43%,
  72% {
    background-color: var(--ink);
  }
  29%,
  58%,
  87% {
    background-color: var(--surface);
  }
}
.project-modal-close.is-flashing {
  animation: project-close-flash 0.54s steps(1, end) both;
}
.project-modal-gallery {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  outline: none;
}
.project-modal-push-layer {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  z-index: 3;
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--outer);
}
.project-modal-push-layer .project-modal-track {
  height: 100%;
}
.project-modal-gallery::-webkit-scrollbar {
  display: none;
}
.project-modal-gallery.is-dragging {
  cursor: grabbing;
}
.project-modal-gallery:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.project-modal-track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 0;
}
.project-modal-slide {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: var(--project-slide-ratio, 16 / 9);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--outer);
}
.project-modal-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.project-modal-slide[data-fit="contain"] img {
  object-fit: contain;
}
.prehome-fallback {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(50% - 43px);
  width: 394px;
  height: 231px;
  transform: translate(-50%, -50%);
}
.prehome-fallback svg {
  display: block;
  width: 100%;
  height: 100%;
}
.effects-ready .prehome-fallback {
  display: none;
}
.no-webgl .prehome-fallback {
  display: block;
}
.project-modal-close-icon::before,
.project-modal-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.project-modal-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 767px) {
  .prehome-credit {
    width: 48px;
    font-size: 12px;
  }
  .margin {
    width: 48px;
    min-height: 0;
    font-size: 12px;
  }
  .side-contact {
    width: 18px;
    height: 110px;
  }
  .side-name {
    width: 18px;
    height: 160px;
  }
  .availability {
    gap: 6px;
  }
  .availability-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 6px rgba(0, 244, 40, 0.9);
  }
  .skill-drawer {
    width: 18px;
    height: 145px;
  }
  .skill-creative {
    height: 175px;
  }
  .menu-shell {
    left: 50%;
    top: max(16px, env(safe-area-inset-top));
    width: var(--content-width);
    height: 56px;
    border-radius: 30px;
    transform: translateX(-50%);
  }
  .stage.prehome-active > .menu-shell,
  .stage.gallery-returning > .menu-shell {
    transform: translate(-50%, -18px);
  }
  .stage.prehome-active.show-menu > .menu-shell,
  .stage.gallery-returning.gallery-return-menu > .menu-shell {
    transform: translate(-50%, 0);
  }
  .menu-shell.open {
    height: 330px;
    max-height: calc(var(--stage-height) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .menu-toggle {
    height: 56px;
  }
  .menu-toggle .menu-label {
    top: 11px;
  }
  .burger {
    top: 19px;
  }
  .camera-pivot {
    top: 16px;
  }
  .menu-panel {
    padding: 5px 18px 20px;
  }
  .menu-panel button {
    height: 52px;
    font-size: 20px;
  }
  .mobile-menu-info {
    display: grid;
    gap: 8px;
    padding: 13px 14px 4px;
    border-top: 1px solid var(--menu-divider);
    font-family: "Doto", monospace;
    font-size: 11px;
    font-variation-settings: "ROND" 0;
    line-height: 1.25;
  }
  .mobile-menu-info strong {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
  }
  .mobile-menu-availability {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .mobile-menu-availability i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #00f428;
    box-shadow: 0 0 6px rgba(0, 244, 40, 0.9);
    animation: heartbeat 1.6s linear infinite;
  }
  .scroll-hint {
    font-size: 9px;
  }
  .theme-toggle {
    top: auto;
    right: 50%;
    bottom: 34px;
    width: 126px;
    height: 34px;
    transform: translateX(50%);
  }
  .theme-toggle:hover {
    transform: translateX(50%) translateY(-2px);
  }
  .theme-toggle:active {
    transform: translateX(50%) scale(0.97);
  }
  .contact-artboard {
    width: var(--content-width);
    height: var(--stage-height);
    aspect-ratio: auto;
  }
  .contact-window {
    left: 0;
    top: 84px;
    width: 100%;
    height: calc(100% - 104px);
    display: grid;
    grid-template-rows: auto auto minmax(120px, 1fr) 44px;
    gap: 14px;
    padding: 54px 18px 18px;
    border-radius: 22px;
  }
  .contact-heading,
  .contact-description,
  .contact-message-field,
  .sending-trigger {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
  }
  .contact-heading {
    font-size: 30px;
    line-height: 1;
    white-space: normal;
  }
  .contact-description {
    font-size: 11.5px;
    line-height: 1.3;
  }
  .contact-description p {
    margin: 0 0 9px;
  }
  .contact-message-field {
    min-height: 120px;
  }
  .contact-message-field textarea {
    padding: 38px 12px 12px;
    font-size: 14px;
  }
  .typewriter-prompt {
    left: 12px;
    top: 10px;
    right: 12px;
    min-height: 20px;
    font-size: 14px;
  }
  .typewriter-prompt i {
    width: 6px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -3px;
  }
  .sending-trigger {
    height: 44px;
  }
  .sending-label {
    width: 100%;
    height: 100%;
    font-size: 14px;
  }
  .contact-window:has(.contact-status:not(:empty)) {
    grid-template-rows: auto auto minmax(120px, 1fr) 44px auto;
  }
  .contact-status {
    position: relative;
    left: auto;
    top: auto;
    grid-row: 5;
    max-width: 100%;
    font-size: 12px;
  }
  .contact-portrait {
    display: none;
  }
  .contact-close {
    right: 12px;
    top: 10px;
    width: 34px;
    height: 34px;
    font-size: 27px;
    line-height: 1;
  }
  .project-modal-stage {
    grid-template-rows: 210px minmax(0, 1fr) 200px;
  }
  .project-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 22px;
  }
  .project-modal-meta {
    display: none;
  }
  .project-modal-title {
    font-size: clamp(15px, 5vw, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .availability-dot {
    animation: none;
    opacity: 1;
  }
  .camera-pivot img,
  .burger i {
    transition: none;
  }
  .prehome,
  .enter-trigger,
  .enter-fill,
  .enter-white-reveal {
    transition: none;
  }
  .project-modal,
  .project-modal-stage,
  .contact-page [data-contact-reveal] {
    transition: none;
  }
  .project-modal-close.is-flashing {
    animation: none;
  }
  .contact-drawer-panel,
  .name-drawer-panel,
  .skill-drawer-panel {
    transition: none;
  }
  .typewriter-prompt i,
  .sending-trigger {
    animation: none;
  }
  .theme-toggle,
  .theme-toggle-switch i {
    transition-duration: 0.01ms;
  }
  .theme-toggle:hover,
  .theme-toggle:active {
    transform: none;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .theme-toggle:hover,
  .theme-toggle:active {
    transform: translateX(50%);
  }
}

@media (max-height: 600px) {
  .project-modal-stage {
    grid-template-rows: minmax(90px, 25%) minmax(0, 1fr) 20px;
  }
  .project-modal-header {
    padding: 14px 22px;
  }
}
/* Alternative projects presentation. Existing menu and margins retain their coordinates. */
.roulette {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: clip;
  touch-action: none;
  transition: opacity 0.6s ease;
}
.roulette-background,
.roulette-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.roulette-background {
  --sleeve-base-width: min(36vw, 50vh, 410px);
  --sleeve-width: calc(var(--sleeve-base-width) * 1.25);
  background: transparent;
  perspective: 1000px;
  perspective-origin: 50% 44%;
  isolation: isolate;
  overflow: hidden;
  clip-path: inset(86px 86px 0);
  /* Fade the sleeves beneath the caption while keeping the star grid visible. */
  -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 64%, transparent 74%);
}
.sleeve-definitions {
  position: absolute;
  width: 0;
  height: 0;
}
.project-background-card {
  position: absolute;
  top: 44%;
  left: 50%;
  width: var(--sleeve-width);
  height: calc(var(--sleeve-width) * 0.84);
  margin-left: calc(var(--sleeve-width) * -0.5);
  margin-top: calc(var(--sleeve-width) * -0.42);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.project-sleeve-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #232323;
  clip-path: url("#project-sleeve-clip");
}
.project-sleeve-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff2, transparent 12%, #0002);
  pointer-events: none;
}
.project-background-card[hidden] {
  display: none;
}
.roulette-background img,
.roulette-background video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-sleeve-video {
  position: absolute;
  inset: 0;
}
.project-sleeve-video[hidden] {
  display: none;
}
.roulette-shade {
  background: none;
}
.roulette-orbit {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0;
  height: 0;
}
.orbit-project {
  position: absolute;
  left: 0;
  top: 0;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 2px #fff9,
    0 15px 45px #0002;
  cursor: pointer;
}
.orbit-project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-project[aria-pressed="true"] {
  border: 1px solid #fff;
  box-shadow:
    inset 0 1px 4px #fffc,
    0 20px 60px #0003;
}
.orbit-project:focus-visible,
.roulette-open:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.roulette-caption {
  position: absolute;
  bottom: 12%;
  left: 110px;
  right: 110px;
  text-align: center;
}
.roulette-index {
  font:
    600 13px Doto,
    monospace;
  letter-spacing: 0.15em;
  margin: 0 0 18px;
}
.roulette-title-mask {
  overflow: hidden;
}
.roulette-title {
  font-family: Doto, monospace;
  font-size: clamp(36px, 5.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.05em;
}
.roulette-title span {
  display: inline-block;
  white-space: pre;
}
.roulette-open {
  margin-top: 24px;
  display: inline-flex;
  gap: 28px;
  align-items: center;
  border: 1px solid #fff9;
  border-radius: 40px;
  padding: 17px 24px;
  font:
    700 13px Doto,
    monospace;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow:
    inset 0 1px 3px #fffa,
    inset 0 -1px 3px #0001,
    0 8px 30px #0001;
  transition:
    background 0.25s,
    transform 0.25s;
  cursor: pointer;
}
.roulette-open:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-3px);
}
.roulette-open span:last-child {
  font: 24px sans-serif;
}
.stage.prehome-active .roulette {
  opacity: 0;
  pointer-events: none;
}
.stage.prehome-active.show-middle .roulette {
  opacity: 1;
}
.stage.contact-active .roulette {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
/* Solid paper beneath edge text preserves the established marginal typography. */
.margin {
  background: var(--paper);
}
.stage > .particle-canvas {
  opacity: 1;
}
@media (max-width: 767px) {
  .roulette-background {
    --sleeve-base-width: min(calc(100vw - 112px), 36vh, 320px);
    perspective: 700px;
    perspective-origin: 50% 40%;
    clip-path: inset(84px 46px 0);
  }
  .project-background-card {
    top: 40%;
  }
  .roulette-orbit {
    top: 40%;
  }
  .orbit-project {
    width: 114px;
    height: 114px;
    padding: 7px;
  }
  .roulette-caption {
    left: 24px;
    right: 24px;
    bottom: 15%;
  }
  .roulette-title {
    font-size: 42px;
  }
  .roulette-index {
    margin-bottom: 14px;
  }
  .roulette-open {
    padding: 14px 20px;
    font-size: 12px;
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .roulette,
  .roulette-open {
    transition: none;
  }
}

.roulette-status {
  margin: 0 0 12px;
  min-height: 0;
  font:
    500 13px Doto,
    monospace;
}
.roulette-status:empty {
  display: none;
}

@media (max-height: 600px) {
  .roulette-background {
    --sleeve-base-width: min(34vw, 44vh, 300px);
    clip-path: inset(78px 86px 0);
  }
  .project-background-card {
    top: 43%;
  }
  .roulette-orbit {
    top: 38%;
  }
  .orbit-project {
    width: 120px;
    height: 120px;
  }
  .roulette-caption {
    bottom: 10%;
  }
  .roulette-title {
    font-size: 40px;
  }
  .roulette-open {
    padding: 10px 20px;
    margin-top: 12px;
  }
}
