:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --fg: #101214;
  --muted: #626762;
  --line: rgba(16, 18, 20, 0.14);
  --soft: rgba(16, 18, 20, 0.055);
  --panel: rgba(255, 255, 255, 0.72);
  --accent: #1769ff;
  --accent-2: #e84f8b;
  --header-bg: rgba(247, 248, 244, 0.9);
  --shadow: 0 24px 70px rgba(16, 18, 20, 0.12);
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080a;
  --fg: #f5f4f2;
  --muted: #b9b7b1;
  --line: rgba(245, 244, 242, 0.16);
  --soft: rgba(245, 244, 242, 0.07);
  --panel: rgba(18, 19, 22, 0.78);
  --accent: #6fa0ff;
  --accent-2: #ff5fa7;
  --header-bg: rgba(7, 8, 10, 0.9);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section,
footer {
  scroll-margin-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 36%),
    linear-gradient(245deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 44%),
    linear-gradient(to bottom, transparent 0, var(--bg) 82vh);
  pointer-events: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.site-footer {
  font-size: 14px;
  line-height: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: clip;
  border: 0;
  border-radius: 0;
}

.theme-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-logo-dark {
  display: none;
}

:root[data-theme="dark"] .theme-logo-light {
  display: none;
}

:root[data-theme="dark"] .theme-logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--muted);
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--fg);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--fg);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

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

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

.theme-toggle {
  width: 48px;
  height: 28px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, var(--fg) 5%);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.theme-toggle.is-switching {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent);
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.theme-toggle-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 24%, transparent);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    box-shadow 220ms ease;
}

.theme-toggle:hover .theme-toggle-dot,
.theme-toggle:focus-visible .theme-toggle-dot,
.theme-toggle.is-switching .theme-toggle-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-2) 32%, transparent);
}

:root[data-theme="dark"] .theme-toggle-dot {
  transform: translateX(20px);
  background: var(--accent-2);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-2) 48%, transparent);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: start;
  min-height: calc(90svh - 72px);
  padding: clamp(56px, 8vh, 92px) 0 clamp(52px, 8vh, 86px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 590;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 570;
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-copy,
.team-copy p,
.contact-card p {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 30px;
}

.hero-actions,
.card-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--fg) 14%, transparent);
}

.button-secondary {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
}

.contact-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.blog-index-hero {
  max-width: 960px;
  padding: clamp(70px, 10vw, 126px) 0 clamp(48px, 8vw, 84px);
}

.blog-index-hero h1 {
  max-width: 850px;
}

.blog-index-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.52;
}

.blog-list {
  display: grid;
  gap: 18px;
  padding-bottom: clamp(72px, 10vw, 124px);
}

.blog-post-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-post-card span {
  color: var(--accent);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.blog-post-card strong {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 620;
  line-height: 1.08;
}

.blog-post-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.article-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0 clamp(80px, 10vw, 132px);
}

.article-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-content h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5.6vw, 74px);
}

.article-content h2 {
  margin-top: clamp(54px, 8vw, 84px);
  margin-bottom: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.04;
}

.article-content h3 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(23px, 2.2vw, 30px);
}

.article-content p,
.article-content li {
  color: var(--fg);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content > p:first-of-type {
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 21px);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.article-content blockquote p {
  margin: 0;
  color: var(--fg);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 620;
  line-height: 1.42;
}

.article-content code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.article-content pre {
  overflow-x: auto;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 88%, var(--fg) 5%);
}

.article-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.6;
}

.article-content .mermaid {
  display: grid;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 92%, white);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--line);
}

.article-content table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--bg);
}

.article-content th,
.article-content td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: var(--accent);
  font-size: 14px;
  font-weight: 820;
  text-transform: uppercase;
}

.article-content td {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
}

.hero-brand-panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 640px;
  overflow: visible;
}

.hero-logo-wrap {
  position: absolute;
  top: 0;
  right: -18px;
  display: grid;
  width: min(50vw, 620px);
  height: 620px;
  place-items: center end;
  padding: 0;
  pointer-events: none;
}

.hero-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.68;
  filter: saturate(0.92);
}

:root[data-theme="dark"] .hero-logo {
  opacity: 0.82;
  filter: saturate(1.06) drop-shadow(0 20px 64px color-mix(in srgb, var(--accent-2) 18%, transparent));
}

.narrative-section,
.ecosystem-section,
.overview-section,
.evidence-section,
.usecase-section,
.updates-section,
.team-section,
.contact-section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: block;
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading.compact {
  max-width: 760px;
}

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.narrative-grid article {
  display: grid;
  min-height: 380px;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 46%),
    color-mix(in srgb, var(--bg) 92%, white);
}

.narrative-grid span {
  color: var(--accent);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 820;
  line-height: 1.15;
  text-transform: uppercase;
}

