/* Readability pass: enlarge supporting copy without changing display headings. */
.site-header .header-cta,
.hero-lede,
.release-line {
  display: none !important;
}

.brand,
.site-nav a,
.button,
.text-link,
.overline,
.section-index,
.claim-number,
.demo-copy > span,
.utility-label,
.visual-topline,
.pillar-topline,
.citation-placeholder > span {
  font-size: 0.78rem;
}

.metric-card p,
.pillar-card > p,
.pillar-detail,
.evidence-copy > p:not(.claim-number),
.evaluation-copy > p:not(.claim-number),
.demo-band-heading > p,
.demo-copy p,
.task-list > span,
.closed-loop-metrics span,
.resource-copy > p {
  font-size: 0.92rem;
}

.metric-card h2,
.evidence-callout strong,
.tier-copy strong {
  font-size: 0.9rem;
}

.metric-value-line > span,
.signal {
  font-size: 0.7rem;
}

.metric-card:nth-child(2) .metric-value-line {
  flex-wrap: nowrap;
}

.metric-card:nth-child(2) .metric-value-line > span {
  white-space: nowrap;
}

#method .split-heading {
  display: block;
}

#method .split-heading h2 {
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 3.45rem);
  white-space: nowrap;
}

.method-figure .visual-topline span:last-child {
  white-space: nowrap;
}

.afd-inline-symbol {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
}

.afd-inline-symbol sub {
  position: relative;
  top: 0.25em;
  font-size: 0.68em;
  line-height: 1;
}

.afd-anchor-lock > .afd-inline-symbol {
  flex: none;
  font-size: 1.15em;
}

.afd-future > .afd-kicker > .afd-inline-symbol {
  color: inherit;
  font-family: Georgia, serif;
  font-size: 1.2em;
  font-style: italic;
  font-weight: 600;
}

.benchmark-proof span,
.micro-stats dt,
.delta-list dt,
.evidence-callout span,
.demo-band-heading > div > span,
.video-status,
.protocol-band > div,
.task-list b,
.agreement-header,
.tier-index,
.tier-copy small,
.tier-primary span,
.tier-details,
.resource-link > span,
.site-footer,
.lightbox-content p,
.lightbox-close,
.paper-figure figcaption {
  font-size: 0.7rem;
}

.micro-stats dd small,
.delta-list .delta-badge,
.outcome-matrix .matrix-axis,
.outcome-matrix strong small {
  font-size: 0.62rem;
}

/* Labels inside the system and framework diagrams were especially small. */
.aso {
  --small-type-floor: 10px;
}

.afd-shell {
  --small-type-floor: 10px;
}

.aso-kicker,
.aso-node-label,
.aso-condition-chip,
.aso-node-copy,
.aso-scale-caption,
.aso-memory-caption,
.aso-footer-note,
.afd-kicker,
.afd-eyebrow,
.afd-memory-budget,
.afd-process-row,
.afd-prefix small,
.afd-anchor-lock,
.afd-kv-legend,
.afd-scale-stage small,
.afd-scale-caption,
.afd-transformer-cell,
.afd-memory-flow,
.afd-aging-lane,
.afd-alignment-stack,
.afd-training-rail {
  font-size: var(--small-type-floor, 8px);
}

.aso-node-head,
.aso-condition-lines,
.aso-condition-chip,
.aso-condition-chip b,
.aso-condition-chip em,
.aso-scale-frame,
.aso-memory-heading,
.aso-memory-stage,
.aso-training {
  font-size: var(--small-type-floor, 8px);
}

.aso-future-strip span::after {
  font-size: 9px;
}

/* System Overview: keep the lower memory/alignment labels crisp and readable. */
.aso-memory {
  min-height: 92px;
  padding: 9px;
}

.aso-memory-heading,
.aso-memory-stage {
  padding: 10px 12px;
}

.aso-memory-heading span {
  color: #b8b9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.aso-memory-heading small,
.aso-memory-stage span {
  color: #c1c8cf;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0;
}

.aso-training {
  min-height: 46px;
  padding-block: 10px;
}

.aso-training > span {
  color: #ffc27f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aso-training p {
  color: #c1c8cf;
  font-size: 10px;
  font-weight: 550;
}

.hero-visual:has(arwm-system-overview) .signal {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.hero-visual:has(arwm-system-overview) .signal-key {
  padding-top: 14px;
}

@media (min-width: 1121px) {
  .hero-grid {
    grid-template-columns: minmax(440px, 0.84fr) minmax(540px, 1.16fr);
    gap: clamp(22px, 1.8vw, 34px);
  }

  #hero-title {
    white-space: normal;
    font-size: clamp(3.4rem, 6.2vw, 6.5rem);
  }

  #hero-title .arwm-title-model {
    white-space: nowrap;
  }

  #hero-title .arwm-title-main {
    white-space: normal;
    font-size: .49em;
  }
}

