@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/plex-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f1f6ff;
  --muted: #bdcbe0;
  --accent: #a9d3ff;
  --accent-ink: #112235;
  --canvas: #101827;
  --line: #dceeff23;
  --quiet: #cce5ff12;
  --round: 26px;
  --pill: 99px;
  --sans: Geist, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1220px;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  font: 1rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--canvas);
}
a { color: inherit; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.55rem); line-height: 1.1; letter-spacing: -.045em; }
h3 { font-size: 1.15rem; letter-spacing: -.025em; line-height: 1.3; }
.shell { width: min(calc(100% - 88px), var(--wrap)); margin-inline: auto; }
.skip {
  position: fixed; z-index: 10; top: 10px; left: 10px;
  padding: .65rem 1rem; border-radius: var(--pill);
  color: var(--accent-ink); background: var(--accent);
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }
.icon { width: 21px; height: 21px; flex: none; }
.icon-small { width: 16px; height: 16px; }

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #202735;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/java-poster.webp") 50% 48% / cover no-repeat;
}
.scene::before, .scene video {
  filter: saturate(.55);
}
.scene video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 48%;
}
.scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #101827f5 0%, #101827c9 39%, #1f355838 100%),
    linear-gradient(0deg, #0c1320 0%, #141f3480 24%, transparent 65%, #14233b44);
}
body:not(.home) .scene::after {
  background: linear-gradient(145deg, #101827e6 14%, #192944bb 66%, #101827ed);
}
body { isolation: isolate; }

.glass {
  border: 1px solid var(--line);
  background: #222e44f2;
  box-shadow: inset 0 1px 0 #f1f7ff26, inset 0 -1px 0 #050c1a85, 0 16px 50px #0509133a;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: linear-gradient(155deg, #bcdcff25 0%, #6c93d11a 26%, #172e5034 75%), #14223bbf;
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
  }
}
.mono { font-family: var(--mono); }
.eyebrow { color: var(--accent); font: .73rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.signal {
  display: inline-block; width: .48rem; height: .48rem; margin: 0 .65rem .075rem 0;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #a9d3ff5c;
}
.header { padding-block: 28px 0; }
.nav {
  min-height: 65px; padding: 7px 9px 7px 12px;
  border-radius: var(--pill); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 620; white-space: nowrap; letter-spacing: -.02em; }
.mark {
  flex: none; width: 41px; height: 41px; border-radius: 50%; overflow: hidden;
  background: #b6d8ff18; border: 1px solid #e1efff2d;
  box-shadow: inset 0 1px 0 #dfedff2e;
}
.mark img { width: 100%; height: 100%; object-fit: cover; }
.nav ul { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; gap: 2px; }
.nav li a {
  display: block; padding: .48rem .92rem; border-radius: var(--pill); text-decoration: none;
  color: var(--muted); font-size: .89rem; white-space: nowrap;
}
.nav li a:hover { color: var(--ink); background: var(--quiet); }
.nav li a[aria-current] {
  color: var(--ink); background: #cfe1fc21; box-shadow: inset 0 1px 0 #f2f7ff47, 0 2px 7px #0003;
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-contact { display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; }
.nav-contact:hover { color: var(--accent); }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .7rem;
  padding: .67rem 1.05rem; min-height: 46px; border: 1px solid var(--line);
  border-radius: var(--pill); background: var(--quiet); color: var(--ink);
  font-size: .91rem; font-weight: 560; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 #e9f1ff27;
}
.button:hover { background: #cce5ff28; }
.button-primary { background: var(--accent); border-color: #e9f5ff; color: var(--accent-ink); box-shadow: inset 0 1px 0 #fff9, 0 4px 18px #82b6ff40; }
.button-primary:hover { background: #d5ebff; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.text-link { text-underline-offset: .22em; text-decoration-color: #c1dfff75; }
.text-link:hover { color: var(--accent); }

.home-main { padding-block: clamp(30px, 6.5vh, 78px) 0; }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 62vh, 655px);
  padding: clamp(32px, 6vw, 82px);
  overflow: hidden;
  overflow: clip;
  border: 1px solid #dceeff3d;
  border-radius: calc(var(--round) + 10px);
  background:
    radial-gradient(ellipse at 0 0, #d0e7ff21, transparent 55%),
    linear-gradient(105deg, #162743e0 0%, #1b2e4d94 49%, #335d9610 100%);
  box-shadow: inset 0 1px 0 #cee4ff5b, inset 0 -1px 0 #091428a0, 0 18px 75px #04091857;
}
.hero::after {
  position: absolute; inset: 0;
  background: linear-gradient(128deg, #e5f2ff1c, transparent 24%, transparent 71%, #d9ecff14);
  pointer-events: none; border-radius: inherit; content: "";
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 8.7vw, 8.125rem);
  line-height: .98; letter-spacing: -.084em; color: #f5f8ff;
  margin: 1.2rem 0 1.05rem;
  text-shadow: 0 4px 42px #0b172c55;
}
.hero h1 span { color: var(--accent); }
.hero-motto { color: #d4dff1; font-size: clamp(.78rem, 1.7vw, 1.05rem); }
.hero-content .ctas { margin-top: 2rem; }
.video-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  cursor: pointer; border-radius: 50%; padding: 0;
}
.video-toggle:hover { color: var(--accent); }
.video-toggle .play, .video-toggle[data-paused] .pause { display: none; }
.video-toggle[data-paused] .play { display: block; }
.home-links {
  margin-top: 16px; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: var(--round); padding: 2px;
}
.home-links .row + .row::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line);
}

.inner { padding-block: clamp(44px, 8vh, 104px) 0; }
.page-head { margin: 0 0 clamp(27px, 5vw, 49px); }
.page-head h1, .archive h1 {
  margin: .43rem 0 .75rem;
  font-size: clamp(3.1rem, 8vw, 7.1rem);
  line-height: .96;
  letter-spacing: -.078em;
}
.page-head p:not(.eyebrow) { max-width: 42rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.24rem); }
.profile-head { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3.8rem); }
.portrait { margin: 0; flex: none; padding: 6px; border-radius: 31%; }
.portrait img { width: clamp(68px, 12vw, 145px); height: auto; aspect-ratio: 1; border-radius: 28%; }
.about-columns { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.bio, .topics, .project-copy, .archive { border-radius: var(--round); padding: clamp(24px, 4vw, 46px); }
.bio p + p, .archive p + p { margin-top: 1rem; }
.bio h2, .topics h2, .links-group h2 { margin-bottom: 1.1rem; }
.bio p, .topics p, .project-copy p, .archive p { color: var(--muted); }
.bio .ctas { margin-top: 1.4rem; }
.topics dl { margin: 0; }
.topics dl div { display: grid; grid-template-columns: minmax(105px, 1fr) 2fr; gap: 1rem; padding-block: 1rem; }
.topics dl div + div { border-top: 1px solid var(--line); }
.topics dl div:last-child { padding-bottom: 0; }
.topics dt { font-weight: 560; }
.topics dd { margin: 0; color: var(--muted); }
.links-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.links-group { border-radius: var(--round); padding: 22px 8px 8px; }
.links-group h2 { margin-inline: 16px; font-size: 1.48rem; }
.links-group .row + .row { border-top: 1px solid var(--line); }
.row {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-width: 0; padding: 15px 16px; border-radius: calc(var(--round) - 6px);
  color: var(--ink); text-decoration: none;
}
.row:hover { background: #bfdcff1a; }
.row .row-icon {
  display: grid; place-items: center; height: 45px; width: 45px; flex: none;
  border: 1px solid #cbe4ff2e; border-radius: 16px; background: #91b5eb19; color: var(--accent);
  box-shadow: inset 0 1px 0 #dfedff28;
}
.row .row-label { display: grid; gap: 2px; min-width: 0; line-height: 1.3; }
.row strong { font-weight: 550; }
.row small { color: var(--muted); font: .73rem/1.45 var(--mono); overflow-wrap: anywhere; }
.row .row-arrow { margin-inline-start: auto; color: var(--muted); }
.row:hover .row-arrow { color: var(--accent); }

.project {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(285px, 1fr);
  grid-template-areas: "preview copy";
  border-radius: var(--round); overflow: hidden;
}
.project-copy { grid-area: copy; align-self: center; }
.project-copy h2 { margin-block: .48rem .65rem; }
.project-copy p + p { margin-top: .85rem; }
.project-copy .eyebrow { color: var(--accent); }
.project-copy .ctas { margin-top: 1.4rem; }
.project-preview { grid-area: preview; margin: 0; min-width: 0; position: relative; padding: 12px; display: grid; align-content: center; }
.project-preview img {
  width: 100%; height: auto;
  border-radius: calc(var(--round) - 9px); background: #0c1525;
  box-shadow: 0 10px 26px #0509128c;
}
.project-preview figcaption { padding: .75rem .42rem .12rem; color: var(--muted); font-size: .82rem; }
.project-preview figcaption a { white-space: nowrap; }
.archive { max-width: 850px; }
.archive img { width: 94px; height: 94px; border-radius: 22px; margin-bottom: 1.3rem; }
.archive h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-block: .55rem 1.25rem; }
.archive .ctas { margin-top: 1.4rem; }
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 23px 1px 32px; font-size: .8rem; color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (max-width: 870px) {
  .shell { width: calc(100% - 44px); }
  .project { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "preview"; }
  .project-preview { padding-top: 0; }
  .nav-contact span { display: none; }
  .nav-contact { padding: 0; width: 44px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .header { padding-top: 12px; }
  .nav { flex-wrap: wrap; border-radius: 24px; min-height: 0; padding: 7px; gap: 6px; }
  .brand { margin: 2px 0 2px 2px; font-size: .91rem; }
  .mark { width: 35px; height: 35px; }
  .nav-contact, .video-toggle { min-height: 38px; width: 38px; height: 38px; }
  .nav ul { order: 2; width: 100%; justify-content: space-between; gap: 2px; }
  .nav li { flex: 1; text-align: center; }
  .nav li a { padding: .57rem .22rem; font-size: clamp(.7rem, 3.5vw, .87rem); }
  .home-main { padding-top: 18px; }
  .hero { min-height: clamp(360px, 58svh, 520px); align-items: center; padding: 25px 18px 64px; border-radius: 27px; }
  .hero h1 { font-size: clamp(2.5rem, 10.6vw, 4.8rem); }
  .hero-content .ctas { margin-top: 1.4rem; gap: 8px; }
  .hero-content .button { padding-inline: .8rem; }
  .home-links, .about-columns, .links-columns { grid-template-columns: minmax(0, 1fr); }
  .home-links .row { padding-block: 11px; }
  .home-links .row + .row::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .profile-head { align-items: flex-start; flex-direction: column; }
  .inner { padding-top: 35px; }
  .footer { padding-top: 20px; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .topics dl div { grid-template-columns: 1fr; gap: .25rem; }
  .row { padding-inline: 10px; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .hero { background: #222e44; backdrop-filter: none; }
}
.sr-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.project.project-private { display: block; max-width: 740px; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 260ms;
    animation-timing-function: ease-out;
  }
}
