
/* System Design Atlas — responsive and interaction enhancements */
:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* The roadmap and tools keep the landing page's navigation shell after navigation. */
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header,
body[data-page="tools"] .atlas-global-header {
  height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 9, 15, .84);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  font-family: "Noto Sans CJK KR", "NanumSquare", Inter, Arial, sans-serif;
  line-height: 1.55;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .wrap,
body[data-page="tools"] .atlas-global-header .wrap {
  width: min(1280px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand,
body[data-page="tools"] .atlas-global-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark,
body[data-page="tools"] .atlas-global-header .brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(145deg, #fde047, #eab308);
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::before,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::after,
body[data-page="tools"] .atlas-global-header .brand-mark::before,
body[data-page="tools"] .atlas-global-header .brand-mark::after {
  content: "";
  position: absolute;
  border: 2px solid #17110a;
  border-radius: 5px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::before,
body[data-page="tools"] .atlas-global-header .brand-mark::before { inset: 7px 14px 7px 6px; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::after,
body[data-page="tools"] .atlas-global-header .brand-mark::after { inset: 7px 6px 7px 18px; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-title,
body[data-page="tools"] .atlas-global-header .brand-title { font-size: 18px; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-title small,
body[data-page="tools"] .atlas-global-header .brand-title small {
  display: block;
  margin-top: -2px;
  color: #a3a3a3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .nav,
body[data-page="tools"] .atlas-global-header .nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #b7c0ce;
  font-size: 13px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .nav a:hover,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .nav a.active,
body[data-page="tools"] .atlas-global-header .nav a:hover,
body[data-page="tools"] .atlas-global-header .nav a.active { color: #fff; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .header-actions,
body[data-page="tools"] .atlas-global-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .search,
body[data-page="tools"] .atlas-global-header .search {
  width: 205px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1019;
  color: #6f7c90;
  font-size: 12px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .kbd,
body[data-page="tools"] .atlas-global-header .kbd {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #344057;
  border-radius: 5px;
  background: #151c28;
  color: #9eabbf;
  font-size: 9px;
}
body[data-page="home"] .search-icon,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .search-icon,
body[data-page="tools"] .atlas-global-header .search-icon { flex: 0 0 auto; }
body[data-page="home"] .search-label,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .search-label,
body[data-page="tools"] .atlas-global-header .search-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn,
body[data-page="tools"] .atlas-global-header .btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111827;
  color: #eef2f7;
  font-size: 13px;
  font-weight: 700;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary,
body[data-page="tools"] .atlas-global-header .btn.primary {
  border-color: #ffe66d;
  background: linear-gradient(180deg, #fde047, #facc15);
  color: #16130a;
  box-shadow: 0 10px 28px rgba(250, 204, 21, .18);
}
body[data-page="home"] section[id] {
  scroll-margin-top: 96px;
}

/* Flat canvas: remove ambient neon/glow backgrounds across every surface. */
html, body {
  background-color: #080b12 !important;
  background-image: none !important;
}

/* Landing page section bands: alternate pure-black and soft-charcoal surfaces. */
body[data-page="home"] {
  --landing-band-dark: #06080c;
  --landing-band-light: #111315;
}
body[data-page="home"] .hero,
body[data-page="home"] #three-lenses,
body[data-page="home"] .workflow {
  background-color: var(--landing-band-dark) !important;
}
body[data-page="home"] .metrics,
body[data-page="home"] .cases,
body[data-page="home"] .cta {
  background-color: var(--landing-band-light) !important;
}
body[data-page="home"] .cta {
  padding-top: 86px;
}
body[data-page="home"] .metrics,
body[data-page="home"] .cases,
body[data-page="home"] .workflow,
body[data-page="home"] .cta {
  border-top: 1px solid rgba(255, 255, 255, .045);
}
body[data-page="home"] .footer {
  background-color: var(--landing-band-dark) !important;
}
body::before, body::after,
body[data-page="home"] .hero::before, body[data-page="home"] .hero::after,
body[data-page="home"] .lens::after,
.utility-hero::before, .utility-hero::after {
  display: none !important;
  background: none !important;
  filter: none !important;
}
body[data-page="home"] .hero,
body[data-page="home"] .cases,
body[data-page="home"] .case.featured,
body[data-page="home"] .workflow,
body[data-page="home"] .cta,
body[data-page="home"] .cta-box,
.chapter-card.ready,
.utility-hero,
.roadmap-section,
.utility-section {
  background-image: none !important;
}
body[data-page="home"] .case.featured { background-color: #0f1623 !important; }
body[data-page="home"] .cta-box { background-color: #111720 !important; }
.chapter-card.ready { background-color: #0f1724 !important; }
.brand-mark, .u-mark, .eyebrow i, .live i { box-shadow: none !important; }

/* Roadmap cards: topic-specific generated artwork with a copy-safe foreground. */
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card {
  isolation: isolate;
  overflow: hidden;
  background-color: #0f1724;
}
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7, 11, 18, .97) 0%, rgba(7, 11, 18, .9) 54%, rgba(7, 11, 18, .55) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, .12) 0%, rgba(7, 11, 18, .88) 100%);
}
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .78;
  filter: saturate(.78) contrast(1.04) brightness(.82);
  pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
}
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card > :not(.chapter-card-art) { position: relative; z-index: 2; }
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card:hover .chapter-card-art { transform: scale(1.035); opacity: .9; }
body:is([data-page="roadmap"], [data-page="legal"]) #roadmap-grid { margin-top: 28px; }

/* Roadmap hero: category-specific artwork makes each menu context visually distinct. */
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 426px;
  background-color: #080b12 !important;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(.78) contrast(1.04) brightness(.78);
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 16, .99) 0%, rgba(7, 10, 16, .96) 35%, rgba(7, 10, 16, .76) 54%, rgba(7, 10, 16, .35) 100%);
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .u-wrap { position: relative; z-index: 2; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="foundation"] { --roadmap-hero-accent: #38bdf8; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="pattern"] { --roadmap-hero-accent: #a78bfa; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="case"] { --roadmap-hero-accent: #facc15; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="all"] { --roadmap-hero-accent: #f0b92c; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-stat {
  border-color: color-mix(in srgb, var(--roadmap-hero-accent) 30%, #263247);
  background: rgba(10, 16, 26, .84);
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-stats > .hero-stat:nth-child(-n + 2) {
  flex: 0 0 132px;
  min-width: 132px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero h1 { max-width: 600px; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero p { max-width: 600px; }
/* Reserve the same copy block so a menu-specific title never moves the hero spacing. */
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-title] { min-height: 146px; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-intro] { min-height: 52px; }
/* The guide button stays in the stat row while the player occupies the hero's right space. */
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 84px;
  border-color: #facc15;
  background: #facc15;
  color: #17130a;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button:hover {
  transform: none;
  border-color: #fff2a9;
  background: #ffe36a;
  color: #17130a;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-button-eyebrow,
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-label {
  display: block;
  color: color-mix(in srgb, var(--roadmap-hero-accent) 74%, #fff);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button strong { margin-top: 4px; font-size: 13px; line-height: 1.3; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button .roadmap-video-button-eyebrow { color: #5b4504; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button small { margin-top: 3px; color: #3d3107; font-size: 10px; }
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  width: min(510px, 43%);
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--roadmap-hero-accent) 46%, #3a465a);
  border-radius: 16px;
  background: rgba(8, 13, 22, .9);
  transform: translateY(-50%);
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player .roadmap-video-label { padding: 0 4px 7px; }
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: #030507;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player:focus-within {
  border-color: #facc15;
}

@media (max-width: 1200px) {
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-title] { min-height: 136px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 680px);
    margin-top: 28px;
    transform: none;
  }
}
@media (max-width: 680px) {
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-stats > .hero-stat:nth-child(-n + 2) {
    flex-basis: auto;
    min-width: 154px;
  }
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-title] { min-height: 84px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-intro] { min-height: 77px; }
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 14px; border-radius: 10px; background: #facc15; color: #17130a;
  font-size: 13px; font-weight: 800; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
[data-href], [data-search-trigger], .tab, .edit { cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(250, 204, 21, .85); outline-offset: 3px;
}
.mobile-menu-toggle, .article-mobile-toggle, .article-toc-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid #2d394d; border-radius: 11px;
  color: #f8fafc; background: #101722; align-items: center; justify-content: center;
  font: inherit; cursor: pointer;
}
.search-dialog {
  width: min(680px, calc(100vw - 28px)); padding: 0; border: 1px solid #334158;
  border-radius: 18px; background: #0c121d; color: #f8fafc;
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
}
.search-dialog::backdrop { background: rgba(2, 5, 10, .78); backdrop-filter: blur(7px); }
.search-shell { padding: 18px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-input {
  width: 100%; height: 52px; border: 1px solid #344158; border-radius: 13px;
  background: #111927; color: #fff; padding: 0 16px; font: inherit; font-size: 15px;
}
.search-close { height: 52px; min-width: 52px; border-radius: 13px; border: 1px solid #344158; background: #111927; color: #d7dfeb; cursor: pointer; }
.search-help { display: flex; justify-content: space-between; color: #718096; font-size: 11px; padding: 10px 4px 0; }
.search-results { max-height: 430px; overflow: auto; padding: 8px 0 0; }
.search-result {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 13px; margin-top: 7px; border: 1px solid transparent; border-radius: 13px;
  background: #0f1724; color: inherit;
}
.search-result:hover, .search-result.is-active { border-color: rgba(250,204,21,.36); background: #131c2a; }
.search-result-index { width: 38px; height: 38px; border-radius: 10px; background: rgba(250,204,21,.11); color: #facc15; display: grid; place-items: center; font: 700 11px ui-monospace, monospace; }
.search-result b { display: block; font-size: 13px; }
.search-result small { display: block; color: #7f8da1; font-size: 10px; margin-top: 3px; }
.search-result-status { font-size: 9px; color: #8794a7; border: 1px solid #2a3649; border-radius: 999px; padding: 4px 7px; }
.search-empty { color: #8290a4; text-align: center; padding: 50px 15px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10000; transform: translate(-50%, 18px);
  opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid #3a465c;
  border-radius: 12px; background: rgba(13,19,30,.96); color: #e7edf6; font-size: 12px;
  transition: .25s ease; box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Landing page */
body[data-page="home"] .wrap { width: min(1280px, calc(100% - 40px)); }
body[data-page="home"] .cases {
  background-color: var(--landing-band-light) !important;
  background-image:
    linear-gradient(rgba(92, 108, 116, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 108, 116, .14) 1px, transparent 1px) !important;
  background-position: center top !important;
  background-size: 84px 84px !important;
}
body[data-page="home"] .case[data-href]:hover, body[data-page="home"] .lens[data-href]:hover { transform: translateY(-3px); transition: .22s ease; }
body[data-page="home"] .case.featured .case-chip {
  color: #16130a;
  border-color: #ffe36a;
  background-color: #facc15;
  font-weight: 800;
}
body[data-page="home"] .case-chip {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .case:not(.featured)[data-href]:hover .case-chip,
body[data-page="home"] .case:not(.featured)[data-href]:focus-visible .case-chip {
  color: #16130a;
  border-color: #ffe36a;
  background-color: #facc15;
  font-weight: 800;
}

/* Keep artwork inside the card edge and render an opaque outline above it. */
body[data-page="home"] .lens,
body[data-page="home"] .case,
body[data-page="home"] .workflow-box,
body[data-page="home"] .cta-box {
  border-color: transparent !important;
}
body[data-page="home"] .lens {
  background-clip: padding-box !important;
}
body[data-page="home"] .lens::before,
body[data-page="home"] .case::after,
body[data-page="home"] .workflow-box::after,
body[data-page="home"] .cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid #2b323c;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .22s ease;
}
body[data-page="home"] .cta-box::after {
  border-color: #4f461d;
}
body[data-page="home"] .lens[data-href]:hover::before,
body[data-page="home"] .case[data-href]:hover::after {
  border-color: #5c5125;
}
body[data-page="home"] .lens li,
body[data-page="home"] .case-tags span {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .lens[data-href]:hover li,
body[data-page="home"] .case[data-href]:hover .case-tags span {
  color: #f5d96b;
  border-color: #78651e;
  background-color: #24200f;
}
body[data-page="home"] .case-art,
body[data-page="home"] .section-art {
  clip-path: inset(1px round 17px);
}
body[data-page="home"] .workflow-art {
  clip-path: inset(1px round 21px);
}
body[data-page="home"] .cta-art {
  clip-path: inset(1px round 23px);
}
body[data-page="home"] .hero {
  isolation: isolate;
  overflow: hidden;
}
body[data-page="home"] .hero-background-media,
body[data-page="home"] .hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body[data-page="home"] .hero-background-media { z-index: 0; background: #080b12; }
body[data-page="home"] .hero-background-media img,
body[data-page="home"] .hero-background-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body[data-page="home"] .hero-background-media img {
  opacity: .38;
  filter: saturate(.72) contrast(1.06) brightness(.62);
  transition: opacity .35s ease;
}
body[data-page="home"] .hero-background-video {
  opacity: .18;
  filter: saturate(.84) contrast(1.04) brightness(.88);
  transition: opacity .6s ease;
}
body[data-page="home"] .hero-background-media.is-playing img { opacity: 0; }
body[data-page="home"] .hero-background-media.is-playing .hero-background-video { opacity: .82; }
body[data-page="home"] .hero-video-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, .97) 0%, rgba(8, 11, 18, .86) 34%, rgba(8, 11, 18, .40) 70%, rgba(8, 11, 18, .46) 100%),
    linear-gradient(180deg, rgba(8, 11, 18, .30) 0%, rgba(8, 11, 18, .12) 46%, rgba(8, 11, 18, .82) 100%);
}
body[data-page="home"] .hero-video-control {
  position: absolute;
  right: max(18px, calc((100% - 1280px) / 2));
  bottom: 16px;
  z-index: 4;
  min-width: 38px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #343d49;
  border-radius: 999px;
  background: rgba(8, 12, 19, .86);
  color: #aeb8c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .hero-video-control:hover,
body[data-page="home"] .hero-video-control:focus-visible {
  color: #f5d96b;
  border-color: #78651e;
  background-color: #24200f;
}
body[data-page="home"] .hero-video-control[data-state="blocked"] {
  color: #f5d96b;
  border-color: #78651e;
}
body[data-page="home"] .hero > .wrap { position: relative; z-index: 2; }
body[data-page="home"] .hero-visual {
  position: relative; min-width: 0; margin: 0;
  overflow: hidden; border: 1px solid #2a3443; border-radius: 24px; background: #15191e; cursor: pointer;
}
body[data-page="home"] .hero-visual:focus-visible { outline: 2px solid #facc15; outline-offset: 4px; }
body[data-page="home"] .hero-visual-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11151a;
}
body[data-page="home"] .hero-visual img,
body[data-page="home"] .hero-visual-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .28s ease;
}
body[data-page="home"] .hero-visual img { z-index: 0; opacity: 1; }
body[data-page="home"] .hero-visual-video {
  z-index: 1;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  background-color: #11151a;
}
body[data-page="home"] .hero-visual.is-hover-playing img { opacity: 0; }
body[data-page="home"] .hero-visual.is-hover-playing .hero-visual-video { opacity: 1; }
body[data-page="home"] .hero-visual-cue {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid #3b4552;
  border-radius: 999px;
  background: rgba(8, 12, 19, .86);
  color: #c2cbd6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .hero-visual:hover .hero-visual-cue,
body[data-page="home"] .hero-visual:focus-visible .hero-visual-cue,
body[data-page="home"] .hero-visual.is-hover-playing .hero-visual-cue {
  color: #f5d96b;
  border-color: #78651e;
  background-color: #24200f;
}
body[data-page="home"] .hero-visual figcaption {
  position: relative; left: auto; right: auto; bottom: auto; display: flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 50px; padding: 10px 14px; border: 0; border-top: 1px solid #39414a;
  z-index: 3; border-radius: 0; background: #0c0f13; color: #c2c8cf;
  font: 700 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
}
body[data-page="home"] .hero-visual figcaption i { color: #c69f24; font-style: normal; }

/* Featured cases: topic artwork stays decorative beneath a high-contrast copy layer. */
body[data-page="home"] .case {
  isolation: isolate;
  background-color: #0f1623;
}
body[data-page="home"] .case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, .80) 0%, rgba(7, 11, 18, .70) 52%, rgba(7, 11, 18, .94) 100%),
    linear-gradient(105deg, rgba(7, 11, 18, .84) 0%, rgba(7, 11, 18, .40) 100%);
}
body[data-page="home"] .case.featured::before {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, .94) 0%, rgba(7, 11, 18, .76) 30%, rgba(7, 11, 18, .24) 62%, rgba(7, 11, 18, .92) 100%),
    linear-gradient(105deg, rgba(7, 11, 18, .80) 0%, rgba(7, 11, 18, .28) 100%);
}
body[data-page="home"] .case-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .76;
  filter: saturate(.76) contrast(1.05) brightness(.84);
  pointer-events: none;
  transform: scale(1.001);
  transition: transform .35s ease, opacity .25s ease;
}
body[data-page="home"] .case.featured .case-art {
  object-position: center 56%;
  opacity: .84;
}
body[data-page="home"] .case > :not(.case-art) {
  position: relative;
  z-index: 2;
}
body[data-page="home"] .case:hover .case-art {
  transform: scale(1.035);
  opacity: .9;
}

/* Learning flow and roadmap CTA: generated, text-free artwork under copy-safe overlays. */
body[data-page="home"] .workflow-box,
body[data-page="home"] .cta-box {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
body[data-page="home"] .workflow-box::before,
body[data-page="home"] .cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
body[data-page="home"] .workflow-box::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 19, .96) 0%, rgba(8, 12, 19, .86) 34%, rgba(8, 12, 19, .60) 100%),
    linear-gradient(180deg, rgba(8, 12, 19, .28) 0%, rgba(8, 12, 19, .68) 100%);
}
body[data-page="home"] .cta-box::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 19, .97) 0%, rgba(8, 12, 19, .90) 40%, rgba(8, 12, 19, .58) 68%, rgba(8, 12, 19, .77) 100%),
    linear-gradient(180deg, rgba(8, 12, 19, .20) 0%, rgba(8, 12, 19, .70) 100%);
}
body[data-page="home"] .section-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(.72) contrast(1.06) brightness(.78);
  transform: scale(1.002);
  transition: transform .5s ease, opacity .3s ease;
}
body[data-page="home"] .workflow-art {
  object-position: center 61%;
  opacity: .72;
}
body[data-page="home"] .cta-art {
  object-position: center 63%;
  opacity: .78;
}
body[data-page="home"] .workflow-box > :not(.section-art),
body[data-page="home"] .cta-box > :not(.section-art) {
  position: relative;
  z-index: 2;
}
body[data-page="home"] .workflow-box:hover .section-art,
body[data-page="home"] .cta-box:hover .section-art {
  transform: scale(1.025);
}
body[data-page="home"] .step-num,
body[data-page="home"] .step b,
body[data-page="home"] .step small {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
body[data-page="home"] .step:hover .step-num {
  color: #16130a;
  border-color: #ffe36a;
  background-color: #facc15;
  transform: translateY(-3px);
}
body[data-page="home"] .step:hover b {
  color: #f5d96b;
}
body[data-page="home"] .step:hover small {
  color: #c6af61;
}
body[data-page="home"] .cta-actions .btn.ghost {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
body[data-page="home"] .cta-actions .btn.ghost:hover,
body[data-page="home"] .cta-actions .btn.ghost:focus-visible {
  color: #f7dc73;
  border-color: #7b681f;
  background-color: #24200f;
  transform: translateY(-2px);
}

/* Three lenses: generated, text-free architecture artwork with a copy-safe overlay. */
body[data-page="home"] .lens {
  --lens-image: none;
  background-color: #0c121d;
  background-image:
    linear-gradient(100deg, rgba(7, 11, 18, .97) 0%, rgba(7, 11, 18, .88) 54%, rgba(7, 11, 18, .52) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, .14) 0%, rgba(7, 11, 18, .78) 100%),
    var(--lens-image) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .22s ease, border-color .22s ease, background-size .32s ease;
}
body[data-page="home"] .lens-understand { --lens-image: url("../images/lenses/concept-understanding.webp"); }
body[data-page="home"] .lens-interview { --lens-image: url("../images/lenses/interview-design.webp"); }
body[data-page="home"] .lens-practice { --lens-image: url("../images/lenses/production-practice.webp"); }
body[data-page="home"] .lens > * { position: relative; z-index: 1; }

/* Primary actions: clear hover, keyboard focus, and press feedback without a neon glow. */
body[data-page="home"] .btn.primary,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary,
body[data-page="tools"] .atlas-global-header .btn.primary,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary,
body[data-page="tools"] .u-btn.primary {
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body[data-page="home"] .btn.primary:hover,
body[data-page="home"] .btn.primary:focus-visible,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary:hover,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary:focus-visible,
body[data-page="tools"] .atlas-global-header .btn.primary:hover,
body[data-page="tools"] .atlas-global-header .btn.primary:focus-visible,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary:hover,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary:focus-visible,
body[data-page="tools"] .u-btn.primary:hover,
body[data-page="tools"] .u-btn.primary:focus-visible {
  transform: translateY(-2px);
  border-color: #fff0a3;
  background: linear-gradient(180deg, #fff18a, #facc15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .48);
}
body[data-page="home"] .btn.primary:active,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary:active,
body[data-page="tools"] .atlas-global-header .btn.primary:active,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary:active,
body[data-page="tools"] .u-btn.primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: inset 0 2px 0 rgba(132, 98, 0, .22);
}

/* Featured cases heading follows the same title rhythm as the other landing sections. */
body[data-page="home"] .cases-head h2 {
  margin: 13px 0 12px;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -.045em;
}
body[data-page="home"] .cases-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* Footer typography: use one readable scale across landing, utility, and article pages. */
body[data-page="home"] .footer {
  height: auto;
  min-height: 0;
  padding: 72px 0;
}
body[data-page="home"] .footer .wrap { height: auto; }
body[data-page="home"] .foot-left p {
  max-width: 430px;
  margin-top: 14px;
  color: #8d99aa;
  font-size: 14px;
  line-height: 1.75;
}
body[data-page="home"] .foot-links {
  grid-template-columns: repeat(3, 138px);
  gap: 28px;
}
body[data-page="home"] .foot-col b {
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .02em;
}
body[data-page="home"] .foot-col span {
  margin: 8px 0;
  color: #8c99ab;
  font-size: 13px;
  line-height: 1.5;
}
.utility-footer {
  color: #8592a5;
  font-size: 13px;
  line-height: 1.6;
}
body[data-page="article"] .footer-inner {
  color: #8592a5;
  font-size: 12px;
  line-height: 1.6;
}

/* Article page */
body[data-page="article"] .header-inner,
body[data-page="article"] .layout,
body[data-page="article"] .footer-inner { width: min(1380px, calc(100% - 36px)); }
body[data-page="article"] main { min-width: 0; }
body[data-page="article"] section[id] { scroll-margin-top: 94px; }
body[data-page="article"] .diagram { overflow-x: auto; }
body[data-page="article"] .diagram-body { min-width: 820px; }
body[data-page="article"] .mode-tabs { position: sticky; top: 74px; z-index: 20; backdrop-filter: blur(14px); }
body[data-page="article"] .tab.saved { color: #6ee7b7; }
body[data-page="article"] .toc a { cursor: pointer; }
body[data-page="article"] .nav-item { text-decoration: none; }
body[data-page="article"] .left {
  align-self: start; max-height: calc(100vh - 74px); overflow-y: auto; overscroll-behavior: contain;
}
body[data-page="article"] .atlas-learning-nav { color: #d8dee8; font-family: inherit; }
body[data-page="article"] .atlas-learning-head {
  display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px;
  color: #76849a; font: 800 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em;
}
body[data-page="article"] .atlas-learning-head b { color: #d0a91f; font-size: 9px; letter-spacing: .04em; }
body[data-page="article"] .atlas-current-topic {
  padding: 13px; border: 1px solid #384253; border-radius: 12px; background: #121925;
}
body[data-page="article"] .atlas-current-topic small { display: block; margin-bottom: 4px; color: #76849a; font-size: 8px; }
body[data-page="article"] .atlas-current-topic strong { display: block; color: #f4f6f9; font-size: 11px; line-height: 1.45; }
body[data-page="article"] .atlas-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 14px; }
body[data-page="article"] .atlas-adjacent-link {
  min-width: 0; padding: 9px; border: 1px solid #2b3546; border-radius: 9px; background: #0e1520;
}
body[data-page="article"] .atlas-adjacent-link small { display: block; color: #69778c; font-size: 7px; }
body[data-page="article"] .atlas-adjacent-link span {
  display: block; overflow: hidden; margin-top: 3px; color: #aeb8c7; font-size: 8px; line-height: 1.35;
  text-overflow: ellipsis; white-space: nowrap;
}
body[data-page="article"] .atlas-adjacent-link.next { text-align: right; }
body[data-page="article"] .atlas-nav-groups { border-top: 1px solid #222c3b; }
body[data-page="article"] .atlas-nav-group { border-bottom: 1px solid #222c3b; }
body[data-page="article"] .atlas-nav-group summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 5px;
  color: #8d9aab; font-size: 9px; font-weight: 750; cursor: pointer; list-style: none;
}
body[data-page="article"] .atlas-nav-group summary::-webkit-details-marker { display: none; }
body[data-page="article"] .atlas-nav-group summary::before { content: "+"; width: 14px; color: #66758a; font: 10px ui-monospace, monospace; }
body[data-page="article"] .atlas-nav-group[open] summary::before { content: "−"; }
body[data-page="article"] .atlas-nav-group summary span { flex: 1; }
body[data-page="article"] .atlas-nav-group summary small { color: #68768b; font: 8px ui-monospace, monospace; }
body[data-page="article"] .atlas-nav-group-links { padding: 0 0 7px; }
body[data-page="article"] .atlas-chapter-link {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 6px;
  min-height: 34px; margin: 2px 0; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px;
  color: #8794a6; font-size: 9px; line-height: 1.35;
}
body[data-page="article"] .atlas-chapter-link:hover { border-color: #354052; background: #121a26; color: #eef2f7; }
body[data-page="article"] .atlas-chapter-link.active {
  border-color: #5c5225; background: #211f16; color: #f4e39d;
}
body[data-page="article"] .atlas-chapter-number { color: #66758b; font: 8px ui-monospace, monospace; }
body[data-page="article"] .atlas-chapter-link.active .atlas-chapter-number { color: #d0a91f; }
body[data-page="article"] .atlas-nav-utilities { display: grid; grid-template-columns: 1fr; gap: 5px; margin-top: 12px; }
body[data-page="article"] .atlas-nav-utilities a {
  min-height: 34px; padding: 8px 10px; border: 1px solid #2b3546; border-radius: 8px;
  background: #0e1520; color: #aab5c5; font-size: 9px;
}
body[data-page="article"] .atlas-nav-utilities a:hover { border-color: #4a5568; color: #fff; }
body[data-page="article"] .atlas-progress-card { margin-top: 16px; }

@media (max-width: 1180px) {
  body[data-page="home"] .nav { gap: 18px; }
  body[data-page="home"] .search { width: 170px; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .nav { gap: 18px; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .search { width: 170px; }
  body[data-page="home"] h1 { font-size: 52px; }
  body[data-page="article"] .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  body[data-page="article"] .right { display: none; }
  body[data-page="article"] .brand { width: 230px; }
}
@media (max-width: 940px) {
  body[data-page="home"] .header { height: 70px; }
  body[data-page="home"] .nav { display: none; position: fixed; z-index: 90; top: 70px; left: 18px; right: 18px; padding: 14px; border: 1px solid #2c394d; border-radius: 15px; background: rgba(10,15,24,.98); flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
  body[data-page="home"] .nav.is-open { display: flex; }
  body[data-page="home"] .nav a { padding: 12px; border-radius: 9px; }
  body[data-page="home"] .mobile-menu-toggle { display: inline-flex; }
  body[data-page="home"] .search { display: none; }
  body[data-page="home"] .header-actions .btn { height: 40px; padding: 0 13px; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header { height: 70px; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .nav {
    display: none;
    position: fixed;
    z-index: 90;
    top: 70px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid #2c394d;
    border-radius: 15px;
    background: rgba(10, 15, 24, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .nav.is-open { display: flex; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .nav a { padding: 12px; border-radius: 9px; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .mobile-menu-toggle { display: inline-flex; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .search { display: none; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .header-actions .btn { height: 40px; padding: 0 13px; }
  body[data-page="home"] .hero { padding-top: 54px; }
  body[data-page="home"] .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  body[data-page="home"] .hero-copy br { display: none; }
  body[data-page="home"] .hero-visual { max-width: 700px; width: 100%; margin: 0 auto; }
  body[data-page="home"] .metric-grid { height: auto; grid-template-columns: repeat(2, 1fr); }
  body[data-page="home"] .metric { min-height: 88px; padding-left: 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
  body[data-page="home"] .lens-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .case-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  body[data-page="home"] .case.featured { grid-row: auto; grid-column: 1 / -1; min-height: 430px; }
  body[data-page="home"] .workflow-top { grid-template-columns: 1fr; gap: 34px; }
  body[data-page="article"] .crumb { display: none; }
  body[data-page="article"] .layout { grid-template-columns: minmax(0, 1fr); }
  body[data-page="article"] .left { display: none; position: fixed; z-index: 90; left: 0; top: 74px; bottom: 0; width: min(320px, 88vw); overflow: auto; padding: 22px 20px 50px; background: #090e17; border-right: 1px solid #2b374a; box-shadow: 25px 0 70px rgba(0,0,0,.55); }
  body[data-page="article"] .left.is-open { display: block; }
  body[data-page="article"] .article-mobile-toggle { display: inline-flex; margin-right: 10px; }
  body[data-page="article"] .brand { width: auto; }
  body[data-page="article"] .top-search { margin-left: auto; }
  body[data-page="article"] main { padding-inline: 8px; }
}
@media (max-width: 680px) {
  body[data-page="home"] .wrap { width: min(100% - 28px, 1280px); }
  body[data-page="home"] .brand-title { font-size: 14px; }
  body[data-page="home"] .brand-title small { display: none; }
  body[data-page="home"] .header-actions .btn.primary { font-size: 0; width: 42px; padding: 0; }
  body[data-page="home"] .header-actions .btn.primary::after { content: "→"; font-size: 17px; }
  body:is([data-page="roadmap"], [data-page="legal"]) #roadmap-grid { margin-top: 22px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero { min-height: 0; padding: 62px 0 54px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-art { object-position: 67% center; filter: saturate(.68) contrast(1.03) brightness(.64); }
  body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-scrim { background: linear-gradient(90deg, rgba(7, 10, 16, .98) 0%, rgba(7, 10, 16, .93) 57%, rgba(7, 10, 16, .62) 100%); }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .wrap { width: min(100% - 28px, 1280px); }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .brand-title { font-size: 14px; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .brand-title small { display: none; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .header-actions .btn.primary { width: 42px; padding: 0; font-size: 0; }
  body:is([data-page="roadmap"], [data-page="tools"]) .atlas-global-header .header-actions .btn.primary::after { content: "→"; font-size: 17px; }
  body[data-page="home"] h1 { font-size: clamp(38px, 12vw, 50px); }
  body[data-page="home"] .hero-copy { font-size: 15px; }
  body[data-page="home"] .hero-actions { flex-direction: column; }
  body[data-page="home"] .hero-actions .btn { width: 100%; }
  body[data-page="home"] .micro-row { flex-direction: column; gap: 8px; }
  body[data-page="home"] .hero-visual { border-radius: 17px; }
  body[data-page="home"] .hero-visual figcaption { left: auto; right: auto; bottom: auto; gap: 5px; min-height: 42px; padding: 8px; font-size: 6.5px; }
  body[data-page="home"] .metric-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .metric { border-right: 0; }
  body[data-page="home"] .section, body[data-page="home"] .cases, body[data-page="home"] .workflow, body[data-page="home"] .cta { padding-top: 64px; padding-bottom: 64px; }
  body[data-page="home"] .section h2 { font-size: 31px; }
  body[data-page="home"] .cases-head h2 { font-size: 31px; }
  body[data-page="home"] .case-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .case.featured { grid-column: auto; min-height: 390px; }
  body[data-page="home"] .cases-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  body[data-page="home"] .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  body[data-page="home"] .steps:before { display: none; }
  body[data-page="home"] .workflow-box { padding: 28px 22px; }
  body[data-page="home"] .workflow h2 br { display: block; }
  body[data-page="home"] .cta-box { height: auto; min-height: 0; padding: 34px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  body[data-page="home"] .workflow-box::before { background: rgba(8, 12, 19, .80); }
  body[data-page="home"] .cta-box::before { background: linear-gradient(180deg, rgba(8, 12, 19, .74), rgba(8, 12, 19, .91)); }
  body[data-page="home"] .workflow-art { object-position: 62% center; opacity: .58; }
  body[data-page="home"] .cta-art { object-position: 64% center; opacity: .62; }
  body[data-page="home"] .footer { height: auto; padding: 64px 0; }
  body[data-page="home"] .footer .wrap { flex-direction: column; align-items: flex-start; gap: 26px; }
  body[data-page="home"] .foot-links { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body[data-page="article"] .header-inner { width: calc(100% - 24px); }
  body[data-page="article"] .top-search { width: 42px; font-size: 0; padding: 0; justify-content: center; }
  body[data-page="article"] .top-search::before { content: "⌕"; font-size: 17px; }
  body[data-page="article"] .top-search span { display: none; }
  body[data-page="article"] .top-btn { display: none; }
  body[data-page="article"] .brand { font-size: 12px; }
  body[data-page="article"] .layout { width: calc(100% - 24px); }
  body[data-page="article"] main { padding-top: 36px; }
  body[data-page="article"] h1 { font-size: 36px; }
  body[data-page="article"] .lead { font-size: 14px; }
  body[data-page="article"] .byline { flex-wrap: wrap; line-height: 1.6; }
  body[data-page="article"] .mode-tabs { top: 74px; overflow-x: auto; justify-content: flex-start; }
  body[data-page="article"] .tab { white-space: nowrap; padding-inline: 12px; }
  body[data-page="article"] .summary-grid { grid-template-columns: 1fr; }
  body[data-page="article"] .summary-cell { border-right: 0; border-bottom: 1px solid #27334a; }
  body[data-page="article"] .summary-cell:last-child { border-bottom: 0; }
  body[data-page="article"] .flow-list { grid-template-columns: 1fr; }
  body[data-page="article"] .failure-grid { grid-template-columns: 1fr; }
  body[data-page="article"] .table { overflow-x: auto; }
  body[data-page="article"] .tr { min-width: 680px; }
  body[data-page="article"] .section-title-row { align-items: flex-start; gap: 10px; }
  body[data-page="article"] .section-title-row h2 { font-size: 27px; }
  body[data-page="article"] .interview { padding: 18px; }
  body[data-page="article"] .answer-row { flex-wrap: wrap; }
  body[data-page="article"] .footer { height: auto; padding: 24px 0; }
  body[data-page="article"] .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-background-video { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Publication transparency: every public page exposes policies, and every learning page exposes its source trail. */
.site-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px auto 0;
  color: #93a0b3;
  font-size: 12px;
  line-height: 1.5;
}
.site-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.site-legal-links a:hover,
.site-legal-links a:focus-visible { color: #fde047; }
body[data-page="home"] .footer > .site-legal-links {
  width: min(1280px, calc(100% - 40px));
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.utility-footer > .site-legal-links {
  width: min(1180px, calc(100% - 40px));
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
body[data-page="article"] .footer > .site-legal-links {
  width: min(1380px, calc(100% - 36px));
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
}
body[data-page="legal"] .utility-footer { padding: 34px 0; }

body[data-page="article"] .article-provenance {
  margin-top: 32px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #344055;
  border-radius: 18px;
  background: #0c121c;
}
body[data-page="article"] .article-provenance-head span {
  color: #facc15;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
body[data-page="article"] .article-provenance h2 {
  margin: 10px 0 0;
  color: #f7fafc;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.04em;
}
body[data-page="article"] .article-provenance h3 {
  margin: 28px 0 10px;
  color: #e9eef6;
  font-size: 16px;
}
body[data-page="article"] .article-provenance-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
}
body[data-page="article"] .article-provenance-meta div {
  padding: 13px;
  border: 1px solid #293549;
  border-radius: 11px;
  background: #101824;
}
body[data-page="article"] .article-provenance-meta dt {
  margin-bottom: 5px;
  color: #7e8da2;
  font-size: 10px;
}
body[data-page="article"] .article-provenance-meta dd {
  margin: 0;
  color: #c4cfde;
  font-size: 12px;
  line-height: 1.65;
}
body[data-page="article"] .article-provenance-sources {
  margin: 0;
  padding-left: 18px;
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.75;
}
body[data-page="article"] .article-provenance-sources a,
body[data-page="article"] .article-provenance-correction a { color: #fde68a; text-decoration: underline; text-underline-offset: 3px; }
body[data-page="article"] .article-provenance-correction {
  margin: 18px 0 0;
  color: #93a0b2;
  font-size: 12px;
}
@media (max-width: 680px) {
  .site-legal-links { gap: 7px 13px; font-size: 11px; }
  body[data-page="home"] .footer > .site-legal-links,
  .utility-footer > .site-legal-links { width: calc(100% - 28px); }
  body[data-page="article"] .footer > .site-legal-links { width: calc(100% - 24px); }
  body[data-page="article"] .article-provenance { margin-top: 24px; padding: 20px 17px; }
  body[data-page="article"] .article-provenance-meta { grid-template-columns: 1fr; }
}