.hero-actions .button-primary span {
  font-size: 0.7rem;
}

.hero-copy .overline:has(.hero-overline-copy) {
  align-items: center;
  margin-bottom: clamp(20px, 2.4vw, 34px);
}

.hero-overline-copy {
  display: block;
  line-height: 1;
}

.hero-copy .overline:has(.hero-overline-copy) .live-dot {
  margin-top: 0;
}

/* Make the WALL-SS identity the dominant first read without changing the
   supporting paper title or the system overview geometry. */
.site-header .brand {
  font-size: 1rem;
  letter-spacing: .105em;
}

#hero-title .arwm-title-model {
  font-size: 1.28em;
  font-weight: 590;
  line-height: .82;
  letter-spacing: -.075em;
}

@media (max-width: 620px) {
  .site-header .brand {
    font-size: .88rem;
  }

  #hero-title .arwm-title-model {
    font-size: 1.08em;
    line-height: .86;
  }
}

/* Final citation block with copy-ready BibTeX. */
.citation-section {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 108px);
}

.citation-panel {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(119, 242, 178, .2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(119, 242, 178, .1), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    #090b0b;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .26);
}

.citation-heading .section-index {
  margin-bottom: 18px;
}

.citation-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.8vw, 4rem);
  font-weight: 470;
  line-height: 1;
  letter-spacing: -.05em;
}

