@font-face {
  font-family: Oracle;
  src: url("assets/fonts/Oracle-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("assets/fonts/PPNeueMontrealMono-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("assets/fonts/PPNeueMontrealMono-Medium.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #1e1e1e;
  --surface: #262626;
  --ink: #f7f7f7;
  --ink-muted: #f7f7f785;
  --fill: #f7f7f714;
  --fill-strong: #f7f7f733;
  --line: #f7f7f70f;
  --popover: #262626;
  --shadow-modal: 0 24px 70px -20px #000000b3;
  --shadow-control: 0 2px 6px -2px #0003;
  --btn-fill: #f7f7f7eb;
  --btn-on: #1e1e1e;
  --spot: #e06a4a;
  --font-sans: Oracle, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "PP Neue Montreal Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --margin: clamp(1rem, 0.6919rem + 1.3146vw, 1.875rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --grain-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.016'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.034'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-carton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.028'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cg fill='%23808080' fill-opacity='0.04'%3E%3Ccircle cx='4' cy='4' r='1.05'/%3E%3Ccircle cx='0' cy='0' r='1.05'/%3E%3Ccircle cx='8' cy='0' r='1.05'/%3E%3Ccircle cx='0' cy='8' r='1.05'/%3E%3Ccircle cx='8' cy='8' r='1.05'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
  accent-color: var(--spot);
}

html[data-theme="light"] {
  --paper: #d6d6d5;
  --surface: #fdfcfb;
  --ink: #1e1e1e;
  --ink-muted: #1e1e1eb3;
  --fill: #1e1e1e14;
  --fill-strong: #1e1e1e33;
  --line: #1e1e1e0f;
  --popover: #fdfcfb;
  --shadow-modal: 0 24px 60px -24px #1e1e1e40;
  --shadow-control: 0 0 0 1px #1e1e1e0f, 0 2px 6px -2px #1e1e1e24;
  --btn-fill: #1e1e1eeb;
  --btn-on: #f7f7f7;
  --spot: #b03a1e;
  --grain-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 360;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: var(--grain-dots), var(--grain-carton), var(--grain-tooth), var(--grain-fiber);
  opacity: 0.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2000;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-140%);
}

.skip:focus { transform: none; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 0 var(--margin) 20px;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hud__chip {
  padding: 2px 6px;
  background: color-mix(in srgb, var(--ink) 8%, var(--paper));
  border-radius: 0 0 2px 2px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

button.hud__chip {
  appearance: none;
  border: 0;
  cursor: pointer;
}

button.hud__chip:active { scale: 0.96; }

.hud__k { color: color-mix(in srgb, var(--ink) 48%, transparent); }
.hud__v { color: color-mix(in srgb, var(--ink) 74%, transparent); font-variant-numeric: tabular-nums; }
.hud__chip[aria-pressed="false"] .hud__v { color: color-mix(in srgb, var(--ink) 40%, transparent); }

.header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.header__lead { justify-self: start; }
.header__center { justify-self: center; display: flex; align-items: center; gap: 4px; }
.header__right { justify-self: end; display: flex; align-items: center; gap: 8px; }

.header__logo { color: var(--ink); text-decoration: none; display: inline-flex; }

.logo { display: inline-flex; align-items: center; font-weight: 500; font-size: 20px; letter-spacing: -0.08em; line-height: 1; }

.logo__shape {
  width: 30px;
  height: 30px;
  border: 1.5px solid;
  display: grid;
  place-items: center;
}

.logo__circle { border-radius: 50%; letter-spacing: -0.02em; }
.logo__capsule { border-radius: 4px; letter-spacing: 0.05em; }

.logo:hover .logo__circle,
.logo:focus-visible .logo__circle {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.navpill, .themetoggle, .iconbtn, .cmdk::before {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-control);
}

.navpill {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding-inline: 8px;
}

.navpill__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.navpill__link {
  display: inline-flex;
  padding: 4px 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.02em;
  border-radius: 4px;
  position: relative;
}

.navpill__list:has(.navpill__link:hover) .navpill__link:not(:hover),
.navpill__list:has(.navpill__link:focus-visible) .navpill__link:not(:focus-visible) {
  opacity: 0.4;
}

.navpill__pill {
  position: absolute;
  z-index: 0;
  border-radius: 4px;
  background: var(--fill);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.2s linear;
}

.cmdk {
  position: relative;
  isolation: isolate;
  height: 40px;
  min-width: 48px;
  padding-inline: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.cmdk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: scale 0.22s cubic-bezier(0.5, 1, 0.89, 1);
}

.cmdk:hover::before, .cmdk:focus-visible::before { scale: 0.97; }
.cmdk:active::before { scale: 0.95; }

.iconbtn, .notifbell, .navsearch, .navtrigger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-control);
  padding: 0;
}

.iconbtn:active, .notifbell:active, .navsearch:active, .navtrigger:active { scale: 0.96; }
.iconbtn:focus-visible, .cmdk:focus-visible, .navpill__link:focus-visible, .themetoggle__seg:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.notifbell { position: relative; }
.notifbell svg, .navsearch svg { width: 18px; height: 18px; }

.notifbell__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spot);
  box-shadow: 0 0 0 2px var(--surface);
}

