:root {
  --paper: #eef3f1;
  --paper-bright: #f8fbfa;
  --ink: #12191c;
  --muted: #536269;
  --line: #b9c8c3;
  --local: #057568;
  --local-pale: #c7eee6;
  --zotero: #b9473e;
  --obsidian: #7257c7;
  --terminal: #11191b;
  --display: "Aptos Display", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Aptos", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 30px 80px rgb(18 25 28 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(18 25 28 / 3%) 1px, transparent 1px) 50% 0 / min(8vw, 112px) 100%,
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--paper-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgb(238 243 241 / 88%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.1;
}

.brand .alpha {
  margin-left: 1px;
  padding: 2px 5px 1px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a,
.github-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  position: relative;
  color: var(--muted);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 150ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.github-link svg {
  width: 18px;
  fill: currentColor;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.toggle-track {
  position: relative;
  width: 28px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 20px;
}

.toggle-track span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 180ms ease;
}

html[data-language="ko"] .toggle-track span {
  transform: translateX(13px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(540px, 1.16fr) minmax(340px, .84fr);
  gap: clamp(36px, 5vw, 90px);
  max-width: 1540px;
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 132px) clamp(22px, 5vw, 88px) clamp(62px, 7vw, 110px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--local);
  box-shadow: 0 0 0 1px var(--local);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(50px, 5.7vw, 88px);
  font-weight: 800;
  letter-spacing: -.068em;
  line-height: .94;
}

.hero-lede {
  max-width: 600px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.button-primary {
  color: var(--paper-bright);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--local);
}

.button-quiet {
  min-height: auto;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 42px 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  list-style: none;
  text-transform: uppercase;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-list li span:first-child {
  color: var(--local);
  font-size: 7px;
}

.pipeline-stage {
  position: relative;
  min-width: 0;
  border: 1px solid #899a95;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(18 25 28 / 4%) 40px),
    var(--paper-bright);
  box-shadow: var(--shadow);
}

.pipeline-stage::before,
.pipeline-stage::after {
  position: absolute;
  z-index: -1;
  width: 56px;
  height: 56px;
  border-color: var(--ink);
  content: "";
}

.pipeline-stage::before {
  top: -14px;
  left: -14px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.pipeline-stage::after {
  right: -14px;
  bottom: -14px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.stage-topbar {
  display: flex;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
}

.stage-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--local);
}

.stage-state span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgb(5 117 104 / 14%);
}

.landing-demo-stage {
  display: grid;
  height: clamp(610px, 68vh, 720px);
  min-height: 610px;
  grid-template-rows: 43px auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.landing-demo-meta {
  display: flex;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(248 251 250 / 94%);
}

.landing-demo-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.landing-demo-badge {
  padding: 5px 7px 4px;
  border: 1px solid var(--local);
  color: var(--local);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
}

.landing-demo-meta strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(17px, 1.45vw, 22px);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.landing-demo-meta code {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-demo-open {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.landing-demo-open:hover,
.landing-demo-open:focus-visible {
  color: white;
  background: var(--local);
}

.landing-demo-frame {
  min-width: 0;
  min-height: 0;
  background: #e7edeb;
}

.landing-demo-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e7edeb;
}

.landing-demo-stage .stage-steps {
  background: var(--paper-bright);
}

.stage-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stage-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 9px;
  min-width: 0;
  padding: 14px 13px;
  border-right: 1px solid var(--line);
}

.stage-steps li:last-child {
  border-right: 0;
}

.stage-steps span {
  grid-row: 1 / 3;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.stage-steps strong {
  font-size: 10px;
  line-height: 1.2;
}

.stage-steps small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-steps .is-active {
  background: var(--local-pale);
}

.stage-steps .is-active span,
.stage-steps .is-active strong {
  color: #045e54;
}

.statement {
  padding: clamp(58px, 7vw, 104px) 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.statement p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 3.2vw, 50px);
  font-weight: 400;
  letter-spacing: -.04em;
}

.statement strong {
  font-weight: 800;
}

.section-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(92px, 10vw, 160px) clamp(22px, 5vw, 88px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(270px, .8fr);
  gap: 30px clamp(40px, 8vw, 130px);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 92px);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -7px;
}

.section-heading h2,
.output-heading h3,
.install-intro h2,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .98;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.outcome-grid article {
  position: relative;
  min-height: 330px;
  padding: 31px 24px 35px;
  border-right: 1px solid var(--line);
}

.outcome-grid article:last-child {
  border-right: 0;
}

.outcome-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  margin-bottom: 84px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.outcome-icon.source { color: var(--zotero); }
.outcome-icon.note { color: var(--obsidian); }
.outcome-icon.link { color: var(--local); }
.outcome-icon.search { color: var(--ink); font-size: 25px; }

.outcome-grid h3,
.principle-list h3 {
  margin: 0 0 11px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.outcome-grid p,
.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.real-output {
  margin-top: clamp(86px, 9vw, 142px);
  padding-top: clamp(66px, 7vw, 104px);
  border-top: 1px solid var(--ink);
}

.output-heading {
  margin-bottom: clamp(45px, 6vw, 72px);
}

.case-study-promo {
  display: grid;
  grid-template-columns: minmax(150px, .36fr) minmax(270px, 1.15fr) minmax(240px, .85fr) auto;
  gap: 18px 28px;
  align-items: center;
  min-height: 104px;
  padding: 21px 23px;
  border: 1px solid var(--ink);
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgb(5 117 104 / 12%) 0 8px, transparent 8px),
    var(--paper-bright);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.case-study-promo:hover {
  background:
    linear-gradient(90deg, var(--local) 0 8px, transparent 8px),
    white;
  transform: translateY(-3px);
}

.case-study-promo-label,
.case-study-promo-body,
.case-study-promo-action {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-study-promo-label {
  color: var(--local);
  font-weight: 800;
}

.case-study-promo strong {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.case-study-promo-body {
  color: var(--muted);
  line-height: 1.55;
}

.case-study-promo-action {
  justify-self: end;
  font-weight: 800;
  white-space: nowrap;
}

.real-run-bar {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 16px;
  color: white;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.real-run-bar p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin: 0;
}

.real-run-bar strong {
  color: #7be2cf;
}

.real-run-bar a {
  flex: 0 0 auto;
  text-underline-offset: 4px;
}

.run-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7be2cf;
  box-shadow: 0 0 0 4px rgb(123 226 207 / 15%);
}

.output-specimen {
  display: grid;
  grid-template-areas:
    "source note ledger"
    "caption caption caption";
  grid-template-columns: minmax(220px, .72fr) minmax(460px, 1.55fr) minmax(190px, .58fr);
  margin: 0;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--paper-bright);
  box-shadow: 12px 14px 0 rgb(5 117 104 / 13%);
}

.output-specimen > * {
  min-width: 0;
}

.sample-source {
  grid-area: source;
  border-right: 1px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 33px, rgb(185 71 62 / 5%) 34px),
    #fffafa;
}

.sample-source > header,
.sample-note-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  color: white;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sample-source > header {
  background: var(--zotero);
}

.sample-source-body {
  padding: clamp(23px, 3vw, 39px) clamp(18px, 2.4vw, 30px) 31px;
}

.sample-pdf {
  position: relative;
  width: 84px;
  height: 108px;
  margin: 0 0 38px 5px;
  padding: 12px;
  border: 2px solid var(--zotero);
  color: var(--zotero);
  background: white;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-2deg);
  box-shadow: 8px 9px 0 rgb(185 71 62 / 12%);
}

.sample-pdf::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid var(--zotero);
  border-left: 2px solid var(--zotero);
  background: #fffafa;
  content: "";
}

