/* Nexushubs Software — company site. System fonts only; no @font-face or remote font CSS. */

:root {
  --canvas: #f6f5f1;
  --surface: #fff;
  --ink: #16181d;
  --muted: #525965;
  --border: #ddd9d1;
  --econ: #c14226;
  --econ-strong: #a5361d;
  --econ-soft: #f6e4dc;
  --nexus-bg: hsl(228 23% 4%);
  --nexus-raise: hsl(228 18% 8%);
  --nexus-line: hsl(228 14% 20%);
  --nexus-mist: hsl(222 14% 74%);
  --nexus-text: hsl(220 20% 94%);
  --cyan: hsl(189 100% 68%);
  --amber: hsl(40 100% 56%);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 20px;
  --section-space: 64px;
  --header-h: 64px;
  --radius-control: 12px;
  --radius-panel: 20px;
  --radius-large: 28px;

  --shadow-soft: 0 1px 2px rgb(22 24 29 / 4%), 0 8px 24px -12px rgb(22 24 29 / 14%);
  --shadow-lift: 0 2px 4px rgb(22 24 29 / 5%), 0 24px 48px -24px rgb(22 24 29 / 28%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root:lang(zh-Hans) {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
    --section-space: 104px;
    --header-h: 72px;
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(zh-Hans) body,
body:lang(zh-Hans) {
  line-break: strict;
  overflow-wrap: break-word;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--cyan);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--canvas);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.mono {
  font-family: var(--font-mono);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(246 245 241 / 84%);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: border-color 0.2s, background-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgb(246 245 241 / 92%);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  width: 27px;
  height: 28px;
  flex: none;
}

.wordmark-sub {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: contents;
}

.nav-menu {
  order: 3;
  width: 100%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-inline: -10px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover {
  background: rgb(22 24 29 / 5%);
}

.lang-switch {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.lang-switch:hover {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
}

@media (min-width: 760px) {
  .nav-menu {
    order: 1;
    width: auto;
  }

  .lang-switch {
    order: 2;
    margin-left: 8px;
  }

  .nav-links {
    margin-inline: 0;
  }
}

@media (max-width: 759.98px) {
  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .nav-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .js .nav-toggle:hover {
    background: rgb(22 24 29 / 6%);
  }

  .nav-toggle-icon {
    position: relative;
    width: 20px;
    height: 14px;
  }

  .nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentcolor;
    transition: transform 0.2s var(--ease), opacity 0.2s;
  }

  .nav-toggle-icon span:nth-child(1) {
    top: 0;
  }

  .nav-toggle-icon span:nth-child(2) {
    top: 6px;
  }

  .nav-toggle-icon span:nth-child(3) {
    top: 12px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .js .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: var(--canvas);
    box-shadow: 0 24px 32px -24px rgb(22 24 29 / 24%);
  }

  .js .nav-menu.is-open {
    display: block;
  }

  .js .nav-links {
    flex-direction: column;
    margin: 0;
  }

  .js .nav-links a {
    width: 100%;
    min-height: 52px;
    padding-inline: 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--ink);
    font-size: 1.125rem;
  }

  .js .nav-links li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 380px) {
  .wordmark-sub {
    display: none;
  }
}

/* Shared type */

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:lang(zh-Hans) .eyebrow,
:lang(zh-Hans) .section-label {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--econ);
}

.measure {
  max-width: 62ch;
}

.measure,
.work-note,
.work-desc,
.hero-lede {
  text-wrap: pretty;
}

:lang(zh-Hans) .measure {
  max-width: 34em;
}

.balance {
  text-wrap: balance;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--econ {
  background: var(--econ);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(193 66 38 / 70%);
}

.btn--econ:hover {
  background: var(--econ-strong);
}

.btn--amber {
  background: var(--amber);
  color: #17120a;
  box-shadow: 0 10px 28px -12px hsl(40 100% 56% / 55%);
}

.btn--amber:hover {
  background: hsl(40 100% 64%);
}

.btn--ghost-dark {
  border-color: rgb(255 255 255 / 26%);
  color: var(--nexus-text);
}

.btn--ghost-dark:hover {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 6%);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 56px 72px;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 96px 112px;
  }
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(22 24 29 / 13%) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, #000 10%, transparent 75%);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 88% 10%, rgb(193 66 38 / 14%), transparent 70%),
    radial-gradient(36% 46% at 100% 80%, hsl(189 100% 60% / 16%), transparent 70%),
    radial-gradient(30% 40% at 0% 100%, rgb(193 66 38 / 6%), transparent 70%);
}

.hero-constellation {
  position: absolute;
  top: 24px;
  right: max(-120px, calc((100vw - var(--container)) / 2 - 220px));
  width: min(640px, 70vw);
  color: #cfc9be;
  opacity: 0.9;
}

