@font-face {
  font-family: Space;
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #101310;
  --surface: #1a2019;
  --ink: #f0f0e8;
  --muted: #a0aa9b;
  --accent: #b4f587;
  --line: rgba(211, 232, 199, 0.17);
  --paper: #e8e9df;
  --paper-ink: #192217;
  --gutter: clamp(24px, 5vw, 88px);
  --mono: Plex, monospace;
  --font: Space, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input,
canvas,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a,
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
img,
canvas,
svg {
  display: block;
  max-width: 100%;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.065em;
}
h2 {
  font-size: clamp(42px, 5.3vw, 80px);
}
h3 {
  font-size: clamp(34px, 3.8vw, 58px);
}
.mono,
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.eyebrow {
  text-transform: uppercase;
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.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-link {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px;
  z-index: 100;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.section-pad {
  padding: 80px var(--gutter) 110px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 66px;
}
.section-top > .mono {
  color: var(--muted);
  text-align: right;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
}
.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.text-link:hover svg {
  transform: translate(3px, -3px);
}
.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
}
.header {
  height: 96px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 22px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.055em;
}
.wordmark span {
  display: block;
}
.nav {
  display: flex;
  gap: 34px;
  font-size: 12px;
}
.nav a {
  position: relative;
  padding: 10px 0;
  color: #d0d4c9;
}
.nav a::after {
  content: "";
  height: 1px;
  width: 100%;
  background: var(--accent);
  position: absolute;
  bottom: 3px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav a:hover::after {
  transform: scaleX(1);
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 11px 19px;
}
.header-contact:hover {
  background: var(--accent);
  color: var(--bg);
}
.header-contact svg {
  width: 15px;
  height: 15px;
}
.menu-button {
  display: none;
}
.hero {
  position: relative;
  min-height: 800px;
  min-height: max(780px, 100svh);
  padding: 190px var(--gutter) 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 96px 0 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((100vw - var(--gutter) * 2) / 8) 160px;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent 20%, black 80%);
}
.hero-heading {
  position: relative;
  z-index: 2;
  pointer-events: none;
  flex: 1;
  padding-bottom: 70px;
}
.hero-heading a {
  pointer-events: auto;
}
.hero-heading .eyebrow {
  margin-bottom: 28px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
h1 {
  font-size: clamp(76px, 8.9vw, 152px);
  line-height: 0.94;
  letter-spacing: -0.078em;
  font-weight: 500;
}
.title-line {
  display: block;
}
.title-line:nth-child(2) {
  margin-left: -0.025em;
}
.hero-intro {
  margin-top: 34px;
  display: flex;
  align-items: flex-end;
  gap: 50px;
}
.hero-intro p {
  font-size: clamp(15px, 1.28vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}
.hero-intro p em {
  color: var(--ink);
  font-style: normal;
}
.hero-intro .text-link {
  margin-bottom: 4px;
}
.hero-art {
  position: absolute;
  top: 132px;
  bottom: 105px;
  left: 52%;
  right: 1.5%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 490px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 14% 0 6%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--accent) 7%, transparent),
    transparent 65%
  );
  z-index: -1;
}
.art-meta {
  display: flex;
  justify-content: space-between;
  margin: 0 10%;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.hero-art canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.hero-art canvas:active {
  cursor: grabbing;
}
.art-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 8%;
  font-size: 10px;
}
.art-hint {
  color: var(--muted);
}
.shape-controls {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px;
  background: var(--bg);
}
.shape-controls button {
  padding: 7px 13px;
  border-radius: 20px;
  font: 10px var(--mono);
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
.shape-controls button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 85px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.hero-bottom > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-bottom p {
  font-size: 12px;
}
.hero-bottom p .muted {
  padding: 0 10px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}
.scroll-cue svg {
  width: 15px;
  height: 15px;
}
.about {
  background: var(--paper);
  color: var(--paper-ink);
  position: relative;
}
.about .section-top > .mono {
  color: #52604e;
}
.about-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10%;
  align-items: start;
}
.statement {
  font-size: clamp(44px, 4.55vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.06em;
  max-width: 760px;
}
.statement .word {
  transition: color 0.15s;
  color: #92988b;
}
.statement .word.is-lit {
  color: var(--paper-ink);
}
.about-detail {
  margin: 48px 0 0 auto;
  max-width: 405px;
}
.small-index {
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.about-detail p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 17px;
  color: #53604e;
}
.about-detail .text-link {
  margin-top: 10px;
}
.portrait {
  padding-top: 5px;
}
.portrait-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #18251b;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition:
    transform 1s var(--ease),
    filter 0.7s;
}
.portrait:hover img {
  transform: scale(1.045);
}
.portrait-outline {
  position: absolute;
  inset: 15px;
  border: 1px solid #c9ebaa55;
  pointer-events: none;
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  font-size: 10px;
  color: #52604e;
}
.portrait figcaption .mono {
  font-size: 9px;
}
.principles {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 23px;
  border-top: 1px solid #18291630;
  font-size: clamp(14px, 1.7vw, 24px);
  letter-spacing: -0.03em;
}
.serif-word {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.expertise {
  padding-bottom: 100px;
}
.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1.33fr;
  gap: 9%;
}
.expertise-heading {
  position: sticky;
  top: 60px;
  align-self: start;
  padding-bottom: 40px;
}
.expertise-heading h2 {
  font-size: clamp(50px, 5.8vw, 90px);
}
.expertise-heading > p {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.discipline-nav {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 280px;
}
.discipline-nav a {
  display: flex;
  gap: 28px;
  font: 11px var(--mono);
  padding: 15px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition:
    color 0.25s,
    padding 0.25s;
}
.discipline-nav a.is-active {
  color: var(--accent);
  padding-left: 12px;
}
.discipline-stack {
  display: grid;
  gap: 28px;
}
.discipline {
  position: sticky;
  top: 30px;
  padding: 28px 32px 32px;
  background: #20281f;
  border: 1px solid var(--line);
  border-radius: 3px;
  transform-origin: center top;
  scroll-margin-top: 35px;
  overflow: hidden;
}
.discipline:nth-child(2) {
  background: #233025;
  top: 42px;
}
.discipline:nth-child(3) {
  background: #28372a;
  top: 54px;
}
.discipline:nth-child(4) {
  background: #31412e;
  top: 66px;
}
.discipline-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--accent);
}
.discipline-top span:last-child {
  color: var(--muted);
}
.discipline-visual {
  height: 238px;
  margin: 22px 0 28px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid var(--line);
  color: var(--accent);
}
.visual-coordinate {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted);
}
.discipline h3 {
  margin-bottom: 18px;
}
.discipline > p {
  max-width: 470px;
  color: #c0ccba;
  font-size: 14px;
  line-height: 1.8;
}
.tags {
  padding: 22px 0 0;
  margin: 23px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  font: 9px var(--mono);
}
.code-window {
  text-align: center;
  display: grid;
  justify-items: center;
}
.code-window > span {
  font: 10px var(--mono);
  border: 1px solid var(--line);
  padding: 6px 15px;
  background: var(--surface);
}
.code-window strong {
  font: 38px var(--font);
  letter-spacing: -0.06em;
}
.code-connection {
  height: 23px;
  width: 1px;
  background: var(--accent);
  opacity: 0.55;
}
.code-cursor {
  animation: blink 1.5s steps(1) infinite;
}
.portal {
  width: 220px;
  height: 190px;
  position: relative;
  perspective: 450px;
}
.portal i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 48%;
  transform: rotateY(30deg) rotateX(-12deg) scale(var(--scale));
  opacity: var(--scale);
  animation: portal-turn 8s ease-in-out infinite alternate;
}
.portal i:nth-child(1) {
  --scale: 1;
}
.portal i:nth-child(2) {
  --scale: 0.83;
  animation-delay: -0.6s;
}
.portal i:nth-child(3) {
  --scale: 0.66;
  animation-delay: -1.2s;
}
.portal i:nth-child(4) {
  --scale: 0.49;
  animation-delay: -1.8s;
}
.portal i:nth-child(5) {
  --scale: 0.32;
  animation-delay: -2.4s;
}
.portal i:nth-child(6) {
  --scale: 0.15;
  animation-delay: -3s;
}
.layer-object {
  position: relative;
  width: 170px;
  height: 170px;
  transform: rotateX(55deg) rotateZ(-35deg);
  transform-style: preserve-3d;
}
.layer-object i {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--accent);
  background: #b4f58706;
  transform: translateZ(calc(var(--i) * 12px));
  animation: layers 5s ease-in-out infinite alternate;
}
.layer-object i:nth-child(1) {
  --i: -4;
}
.layer-object i:nth-child(2) {
  --i: -3;
}
.layer-object i:nth-child(3) {
  --i: -2;
}
.layer-object i:nth-child(4) {
  --i: -1;
}
.layer-object i:nth-child(5) {
  --i: 0;
}
.layer-object i:nth-child(6) {
  --i: 1;
}
.layer-object i:nth-child(7) {
  --i: 2;
}
.layer-object i:nth-child(8) {
  --i: 3;
}
.layer-object i:nth-child(9) {
  --i: 4;
}
.network-visual svg {
  width: 100%;
  height: 100%;
  stroke-width: 1;
}
.network-visual circle {
  animation: network-breathe 5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
.network-visual circle:nth-child(3n) {
  animation-delay: -2s;
}
.discipline:not(.in-view) .discipline-visual * {
  animation-play-state: paused;
}
.playground {
  background: var(--accent);
  color: var(--paper-ink);
  --line: #1922172b;
}
.playground .section-top > .mono {
  color: #425238;
}
.play-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
}
.play-heading h2 {
  font-size: clamp(55px, 6.7vw, 105px);
  letter-spacing: -0.07em;
}
.play-heading h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.play-heading > div {
  padding-bottom: 7px;
}
.play-heading p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 17px;
}
.grid-lab {
  position: relative;
  background: #182319;
  height: 410px;
  border-radius: 4px;
  overflow: hidden;
  color: #b4f587;
}
.grid-lab canvas {
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: crosshair;
}
.lab-top,
.lab-bottom {
  position: absolute;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.lab-top {
  top: 22px;
  font-size: 9px;
  text-transform: uppercase;
}
.lab-bottom {
  bottom: 20px;
}
.lab-bottom > .mono {
  font-size: 9px;
  color: #aec2a2;
}
.lab-bottom button {
  pointer-events: auto;
  font: 9px var(--mono);
  border: 1px solid #b4f58750;
  border-radius: 30px;
  padding: 10px 16px;
  color: #c3f99c;
  background: #182319;
}
.lab-bottom button:hover {
  background: #b4f587;
  color: #182319;
}
.play-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  font-size: 9px;
}
.secret-count {
  padding: 0;
  border-bottom: 1px solid #18231966;
  display: flex;
  gap: 20px;
  font-size: 9px;
}
.playground :focus-visible,
.about :focus-visible {
  outline-color: #192217;
}
.experience {
  background: var(--paper);
  color: var(--paper-ink);
}
.experience .section-top > .mono {
  color: #52604e;
}
.experience-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  margin-bottom: 65px;
}
.experience-intro h2 {
  font-size: clamp(40px, 4.8vw, 74px);
}
.experience-intro > p {
  font-size: 14px;
  color: #53604e;
  max-width: 300px;
  line-height: 1.8;
}
.experience-row {
  border-top: 1px solid #19221733;
}
.experience-row:last-child {
  border-bottom: 1px solid #19221733;
}
.experience-row summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 2.2fr 1.35fr 26px;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
}
.experience-row summary::-webkit-details-marker {
  display: none;
}
.period {
  font-size: 10px;
  color: #596450;
}
.org {
  font-size: 35px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.org > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 10px;
  color: #596450;
}
.job {
  font-size: 11px;
  color: #596450;
}
.expand-icon {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  border: 1px solid #19221744;
  border-radius: 50%;
}
.expand-icon::before,
.expand-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 6px;
  width: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s;
}
.expand-icon::after {
  transform: rotate(90deg);
}
.experience-row[open] .expand-icon::after {
  transform: rotate(0);
}
.experience-row:hover .org {
  color: #4a7740;
}
.experience-detail {
  padding: 0 70px 32px 21%;
  max-width: 900px;
  color: #53604e;
  font-size: 14px;
  line-height: 1.8;
}
.experience-detail .mono {
  display: block;
  margin-top: 18px;
  font-size: 9px;
}
.contact {
  padding-bottom: 80px;
}
.contact-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.contact h2 {
  font-size: clamp(70px, 10.9vw, 165px);
  letter-spacing: -0.075em;
}
.contact h2 span {
  color: var(--accent);
}
.contact-orbit {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-right: 4%;
  transition:
    background 0.5s,
    color 0.5s,
    transform 0.5s var(--ease);
}
.contact-orbit svg {
  width: 65px;
  height: 65px;
  stroke-width: 1;
}
.contact-orbit:hover {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--bg);
}
.contact-bottom {
  margin-top: 65px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-bottom > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.contact-bottom strong {
  font-weight: 400;
  color: var(--ink);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 18px 28px;
  max-width: 480px;
  font-size: 15px;
}
.contact-links > a:first-child {
  font-size: clamp(18px, 2vw, 29px);
  letter-spacing: -0.035em;
  width: 100%;
  text-align: right;
}
.contact-links a:hover {
  color: var(--accent);
}
.contact-links svg {
  width: 12px;
  height: 12px;
  display: inline;
  margin-left: 5px;
}
.footer {
  padding: 40px var(--gutter) 95px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.footer-top p {
  font: 9px/1.8 var(--mono);
  color: var(--muted);
}
.footer-top .text-link {
  font-size: 11px;
}
.coffee-link {
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.coffee-link:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom button {
  font: inherit;
  text-transform: inherit;
  padding: 0;
}
.footer-bottom button:hover {
  color: var(--accent);
}
.chat-trigger {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  right: 26px;
  z-index: 30;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 4px 30px #0002;
  border-radius: 4px;
  font: 11px var(--mono);
}
.chat-trigger:hover {
  border-color: var(--accent);
}
.chat-trigger svg {
  width: 18px;
  height: 18px;
  margin-left: 9px;
}
.chat-trigger .status-dot {
  width: 5px;
  height: 5px;
}
.toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: calc(100% - 40px);
  background: var(--ink);
  color: var(--bg);
  padding: 15px 22px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
  text-align: center;
  line-height: 1.7;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0;
  width: min(600px, calc(100vw - 32px));
  max-height: 85svh;
  box-shadow: 0 30px 140px #0008;
  border-radius: 5px;
}
dialog::backdrop {
  background: #080f09a8;
  backdrop-filter: blur(7px);
}
dialog[open] {
  animation: dialog-in 0.25s var(--ease);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
}
.dialog-header .eyebrow {
  display: block;
  font-size: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}
.close-button {
  font-size: 9px;
  padding: 10px;
  border: 1px solid var(--line);
}
.chat-dialog {
  margin: auto 24px 24px auto;
  width: 400px;
  max-height: calc(100svh - 32px);
}
.chat-messages {
  height: 340px;
  max-height: 47svh;
  overflow: auto;
  padding: 25px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.chat-welcome {
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin: 10px 0 24px;
}
.chat-suggestions {
  display: grid;
  gap: 9px;
}
.chat-suggestions button {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.chat-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chat-message {
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--surface);
}
.chat-message[data-role="user"] {
  background: var(--accent);
  color: #152013;
  margin-left: 35px;
}
.chat-message[data-role="assistant"]::before {
  content: "FRANCESCO / AI";
  display: block;
  font: 8px var(--mono);
  margin-bottom: 9px;
  color: var(--accent);
}
.chat-notice {
  font: 8px/1.7 var(--mono);
  color: var(--muted);
  padding: 10px 25px 14px;
}
.chat-form {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 14px;
  gap: 10px;
}
.chat-form input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: var(--surface);
  padding: 13px;
  border: 0;
  font-size: 16px;
}
.send-button {
  background: var(--accent);
  color: var(--bg);
  padding: 11px;
}
.chat-loader {
  padding: 12px 0 20px;
  font: 10px var(--mono);
  color: var(--accent);
}
.loader-track {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.loader-track i {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--accent);
  animation: loader 1.2s ease-in-out infinite;
}
.loader-track i:nth-child(2) {
  animation-delay: 0.15s;
}
.loader-track i:nth-child(3) {
  animation-delay: 0.3s;
}
.retry-button {
  padding: 10px 15px;
  border: 1px solid var(--accent);
  font-size: 11px;
  display: block;
  margin: 0 0 18px;
}
.console-log {
  height: 225px;
  overflow: auto;
  padding: 24px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.console-log p {
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.console-shortcuts {
  padding: 0 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.console-shortcuts button {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font: 10px var(--mono);
}
.console-shortcuts button:hover {
  background: var(--accent);
  color: var(--bg);
}
#console-form {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
}
#console-form label {
  font-size: 10px;
  color: var(--accent);
}
#console-input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 16px var(--mono);
}
#console-form button {
  font-size: 10px;
}
.privacy-copy {
  padding: 25px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.privacy-copy p + p {
  margin-top: 16px;
}
.privacy-copy a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.entrance {
  animation: rise-in 1.1s var(--ease) both;
}
.title-line:nth-child(1) {
  animation-delay: 0.08s;
}
.title-line:nth-child(2) {
  animation-delay: 0.18s;
}
.hero-intro.entrance {
  animation-delay: 0.28s;
}
body[data-theme="blueprint"] {
  --bg: #10293d;
  --surface: #1a384d;
  --accent: #bce5ef;
  --line: #cbeafa33;
  --paper: #e0ebed;
  --paper-ink: #143249;
  --muted: #a3bcc5;
}
body[data-overclock="true"] {
  --accent: #f6b878;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}
body.page-hidden * {
  animation-play-state: paused !important;
}
.motion-paused .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.motion-paused .word {
  color: var(--paper-ink);
}
html:has(.motion-paused) {
  scroll-behavior: auto;
}
.motion-paused * {
  scroll-behavior: auto !important;
}
.motion-paused .discipline {
  transform: none !important;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
@keyframes portal-turn {
  from {
    transform: rotateY(30deg) rotateX(-12deg) scale(var(--scale));
  }
  to {
    transform: rotateY(-30deg) rotateX(12deg) scale(var(--scale));
  }
}
@keyframes layers {
  from {
    transform: translateZ(calc(var(--i) * 9px));
  }
  to {
    transform: translateZ(calc(var(--i) * 17px));
  }
}
@keyframes network-breathe {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1.08);
  }
}
@keyframes loader {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1700px) {
  .hero {
    min-height: 900px;
    max-height: 1120px;
  }
  .hero-art {
    left: 50%;
  }
  .hero-heading {
    padding-top: 30px;
  }
  .hero-intro {
    margin-top: 50px;
  }
  .section-pad {
    padding-top: 100px;
    padding-bottom: 130px;
  }
}
@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }
  .hero {
    min-height: 780px;
    padding-top: 180px;
  }
  .hero-intro {
    display: block;
  }
  .hero-intro .text-link {
    margin-top: 16px;
  }
  .hero-art {
    left: 48%;
    right: 0;
    top: 180px;
    bottom: 145px;
  }
  .art-meta {
    font-size: 8px;
  }
  .hero-bottom p {
    font-size: 10px;
  }
  .scroll-cue {
    display: none;
  }
  .hero-art .art-hint {
    display: none;
  }
  .art-footer {
    justify-content: center;
  }
  .about-layout {
    gap: 7%;
  }
  .discipline {
    padding: 24px;
  }
  .discipline-top span:last-child {
    display: none;
  }
  .discipline-visual {
    height: 220px;
  }
  .expertise-layout {
    gap: 6%;
    grid-template-columns: 1fr 1.45fr;
  }
  .footer-bottom > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 20px;
  }
  .header {
    height: 80px;
    gap: 20px;
  }
  .wordmark {
    font-size: 20px;
  }
  .header-contact {
    margin-left: auto;
    padding: 9px 14px;
    font-size: 11px;
    gap: 13px;
  }
  .menu-button {
    display: block;
    font-size: 10px;
    border: 1px solid var(--line);
    padding: 11px 13px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    flex-direction: column;
    gap: 10px;
  }
  .nav.is-open {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding-top: 130px;
    overflow: hidden;
  }
  .hero-heading {
    padding-bottom: 0;
    flex: none;
  }
  .hero-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }
  h1 {
    font-size: clamp(50px, 16vw, 104px);
    letter-spacing: -0.07em;
  }
  .hero-intro {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: end;
  }
  .hero-intro p {
    font-size: 13px;
  }
  .hero-intro .text-link {
    font-size: 11px;
    gap: 12px;
    white-space: nowrap;
    margin: 0 0 4px;
  }
  .hero-art {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    height: 390px;
    min-height: 0;
    margin: 30px -12px 0;
  }
  .art-meta {
    margin: 0 16px;
    font-size: 8px;
  }
  .art-footer {
    margin: 0 15px 24px;
    justify-content: space-between;
  }
  .hero-art .art-hint {
    display: block;
    font-size: 9px;
  }
  .shape-controls button {
    padding: 8px 12px;
    font-size: 9px;
  }
  .hero-bottom {
    min-height: 100px;
    gap: 10px;
    flex-wrap: wrap;
    align-content: center;
    padding: 18px 0;
  }
  .hero-bottom > div {
    width: 100%;
  }
  .hero-bottom .mono {
    font-size: 9px;
  }
  .hero-bottom p {
    font-size: 10px;
  }
  .hero-bottom p .muted {
    padding: 0 5px;
  }
  .hero-grid {
    background-size: 80px 120px;
  }
  .section-pad {
    padding-top: 52px;
    padding-bottom: 65px;
  }
  .section-top {
    margin-bottom: 40px;
    gap: 20px;
  }
  .section-top .eyebrow {
    font-size: 8px;
  }
  .section-top > .mono {
    font-size: 8px;
    max-width: 115px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .statement {
    font-size: clamp(38px, 8.6vw, 58px);
    max-width: 630px;
  }
  .about-detail {
    margin: 30px 0 0;
    max-width: 520px;
  }
  .about-detail p {
    font-size: 14px;
  }
  .portrait {
    max-width: 420px;
    width: 85%;
    margin: 0 0 0 auto;
  }
  .portrait-image {
    aspect-ratio: 4/5;
  }
  .principles {
    margin-top: 40px;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 15px;
  }
  .expertise-layout {
    display: block;
  }
  .expertise-heading {
    position: relative;
    top: auto;
    padding-bottom: 35px;
  }
  .expertise-heading h2 {
    font-size: 56px;
  }
  .expertise-heading h2 br {
    display: none;
  }
  .expertise-heading h2 {
    max-width: 350px;
  }
  .expertise-heading > p {
    margin-top: 20px;
    font-size: 13px;
  }
  .discipline-nav {
    display: none;
  }
  .discipline-stack {
    gap: 20px;
  }
  .discipline {
    position: relative;
    top: auto !important;
    padding: 22px;
    transform: none !important;
  }
  .discipline-top {
    font-size: 9px;
  }
  .discipline-visual {
    height: 210px;
    margin: 20px 0 25px;
  }
  .discipline h3 {
    font-size: 38px;
  }
  .discipline > p {
    font-size: 13px;
  }
  .tags {
    gap: 10px 14px;
    font-size: 8px;
    margin-top: 20px;
    padding-top: 17px;
  }
  .play-heading {
    display: block;
    margin-bottom: 25px;
  }
  .play-heading h2 {
    font-size: 62px;
  }
  .play-heading > div {
    margin-top: 26px;
    display: flex;
    gap: 25px;
    align-items: end;
    justify-content: space-between;
  }
  .play-heading p {
    font-size: 12px;
    margin: 0;
  }
  .play-heading .text-link {
    font-size: 10px;
    gap: 10px;
    max-width: 145px;
  }
  .grid-lab {
    height: 340px;
    margin: 0 -8px;
  }
  .lab-top,
  .lab-bottom {
    left: 16px;
    right: 16px;
  }
  .lab-top {
    font-size: 8px;
  }
  .lab-bottom > .mono {
    font-size: 8px;
    max-width: 140px;
  }
  .lab-bottom button {
    font-size: 8px;
    padding: 10px 12px;
  }
  .play-note {
    align-items: start;
  }
  .play-note > .mono {
    font-size: 8px;
    max-width: 130px;
  }
  .secret-count {
    font-size: 8px;
    gap: 9px;
  }
  .experience-intro {
    display: block;
    margin-bottom: 35px;
  }
  .experience-intro h2 {
    font-size: 43px;
  }
  .experience-intro > p {
    margin-top: 24px;
    font-size: 13px;
    max-width: 360px;
  }
  .experience-row summary {
    grid-template-columns: 1fr 25px;
    gap: 12px;
    padding: 25px 0;
  }
  .experience-row .period {
    grid-column: 1;
    grid-row: 1;
    font-size: 8px;
  }
  .org {
    grid-column: 1;
    grid-row: 2;
    font-size: 32px;
  }
  .org > span {
    font-size: 10px;
  }
  .job {
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
  }
  .expand-icon {
    grid-column: 2;
    grid-row: 2;
  }
  .experience-detail {
    padding: 0 0 25px;
    font-size: 13px;
  }
  .contact .section-top > .mono {
    font-size: 8px;
  }
  .contact-main {
    gap: 16px;
  }
  .contact h2 {
    font-size: clamp(52px, 10.5vw, 80px);
  }
  .contact-orbit {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    margin: 0;
  }
  .contact-orbit svg {
    width: 28px;
    height: 28px;
  }
  .contact-bottom {
    margin-top: 35px;
    display: block;
    padding-top: 25px;
  }
  .contact-bottom > p {
    font-size: 13px;
  }
  .contact-links {
    margin-top: 30px;
    justify-content: start;
    gap: 15px 25px;
  }
  .contact-links > a:first-child {
    text-align: left;
    font-size: clamp(17px, 4.8vw, 25px);
    overflow-wrap: anywhere;
  }
  .contact-links a {
    font-size: 13px;
  }
  .footer {
    padding-top: 32px;
    padding-bottom: 100px;
  }
  .footer-top {
    flex-wrap: wrap;
    align-items: start;
    gap: 25px;
  }
  .footer-top p {
    order: 3;
    width: 100%;
    font-size: 8px;
  }
  .footer-top .text-link {
    margin-left: auto;
    font-size: 10px;
  }
  .footer-bottom {
    margin-top: 25px;
    flex-direction: column;
    gap: 20px;
    font-size: 8px;
  }
  .footer-bottom > div {
    gap: 22px;
  }
  .chat-trigger {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 12px 15px;
    font-size: 10px;
  }
  .chat-dialog {
    width: calc(100vw - 24px);
    margin: auto auto 12px;
  }
  .dialog-header {
    padding: 20px;
  }
  .chat-messages {
    height: 320px;
    padding: 20px;
  }
  .chat-notice {
    padding: 10px 20px;
  }
  .console-log {
    font-size: 10px;
    height: 210px;
  }
  #console-form {
    flex-wrap: wrap;
    padding: 20px;
  }
  #console-form label {
    width: 100%;
    font-size: 9px;
  }
  #console-input {
    flex: 1;
  }
  .privacy-copy {
    padding: 20px;
  }
}
@media (max-width: 380px) {
  .hero-intro {
    display: block;
  }
  .hero-intro .text-link {
    margin-top: 13px;
  }
  .hero-art {
    height: 350px;
  }
  .header {
    gap: 12px;
  }
  .header-contact {
    padding: 9px 12px;
  }
  .header-contact svg {
    display: none;
  }
  .play-heading h2 {
    font-size: 55px;
  }
  .contact-orbit {
    width: 50px;
    height: 50px;
  }
  .contact h2 {
    font-size: 50px;
  }
  .secret-count {
    flex-direction: column;
    gap: 3px;
  }
}
@media (pointer: coarse) {
  .shape-controls button,
  .menu-button,
  .close-button,
  .console-shortcuts button,
  .lab-bottom button,
  .secret-count,
  .footer-bottom button {
    min-height: 44px;
  }
  .secret-count {
    align-items: center;
  }
  .hero-art {
    height: 360px;
  }
  .hero-art .art-footer {
    margin-bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .statement .word {
    color: var(--paper-ink);
  }
  .discipline {
    transform: none !important;
  }
}
