:root {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(76, 132, 198, 0.18);
  --line-strong: rgba(76, 132, 198, 0.34);
  --text: #07111f;
  --muted: #58708f;
  --blue: #1e63ff;
  --cyan: #52c4ff;
  --deep: #0d2f78;
  --emerald: #12b892;
  --coral: #ff7a59;
  --amber: #ffb23f;
  --violet: #6b6dff;
  --rose: #ff6da8;
  --teal: #17c4ce;
  --glow: rgba(30, 99, 255, 0.16);
  --shadow: 0 20px 56px rgba(31, 77, 143, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1220px, calc(100% - 40px));
  --font-body: "Manrope", "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-mono: "Cascadia Code", "Fira Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(82, 196, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(30, 99, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 46%, #f7fbff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(121, 163, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 163, 219, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 88%);
}

body::after {
  background:
    radial-gradient(circle at 80% 24%, rgba(82, 196, 255, 0.09), transparent 15%),
    radial-gradient(circle at 10% 70%, rgba(30, 99, 255, 0.08), transparent 18%);
  animation: ambient-drift 20s ease-in-out infinite alternate;
}

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

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

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(31, 77, 143, 0.07);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 6px rgba(30, 99, 255, 0.1);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--deep);
  background: rgba(30, 99, 255, 0.08);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: start;
  padding: 48px 0 18px;
}

.hero-copy {
  padding-top: 24px;
}

.eyebrow,
.section-kicker,
.mini-label,
.quote-label,
.speaker-tag,
.source-type {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  color: #17316c;
}

.lead {
  max-width: 710px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-badges span,
.legacy-pills span {
  padding: 9px 13px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--deep);
  font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #3e8dff);
  box-shadow: 0 14px 30px rgba(30, 99, 255, 0.2);
}

.button-secondary {
  border: 1px solid rgba(30, 99, 255, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 32%);
  pointer-events: none;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(82, 196, 255, 0.18), transparent 26%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.interactive-panel:hover,
.interactive-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(30, 99, 255, 0.18);
  box-shadow: 0 24px 50px rgba(31, 77, 143, 0.12);
}

.interactive-panel:hover::before,
.interactive-panel:focus-within::before {
  opacity: 1;
}

.hero-quote {
  margin-top: 22px;
  padding: 20px 22px;
}

.quote-text {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: #19325d;
}

.hero-side {
  display: grid;
  gap: 22px;
}

.orbit-card {
  min-height: 480px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 250, 255, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(82, 196, 255, 0.22), transparent 25%);
  animation: card-float 8s ease-in-out infinite;
}

.orbit-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 135, 194, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 135, 194, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 90%);
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(30, 99, 255, 0.18);
  border-radius: 50%;
}

.orbit-ring-one {
  inset: 84px;
  animation: rotate-slow 22s linear infinite;
}

.orbit-ring-two {
  inset: 118px;
  border-style: dashed;
  animation: rotate-slow 18s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(30, 99, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(82, 196, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 245, 255, 0.92));
  box-shadow:
    0 0 0 18px rgba(30, 99, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  text-align: center;
}

.core-kicker,
.core-caption {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.orbit-core strong {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--deep);
}

.orbit-node {
  position: absolute;
  padding: 8px 12px;
  border: 1px solid rgba(30, 99, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #19325d;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(31, 77, 143, 0.1);
}

.node-1 {
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
}

.node-2 {
  top: 128px;
  right: 34px;
}

.node-3 {
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
}

.node-4 {
  right: 56px;
  bottom: 92px;
}

.node-5 {
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
}

.node-6 {
  bottom: 108px;
  left: 42px;
}

.node-7 {
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
}

.speaker-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.speaker-card img {
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(31, 77, 143, 0.18);
}

.speaker-meta h2 {
  margin: 8px 0 6px;
  font-size: 1.38rem;
  line-height: 1.1;
}

.speaker-credit {
  margin: 0;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(30, 99, 255, 0.08);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.section {
  margin-top: 76px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.section-heading h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.72rem, 3.5vw, 2.68rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.82;
}

.framework-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-top: 24px;
}

.legacy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.framework-note {
  margin: 18px 0 0;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--muted);
}

.framework-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  min-height: 92px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 244, 255, 0.86));
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expanded-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.expanded-stack div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #17316c;
  font-size: 0.92rem;
  font-weight: 600;
}

