:root {
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.35 var(--grotesk);
  color-scheme: light;
  --frame: min(100% - 96px, 1240px);
  --display: clamp(4.5rem, 10.42vw, 9.375rem);
  --section: clamp(2.6rem, 4.45vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.skip-link { position: absolute; z-index: 4; left: 0; padding: .5rem; border: 0; color: var(--ink); transform: translateY(-110%); background: var(--paper); }
.skip-link:focus { transform: none; }
.landing-nav {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
}
.landing-links, .landing-actions { display: flex; gap: 5px; }
.landing-actions { justify-self: end; }
.landing-nav a, .landing-nav summary { display: inline-flex; align-items: center; padding: 0 6px; min-height: 36px; background: var(--paper); text-decoration: none; white-space: nowrap; }
.landing-brand { justify-self: start; }
.landing-nav a:hover, .landing-nav summary:hover { background: var(--pink); color: var(--ink); }
.landing-nav .nav-primary, .landing-nav summary { background: var(--ink); color: var(--paper); }
.landing-nav .mobile-docs, .mobile-menu, .landing-brand .landing-mark { display: none; }
.landing-mark { display: inline-flex; align-items: center; gap: .13em; color: currentColor; }
.landing-mark i { width: .12em; height: .53em; border-radius: 1rem; background: currentColor; transform: rotate(25deg); }
.landing-mark i:nth-child(2) { height: .74em; }
.landing-mark i:nth-child(3) { height: .39em; }

.intro-loader {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease-in-out, visibility .5s allow-discrete;
}
.intro-active { overflow: hidden; }
.intro-active .intro-loader { opacity: 1; visibility: visible; pointer-events: auto; }
.intro-active .hero > * { visibility: hidden; }
.intro-window { width: 245px; border: 1px solid var(--ink); box-shadow: 2px 2px #1e1e1e66; background: #e5e5e5; font: 500 1rem/1 var(--terminal); }
.intro-window .window-bar { padding: 3px 8px; }
.intro-window-body { padding: 8px; }
.intro-window-body > p:first-child { margin-bottom: 2px; }
.intro-window-body > p:nth-child(2) { margin-bottom: 8px; }
.intro-meter { position: relative; display: flex; align-items: center; height: 20px; padding-left: 4px; overflow: hidden; border: 1px solid var(--ink); }
.intro-fill { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: var(--ink); transition: width 50ms linear; }
.intro-value { position: relative; color: var(--paper); mix-blend-mode: difference; }

.hero { position: relative; isolation: isolate; min-height: 1462px; padding: 90px 20px 240px; text-align: center; }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(33vw, 490px);
  background: url("/assets/clouds.png") center top -100px / 100% auto no-repeat;
  mask-image: linear-gradient(#000 14%, #000 29%, transparent 86%);
  content: "";
}
.window { border: 1px solid var(--ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px #bababa; background: #ddd; font: 500 1rem/1.2 var(--terminal); }
.window-bar, .panel-caption { display: block; padding: .22rem .32rem; background: var(--ink); color: var(--paper); font: 500 1rem/1 var(--terminal); }
.announcement { display: block; width: min(100%, 364px); margin: 0 auto; color: var(--ink); text-align: left; text-decoration: none; font-size: 1.125rem; line-height: 1.1; }
.announcement .window-bar { font-size: 1.125rem; }
.announcement-body { display: grid; gap: 13px; padding: 11px 8px 13px; text-align: center; }
.announcement:hover .window-bar { color: var(--pink); }
.announcement u { text-underline-offset: .15em; }
.hero-intro { display: flex; align-items: baseline; justify-content: center; gap: .25em; margin: 68px auto 47px; font-size: 1.125rem; }
.hero-intro span { display: inline-block; width: 89px; border-bottom: 2px dotted currentColor; }
.hero h1, .display-title { font-size: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: .8; }
.hero h1 { width: min(100%, 1004px); margin: 0 auto; }
.headline-link { position: relative; display: block; color: inherit; text-decoration: none; }
.headline-link > span:not(.headline-cursor) { display: block; }
.headline-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  z-index: 1;
  gap: 2px;
  white-space: nowrap;
  color: var(--ink);
  font: 500 1.15rem/1 var(--grotesk);
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(calc(-50% + var(--cursor-x, 0px)), calc(-50% + var(--cursor-y, 0px)));
  transition: transform .4s cubic-bezier(.12, .23, .5, 1), opacity .4s, visibility .4s allow-discrete;
}
.headline-cursor span { padding: .36rem .45rem; background: #d45bb6; box-shadow: 1px 2px #1e1e1e66; }
@media (hover: hover) {
  .headline-link:hover .headline-cursor, .headline-link:focus-visible .headline-cursor { opacity: 1; visibility: visible; }
}
.hero-actions { display: flex; justify-content: center; gap: 80px; margin: 80px auto 0; }
.hero-actions a, .join > a { font-size: var(--section); font-weight: 500; letter-spacing: -.025em; line-height: .9; text-decoration-thickness: .055em; text-underline-offset: .16em; }
.hero-actions a:hover, .join > a:hover { color: #d45bb6; }

.pink-band { padding: 30px 0 140px; color: #3d3d3d; background: var(--pink); }
.frame { width: var(--frame); margin-inline: auto; }
.scene, .comparison-stage, .storage-stage, .diagram { position: relative; background: url("/assets/halftone.png") center / cover, var(--pink); }
.scene { isolation: isolate; min-height: 800px; overflow: clip; border: 1px solid var(--ink); color: var(--ink); }
.scene .panel-caption, .comparison-stage .panel-caption, .diagram .panel-caption { position: absolute; top: 0; left: 0; width: fit-content; }
.scene .window { position: absolute; }
.scene .window[data-draggable] { cursor: grab; touch-action: none; user-select: none; }
.scene .window.dragging { z-index: 2; cursor: grabbing; }
.scene .window.dragging a { cursor: grabbing; }
.window-body { padding: .65rem .6rem .75rem; }
.scene .window-body { display: grid; gap: .25rem; }
.scene .window-body > strong { font-size: 1.75rem; font-weight: 500; }
.scene-history { top: 13%; left: 11%; width: 16%; }
.scene-session { top: 7%; left: 38%; width: 22%; }
.scene-temporary { top: 18%; left: 56%; width: 16%; }
.scene-key { top: 6%; right: 3%; width: 19%; background: var(--pink); }
.scene-session .scene-session-body { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .6rem; }
.scene-session-body > div { display: grid; gap: .25rem; }
.scene-session-body strong { font-size: 1.75rem; font-weight: 500; }
.pixel-orbit { display: block; width: 3.55rem; height: auto; background: #ddd; }
.scene-control { right: 4%; bottom: 3%; width: 19%; background: var(--pink); }
.scene .scene-chat { top: 31%; left: 26%; width: 48%; min-height: 58%; background: var(--paper); }
.scene-chat::after { position: absolute; inset: auto 3px 3px; height: 14%; border-top: 1px solid #aaa; background: url("/assets/desktop-texture.png") center; content: ""; }
.window-body.flow-window { display: grid; align-content: start; gap: 0; padding: .45rem .6rem; }
.flow-window p { display: grid; gap: .35rem; padding: 1rem .25rem; border-bottom: 1px solid #b0b0b0; font-size: 1.15rem; }
.flow-window p strong { width: fit-content; padding: .15em .24em; background: var(--ink); color: var(--paper); font-weight: 500; }
.flow-window a { justify-self: start; margin: 1.3rem .25rem; text-underline-offset: .2em; }

.editorial, .comparison, .architecture, .storage-panel, .join { margin-top: 120px; }
.editorial .display-title { text-align: center; }
.editorial-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 74px; }
.editorial-columns > div { border-left: 1px solid #754553; padding: 0 12px; }
.editorial-columns h3 { margin-bottom: 2rem; font: 500 .9rem/1.2 var(--terminal); }
.editorial-columns p { font-size: 1.35rem; line-height: 1.2; }
.comparison-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5%; min-height: 670px; margin-top: 90px; padding: 100px 7.5% 85px; }
.comparison-stage .window { color: var(--ink); background: var(--paper); }
.comparison-stage .comparison-open { background: #d3d3d3; }
.comparison-stage .window-body p { padding: 1rem 0 2rem; }
.terminal-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin: 0; }
.terminal-table dt, .terminal-table dd { margin: 0; padding: .65rem .22rem; border-bottom: 1px solid #aaa; }
.terminal-table dd { text-align: right; }
.section-note { margin-top: .9rem; font: 500 .95rem/1.3 var(--terminal); }
.preview-link { padding: 0; margin-left: .9rem; border: 0; color: inherit; background: transparent; text-decoration: underline; cursor: pointer; }
.chat-preview { width: min(94vw, 695px); padding: 0; color: var(--ink); background: var(--paper); }
.chat-preview::backdrop { background: #1e1e1eb5; }
.chat-preview[open] { animation: preview-open .4s cubic-bezier(.12, .23, .5, 1) both; }
.chat-preview .window-bar { display: flex; align-items: center; justify-content: space-between; }
.chat-preview h2 { font: inherit; }
.chat-preview button { padding: 0 .4rem; border: 1px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; }
.preview-content { min-height: 300px; }
.preview-content.playing p:nth-child(2), .preview-content.playing > a { animation: terminal-reveal .4s steps(18, end) .95s both; }
.preview-content.playing > a { animation-delay: 1.35s; }
.sequence-active .terminal-table > *, .sequence-active .path-list li { animation: terminal-reveal .35s steps(18, end) both; }
.sequence-active .terminal-table > :nth-child(n+3), .sequence-active .path-list li:nth-child(2) { animation-delay: .14s; }
.sequence-active .path-list li:nth-child(3) { animation-delay: .28s; }

@keyframes preview-open {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes terminal-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.section-title { font-size: var(--section); font-weight: 500; letter-spacing: -.025em; line-height: .9; }
.architecture .section-title { width: min(100%, 1040px); margin-inline: auto; }
.architecture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 100px; }
.diagram { display: grid; min-height: 490px; align-items: center; padding: 80px 10%; background-image: url("/assets/desktop-texture.png"); background-blend-mode: multiply; }
.diagram .diagram-window { background: var(--paper); color: var(--ink); }
.path-list { list-style-position: inside; margin: 0; }
.path-list li { padding: .8rem 0; border-bottom: 1px solid #aaa; }
.storage-stage { display: grid; min-height: 540px; place-items: center; margin-top: 54px; padding: 50px 5%; }
.storage-window { width: min(100%, 695px); background: var(--paper); color: var(--ink); }
.storage-notes { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 25px; }
.storage-notes > div { display: grid; padding: .45rem 12px; border-left: 1px solid #754553; }
.storage-notes strong { font-size: var(--section); font-weight: 500; letter-spacing: -.025em; line-height: 1; }
.join { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; padding-block: 35px; border-block: 1px solid #754553; }
.join > a { margin-right: 5%; }

.reading-band { padding-bottom: 125px; background: var(--green); }
.reading-band > .panel-caption { width: fit-content; font-weight: 500; }
.reading-grid { display: grid; grid-template-columns: 2.45fr 1fr; gap: 50px; align-items: start; width: min(100% - 96px, 1140px); margin-top: 100px; }
.reading-art { display: block; border: 4px solid var(--ink); }
.reading-art img { display: block; width: 100%; height: auto; }
.reading-links { display: grid; gap: 60px; }
.reading-links a { display: grid; gap: .35rem; padding-left: 9px; border-left: 1px dashed var(--ink); text-decoration: none; }
.reading-links .window-bar { width: fit-content; font-size: .85rem; }
.reading-links strong { font-size: 1.8rem; font-weight: 500; letter-spacing: -.015em; line-height: .95; }
.reading-links a:hover strong { text-decoration: underline; }

.faq-band, .landing-footer { background: var(--ink); color: var(--paper); }
.faq-band { padding: 95px 0 140px; }
.faq-band .section-title { text-align: center; }
.faq-list { width: min(100%, 660px); margin-top: 67px; }
.faq-list details { margin-bottom: 24px; padding: .6rem .5rem .85rem; border-left: 1px dashed #9a9a9a; }
.faq-list details[open] { border-left-style: solid; }
.faq-list summary, .mobile-menu summary { list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; font: 500 .95rem/1.35 var(--terminal); }
.faq-list summary::after { display: grid; flex: 0 0 1.2rem; height: 1.2rem; place-items: center; border: 1px solid #b3b3b3; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-top: 2.4rem; font-size: 1.27rem; line-height: 1.2; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.12, .23, .5, 1), content-visibility .4s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}
.landing-footer { display: grid; min-height: 500px; align-items: center; padding: 24px max(16px, calc((100% - 1240px) / 2)); border-top: 1px solid #555; }
.footer-brand { display: inline-flex; align-items: center; gap: .2em; justify-self: center; font-size: clamp(4.2rem, 9.6vw, 9rem); font-weight: 500; letter-spacing: -.065em; line-height: .9; text-decoration: none; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-self: end; }

@media (max-width: 1000px) {
  .hero { min-height: auto; padding-bottom: 180px; }
  .scene { min-height: 630px; }
  .comparison-stage { min-height: 540px; }
  .diagram { min-height: 395px; }
}

@media (max-width: 700px) {
  :root { --frame: calc(100% - 24px); --display: clamp(3rem, 13.85vw, 4.6rem); --section: clamp(2rem, 7.18vw, 3.25rem); }
  .landing-nav { grid-template-columns: 1fr auto; }
  .landing-nav .landing-brand { justify-content: center; width: 36px; background: var(--ink); color: var(--paper); }
  .landing-brand .landing-mark { display: inline-flex; font-size: 1.65rem; }
  .landing-brand .brand-name, .landing-nav .landing-links, .landing-nav .desktop-help { display: none; }
  .landing-nav .mobile-docs, .mobile-menu { display: inline-flex; }
  .landing-nav .nav-primary { background: var(--paper); color: var(--ink); }
  .landing-nav .nav-primary:hover { background: var(--pink); }
  .mobile-menu nav { position: absolute; top: 40px; right: 0; display: grid; gap: 1px; min-width: 8rem; padding: 1px; background: var(--ink); }
  .hero { min-height: 750px; padding: 50px 10px 118px; }
  .hero::before { height: 115px; background-position: center top -34px; background-size: auto 175px; mask-image: linear-gradient(#000 26%, transparent 96%); }
  .announcement { width: min(100%, 304px); }
  .announcement-body { padding: 7px 7px 8px; }
  .hero-intro { display: block; max-width: 16rem; margin: 40px auto 22px; line-height: 1.13; }
  .hero-intro span { width: 1em; }
  .headline-link > span:not(.headline-cursor) { display: inline; }
  .headline-cursor { display: none; }
  .hero-actions { gap: clamp(1.35rem, 7vw, 3rem); margin-top: 36px; }
  .hero-actions a { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .pink-band { padding: 12px 0 60px; }
  .scene { min-height: 540px; }
  .scene-history { top: 9%; left: 5%; width: 43%; }
  .scene-session { top: 15%; left: 53%; width: 41%; }
  .scene-temporary { top: auto; bottom: 4%; left: 5%; width: 43%; }
  .scene .scene-chat { top: 37%; left: 7%; width: 86%; min-height: 0; }
  .scene-chat::after { display: none; }
  .scene-key { top: auto; bottom: 4%; right: 5%; width: 42%; }
  .scene-control { display: none; }
  .scene .window-body > strong { font-size: 1.35rem; }
  .scene-session-body strong { font-size: 1.2rem; }
  .pixel-orbit { width: 2.35rem; }
  .flow-window p { font-size: 1rem; padding: .55rem .1rem; }
  .flow-window a { margin: .55rem .15rem; }
  .editorial, .comparison, .architecture, .storage-panel, .join { margin-top: 65px; }
  .editorial-columns { grid-template-columns: 1fr; gap: 1rem; margin-top: 38px; }
  .editorial-columns h3 { margin-bottom: .6rem; }
  .editorial-columns p { font-size: 1.1rem; }
  .comparison-stage, .architecture-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 35px; }
  .comparison-stage { min-height: 0; padding: 45px 5% 30px; }
  .comparison-stage .window-body p { padding: .4rem 0 1rem; }
  .diagram { min-height: 255px; padding: 50px 7% 25px; }
  .storage-stage { min-height: 295px; margin-top: 30px; }
  .storage-notes { gap: .5rem; }
  .storage-notes strong { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .join { flex-direction: column; }
  .reading-band { padding-bottom: 65px; }
  .reading-grid { grid-template-columns: 1fr; width: var(--frame); gap: 28px; margin-top: 30px; }
  .reading-links { gap: 26px; }
  .faq-band { padding: 55px 0 70px; }
  .faq-list { margin-top: 32px; }
  .faq-list p { margin-top: 1.4rem; font-size: 1.08rem; }
  .landing-footer { min-height: 315px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader, .intro-fill, .headline-cursor, .faq-list details::details-content { transition: none; }
  .chat-preview[open], .preview-content.playing p:nth-child(2), .preview-content.playing > a,
  .sequence-active .terminal-table > *, .sequence-active .path-list li { animation: none; }
}