.citation-heading > p:last-child {
  max-width: 330px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.citation-code-wrap {
  position: relative;
  min-width: 0;
}

.citation-code-wrap pre {
  min-height: 270px;
  margin: 0;
  padding: 58px 22px 22px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 15px;
  background: #050707;
  color: #dce7e2;
  line-height: 1.65;
  tab-size: 2;
}

.citation-code-wrap code {
  font-family: IBM Plex Mono, SFMono-Regular, Consolas, monospace;
  font-size: .73rem;
  white-space: pre;
}

.citation-copy {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(119, 242, 178, .3);
  border-radius: 9px;
  color: var(--action);
  background: rgba(119, 242, 178, .08);
  cursor: pointer;
  font-family: IBM Plex Mono, SFMono-Regular, Consolas, monospace;
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .055em;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.citation-copy:hover {
  border-color: rgba(119, 242, 178, .65);
  background: rgba(119, 242, 178, .14);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .citation-panel {
    grid-template-columns: 1fr;
  }

  .citation-heading > p:last-child {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .citation-panel {
    padding: 22px;
    border-radius: 17px;
  }

  .citation-code-wrap code {
    font-size: .67rem;
  }
}

.hero-team-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: IBM Plex Mono, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  font-weight: 560;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.arwm-chart-kicker,
.arwm-chart-axis-label,
.arwm-chart-legend,
.arwm-chart-note,
.arwm-tooltip,
.aps-kicker,
.aps-stage-label,
.aps-caption {
  font-size: 12px;
}

@media (max-width: 620px) {
  .overline,
  .visual-topline {
    font-size: 0.72rem;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  #method .split-heading h2 {
    font-size: clamp(1.45rem, 6.8vw, 2rem);
  }
}

/* Method diagram: give the action chunk room and make fine labels readable. */
.afd-action-scales {
  position: relative;
  z-index: 2;
  margin-top: 18px;
}

.afd-vae-block small,
.afd-action-scales small,
.afd-memory-cell small,
.afd-memory-cell > span,
.afd-memory-flow i,
.afd-anchor-lock i,
.afd-aging-lane,
.afd-alignment-labels,
.afd-future-strip figcaption,
.afd-training-rail {
  font-size: 9px;
}

.afd-scale-stage small,
.afd-scale-caption,
.afd-transformer-cell,
.afd-alignment-stack,
.afd-footer-key {
  font-size: 10px;
}

.afd-alignment-signals span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 7px 6px;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

@media (min-width: 441px) {
  .afd-alignment-stack > span {
    position: relative;
    display: block;
    height: 28px;
    font-size: 0;
  }

  .afd-alignment-stack > span::before {
    position: absolute;
    top: 2px;
    bottom: 7px;
    left: 50%;
    width: 2px;
    content: "";
    background: var(--afd-align);
    transform: translateX(-50%);
  }

  .afd-alignment-stack > span::after {
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 8px;
    height: 8px;
    content: "";
    border-right: 2px solid var(--afd-align);
    border-bottom: 2px solid var(--afd-align);
    transform: translateX(-50%) rotate(45deg);
  }
}

/* Experiments: concise headings and single-line benchmark score. */
.action-evidence .benchmark-proof strong {
  white-space: nowrap;
}

.arwm-data-title:empty {
  display: none;
}

.arwm-data-card[data-kind="rollout-dynamics"] .arwm-data-eyebrow,
.arwm-data-card[data-kind="perceptual-quality"] .arwm-data-eyebrow {
  margin-bottom: 0;
  font-size: clamp(16px, 1.4vw, 21px);
  letter-spacing: .06em;
  line-height: 1.2;
}

.arwm-data-card[data-kind="perceptual-quality"] .arwm-data-eyebrow {
  text-transform: none;
}

/* Action-fidelity summary: one balanced metric row around the centered claim. */
@media (min-width: 901px) {
  .action-evidence .evidence-copy {
    grid-template-columns: minmax(360px, 1.55fr) repeat(3, minmax(145px, .55fr));
    grid-template-rows: auto minmax(190px, auto);
    column-gap: 12px;
    row-gap: 18px;
    align-items: stretch;
  }

  .action-evidence .evidence-copy > .claim-number {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .action-evidence .evidence-copy > h3 {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    max-width: 650px;
    margin: 0;
    padding-right: clamp(20px, 3vw, 48px);
  }

  .action-evidence .benchmark-proof {
    grid-column: 2;
    grid-row: 2;
    min-height: 190px;
    padding: clamp(18px, 2vw, 25px);
  }

  .action-evidence .micro-stats {
    grid-column: 3 / 5;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    min-height: 190px;
  }

  .action-evidence .micro-stats > div {
    min-height: 190px;
    padding: clamp(17px, 1.8vw, 22px);
  }
}

/* Long-horizon charts: lift micro labels by roughly 1–2 px. */
.horizon-evidence .arwm-data-subtitle {
  font-size: 14px;
}

.horizon-evidence .arwm-legend-btn,
.horizon-evidence .arwm-axis-text {
  font-size: 12px;
}

.horizon-evidence .arwm-panel-title {
  font-size: 14px;
}

.horizon-evidence .arwm-panel-direction {
  font-size: 11px;
}

.horizon-evidence .arwm-tooltip,
.horizon-evidence .arwm-tooltip strong {
  font-size: 12px;
}

/* Multiview consistency chart: match the improved experiment-chart legibility. */
.arwm-data-card[data-kind="multiview-consistency"] .arwm-data-eyebrow {
  font-size: 14px;
}

.arwm-data-card[data-kind="multiview-consistency"] .arwm-data-title {
  font-size: 18px;
}

.arwm-data-card[data-kind="multiview-consistency"] .arwm-data-subtitle {
  font-size: 14px;
}

.arwm-data-card[data-kind="multiview-consistency"] .arwm-axis-text {
  font-size: 12px;
}

.arwm-data-card[data-kind="multiview-consistency"] .arwm-panel-title {
  font-size: 14px;
}

.arwm-data-card[data-kind="multiview-consistency"] .arwm-panel-direction {
  font-size: 11px;
}

.arwm-data-card[data-kind="multiview-consistency"] .arwm-scatter-label.is-ours {
  font-size: 14px;
}

/* Closed-loop summary rail aligns with the full-width data card below. */
.evaluation-grid:has(arwm-data-figure) > .evaluation-copy {
  width: 100%;
  max-width: none;
}

.closed-loop-metrics strong {
  font-size: clamp(2.35rem, 3.2vw, 3.4rem);
  font-weight: 520;
}

.closed-loop-metrics span {
  max-width: none;
  color: #e0e3e7;
  font-size: .88rem;
  font-weight: 620;
  line-height: 1.25;
  white-space: nowrap;
}

/* Keep the hero compact so the headline metrics follow without a viewport-sized void. */
@media (min-width: 901px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: clamp(38px, 4vw, 58px);
    padding-bottom: clamp(30px, 3.2vw, 46px);
  }
}

/* Method pillars: slightly flatter without reducing type size. */
.pillar-card {
  min-height: 235px;
  padding: clamp(22px, 2.2vw, 29px);
}

.pillar-card h3 {
  margin: clamp(28px, 3.2vw, 40px) 0 12px;
}

/* Overview utility card: emphasize the three intended use cases. */
#overview .utility-label {
  font-size: .88rem;
  font-weight: 650;
}

#overview .utility-card li > span {
  font-size: .8rem;
  font-weight: 650;
}

#overview .utility-card strong {
  font-size: 1.1rem;
  font-weight: 620;
}

