:root {
  --bg: #d9d9d9;
  --ink: #050505;
  --muted: rgba(0, 0, 0, 0.3);
  --line: rgba(0, 0, 0, 0.14);
  --soft: rgba(255, 255, 255, 0.48);
  --font: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 10.5px;
  line-height: 1.24;
  letter-spacing: 0;
  text-transform: uppercase;
}

button,
a {
  color: inherit;
  font: inherit;
  outline: none;
  text-transform: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  text-decoration: none;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

body[data-route="projects"][data-mode="overview"][data-contact-open="false"] #scene {
  opacity: 0;
}

body[data-route="studio"] #scene,
body[data-contact-open="true"] #scene {
  opacity: 0.08;
  filter: blur(1px);
}

body[data-route="research"] #scene {
  opacity: 0;
}

body[data-mode="index"] #scene {
  opacity: 0;
}

.home-card-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

body[data-ready="true"][data-route="projects"][data-mode="overview"][data-contact-open="false"] .home-card-stage {
  opacity: 1;
  pointer-events: auto;
}

.home-card-slider {
  --card-w: clamp(280px, min(29vw, 40vh), 500px);
  --step-x: clamp(72px, min(6.8vw, 9vh), 120px);
  --step-y: clamp(54px, min(5.4vw, 7.4vh), 88px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  aspect-ratio: 4 / 3;
  perspective: 900px;
  transform: translate(-50%, -50%);
}

.home-card {
  --card-image: none;
  --card-radius: clamp(6px, 0.8vw, 12px);
  position: absolute;
  width: var(--card-w);
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--card-radius);
  overflow: visible;
  background: var(--card-image), var(--card-bg, #dfe3e0);
  background-position: center;
  background-size: cover;
  box-shadow: none;
  cursor: pointer;
  transform-origin: center;
  transition: box-shadow 180ms ease, filter 180ms ease, opacity 220ms ease, translate 180ms ease;
  will-change: transform, translate;
}

.home-card::before {
  display: none;
}

.home-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 38%),
    radial-gradient(90% 28% at 50% 100%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.home-card:hover {
  translate: 0 -10px;
  filter: saturate(1.03);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.home-card:hover::after {
  display: block;
  opacity: 1;
}

.home-card-tab {
  position: absolute;
  left: clamp(18px, 12%, 54px);
  top: -24px;
  z-index: 4;
  display: grid;
  grid-template-columns: 54px auto;
  align-items: center;
  width: max-content;
  min-width: clamp(145px, 42%, 210px);
  height: 24px;
  gap: 9px;
  padding: 0 12px 2px;
  border: 1px solid #050505;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #050505;
  color: #f4f4f0;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  text-transform: none;
}

.home-card-tab b {
  font-weight: 400;
}

.home-card-tab span {
  overflow: hidden;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card:nth-child(1) {
  left: calc(var(--step-x) * -3.5);
  top: calc(var(--step-y) * 3.5);
  z-index: 8;
  opacity: 1;
}

.home-card:nth-child(2) {
  left: calc(var(--step-x) * -2.5);
  top: calc(var(--step-y) * 2.5);
  z-index: 7;
  opacity: 0.9;
}

.home-card:nth-child(3) {
  left: calc(var(--step-x) * -1.5);
  top: calc(var(--step-y) * 1.5);
  z-index: 6;
  opacity: 0.82;
}

.home-card:nth-child(4) {
  left: calc(var(--step-x) * -0.5);
  top: calc(var(--step-y) * 0.5);
  z-index: 5;
  opacity: 0.72;
}

.home-card:nth-child(5) {
  left: calc(var(--step-x) * 0.5);
  top: calc(var(--step-y) * -0.5);
  z-index: 4;
  opacity: 0.62;
}

.home-card:nth-child(6) {
  left: calc(var(--step-x) * 1.5);
  top: calc(var(--step-y) * -1.5);
  z-index: 3;
  opacity: 0.5;
}

.home-card:nth-child(7) {
  left: calc(var(--step-x) * 2.5);
  top: calc(var(--step-y) * -2.5);
  z-index: 2;
  opacity: 0.4;
}

.home-card:nth-child(8) {
  left: calc(var(--step-x) * 3.5);
  top: calc(var(--step-y) * -3.5);
  z-index: 1;
  opacity: 0.3;
}

.home-card-kicker,
.home-card-title,
.home-card-index {
  position: absolute;
  z-index: 1;
  display: none;
}

.home-card-kicker {
  top: 14px;
  left: 16px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  opacity: 0.58;
}

.home-card-title {
  left: 16px;
  right: 18px;
  bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 48px);
  line-height: 0.92;
  text-transform: none;
}

.home-card-index {
  right: 14px;
  top: 12px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  opacity: 0.48;
}

.home-card[data-card="choke-detector"] {
  --card-bg: linear-gradient(130deg, #cbd8d5 0%, #8eaaa7 55%, #eef4ee 100%);
}

.home-card[data-card="heart-lung"] {
  --card-bg: linear-gradient(145deg, #121827 0%, #31365a 52%, #7184d6 100%);
  color: rgba(255, 255, 255, 0.82);
}

.home-card[data-card="eye-health"] {
  --card-bg: linear-gradient(130deg, #ff342f 0%, #f4171e 58%, #341113 100%);
  color: rgba(255, 255, 255, 0.86);
}

.home-card[data-card="decompression"] {
  --card-bg: linear-gradient(135deg, #e8e4da 0%, #c4cfc7 52%, #f6f3ea 100%);
}

.home-card[data-card="transport"] {
  --card-bg: linear-gradient(135deg, #bcdbe0 0%, #d5eee9 48%, #9ab6ad 100%);
}

.home-card[data-card="medical-language"] {
  --card-bg: linear-gradient(145deg, #889b82 0%, #afba9d 48%, #d7dfd0 100%);
}

.home-card[data-card="portfolio-identity"] {
  --card-bg: linear-gradient(135deg, #edff00 0%, #f5ff1a 56%, #a5b300 100%);
}

.home-card[data-card="industrial-studies"] {
  --card-bg: linear-gradient(135deg, #f6f6f1 0%, #d4d9d6 52%, #b9c6c6 100%);
}

.home-portfolio-mark {
  position: fixed;
  right: clamp(40px, 4vw, 96px);
  bottom: clamp(62px, 8vh, 110px);
  z-index: 1;
  width: clamp(260px, 28vw, 560px);
  height: auto;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.98);
  transform-origin: center;
  transition:
    opacity 520ms ease 180ms,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
  pointer-events: none;
}

body[data-ready="true"][data-route="projects"][data-mode="overview"][data-contact-open="false"] .home-portfolio-mark {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-ready="true"] .site-header {
  opacity: 1;
  transform: translateY(0);
}

.site-header nav {
  width: min(580px, 100%);
}

.nav-list {
  display: flex;
  width: 100%;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list li {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.nav-list .brand-item {
  flex: 0 0 200px;
}

.chrome-button {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(250, 250, 250, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chrome-button::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
  pointer-events: none;
}

.chrome-button:hover::after {
  opacity: 1;
}

.nav-button {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 58px;
  gap: 2px;
  padding: 40px 10px 7px;
  opacity: 0.3;
  text-align: left;
}

.nav-button.active {
  opacity: 1;
}

.nav-button small {
  margin-top: -0.5px;
  font-size: 10px;
  line-height: 1;
}

.brand-item .wide-only {
  margin-left: 4px;
}

.view-switch {
  position: fixed;
  right: 4px;
  bottom: 4px;
  z-index: 8;
  display: flex;
  align-items: center;
  height: 40px;
  gap: 28px;
  padding: 1px 16px 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 650ms ease 150ms, transform 650ms cubic-bezier(0.22, 1, 0.36, 1) 150ms;
}

body[data-ready="true"] .view-switch {
  opacity: 1;
  transform: translateY(0);
}

body[data-route="research"] .view-switch,
body[data-route="studio"] .view-switch,
body[data-contact-open="true"] .view-switch {
  opacity: 0;
  pointer-events: none;
}

.switch-option {
  padding: 0;
  opacity: 0.3;
}

.switch-option.active {
  opacity: 1;
}

.project-index {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

body[data-route="projects"][data-mode="index"] .project-index {
  opacity: 1;
  pointer-events: auto;
}

body[data-route="projects"][data-mode="index"][data-contact-open="true"] .project-index,
body[data-contact-open="true"] .project-index {
  opacity: 0;
  pointer-events: none;
}

.index-list {
  position: absolute;
  top: calc(50vh - 100px);
  left: 4px;
  width: calc(100vw - 8px);
  padding: 0;
  margin: 0;
  color: rgba(0, 0, 0, 0.92);
  list-style: none;
}

.index-list li {
  display: grid;
  grid-template-columns: 85px 225px 1fr;
  width: 100%;
  min-height: 23.4px;
  opacity: var(--fade, 0.3);
  animation: list-rise 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.index-list .index-row {
  cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease, color 160ms ease;
}

.index-list .index-row:hover,
.index-list .index-row:focus-visible {
  color: #000;
  background: rgba(0, 0, 0, 0.045);
  opacity: 1;
  outline: none;
}

.index-list .index-head {
  min-height: 33px;
  margin-bottom: 5px;
  opacity: 1;
}

.index-list span {
  display: block;
  padding-left: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.index-list span:nth-child(2) {
  padding-left: 12px;
}

@keyframes list-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.contact-layer {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

body[data-contact-open="true"] .contact-layer {
  opacity: 1;
  pointer-events: auto;
}

.contact-layer::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  content: "";
}

.contact-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #212121;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-contact-open="true"] .contact-panel {
  transform: translateY(0);
}

.paper-stack {
  position: absolute;
  inset: 82px 32px 28px;
  perspective: 1300px;
}

.loose-paper {
  position: absolute;
  border: 1px solid rgba(20, 20, 20, 0.34);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  backface-visibility: hidden;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(var(--from-x, 0), var(--from-y, 26px), -28px) rotate(var(--tilt, 0deg));
  transform-origin: var(--origin, 50% 50%);
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms ease,
    box-shadow 320ms ease,
    filter 320ms ease;
}

body[data-contact-open="true"] .loose-paper {
  opacity: 1;
  transform: translate3d(0, 0, var(--depth, 0)) rotate(var(--tilt, 0deg));
}

body[data-contact-open="true"] .loose-paper:hover {
  filter: saturate(1.04);
  transform: translate3d(0, -10px, var(--depth, 0)) rotate(var(--tilt, 0deg));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.16);
}

body[data-contact-open="true"] .loose-paper.is-top {
  z-index: 8;
  transform: translate3d(0, -22px, var(--depth, 0)) rotate(var(--tilt, 0deg));
}

body[data-contact-open="true"] .loose-paper.is-top:hover {
  transform: translate3d(0, -22px, var(--depth, 0)) rotate(var(--tilt, 0deg));
}

.paper-tab {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  height: 32px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.86);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.paper-tab::before {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  border-left: 1px dotted rgba(20, 20, 20, 0.7);
  content: "";
}

.paper-tab i {
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: #f6f6f6;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.16);
}

.paper-tab b {
  width: 6px;
  height: 6px;
  margin: auto;
  background: #212121;
}

.paper-footer {
  border-top: 1px dotted rgba(20, 20, 20, 0.86);
  border-bottom: 0;
}

.loose-paper h2 {
  margin: 24px 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.3vw, 72px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: none;
}

.paper-experiences {
  --from-x: 22px;
  --from-y: 44px;
  --tilt: 0deg;
  --depth: -20px;
  --origin: 50% 50%;
  top: 12px;
  left: 0;
  right: 0;
  height: calc(100% - 12px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #d1d1d1;
  transition-delay: 70ms;
}

.paper-experiences > .paper-tab {
  flex: 0 0 32px;
}

.cv-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  color: #1d1d1d;
  scrollbar-width: none;
  text-transform: none;
}

.cv-content::-webkit-scrollbar {
  display: none;
}

.cv-section h2 {
  margin: 0;
  padding: 16px 12px 12px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.7);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1;
}

.cv-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(260px, 1fr) minmax(220px, 0.85fr);
  border-bottom: 1px dotted rgba(20, 20, 20, 0.62);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.cv-row span {
  min-width: 0;
  padding: 12px;
}

.cv-head {
  font-size: 10px;
  text-transform: uppercase;
}

.cv-head span {
  padding-top: 9px;
  padding-bottom: 9px;
}

.paper-skillsets {
  --from-x: -42px;
  --from-y: 28px;
  --tilt: 0deg;
  --depth: 14px;
  --origin: 50% 50%;
  top: 120px;
  left: -18px;
  width: min(1240px, calc(100vw - 64px));
  height: auto;
  z-index: 2;
  overflow: hidden;
  background: #ffe52e;
  transition-delay: 150ms;
}

.paper-profile {
  --from-x: 34px;
  --from-y: 36px;
  --tilt: -0.22deg;
  --depth: 36px;
  --origin: 62% 78%;
  left: 0;
  top: clamp(286px, 34vh, 326px);
  width: min(980px, 76vw);
  height: min(590px, calc(100% - clamp(286px, 34vh, 326px)));
  min-height: 430px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  transition-delay: 230ms;
}

.profile-overview::-webkit-scrollbar {
  display: none;
}

.paper-profile > .paper-tab {
  flex: 0 0 32px;
}

.paper-table {
  display: grid;
  grid-template-columns: 118px 170px 1fr;
  border-top: 1px dotted rgba(20, 20, 20, 0.64);
  font-size: 11px;
  line-height: 1.28;
}

.paper-table > * {
  min-height: 36px;
  padding: 10px 12px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.58);
  color: #212121;
  font-weight: 400;
}

.paper-table > span {
  min-height: 38px;
}

.paper-table a {
  color: #212121;
}

.paper-table strong {
  text-transform: none;
}

.skillsets-content {
  padding-bottom: 8px;
  color: #161616;
  text-transform: none;
}

.paper-skillsets .skillsets-content h2 {
  margin: 0;
  padding: 16px 12px 12px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.7);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1;
}

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

.skillsets-list li {
  display: grid;
  grid-template-columns: clamp(72px, 8vw, 112px) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(36px, 4.7vh, 46px);
  padding: 5px 12px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.35vw, 32px);
  font-weight: 400;
  line-height: 1.15;
}

.skillsets-list b {
  font-weight: 400;
}

.skillsets-list span {
  font-weight: 400;
}

.skillsets-section h3 {
  margin: 0;
  padding: 4px 12px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.72);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.skillsets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skillsets-grid span {
  min-height: 30px;
  padding: 8px 12px 7px;
  border-bottom: 1px dotted rgba(20, 20, 20, 0.72);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.skillsets-grid span:nth-child(odd) {
  border-right: 1px dotted rgba(20, 20, 20, 0.72);
}

.profile-overview {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  color: #202020;
  scrollbar-width: none;
  text-transform: none;
}

.profile-overview-intro {
  display: grid;
  grid-template-columns: 34% 1fr;
  min-height: 0;
}

.profile-identity {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-width: 0;
  padding: 20px 28px 22px;
  border-right: 1px dotted rgba(20, 20, 20, 0.58);
}

.profile-identity h2 {
  margin: 0;
  font-size: 50px;
  line-height: 0.95;
  white-space: nowrap;
}

.profile-identity img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 170px;
  object-fit: contain;
  object-position: left center;
}

.profile-biography {
  padding: 28px 36px 20px;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 18px;
  line-height: 1.5;
}

.profile-biography p {
  max-width: 940px;
  margin: 0 0 24px;
}

.profile-links {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  min-height: 0;
}

.profile-links a {
  display: grid;
  grid-template-columns: 34% 1fr;
  align-items: center;
  min-height: 52px;
  border-top: 1px dotted rgba(20, 20, 20, 0.58);
  transition: background-color 160ms ease;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  background: #f1f1f1;
}

.profile-links span {
  padding: 7px 28px 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  text-transform: lowercase;
}

.profile-links strong {
  min-width: 0;
  padding: 8px 36px;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
}

.legal-nav {
  position: fixed;
  bottom: 11px;
  left: 14px;
  z-index: 10;
  display: flex;
  gap: 12px;
  color: rgba(20, 20, 20, 0.46);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  opacity: 1;
  text-transform: uppercase;
}

.interior-page {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

body[data-route="research"] .research-page,
body[data-route="studio"] .studio-page,
body[data-route="detail"] .project-detail-page {
  opacity: 1;
  pointer-events: auto;
}

.project-detail-page {
  z-index: 6;
  overflow: hidden;
  background: var(--bg);
}

.detail-back {
  position: fixed;
  top: 72px;
  left: 4px;
  z-index: 3;
  width: 112px;
  height: 42px;
  padding-top: 18px;
  text-align: left;
  opacity: 0.92;
  backdrop-filter: blur(10px);
}

.detail-copy {
  position: fixed;
  top: 72px;
  left: 128px;
  right: 8px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-items: end;
  min-height: 42px;
  padding: 9px 12px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(217, 217, 217, 0.86);
  backdrop-filter: blur(10px);
  text-transform: none;
}

.detail-year,
.detail-category,
.detail-meta {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.detail-year {
  display: block;
  grid-row: 1;
  margin: 0;
  opacity: 0.48;
}

.detail-title {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.detail-category {
  grid-column: 2;
  margin: 0;
  opacity: 0.56;
}

.detail-description {
  display: none;
}

.detail-meta {
  display: none;
}

.detail-images {
  position: absolute;
  inset: 150px 4px 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 4px;
  scrollbar-width: none;
}

.detail-images::-webkit-scrollbar {
  display: none;
}

.detail-images img {
  display: block;
  width: calc(100vw - 8px);
  height: auto;
  margin: 0 0 2px;
  border: 0;
  background: #ececea;
}

body[data-route="detail"] .view-switch {
  opacity: 0;
  pointer-events: none;
}

.all-projects-page {
  overflow: hidden;
  background: var(--bg);
  color: #050505;
}

.archive-drawer {
  --drawer-w: min(1080px, 94vw);
  --row-step: clamp(28px, 3.45vh, 37px);
  --folder-h: clamp(48px, 5.1vh, 58px);
  --line: 1px;
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.2vh, 38px);
  width: var(--drawer-w);
  height: min(820px, calc(100vh - 104px));
  transform: translateX(-50%);
  perspective: 1400px;
}

.archive-stack {
  position: absolute;
  left: 50%;
  right: auto;
  z-index: 2;
  bottom: clamp(96px, 10.6vh, 128px);
  width: calc(var(--drawer-w) * 0.82);
  height: calc(var(--row-step) * 19 + var(--folder-h) + 96px);
  transform: translateX(-50%) rotateX(2deg);
  transform-origin: 50% 100%;
}

.archive-rails-svg {
  position: absolute;
  left: 50%;
  bottom: clamp(88px, 9.8vh, 118px);
  z-index: 0;
  display: block;
  width: calc(var(--drawer-w) * 0.98);
  height: calc(var(--row-step) * 19 + var(--folder-h) + 112px);
  overflow: visible;
  pointer-events: none;
  transform: translateX(-50%);
}

.archive-rail-back,
.archive-rail-side {
  fill: none;
  stroke: #050505;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.archive-folder {
  position: absolute;
  left: 50%;
  bottom: calc(var(--i) * var(--row-step));
  z-index: var(--z);
  width: 100%;
  height: var(--folder-h);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #050505;
  cursor: pointer;
  overflow: visible;
  text-align: left;
  transform: translateX(-50%) scaleX(var(--folder-scale, 1));
  transform-origin: 50% 100%;
  transition:
    bottom 520ms cubic-bezier(0.22, 1, 0.36, 1),
    height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    filter 220ms ease;
}

.archive-folder::before {
  position: absolute;
  top: -23px;
  left: var(--tab-left);
  z-index: 2;
  width: var(--tab-w);
  height: 24px;
  border: var(--line) solid #050505;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #dedede;
  content: "";
}

.archive-folder::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: var(--line) solid #050505;
  border-radius: 6px 6px 0 0;
  background: #dedede;
  content: "";
  pointer-events: none;
}

.archive-folder:hover {
  filter: brightness(1.03);
  box-shadow: none;
  transform: translateX(-50%) translateY(-2px) scaleX(var(--folder-scale, 1));
}

.archive-folder.is-dark {
  background: transparent;
  color: #050505;
  box-shadow: none;
}

.archive-folder.is-dark::before {
  background: #050505;
}

.archive-folder.is-dark .archive-tab {
  color: #f4f4f0;
}

.archive-folder:nth-child(1) {
  --folder-scale: 0.86;
}

.archive-folder:nth-child(2) {
  --folder-scale: 0.875;
}

.archive-folder:nth-child(3) {
  --folder-scale: 0.89;
}

.archive-folder:nth-child(4) {
  --folder-scale: 0.905;
}

.archive-folder:nth-child(5) {
  --folder-scale: 0.92;
}

.archive-folder:nth-child(6) {
  --folder-scale: 0.935;
}

.archive-folder:nth-child(7) {
  --folder-scale: 0.95;
}

.archive-folder:nth-child(8) {
  --folder-scale: 0.965;
}

.archive-folder:nth-child(9) {
  --folder-scale: 0.98;
}

.archive-folder:nth-child(10) {
  --folder-scale: 0.995;
}

.archive-folder:nth-child(11) {
  --folder-scale: 1.01;
}

.archive-folder:nth-child(12) {
  --folder-scale: 1.025;
}

.archive-folder:nth-child(13) {
  --folder-scale: 1.04;
}

.archive-folder:nth-child(14) {
  --folder-scale: 1.055;
}

.archive-folder:nth-child(15) {
  --folder-scale: 1.07;
}

.archive-folder:nth-child(16) {
  --folder-scale: 1.085;
}

.archive-folder:nth-child(17) {
  --folder-scale: 1.1;
}

.archive-folder:nth-child(18) {
  --folder-scale: 1.115;
}

.archive-folder:nth-child(19) {
  --folder-scale: 1.13;
}

.archive-tab {
  position: absolute;
  left: var(--tab-left);
  top: -23px;
  z-index: 4;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  width: var(--tab-w);
  height: 24px;
  padding: 0 12px 2px;
  gap: 8px;
  font-size: 15px;
  line-height: 1;
  text-transform: none;
}

.archive-tab b {
  font-weight: 400;
}

.archive-tab span {
  overflow: hidden;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-detail {
  position: absolute;
  inset: 34px clamp(44px, 5.4vw, 76px) 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 0.74fr) minmax(240px, 1fr);
  grid-template-rows: auto auto auto 1fr;
  align-items: center;
  column-gap: clamp(28px, 5.4vw, 88px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 260ms ease 120ms,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
  text-transform: none;
}

.archive-detail strong {
  grid-column: 1;
  align-self: end;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 500;
  line-height: 1;
}

.archive-detail em {
  grid-column: 1;
  align-self: start;
  margin-top: 7px;
  color: rgba(0, 0, 0, 0.36);
  font-size: clamp(16px, 1.25vw, 20px);
  font-style: normal;
  line-height: 1.1;
}

.archive-summary {
  grid-column: 1;
  align-self: start;
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.38;
}

.archive-detail img {
  grid-column: 2;
  grid-row: 1 / 5;
  justify-self: center;
  max-width: min(390px, 31vw);
  max-height: min(315px, 36vh);
  border-radius: 3px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.archive-detail small {
  grid-column: 1;
  align-self: end;
  max-width: 320px;
  color: rgba(0, 0, 0, 0.56);
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.3;
}

.archive-stack.has-open .archive-folder:not(.is-open) {
  filter: saturate(0.92);
}

.archive-folder.is-open {
  bottom: calc(var(--i) * var(--row-step));
  z-index: 120;
  height: clamp(260px, 38vh, 390px);
  background: transparent;
  color: #050505;
  transform: translateX(-50%);
  box-shadow: none;
}

.archive-folder.is-open:hover {
  transform: translateX(-50%);
}

.archive-folder.is-open::before {
  background: #dedede;
}

.archive-folder.is-open::after {
  background: #dedede;
}

.archive-folder.is-open .archive-tab {
  color: #050505;
}

.archive-folder.is-open .archive-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.archive-open-target {
  cursor: pointer;
}

.archive-open-target:hover {
  filter: brightness(0.96);
}

.archive-folder.is-open ~ .archive-folder {
  transform: translateX(-50%) scaleX(var(--folder-scale, 1));
}

.archive-drawer-front {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 150;
  width: calc(var(--drawer-w) * 1.04);
  height: clamp(108px, 12vh, 150px);
  background: transparent;
  transform: translateX(-50%);
}

.archive-drawer-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.drawer-panel-lip,
.drawer-panel-shape {
  fill: #dedede;
  stroke: #050505;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.archive-drawer-front span {
  position: absolute;
  left: 50%;
  bottom: clamp(42px, 4.6vh, 58px);
  min-width: 176px;
  padding: 8px 22px 7px;
  border: var(--line) solid #050505;
  border-radius: 7px;
  background: #fff877;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: none;
  transform: translateX(-50%) skewX(-9deg);
}

.archive-drawer-front span::first-letter {
  text-transform: none;
}

.moments-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  scrollbar-width: none;
}

.moments-page::-webkit-scrollbar {
  display: none;
}

.moments-grid {
  width: min(92vw, 1600px);
  margin: 0 auto;
  padding: 78px 0 32px;
}

.moments-row {
  --row-ratio: 3 / 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.moments-row.is-landscape {
  --row-ratio: 4 / 3;
}

.moments-row.is-square {
  --row-ratio: 1 / 1;
}

.moments-row.is-tall {
  --row-ratio: 2 / 3;
}

.moment-item {
  aspect-ratio: var(--row-ratio);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.moment-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.works-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 242px;
  padding: 20px 22px 13px;
  overflow: hidden;
  visibility: hidden;
  background: #1d1d1d;
  color: #696969;
  pointer-events: none;
  transform: translate3d(0, 104%, 0);
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 700ms;
  will-change: transform;
}

body[data-footer-open="true"] .works-footer {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

body[data-route="projects"][data-contact-open="false"] .works-footer {
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 104%, 0);
}

.works-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  color: #bebebe;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.works-footer-links a:nth-child(2),
.works-footer-links a:nth-child(3),
.works-footer-links a:nth-child(4) {
  text-align: center;
}

.works-footer-links a {
  transition: color 160ms ease;
}

.works-footer-links a:hover,
.works-footer-links a:focus-visible {
  color: #ffffff;
}

.works-footer-title {
  align-self: center;
  margin: 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 128px;
  font-weight: 400;
  line-height: 0.78;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
}

.works-footer-meta {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99;
  display: grid;
  width: min(620px, calc(100vw - 40px));
  gap: 12px;
  justify-items: center;
  transform: translate(-50%, -50%);
  opacity: 1;
  text-align: center;
  transition: opacity 320ms ease;
}

.loader p {
  margin: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
}

.loader span {
  font-size: 13px;
}

body[data-ready="true"] .loader {
  opacity: 0;
}

@media (max-width: 1200px) {
  .works-footer-title {
    font-size: 92px;
  }
}

@media (min-width: 701px) and (max-height: 900px) {
  .archive-folder.is-open {
    bottom: min(calc(var(--i) * var(--row-step)), clamp(245px, 34vh, 300px));
  }

  .archive-detail img {
    max-height: min(285px, 31vh);
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .paper-stack {
    inset: 82px 26px 42px;
  }

  .paper-profile {
    min-height: 0;
    height: calc(100% - clamp(286px, 34vh, 326px));
  }

  .profile-overview {
    display: block;
  }

  .profile-overview-intro {
    grid-template-columns: 32% minmax(0, 1fr);
    align-items: start;
  }

  .profile-identity {
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 18px 20px 22px;
  }

  .profile-identity h2 {
    font-size: 44px;
  }

  .profile-identity img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    object-position: left top;
  }

  .profile-biography {
    padding: 22px 26px 18px;
    font-size: 16px;
    line-height: 1.45;
  }

  .profile-biography p {
    margin-bottom: 18px;
  }

  .profile-links {
    grid-template-rows: repeat(5, minmax(54px, auto));
  }

  .profile-links a {
    min-height: 54px;
  }

  .profile-links span {
    padding-right: 18px;
    padding-left: 20px;
    font-size: 27px;
  }

  .profile-links strong {
    padding-right: 26px;
    padding-left: 26px;
    font-size: 14px;
  }

  body[data-contact-open="true"] .legal-nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header nav {
    width: 100%;
  }

  .nav-list .brand-item,
  .nav-list li {
    flex: 1 1 25%;
  }

  .wide-only {
    display: none;
  }

  .nav-button {
    justify-content: flex-start;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 9px;
    white-space: nowrap;
  }

  .view-switch {
    right: 4px;
    bottom: 17px;
  }

  .index-list {
    top: 36%;
  }

  .index-list li {
    grid-template-columns: 25vw 47vw 1fr;
  }

  .index-list span:nth-child(3) {
    display: none;
  }

  .home-portfolio-mark {
    right: 18px;
    bottom: 72px;
    width: min(74vw, 300px);
  }

  .home-card-slider {
    --card-w: min(80vw, 340px);
    --step-x: 20px;
    --step-y: 34px;
    top: 52%;
    left: 50%;
  }

  .home-card-title {
    font-size: clamp(22px, 8vw, 34px);
  }

  .home-card-tab {
    top: -22px;
    grid-template-columns: 42px auto;
    min-width: 132px;
    height: 22px;
    gap: 6px;
    padding: 0 8px 1px;
    font-size: 11px;
  }

  .detail-back {
    top: 66px;
    width: 92px;
  }

  .detail-copy {
    top: 66px;
    left: 102px;
    right: 4px;
    min-height: 42px;
    gap: 4px 10px;
    padding: 8px 9px;
  }

  .detail-title {
    font-size: clamp(18px, 6vw, 28px);
  }

  .detail-category {
    display: none;
  }

  .detail-images {
    inset: 128px 2px 0;
  }

  .detail-images img {
    width: calc(100vw - 4px);
    margin-bottom: 1px;
  }

  .archive-drawer {
    --drawer-w: 96vw;
    --row-step: 19px;
    --folder-h: 56px;
    bottom: 24px;
    height: calc(100vh - 96px);
  }

  .archive-stack {
    bottom: 82px;
    width: calc(var(--drawer-w) * 0.9);
    height: calc(var(--row-step) * 19 + var(--folder-h) + 96px);
  }

  .archive-folder {
    border-radius: 7px 7px 4px 4px;
  }

  .archive-folder::before {
    top: -23px;
    height: 25px;
  }

  .archive-tab {
    top: -23px;
    height: 25px;
    grid-template-columns: 42px 1fr;
    gap: 5px;
    padding: 0 8px 1px;
    font-size: 10px;
  }

  .archive-folder.is-open {
    bottom: calc(var(--i) * var(--row-step));
    height: min(325px, 42vh);
  }

  .archive-detail {
    inset: 26px 18px 18px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr;
    row-gap: 7px;
  }

  .archive-summary {
    grid-column: 1;
    grid-row: 3;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.28;
  }

  .archive-detail img {
    grid-column: 1;
    grid-row: 4;
    max-width: min(230px, 72vw);
    max-height: 160px;
  }

  .archive-detail small {
    grid-column: 1;
    grid-row: 5;
  }

  .archive-drawer-front {
    width: calc(var(--drawer-w) * 1.04);
    height: 70px;
  }

  .archive-drawer-front span {
    bottom: 17px;
    min-width: 154px;
    padding: 7px 16px;
    font-size: 12px;
  }

  .paper-stack {
    inset: 86px 14px 58px;
  }

  .paper-experiences {
    top: 8px;
    left: 0;
    right: 0;
    height: calc(100% - 8px);
  }

  .paper-skillsets {
    top: 120px;
    left: 0;
    width: 100%;
    height: auto;
  }

  .paper-profile {
    top: 300px;
    left: 0;
    width: 100%;
    height: calc(100vh - 380px);
    min-height: 430px;
    overflow: hidden;
  }

  .loose-paper h2 {
    margin: 18px 18px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .paper-table {
    grid-template-columns: 58px 78px 1fr;
    font-size: 9.5px;
  }

  .paper-table > * {
    min-height: 34px;
    padding: 8px 7px;
  }

  .cv-section h2 {
    padding: 12px 10px 9px;
    font-size: 38px;
  }

  .cv-row {
    grid-template-columns: 82px minmax(120px, 1fr) minmax(105px, 0.9fr);
    font-size: 8px;
    line-height: 1.35;
  }

  .cv-row span {
    padding: 8px 6px;
  }

  .paper-skillsets .skillsets-content h2 {
    margin: 0;
    padding: 12px 10px 9px;
    font-size: 38px;
  }

  .skillsets-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 31px;
    padding: 4px 10px;
    font-size: clamp(17px, 5vw, 22px);
  }

  .skillsets-grid span {
    min-height: 28px;
    padding: 7px 8px 6px;
    font-size: 8px;
  }

  .profile-overview {
    display: block;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow-y: auto;
  }

  .profile-overview-intro {
    grid-template-columns: 1fr;
  }

  .profile-identity {
    gap: 16px;
    padding: 20px 18px 24px;
    border-right: 0;
    border-bottom: 1px dotted rgba(20, 20, 20, 0.58);
  }

  .profile-identity h2 {
    font-size: 40px;
  }

  .profile-identity img {
    width: auto;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: left center;
  }

  .profile-biography {
    padding: 24px 18px 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .profile-links a {
    grid-template-columns: 112px 1fr;
    min-height: 60px;
  }

  .profile-links span {
    padding: 8px 14px 10px;
    font-size: 25px;
  }

  .profile-links strong {
    padding: 8px 14px;
    font-size: 12px;
  }

  .legal-nav {
    bottom: 11px;
    max-width: calc(100vw - 28px);
    flex-wrap: wrap;
  }

  .moments-grid {
    width: calc(100vw - 20px);
    padding: 70px 0 20px;
  }

  .moments-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }

  .works-footer {
    height: 184px;
    padding: 17px 12px 11px;
  }

  .works-footer-links {
    gap: 8px;
    font-size: 9px;
  }

  .works-footer-title {
    font-size: 45px;
  }

  .works-footer-meta {
    gap: 16px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .works-footer-title {
    font-size: 36px;
  }
}