.expanded-stack span,
.layer-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(82, 196, 255, 0.18), rgba(30, 99, 255, 0.14));
  color: var(--blue);
  font-weight: 800;
}

.summary-banner {
  margin-top: 18px;
  padding: 22px 24px;
}

.summary-banner p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.8;
  color: #17316c;
}

.stats-grid,
.layers-grid,
.sources-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.stat-card,
.layer-card,
.source-card,
.perspective-card,
.closing-card,
.flow-card {
  padding: 22px;
}

.stat-value {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--deep);
}

.stat-title {
  margin: 10px 0 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.stat-desc,
.source-card p,
.layer-card p,
.flow-summary p,
.perspective-card li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

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

.layer-card {
  min-height: 100%;
}

.layer-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.layer-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.layer-card p {
  margin: 16px 0 0;
}

.layer-line {
  color: #17316c;
  font-weight: 600;
}

.flow-card {
  margin-top: 28px;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 1px;
  background: rgba(30, 99, 255, 0.24);
}

.flow-step:last-child::after {
  display: none;
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
}

.flow-step span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.flow-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 99, 255, 0.1);
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.perspective-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.perspective-card li + li {
  margin-top: 10px;
}

.closing-card {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 245, 255, 0.95)),
    radial-gradient(circle at top right, rgba(82, 196, 255, 0.2), transparent 32%);
}

.closing-line {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.72;
  color: #17316c;
}

.closing-question {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

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

.source-card h3 {
  margin: 10px 0 10px;
  font-size: 1.16rem;
}

.source-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
}

.source-card.muted {
  border-style: dashed;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 0 14px;
  color: var(--muted);
}

.footer a {
  color: var(--blue);
  font-weight: 700;
}

.article-switcher {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}

.article-feature .page-shell {
  position: relative;
}

.article-feature {
  background:
    radial-gradient(circle at 18% 12%, rgba(82, 196, 255, 0.24), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(30, 99, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, #eef6ff 42%, #f7fbff 100%);
}

.switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.switch-link.is-active {
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.12), rgba(82, 196, 255, 0.14));
  box-shadow: 0 14px 30px rgba(30, 99, 255, 0.12);
}

.reading-progress {
  position: sticky;
  top: 82px;
  z-index: 18;
  width: 100%;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(30, 99, 255, 0.08);
  overflow: hidden;
}

.reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f86ff, #6fcfff);
  box-shadow: 0 0 24px rgba(63, 134, 255, 0.34);
  transition: width 140ms ease-out;
}

.feature-hero .hero-copy {
  max-width: 720px;
}

.feature-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.feature-meta-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #24406f;
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-intro-section {
  margin-top: 40px;
}

.article-feature {
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 196, 206, 0.16), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(107, 109, 255, 0.14), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(255, 122, 89, 0.1), transparent 22%),
    linear-gradient(180deg, #f9fcff 0%, #edf5ff 40%, #f6fbff 100%);
}

.article-feature .topbar {
  border-color: rgba(30, 99, 255, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(23, 65, 122, 0.08);
}

.article-feature .switch-link,
.article-feature .topnav a,
.article-feature .hero-badges span,
.article-feature .feature-meta-strip span,
.article-feature .button {
  font-family: var(--font-body);
}

.article-feature .switch-link {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-feature .switch-link:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 99, 255, 0.2);
  box-shadow: 0 16px 26px rgba(30, 99, 255, 0.1);
}

.article-feature .switch-link.is-active {
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.14), rgba(82, 196, 255, 0.2));
}

.article-feature .reading-progress {
  height: 5px;
  background: rgba(30, 99, 255, 0.1);
}

.article-feature .reading-progress-bar {
  background: linear-gradient(90deg, #1462ff, #19c4ce 54%, #78e6ff 100%);
}

.article-feature .hero {
  align-items: center;
  gap: 40px;
}

.article-feature .hero-copy > *,
.article-feature .hero-side > * {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(12px);
}

.article-feature.is-ready .hero-copy > *,
.article-feature.is-ready .hero-side > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 720ms ease,
    transform 720ms ease,
    filter 720ms ease;
}