.narrative-grid h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
}

.narrative-grid p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.inline-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 720;
}

.inline-actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.ecosystem-card {
  display: grid;
  min-height: 210px;
  align-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 88%, white);
  box-shadow: 0 18px 54px color-mix(in srgb, var(--fg) 5%, transparent);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ecosystem-card:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  transform: translateY(-2px);
}

.ecosystem-card-primary {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 54%),
    color-mix(in srgb, var(--bg) 92%, transparent);
}

.ecosystem-card span,
.updates-list span {
  color: var(--accent);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.ecosystem-card strong {
  color: var(--fg);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 660;
  line-height: 1.08;
}

.ecosystem-card small,
.updates-list small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.overview-grid article {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.overview-grid span {
  color: var(--accent);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 820;
}

.overview-grid h3 {
  max-width: 360px;
  margin: 0;
}

.overview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.card-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 720;
}

.card-actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.evidence-copy {
  display: grid;
  gap: 18px;
}

.evidence-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.52;
}

.evidence-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: evidence;
  list-style: none;
}

.evidence-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(92px, 0.22fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding: 18px 0 18px 34px;
  border-top: 1px solid var(--line);
}

.evidence-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.evidence-steps li::before {
  position: absolute;
  top: 28px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  content: "";
}

.evidence-steps li::after {
  position: absolute;
  top: 43px;
  bottom: -28px;
  left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent-2) 60%, transparent));
  content: "";
}

.evidence-steps li:last-child::after {
  display: none;
}

.evidence-steps span {
  color: var(--accent);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 820;
  line-height: 1.15;
  text-transform: uppercase;
}

.evidence-steps strong {
  color: var(--fg);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 620;
  line-height: 1.08;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.usecase-grid article {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.usecase-grid span {
  color: var(--accent);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 820;
  line-height: 1.15;
  text-transform: uppercase;
}

.usecase-grid h3 {
  margin: 0;
  font-size: clamp(24px, 2.35vw, 34px);
  font-weight: 620;
}

.updates-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.updates-list a {
  display: grid;
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.updates-list strong {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 620;
  line-height: 1.08;
}

.site-footer {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.team-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(38px, 7vw, 90px);
}

.team-copy {
  display: grid;
  gap: 20px;
}

.team-copy p,
.contact-card p {
  margin-bottom: 0;
}

.team-principles {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  background: var(--line);
}

.team-principles article {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  background: var(--bg);
}

.team-principles span {
  color: var(--accent);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.team-principles strong {
  color: var(--fg);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 610;
  line-height: 1.36;
}

.contact-card {
  display: grid;
  gap: 26px;
  padding: clamp(24px, 4vw, 38px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.footer-social,
.footer-meta,
.footer-locale {
  display: flex;
  align-items: center;
}

.footer-social {
  gap: 22px;
}

.footer-social a {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--fg);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-brand-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-xhs-icon rect {
  fill: #ff2442;
}

.footer-xhs-icon text {
  fill: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 7.6px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.footer-douyin-icon {
  overflow: visible;
}

.douyin-shadow-cyan {
  fill: #25f4ee;
  transform: translate(-1.3px, 1.2px);
}

.douyin-shadow-pink {
  fill: #fe2c55;
  transform: translate(1.2px, -1.1px);
}

.douyin-main {
  fill: var(--fg);
}

.footer-meta {
  gap: 14px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 560;
}

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

.footer-locale {
  min-height: 48px;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--fg);
  font-size: 15px;
  font-weight: 560;
}

.footer-locale span:last-child {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--fg);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(18px);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .evidence-layout,
  .team-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-brand-panel {
    min-height: 520px;
  }

  .hero-logo-wrap {
    place-items: center;
    right: 0;
    width: 100%;
  }

  .hero-logo {
    max-width: min(86%, 430px);
  }

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

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

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

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .updates-list a {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-post-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-post-card small {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    padding: 16px 14px;
  }

  h1 {
    font-size: clamp(39px, 11.4vw, 52px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(31px, 9.2vw, 44px);
  }

  .hero {
    padding-top: 48px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .narrative-grid {
    grid-template-columns: 1fr;
  }

  .narrative-grid article {
    min-height: 0;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .usecase-grid article {
    min-height: 0;
  }

  .ecosystem-card,
  .contact-card {
    padding: 20px;
  }

  .team-principles article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .evidence-steps li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 28px;
  }

  .hero-brand-panel {
    min-height: 400px;
  }

  .hero-logo-wrap {
    align-items: start;
    height: 380px;
    width: 100%;
    padding-top: 12px;
  }

  .hero-logo {
    max-width: min(92%, 360px);
    opacity: 0.5;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .article-shell {
    width: min(100% - 28px, 920px);
  }
}
