@font-face {
  font-family: Space Grotesk;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --bg: #141513;
  --surface: #1c1e19;
  --surface-raised: #24271f;
  --text: #f0f0e9;
  --muted: #a6aaa0;
  --accent: #d8f78c;
  --accent-ink: #1b2510;
  --line: #34372f;
  --art-bg: #191c15;
  --error: #ffaca5;
  --header: rgba(20, 21, 19, 0.95);
  color-scheme: dark;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="light"] {
  --bg: #edf0e9;
  --surface: #e3e8dc;
  --surface-raised: #d9e0cf;
  --text: #20241c;
  --muted: #59624f;
  --accent: #4a641d;
  --accent-ink: #f0f4e7;
  --line: #c7ccbe;
  --art-bg: #e8ecdf;
  --error: #a92d26;
  --header: rgba(237, 240, 233, 0.96);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 16px/1.6 "Space Grotesk",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 0;
  background: none;
}
img,
canvas {
  display: block;
  max-width: 100%;
}
button,
a {
  touch-action: manipulation;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
input,
textarea {
  caret-color: var(--accent);
}
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}
.wrap {
  width: min(1320px, calc(100% - 112px));
  margin-inline: auto;
}
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: var(--icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  vertical-align: middle;
}
.accent {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 20px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand-dot {
  color: var(--accent);
}
.brand-name {
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-left: 12px;
  font-weight: 500;
}
.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  color: var(--muted);
}
.desktop-nav a {
  transition: color 0.2s;
}
.desktop-nav a:hover {
  color: var(--text);
}
.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
}
.icon-button:hover {
  background: var(--surface-raised);
  color: var(--accent);
}
.resume-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 9px 17px;
  border-radius: 99px;
}
.resume-link:hover {
  border-color: var(--muted);
}
.mobile-menu-toggle,
.mobile-nav {
  display: none;
}
.hero {
  padding-top: 34px;
}
.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
}
.hero-role {
  font-size: 11px;
  letter-spacing: 0.13em;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 580px;
  padding-top: 35px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 20px 0 35px;
}
.hero h1 {
  font-size: clamp(60px, 6.6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 30px;
}
.hero h1 > span:not(.accent) {
  color: var(--muted);
}
.hero-copy > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 370px;
  margin: 0 0 29px;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.round-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.4s var(--ease);
}
.primary-link:hover .round-icon {
  transform: translateY(5px);
}
.hero-art {
  position: relative;
  min-width: 0;
  padding-top: 0;
}
.model-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.11em;
  color: var(--muted);
  padding-inline: 10px;
}
.model-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tiny-cross {
  display: inline-block;
  width: 10px;
  height: 10px;
  position: relative;
  flex-shrink: 0;
}
.tiny-cross:before,
.tiny-cross:after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.tiny-cross:after {
  transform: rotate(90deg);
}
#latent-canvas {
  width: 100%;
  height: 340px;
  contain: strict;
  cursor: grab;
  touch-action: pan-y;
}
.model-coordinates {
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  font: 9px/1.4 monospace;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.model-coordinates span:first-child {
  color: var(--accent);
  font-size: 13px;
}
.portrait-signature {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 35px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.portrait-signature img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 12px;
}
.portrait-signature > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.portrait-signature > div > span {
  font-size: 11px;
  color: var(--muted);
}
.portrait-signature strong {
  font-size: 13px;
  font-weight: 500;
}
.signature-alias {
  color: var(--muted);
  font-weight: 400;
}
.portrait-signature a {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.portrait-signature .icon {
  width: 12px;
  height: 12px;
}
.hero-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
  font-size: 11px;
  color: var(--muted);
}
.hero-foot > a {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-foot .icon {
  width: 15px;
  height: 15px;
}
.scroll-cue {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.work-section {
  padding: 110px 0 0;
  overflow: hidden;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
h2 {
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}
h3 {
  font-weight: 500;
}
.section-aside {
  max-width: 375px;
  padding-bottom: 4px;
}
.section-aside > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 24px;
}
.view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px;
}
.view-switch button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 99px;
  transition:
    background 0.3s,
    color 0.3s;
}
.view-switch button.active {
  background: var(--text);
  color: var(--bg);
}
.view-switch .icon {
  width: 15px;
  height: 15px;
}
.work-filters {
  display: flex;
  gap: 26px;
  margin-top: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.work-filters button {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
}
.work-filters button.active {
  color: var(--text);
}
.work-filters button.active:after {
  position: absolute;
  content: "";
  height: 2px;
  left: 0;
  right: 0;
  bottom: -17px;
  background: var(--accent);
}
.work-filters button span {
  font-size: 11px;
  color: var(--accent);
  margin-left: 4px;
}
.project-text-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 36px;
  padding-block: 48px;
}
.project-text-index h3 { margin-bottom: 12px; }
.project-text-index p { color: var(--muted); margin-bottom: 14px; }
.project-text-index a { text-decoration: underline; text-underline-offset: 3px; }
.projects-container {
  min-height: 580px;
  position: relative;
}
.work-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  color: var(--text);
  font-size: 24px;
}
.work-loading span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.work-error {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
}
.work-error button {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 22px;
  margin-top: 16px;
}
.spatial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
  min-height: 580px;
  align-items: center;
}
.archive-stage {
  height: 570px;
  position: relative;
  perspective: 1500px;
  min-width: 0;
}
.archive-scene {
  position: absolute;
  width: 620px;
  height: 350px;
  left: 50%;
  top: 49%;
  margin-left: -310px;
  margin-top: -140px;
  transform-style: preserve-3d;
  transform: rotateX(53deg) rotateZ(-28deg);
  transition: transform 0.8s var(--ease);
}
.archive-floor {
  position: absolute;
  inset: 0;
  background: #22291c;
  border: 1px solid #4c5b39;
  box-shadow: -20px 35px 70px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
}
.archive-floor:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 64px;
  transform-origin: bottom;
  transform: rotateX(-90deg);
  background: #151b11;
  border: 1px solid #50633a;
}
.archive-side {
  position: absolute;
  right: 0;
  top: 0;
  width: 64px;
  height: 350px;
  background: #182012;
  transform-origin: right;
  transform: rotateY(-90deg);
  border: 1px solid #50633a;
}
.archive-front-label {
  position: absolute;
  bottom: -42px;
  left: 28px;
  transform: rotateX(-90deg);
  transform-origin: top;
  font: 9px/1 monospace;
  letter-spacing: 0.28em;
  color: #d8f78c;
  backface-visibility: visible;
}
.project-file {
  position: absolute;
  left: 25px;
  width: 570px;
  height: 235px;
  bottom: calc(20px + var(--file-index) * 48px);
  background: #202a19;
  color: #e9f1db;
  border: 1px solid #788c5a;
  border-radius: 13px 13px 3px 3px;
  transform: rotateX(-90deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  text-align: left;
  padding: 20px 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.5s var(--ease),
    background 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 -2px 0 #a0b879;
  outline-offset: 7px;
  overflow: visible;
}
.project-file:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 12px;
  right: 23px;
  top: -12px;
  border: 1px solid #788c5a;
  border-bottom: none;
  background: inherit;
  border-radius: 7px 7px 0 0;
}
.project-file:hover,
.project-file:focus-visible {
  transform: rotateX(-90deg) translateY(-55px);
  background: #303f22;
  box-shadow: 0 -2px 0 #d8f78c;
}
.file-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.file-category {
  font-size: 11px;
  color: #aab99a;
}
.file-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.file-name {
  font-size: 43px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.file-art {
  font:
    68px/1.1 "Space Grotesk",
    sans-serif;
  color: #d8f78c;
  opacity: 0.9;
}
.file-bottom {
  font: 8px/1.6 monospace;
  color: #aab99a;
  display: flex;
  justify-content: space-between;
}
.archive-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.archive-hint .icon {
  width: 15px;
  height: 15px;
}
.archive-index {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.archive-index > p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 16px;
  letter-spacing: 0.1em;
}
.archive-index button {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: left;
  transition:
    color 0.2s,
    transform 0.3s var(--ease);
  font-size: 12px;
}
.archive-index button .index-mark {
  width: 5px;
  height: 5px;
  background: var(--line);
  border-radius: 50%;
  transition: background 0.2s;
}
.archive-index button:hover,
.archive-index button.active {
  color: var(--text);
  transform: translateX(4px);
}
.archive-index button.active .index-mark {
  background: var(--accent);
}
.archive-index button .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
}
.archive-index .index-caption {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  min-height: 70px;
  margin: 18px 0 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  padding: 36px 0 42px;
}
.project-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  min-width: 0;
}
.project-card .project-art {
  border-radius: 14px;
  aspect-ratio: 1.35;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
  position: relative;
}
.project-card:hover .project-art {
  transform: translateY(-6px);
}
.card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
}
.card-label h3 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -0.02em;
}
.card-label .icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.3s;
}
.project-card:hover .card-label .icon {
  transform: translate(3px, -3px);
  color: var(--accent);
}
.card-category {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.project-art {
  background: var(--art-bg);
  color: var(--text);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-code {
  position: absolute;
  top: 17px;
  left: 19px;
  font: 8px/1.5 monospace;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.art-caption {
  position: absolute;
  bottom: 16px;
  right: 19px;
  font: 8px/1.5 monospace;
  color: var(--muted);
}
.art-dime .cluster {
  position: relative;
  width: 175px;
  height: 155px;
  transform: rotate(-15deg);
}
.cluster:before,
.cluster:after {
  content: "";
  position: absolute;
  inset: 23px 22px;
  border: 1px solid var(--accent);
  opacity: 0.35;
  transform: rotate(45deg);
}
.cluster:after {
  inset: 48px -3px;
  transform: rotate(-20deg);
}
.cluster i {
  position: absolute;
  width: 36px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--surface-raised);
  box-shadow: 6px 6px 0 var(--art-bg);
  display: grid;
  place-items: center;
  font: 10px monospace;
  color: var(--accent);
  transform: skewY(-10deg);
}
.cluster i:nth-child(1) {
  left: 68px;
  top: 55px;
  background: var(--accent);
  color: var(--accent-ink);
}
.cluster i:nth-child(2) {
  left: 5px;
  top: 9px;
}
.cluster i:nth-child(3) {
  left: 127px;
  top: 3px;
}
.cluster i:nth-child(4) {
  left: 138px;
  top: 108px;
}
.cluster i:nth-child(5) {
  left: 0;
  top: 116px;
}
.cluster i:nth-child(6) {
  left: 66px;
  top: 122px;
}
.art-cllm .usb {
  width: 100px;
  height: 140px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-28deg);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 9px 12px 0 var(--line);
}
.usb:before {
  content: "";
  position: absolute;
  top: -42px;
  width: 66px;
  height: 43px;
  background: var(--muted);
  border-radius: 3px 3px 0 0;
  border: 8px solid var(--surface-raised);
}
.usb:after {
  content: "cllm";
  font-size: 32px;
  font-weight: 500;
  transform: rotate(90deg);
}
.art-quantum .molecule {
  width: 210px;
  height: 170px;
  position: relative;
  transform: rotate(-30deg);
}
.molecule:before,
.molecule:after {
  content: "";
  position: absolute;
  top: 25px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: radial-gradient(
    circle at 35% 30%,
    var(--accent),
    transparent 60%
  );
  opacity: 0.6;
}
.molecule:before {
  left: 0;
}
.molecule:after {
  right: 0;
}
.molecule span {
  position: absolute;
  left: 0;
  top: 72px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}
.molecule b {
  position: absolute;
  font-size: 18px;
  font-weight: 400;
  left: 46px;
  top: 67px;
  color: var(--text);
}
.molecule b:last-child {
  left: auto;
  right: 46px;
}
.art-acm .flashcards {
  position: relative;
  width: 170px;
  height: 135px;
}
.flashcards:before,
.flashcards:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 10px;
  transform: rotate(-14deg);
}
.flashcards:after {
  transform: rotate(8deg);
}
.flashcards span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  background: var(--art-bg);
  color: var(--accent);
  border-radius: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 36px;
  transform: rotate(-3deg);
}
.art-health .record {
  width: 150px;
  height: 170px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  transform: rotate(12deg);
  padding: 22px;
  color: var(--accent);
}
.record strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}
.record span {
  display: block;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  margin-top: 15px;
}
.record span:last-child {
  width: 60%;
}
.art-levoks .flow {
  display: flex;
  gap: 18px;
  align-items: center;
  transform: rotate(-13deg);
}
.flow i {
  font: 18px monospace;
  padding: 14px 10px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  position: relative;
}
.flow i:not(:last-child):after {
  content: "";
  position: absolute;
  right: -19px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.work-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.work-bottom > span {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.work-bottom a {
  display: flex;
  gap: 12px;
  align-items: center;
}
.work-bottom .icon {
  width: 16px;
  height: 16px;
}
.research-section {
  padding: 130px 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 100px;
}
.research-intro > p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 300px;
  margin: 26px 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.text-link .icon {
  width: 17px;
  height: 17px;
}
.text-link:hover {
  color: var(--accent);
}
.research-threads details {
  border-top: 1px solid var(--line);
}
.research-threads details:last-child {
  border-bottom: 1px solid var(--line);
}
.research-threads summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 20px;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.research-threads summary::-webkit-details-marker {
  display: none;
}
.thread-symbol {
  font-size: 23px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.35s var(--ease);
}
details[open] .thread-symbol {
  transform: rotate(45deg);
  color: var(--accent);
}
.research-threads details > div {
  padding: 0 28px 26px 0;
}
.research-threads details p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 14px;
}
.research-threads details a {
  font-size: 11px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.research-threads details .icon {
  width: 13px;
  height: 13px;
}
.about-section {
  background: var(--surface);
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}
.about-visual {
  max-width: 360px;
}
.portrait-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.97);
}
.portrait-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #141513;
  color: #f0f0e9;
  font-size: 11px;
  letter-spacing: 0.09em;
  padding: 7px 10px;
  border-radius: 4px;
}
.photo-note {
  color: var(--muted);
  font-size: 11px;
  margin: 14px 0 0;
}
.about-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  margin: 25px 0;
}
.about-copy .current-focus {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  line-height: 1.8;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.current-focus .status-dot {
  margin-top: 7px;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 27px;
}
.experience-list {
  margin-top: 74px;
}
.experience-list article {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 12px;
}
.experience-list article:last-child {
  border-bottom: 1px solid var(--line);
}
.experience-list article > div {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}
.experience-list p,
.experience-date {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.experience-list .lab-logo {
  width: 27px;
  height: 27px;
  object-fit: contain;
  border-radius: 4px;
  background: #f0f0e9;
}
.experience-list .icon {
  width: 26px;
  height: 26px;
}
.education-mark {
  width: 27px;
  font-size: 11px;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.community {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  margin-top: 86px;
  align-items: center;
}
.community-photo {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1.5;
}
.community-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.6);
}
.community-mark {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.community-copy > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  max-width: 330px;
  margin: 20px 0;
}
.achievements {
  display: flex;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 25px;
}
.achievements > span {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.achievements strong {
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
}
.contact-section {
  padding: 110px 0 80px;
}
.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.contact-top .status {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 27px;
}
.contact-top h2 {
  font-size: clamp(45px, 5.3vw, 75px);
}
.contact-top p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin: 24px 0 0;
}
.contact-orbit {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background 0.4s var(--ease),
    transform 0.5s var(--ease),
    color 0.2s;
}
.contact-orbit .icon {
  width: 58px;
  height: 58px;
}
.contact-orbit:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(15deg);
}
.contact-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}
.email-link {
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 4px;
}
.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.copy-email {
  color: var(--muted);
  padding: 8px;
}
.copy-email .icon {
  width: 17px;
  height: 17px;
}
.message-button {
  margin-left: auto;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  align-items: center;
  padding-block: 32px;
  font-size: 11px;
  color: var(--muted);
}
.site-footer .wordmark {
  color: var(--text);
  font-size: 30px;
}
.site-footer .brand-name {
  font-size: 14px;
  margin-left: 8px;
}
.footer-note {
  margin-left: 22px;
}
.social-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.social-links .icon {
  width: 17px;
  height: 17px;
}
.social-links a:hover {
  color: var(--accent);
}
.copyright {
  font-size: 11px;
}
.admin-link {
  opacity: 0.65;
  display: flex;
  align-items: center;
  padding: 8px;
}
.admin-link .icon {
  width: 13px;
  height: 13px;
}
.admin-link:hover {
  opacity: 1;
  color: var(--accent);
}
dialog {
  padding: 0;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-height: calc(100dvh - 48px);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgba(8, 10, 7, 0.8);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.project-dialog {
  width: min(940px, calc(100% - 40px));
  overflow: auto;
}
.detail-top {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
}
.detail-top > span {
  font-size: 11px;
  color: var(--muted);
}
.detail-top .icon-button {
  width: 34px;
  height: 34px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 290px;
}
.detail-heading {
  padding: 38px 35px;
}
.detail-heading > p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.detail-heading h2 {
  font-size: 52px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.detail-heading .detail-subtitle {
  font-size: 15px;
  color: var(--text);
  margin: 16px 0 0;
  line-height: 1.6;
}
.detail-hero .project-art {
  min-height: 280px;
}
.detail-body {
  padding: 36px 45px 42px;
}
.detail-summary {
  font-size: 20px;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 0 26px;
  letter-spacing: -0.015em;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.detail-tags span {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 10px;
  color: var(--muted);
}
.case-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 25px;
  padding-top: 29px;
}
.case-section h3 {
  font-size: 13px;
  margin: 2px 0 0;
}
.case-section p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
}
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.detail-links a {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 99px;
}
.detail-links a:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.detail-links .icon {
  width: 14px;
  height: 14px;
}
.detail-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
}
.detail-footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 7px 0;
  color: var(--muted);
}
.detail-footer button:hover {
  color: var(--text);
}
.detail-footer .icon {
  width: 16px;
  height: 16px;
}
.contact-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 42px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
}
.contact-dialog h2 {
  font-size: 35px;
  margin-top: 10px;
}
.contact-dialog > p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 25px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 18px;
}
input,
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.solid-button {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-radius: 99px;
  font-weight: 500;
}
.solid-button:hover {
  filter: brightness(0.95);
}
.solid-button .icon {
  width: 17px;
  height: 17px;
}
.form-status {
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0 0;
}
.form-status.error {
  color: var(--error);
}
.form-status.success {
  color: var(--accent);
}
.contact-direct {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 22px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 99px;
  padding: 12px 22px;
  font-size: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-enter 1s var(--ease) both;
  }
  .hero-art {
    animation: hero-enter 1.2s 0.1s var(--ease) both;
  }
  dialog[open] {
    animation: sheet-enter 0.4s var(--ease);
  }
  @keyframes hero-enter {
    from {
      opacity: 0.4;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes sheet-enter {
    from {
      opacity: 0.3;
      transform: translateY(24px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (min-width: 1500px) {
  .hero-layout {
    min-height: 650px;
  }
  .hero h1 {
    font-size: 96px;
  }
  #latent-canvas {
    height: 390px;
  }
}
@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 72px);
  }
  .hero h1 {
    font-size: clamp(55px, 7.1vw, 83px);
  }
  .hero-layout {
    gap: 20px;
    min-height: 550px;
  }
  .hero-role {
    font-size: 11px;
  }
  .model-caption {
    font-size: 11px;
  }
  .research-section {
    gap: 60px;
  }
  .about-grid {
    gap: 65px;
  }
  .archive-scene {
    transform: rotateX(53deg) rotateZ(-28deg) scale(0.83);
  }
  .spatial-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 8px;
  }
  .archive-stage {
    height: 510px;
  }
  .projects-container,
  .spatial-layout {
    min-height: 520px;
  }
  .archive-index {
    padding-left: 20px;
  }
  .hero-foot {
    font-size: 11px;
  }
  .scroll-cue {
    font-size: 11px;
  }
  .community {
    gap: 40px;
  }
  .community-mark {
    font-size: 34px;
  }
  .project-grid {
    gap: 28px 20px;
  }
}
@media (max-width: 900px) {
  .hero h1 {
    font-size: 65px;
  }
  .hero-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 5px;
  }
  .hero-copy > p {
    font-size: 13px;
    max-width: 320px;
  }
  .hero-topline {
    font-size: 11px;
  }
  .hero-role {
    letter-spacing: 0.06em;
    font-size: 11px;
  }
  .model-coordinates {
    font-size: 11px;
  }
  .model-label {
    font-size: 11px;
    gap: 8px;
  }
  #latent-canvas {
    height: 290px;
  }
  .portrait-signature {
    gap: 13px;
    margin-top: 26px;
    padding-top: 19px;
  }
  .portrait-signature img {
    width: 53px;
    height: 53px;
  }
  .portrait-signature strong {
    font-size: 11px;
  }
  .portrait-signature > div > span {
    font-size: 11px;
  }
  .portrait-signature a {
    font-size: 11px;
  }
  .signature-alias {
    display: none;
  }
  .hero-foot > span:first-child {
    display: none;
  }
  .spatial-layout {
    grid-template-columns: minmax(0, 1fr) 155px;
  }
  .archive-scene {
    transform: rotateX(53deg) rotateZ(-28deg) scale(0.67);
  }
  .archive-stage {
    height: 440px;
  }
  .projects-container,
  .spatial-layout {
    min-height: 450px;
  }
  .archive-hint {
    left: 0;
    font-size: 11px;
  }
  .archive-index {
    padding-left: 15px;
  }
  .archive-index button {
    font-size: 11px;
  }
  .archive-index .index-caption {
    font-size: 11px;
  }
  .research-section {
    gap: 45px;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .research-threads summary {
    font-size: 14px;
  }
  .research-intro > p {
    font-size: 12px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-copy > p {
    font-size: 12px;
  }
  .about-links {
    gap: 20px;
  }
  .about-links .text-link {
    font-size: 11px;
  }
  .experience-list article {
    grid-template-columns: 1fr 1fr auto;
  }
  .experience-list article > div {
    font-size: 12px;
  }
  .experience-list p {
    font-size: 11px;
  }
  .experience-date {
    font-size: 11px;
  }
  .community {
    gap: 30px;
  }
  .community-mark {
    font-size: 29px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-note {
    display: none;
  }
}
@media (max-width: 767px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 82px;
  }
  .wordmark {
    font-size: 37px;
  }
  .brand-name {
    font-size: 16px;
    margin-left: 9px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .resume-link {
    font-size: 11px;
    padding: 7px 13px;
    gap: 8px;
  }
  .resume-link .icon {
    width: 14px;
    height: 14px;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .theme-toggle .icon {
    width: 17px;
    height: 17px;
  }
  .mobile-menu-toggle {
    display: flex;
    width: 30px;
    height: 30px;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    gap: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  }
  .mobile-nav a {
    padding: 10px;
    font-size: 15px;
  }
  .hero {
    padding-top: 24px;
  }
  .hero-topline {
    font-size: 11px;
  }
  .hero-role {
    display: none;
  }
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding-top: 28px;
  }
  .hero-copy {
    padding: 8px 0 20px;
  }
  .hero h1 {
    font-size: clamp(57px, 11.5vw, 85px);
    line-height: 1.04;
    margin-bottom: 25px;
    letter-spacing: -0.04em;
  }
  .hero-copy > p {
    font-size: 13px;
    max-width: 360px;
    line-height: 1.85;
    margin-bottom: 20px;
  }
  .primary-link {
    font-size: 12px;
    gap: 20px;
  }
  .round-icon {
    width: 39px;
    height: 39px;
  }
  .hero-art {
    margin-top: 16px;
  }
  .model-caption {
    padding: 0;
    font-size: 11px;
  }
  .model-label {
    font-size: 11px;
  }
  #latent-canvas {
    height: 290px;
    max-width: 420px;
    margin-inline: auto;
  }
  .model-coordinates {
    font-size: 11px;
    padding: 0;
  }
  .portrait-signature {
    margin-top: 21px;
    padding: 20px 0;
    gap: 15px;
  }
  .portrait-signature img {
    width: 57px;
    height: 57px;
  }
  .portrait-signature strong {
    font-size: 12px;
  }
  .portrait-signature > div > span {
    font-size: 11px;
  }
  .signature-alias {
    display: inline;
  }
  .hero-foot {
    padding: 19px 0;
    font-size: 11px;
  }
  .scroll-cue {
    font-size: 11px;
    gap: 7px;
  }
  .hero-foot .icon {
    width: 13px;
    height: 13px;
  }
  .work-section {
    padding-top: 70px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 48px;
  }
  .section-aside {
    max-width: none;
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .section-aside > p {
    font-size: 12px;
    margin: 0;
    line-height: 1.8;
  }
  .view-switch button {
    font-size: 11px;
    padding: 7px 11px;
    gap: 6px;
  }
  .work-filters {
    margin-top: 27px;
    gap: 20px;
  }
  .work-filters button {
    font-size: 11px;
    white-space: nowrap;
  }
  .work-filters button span {
    font-size: 11px;
  }
  .spatial-layout {
    display: block;
  }
  .archive-stage {
    height: 390px;
    margin-inline: -20px;
  }
  .archive-scene {
    top: 48%;
    transform: rotateX(53deg) rotateZ(-28deg) scale(0.59);
  }
  .archive-hint {
    left: 20px;
    bottom: 0;
    font-size: 11px;
  }
  .archive-index {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 5px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 15px;
  }
  .archive-index > p,
  .archive-index .index-caption {
    display: none;
  }
  .archive-index button {
    font-size: 11px;
    padding: 9px 0;
    gap: 7px;
  }
  .archive-index button .icon {
    display: none;
  }
  .archive-index button:hover {
    transform: none;
  }
  .projects-container,
  .spatial-layout {
    min-height: 0;
  }
  .work-bottom {
    margin-top: 22px;
    padding: 19px 0;
    font-size: 11px;
    gap: 15px;
  }
  .work-bottom > span {
    font-size: 11px;
    max-width: 190px;
    line-height: 1.7;
    gap: 8px;
  }
  .work-bottom a {
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .work-bottom a .icon {
    width: 13px;
    height: 13px;
  }
  .project-grid {
    gap: 25px 15px;
    padding-top: 25px;
  }
  .project-card .project-art {
    aspect-ratio: 0.9;
  }
  .card-label h3 {
    font-size: 16px;
  }
  .card-label .icon {
    width: 17px;
    height: 17px;
  }
  .card-category {
    font-size: 11px;
  }
  .art-code,
  .art-caption {
    font-size: 11px;
    left: 11px;
    right: 11px;
  }
  .project-art .cluster {
    transform: rotate(-15deg) scale(0.74);
  }
  .project-art .usb {
    transform: rotate(-28deg) scale(0.7);
  }
  .project-art .molecule {
    transform: rotate(-30deg) scale(0.7);
  }
  .project-art .flashcards {
    transform: scale(0.75);
  }
  .project-art .record {
    transform: rotate(12deg) scale(0.75);
  }
  .project-art .flow {
    transform: rotate(-13deg) scale(0.6);
  }
  .research-section {
    padding: 75px 0;
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .research-intro h2 {
    font-size: 44px;
  }
  .research-intro > p {
    max-width: 350px;
    font-size: 13px;
    margin: 20px 0;
  }
  .research-threads summary {
    font-size: 16px;
    padding: 22px 0;
  }
  .research-threads details > div {
    padding-right: 16px;
  }
  .research-threads details p {
    font-size: 12px;
  }
  .about-section {
    padding: 65px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about-visual {
    max-width: 280px;
    width: 80%;
  }
  .about-copy h2 {
    font-size: 45px;
  }
  .about-copy > p {
    font-size: 13px;
    margin: 22px 0;
  }
  .about-copy .current-focus {
    font-size: 11px;
  }
  .about-links .text-link {
    font-size: 11px;
  }
  .experience-list {
    margin-top: 42px;
  }
  .experience-list article {
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 20px 0;
  }
  .experience-list article > div {
    font-size: 12px;
    gap: 10px;
  }
  .experience-list p {
    grid-row: 2;
    font-size: 11px;
    padding-left: 37px;
  }
  .experience-date {
    grid-row: 1;
    grid-column: 2;
  }
  .community {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 50px;
  }
  .community-photo {
    aspect-ratio: 1.4;
  }
  .community-mark {
    font-size: 34px;
  }
  .community-copy > p {
    font-size: 12px;
    max-width: 360px;
  }
  .achievements {
    gap: 40px;
  }
  .contact-section {
    padding: 70px 0 50px;
  }
  .contact-top {
    position: relative;
    gap: 15px;
    align-items: flex-end;
  }
  .contact-top .status {
    font-size: 11px;
    gap: 7px;
    margin-bottom: 21px;
  }
  .contact-top h2 {
    font-size: 43px;
  }
  .contact-top p {
    font-size: 12px;
    max-width: 290px;
    margin-top: 23px;
  }
  .contact-top p br {
    display: none;
  }
  .contact-orbit {
    width: 57px;
    height: 57px;
    flex-shrink: 0;
    margin-bottom: 8px;
  }
  .contact-orbit .icon {
    width: 26px;
    height: 26px;
  }
  .contact-bottom {
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
  }
  .email-link {
    font-size: 20px;
  }
  .copy-email .icon {
    width: 15px;
    height: 15px;
  }
  .message-button {
    width: 100%;
    margin: 12px 0 0;
    font-size: 11px;
  }
  .site-footer {
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
  }
  .site-footer .wordmark {
    font-size: 29px;
  }
  .site-footer .brand-name {
    font-size: 13px;
  }
  .social-links {
    gap: 18px;
  }
  .copyright {
    width: calc(100% - 50px);
    font-size: 11px;
    order: 4;
  }
  .admin-link {
    order: 5;
    margin-left: auto;
  }
  .project-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .detail-top {
    padding: 12px 18px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-heading {
    padding: 28px 24px;
  }
  .detail-heading h2 {
    font-size: 43px;
  }
  .detail-heading .detail-subtitle {
    font-size: 13px;
    margin-top: 13px;
  }
  .detail-hero .project-art {
    min-height: 230px;
  }
  .detail-hero .project-art > *:not(.art-code):not(.art-caption) {
    scale: 1.2;
  }
  .detail-body {
    padding: 27px 24px;
  }
  .detail-summary {
    font-size: 17px;
    margin-bottom: 21px;
  }
  .detail-tags {
    padding-bottom: 23px;
  }
  .detail-tags span {
    font-size: 11px;
  }
  .case-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
  }
  .case-section h3 {
    font-size: 13px;
  }
  .case-section p {
    font-size: 12px;
  }
  .detail-links {
    gap: 8px;
    margin-top: 27px;
    padding-top: 24px;
  }
  .detail-links a {
    font-size: 11px;
  }
  .detail-footer button {
    font-size: 11px;
  }
  .contact-dialog {
    padding: 32px 24px;
  }
  .contact-dialog h2 {
    font-size: 31px;
  }
  .contact-dialog > p {
    font-size: 11px;
  }
  .toast {
    font-size: 11px;
    max-width: calc(100% - 30px);
    width: max-content;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 54px;
  }
  .archive-scene {
    transform: rotateX(53deg) rotateZ(-28deg) scale(0.5);
  }
  .archive-stage {
    height: 355px;
  }
  .section-aside {
    gap: 17px;
  }
  .contact-top h2 {
    font-size: 37px;
  }
  .contact-orbit {
    width: 45px;
    height: 45px;
  }
  .hero-foot > a {
    font-size: 11px;
  }
  .work-filters {
    gap: 16px;
  }
  .brand-name {
    font-size: 14px;
  }
  .header-actions {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* The exposed file headers are the controls, so overlapping 3D planes never steal a click. */
.project-file {
  cursor: pointer;
}
.file-top {
  padding: 0;
  width: 100%;
  height: 37px;
  text-align: left;
  flex-shrink: 0;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 500;
}
.file-category {
  padding-top: 2px;
  font-weight: 400;
}
.file-art {
  font-size: 48px;
}
.project-file:focus-within {
  transform: rotateX(-90deg) translateY(-55px);
  background: #303f22;
}
.hero h1 {
  overflow-wrap: anywhere;
}
.archive-front-label {
  pointer-events: none;
}
.project-file:has(.file-top:focus-visible) {
  outline: 2px solid #d8f78c;
  outline-offset: 5px;
}
.project-file .file-top:focus-visible {
  outline: none;
}
/* Keep hit areas stationary while the contents react to hover. */
.project-file:hover,
.project-file:focus-within,
.project-file:focus-visible {
  transform: rotateX(-90deg);
}
.file-body {
  transition: transform 0.4s var(--ease);
}
.project-file:hover .file-body {
  transform: translateY(-7px);
}
/* Each control fits entirely inside the exposed strip above the following file. */
.project-file {
  padding-top: 8px;
}
.file-top {
  height: 18px;
  line-height: 1.15;
  font-size: 11px;
}
.file-category {
  padding-top: 0;
  font-size: 11px;
}
.art-code,
.art-caption {
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-caption {
  text-align: right;
}
@media (max-width: 767px) {
  .archive-stage {
    height: 410px;
  }
  .archive-scene {
    top: 68%;
    transform: rotateX(53deg) rotateZ(-28deg) scale(0.48);
  }
}
@media (max-width: 380px) {
  .archive-stage {
    height: 380px;
  }
  .archive-scene {
    top: 68%;
    transform: rotateX(53deg) rotateZ(-28deg) scale(0.44);
  }
}
.section-aside > p,
.research-intro > p,
.research-threads details p,
.about-copy > p,
.community-copy > p,
.contact-top p,
.case-section p {
  font-size: 14px;
}
.portrait-signature strong {
  font-size: 13px;
}
.detail-summary {
  font-size: 20px;
}
.detail-tags span {
  font-size: 11px;
}
.contact-top > div {
  min-width: 0;
}
.form-status {
  font-size: 13px;
}
.contact-direct {
  font-size: 12px;
}
@media (max-width: 767px) {
  .hero-copy > p {
    font-size: 14px;
  }
  .scroll-cue {
    display: none;
  }
  .portrait-signature > div > span {
    font-size: 11px;
  }
  .view-switch button,
  .work-filters button {
    font-size: 12px;
  }
  .work-filters {
    gap: 18px;
  }
  .archive-index button {
    font-size: 12px;
  }
  .work-bottom > span {
    font-size: 11px;
    letter-spacing: 0;
    max-width: 200px;
  }
  .work-bottom a {
    font-size: 12px;
  }
  .work-bottom > span .tiny-cross {
    display: none;
  }
  .contact-top h2 {
    font-size: 40px;
  }
  .detail-summary {
    font-size: 18px;
  }
  .case-section p {
    font-size: 14px;
  }
  .detail-footer button,
  .detail-links a {
    font-size: 12px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .contact-dialog > p {
    font-size: 13px;
  }
}

/* A single 3D coordinate system carries the files into either arrangement. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.projects-motion-canvas {
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
  min-width: 0;
  isolation: auto;
}
.projects-motion-canvas .archive-stage {
  position: absolute;
  left: 0;
  top: 0;
  perspective: none;
  transform-style: preserve-3d;
  margin: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.projects-motion-canvas .archive-scene {
  left: 0;
  top: 0;
  margin: 0;
  transform-origin: 0 0;
  transition: none;
}
@media (min-width: 768px) {
  .projects-motion-canvas .archive-hint { bottom: 8px; }
}
.project-motion-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 570px;
  height: 235px;
  transform-origin: 0 0;
  transform-style: preserve-3d;
  cursor: pointer;
}
.project-motion-item > .project-file {
  inset: 0;
  bottom: auto;
  left: 0;
  transform: none !important;
  width: 570px;
  height: 235px;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s 0.1s,
    visibility 0s;
  cursor: pointer;
}
.project-motion-item > .project-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 570px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0s 0.2s;
  transform-origin: 0 0;
}
.projects-motion-canvas[data-view="grid"] .project-file {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0s 0.2s;
}
.projects-motion-canvas[data-view="grid"] .project-card {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.32s 0.12s,
    visibility 0s;
}
.project-motion-item .project-card .project-art {
  width: 570px;
  aspect-ratio: 1.35;
  transform: none !important;
  border-radius: calc(14px / var(--card-scale));
  overflow: hidden;
}
.project-motion-item .card-label {
  margin-top: calc(15px / var(--card-scale));
  line-height: 1.4;
}
.project-motion-item .card-label h3 {
  font-size: calc(var(--gallery-type) / var(--card-scale));
  line-height: 1.35;
}
.project-motion-item .card-label .icon {
  width: calc(20px / var(--card-scale));
  height: calc(20px / var(--card-scale));
}
.project-motion-item .card-category {
  font-size: calc(11px / var(--card-scale));
  margin-top: calc(3px / var(--card-scale));
  line-height: 1.4;
}
.gallery-file-tab {
  position: absolute;
  right: calc(17px / var(--card-scale));
  top: calc(-11px / var(--card-scale));
  height: calc(12px / var(--card-scale));
  min-width: calc(65px / var(--card-scale));
  padding: calc(1px / var(--card-scale)) calc(8px / var(--card-scale));
  border-radius: calc(5px / var(--card-scale)) calc(5px / var(--card-scale)) 0 0;
  background: var(--art-bg);
  font-size: calc(7px / var(--card-scale));
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
  z-index: 1;
}
.project-motion-item .project-art > :not(.art-code):not(.art-caption) {
  scale: clamp(1, calc(1 / var(--card-scale)), 2.6);
}
.project-motion-item .art-code,
.project-motion-item .art-caption {
  font-size: calc(var(--art-label-size) / var(--card-scale));
  max-width: calc(100% - 40px / var(--card-scale));
}
.project-motion-item .art-code {
  top: calc(17px / var(--card-scale));
  left: calc(18px / var(--card-scale));
}
.project-motion-item .art-caption {
  bottom: calc(16px / var(--card-scale));
  right: calc(18px / var(--card-scale));
  left: auto;
}
.project-motion-item .cluster {
  transform: rotate(-15deg);
}
.project-motion-item .usb {
  transform: rotate(-28deg);
}
.project-motion-item .molecule {
  transform: rotate(-30deg);
}
.project-motion-item .flashcards {
  transform: none;
}
.project-motion-item .record {
  transform: rotate(12deg);
}
.project-motion-item .flow {
  transform: rotate(-13deg);
}
.projects-motion-canvas .archive-index {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  transition: opacity 0.25s var(--ease);
  z-index: 2;
}
.projects-motion-canvas[data-view="grid"] .archive-index {
  pointer-events: none;
}
.projects-motion-canvas[data-view="spatial"]
  .project-motion-item:has(.file-top:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 12px;
}
.project-motion-item .project-file:has(.file-top:focus-visible) {
  outline: none;
}
.projects-motion-canvas .work-error {
  position: absolute;
  inset: 0;
}
.about-context {
  font-size: 12px !important;
  color: var(--muted);
  margin: 0 0 15px !important;
  line-height: 1.5 !important;
}
.about-links {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.about-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.about-socials a:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.about-socials .icon {
  width: 18px;
  height: 18px;
}
.experience-heading {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 68px 0 28px;
  line-height: 1.3;
}
.experience-list {
  margin-top: 0;
}
.experience-list article {
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.5fr);
  gap: 60px;
  padding: 33px 0;
  align-items: start;
}
.experience-list .experience-meta {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-top: 3px;
}
.experience-meta h3 {
  font-size: 16px;
  margin: 0 0 7px;
  line-height: 1.4;
  font-weight: 500;
}
.experience-list .experience-meta .experience-date {
  font-size: 12px;
  line-height: 1.7;
  display: block;
}
.experience-list .experience-detail {
  display: block;
  min-width: 0;
}
.experience-detail h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.experience-list .experience-detail p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 65ch;
  margin: 0 0 13px;
  padding: 0;
}
.experience-detail ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  max-width: 65ch;
}
.experience-detail li + li {
  margin-top: 8px;
}
.experience-detail li::marker {
  color: var(--accent);
  font-size: 0.7em;
}
.experience-detail .text-link {
  margin-top: 17px;
  color: var(--text);
  font-size: 12px;
}
.experience-references {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.community-copy > p {
  max-width: 40ch;
}
@media (max-width: 900px) {
  .experience-list article {
    grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.4fr);
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .projects-motion-canvas .archive-index {
    left: 0;
    right: auto;
    transform: none;
    border-left: 0;
  }
  .projects-motion-canvas .archive-index > p {
    display: none;
  }
  .project-motion-item .project-card .project-art {
    aspect-ratio: 1.35;
  }
  .about-socials {
    gap: 9px;
  }
  .about-socials a {
    width: 39px;
    height: 39px;
  }
  .about-links {
    justify-content: flex-start;
    gap: 15px 25px;
  }
  .experience-heading {
    font-size: 22px;
    margin-top: 44px;
    margin-bottom: 23px;
  }
  .experience-list article {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 27px 0;
  }
  .experience-meta h3 {
    font-size: 15px;
  }
  .experience-list .experience-meta .experience-date {
    font-size: 11px;
  }
  .experience-detail h4 {
    font-size: 15px;
  }
  .experience-list .experience-detail p,
  .experience-detail ul {
    font-size: 13px;
  }
  .experience-detail ul {
    padding-left: 17px;
  }
  .experience-detail .text-link {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-motion-item,
  .project-motion-item *,
  .projects-motion-canvas .archive-index,
  .projects-motion-canvas .archive-stage {
    transition: none !important;
  }
}
.project-motion-item[data-animating] {
  will-change: transform, opacity;
}

.projects-motion-canvas[data-view="grid"] .project-card:focus-visible {
  outline-width: calc(2px / var(--card-scale));
  outline-offset: calc(5px / var(--card-scale));
}
@media (max-width: 767px) {
  .project-motion-item .project-art > :not(.art-code):not(.art-caption) {
    scale: 1.6;
  }
}
@media (max-width: 380px) {
  .work-filters {
    gap: 10px;
  }
}

/* A single fixed paper layer softens light surfaces without repainting noise. */
:root[data-theme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  background: url("/assets/textures/paper-grain.png") repeat;
  opacity: 0.35;
  pointer-events: none;
}
/* Print the collection label on the box's front wall, in the same 3D plane. */
.projects-motion-canvas .archive-front-label {
  top: 350.5px;
  bottom: auto;
  transform: translateZ(35px) rotateX(-90deg);
  transform-origin: 0 0;
}