#overview .utility-card li p {
  max-width: 290px;
  font-size: .88rem;
  line-height: 1.5;
}

/* Action summary cards: lift every supporting micro-label. */
.action-evidence .benchmark-proof span {
  font-size: .76rem;
  font-weight: 620;
}

.action-evidence .micro-stats dt {
  font-size: .74rem;
  font-weight: 620;
}

.action-evidence .micro-stats dd small {
  font-size: .72rem;
  font-weight: 620;
}

/* Closed-loop data card: increase every chart-facing text tier. */
.arwm-data-card[data-kind="closed-loop"] .arwm-data-eyebrow {
  font-size: 14px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-data-title {
  font-size: clamp(24px, 2.4vw, 34px);
}

.arwm-data-card[data-kind="closed-loop"] .arwm-data-subtitle {
  font-size: 15px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-subview-tab,
.arwm-data-card[data-kind="closed-loop"] .arwm-data-control {
  font-size: 13px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-legend-btn,
.arwm-data-card[data-kind="closed-loop"] .arwm-axis-text,
.arwm-data-card[data-kind="closed-loop"] .arwm-matrix-label,
.arwm-data-card[data-kind="closed-loop"] .arwm-matrix-rate {
  font-size: 12px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-panel-title {
  font-size: 15px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-panel-direction,
.arwm-data-card[data-kind="closed-loop"] .arwm-heat-label,
.arwm-data-card[data-kind="closed-loop"] .arwm-stat span {
  font-size: 11px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-stat strong {
  font-size: 23px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-matrix-count {
  font-size: 30px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-tooltip {
  font-size: 13px;
}

.arwm-data-card[data-kind="closed-loop"] .arwm-tooltip strong {
  font-size: 14px;
}

/* Paper-style hero: title and authors form one centered column above the overview. */
.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 5vw, 68px);
}

.hero-copy {
  width: min(1100px, 100%);
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.hero-copy .overline:has(.hero-overline-copy) {
  justify-content: center;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}

#hero-title {
  max-width: 1100px;
  margin-inline: auto;
}

#hero-title .arwm-title-main {
  max-width: 1000px;
  margin-inline: auto;
}

.hero-authors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .08em;
  max-width: 1080px;
  margin: clamp(24px, 2.8vw, 34px) auto 0;
  color: var(--muted);
  font-size: clamp(.86rem, 1.08vw, 1.02rem);
  font-weight: 470;
  line-height: 1.75;
  letter-spacing: .005em;
  text-align: center;
}

.hero-author-row {
  display: flex;
  justify-content: center;
  gap: 0 .34em;
  width: 100%;
}

.hero-author {
  display: inline-block;
  white-space: nowrap;
}

.hero-authors sup {
  color: var(--muted);
  font-size: .7em;
  line-height: 0;
}

.hero-team-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .3em 1.15em;
  margin-top: 9px;
  color: #7f858b;
  font-size: clamp(.64rem, .72vw, .7rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .025em;
  text-align: center;
}

.hero-team-line > span {
  white-space: nowrap;
}

.hero-team-line sup {
  margin-right: .14em;
  color: #7f858b;
  font-size: .76em;
  line-height: 0;
}

.hero-actions {
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions .button-primary,
.hero-actions .button-secondary {
  min-width: 172px;
  min-height: 52px;
  justify-content: flex-start;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    #0b0e0e;
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 12px 28px rgba(0, 0, 0, .22);
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .045em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero-actions .button-primary::before,
.hero-actions .button-secondary::before {
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 12px rgba(119, 242, 178, .7);
  content: '';
}

.hero-actions .button-primary span,
.hero-actions .button-secondary svg {
  margin-left: auto;
  color: var(--action);
}

.hero-actions .button-primary span {
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .07em;
}

.hero-actions .button-primary:hover,
.hero-actions .button-secondary:hover {
  color: var(--ink);
  border-color: rgba(119, 242, 178, .58);
  background:
    linear-gradient(135deg, rgba(119, 242, 178, .11), rgba(255, 255, 255, .03)),
    #0b0e0e;
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 16px 34px rgba(0, 0, 0, .3), 0 0 0 1px rgba(119, 242, 178, .08);
  transform: translateY(-2px);
}

.hero-visual:has(arwm-system-overview) {
  justify-self: center;
  width: min(900px, 100%);
  padding: 11px;
}

@media (max-width: 620px) {
  .hero-authors {
    gap: .28em;
    font-size: .82rem;
    line-height: 1.75;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .hero-author-row {
    flex-wrap: wrap;
  }
}
