/* Article reading surface. Product homepage and gallery keep their own layout. */
.article-page {
  --article-container: 1440px;
  --figure-width: 1280px;
  --diagram-width: 1040px;
  --reading-width: 676px;
  --article-font: "OpenAI Sans", "OpenAI Sans Variable Scripts", "Lumina SF Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html body.article-page,
.article-page .article-hero h1,
.article-page .article-hero .dek,
.article-page .prose,
.article-page .prose :is(h2, h3, h4, blockquote) { font-family: var(--article-font); }
/* The article shell uses the same quiet navigation rail as the homepage. */
.article-page .site-header,
.collection-page .site-header {
  position: sticky; top: 12px; z-index: 20;
  width: calc(100% - 40px); max-width: 1120px; margin: 16px auto 0;
  padding: 10px 18px; border: 1px solid #17191e0a; border-radius: 18px;
  background: #ffffffb8; box-shadow: 0 4px 24px #17191e04;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.article-page .site-header .brand,
.collection-page .site-header .brand { gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.45px; }
.article-page .site-header .brand .product-mark,
.collection-page .site-header .brand .product-mark { width: 26px; height: 26px; }
.article-page .site-header nav,
.collection-page .site-header nav { gap: 24px; }
.article-page .site-header nav a,
.collection-page .site-header nav a {
  min-height: 0; padding: 6px 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--site-muted); font-size: 13px;
}
.article-page .site-header nav a:hover,
.article-page .site-header nav a[aria-current],
.collection-page .site-header nav a:hover,
.collection-page .site-header nav a[aria-current] { background: transparent; color: var(--site-ink); }
.article-page .site-header .theme-toggle,
.collection-page .site-header .theme-toggle {
  width: 32px; height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.article-page .site-header .theme-toggle:hover,
.collection-page .site-header .theme-toggle:hover { background: color-mix(in srgb, var(--site-ink) 6%, transparent); }
[data-theme=dark] .article-page .site-header,
[data-theme=dark] .collection-page .site-header { background: #11141ab8; border-color: #ffffff0c; box-shadow: inset 0 1px 0 #ffffff05, 0 4px 24px #00000010; }
.article-page .article-hero { max-width: var(--article-container); margin: 80px auto 72px; padding: 0 32px; }
.article-page .article-hero h1 { max-width: 800px; font-size: clamp(32px, 3.34vw, 48px); line-height: 1.16; font-weight: 500; letter-spacing: -.03em; margin: 28px auto; text-wrap: balance; }
.article-page .metadata { font-size: 14px; line-height: 1.4; font-weight: 500; gap: 16px; }
.article-page .dek { max-width: 598px; font-size: 17px; line-height: 28px; font-weight: 400; letter-spacing: -.01em; }
.article-page .hero-links { margin-top: 30px; gap: 24px; }
.article-page .cover { width: min(var(--figure-width), calc(100vw - 96px)); max-width: var(--figure-width); padding: 0; margin: 0 auto 96px; }
.article-page .cover-visual { height: auto; display: block; background: transparent; border-radius: 6px; }
.article-page .cover img { height: auto; max-height: none; width: 100%; }
.article-page .reading-layout { display: block; position: relative; width: 100%; max-width: var(--article-container); margin: 0 auto; padding: 0 32px 96px; }
.article-page .prose { width: 100%; max-width: var(--reading-width); margin: 0 auto; font-size: 17px; line-height: 28px; font-weight: 400; letter-spacing: -.01em; }
.article-page .prose > section { margin-bottom: 80px; scroll-margin-top: 100px; }
.article-page .article-anchor { display: block; height: 0; scroll-margin-top: 100px; }
.article-page .prose h2 { font-size: clamp(24px, calc(24px + 6 * ((100vw - 375px) / 1065)), 30px); line-height: 1.32; font-weight: 500; letter-spacing: -.01em; margin: 0 0 26px; text-wrap: balance; }
.article-page .prose h3 { font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.article-page .prose h3.article-subheading { font-size: 20px; line-height: 1.5; margin: 38px 0 18px; font-weight: 500; text-wrap: pretty; }
.article-page .prose h2 + .article-subheading { margin-top: 30px; }
.article-page .prose > .article-abstract {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px;
  margin: 0 0 76px; padding: 28px 0 30px;
  border-top: 1px solid color-mix(in srgb, var(--site-ink) 24%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--site-ink) 12%, transparent);
  background: transparent;
}
.article-page .article-abstract h2 { margin: 3px 0 0; font-size: 14px; line-height: 1.6; font-weight: 600; text-align: left; }
.article-page .article-abstract h2 span { display: block; margin-top: 5px; color: var(--site-muted); font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.article-page .article-abstract .abstract-text { margin: 0; font-size: 16px; line-height: 1.9; letter-spacing: 0; }
.article-page .article-abstract .abstract-keywords { margin: 20px 0 0; color: var(--site-muted); font-size: 12px; line-height: 1.9; }
.article-page .abstract-keywords > span { margin-right: 12px; color: var(--site-ink); }
@media (max-width: 600px) {
  .article-page .prose > .article-abstract { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 0 26px; margin-bottom: 56px; }
  .article-page .article-abstract h2 span { display: inline; margin: 0 0 0 12px; }
  .article-page .prose h3.article-subheading { font-size: 19px; }
}
.article-page .prose p { margin-bottom: 25px; }
.article-page .contents { position: absolute; left: 80px; top: 0; width: 200px; font-size: 12px; line-height: 1.7; }
.article-page .contents a { padding: 7px 0; border: 0; color: var(--site-muted); }
.article-page .contents a:hover, .article-page .contents a:focus-visible { color: var(--site-ink); text-decoration: underline; text-underline-offset: 4px; }
.article-page .inline-figure {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(var(--figure-width), calc(100vw - 112px)); max-width: var(--figure-width);
  margin: 56px 0; padding: 0;
}
.article-page .inline-figure img { border-radius: 6px; height: auto; width: 100%; }
.article-page .cover img,
.article-page .inline-figure:not(.external-figure) img { filter: saturate(.9); }
.article-page .external-figure img { display: block; }
[data-theme=dark] .article-page .external-monochrome img { filter: invert(1) grayscale(1); }
.article-page .external-original img { background: #fff; border-radius: 0; }
.article-page .external-original > a { display: block; max-width: 480px; margin-inline: auto; }
.article-page .inline-figure figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 13px; font-size: 13px; line-height: 1.7; }
.article-page .inline-figure .figure-caption-text,
.article-page .inline-figure .figure-source { display: block; }
.article-page .inline-figure .figure-source { color: var(--site-muted); font-size: 12px; letter-spacing: .005em; }
.article-page .inline-figure .figure-source a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
/* Editorial images stay wide; method diagrams use a quieter, smaller reading plate. */
.article-page .diagram-figure {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(var(--diagram-width), calc(100vw - 112px)); max-width: var(--diagram-width);
  margin: 48px 0; background: none; border: 0; box-shadow: none;
}
.article-page .diagram-figure .editorial-diagram { width: 100%; max-width: 100%; }
.article-page .diagram-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.article-page .diagram-scroll .editorial-diagram { min-width: 760px; display: block; }
.article-page [data-story-route="overview"] .diagram-scroll .editorial-diagram { min-width: 0; }
.article-page .diagram-mobile { display: none; }
@media (max-width: 600px) {
  .article-page [data-story-ready] .diagram-scroll { display: none; }
  .article-page .diagram-mobile { display: block; }
  .article-page .diagram-mobile-nodes { list-style: none; padding: 0; margin: 0; }
  .article-page .diagram-mobile-nodes li { margin: 0; padding: 0; }
  .article-page .diagram-mobile-nodes li + li::before { content: '↓'; display: block; height: 24px; text-align: center; color: var(--site-muted); font-size: 14px; line-height: 24px; }
  .article-page .diagram-mobile-nodes button { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 48px; padding: 10px 18px; border: 1px solid var(--site-line); border-radius: 8px; background: transparent; color: var(--site-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
  .article-page .diagram-mobile-nodes button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .article-page .diagram-mobile-nodes button:disabled { color: var(--site-muted); cursor: default; }
  .article-page .diagram-mobile-number { color: var(--site-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
  .article-page .diagram-mobile-feedback { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; color: var(--accent); font-size: 12px; line-height: 1.8; }
  .article-page .diagram-mobile-feedback span { display: block; }
}
.article-page .diagram-scroll:focus-visible { outline: 1px solid var(--site-muted); outline-offset: 4px; }
.editorial-diagram [data-semantic-icon],
.editorial-diagram [data-semantic-icon] [stroke]:not([stroke="none"]),
.editorial-diagram .diagram-icon,
.editorial-diagram .diagram-icon [stroke]:not([stroke="none"]) { stroke: var(--diagram-accent); }
.editorial-diagram { display: block; width: 100%; height: auto; background: none; --diagram-line: #596b79; --diagram-accent: #2863bc; }
[data-theme=dark] .editorial-diagram { --diagram-line: #a8b3c2; --diagram-accent: #79aaff; }
.editorial-diagram .diagram-text,
.editorial-diagram .diagram-text tspan {
  fill: var(--site-ink); font-family: var(--article-font) !important; font-style: normal;
  font-weight: 500; font-kerning: normal; text-anchor: middle; dominant-baseline: middle;
}
.editorial-diagram .diagram-kicker,
.editorial-diagram .diagram-kicker tspan { fill: var(--site-muted); }
.editorial-diagram .diagram-node { fill: none; stroke: var(--diagram-line); stroke-opacity: .6; }
.editorial-diagram .diagram-main { stroke: var(--diagram-line); }
.editorial-diagram .diagram-support { stroke: var(--diagram-line); }
.editorial-diagram polygon.diagram-main, .editorial-diagram polygon.diagram-support, .editorial-diagram .diagram-junction { fill: var(--diagram-line); }
.editorial-diagram .diagram-feedback { stroke: var(--diagram-accent); }
.article-page .table-scroll { margin: 40px 0; border-top: 1px solid var(--site-line); padding-top: 16px; }
.article-page .table-scroll table { table-layout: fixed; font-size: 15px; line-height: 1.8; }
.article-page .table-scroll th { background: transparent; color: var(--site-muted); font-size: 12px; padding: 14px 16px; }
.article-page .table-scroll td { padding: 20px 16px; }
.article-page .table-scroll tbody tr:nth-child(even) { background: transparent; }
.article-page .article-sources { margin-top: 80px; }
.article-page .article-sources li { padding-bottom: 18px; border-bottom: 1px solid var(--site-line); }
@media (max-width: 1120px) {
  .article-page .contents { position: static; width: 100%; max-width: var(--reading-width); margin: 0 auto 44px; padding: 0 0 22px; border-bottom: 1px solid var(--site-line); }
  .article-page .contents a { display: inline-block; margin: 0 20px 0 0; }
}
@media (max-width: 760px) {
  .article-page .site-header nav,
  .collection-page .site-header nav { width: auto; display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .article-page .site-header nav a,
  .collection-page .site-header nav a { flex-shrink: 0; min-height: 44px; padding: 8px 10px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .article-page .site-header,
  .collection-page .site-header { top: 8px; width: calc(100% - 24px); margin-top: 8px; padding: 10px 12px; border-radius: 14px; gap: 8px; }
  .article-page .site-header .brand,
  .collection-page .site-header .brand { font-size: 15px; }
  .article-page .site-header .brand .product-mark,
  .collection-page .site-header .brand .product-mark { width: 24px; height: 24px; }
  .article-page .site-header nav,
  .collection-page .site-header nav { gap: 12px; }
  .article-page .site-header nav a,
  .collection-page .site-header nav a { font-size: 12px; }
  .article-page .article-hero { margin: 54px auto 38px; padding: 0 20px; }
  .article-page .dek { font-size: 17px; }
  .article-page .cover { width: calc(100vw - 40px); max-width: none; margin-bottom: 44px; }
  .article-page .reading-layout { padding: 0 22px 48px; }
  .article-page .prose { font-size: 17px; line-height: 28px; }
  .article-page .prose > section { margin-bottom: 56px; }
  .article-page .inline-figure { width: calc(100vw - 40px); margin: 34px 0; }
  .article-page .inline-figure,
  .article-page .diagram-figure { width: calc(100vw - 40px); max-width: none; }
  .article-page .diagram-figure { left: 50%; transform: translateX(-50%); margin: 36px 0; }
  .article-page .contents { margin-bottom: 34px; }
}

/* Editorial motion pass: a smaller image rhythm and controls that expose the
   article's actual method. The ARW diagrams remain the geometry authority; the
   page only reveals their existing nodes and routes over time. */
.article-page {
  --cover-width: 1120px;
  --figure-width: 1040px;
  --diagram-width: 860px;
}
.article-page .cover {
  width: min(var(--cover-width), calc(100vw - 144px));
  max-width: var(--cover-width);
}
.article-page .inline-figure {
  width: min(var(--figure-width), calc(100vw - 144px));
  max-width: var(--figure-width);
  margin-top: 48px;
  margin-bottom: 48px;
}
.article-page .diagram-figure {
  width: min(var(--diagram-width), calc(100vw - 168px));
  max-width: var(--diagram-width);
  margin-top: 42px;
  margin-bottom: 42px;
}
.article-page .article-controls {
  width: min(var(--cover-width), calc(100vw - 144px));
  margin: 0 auto 88px;
  padding: 12px 0;
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--site-muted);
}
.article-page .article-progress {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.article-page .article-progress-track {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: var(--site-line);
}
.article-page .article-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--site-ink);
  transition: width 220ms ease-out;
}
.article-page .article-control-actions,
.article-page .figure-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-page .article-control-actions button,
.article-page .figure-controls button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--site-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.article-page .article-control-actions button span { margin-left: 5px; font-size: 12px; }
.article-page .article-control-actions button { position: relative; width: auto; min-width: 44px; min-height: 44px; flex-shrink: 0; padding: 0 9px; border-radius: 999px; }
.article-page .article-control-actions button:hover,
.article-page .article-control-actions button[aria-pressed="true"],
.article-page .figure-controls button:hover { color: var(--site-ink); background: color-mix(in srgb, var(--site-ink) 7%, transparent); }
.article-page .article-control-actions button:active,
.article-page .figure-controls button:active { transform: scale(.94); }
.article-page .article-control-actions svg,
.article-page .figure-controls svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-page .figure-controls {
  justify-content: flex-end;
  min-height: 34px;
  margin-top: 8px;
  color: var(--site-muted);
}
.article-page .figure-controls input[type="range"] {
  width: clamp(96px, 16vw, 160px);
  height: 20px;
  accent-color: var(--site-ink);
  cursor: ew-resize;
}
.article-page .figure-status {
  min-width: 3.5em;
  color: var(--site-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.article-page [data-figure-stage] {
  position: relative;
}
.article-page[data-motion-ready] [data-figure-stage] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1);
}
.article-page[data-motion-ready] .inline-figure,
.article-page[data-motion-ready] .diagram-figure {
  transform: translateX(-50%) translateY(16px);
}
.article-page[data-motion-ready] [data-figure-stage].is-visible {
  opacity: 1;
  transform: none;
}
.article-page[data-motion-ready] .inline-figure.is-visible,
.article-page[data-motion-ready] .diagram-figure.is-visible {
  transform: translateX(-50%) translateY(0);
}
.article-page[data-motion-ready] .article-hero {
  animation: editorial-arrive 720ms cubic-bezier(.16,1,.3,1) both;
}
.article-page[data-motion-ready] .cover {
  animation: editorial-arrive 820ms 110ms cubic-bezier(.16,1,.3,1) both;
}
.article-page .diagram-figure[data-figure-state="ready"] .figure-reveal-part {
  opacity: .12;
  transition: opacity 280ms ease, filter 280ms ease;
}
.article-page .diagram-figure[data-figure-state="ready"] .figure-reveal-part.is-revealed { opacity: 1; }
.article-page .diagram-figure[data-figure-state="ready"] .figure-reveal-path {
  stroke-dasharray: var(--figure-path-length);
  stroke-dashoffset: var(--figure-path-length);
  transition: stroke-dashoffset 520ms cubic-bezier(.16,1,.3,1), opacity 280ms ease;
}
.article-page .diagram-figure[data-figure-state="ready"] .figure-reveal-path.is-revealed { stroke-dashoffset: 0; }
.article-page .prose > section { transition: opacity 240ms ease, filter 240ms ease; }
.article-page.article-focus-mode .prose > section:not(.is-current) { opacity: .3; filter: saturate(.68); }
.article-page.article-focus-mode .prose > section.is-current { opacity: 1; filter: none; }
.article-page .contents a[aria-current="location"] { color: var(--site-ink); text-decoration: underline; text-underline-offset: 4px; }
body.article-page[data-article-motion="off"][data-motion-ready] [data-figure-stage],
body.article-page[data-article-motion="off"][data-motion-ready] .article-hero,
body.article-page[data-article-motion="off"][data-motion-ready] .cover {
  opacity: 1;
  transform: none;
  animation: none;
}
body.article-page[data-article-motion="off"][data-motion-ready] .inline-figure,
body.article-page[data-article-motion="off"][data-motion-ready] .diagram-figure {
  transform: translateX(-50%);
}
body.article-page[data-article-motion="off"] .figure-reveal-part,
body.article-page[data-article-motion="off"] .figure-reveal-path {
  opacity: 1;
  stroke-dashoffset: 0;
}
@keyframes editorial-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .article-page .inline-figure img { transition: transform 520ms cubic-bezier(.16,1,.3,1); }
  .article-page .inline-figure:hover img,
  .article-page .inline-figure:focus-within img { transform: scale(1.012); }
}
@media (max-width: 760px) {
  .article-page .cover,
  .article-page .inline-figure,
  .article-page .diagram-figure,
  .article-page .article-controls { width: calc(100vw - 40px); max-width: none; }
  .article-page .article-controls { margin-bottom: 52px; gap: 12px; }
  .article-page .article-progress { gap: 9px; grid-template-columns: auto minmax(35px, 1fr) auto; }
  .article-page .article-control-actions button { padding: 0 6px; }
  .article-page .figure-controls { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .article-page [data-figure-stage],
  .article-page .article-hero,
  .article-page .cover,
  .article-page .prose > section { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  /* Centering is layout, not motion; preserve it for every wide inline figure. */
  .article-page .inline-figure { transform: translateX(-50%) !important; }
  .article-page .figure-reveal-part,
  .article-page .figure-reveal-path { opacity: 1 !important; stroke-dashoffset: 0 !important; transition: none !important; }
  .article-page .article-progress-track > span { transition: none; }
}

/* Reference notation needs less visual weight than the architectural scene. */
.article-page .inline-figure.external-figure { width: min(640px, calc(100vw - 44px)); max-width: 640px; }

/* Source-bound guided diagrams: emphasis carries meaning; geometry never moves. */
.article-page .diagram-story[hidden] { display: none; }
.article-page .diagram-story { margin: 12px auto 0; max-width: 676px; border-top: 1px solid color-mix(in srgb, var(--site-ink) 14%, transparent); padding-top: 14px; }
.article-page .story-routes { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.article-page .story-routes button,
.article-page .story-step-controls button { font: inherit; font-size: 13px; line-height: 1.4; min-height: 44px; border: 0; padding: 6px 0; background: none; color: var(--site-muted); cursor: pointer; }
.article-page .story-routes button[aria-pressed="true"] { color: var(--site-ink); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1.5px; }
.article-page .story-routes button:last-child { margin-left: auto; }
.article-page .story-reading { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; margin: 18px 0 6px; min-height: 90px; }
.article-page .story-step { font-size: 12px; color: var(--site-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.article-page .diagram-story .story-title { font-size: 16px; font-weight: 500; line-height: 1.6; margin: 0 0 7px; }
.article-page .diagram-story .story-description { font-size: 14px; line-height: 1.8; margin: 0; color: var(--site-muted); }
.article-page .story-step-controls { display: flex; justify-content: space-between; }
.article-page .story-step-controls button:disabled,
.article-page .figure-controls button:disabled { opacity: .35; cursor: default; }
.article-page .diagram-story button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.article-page .diagram-figure[data-story-ready] .figure-reveal-part { opacity: .28; transition: opacity 220ms ease; }
.article-page .diagram-figure[data-story-ready] g[data-native-node] { opacity: .58; }
.article-page .diagram-figure[data-story-ready] .figure-reveal-part.is-revealed { opacity: 1; }
.article-page .diagram-figure[data-story-ready] .is-story-current > rect.diagram-node { stroke: var(--diagram-accent); stroke-width: 2.3px; }
.article-page .diagram-figure[data-story-ready] path.is-story-current { stroke: var(--diagram-accent); }
.article-page .story-traveller { fill: var(--diagram-accent); pointer-events: none; }
@media (max-width: 600px) {
  .article-page .story-routes { gap: 2px 15px; }
  .article-page .story-routes button:last-child { margin-left: 0; }
  .article-page .story-reading { grid-template-columns: 44px minmax(0,1fr); gap: 10px; min-height: 132px; }
  .article-page .diagram-story .story-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-page .diagram-figure[data-story-ready] .figure-reveal-part { opacity: .28 !important; transition: none; }
  .article-page .diagram-figure[data-story-ready] g[data-native-node] { opacity: .58 !important; }
  .article-page .diagram-figure[data-story-ready] .figure-reveal-part.is-revealed { opacity: 1 !important; }
}
body.article-page[data-article-motion="off"] .diagram-figure[data-story-ready] .figure-reveal-part { transition: none; }

/* Authored routes remain unchanged; transient effects are a separate SVG layer. */
.article-page .story-flow { pointer-events: none; }
.article-page .story-flow-trace { stroke: var(--diagram-accent); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.article-page .story-flow-halo { fill: var(--diagram-accent); opacity: .16; }
.article-page .diagram-figure[data-story-ready] g[role="button"] { cursor: pointer; outline: none; }
.article-page .diagram-figure[data-story-ready] g[aria-disabled="true"] { cursor: default; }
.article-page .diagram-figure[data-story-ready] g[role="button"]:focus-visible > rect,
.article-page .diagram-figure[data-story-ready] g[role="button"]:not([aria-disabled="true"]):hover > rect { stroke: var(--diagram-accent); stroke-width: 2.3; }
.article-page[data-article-motion="on"] .is-story-arrival > rect.diagram-node { animation: story-arrival 560ms ease-out; }
@keyframes story-arrival { 0% { stroke-width: 3.5; stroke-opacity: .55; } 100% { stroke-width: 2.3; stroke-opacity: 1; } }

.article-page a[data-article-image] { display: block; cursor: zoom-in; }
.article-page .cover-visual:has(> a[data-article-image]:focus-visible) {
  outline: 2px solid var(--site-ink);
  outline-offset: 4px;
}
.article-page a[data-image-viewer] { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.article-page a[data-image-viewer]::before { content: ''; position: absolute; z-index: 1; inset: auto 0 0; height: clamp(56px, 14%, 96px); background: linear-gradient(180deg, transparent 0%, rgb(5 9 16 / .12) 34%, rgb(5 9 16 / .62) 100%); pointer-events: none; }
.article-page a[data-image-viewer]::after { content: '放大查看 ↗'; position: absolute; z-index: 2; right: 16px; bottom: 14px; color: #fff; font-size: 12px; letter-spacing: .02em; text-shadow: 0 1px 8px #000; pointer-events: none; }
.article-page a[data-image-viewer] img { transition: transform 420ms cubic-bezier(.2,.7,.2,1); }
.article-page[data-article-motion="off"] a[data-image-viewer] img { transition: none; transform: none; }
.article-page #figure-beyond-resemblance,
.article-page #figure-our-commitment { max-width: 760px; margin-inline: auto; }
@media (hover: hover) and (pointer: fine) {
  .article-page[data-article-motion="on"] a[data-image-viewer]:hover img { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .article-page .is-story-arrival > rect.diagram-node { animation: none !important; }
  .article-page a[data-image-viewer] img { transition: none; transform: none !important; }
}