.article-feature.is-ready .hero-copy > :nth-child(1) {
  transition-delay: 60ms;
}

.article-feature.is-ready .hero-copy > :nth-child(2) {
  transition-delay: 130ms;
}

.article-feature.is-ready .hero-copy > :nth-child(3) {
  transition-delay: 220ms;
}

.article-feature.is-ready .hero-copy > :nth-child(4) {
  transition-delay: 290ms;
}

.article-feature.is-ready .hero-copy > :nth-child(5) {
  transition-delay: 360ms;
}

.article-feature.is-ready .hero-copy > :nth-child(6) {
  transition-delay: 430ms;
}

.article-feature.is-ready .hero-side > :nth-child(1) {
  transition-delay: 240ms;
}

.article-feature.is-ready .hero-side > :nth-child(2) {
  transition-delay: 360ms;
}

.article-feature .hero h1,
.article-feature .section-heading h2,
.article-feature .editorial-note h2,
.article-feature .essay-headline h3,
.article-feature .layer-essay h3,
.article-feature .dependency-console-copy h2,
.article-feature .dependency-panel h3,
.article-feature .speaker-meta h2,
.article-feature .directory-card h3 {
  font-family: var(--font-display);
}

.article-feature .hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.article-feature .hero h1 span {
  background: linear-gradient(135deg, #145dff 0%, #00b7e8 46%, #4a7aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-feature .lead {
  max-width: 690px;
  font-size: 1rem;
  color: #4c6484;
}

.article-feature .feature-meta-strip span,
.article-feature .hero-badges span {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(30, 99, 255, 0.12);
  box-shadow: 0 12px 24px rgba(32, 76, 138, 0.08);
  backdrop-filter: blur(12px);
  animation: badge-drift 8s ease-in-out infinite;
}

.article-feature .feature-meta-strip span:nth-child(2),
.article-feature .hero-badges span:nth-child(2),
.article-feature .hero-badges span:nth-child(5) {
  animation-delay: -2s;
}

.article-feature .feature-meta-strip span:nth-child(3),
.article-feature .hero-badges span:nth-child(3),
.article-feature .hero-badges span:nth-child(6) {
  animation-delay: -4s;
}

.article-feature .feature-meta-strip span:nth-child(4),
.article-feature .hero-badges span:nth-child(4),
.article-feature .hero-badges span:nth-child(7) {
  animation-delay: -6s;
}

.article-feature .button-primary {
  background: linear-gradient(135deg, #105cff 0%, #29c8ff 62%, #85ebff 100%);
  box-shadow: 0 18px 32px rgba(20, 92, 255, 0.24);
}

.article-feature .button-secondary {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.article-feature .hero-quote,
.article-feature .editorial-note,
.article-feature .chapter-snapshot,
.article-feature .framework-card,
.article-feature .flow-card,
.article-feature .perspective-card,
.article-feature .closing-card,
.article-feature .references-list {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.92)),
    radial-gradient(circle at top right, rgba(82, 196, 255, 0.16), transparent 28%);
}

.article-feature .orbit-card {
  background:
    radial-gradient(circle at 20% 22%, rgba(23, 196, 206, 0.2), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(107, 109, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.92));
  box-shadow: 0 28px 60px rgba(30, 71, 130, 0.15);
}

.article-feature .orbit-node {
  backdrop-filter: blur(10px);
}

.article-feature .speaker-card {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
}

.article-feature .speaker-card img {
  border: 3px solid rgba(255, 255, 255, 0.84);
}

.article-feature .social-links a {
  background: rgba(20, 92, 255, 0.08);
  transition: transform 180ms ease, background-color 180ms ease;
}

.article-feature .social-links a:hover {
  transform: translateY(-2px);
  background: rgba(20, 92, 255, 0.14);
}

.dependency-console {
  margin-top: 20px;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.14), transparent 22%),
    radial-gradient(circle at bottom left, rgba(23, 196, 206, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.95));
}

