@font-face {
  font-family: Geist;
  src: url("portfolio-assets/geist.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c0b10;
  --panel: #14131b;
  --text: #f4f2f7;
  --quiet: #b7b3c5;
  --faint: #93909e;
  --line: #35323f;
  --violet: #b29aff;
  --cyan: #9debd8;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --pad: clamp(1.25rem, 5.9vw, 6rem);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1rem/1.52 Geist,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
canvas:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
::selection {
  background: var(--violet);
  color: #14101e;
}
figure,
p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(calc(100% - 2 * var(--pad)), 82rem);
  margin-inline: auto;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: var(--cyan);
  color: var(--bg);
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.av-mark {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 1.8rem;
  transform: skewX(-19deg);
  padding-left: 0.24rem;
}
.av-mark i {
  width: 5px;
  height: 16px;
  background: var(--violet);
}
.av-mark i:nth-child(2) {
  height: 24px;
}
.av-mark i:nth-child(3) {
  height: 12px;
  align-self: flex-end;
  margin-bottom: 3px;
}
.mast nav,
.footer-links,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 2.3rem);
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  color: #d5d1de;
  text-decoration: none;
  font-size: 0.91rem;
}
.mast nav a:hover,
.brand:hover {
  color: var(--violet);
}
.mast nav .nav-cv {
  min-height: 35px;
  border: 1px solid #484451;
  border-radius: 100px;
  padding: 0 0.95rem;
}
.page-icon {
  display: inline-block;
  height: 12px;
  width: 9px;
  border: 1px solid currentColor;
  border-radius: 1px;
  position: relative;
}
.page-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 3px currentColor;
}
.hero {
  overflow: clip;
  position: relative;
  background: radial-gradient(ellipse at 73% 45%, #19132580, transparent 49%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  gap: clamp(0.5rem, 2vw, 2.25rem);
  align-items: center;
  padding-block: clamp(2.4rem, 4.2vw, 3.85rem) clamp(2.5rem, 3.9vw, 3.5rem);
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.eyebrow,
.stage-caption,
.drag-hint,
.lab-index,
.collection-count,
.study-tools {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #d1cdda;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}
.beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px #9dfad970;
}
.slash {
  color: #837d93;
}
.hero h1 {
  font-size: clamp(4.35rem, 8.5vw, 8.35rem);
  font-weight: 590;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0.245em 0 0.2em -0.055em;
}
.hero h1 span,
h2 span {
  color: var(--violet);
}
.lead {
  max-width: 32rem;
  font-size: clamp(1.02rem, 1.45vw, 1.27rem);
  line-height: 1.52;
  color: #c4bfce;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.button {
  min-height: 46px;
  font-size: 0.93rem;
  line-height: 1.25;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 100px;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
}
.primary {
  background: #c3afff;
  color: #1a102b;
}
.primary:hover {
  background: #d7c9ff;
}
.hero-copy .button {
  margin-top: 1.55rem;
}
.tiles-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  box-shadow:
    8px 0,
    0 8px,
    8px 8px;
  margin-right: 8px;
  transform: translateY(-4px);
}
.artwork {
  min-width: 0;
}
.visual-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.57;
  background: radial-gradient(ellipse at 50% 49%, #30224780, transparent 68%);
  overflow: hidden;
}
.visual-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#9b86d849 0.8px, transparent 0.9px);
  background-size: 21px 21px;
  mask-image: radial-gradient(ellipse, #000 38%, transparent 83%);
  pointer-events: none;
}
.visual-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
  position: absolute;
  inset: 0;
}
.visual-stage canvas:active {
  cursor: grabbing;
}
.visual-stage:not(.art-ready) canvas {
  background: url("portfolio-assets/agent-workflow.webp") center/contain no-repeat;
}
.corner {
  width: 12px;
  height: 12px;
  position: absolute;
  border-color: #70687e;
  border-style: solid;
  z-index: 1;
  pointer-events: none;
}
.tl {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}
.br {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}
.stage-caption,
.art-meta {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.stage-caption {
  top: 0.65rem;
  left: 1rem;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #a9a0bc;
}
.art-cross {
  color: var(--violet);
  font-size: 0.9rem;
  margin-right: 0.35em;
}
.art-meta {
  bottom: 0.5rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.figure-label {
  pointer-events: auto;
  font-size: 0.84rem;
  letter-spacing: -0.015em;
  color: #d0c6e5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  padding-block: 0.3rem;
}
.figure-label:hover {
  color: var(--cyan);
}
.drag-hint {
  color: var(--faint);
  font-size: 0.71rem;
}
.art-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.forms {
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid #37323f;
  border-radius: 99px;
  background: #15131b;
}
.forms button,
.motion-toggle {
  border: 0;
  background: none;
  color: #b6b0c4;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.25;
}
.forms button {
  border-radius: 90px;
}
.forms button[aria-pressed="true"] {
  background: #3c304e;
  color: #eee6ff;
}
.forms button:hover,
.motion-toggle:hover {
  color: #fff;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.49rem;
  min-height: 40px;
  padding-inline: 0.2rem;
}
.motion-toggle::before {
  content: "";
  width: 8px;
  height: 9px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.motion-toggle[data-playing="false"]::before {
  height: 0;
  width: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}
.lab {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 4.3vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}
.lab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.65rem;
  flex-wrap: wrap;
}
.section-mark {
  height: 1px;
  width: 1.35rem;
  background: var(--violet);
}
h2 {
  font-size: clamp(2.65rem, 5.25vw, 5.1rem);
  font-weight: 540;
  letter-spacing: -0.073em;
  line-height: 1.04;
}
.lab-heading h2,
.profile h2,
.footer h2 {
  margin-top: 0.22em;
}
.lab-index {
  color: #b4adbf;
  letter-spacing: 0.025em;
  padding-bottom: 0.4rem;
}
.lab-index span {
  padding: 0 0.3rem;
  color: #81788e;
}
.collections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.collection {
  position: relative;
  background: #19171e;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid #35313d;
  border-radius: 12px;
  padding: 0 1rem 1rem;
  isolation: isolate;
}
.collection[aria-pressed="true"] {
  border-color: #bca2fa;
  background: #241e30;
}
.collection[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 0.77rem;
  right: 0.77rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d1beff;
  box-shadow: 0 0 0 3px #27202e;
}
.collection:hover {
  border-color: #a392bc;
}
.cover {
  height: clamp(4.2rem, 7vw, 6.5rem);
  display: block;
  margin: 0 -1rem 0.65rem;
  background-size: cover;
  background-position: center;
  transform-origin: center 75%;
}
.cover-bio {
  background-image: url("portfolio-assets/collection-research.webp");
}
.cover-language {
  background-image: url("portfolio-assets/collection-language.webp");
}
.cover-systems {
  background-image: url("portfolio-assets/collection-data.webp");
}
.cover-agents {
  background-image: url("portfolio-assets/collection-agents.webp");
}
.collection-name,
.collection-count {
  display: block;
}
.collection-name {
  font-size: clamp(0.95rem, 1.5vw, 1.22rem);
  font-weight: 570;
  letter-spacing: -0.04em;
}
.collection-count {
  font-size: 0.72rem;
  color: var(--quiet);
  margin-top: 0.25rem;
}
.experiment {
  margin-top: 1.3rem;
  background: #121116;
  border: 1px solid var(--line);
  border-radius: 15px;
  scroll-margin-top: 1rem;
}
.experiment-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.experiment-menu button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #bbb4c7;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}
.experiment-menu button[aria-pressed="true"] {
  background: #302839;
  color: #f0deff;
}
.experiment-menu button:hover {
  color: white;
  background: #25212c;
}
.experiment-body {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.1rem, 3.3vw, 3.1rem);
}
.experiment-story .eyebrow {
  color: var(--cyan);
  font-size: 0.72rem;
  line-height: 1.7;
}
.experiment-story h3 {
  font-size: clamp(1.75rem, 3.4vw, 3.05rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 550;
  max-width: 13em;
  margin: 0.36em 0 0.55em;
  text-wrap: balance;
}
.study-description,
.profile-copy > p:not(.eyebrow),
.teaching-note p,
.static-lab {
  color: #c0bacb;
  line-height: 1.65;
  text-wrap: pretty;
}
.study-tools {
  color: var(--faint);
  margin-top: 1rem;
  line-height: 1.8;
}
.study-source {
  display: inline-block;
  margin-top: 1rem;
}
.text-link {
  color: #cfbcfe;
  text-underline-offset: 0.23em;
  text-decoration-thickness: 1px;
}
.text-link:hover {
  color: white;
}
.scene-host {
  min-width: 0;
}
.scene-button {
  font: inherit;
  color: var(--text);
}
.scene-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.scene-readout {
  color: var(--quiet);
}
.scene-kicker {
  font-family: var(--mono);
}
.profile {
  background: #141318;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2.1rem, 6.5vw, 6.5rem);
  align-items: start;
}
.portrait {
  max-width: 23rem;
  overflow: hidden;
  border-radius: 12px;
  background: #25202c;
}
.portrait img {
  width: 100%;
  height: auto;
}
.profile h2 {
  margin-bottom: 0.4em;
}
.profile-copy {
  max-width: 43rem;
}
.profile-copy > p + p,
.teaching-note p {
  margin-top: 0.7rem;
}
.profile-links {
  margin-top: 1.25rem;
}
.teaching-note {
  margin-top: 1.6rem;
  border-block: 1px solid var(--line);
  padding-block: 0.7rem;
  font-size: 0.95rem;
}
.teaching-note summary {
  cursor: pointer;
  padding: 0.23rem 0;
  font-weight: 560;
}
.teaching-note a {
  display: inline-block;
  margin-top: 0.65rem;
}
.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: clamp(2.5rem, 6vw, 5.2rem);
}
.footer-links {
  padding-bottom: 0.3rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .cover {
    transition: transform 0.4s ease;
  }
  .collection:hover .cover {
    transform: scale(1.045);
  }
  .button,
  .forms button,
  .collection {
    transition:
      background 0.2s,
      color 0.2s,
      border-color 0.2s;
  }
  .experiment-story h3 {
    transition: color 0.2s;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.88fr 1.12fr;
  }
  .visual-stage {
    aspect-ratio: 1.23;
  }
  .experiment-body {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 1.3rem;
  }
  .collection {
    padding-inline: 0.75rem;
  }
  .cover {
    margin-inline: -0.75rem;
  }
  .collection-name {
    font-size: 1rem;
  }
}
@media (max-width: 720px) {
  .mast {
    min-height: 4.1rem;
  }
  .brand {
    font-size: 0.82rem;
    gap: 0.5rem;
  }
  .mast nav {
    gap: 0.8rem;
  }
  .mast nav a {
    font-size: 0.82rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 2.45rem 1.9rem;
  }
  .hero h1 {
    font-size: clamp(4.3rem, 15vw, 6.8rem);
    margin-block: 0.23em 0.23em;
  }
  .lead {
    max-width: 31rem;
    font-size: 1.035rem;
  }
  .hero-copy .button {
    margin-top: 1.15rem;
  }
  .artwork {
    width: 100%;
  }
  .visual-stage {
    aspect-ratio: 1.58;
    max-height: 22rem;
  }
  .art-controls {
    margin-top: 0.45rem;
    padding-top: 0.5rem;
  }
  .lab {
    padding-top: 2rem;
  }
  .lab-heading {
    margin-bottom: 1.1rem;
    gap: 0.6rem;
  }
  .lab-index {
    padding-bottom: 0;
  }
  .collections {
    grid-template-columns: 1fr 1fr;
    gap: 0.62rem;
  }
  .cover {
    height: 4.5rem;
  }
  .collection {
    border-radius: 9px;
    padding-bottom: 0.65rem;
  }
  .experiment-body {
    grid-template-columns: 1fr;
  }
  .experiment-story h3 {
    max-width: none;
    margin: 0.18em 0 0.35em;
  }
  .study-tools {
    margin-top: 0.45rem;
  }
  .experiment-menu button {
    font-size: 0.81rem;
    padding: 0.45rem 0.62rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 15rem;
  }
}
@media (max-width: 420px) {
  .mast nav {
    gap: 0.58rem;
  }
  .brand {
    gap: 0.4rem;
  }
  .mast nav .nav-cv {
    padding-inline: 0.65rem;
  }
  .page-icon {
    display: none;
  }
  .eyebrow {
    font-size: 0.7rem;
  }
  .hero-grid {
    gap: 1.05rem;
  }
  .art-controls {
    gap: 0.3rem;
  }
  .forms button {
    padding: 0.45rem 0.62rem;
  }
  .profile-grid {
    gap: 1.65rem;
  }
}
@media (max-width: 360px) {
  .mast {
    gap: 0.5rem;
  }
  .brand {
    font-size: 0.75rem;
  }
  .mast nav {
    gap: 0.4rem;
  }
  .av-mark {
    display: none;
  }
  .collection-name {
    font-size: 0.9rem;
  }
  .motion-toggle {
    font-size: 0.75rem;
  }
}

.route-picker {
  position:absolute;z-index:2;right:.65rem;top:.32rem;
}
.route-picker select {
  min-height:32px;max-width:100%;border:1px solid #51445e;border-radius:6px;
  padding:.22rem .35rem;background:#211a2b;color:#e9dcff;font-size:.78rem;
}
@media(max-width:400px){
  .route-picker{right:.17rem;top:.2rem}
  .route-picker select{font-size:.71rem;min-height:28px}
  .stage-caption{left:.34rem}
}
