@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #24271f;
  --muted: #555950;
  --accent: #b04b27;
  --rule: #cecec2;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1200px, 89%); margin-inline: auto; }
.skip { position: fixed; left: .75rem; top: -10rem; z-index: 4; background: var(--paper); padding: .7rem; }
.skip:focus { top: .5rem; }
.mast, footer { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.mast { min-height: 5.4rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.42rem; font-weight: 640; letter-spacing: -.045em; line-height: 1.15; }
nav { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); align-items: center; }
nav a, footer a:not(.brand) { font-size: .94rem; font-weight: 500; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--accent); }
.git { display: inline-flex; align-items: center; gap: .48rem; border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2.5vw, 2.4rem); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(3rem, 4.9vw, 5.4rem); }
.hero-text { padding-bottom: .25rem; container-type: inline-size; }
.eyebrow, .mono, .plot-note, figcaption { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--accent); font-weight: 600; font-size: .81rem; text-transform: uppercase; line-height: 1.5; letter-spacing: .105em; margin: 0; }
.eyebrow span { width: 1.4rem; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-weight: 580; }
h1 { font-size: clamp(3.4rem, 6.4vw, 5.65rem); font-weight: 650; letter-spacing: -.048em; line-height: 1.04; margin-block: 1.3rem 1.35rem; }
.hero h1 { font-size: clamp(2.5rem, 14.7cqi, 5.65rem); }
h1 em { color: var(--accent); font-style: normal; }
.intro { font-size: clamp(1.06rem, 1.35vw, 1.22rem); line-height: 1.55; max-width: 26.7rem; margin: 0 0 1.8rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: .75rem; background: var(--ink); border: 1px solid var(--ink); color: #fff; padding: .73rem 1.16rem; border-radius: 4px; text-decoration: none; font-size: .94rem; font-weight: 550; }
.button:hover { background: #443f32; }
.grid-icon { width: 13px; height: 13px; background: conic-gradient(from 90deg at 5px 5px, transparent 25%, #fff 0 50%, transparent 0 75%, #fff 0) 0 0/8px 8px; mask: linear-gradient(#000 0 0); }
.plot { margin: 0; padding-top: .5rem; }
.plot-area {
  isolation: isolate; position: relative; display: grid; place-items: center; aspect-ratio: 1.48;
  background-image: linear-gradient(#d7d7ca70 1px, transparent 1px), linear-gradient(90deg, #d7d7ca70 1px, transparent 1px);
  background-size: 22px 22px; background-position: center;
  border: 1px solid #deded2;
}
.plot-area::before, .plot-area::after { position: absolute; content: ""; z-index: -1; }
.plot-area::before { top: 50%; width: 100%; border-top: 1px dashed #adada1; }
.plot-area::after { left: 50%; height: 100%; border-left: 1px dashed #adada1; }
.plot-area > img { position: absolute; inset: 0; margin: auto; height: 86%; width: 82%; object-fit: contain; transform: rotate(-9deg); }
.knot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; opacity: 0; }
.plot[data-live] .knot-canvas { opacity: 1; }
.plot[data-live] .plot-area > img { opacity: 0; }
.plot-note { position: absolute; top: .65rem; left: .85rem; font-size: .75rem; color: #67695c; }
.axis { position: absolute; bottom: .55rem; right: .85rem; color: #777a6c; line-height: 0; }
.corner { position: absolute; width: 12px; height: 12px; }
.corner::before, .corner::after { content: ""; position: absolute; background: #737565; }
.corner::before { width: 100%; height: 1px; top: 5px; }
.corner::after { height: 100%; width: 1px; left: 5px; }
.corner-tl { top: -5px; left: -5px; }.corner-tr { top: -5px; right: -7px; }
.corner-bl { bottom: -7px; left: -5px; }.corner-br { bottom: -7px; right: -7px; }
figcaption { display: flex; justify-content: space-between; margin-top: .8rem; color: var(--muted); font-size: .76rem; line-height: 1.4; }
figcaption span:first-child { color: var(--ink); }
.projects { border-top: 1px solid var(--rule); padding: 2.3rem 0 3.6rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.45rem; }
h2 { font-size: clamp(1.85rem, 2.85vw, 2.65rem); line-height: 1.13; letter-spacing: -.045em; }
.mono { font-size: .81rem; color: var(--muted); }
.feature { display: grid; grid-template-columns: 1fr 1.12fr; border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; background: #fcfbf6; }
.proof-art { position: relative; overflow: hidden; min-height: 13rem; background: #282d3c; }
.proof-art img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.project-summary { padding: clamp(1.5rem, 2.9vw, 2.7rem); }
.project-summary .eyebrow { font-size: .78rem; }
h3 { font-size: clamp(2.3rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: -.05em; margin-block: .5rem .55rem; }
h3 a { text-decoration: none; }
.project-summary p:not(.eyebrow), .about p, .story p { color: var(--muted); margin: 0 0 1.1rem; font-size: 1.05rem; }
.story-link { color: var(--ink); font-weight: 600; font-size: .94rem; text-underline-offset: .32rem; text-decoration-color: var(--accent); }
.story-link:hover, h3 a:hover { color: var(--accent); }
.about, .story > section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; border-top: 1px solid var(--rule); padding-block: 3.2rem; }
.about p, .story p { max-width: 62ch; }
.about p:last-child, .story p:last-child { margin-bottom: 0; }
footer { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
footer .brand { font-size: 1.12rem; }
.story-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 4rem; }
.story-hero .proof-art { width: 100%; min-height: 0; aspect-ratio: 1.6; border-radius: 4px; }
.story-hero h1 { margin-block: 1rem; }
.story h2 { font-size: clamp(1.85rem, 2.65vw, 2.45rem); text-wrap: balance; }
@media (max-width: 800px) {
  .wrap { width: 91%; }
  .hero { gap: 1.6rem; }
  h1 { font-size: clamp(3.1rem, 6.9vw, 4rem); }
  .plot-area { aspect-ratio: 1.1; }
  .plot-area > img { width: 88%; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2.5rem); }
  .mast { min-height: 4.5rem; gap: .6rem; }
  .mast .brand { font-size: 1.17rem; gap: .4rem; white-space: nowrap; }
  .mast .brand img { width: 28px; height: 28px; }
  nav { gap: .8rem; }
  nav a { font-size: .875rem; }
  .git { padding-left: 0; border: 0; font-size: 0; gap: 0; min-width: 25px; min-height: 36px; justify-content: center; }
  .git img { width: 19px; height: 19px; }
  .hero, .story-hero, .about, .story > section, .feature { grid-template-columns: 1fr; }
  .hero, .story-hero { padding-block: 2.6rem 2.3rem; gap: 2.2rem; }
  h1 { font-size: clamp(3.4rem, 11.5vw, 4.7rem); margin-block: 1.1rem; }
  .intro { margin-bottom: 1.4rem; }
  .plot-area { aspect-ratio: 1.55; }
  .plot-note { font-size: .75rem; }
  .axis { transform: scale(.78); transform-origin: bottom right; }
  .projects { padding-block: 1.8rem 2.5rem; }
  .section-head { margin-bottom: 1rem; }
  .feature .proof-art { min-height: 0; aspect-ratio: 2.45; }
  .project-summary { padding: 1.35rem; }
  .about, .story > section { gap: 1.15rem; padding-block: 2.4rem; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .mast .brand { font-size: 1rem; }
  nav { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