.dependency-console-copy {
  max-width: 760px;
}

.dependency-console-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.48rem, 2.6vw, 2.18rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--deep);
}

.dependency-console-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.84;
}

.dependency-console-layout {
  display: grid;
  grid-template-columns: minmax(240px, 286px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.dependency-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tone-compute {
  --tone: var(--blue);
  --tone-soft: rgba(30, 99, 255, 0.2);
}

.tone-data {
  --tone: var(--emerald);
  --tone-soft: rgba(18, 184, 146, 0.18);
}

.tone-algorithm {
  --tone: var(--violet);
  --tone-soft: rgba(107, 109, 255, 0.18);
}

.tone-tools {
  --tone: var(--coral);
  --tone-soft: rgba(255, 122, 89, 0.18);
}

.tone-agent {
  --tone: var(--amber);
  --tone-soft: rgba(255, 178, 63, 0.22);
}

.tone-context {
  --tone: var(--teal);
  --tone-soft: rgba(23, 196, 206, 0.18);
}

.tone-governance {
  --tone: var(--rose);
  --tone-soft: rgba(255, 109, 168, 0.18);
}

.dependency-tab {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.dependency-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: var(--tone);
  opacity: 0.4;
  transition: opacity 180ms ease;
}

.dependency-tab strong {
  display: block;
  font-size: 0.97rem;
}

.dependency-tab span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.dependency-tab:hover,
.dependency-tab:focus-visible {
  transform: translateX(4px);
  border-color: var(--tone-soft);
  box-shadow: 0 16px 28px rgba(32, 76, 138, 0.08);
  outline: none;
}

.dependency-tab.is-active {
  border-color: var(--tone-soft);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 245, 255, 0.96));
  box-shadow: 0 18px 34px rgba(32, 76, 138, 0.1);
}

.dependency-tab.is-active::before {
  opacity: 1;
}

.dependency-stage {
  display: grid;
  gap: 16px;
}

.dependency-meter {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dependency-meter span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 99, 255, 0.12), rgba(82, 196, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  opacity: 0.42;
  transform: scaleX(0.78);
  transform-origin: left center;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.dependency-meter span.is-on {
  background: linear-gradient(90deg, #155dff, #18c7d0 55%, #7de7ff 100%);
  box-shadow: 0 0 18px rgba(24, 115, 255, 0.22);
  opacity: 1;
  transform: scaleX(1);
}

.dependency-panel-stack {
  position: relative;
}

.dependency-panel {
  display: none;
  padding: 24px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92)),
    radial-gradient(circle at top right, var(--tone-soft), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dependency-panel[hidden] {
  display: none !important;
}

.dependency-panel.is-active {
  display: block;
  animation: panel-enter 420ms ease;
}

.dependency-panel-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tone);
}

.dependency-panel h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.34rem, 2vw, 1.78rem);
  line-height: 1.18;
  color: var(--deep);
}

.dependency-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.84;
}

.dependency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dependency-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.editorial-note,
.chapter-snapshot {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92)),
    radial-gradient(circle at top right, rgba(82, 196, 255, 0.16), transparent 28%);
}

.editorial-note h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.36rem, 2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--deep);
}

.editorial-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.82;
}

.chapter-snapshot-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chapter-snapshot-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 99, 255, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: #17316c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chapter-snapshot-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(82, 196, 255, 0.2), rgba(30, 99, 255, 0.14));
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.essay-headline h3,
.directory-card h3 {
  margin: 10px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--deep);
}

.essay-card {
  margin-top: 26px;
}

.essay-body {
  max-width: 920px;
}

.essay-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.86;
}

.essay-body p + p {
  margin-top: 18px;
}

.citation {
  margin-left: 4px;
  color: var(--blue);
  font-weight: 700;
}

.micro-points {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.micro-points li {
  line-height: 1.8;
}

.micro-points li + li {
  margin-top: 8px;
}

.layer-essays {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.layers-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.chapter-rail {
  position: sticky;
  top: 136px;
  display: grid;
  gap: 10px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92)),
    radial-gradient(circle at top center, rgba(82, 196, 255, 0.14), transparent 34%);
}