.sample-pdf i {
  position: absolute;
  right: 12px;
  left: 12px;
  height: 1px;
  background: var(--zotero);
}

.sample-pdf i:nth-child(2) { top: 54px; }
.sample-pdf i:nth-child(3) { top: 64px; }
.sample-pdf i:nth-child(4) { top: 74px; }
.sample-pdf i:nth-child(5) { top: 84px; width: 34px; }

.sample-kicker,
.ledger-title,
.output-tree > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sample-kicker {
  color: var(--zotero);
}

.sample-source h3 {
  margin: 13px 0 10px;
  font-family: var(--display);
  font-size: clamp(21px, 2.2vw, 31px);
  letter-spacing: -.045em;
  line-height: 1.04;
}

.sample-source-body > p:not(.sample-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sample-source ul {
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid #d8aaa5;
  list-style: none;
}

.sample-source li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #e6c7c4;
  color: #663832;
  font-family: var(--mono);
  font-size: 8px;
}

.sample-source li strong {
  color: var(--zotero);
  font-size: 10px;
}

.sample-note {
  grid-area: note;
  background: white;
}

.sample-note-bar {
  background: var(--obsidian);
}

.sample-note-path {
  overflow: hidden;
  margin: 0;
  padding: 9px 15px;
  border-bottom: 1px solid #d9d2ed;
  color: #5d4a9d;
  background: #f1eef9;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-note-body {
  padding: clamp(22px, 3vw, 39px);
}

