:root {
  --background: #100f12;
  --surface: #19171b;
  --accent: #efb17f;
  --text: #f1ece8;
  --subtle: #bfb6ba;
  --muted: #b8b0b5;
  --border: #413a40;
  --rule: #51474c;
  color-scheme: dark;
  font: 100%/1.5 var(--body-font);
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {box-sizing: border-box}
body, h1, h2, h3, p, dl, dd, figure {margin: 0}
body {min-width: 0}
button {font: inherit; cursor: pointer}
button, a {touch-action: manipulation}
a {color: inherit; text-underline-offset: .24em}
a:focus-visible, button:focus-visible, summary:focus-visible {outline: 3px solid #ffc48e; outline-offset: 4px}
[hidden] {display: none !important}
.skip:not(:focus) {position: absolute; width: 1px; height: 1px; padding: 0; white-space: nowrap; overflow: hidden; clip-path: inset(50%)}
.skip:focus {position: fixed; inset: .8rem auto auto .8rem; padding: .65rem 1rem; z-index: 10; background: var(--text); color: var(--background)}
.symbols {position: absolute; width: 0; height: 0; overflow: hidden}
.icon {width: 1.12em; height: 1.12em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle}
.wrap {width: min(89.5%, 84rem); margin-inline: auto}
.anchor {display: block; height: 0; width: 0}
#main:focus {outline: none}
.mast, .hero, footer {background: var(--background); color: var(--text)}
.topbar, .endbar {display: flex; align-items: center; gap: 2.3rem}
.topbar {position: relative; height: 5rem; border-bottom: 1px solid var(--border)}
.brand {display: inline-flex; align-items: baseline; gap: .55rem; color: var(--text); font: 700 1.8rem/1 var(--display-font); letter-spacing: .018em; text-transform: uppercase; text-decoration: none}
.brand span {color: var(--subtle); font: 500 .84rem/1 var(--body-font); letter-spacing: .025em; text-transform: none}
nav {display: flex; gap: clamp(1.3rem, 2.7vw, 3rem); align-items: center; margin-left: auto}
nav a, .nav-cta {font-size: .95rem; text-decoration: none}
nav a {color: #ded6d7}
nav a:hover, .endbar > a:last-child:hover {text-decoration: underline}
.nav-cta {padding: .55rem .98rem; color: var(--accent); border: 1px solid #886c59; border-radius: 2px; font-weight: 530}
.nav-cta:hover {color: var(--background); background: var(--accent); border-color: var(--accent)}
.icon-button {display: inline-grid; place-items: center; color: inherit; border: none; background: transparent; width: 2.75rem; height: 2.75rem; border-radius: 2px}
.icon-button:hover {background: #ead0bc15}
.mobile {display: none}
.hero {overflow: clip}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); grid-template-rows: 1fr auto;
  align-items: center; column-gap: clamp(1rem, 2vw, 2rem);
  min-height: clamp(37rem, calc(100svh - 5rem), 54rem); padding-block: clamp(2rem, 4vw, 4rem) 1.1rem;
}
.hero-copy {min-width: 0; position: relative; z-index: 1}
h1, h2 {font-family: var(--display-font); font-weight: 700; letter-spacing: -.012em}
h1 em, h2 em {font-style: normal}
h1 {font-size: clamp(4.8rem, 8.45vw, 8.6rem); line-height: .92; margin: 1.75rem 0 1.55rem}
h1 em {color: var(--accent)}
.hero h1 {font-size: clamp(5.8rem, 13.2vw, 11.8rem); line-height: .82; letter-spacing: -.022em; text-transform: uppercase; margin: 0 0 1.4rem}
.tagline {margin-bottom: .55rem; color: var(--accent); font-size: clamp(1.2rem, 1.55vw, 1.45rem); font-weight: 620; line-height: 1.35}
.intro {font-size: clamp(1.05rem, 1.28vw, 1.23rem); line-height: 1.55; color: #c1b7ba; max-width: 27rem; text-wrap: pretty}
.button {display: inline-flex; align-items: center; justify-content: center; padding: .74rem 1.08rem; border: 1px solid transparent; border-radius: 2px; font-weight: 600; line-height: 1.4; font-size: .94rem; text-decoration: none; white-space: nowrap}
.primary {background: var(--accent); color: #21150e}
.primary:hover {background: #ffd0aa}
.hero-actions {display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.35rem; margin-top: 1.6rem}
.github-button {
  min-height: 4rem; min-width: min(100%, 15rem); padding: .8rem 1.75rem;
  font: 700 1.75rem/1.1 var(--display-font);
}
.hero-actions .ink-link {display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.05rem}
@media (max-width: 36rem) {
  .hero-actions .github-button {width: 100%}
}
.release-status {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  column-gap: clamp(1.4rem, 6vw, 7rem); padding-block: 1rem .25rem; border-top: 1px solid var(--border);
}
.release-status dt {font: 500 .76rem/1.45 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted)}
.release-status dd {margin-top: .25rem; font-size: .92rem; color: var(--text)}
.study {min-width: 0; pointer-events: none}
.stage {
  position: relative; width: calc(100% + clamp(2rem, 7vw, 7rem)); margin-left: clamp(-2.8rem, -3vw, -1.5rem);
  aspect-ratio: 1.28;
  mask-image: radial-gradient(ellipse 64% 66% at 50% 48%, #000 60%, transparent 96%);
}
.stage img, .stage canvas {position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.stage img {object-fit: contain}
.stage.is-live {
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 4%, #000 94%, transparent);
  mask-composite: intersect;
}
.stage.is-live img {visibility: hidden}
.capabilities {
  background: var(--surface); padding-block: clamp(3.5rem, 7.4vw, 8.25rem);
}
.capabilities-header, .setup-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.25rem, 9vw, 9rem);
}
.capabilities-header {align-items: end}
h2 {font-size: clamp(3.15rem, 5.25vw, 5.4rem); line-height: .96}
.capabilities h2 {font-size: clamp(3.55rem, 7.7vw, 7.3rem)}
.capabilities-copy h2 em, .setup h2 em {color: #d5a687}
.capabilities-copy p, .setup-intro {
  margin-top: 1.15rem; max-width: 29rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted); line-height: 1.52;
}
.ink-link {display: inline-block; width: fit-content; color: var(--text); font-weight: 560; font-size: .93rem}
.ink-link:hover {color: var(--accent)}
.title-line {display: block}
.title-line > * {display: block}
.capabilities-copy .title-line {overflow: clip}
.mcp-benefits {
  list-style: none; padding: 0; margin: 0; display: grid;
  gap: 1rem; max-width: 32rem;
}
.mcp-benefits li {
  display: grid; grid-template-columns: minmax(9rem, .85fr) minmax(0, 1.15fr);
  gap: .25rem 1rem; align-items: baseline; color: var(--muted);
}
.mcp-benefits strong {color: var(--text); font-weight: 650}
.tool-index {scroll-margin-top: 2rem; margin-top: clamp(2.4rem, 6.5vw, 6.3rem)}
.tool-row, .tool-resource {
  display: grid; grid-template-columns: minmax(12rem, .92fr) minmax(0, 1.08fr);
  gap: .45rem clamp(2rem, 9vw, 9rem); align-items: baseline;
  position: relative; isolation: isolate;
}
.tool-row {
  padding-block: clamp(1.25rem, 2.5vw, 2.1rem);
  border-top: 1px solid var(--border);
}
.tool-row::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -.8rem; opacity: 0;
  background: linear-gradient(95deg, #643c2d, #3b2a31 54%, transparent 99%);
  pointer-events: none;
}
.tool-row code {
  color: var(--accent); font-size: clamp(1rem, 1.7vw, 1.55rem);
  line-height: 1.35; overflow-wrap: anywhere;
}
.tool-row dd, .tool-resource p {font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 35rem}
.tool-resource {padding-block: 1.35rem; border-top: 1px solid var(--border)}
.tool-resource h3 {margin-bottom: .3rem; font: 600 .94rem/1.45 var(--body-font); color: var(--subtle)}
.tool-resource code {color: var(--accent); overflow-wrap: anywhere}
.setup {background: var(--background); padding-block: clamp(4rem, 8vw, 8.25rem)}
.setup-grid {align-items: start}
.setup-copy > .ink-link {margin-top: 1.4rem}
.installation {min-width: 0}
.install-panel {margin-bottom: 1.45rem}
.terminal {background: #1c181c; box-shadow: 0 1.05rem 3rem #05040740}
.tabs {display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem .65rem 0}
.tabs button {
  appearance: none; padding: .65rem .9rem; border: 0; background: transparent;
  color: var(--muted); font-size: .98rem; font-weight: 550;
}
.tabs button[aria-pressed="true"] {background: #141216; color: var(--text)}
.tabs button:hover {color: var(--accent)}
.terminal-body {position: relative; isolation: isolate; padding: .95rem clamp(.9rem, 2.4vw, 1.9rem) .45rem}
.terminal-body::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: #141216; transform-origin: center top; pointer-events: none;
}
#install-note {margin: 0 0 .85rem; color: var(--muted)}
.command {
  display: flex; align-items: center; justify-content: space-between; gap: .45rem; min-height: 3.5rem;
  background: #100e11; color: var(--text); padding: .35rem .35rem .35rem 1rem;
}
.command code {overflow-wrap: anywhere}
code, pre {font-family: var(--mono); font-size: .89em}
.command .icon-button {flex: none; color: var(--accent)}
#copy-status {min-height: 1.55rem; color: var(--muted); font-size: .85rem}
details {border-top: 1px solid var(--rule)}
details:last-child {border-bottom: 1px solid var(--rule)}
summary {cursor: pointer; padding: .9rem 0; font-size: .97rem; font-weight: 550}
details p {margin-bottom: 1rem; color: var(--muted)}
.endbar {padding-block: 1.7rem; justify-content: space-between; border-top: 1px solid var(--border)}
.endbar > a:last-child {color: var(--subtle); font-size: .86rem}
.guide-page {background: var(--surface)}
.guide-page .topbar {justify-content: space-between}
.article {width: min(89.5%, 49rem); margin: auto; padding-block: 3.8rem 5rem}
.article h1 {font-size: clamp(3.8rem, 7vw, 6rem); margin: 1.4rem 0; line-height: .95}
.article h2 {font-size: clamp(2.3rem, 3.4vw, 3.15rem); line-height: 1.05; margin-block: 2rem .65rem}
.article p {margin: .8rem 0; line-height: 1.65}
.article pre {max-width: 100%; overflow-x: auto; padding: 1.1rem; background: var(--background); color: var(--text); border-radius: 2px; line-height: 1.6}
.article li {margin-block: .4rem}
@media (max-width: 950px) {
  .hero-grid {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 36rem}
}
@media (max-width: 720px) {
  .topbar {height: 4rem; gap: .85rem}
  .nav-cta {margin-left: auto; font-size: .81rem; padding: .45rem .66rem}
  .brand {font-size: 1.5rem; gap: .4rem}
  .brand span {font-size: .68rem}
  nav {position: absolute; left: 0; right: 0; top: 100%; z-index: 4; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .35rem .6rem; background: var(--surface); border: 1px solid var(--border)}
  nav.open {display: flex}
  nav a {padding: .75rem}
  .mobile {display: grid; width: 2.3rem}
  .hero-grid, .capabilities-header, .setup-grid {grid-template-columns: minmax(0, 1fr)}
  .hero-grid {min-height: 0; grid-template-rows: auto auto auto; gap: .2rem; padding-block: 2.6rem 1.35rem}
  .hero h1 {font-size: clamp(5.2rem, 20vw, 8.2rem); margin-bottom: .95rem}
  .intro {max-width: 29rem; font-size: 1.02rem}
  .hero-actions {margin-top: 1.25rem}
  .release-status {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .stage {width: 112%; margin-left: -6%; height: clamp(16rem, 70vw, 26rem); aspect-ratio: auto}
  .stage img {object-fit: cover}
  .capabilities-header, .setup-grid {gap: 2rem}
  .capabilities {padding-block: 3.3rem}
  .mcp-benefits li {grid-template-columns: minmax(0, 1fr)}
  .tool-row, .tool-resource {grid-template-columns: minmax(0, 1fr)}
  .setup {padding-block: 3.3rem}
  .guide-page .topbar > a:last-child {margin-left: auto}
}
@media (max-width: 375px) {
  .wrap {width: 92%}
  .brand span {display: none}
}
@media (scripting: none) {
  #copy, .mobile {display: none}
}

@media (scripting: none) and (max-width: 720px) {
  .mast:has(#menu) .topbar {height: auto; padding-block: .8rem; flex-wrap: wrap}
  #menu {position: static; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; display: flex; order: 1; padding: 0; border: 0; background: none}
  #menu a {padding: .35rem .85rem .35rem 0}
}

@media (prefers-reduced-motion: no-preference) {
  html.entered .hero-copy > * {animation: reveal-copy .52s cubic-bezier(.2,.72,.23,1) backwards}
  html.entered .hero-copy .tagline {animation-delay: .05s}
  html.entered .hero-copy .intro {animation-delay: .10s}
  html.entered .hero-actions {animation-delay: .15s}
  html.entered .release-status {animation: reveal-art .6s .20s ease-out backwards}
  html.entered .study {animation: reveal-art .72s ease-out backwards}
}
html.scroll-motion {scroll-behavior: smooth}
  .scroll-motion .hero-copy {
    --copy-lift: -3.2rem;
    transform: translate3d(0, calc(var(--hero-progress, 0) * var(--copy-lift) + var(--hero-exit, 0) * -2.5rem), 0)
      scale(calc(1 - var(--hero-progress, 0) * .075));
    transform-origin: left center;
    opacity: calc(1 - .38 * var(--hero-exit, 0));
  }
  .scroll-motion .hero-copy:has(:focus-visible) {opacity: 1}
  .scroll-motion .stage {
    --shift-x: calc(var(--hero-progress, 0) * -3.2vw);
    --shift-y: calc(var(--hero-progress, 0) * 3.35rem);
    transform: translate3d(var(--shift-x), var(--shift-y), 0)
      scale(calc(1 - var(--hero-exit, 0) * .095));
    opacity: calc(1 - var(--hero-exit, 0) * .35);
  }
  .scroll-motion .stage:not(.is-live) {
    transform: translate3d(var(--shift-x), var(--shift-y), 0)
      rotate(calc(var(--hero-progress, 0) * -19deg))
      scale(calc(1 + var(--hero-progress, 0) * .22 - var(--hero-exit, 0) * .095));
  }
  .scroll-motion .capabilities-copy .title-line {--line-delay: .03}
  .scroll-motion .capabilities-copy .title-line + .title-line {--line-delay: .11}
  .scroll-motion .capabilities-copy .title-line > * {
    --line-progress: clamp(0, calc((var(--item-entry, 1) - var(--line-delay)) * 1.85), 1);
    transform: translateY(calc((1 - var(--line-progress)) * 103%));
  }
  .scroll-motion [data-scroll-item] {
    --item-entry: var(--measured-entry, 1);
    --item-distance: calc(1 - var(--item-entry));
  }
  .scroll-motion .mcp-benefits li > * {
    transform: translate3d(0, calc(var(--item-distance) * 1.45rem), 0);
  }
  .scroll-motion .tool-row {--tool-travel: clamp(1.4rem, 3.2vw, 3.25rem)}
  .scroll-motion .tool-row::before {
    opacity: calc(.78 * var(--reading-focus, 0));
    transform: scaleX(calc(.62 + var(--reading-focus, 0) * .38));
    transform-origin: left;
  }
  .scroll-motion .tool-row dt {
    transform: translate3d(calc(-1 * var(--item-distance) * var(--tool-travel)), calc(var(--item-distance) * 1.45rem), 0);
  }
  .scroll-motion .tool-row dd {
    transform: translate3d(calc(var(--item-distance) * var(--tool-travel)), calc(var(--item-distance) * .85rem), 0);
  }
  .scroll-motion .tool-resource > * {
    transform: translate3d(0, calc(var(--item-distance) * 1.35rem), 0);
  }
  .scroll-motion .setup-copy {
    --setup-entry: clamp(0, calc(var(--section-entry, 1) * 1.9), 1);
    transform: translate3d(0, calc((1 - var(--setup-entry)) * 2.1rem), 0);
  }
  .scroll-motion .terminal {
    transform: translate3d(0, calc(var(--item-distance) * 5.6rem), 0)
      perspective(53rem) rotateX(calc(var(--item-distance) * -30deg));
    transform-origin: top center;
  }
  .scroll-motion .terminal-body::before {
    transform: scaleY(calc(.18 + var(--item-entry, 1) * .82));
  }
  .scroll-motion .command {
    transform: translate3d(0, calc(var(--item-distance) * 1rem), 0);
  }
  .scroll-motion .installation details > summary, .scroll-motion .endbar > a {
    transform: translate3d(0, calc(var(--item-distance) * .92rem), 0);
  }
  .scroll-motion [data-scroll-item]:has(:focus-visible) {--item-entry: 1}
  .scroll-motion .setup-copy:has(:focus-visible) {--setup-entry: 1}
@media (prefers-reduced-motion: no-preference) {
  .tabs button, .button, .nav-cta {transition: color .16s ease, background-color .16s ease, border-color .16s ease}
  nav.open {animation: reveal-copy .22s ease-out both}
  .installation details[open] > p {animation: reveal-copy .25s ease-out both}
  @keyframes reveal-copy {from {opacity: 0; transform: translateY(.48rem)} to {opacity: 1; transform: translateY(0)}}
  @keyframes reveal-art {from {opacity: 0} to {opacity: 1}}
}
@media (min-width: 901px) and (min-height: 730px) {
  .scroll-motion .hero-grid {position: sticky; top: 0}
  .scroll-motion .hero::after {content: ""; display: block; height: clamp(15rem, 40svh, 25rem)}
}
@media (max-width: 720px) {
  .scroll-motion .hero-copy {--copy-lift: -2rem}
  .scroll-motion .stage {--shift-y: calc(var(--hero-progress, 0) * 1.65rem)}
  .scroll-motion .tool-row dt {transform: translate3d(calc(var(--item-distance) * -.65rem), calc(var(--item-distance) * 1rem), 0)}
  .scroll-motion .tool-row dd {transform: translate3d(0, calc(var(--item-distance) * 1.15rem), 0)}
  .scroll-motion .terminal {
    transform: translate3d(0, calc(var(--item-distance) * 3.25rem), 0)
      perspective(48rem) rotateX(calc(var(--item-distance) * -22deg));
  }
}
/* Fade up from the page background after the film starts. */
html.opening-live {overflow: hidden}
#opening {
  position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  overflow: hidden; border: 0; border-radius: 0; box-shadow: none;
  background: var(--background); color: var(--text); opacity: var(--curtain, 1);
}
#opening::backdrop {background: transparent}
#opening:not([open]) {display: none}
#opening-screen, #opening-screen canvas, #opening-screen video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
}
#opening-screen {opacity: var(--shot-opacity, 0)}
#opening-screen video {object-fit: contain}
.opening-title {
  pointer-events: none; position: absolute; top: 51%; left: 12%;
  transform: translateY(calc(-50% + var(--title-shift, 16px)));
  opacity: var(--title-opacity, 0); color: var(--text);
}
.opening-title span {display: block; clip-path: inset(-15% var(--title-cut, 100%) -20% -10%); font: 700 clamp(4.75rem, 9.6vw, 10.75rem)/.86 var(--display-font); letter-spacing: -.018em; text-transform: uppercase}
.opening-title small {
  display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0 0 .3rem;
  color: var(--accent); font: 500 .84rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase;
}
.opening-title small::before {content: ""; width: 1.8rem; height: 1px; background: currentColor}
@media (max-aspect-ratio: 1/1) {
  .opening-title {top: 68%; left: 0; width: 100%; text-align: center}
  .opening-title span {font-size: clamp(4.5rem, 17vw, 8.2rem)}
  .opening-title small {justify-content: center; margin: .9rem 0 0}
  .opening-title small::before {display: none}
}
#opening.still {opacity: 1}
#opening.still .opening-title span {clip-path: none}
#opening.still .opening-title {opacity: 1; transform: translateY(-50%)}
#opening.still #opening-screen {opacity: 1; background: var(--background) url("assets/link-study.webp") no-repeat 82% 50% / auto 70%}
@media (max-aspect-ratio: 1/1) {
  #opening.still #opening-screen {background-position: center 23%; background-size: min(95%, 63vh) auto}
}
/* Keep the current encoded shot playing through a device rotation. */
@media (max-aspect-ratio: 1/1) {
  #opening-screen video[data-framing="wide"] {object-fit: contain; object-position: center 35%; background: var(--background)}
}
@media (min-aspect-ratio: 1/1) {
  #opening-screen video[data-framing="portrait"] {object-fit: contain; object-position: 76% center; background: var(--background)}
}

#opening[open] {z-index: 1000}
/* Keep the shot visible from the first paint through GPU or video startup. */
#opening.preparing, #opening.poster-film #opening-screen {
  background: var(--background) url("assets/link-study.webp") no-repeat 78% 48% / auto 78%;
}
#opening.poster-film #opening-screen {
  opacity: 1;
  transform: scale(var(--poster-scale, 1.36)) rotate(var(--poster-angle, 7deg));
}
@media (max-aspect-ratio: 1/1) {
  #opening.preparing, #opening.poster-film #opening-screen {
    background-position: center 27%; background-size: min(102%, 67vh) auto;
  }
}
