/* Shared original presentation for the BeamSift website. */
:root {
  color-scheme: dark;
  --background: #021521;
  --surface: #061d2b;
  --surface-soft: #092535;
  --text: #f5f8fc;
  --muted: #b8c9d9;
  --quiet: #8298ab;
  --accent: #2bd6ef;
  --accent-bright: #71e9fa;
  --rule: #234252;
  --content: 1480px;
  --article: 860px;
  --type-wordmark: clamp(30px, 1.65vw, 34px);
  --type-ui: clamp(17px, .95vw, 19px);
  --type-meta: clamp(15px, .8vw, 16px);
  --type-body: clamp(18px, 1.05vw, 20px);
  --type-footer: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 78% 18%, rgba(11, 91, 122, 0.16), transparent 34rem), linear-gradient(145deg, #031722 0%, var(--background) 54%, #031925 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-bright);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 20;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-180%);
}

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

.header-inner,
.hero-inner,
.footer-inner {
  width: min(100% - 112px, var(--content));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(65, 116, 139, 0.48);
  background: rgba(2, 21, 33, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--type-wordmark);
  font-weight: 650;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.mobile-home-link {
  display: none;
}

nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-ui);
}

.site-header nav > a:not(.demo-link) {
  color: #d6e0e9;
}

.site-header nav > a[aria-current=page] {
  color: var(--text);
  box-shadow: inset 0 -2px var(--accent);
}

.demo-link {
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 10px 34px rgba(22, 205, 235, 0.16);
  color: #001722;
  font-weight: 700;
  white-space: nowrap;
}

.demo-link:hover {
  background: linear-gradient(135deg, #9cf3ff, #3bdcf3);
  color: #001722;
  transform: translateY(-1px);
}

main {
  flex: 1;
}

/* Homepage */
.home-page main {
  display: flex;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - 185px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 84% 48%, rgba(4, 105, 139, 0.18), transparent 35rem), linear-gradient(90deg, rgba(2, 21, 33, 0.98) 0%, rgba(2, 21, 33, 0.76) 42%, rgba(2, 21, 33, 0.08) 73%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 86px 104px;
}

.hero h1 {
  max-width: var(--content);
  margin: 0;
  font-size: clamp(48px, 4.1vw, 70px);
  line-height: 1.14;
  letter-spacing: -0.052em;
  font-weight: 680;
}

.hero h1 .headline-kicker,
.hero h1 .headline-message {
  display: block;
}

.hero h1 .headline-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(43, 214, 239, 0.12);
}

.hero-support {
  max-width: 1000px;
  margin-top: 42px;
  display: grid;
  gap: 24px;
}

.home-description {
  margin: 0;
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.43;
  letter-spacing: -0.025em;
}

.home-contact {
  max-width: 820px;
  display: grid;
  justify-items: start;
  gap: 4px;
  color: var(--muted);
  font-size: clamp(20px, 1.3vw, 22px);
  line-height: 1.4;
}

.home-contact p {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 500;
}

.home-contact nav {
  gap: 22px;
}

.home-contact a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: inherit;
}

.network-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -4%;
  width: 84%;
  height: 112%;
  object-fit: cover;
  transform: translateY(-50%);
  opacity: 0.96;
  filter: saturate(1.08) contrast(1.06);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 23%, #000 49%);
}

.network-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .home-description {
    white-space: nowrap;
  }
}
@media (min-width: 1001px) {
  .hero-inner {
    padding-block: 72px 144px;
  }
  .hero h1 .headline-kicker {
    margin-bottom: 18px;
  }
  .headline-message {
    white-space: nowrap;
  }
  .hero-support {
    margin-top: 64px;
    gap: 32px;
  }
}
/* Interior pages */
.interior-main {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto 42%;
  height: 560px;
  background: radial-gradient(circle at 45% 35%, rgba(33, 204, 234, 0.13), transparent 19rem), repeating-linear-gradient(115deg, transparent 0 38px, rgba(44, 154, 184, 0.035) 39px 40px);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.content-shell {
  width: min(100% - 112px, 1020px);
  margin-inline: auto;
  padding-block: 96px 122px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: var(--type-meta);
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-shell h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.052em;
  font-weight: 670;
}

.lead {
  max-width: 790px;
  margin: 34px 0 0;
  color: #dce7ef;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.55;
}

.lead a {
  color: var(--accent);
}

.prose-section {
  max-width: 840px;
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  color: #c8d5df;
  font-size: var(--type-body);
  line-height: 1.78;
}

.prose-section p {
  margin: 0 0 25px;
}

.prose-section a {
  color: var(--accent);
}

.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 68px;
  padding: 28px 32px;
  border: 1px solid rgba(58, 111, 136, 0.62);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 43, 60, 0.88), rgba(4, 29, 42, 0.72));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.contact-panel p,