.sample-frontmatter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 27px;
}

.sample-frontmatter span {
  padding: 5px 7px;
  color: #4f3b90;
  background: #eeebf8;
  font-family: var(--mono);
  font-size: 8px;
}

.sample-note-body > h3 {
  max-width: 740px;
  margin: 0 0 25px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -.045em;
  line-height: 1.03;
}

.sample-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin-bottom: 25px;
  padding: 12px 14px;
  border-left: 3px solid var(--obsidian);
  color: #44376f;
  background: #f3f0fa;
  font-size: 10px;
}

.sample-callout strong {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.sample-note-section {
  padding: 21px 0;
  border-top: 1px solid #ddd8eb;
}

.sample-note-section > p {
  margin: 0;
  color: #31383c;
  font-size: 12px;
  line-height: 1.65;
}

.sample-note-section .sample-heading {
  margin-bottom: 9px;
  color: var(--obsidian);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.sample-evidence {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(160px, .7fr);
  gap: 17px;
  align-items: start;
}

.sample-evidence img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #bdb4da;
  background: #f1eef9;
}

.sample-evidence > div > p:not(.sample-heading) {
  margin: 0;
  color: #31383c;
  font-size: 11px;
  line-height: 1.55;
}

.sample-evidence .figure-credit {
  margin-top: 12px;
  color: var(--muted);
  font-size: 8px;
}

.figure-credit a {
  text-underline-offset: 2px;
}

.sample-wikilinks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sample-wikilinks span {
  padding: 4px 6px;
  color: #4c3994;
  background: #ebe7f7;
  font-family: var(--mono);
  font-size: 8px;
}

.sample-my-notes {
  margin-top: 2px;
  padding: 17px 15px;
  border: 1px dashed var(--obsidian);
  background: #fbfaff;
}

.sample-my-notes > p:last-child {
  color: var(--muted);
  font-style: italic;
}

.sample-ledger {
  grid-area: ledger;
  padding: 25px 20px;
  border-left: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgb(5 117 104 / 5%) 1px, transparent 1px) 0 0 / 23px 100%,
    #dfede9;
}

.ledger-title {
  color: var(--local);
}

.sample-ledger dl {
  margin: 24px 0 37px;
}

.sample-ledger dl div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid #96bdb4;
}

.sample-ledger dl div:last-child {
  border-bottom: 1px solid #96bdb4;
}

.sample-ledger dt {
  color: #045e54;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.sample-ledger dd {
  margin: 0;
  color: #315b55;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.output-tree {
  padding: 13px;
  border: 1px solid #76a79d;
  background: rgb(255 255 255 / 58%);
}

.output-tree > p {
  margin-bottom: 13px;
  color: #315b55;
}

.output-tree pre {
  overflow: auto;
  margin: 0;
  color: #294b46;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.75;
  white-space: pre;
}

.output-specimen > figcaption {
  grid-area: caption;
  padding: 14px 16px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
}

.raw-sample {
  margin-top: 25px;
  border: 1px solid var(--ink);
  background: var(--terminal);
  color: #d9e6e2;
}

.raw-sample summary {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 17px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  list-style: none;
}

.raw-sample summary::-webkit-details-marker {
  display: none;
}

.raw-sample summary span:last-child {
  color: #7be2cf;
  font-size: 20px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.raw-sample[open] summary span:last-child {
  transform: rotate(45deg);
}

.raw-sample pre {
  overflow: auto;
  max-height: 390px;
  margin: 0;
  padding: 20px;
  border-top: 1px solid #344247;
  color: #bceadf;
  background: #0d1416;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre;
}

.install {
  max-width: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-bright);
}

.install-intro,
.install-layout {
  max-width: 1364px;
  margin-right: auto;
  margin-left: auto;
}

.install-intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 72px;
}

.install-intro .eyebrow {
  margin-bottom: 23px;
}