@media (max-width: 899.98px) {
  .hero-constellation {
    top: auto;
    right: -180px;
    bottom: 120px;
    opacity: 0.5;
  }
}

.hero .eyebrow {
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: var(--ink);
  letter-spacing: 0.1em;
}

.eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--econ);
  box-shadow: 0 0 0 4px rgb(193 66 38 / 14%);
}

.hero-title {
  max-width: 14em;
  margin-top: 28px;
  font-size: clamp(2.25rem, 1.45rem + 3.6vw, 4.5rem);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

:lang(zh-Hans) .hero-title {
  max-width: 14em;
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4.25rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hl-econ {
  color: var(--econ);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

:lang(zh-Hans) .hl-econ {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hl-nexus {
  background: linear-gradient(transparent 62%, hsl(189 100% 68% / 55%) 62%, hsl(189 100% 68% / 55%) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.hero-lede {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

:lang(zh-Hans) .hero-lede {
  max-width: 24em;
}

.hero-paths {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-paths {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: end;
    gap: 64px;
    margin-top: 48px;
  }

  .hero-lede {
    padding-bottom: 8px;
  }
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.path-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.path-card:focus-within {
  border-color: var(--econ);
}

.path-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.path-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.path-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

@media (min-width: 640px) {
  .path-card {
    min-height: 228px;
    padding: 22px 22px 20px;
  }

  .path-brand {
    padding-top: 28px;
  }
}

.path-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
}

.path-name {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.path-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.path-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.path-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-panel);
}

.path-link:focus-visible {
  outline: none;
}

.path-link:focus-visible::after {
  outline: 3px solid var(--econ);
  outline-offset: 3px;
}

.path-link svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.25s var(--ease);
}

.path-card:hover .path-link svg {
  transform: translateY(3px);
}

.path-card--econ .path-icon {
  background: var(--econ-soft);
  color: var(--econ);
}

.path-card--econ .path-name {
  font-family: var(--font-serif);
  font-weight: 600;
}

.path-card--econ .path-link {
  color: var(--econ);
}

.path-card--nexus {
  border-color: hsl(228 16% 16%);
  background:
    radial-gradient(120% 80% at 100% 0%, hsl(189 100% 60% / 16%), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, hsl(40 100% 56% / 10%), transparent 60%),
    var(--nexus-bg);
  color: var(--nexus-text);
}

.path-card--nexus .path-meta,
.path-card--nexus .path-line {
  color: var(--nexus-mist);
}

.path-card--nexus .path-icon {
  overflow: hidden;
  border: 1px solid hsl(228 14% 22%);
}

.path-card--nexus .path-icon img {
  width: 40px;
  height: 40px;
}

.path-card--nexus .path-link {
  border-top-color: var(--nexus-line);
  color: var(--cyan);
}

.path-card--nexus .path-link:focus-visible::after {
  outline-color: var(--cyan);
}

/* Products */

.products {
  padding-block: 8px var(--section-space);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.product-list {
  display: grid;
  gap: 24px;
}

.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  overflow: hidden;
  isolation: isolate;
  padding: 28px 22px;
  border-radius: var(--radius-large);
}

@media (min-width: 640px) {
  .product {
    padding: 44px 40px;
  }
}

@media (min-width: 1024px) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 64px;
    padding: 64px;
  }

  .product--nexus {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .product--nexus .product-visual {
    order: -1;
  }
}

.product-audience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.product-audience::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentcolor;
}

.product-title {
  margin-top: 18px;
}

.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.product-heading {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.875rem, 1.35rem + 2vw, 2.875rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

:lang(zh-Hans) .product-heading {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.625rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.product-body {
  margin-top: 20px;
  font-size: 1.0625rem;
}

@media (min-width: 1024px) {
  .product-body {
    font-size: 1.125rem;
  }
}

.product-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.product-points li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
}

.product-points li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentcolor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0Zm4.1 6.6-4.8 5.2a.9.9 0 0 1-1.3 0L4.9 9.7a.9.9 0 1 1 1.3-1.3l1.4 1.5 4.1-4.5a.9.9 0 1 1 1.4 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0Zm4.1 6.6-4.8 5.2a.9.9 0 0 1-1.3 0L4.9 9.7a.9.9 0 1 1 1.3-1.3l1.4 1.5 4.1-4.5a.9.9 0 1 1 1.4 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-points code {
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.product-visual figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
}

/* Econ Talk */

.product--econ {
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 60% at 100% 0%, rgb(193 66 38 / 7%), transparent 70%),
    var(--surface);
}

.product--econ .product-audience {
  color: var(--econ);
}

.product--econ .product-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

:lang(zh-Hans) .product--econ .product-heading {
  letter-spacing: 0.02em;
}

.product--econ .product-body,
.product--econ .product-visual figcaption {
  color: var(--muted);
}

.product--econ .product-points li::before {
  color: var(--econ);
}

.econ-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--canvas);
  box-shadow: var(--shadow-lift);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 70%);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcd7ce;
}