.navsearch, .navtrigger { display: none; }

.navtrigger__bars { width: 16px; height: 12px; position: relative; }
.navtrigger__bars::before, .navtrigger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.navtrigger__bars::before { top: 3px; }
.navtrigger__bars::after { bottom: 3px; }

.themetoggle {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 2px;
  position: relative;
}

.themetoggle__seg {
  width: 36px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 4px;
}

.themetoggle__seg[aria-pressed="true"] { color: var(--ink); }
.themetoggle__seg[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--fill);
}
.themetoggle__seg:hover { color: var(--ink); }
.themetoggle__seg svg { width: 16px; height: 16px; }

.stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  perspective: 1200px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.stage.is-dragging { cursor: grabbing; }

.stage__world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 228px;
  height: 148px;
  transform-style: preserve-3d;
  text-decoration: none;
  color: var(--ink);
  border-radius: 10px;
}

.plate__photo, .plate__mono, .plate__wire {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
}

.plate__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plate__mono, .plate__wire { opacity: 0; }

.plate[data-face="mono"] .plate__photo,
.plate[data-face="wire"] .plate__photo { opacity: 0; }
.plate[data-face="mono"] .plate__mono { opacity: 1; }
.plate[data-face="wire"] .plate__wire { opacity: 1; }

.plate__mono {
  display: grid;
  place-items: center;
  background:
    linear-gradient(#141414, #141414) padding-box,
    linear-gradient(140deg, #9fd6ff, #ff7aa2, #ffe08a, #9fd6ff) border-box;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.06em;
  box-shadow: 0 18px 40px -24px #000;
}

html[data-theme="light"] .plate__mono {
  background:
    linear-gradient(#efeeec, #efeeec) padding-box,
    linear-gradient(140deg, #7aa0c4, #c45b78, #c9a15a, #7aa0c4) border-box;
  color: #1e1e1e;
}

.plate__wire {
  background:
    linear-gradient(color-mix(in srgb, var(--ink) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 55%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid color-mix(in srgb, var(--ink) 70%, transparent);
}

.stage__caption {
  position: absolute;
  left: 50%;
  top: calc(50% + 28px);
  translate: -50% -50%;
  z-index: 3;
  width: min(26rem, 70vw);
  text-align: center;
  pointer-events: none;
}

.stage__eyebrow {
  margin: 0 0 6px;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.75rem, 0.5rem + 0.3vw, 0.8rem);
  letter-spacing: -0.02em;
}

.stage__title {
  margin: 0;
  font-weight: 580;
  letter-spacing: -0.028em;
  line-height: 1.06;
  font-size: clamp(1.375rem, 0.9rem + 1.7vw, 2.4rem);
}

.stage__chips {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.chip {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--fill);
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.chip--pill { border-radius: 999px; }

.btn {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--btn-on);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  border-radius: 4px;
  transition: scale 0.4s var(--ease);
}

.btn:active { scale: 0.96; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.classic {
  display: none;
  max-width: 920px;
  margin: 0 auto;
  padding: 128px var(--margin) 80px;
}

.classic h2 {
  margin: 0 0 28px;
  font-size: clamp(1.875rem, 1.48rem + 1.69vw, 3rem);
  font-weight: 580;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

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

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.row__label { font-size: 20px; letter-spacing: -0.028em; font-weight: 500; }
.row__line { flex: 1; height: 1px; background: var(--line); }
.row__tags { display: flex; align-items: center; gap: 6px; }
.row__go {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #484848;
  color: #f7f7f7;
}
.row__go svg { width: 10px; height: 10px; }

html.js .classic { display: none; }
html.js.reduced body, html.reduced body { overflow: auto; }
html.reduced .stage__world { display: none; }
html.reduced .stage { height: auto; min-height: 40vh; cursor: default; }
html.reduced .stage__caption { position: relative; left: auto; top: auto; translate: none; margin: 120px auto 0; }
html.reduced .classic { display: block; }

.page {
  overflow: auto;
  height: 100svh;
}

.page-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 140px var(--margin) 80px;
}

.page-main h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 1.63rem + 2.63vw, 4rem);
  font-weight: 580;
  letter-spacing: -0.042em;
  line-height: 0.98;
}

.page-main p { font-size: 16px; line-height: 1.45; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: -0.04em; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; }

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(40rem, calc(100% - 2rem));
  width: 100%;
}

dialog:modal { overscroll-behavior: contain; }

dialog::backdrop {
  background: #0009;
  overflow: hidden;
  overscroll-behavior: contain;
}

.panel {
  background-color: var(--popover);
  background-image: var(--grain-dots), var(--grain-carton), var(--grain-tooth);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 32rem);
}

#cmd { margin: auto; }

.cmd__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
}

.cmd__search svg { width: 18px; height: 18px; color: var(--ink-muted); flex: none; }

.cmd__input {
  height: 48px;
  width: 100%;
  border: 0;
  background: transparent;
}

.cmd__search:focus-within {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.cmd__input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.cmd__input::placeholder { color: var(--ink-muted); }

.cmd__list {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
  margin: 0;
  list-style: none;
}

.cmd__heading {
  margin: 8px 12px 4px;
  color: var(--ink-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cmd__item, .cmd__empty {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
}

.cmd__item[aria-selected="true"], .cmd__item:hover { background: var(--fill); }
.cmd__hint { margin-left: auto; color: var(--ink-muted); font-size: 12px; }

.cmd__foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: -0.04em;
}

.cmd__foot kbd {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 4px;
  margin-right: 6px;
}

#notif {
  margin: 88px 20px auto auto;
  width: min(24rem, calc(100% - 2rem));
}

.notif__head, .notif__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.notif__foot { border-bottom: 0; border-top: 1px solid var(--line); }

.notif__title {
  margin: 0;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.notif__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow: auto;
  overscroll-behavior: contain;
}

.note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.note:hover { background: var(--fill); }
.note__meta { display: flex; gap: 8px; color: var(--ink-muted); font-size: 12px; text-transform: uppercase; }
.note strong { font-weight: 500; }
.note p { margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.45; }

#drawer {
  margin: auto auto 0;
  width: 100%;
  max-width: none;
}

#drawer .panel {
  border-radius: 16px 16px 0 0;
  max-height: 86svh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.drawer__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--fill-strong);
  margin: 12px auto 8px;
}

.drawer__nav { display: flex; flex-direction: column; padding: 8px var(--margin) 32px; }

.drawer__nav a {
  text-decoration: none;
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  padding-block: 4px;
}

.lab-list { list-style: none; padding: 0; margin: 28px 0 0; }
.lab-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lab-list small { color: var(--ink-muted); }

@media (width <= 47.99rem) {
  .hud, .header__center { display: none; }
  .navsearch, .navtrigger { display: grid; }
  .header { padding-block: 16px; }
  .header__bar { grid-template-columns: 1fr auto; }
  .stage__caption {
    top: auto;
    bottom: 9svh;
    translate: -50% 0;
  }
  .plate { width: min(78vw, 320px); height: auto; aspect-ratio: 16 / 9; }
  #notif { margin: 72px auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