.contact-panel h2 {
  margin: 0;
}

.contact-label {
  color: var(--quiet);
  font-size: var(--type-meta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-copy {
  max-width: 560px;
}

.contact-message {
  margin-top: 10px !important;
  color: #d4e0e9;
  font-size: 18px;
  line-height: 1.55;
}

.contact-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.contact-options a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 19px;
}

/* Blog index */
.blog-content {
  width: min(100% - 112px, 1120px);
}

.blog-content .lead {
  max-width: 720px;
}

.article-list {
  margin: 72px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.article-list li {
  border-bottom: 1px solid var(--rule);
}

.article-list a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 30px;
  padding: 32px 2px;
}

.article-list a:hover {
  color: var(--text);
}

.article-list time {
  color: var(--quiet);
  font-size: var(--type-meta);
  letter-spacing: 0.03em;
}

.article-list span:nth-child(2) {
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.article-arrow {
  color: var(--accent);
  font-size: 24px;
  transition: transform 0.2s ease;
}

.article-list a:hover .article-arrow {
  transform: translate(3px, -3px);
}

/* Articles */
.article-main {
  background: linear-gradient(180deg, rgba(7, 37, 53, 0.3), transparent 400px);
}

.article-shell {
  width: min(100% - 112px, var(--article));
  margin-inline: auto;
  padding-block: 82px 120px;
}

.article-header {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--rule);
}

.article-header .back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: var(--type-meta);
}