.window-url {
  flex: 1;
  overflow: hidden;
  max-width: 280px;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.econ-stage {
  padding: 20px 16px 22px;
  background-image: radial-gradient(circle, rgb(22 24 29 / 9%) 1px, transparent 1.3px);
  background-size: 18px 18px;
}

@media (min-width: 640px) {
  .econ-stage {
    padding: 28px 24px 30px;
  }
}

.econ-shot {
  aspect-ratio: 1600 / 380;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.econ-shot img {
  width: 100%;
}

@media (max-width: 599.98px) {
  .econ-shot {
    aspect-ratio: 720 / 312;
  }
}

@media (min-width: 600px) {
  .econ-shot {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.is-missing .econ-shot {
  display: none;
}

.example-card {
  position: relative;
  margin: 16px 4px 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--econ);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .example-card {
    max-width: 460px;
    margin: 18px 0 0;
  }
}

@media (min-width: 1024px) {
  .product--econ .econ-window {
    width: calc(100% + 64px + 180px);
    border-right: 0;
    border-radius: var(--radius-panel) 0 0 var(--radius-panel);
  }

  .product--econ .econ-stage {
    padding: 36px 0 36px 32px;
  }

  .product--econ .example-card {
    max-width: min(460px, calc(100% - 212px));
    margin-top: 22px;
  }
}

.example-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--econ-soft);
  color: var(--econ-strong);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-text {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.4;
}

:lang(zh-Hans) .example-text {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* NexusHub */

.product--nexus {
  background: var(--nexus-bg);
  color: var(--nexus-text);
}

.nexus-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.nexus-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.32;
}

.nexus-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(228 23% 4% / 30%), hsl(228 23% 4% / 90%) 70%),
    radial-gradient(70% 60% at 20% 50%, hsl(228 23% 4% / 70%), transparent);
}

@media (min-width: 1024px) {
  .nexus-art::after {
    background:
      linear-gradient(90deg, hsl(228 23% 4% / 82%) 0%, hsl(228 23% 4% / 55%) 50%, hsl(228 23% 4% / 82%) 100%);
  }
}

.product--nexus .product-audience {
  color: var(--cyan);
}

.product--nexus .product-body,
.product--nexus .product-visual figcaption {
  color: var(--nexus-mist);
}

.product--nexus .product-points li::before {
  color: var(--cyan);
}

.product--nexus .product-points code {
  background: hsl(228 18% 14%);
  color: var(--amber);
}

.nexus-mark {
  width: 32px;
  height: 32px;
  border: 1px solid hsl(228 14% 24%);
  border-radius: 9px;
}

.issue-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, hsl(228 20% 9% / 88%), hsl(228 22% 6% / 92%));
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 80%), inset 0 1px 0 rgb(255 255 255 / 5%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (min-width: 640px) {
  .issue-card {
    padding: 24px;
  }
}

.issue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nexus-line);
}

.issue-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.issue-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.issue-avatars {
  display: flex;
}

.issue-avatars span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border: 2px solid hsl(228 20% 8%);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
}

.issue-avatars .av-human {
  background: hsl(222 14% 74%);
  color: hsl(228 23% 8%);
}

.issue-avatars .av-agent {
  background: var(--cyan);
  color: hsl(228 23% 8%);
}

.issue-avatars .av-next {
  background: var(--amber);
  color: hsl(228 23% 8%);
}

.issue-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.issue-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 11px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, hsl(222 14% 60% / 60%), var(--cyan) 50%, var(--amber));
  opacity: 0.6;
}

.entry {
  position: relative;
  padding-left: 36px;
}

.entry::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 5px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--nexus-bg);
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 1px var(--tone);
}

.entry-body {
  padding: 14px 16px;
  border: 1px solid var(--tone-border);
  border-radius: 14px;
  background: var(--tone-bg);
}