.chapter-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chapter-link:hover,
.chapter-link.is-current {
  color: var(--deep);
  background: rgba(30, 99, 255, 0.08);
  transform: translateX(2px);
}

.layer-essay {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 255, 0.92)),
    radial-gradient(circle at top right, rgba(82, 196, 255, 0.18), transparent 28%);
}

.layer-essay-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.layer-essay-head > span,
.outline-item > span,
.source-page-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(82, 196, 255, 0.22), rgba(30, 99, 255, 0.16));
  color: var(--blue);
  font-weight: 800;
}

.layer-essay-tag {
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.layer-essay h3 {
  margin: 6px 0 0;
  font-size: clamp(1.24rem, 2.1vw, 1.72rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--deep);
}

.layer-closing {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 99, 255, 0.1);
  color: #17316c;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.72;
}

.article-feature .citation {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 92, 255, 0.08);
}

.article-feature .stats-grid .stat-card:nth-child(1) {
  box-shadow:
    inset 0 4px 0 var(--blue),
    var(--shadow);
}

.article-feature .stats-grid .stat-card:nth-child(2) {
  box-shadow:
    inset 0 4px 0 var(--emerald),
    var(--shadow);
}

.article-feature .stats-grid .stat-card:nth-child(3) {
  box-shadow:
    inset 0 4px 0 var(--violet),
    var(--shadow);
}

.article-feature .stats-grid .stat-card:nth-child(4) {
  box-shadow:
    inset 0 4px 0 var(--coral),
    var(--shadow);
}

.article-feature .chapter-rail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.94)),
    radial-gradient(circle at top center, rgba(23, 196, 206, 0.12), transparent 34%);
}

.article-feature #layer-01 {
  --layer-accent: var(--blue);
  --layer-soft: rgba(30, 99, 255, 0.16);
}

.article-feature #layer-02 {
  --layer-accent: var(--emerald);
  --layer-soft: rgba(18, 184, 146, 0.16);
}

.article-feature #layer-03 {
  --layer-accent: var(--violet);
  --layer-soft: rgba(107, 109, 255, 0.16);
}

.article-feature #layer-04 {
  --layer-accent: var(--coral);
  --layer-soft: rgba(255, 122, 89, 0.16);
}

.article-feature #layer-05 {
  --layer-accent: var(--amber);
  --layer-soft: rgba(255, 178, 63, 0.2);
}

.article-feature #layer-06 {
  --layer-accent: var(--teal);
  --layer-soft: rgba(23, 196, 206, 0.16);
}

.article-feature #layer-07 {
  --layer-accent: var(--rose);
  --layer-soft: rgba(255, 109, 168, 0.16);
}

.article-feature .layer-essay {
  box-shadow:
    inset 4px 0 0 var(--layer-accent, rgba(30, 99, 255, 0.14)),
    var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.93)),
    radial-gradient(circle at top right, var(--layer-soft, rgba(82, 196, 255, 0.18)), transparent 30%);
}

.article-feature .layer-essay-head > span {
  color: var(--layer-accent, var(--blue));
  background: linear-gradient(135deg, var(--layer-soft, rgba(82, 196, 255, 0.22)), rgba(255, 255, 255, 0.86));
  box-shadow: 0 14px 24px var(--layer-soft, rgba(82, 196, 255, 0.12));
}

.article-feature .layer-essay-tag {
  color: var(--layer-accent, var(--blue));
}

.article-feature .layer-closing {
  border-top-color: var(--layer-soft, rgba(30, 99, 255, 0.12));
}

.article-feature .chapter-pullquote {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.94)),
    radial-gradient(circle at right center, rgba(23, 196, 206, 0.16), transparent 34%);
}

.article-feature .flow-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.86));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-feature .flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 92, 255, 0.2);
  box-shadow: 0 18px 28px rgba(32, 76, 138, 0.08);
}

.article-feature .perspective-card ul {
  color: var(--muted);
}

.article-feature .closing-card {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(232, 245, 255, 0.95));
}

.article-feature .references-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chapter-pullquote {
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.94)),
    radial-gradient(circle at right center, rgba(82, 196, 255, 0.18), transparent 34%);
}