.article-header time {
  display: block;
  margin-top: 36px;
  color: var(--quiet);
  font-size: var(--type-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 660;
}

.article-body {
  padding-top: 48px;
  color: #cbd7e1;
  font-size: var(--type-body);
  line-height: 1.78;
}

.article-body > p:first-child {
  color: var(--muted);
  font-size: clamp(19px, 1.1vw, 21px);
  line-height: 1.65;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.article-body h2 {
  margin: 64px 0 20px;
  font-size: 34px;
}

.article-body h3 {
  margin: 46px 0 18px;
  font-size: 26px;
}

.article-body h4 {
  margin: 38px 0 15px;
  font-size: 22px;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 28px;
  padding-left: 28px;
}

.article-body li {
  margin: 8px 0;
  padding-left: 6px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(43, 214, 239, 0.42);
  text-underline-offset: 0.2em;
}

.article-body strong {
  color: #ecf3f8;
}

.article-body hr {
  margin: 54px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.article-body figure {
  width: min(var(--figure-width), 100%);
  margin: 38px auto 46px;
  padding: 12px;
  border: 1px solid rgba(61, 111, 133, 0.58);
  border-radius: 13px;
  background: rgba(235, 245, 250, 0.96);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}

.article-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.article-body pre {
  margin: 28px 0;
  padding: 21px 23px;
  overflow-x: auto;
  border: 1px solid #284b5d;
  border-radius: 10px;
  background: #06121a;
  color: #d9e8f0;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.article-body :not(pre) > code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: #dff8fc;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 34px 0;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(7, 34, 48, 0.72);
  color: var(--text);
  font-size: 19px;
}

.fraction {
  display: inline-grid;
  text-align: center;
}

.fraction span:first-child {
  padding: 0 10px 5px;
  border-bottom: 1px solid var(--muted);
}

.fraction span:last-child {
  padding-top: 5px;
}

.equation-note {
  color: var(--muted);
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}

.article-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.share-link {
  padding: 10px 17px;
  border: 1px solid rgba(43, 214, 239, 0.46);
  border-radius: 7px;
}

/* Shared footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: rgba(2, 17, 27, 0.62);
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer small {
  color: var(--muted);
  font-size: var(--type-footer);
}

.site-footer nav {
  gap: 28px;
}

.site-footer a {
  color: var(--accent);
  font-size: var(--type-footer);
}

@media (max-width: 1000px) {
  .header-inner,
  .hero-inner,
  .footer-inner,
  .content-shell,
  .article-shell,
  .blog-content {
    width: calc(100% - 64px);
  }
  .hero h1 {
    max-width: 760px;
    text-wrap: balance;
  }
  .network-art {
    right: -24%;
    width: 112%;
    opacity: 0.68;
  }
  .hero::before {
    background: linear-gradient(90deg, rgba(2, 21, 33, 0.98), rgba(2, 21, 33, 0.72) 62%, rgba(2, 21, 33, 0.18));
  }
}
@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .footer-inner,
  .content-shell,
  .article-shell,
  .blog-content {
    width: calc(100% - 40px);
  }
  .header-inner {
    padding-block: 18px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 28px;
  }
  .header-inner nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .mobile-home-link {
    display: inline-flex;
  }
  nav a {
    font-size: 15px;
  }
  .demo-link {
    padding: 9px 17px;
  }
  .hero {
    min-height: 620px;
  }
  .hero-inner {
    padding-block: 66px 84px;
  }
  .hero h1 {
    font-size: clamp(33px, 9.3vw, 40px);
    line-height: 1.16;
  }
  .hero h1 .headline-kicker {
    margin-bottom: 14px;
  }
  .hero-support {
    margin-top: 32px;
    gap: 22px;
  }
  .home-description {
    font-size: 22px;
  }
  .home-contact {
    gap: 2px;
  }
  .home-contact nav {
    gap: 12px;
  }
  .desktop-break {
    display: none;
  }
  .network-art {
    right: -25%;
    opacity: 0.4;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 18%, #000 40%);
  }
  .network-art > img {
    object-position: 70% center;
  }
  .content-shell {
    padding-block: 70px 86px;
  }
  .content-shell h1 {
    font-size: 43px;
  }
  .lead {
    margin-top: 26px;
    font-size: 20px;
  }
  .prose-section {
    margin-top: 44px;
    padding-top: 38px;
    font-size: 18px;
  }
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 48px;
    padding: 24px;
  }
  .contact-options {
    max-width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .contact-options a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .article-list {
    margin-top: 50px;
  }
  .article-list a {
    grid-template-columns: 1fr 24px;
    gap: 15px;
    padding-block: 26px;
  }
  .article-list time {
    grid-column: 1/-1;
  }
  .article-shell {
    padding-block: 58px 84px;
  }
  .article-header {
    padding-bottom: 40px;
  }
  .article-header time {
    margin-top: 25px;
  }
  .article-header h1 {
    font-size: 37px;
  }
  .article-body {
    padding-top: 38px;
    font-size: 18px;
  }
  .article-body h2 {
    margin-top: 52px;
    font-size: 29px;
  }
  .article-body h3 {
    font-size: 24px;
  }
  .article-body figure {
    width: 100% !important;
    margin-block: 30px 38px;
    padding: 8px;
  }
  .equation {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
    font-size: 17px;
  }
  .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-block: 22px;
  }
}
@media (max-width: 340px) {
  .header-inner nav {
    gap: 4px;
  }
  .demo-link {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
/* Jekyll/Kramdown article image output. */
.article-body > p:has(> img) {
  margin: 38px 0 46px;
}

.article-body > p > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid rgba(61, 111, 133, 0.58);
  border-radius: 13px;
  background: rgba(235, 245, 250, 0.96);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}

.article-body > p > img[width="50%"] {
  width: 50%;
}

.article-body > p > img[width="70%"] {
  width: 70%;
}

.article-body > p > img[width="85%"] {
  width: 85%;
}

@media (max-width: 640px) {
  .article-body > p > img[width] {
    width: 100%;
  }
}