.install-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(540px, 1.28fr);
  gap: clamp(45px, 7vw, 108px);
  align-items: start;
}

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

.setup-checklist li {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 18px;
  padding: 0 0 31px;
}

.setup-checklist li:not(:last-child) > div {
  padding-bottom: 31px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.setup-checklist h3 {
  margin: 4px 0 7px;
  font-size: 16px;
}

.setup-checklist p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 12px;
}

.resource-links a {
  color: var(--local);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.terminal-panel {
  min-width: 0;
  border: 1px solid var(--terminal);
  color: #d9e5e1;
  background: var(--terminal);
  box-shadow: 14px 16px 0 var(--local-pale);
}

.zip-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--local);
  font-size: 11px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.terminal-tabs {
  display: flex;
  gap: 5px;
  padding: 0 17px;
  border-bottom: 1px solid #344247;
  background: var(--paper-bright);
}

.terminal-tabs button {
  margin-bottom: -1px;
  padding: 13px 10px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.terminal-tabs button[aria-selected="true"] {
  border-bottom-color: var(--local);
  color: var(--ink);
}

.terminal-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid #344247;
}

.terminal-title > span {
  display: flex;
  gap: 5px;
}

.terminal-title > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #445257;
}

.terminal-title small {
  color: #839397;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}

.copy-button {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #445257;
  color: #aebbb8;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
}

.copy-button:hover {
  color: white;
  border-color: #8da09a;
}

.copy-button svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.code-panel {
  min-height: 300px;
  margin: 0;
  padding: 28px clamp(18px, 3vw, 32px);
  overflow: auto;
  color: #d9e5e1;
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.85;
  white-space: pre;
}

.prompt {
  color: #5fd8c2;
  font-weight: 800;
}

.terminal-result {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid #344247;
  background: #172326;
}

.terminal-result .check {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #5fd8c2;
  border-radius: 50%;
  color: #5fd8c2;
  font-size: 12px;
}

.terminal-result p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.terminal-result strong {
  font-size: 11px;
}

.terminal-result small {
  color: #879894;
  font-size: 9px;
}

.terminal-guide {
  display: flex;
  justify-content: space-between;
  padding: 15px 22px;
  color: var(--terminal);
  background: var(--local-pale);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.terminal-guide:hover {
  background: #a7e3d7;
}

.section-heading.compact {
  grid-template-columns: minmax(280px, 1fr);
  max-width: 900px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.principle-list article {
  min-height: 290px;
  padding: 27px 28px;
  border-right: 1px solid var(--line);
}

.principle-list article:last-child {
  border-right: 0;
}

.principle-index {
  display: block;
  margin-bottom: 96px;
  color: var(--local);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.closing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
  padding: clamp(76px, 9vw, 140px) clamp(22px, 6vw, 100px);
  color: white;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 52px 52px,
    var(--ink);
}

.closing .eyebrow {
  color: #7be2cf;
}

.closing h2 {
  max-width: 840px;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 19px;
}

.closing-actions > a:last-child {
  color: #aebbb8;
  font-size: 11px;
  text-align: center;
  text-underline-offset: 4px;
}

.button-inverse {
  min-width: 220px;
  border-color: white;
  color: var(--ink);
  background: white;
}

.button-inverse:hover {
  color: white;
  background: var(--local);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 110px;
  padding: 24px clamp(22px, 4vw, 68px);
  border-top: 1px solid #344247;
  color: #9caaa7;
  background: var(--ink);
  font-size: 10px;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

footer a {
  text-underline-offset: 3px;
}

.footer-brand {
  color: white;
}

html[data-language="ko"] body {
  word-break: keep-all;
}

html[data-language="ko"] h1 {
  letter-spacing: -.075em;
}

@media (max-width: 1120px) {
  .case-study-promo {
    grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr) auto;
  }

  .case-study-promo-body {
    grid-column: 2;
  }

  .case-study-promo-action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: 66px 42px;
    min-height: 108px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    align-self: stretch;
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 820px;
  }

  .pipeline-stage {
    width: min(100%, 820px);
  }

  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcome-grid article:nth-child(2) {
    border-right: 0;
  }

  .outcome-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .output-specimen {
    grid-template-areas:
      "source note"
      "ledger ledger"
      "caption caption";
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.55fr);
  }

  .sample-ledger {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .sample-ledger dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sample-ledger dl div {
    display: block;
    padding-right: 12px;
    border-right: 1px solid #96bdb4;
  }

  .sample-ledger dl div:last-child {
    border-right: 0;
  }

  .install-layout {
    grid-template-columns: 1fr;
  }

  .setup-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 36px;
  }

  .principle-list article {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 72px 100%;
  }

  .site-header {
    grid-template-rows: 60px 40px;
    min-height: 100px;
    padding: 0 17px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .brand .alpha,
  .github-link span {
    display: none;
  }

  .header-actions {
    gap: 14px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 64px 18px 74px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

  .hero-lede {
    font-size: 18px;
  }

  .trust-list {
    gap: 8px 14px;
    margin-bottom: 60px;
  }

  .pipeline-stage::before,
  .pipeline-stage::after {
    display: none;
  }

  .stage-steps {
    grid-template-columns: 1fr;
  }

  .stage-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-steps li:last-child {
    border-bottom: 0;
  }

  .stage-steps small {
    white-space: normal;
  }

  .landing-demo-stage {
    height: 560px;
    min-height: 560px;
  }

  .landing-demo-meta {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .landing-demo-identity {
    align-items: start;
  }

  .landing-demo-meta strong {
    font-size: 16px;
  }

  .landing-demo-open {
    min-height: 34px;
    justify-self: start;
  }

  .landing-demo-stage .stage-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-demo-stage .stage-steps li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .landing-demo-stage .stage-steps li:last-child {
    border-right: 0;
  }

  .landing-demo-stage .stage-steps span {
    grid-row: auto;
  }

  .landing-demo-stage .stage-steps small {
    display: none;
  }

  .statement {
    text-align: left;
  }

  .real-output {
    margin-top: 76px;
    padding-top: 62px;
  }

  .case-study-promo {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 22px 19px 24px;
    border-bottom: 1px solid var(--ink);
    background:
      linear-gradient(180deg, var(--local) 0 7px, transparent 7px),
      var(--paper-bright);
  }

  .case-study-promo:hover {
    background:
      linear-gradient(180deg, var(--local) 0 7px, transparent 7px),
      white;
  }

  .case-study-promo-body,
  .case-study-promo-action {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .case-study-promo-action {
    margin-top: 8px;
    white-space: normal;
  }

  .real-run-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 13px 14px;
  }

  .output-specimen {
    grid-template-areas:
      "source"
      "note"
      "ledger"
      "caption";
    grid-template-columns: minmax(0, 1fr);
    box-shadow: 7px 9px 0 rgb(5 117 104 / 13%);
  }

  .sample-source {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .sample-source-body {
    padding: 26px 20px 28px;
  }

  .sample-source h3 {
    font-size: 28px;
  }

  .sample-note-path {
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .sample-note-body {
    padding: 24px 18px;
  }

  .sample-note-body > h3 {
    font-size: 29px;
  }

  .sample-callout,
  .sample-evidence {
    grid-template-columns: 1fr;
  }

  .sample-ledger {
    padding: 25px 18px;
  }

  .sample-ledger dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-ledger dl div:nth-child(even) {
    padding-left: 12px;
    border-right: 0;
  }

  .raw-sample pre {
    padding: 17px 14px;
    font-size: 9px;
  }

  .section-shell {
    padding: 80px 18px;
  }

  .section-heading,
  .install-intro {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 48px;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .section-heading h2,
  .output-heading h3,
  .install-intro h2,
  .closing h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .outcome-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .outcome-grid article,
  .outcome-grid article:nth-child(2),
  .principle-list article {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .outcome-grid article:last-child,
  .principle-list article:last-child {
    border-bottom: 0;
  }

  .outcome-icon,
  .principle-index {
    margin-bottom: 54px;
  }

  .install-intro {
    gap: 28px;
    margin-bottom: 54px;
  }

  .setup-checklist {
    display: block;
  }

  .terminal-panel {
    margin-right: 6px;
    box-shadow: 7px 9px 0 var(--local-pale);
  }

  .terminal-title {
    grid-template-columns: 1fr auto;
  }

  .terminal-title small {
    display: none;
  }

  .code-panel {
    min-height: 260px;
    font-size: 10px;
  }

  .closing {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 80px 18px;
  }

  .closing-actions {
    align-items: stretch;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 44px 18px;
    text-align: left;
  }

  footer p {
    text-align: left;
  }

  footer > div {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