.entry-who {
  color: var(--tone);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:lang(zh-Hans) .entry-who {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.entry-text {
  margin-top: 6px;
  color: var(--nexus-text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.entry-attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 10px 5px 6px;
  border: 1px solid hsl(189 100% 68% / 22%);
  border-radius: 8px;
  background: hsl(189 100% 68% / 6%);
  color: var(--nexus-mist);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.entry-attach i {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 55%, hsl(189 100% 68% / 45%) 55%),
    linear-gradient(hsl(228 14% 30%), hsl(228 14% 22%));
}

.entry--human {
  --tone: hsl(222 14% 74%);
  --tone-border: rgb(255 255 255 / 10%);
  --tone-bg: rgb(255 255 255 / 3%);
}

.entry--agent {
  --tone: var(--cyan);
  --tone-border: hsl(189 100% 68% / 28%);
  --tone-bg: hsl(189 100% 68% / 6%);
}

.entry--next {
  --tone: var(--amber);
  --tone-border: hsl(40 100% 56% / 32%);
  --tone-bg: hsl(40 100% 56% / 7%);
}

/* About */

.about {
  padding-block: var(--section-space);
}

.about-grid {
  display: grid;
  align-items: start;
  gap: 24px;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
  }

  .about-grid .section-label {
    margin-top: 0.9em;
  }
}

.about-heading {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

:lang(zh-Hans) .about-heading {
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.about-body {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

/* Other work and legacy */

.explore,
.legacy {
  padding-block: var(--section-space);
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .work-grid.work-grid--explore {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.work-card.work-card--explore {
  overflow: hidden;
  background: var(--surface);
}

.work-card--explore::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--econ), hsl(40 100% 52%) 50%, hsl(189 100% 50%));
  opacity: 0.75;
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid hsl(40 70% 70%);
  border-radius: 999px;
  background: hsl(40 100% 96%);
  color: hsl(30 70% 26%);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.work-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(36 100% 45%);
}

.work-head {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .work-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 40px;
  }
}

.work-title {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

:lang(zh-Hans) .work-title {
  letter-spacing: 0.01em;
}

.work-intro {
  margin-top: 14px;
  color: var(--muted);
}

.work-note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed #c9c3b8;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.work-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

.work-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgb(255 255 255 / 60%);
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}

.work-card:hover {
  border-color: #b9b2a6;
  background: var(--surface);
  transform: translateY(-2px);
}

.work-card:focus-within {
  border-color: var(--ink);
  background: var(--surface);
}

.work-cat {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

:lang(zh-Hans) .work-cat {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.work-name {
  margin-top: 10px;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.work-desc {
  margin-top: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.work-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.work-link:focus-visible {
  outline: none;
}

.work-link:focus-visible::after {
  outline: 3px solid var(--econ);
  outline-offset: 3px;
}

.work-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.work-card:hover .work-link svg {
  transform: translate(2px, -2px);
}

/* Contact */

.contact {
  padding-block: 0 var(--section-space);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 22px;
  border-radius: var(--radius-large);
  background: var(--ink);
  color: #f2f1ec;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgb(193 66 38 / 26%), transparent 70%),
    radial-gradient(45% 70% at 100% 100%, hsl(189 100% 60% / 16%), transparent 70%);
}

@media (min-width: 640px) {
  .contact-panel {
    padding: 48px 40px;
  }
}

@media (min-width: 1024px) {
  .contact-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    padding: 64px;
  }
}

.contact .section-label {
  color: #b9bcc4;
}

.contact-title {
  margin-top: 16px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

:lang(zh-Hans) .contact-title {
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.contact-body {
  margin-top: 18px;
  color: #b9bcc4;
  font-size: 1.0625rem;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.mail-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 20px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: rgb(255 255 255 / 3%);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.mail-tile:hover {
  border-color: rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 7%);
}

.mail-tile-text {
  display: grid;
  min-width: 0;
}

.mail-tile-label {
  color: #b9bcc4;
  font-size: 0.8125rem;
}

.mail-tile-address {
  overflow-wrap: anywhere;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mail-tile svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-left: auto;
  color: #b9bcc4;
  transition: transform 0.2s var(--ease), color 0.2s;
}

.mail-tile:hover svg {
  color: #fff;
  transform: translateX(3px);
}

.company-details {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

@media (min-width: 640px) {
  .company-details {
    grid-template-columns: auto 1fr;
    gap: 10px 24px;
  }
}

.company-details dt {
  color: #9da1aa;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-details dd {
  margin-top: -10px;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .company-details dd {
    margin-top: 0;
  }
}

/* Footer */

.site-footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.footer-brand .wordmark {
  margin: 0;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-inline: -10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Simple pages: privacy, 404 */

.page-simple {
  padding-block: 56px var(--section-space);
}

.page-simple h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.prose p {
  margin-top: 14px;
  color: #363a43;
}

.prose a {
  color: var(--econ);
  text-underline-offset: 3px;
}

.prose .effective {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}

.not-found {
  display: grid;
  min-height: 60vh;
  place-content: center;
  gap: 40px;
  padding-block: 64px;
}

.not-found-code {
  color: var(--econ);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
}

.not-found-block h1,
.not-found-block h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.not-found-block .btn {
  margin-top: 20px;
  background: var(--ink);
  color: var(--canvas);
}

.not-found-block .btn:hover {
  background: #2c2f37;
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .path-card:hover,
  .work-card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .path-card,
  .product,
  .work-card,
  .contact-panel,
  .issue-card,
  .entry-body {
    border: 1px solid CanvasText;
  }
}
