:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #4d4d4d;
  --line: #d8d8d8;
  --line-strong: #bdbdbd;
  --surface: #fafafa;
  --link: #111111;
  --maxw: 864px;
  --stripe-w: min(calc(var(--maxw) + 4.8rem), calc(100vw - 0.8rem));
  --header-h: 51.2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ededed;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.58;
  position: relative;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--stripe-w);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.95) 0 22%, rgba(252, 252, 252, 0.9) 22% 52%, rgba(248, 248, 248, 0.65) 52% 74%, rgba(255, 255, 255, 0) 74%),
    repeating-linear-gradient(135deg, rgba(238, 238, 238, 0.45) 0 1px, rgba(255, 255, 255, 0.22) 1px 10px),
    linear-gradient(180deg, #ffffff 0%, #fcfcfc 52%, #ffffff 100%);
  box-shadow: 0 0 0 0.8px rgba(220, 220, 220, 0.65);
  z-index: 0;
}

.ambient {
  position: fixed;
  top: 0;
  height: 100vh;
  width: max(72px, calc((100vw - var(--stripe-w)) / 2));
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(180deg, rgba(236, 236, 236, 0.78), rgba(229, 229, 229, 0.55));
}

.ambient-left {
  left: 0;
}

.ambient-right {
  right: 0;
}

.ambient::before,
.ambient::after {
  display: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0.8px solid var(--line);
}

a {
  color: var(--link);
}

.container {
  width: min(var(--maxw), calc(100% - 1.6rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  border-bottom: 0.8px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 14px rgba(30, 30, 30, 0.08);
}

main,
.site-footer {
  position: relative;
  z-index: 3;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51.2px;
  gap: 0.8rem;
}

.brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.688rem;
  padding: 0.176rem 0.32rem;
  border: 0.8px solid transparent;
}

.site-nav a:hover {
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 0.68rem;
  border: 0.8px solid var(--line-strong);
  background: #fff;
  padding: 0.24rem 0.48rem;
}

.hero {
  padding: 1.76rem 0 1.28rem;
  border-bottom: 0.8px solid var(--line);
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.576rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  margin: 0;
  line-height: 1.25;
}

h1 {
  margin-top: 0.4rem;
  font-size: clamp(1.44rem, 3.4vw, 2rem);
}

h2 {
  font-size: clamp(1.08rem, 2.4vw, 1.4rem);
  margin-bottom: 0.44rem;
}

h3 {
  font-size: 0.816rem;
}

.lead {
  margin: 0.52rem 0 0.4rem;
  color: var(--muted);
}

.hero-framework {
  margin: 0.2rem 0 0.56rem;
  max-width: 72ch;
  color: #1d1d1d;
}

.formula {
  margin: 0.28rem 0 0.36rem;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.752rem;
  background: #f6f6f6;
  border: 0.8px solid var(--line);
  display: inline-block;
  padding: 0.24rem 0.4rem;
}

.formula-secondary {
  display: block;
  margin-top: 0.16rem;
  margin-bottom: 0.2rem;
  background: #f9f9f9;
}

.intro-note {
  margin-top: 0.56rem;
}

.section {
  padding: 1.44rem 0;
  border-bottom: 0.8px solid var(--line);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.download-folders {
  padding: 1.44rem 0;
  border-bottom: 0.8px solid var(--line);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.64rem;
  margin-top: 0.64rem;
}

.folder-card {
  border: 0.8px solid var(--line);
  background: var(--surface);
  padding: 0.64rem;
}

.folder-card h3 {
  margin-bottom: 0.28rem;
}

.folder-card p {
  margin: 0 0 0.36rem;
  color: var(--muted);
}

.tool-preview {
  margin: 0.72rem 0 0.64rem;
}

.tool-frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0.8px solid var(--line);
  border-radius: 18px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tool-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 980px;
  height: 1180px;
  max-width: none;
  border: 0;
  background: #020617;
  transform-origin: top left;
}

.tool-preview .table-caption,
.tool-preview .inline-download {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  border: 0.8px solid var(--line);
  margin: 0.6rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 552px;
}

th,
td {
  border-bottom: 0.8px solid var(--line);
  border-right: 0.8px solid var(--line);
  padding: 0.416rem 0.44rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.704rem;
}

th:last-child,
td:last-child {
  border-right: none;
}

th {
  background: #f4f4f4;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: none;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.664rem;
  background: #f8f8f8;
  border: 0.8px solid #ececec;
  padding: 0.096rem 0.192rem;
}

.media {
  margin: 0.6rem 0 0.24rem;
}

figcaption {
  margin-top: 0.256rem;
  color: var(--muted);
  font-size: 0.664rem;
}

.inline-download {
  margin: 0.32rem 0 0;
}

.note {
  margin-top: 0.36rem;
  color: var(--muted);
  font-style: italic;
}

.ongoing {
  font-weight: 500;
}

.references ul,
#embodiments ul {
  margin: 0.36rem 0;
  padding-left: 0.96rem;
}

