/* Nexus portfolio surfaces; isolated from the repository documentation shell. */
.nexus-feature,
.nexus-page {
  --nexus-text: #eceeec;
  --nexus-muted: #b1b8b5;
  --nexus-line: rgba(229, 238, 235, .15);
  --nexus-accent: #c1d8cb;
  color: var(--nexus-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nexus-feature {
  padding: clamp(64px, 9vw, 140px) max(24px, calc((100% - 1200px) / 2));
  min-height: 90svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #030405;
  border-block: 1px solid var(--nexus-line);
}
.nexus-feature__copy { display: grid; justify-items: start; gap: 22px; }
.nexus-eyebrow {
  margin: 0;
  font: 500 11px/1.5 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--nexus-accent);
}
.code-page .nexus-feature h2 { font-size: clamp(64px, 7vw, 112px); line-height: 1; letter-spacing: -.065em; font-weight: 500; }
.nexus-feature__subtitle { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.025em; }
.nexus-copy { margin: 0; max-width: 56ch; color: var(--nexus-muted); font-size: 15px; line-height: 1.85; }
.nexus-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0; }
.nexus-tags li { padding: 6px 11px; border: 1px solid var(--nexus-line); border-radius: 30px; font-size: 11px; color: var(--nexus-muted); }
.nexus-button { display: inline-flex; gap: 30px; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 22px; border: 1px solid #a3b2ab; border-radius: 999px; color: var(--nexus-text); text-decoration: none; font-size: 13px; transition: background .2s, border-color .2s; }
.nexus-button:hover { background: rgba(193, 216, 203, .1); border-color: var(--nexus-text); }
.nexus-feature a:focus-visible,
.nexus-page a:focus-visible,
.nexus-sidebar-link:focus-visible { outline: 2px solid #c1d8cb; outline-offset: 6px; }
.nexus-feature__visual { display: flex; align-items: center; gap: 20px; padding: 22px 4px; text-decoration: none; }
.nexus-feature__visual img { display: block; width: calc(50% - 10px); height: auto; border: 1px solid #464c4c; border-radius: 26px; box-shadow: 0 24px 70px #0008; }
.nexus-feature__visual img:first-child { transform: translateY(-20px); }
.nexus-feature__visual img:last-child { transform: translateY(20px); }
.nexus-sidebar-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid #43524e; border-radius: 10px; color: #e7efeb; text-decoration: none; background: #c1d8cb08; }
.nexus-sidebar-link span:first-child { font-weight: 600; }
.nexus-sidebar-link span:last-child { font-size: 11px; color: #b6c7bd; }
.nexus-sidebar-link:hover { background: #c1d8cb14; }
.nexus-page { background: #030405; isolation: isolate; color-scheme: dark; --text: #eceeec; --border-soft: rgba(229, 238, 235, .15); }
.nexus-page .site-header { background: #030405b8; backdrop-filter: blur(18px); border-color: var(--nexus-line); }
.nexus-page .nav a,
.nexus-page .lang-toggle button { color: #c2c7c5; }
.nexus-page .nav-toggle { color: var(--nexus-text); background: transparent; border: 1px solid #68756e; }
.nexus-page .nav a:hover,
.nexus-page .lang-toggle button.is-active { color: #fff; }
.nexus-page .lang-toggle button.is-active { border-color: #68756e; background: #c1d8cb0f; }
.nexus-detail { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding-top: 48px; }
.nexus-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--nexus-muted); font-size: 12px; text-decoration: none; }
.nexus-back:hover { color: var(--nexus-text); }
.nexus-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 70px; padding: 20px 0 80px; }
.nexus-hero__copy { display: grid; gap: 26px; justify-items: start; }
.nexus-page h1,
.nexus-page h2,
.nexus-page h3 { margin: 0; padding: 0; transform: none; font-family: inherit; color: var(--nexus-text); }
.nexus-page main h1:not(.sr-only):hover,
.nexus-page main h2:not(.sr-only):hover,
.nexus-page main h3:not(.sr-only):hover { transform: none; letter-spacing: -.035em; }
.nexus-page main h1:not(.sr-only):hover { letter-spacing: -.075em; }
.nexus-page h1::after,
.nexus-page h2::after,
.nexus-page h3::after { display: none; }
.nexus-page h1 { font-size: clamp(80px, 10vw, 146px); line-height: .95; font-weight: 500; letter-spacing: -.075em; }
.nexus-page h1 > span { color: var(--nexus-accent); }
.nexus-hero__statement { margin: 0; white-space: pre-line; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.18; letter-spacing: -.035em; }
.nexus-hero__visual { width: min(100%, 290px); justify-self: center; margin: 0; padding: 0; position: relative; }
.nexus-hero__visual::before { content: ""; position: absolute; inset: 5% -20%; background: radial-gradient(ellipse, #c1d8cb16 0%, transparent 65%); z-index: -1; }
.nexus-hero__visual img { display: block; width: 100%; height: auto; border-radius: 32px; border: 1px solid #454c49; box-shadow: 0 25px 70px #000b; }
.nexus-hero__visual figcaption { margin-top: 18px; text-align: center; font-size: 10px; color: var(--nexus-muted); letter-spacing: .04em; }
.nexus-section { padding: 88px 0; border-top: 1px solid var(--nexus-line); scroll-margin-top: 100px; }
.nexus-section h2 { margin: 14px 0 24px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.22; letter-spacing: -.035em; font-weight: 450; white-space: pre-line; }
.nexus-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.nexus-intro > .nexus-eyebrow { padding-top: 20px; }
.nexus-section-heading { display: flex; gap: 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 42px; }
.nexus-section-heading h2 { margin-bottom: 0; }
.nexus-section-heading > p { max-width: 34ch; font-size: 13px; }
.nexus-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.nexus-gallery figure { margin: 0; min-width: 0; }
.nexus-gallery figure > a { display: block; padding: 24px; border: 1px solid var(--nexus-line); border-radius: 24px; background: linear-gradient(145deg, #252a2980, #070909b8 65%); }
.nexus-gallery img { display: block; width: 100%; height: auto; border-radius: 19px; border: 1px solid #454c49; }
.nexus-gallery figcaption { margin-top: 26px; }
.nexus-gallery h3 { margin: 8px 0; font-size: 20px; font-weight: 450; }
.nexus-gallery .nexus-copy { font-size: 13px; }
.nexus-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: 48px; }
.nexus-capabilities article { border-top: 1px solid var(--nexus-line); padding-top: 24px; }
.nexus-capabilities h3 { font-size: 21px; font-weight: 450; margin: 14px 0; }
.nexus-layers { list-style: none; padding: 0; margin: 36px 0 0; }
.nexus-layers li { display: grid; grid-template-columns: 30px 110px 1fr; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--nexus-line); font-size: 13px; }
.nexus-layers li > span:first-child { font-family: monospace; color: var(--nexus-accent); font-size: 11px; }
.nexus-layers li > span:last-child { color: var(--nexus-muted); }
.nexus-layers strong { font-weight: 500; }
.nexus-status { margin-bottom: 40px; }
.nexus-status .nexus-copy { max-width: 78ch; }
.nexus-status .nexus-button { margin-top: 30px; }
.nexus-page .site-footer { border-color: var(--nexus-line); color: var(--nexus-muted); }
.nexus-page .site-footer .container { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 860px) {
  .nexus-feature { grid-template-columns: 1fr; gap: 44px; }
  .nexus-feature__visual { max-width: 460px; margin-inline: auto; }
  .nexus-detail { width: calc(100% - 40px); padding-top: 32px; }
  .nexus-hero { gap: 28px; grid-template-columns: 1fr 1fr; }
  .nexus-hero__visual { width: min(100%, 270px); }
  .nexus-intro { gap: 20px; grid-template-columns: 1fr; }
  .nexus-intro > .nexus-eyebrow { padding-top: 0; }
  .nexus-section-heading { display: block; }
  .nexus-section-heading > p { margin-top: 20px; max-width: 56ch; }
  .nexus-gallery { gap: 16px; }
  .nexus-gallery figure > a { padding: 12px; border-radius: 20px; }
  .nexus-gallery img { border-radius: 12px; }
}
@media (max-width: 580px) {
  .nexus-feature { padding: 64px 24px; }
  .nexus-hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 60px; }
  .nexus-hero__visual { width: min(76%, 300px); margin: 24px auto 0; padding: 0; }
  .nexus-hero__copy { gap: 24px; }
  .nexus-section { padding-block: 56px; }
  .nexus-gallery { grid-template-columns: 1fr; gap: 48px; }
  .nexus-gallery figure { max-width: 320px; margin-inline: auto; }
  .nexus-gallery figure > a { padding: 20px; }
  .nexus-capabilities { grid-template-columns: 1fr; gap: 32px; }
  .nexus-layers li { grid-template-columns: 24px 90px 1fr; gap: 10px; font-size: 11px; }
  .nexus-page .site-footer .container { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .nexus-button { transition: none; }
}

/* A black-dominant halftone fluid shared by the project page and its introduction. */
.nexus-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #010101;
}
.nexus-page > .nexus-flow { position: fixed; }
.nexus-page > .nexus-flow::after { background: #000b; }
.nexus-feature > .nexus-flow::after { background: linear-gradient(90deg, #000c 0%, #000b 46%, #0004 78%, #0002); }
.nexus-flow canvas { display: block; width: 100%; height: 100%; }
.nexus-flow[data-renderer="fallback"] canvas { display: none; }
.nexus-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0008 0%, #0003 42%, transparent 78%),
    linear-gradient(180deg, #0003, transparent 26%, transparent 76%, #0006);
}
.nexus-feature > .nexus-feature__copy,
.nexus-feature > .nexus-feature__visual,
.nexus-page > .nexus-detail,
.nexus-page > .site-footer { position: relative; z-index: 1; }
.nexus-page .site-footer { background: #03040566; }
.nexus-copy__paragraph { display: block; white-space: pre-line; }
.nexus-copy__paragraph + .nexus-copy__paragraph { margin-top: .85em; }

/* Chinese needs its own rhythm instead of the tightly tracked English display style. */
:lang(zh) .nexus-page,
:lang(zh) .nexus-feature {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-break: strict;
  word-break: normal;
  text-align: left;
}
:lang(zh) .nexus-copy {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .025em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
:lang(zh) .nexus-eyebrow {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .1em;
  text-transform: none;
}
:lang(zh) .nexus-page .nexus-hero__statement {
  font-size: clamp(27px, 2.65vw, 38px);
  line-height: 1.58;
  letter-spacing: .035em;
  font-weight: 400;
}
:lang(zh) .nexus-page .nexus-section h2,
:lang(zh) .nexus-page main h2:not(.sr-only):hover {
  max-width: 20em;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.5;
  letter-spacing: .035em;
  font-weight: 500;
  text-wrap: balance;
}
:lang(zh) .nexus-page .nexus-section h3,
:lang(zh) .nexus-page main h3:not(.sr-only):hover {
  font-size: 21px;
  line-height: 1.6;
  letter-spacing: .025em;
  font-weight: 500;
}
:lang(zh) .nexus-section-heading { align-items: flex-end; }
:lang(zh) .nexus-section-heading > .nexus-copy { max-width: 20em; font-size: 15px; }
:lang(zh) .nexus-gallery .nexus-copy { max-width: 22em; font-size: 15px; }
:lang(zh) .nexus-capabilities .nexus-copy { max-width: 30em; }
:lang(zh) .nexus-layers li { font-size: 14px; line-height: 1.85; letter-spacing: .015em; }
:lang(zh) .nexus-feature__subtitle { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.55; letter-spacing: .035em; }
:lang(zh) .nexus-button { font-size: 14px; letter-spacing: .04em; }
:lang(zh) .nexus-tags li { font-size: 12px; line-height: 1.5; }
:lang(zh) .nexus-hero__visual figcaption { font-size: 12px; line-height: 1.7; letter-spacing: .04em; }
:lang(zh) .nexus-status .nexus-copy { max-width: 44em; }
@media (max-width: 860px) {
  .nexus-feature > .nexus-flow::after { background: #000c; }
  :lang(zh) .nexus-section-heading > .nexus-copy { margin-top: 20px; max-width: 34em; }
}
@media (max-width: 580px) {
  .nexus-page > .nexus-flow::after { background: #000c; }
  :lang(zh) .nexus-hero__copy { gap: 24px; }
  :lang(zh) .nexus-page .nexus-hero__statement { font-size: clamp(25px, 6.8vw, 30px); line-height: 1.65; }
  :lang(zh) .nexus-copy { font-size: 15px; line-height: 1.95; letter-spacing: .025em; }
  :lang(zh) .nexus-page .nexus-section h2 { font-size: 26px; line-height: 1.55; }
  :lang(zh) .nexus-layers li { grid-template-columns: 24px 96px minmax(0, 1fr); font-size: 13px; gap: 10px; }
  :lang(zh) .nexus-gallery .nexus-copy { font-size: 15px; }
}