.chapter-pullquote .quote-text {
  margin-top: 10px;
  max-width: 760px;
}

.references-list {
  margin-top: 28px;
  padding: 26px 28px;
}

.references-list ol {
  margin: 0;
  padding-left: 24px;
}

.references-list li + li {
  margin-top: 14px;
}

.references-list a {
  color: var(--deep);
  line-height: 1.8;
}

.hub-mini-map {
  padding: 24px;
}

.directory-grid,
.outline-grid,
.source-page-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.directory-card {
  padding: 24px;
}

.page-summary,
.meta-row {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.76;
}

.directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.directory-links a,
.source-page-item a {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 700;
}

.structure-code {
  margin: 0;
  padding: 20px;
  border-radius: 22px;
  background: rgba(11, 29, 62, 0.94);
  color: #d7ecff;
  overflow: auto;
}

.structure-code code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
}

.subpage-main {
  padding-top: 12px;
}

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

.outline-item,
.source-page-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.outline-item h3,
.source-page-item h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--deep);
}

.outline-item p,
.source-page-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.74;
}

.hub-hero-copy {
  max-width: 700px;
}

.hub-hero .hero-quote {
  max-width: 640px;
}

.hub-mini-map .expanded-stack {
  margin-top: 12px;
}

.directory-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92)),
    radial-gradient(circle at top right, rgba(82, 196, 255, 0.16), transparent 30%);
}

.directory-links a::after,
.source-page-item a::after {
  content: "↗";
  margin-left: 8px;
  font-size: 0.84em;
}

.site-home .hero-copy,
.site-home .hero-side,
.site-home .topbar {
  opacity: 0;
  transform: translateY(18px);
}

.site-home.is-ready .topbar {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.site-home.is-ready .hero-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease 80ms, transform 620ms ease 80ms;
}

.site-home.is-ready .hero-side {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease 180ms, transform 620ms ease 180ms;
}

@keyframes badge-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 1%, 0) scale(1.04);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .hero,
  .framework-card,
  .perspective-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .feature-intro-grid,
  .layers-layout {
    grid-template-columns: 1fr;
  }

  .dependency-console-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .framework-arrow {
    width: 100%;
    min-height: 68px;
  }

  .chapter-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-step:nth-child(3)::after,
  .flow-step:last-child::after {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100%, calc(100% - 24px));
    --radius-xl: 24px;
  }

  .topbar {
    top: 10px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .topnav {
    display: none;
  }

  .hero {
    gap: 22px;
    padding-top: 34px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .article-feature .hero h1 {
    max-width: none;
  }

  .lead,
  .section-heading p:last-child,
  .quote-text,
  .summary-banner p,
  .closing-line,
  .closing-question {
    line-height: 1.75;
  }

  .speaker-card {
    align-items: flex-start;
  }

  .speaker-card img {
    width: 94px;
    height: 94px;
    border-radius: 22px;
  }

  .orbit-card {
    min-height: 420px;
    padding: 18px;
    animation-duration: 10s;
  }

  .feature-meta-strip {
    gap: 8px;
  }

  .feature-meta-strip span {
    font-size: 0.76rem;
  }

  .dependency-console {
    padding: 20px;
  }

  .dependency-tabs {
    grid-template-columns: 1fr;
  }

  .dependency-meter {
    gap: 6px;
  }

  .dependency-panel {
    padding: 20px;
  }

  .orbit-core {
    width: 156px;
    height: 156px;
  }

  .node-2,
  .node-6 {
    max-width: 120px;
  }

  .node-3,
  .node-7 {
    top: auto;
    bottom: 150px;
    transform: none;
  }

  .node-3 {
    right: 18px;
  }

  .node-7 {
    left: 18px;
  }

  .stats-grid,
  .layers-grid,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .article-switcher,
  .directory-links {
    flex-direction: column;
    align-items: stretch;
  }

  .layer-essay-head,
  .outline-item,
  .source-page-item {
    grid-template-columns: 1fr;
  }

  .chapter-rail {
    grid-template-columns: 1fr;
  }

  .flow-step::after {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