.references li,
#embodiments li {
  margin: 0.224rem 0;
}

.site-footer {
  padding: 0.8rem;
  text-align: center;
  border-top: 0.8px solid var(--line);
}

.site-footer p {
  margin: 0.176rem 0;
  font-size: 0.672rem;
}

.patent {
  font-weight: 600;
}

@media (max-width: 784px) {
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 608px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 51.2px;
    left: 0.8rem;
    right: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 0.8px solid var(--line);
    padding: 0.48rem;
    gap: 0.36rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .tool-frame iframe {
    height: 1180px;
  }

  .tool-frame {
    width: 100%;
  }

  body {
    font-size: 11.2px;
  }
}

.novelty-block {
  margin-top: 0.68rem;
  border: 0.8px solid var(--line);
  background: var(--surface);
  padding: 0.56rem 0.64rem;
}

.table-caption {
  margin: 0 0 0.36rem;
  font-size: 0.672rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.framework-novelty {
  margin: 0;
  padding-left: 0.88rem;
}

.framework-novelty li {
  margin: 0.272rem 0;
}
.permission-note {
  border-top: 0.8px solid var(--line);
  padding-top: 0.44rem;
  margin-top: 0.48rem;
  font-size: 0.672rem;
}

.contact-note {
  font-size: 0.664rem;
}

.dust {
  position: absolute;
  left: var(--x);
  bottom: -8vh;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  opacity: var(--alpha);
  filter: blur(var(--blur));
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.97) 0%, rgba(204, 204, 204, 0.78) 58%, rgba(190, 190, 190, 0) 100%);
  animation: dustFloat var(--dur) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

@keyframes dustFloat {
  0% {
    transform: translate3d(0, 9vh, 0);
    opacity: calc(var(--alpha) * 0.7);
  }
  15% {
    transform: translate3d(calc(var(--wind) * 0.3), -12vh, 0);
    opacity: var(--alpha);
  }
  35% {
    transform: translate3d(calc(var(--wind) * -0.22), -38vh, 0);
    opacity: calc(var(--alpha) * 0.95);
  }
  58% {
    transform: translate3d(calc(var(--wind) * 0.55), -64vh, 0);
    opacity: calc(var(--alpha) * 0.92);
  }
  78% {
    transform: translate3d(calc(var(--wind) * -0.08), -95vh, 0);
    opacity: calc(var(--alpha) * 0.8);
  }
  92% {
    transform: translate3d(calc(var(--wind) * 0.62), -114vh, 0);
    opacity: calc(var(--alpha) * 0.55);
  }
  100% {
    transform: translate3d(calc(var(--wind) * 0.88), -134vh, 0);
    opacity: 0;
  }
}

.site-nav a.is-active {
  border-color: #8e8e8e;
  background: #f3f3f3;
}
