/* ==== A+ Atlas v5 — Cool Mist Blue-Gray ==== */
:root {
  --atlas-paper: #e5e8ed;
  --atlas-paper-2: #d8dde5;
  --atlas-ink: #1b2535;
  --atlas-ink-soft: #3a475a;
  --atlas-muted: #5c687a;
  --atlas-line: #c7cdd6;
  --atlas-card: #f5f7fa;
  --atlas-card-2: #ffffff;

  --atlas-formal: #6f63d8;     --atlas-formal-bg: #e7e3fb;
  --atlas-natural: #18968b;    --atlas-natural-bg: #d9f0ed;
  --atlas-social: #c24b6b;     --atlas-social-bg: #f9dde6;
  --atlas-humanities: #a76a2a; --atlas-humanities-bg: #f1e2cf;
  --atlas-applied: #d56a1b;    --atlas-applied-bg: #f8e5d6;
  --atlas-other: #5c687a;      --atlas-other-bg: #e2e7ee;

  --atlas-accent: #2a4b7c;
  --atlas-accent-soft: #d8e2f0;

  --atlas-radius: 18px; --atlas-radius-lg: 26px;
  --atlas-shadow: 0 14px 34px rgba(27,37,53,0.10);
  --atlas-shadow-strong: 0 22px 56px rgba(27,37,53,0.14);

  --atlas-font-display: "Fraunces","Iowan Old Style","Noto Serif SC","Songti SC","STSong",Georgia,serif;
  --atlas-font-body: "IBM Plex Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --atlas-font-mono: "JetBrains Mono","SF Mono",Consolas,monospace;

  --atlas-shell: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(860px 500px at 88% -8%, rgba(111,99,216,0.065), transparent 60%),
    radial-gradient(680px 440px at -6% 16%, rgba(24,150,139,0.045), transparent 55%),
    linear-gradient(180deg, #eef1f5 0%, var(--atlas-paper) 38%, #d9dde5 100%);
  color: var(--atlas-ink);
  font-family: var(--atlas-font-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

a { color: #245a9a; text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
.nobr { white-space: nowrap; }

.atlas-shell {
  width: min(var(--atlas-shell), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

/* Scroll progress */
.atlas-scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 120;
  background: linear-gradient(90deg, var(--atlas-formal), var(--atlas-natural), var(--atlas-social), var(--atlas-humanities), var(--atlas-applied), var(--atlas-other));
  width: 0%;
  transition: width 0.08s linear;
}

/* Skip link */
.atlas-skip-link {
  position: absolute; left: 12px; top: 10px;
  background: #1b2535; color: #fff;
  padding: 8px 14px; border-radius: 999px;
  z-index: 200;
  transform: translateY(-140%);
  transition: transform 0.14s ease;
  font-size: 13px; font-weight: 700;
}
.atlas-skip-link:focus { transform: translateY(0); outline: none; }

/* Header */
.atlas-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--atlas-paper) 84%, transparent);
  border-bottom: 1px solid var(--atlas-line);
}
.atlas-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 16px;
}
.atlas-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--atlas-ink); text-decoration: none;
}
.atlas-brand:hover { text-decoration: none; }
.atlas-brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid #bcc5d3;
  background: linear-gradient(160deg, #ffffff, #e6ebf3);
  display: grid; place-items: center;
  font-family: var(--atlas-font-mono); font-size: 12px; color: #2a4b7c; font-weight: 700;
}
.atlas-brand__text { display: grid; gap: 2px; }
.atlas-brand__text strong { font-size: 15.5px; }
.atlas-brand__text small { font-size: 11px; color: var(--atlas-muted); font-weight: 600; }

.atlas-nav-wrap { display: flex; align-items: center; gap: 12px; position: relative; }
.atlas-nav { display: flex; gap: 18px; font-size: 13.5px; }
.atlas-nav a { color: var(--atlas-muted); font-weight: 600; }
.atlas-nav a:hover { color: var(--atlas-ink); text-decoration: none; }

.atlas-nav-toggle {
  display: none;
  border: 1px solid var(--atlas-line);
  background: #eef1f5;
  color: var(--atlas-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
}

/* Hero */
.atlas-hero { padding: 48px 0 28px; position: relative; overflow: hidden; }
.atlas-hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.atlas-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(42px); opacity: 0.58;
}
.atlas-hero-orb.o1 {
  width: 340px; height: 340px; left: -70px; top: -30px;
  background: radial-gradient(circle, rgba(24,150,139,0.14), transparent 70%);
  animation: atlasOrbFloat1 18s ease-in-out infinite;
}
.atlas-hero-orb.o2 {
  width: 300px; height: 300px; right: -50px; top: 28px;
  background: radial-gradient(circle, rgba(63,102,216,0.13), transparent 70%);
  animation: atlasOrbFloat2 22s ease-in-out infinite;
}
@keyframes atlasOrbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px,16px); } }
@keyframes atlasOrbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px,14px); } }

.atlas-hero__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
  position: relative; z-index: 1;
}
.atlas-hero__copy h1 {
  margin: 7px 0 14px;
  font-family: var(--atlas-font-display);
  font-weight: 750;
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.07;
  letter-spacing: -0.025em;
}
.atlas-eyebrow {
  color: var(--atlas-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}
.atlas-hero__lede { color: var(--atlas-ink-soft); font-size: 16px; margin: 0; }
.atlas-hero__hint { margin-top: 14px; font-size: 13.1px; color: var(--atlas-muted); }

/* Domain bar */
.atlas-domain-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.atlas-domain-pill {
  border: 1px solid #c8ceda;
  background: var(--atlas-card-2);
  color: var(--atlas-ink-soft);
  font-size: 12.7px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  cursor: pointer; transition: 0.13s ease;
  font-family: inherit;
}
.atlas-domain-pill:hover { transform: translateY(-1px); border-color: #aab5c6; }
.atlas-domain-pill .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; position: relative; top: -1px; }
.atlas-domain-pill__label { display: inline; }
.atlas-domain-disciplines {
  margin: -4px 0 12px;
  padding: 7px 10px;
  border: 1px dashed #c7cdd6;
  border-radius: 10px;
  background: rgba(255,255,255,0.54);
  color: var(--atlas-ink-soft);
  font-size: 12px;
  line-height: 1.55;
}
.atlas-domain-disciplines strong { color: var(--atlas-ink); margin-right: 6px; }
.atlas-domain-pill[data-domain="formal"] { background: var(--atlas-formal-bg); border-color: #c7c0ed; }
.atlas-domain-pill[data-domain="natural"] { background: var(--atlas-natural-bg); border-color: #b4ddd7; }
.atlas-domain-pill[data-domain="social"] { background: var(--atlas-social-bg); border-color: #e2b6c5; }
.atlas-domain-pill[data-domain="humanities"] { background: var(--atlas-humanities-bg); border-color: #d8bf9f; }
.atlas-domain-pill[data-domain="applied"] { background: var(--atlas-applied-bg); border-color: #e0c2a8; }
.atlas-domain-pill[data-domain="other"] { background: var(--atlas-other-bg); border-color: #c4ccd8; }
.atlas-domain-pill[data-domain="all"] { background: #eef1f5; border-color: #c8ceda; }
.atlas-domain-pill.is-active { background: var(--atlas-ink); color: #f0f3f8; border-color: var(--atlas-ink); }
.atlas-domain-pill.is-active[data-domain="formal"] { background: var(--atlas-formal); border-color: var(--atlas-formal); color: #fff; }
.atlas-domain-pill.is-active[data-domain="natural"] { background: var(--atlas-natural); border-color: var(--atlas-natural); color: #fff; }
.atlas-domain-pill.is-active[data-domain="social"] { background: var(--atlas-social); border-color: var(--atlas-social); color: #fff; }
.atlas-domain-pill.is-active[data-domain="humanities"] { background: var(--atlas-humanities); border-color: var(--atlas-humanities); color: #fff; }
.atlas-domain-pill.is-active[data-domain="applied"] { background: var(--atlas-applied); border-color: var(--atlas-applied); color: #fff; }
.atlas-domain-pill.is-active[data-domain="other"] { background: var(--atlas-other); border-color: var(--atlas-other); color: #fff; }

/* Rack */
.atlas-rack-wrap {
  background: linear-gradient(180deg, #f1f4f8 0%, #dde3ea 100%);
  border: 1px solid #c2cad6;
  border-radius: var(--atlas-radius-lg);
  box-shadow: var(--atlas-shadow);
  padding: 18px 18px 14px;
  position: relative;
}
.atlas-rack {
  display: flex; gap: 12px; align-items: flex-end;
  min-height: 225px;
  padding: 6px 4px 38px;
  overflow-x: auto; scrollbar-width: thin;
}

/* Spine */
.atlas-spine {
  flex: 0 0 84px; width: 84px; height: 210px;
  border-radius: 12px 12px 6px 6px;
  background: var(--atlas-card-2);
  border: 1px solid rgba(27,37,53,0.10);
  box-shadow: 0 6px 16px rgba(27,37,53,0.09), inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.atlas-spine:hover, .atlas-spine.is-active, .atlas-spine:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(27,37,53,0.15), inset 0 1px 0 rgba(255,255,255,0.95);
  outline: none;
}
.atlas-spine__stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.atlas-spine__head {
  height: 34px; border-bottom: 1px solid rgba(27,37,53,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 14px;
  font-family: var(--atlas-font-mono); font-size: 10.3px; font-weight: 700; color: rgba(27,37,53,0.52);
}
.atlas-spine__glyphs { display: flex; gap: 3px; font-size: 12.5px; opacity: 0.78; }
.atlas-spine__body {
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 10px 8px 6px 14px; flex: 1; position: relative; min-width: 0;
}
.atlas-spine__title { font-weight: 800; font-size: 17px; letter-spacing: 0.05em; line-height: 1.28; color: var(--atlas-ink); }
.atlas-spine__ghost {
  position: absolute; right: 6px; bottom: 4px;
  writing-mode: horizontal-tb; font-family: var(--atlas-font-display);
  font-size: 32px; font-weight: 700; line-height: 1;
  color: rgba(27,37,53,0.045); pointer-events: none;
}
.atlas-spine__sub {
  font-size: 11px; color: #4e5b6d;
  writing-mode: horizontal-tb; margin-top: auto;
  padding: 0 9px 5px 14px; line-height: 1.42; min-height: 28px;
}
.atlas-spine__foot {
  height: 26px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9px 0 14px;
  border-top: 1px solid rgba(27,37,53,0.07); background: rgba(255,255,255,0.55);
}
.atlas-spine__media { display: flex; gap: 4px; }
.atlas-spine__media i { width: 5.5px; height: 5.5px; border-radius: 50%; background: rgba(27,37,53,0.22); }
.atlas-spine__media i.on { background: rgba(27,37,53,0.55); }
.atlas-spine__tag {
  font-family: var(--atlas-font-mono); font-size: 9.2px;
  color: rgba(27,37,53,0.5); font-weight: 700;
  letter-spacing: 0.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 58px; text-align: right;
}
.atlas-spine.is-hidden { display: none; }

/* Rack detail */
.atlas-rack-detail {
  min-height: 92px; border-top: 1px dashed #bec6d3; padding-top: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
}
.atlas-rack-detail__title { font-weight: 800; font-size: 16.5px; margin: 0 0 3px; }
.atlas-rack-detail__summary { margin: 0; color: var(--atlas-ink-soft); font-size: 13.5px; }
.atlas-rack-detail__tags { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.atlas-rack-detail__tags li {
  font-size: 11.4px; color: #475468;
  background: #e9edf3; border: 1px solid #cbd3de;
  padding: 2px 8px; border-radius: 999px;
}
.atlas-rack-detail__cta {
  align-self: center; white-space: nowrap;
  background: var(--atlas-ink); color: #f0f3f8;
  font-weight: 750; font-size: 13.4px;
  padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: 0.15s;
}
.atlas-rack-detail__cta:hover { background: #283548; color: #f0f3f8; text-decoration: none; }

/* Medium row */
.atlas-medium-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-top: 12px; font-size: 13px; color: var(--atlas-muted);
}
.atlas-medium-label { font-weight: 700; font-size: 12px; }
.atlas-medium-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-medium-chip {
  border: 1px solid #c2cad6; background: #e9edf3;
  border-radius: 999px; padding: 5px 11px;
  font-size: 12.5px; font-weight: 700; color: var(--atlas-ink-soft);
  cursor: pointer; font-family: inherit; transition: 0.13s;
}
.atlas-medium-chip:hover { transform: translateY(-1px); }
.atlas-medium-chip.is-active { background: #d8e2f0; border-color: #2a4b7c; color: #1b3a63; }
.atlas-rack-meta { margin-left: auto; font-size: 12.5px; color: var(--atlas-muted); font-variant-numeric: tabular-nums; }

/* Sections */
.atlas-section { padding: 44px 0 18px; border-top: 1px solid var(--atlas-line); }
.atlas-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.atlas-reveal.is-visible { opacity: 1; transform: none; }

.atlas-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.atlas-section__kicker {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--atlas-muted); font-weight: 700; margin: 0;
}
.atlas-section__title { margin: 2px 0 0; font-family: var(--atlas-font-display); font-size: 30px; letter-spacing: -0.015em; }
.atlas-section__desc { color: var(--atlas-muted); font-size: 14px; margin: 6px 0 0; }

/* Knowledge map */
.atlas-map-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.atlas-map-card {
  border-radius: 16px; padding: 16px 15px 14px;
  border: 1px solid rgba(27,37,53,0.08);
  transition: 0.14s; cursor: pointer; position: relative; overflow: hidden;
}
.atlas-map-card:hover { transform: translateY(-3px); box-shadow: var(--atlas-shadow); }
.atlas-map-card h3 { margin: 0 0 2px; font-size: 15.8px; }
.atlas-map-card__top { font-size: 11.5px; color: #556273; margin-bottom: 2px; }
.atlas-map-card__glyph {
  position: absolute; right: 10px; top: 8px;
  font-family: var(--atlas-font-display);
  font-size: 30px; font-weight: 700; opacity: 0.13;
}
.atlas-map-card::after {
  content: "→"; position: absolute; right: 14px; bottom: 10px;
  opacity: 0; transform: translateX(-4px);
  transition: 0.14s; font-weight: 700; color: rgba(27,37,53,0.38);
}
.atlas-map-card:hover::after { opacity: 1; transform: translateX(0); }
.atlas-map-card--formal { background: var(--atlas-formal-bg); }
.atlas-map-card--natural { background: var(--atlas-natural-bg); }
.atlas-map-card--social { background: var(--atlas-social-bg); }
.atlas-map-card--humanities { background: var(--atlas-humanities-bg); }
.atlas-map-card--applied { background: var(--atlas-applied-bg); }
.atlas-map-card--other { background: var(--atlas-other-bg); }
.atlas-map-card--uncategorized { background: var(--atlas-other-bg); }

/* Works index filters — compact strip (different look from hero rack filters) */
.atlas-works-filters {
  background: #f0f3f7;
  border: 1px solid var(--atlas-line);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.atlas-wi-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.atlas-wi-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.atlas-wi-group--domain,
.atlas-wi-disciplines {
  flex-basis: 100%;
}
.atlas-wi-group--medium {
  flex: 1 1 auto;
  margin-top: 2px;
}
.atlas-wi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--atlas-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.atlas-wi-pill,
.atlas-wi-chip {
  border: 1px solid #d0d7e0;
  background: #ffffff;
  color: var(--atlas-ink-soft);
  font-size: 11.8px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.13s ease;
  font-family: inherit;
  white-space: nowrap;
}
.atlas-wi-disciplines {
  padding: 5px 8px;
  border: 1px dashed #d0d7e0;
  border-radius: 8px;
  background: rgba(255,255,255,0.58);
  color: var(--atlas-ink-soft);
  font-size: 11.5px;
  line-height: 1.45;
}
.atlas-wi-disciplines strong { color: var(--atlas-ink); margin-right: 5px; }
.atlas-wi-pill:hover,
.atlas-wi-chip:hover {
  border-color: #aab5c6;
  color: var(--atlas-ink);
}
.atlas-wi-pill.is-active,
.atlas-wi-chip.is-active {
  background: var(--atlas-ink);
  color: #f0f3f8;
  border-color: var(--atlas-ink);
}
.atlas-works-meta {
  font-size: 12px;
  color: var(--atlas-muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  flex-shrink: 0;
}

/* Works list */
.atlas-works-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; align-items: start; }
.atlas-work-row {
  background: var(--atlas-card); border: 1px solid #ccd3dd;
  border-radius: 14px; padding: 14px 16px 14px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 7px 14px; align-items: start;
  transition: box-shadow 0.14s ease, transform 0.14s ease;
  position: relative;
}
.atlas-work-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--atlas-row-accent-bg, #c2cad6);
}
.atlas-work-row:hover, .atlas-work-row:focus-within { transform: translateY(-2px); box-shadow: var(--atlas-shadow); }
.atlas-work-row__title { font-weight: 800; font-size: 16px; }
.atlas-work-row__sub { font-size: 12.5px; color: var(--atlas-muted); }
.atlas-work-row__summary { grid-column: 1 / -1; color: var(--atlas-ink-soft); font-size: 13.4px; margin: 0; }
.atlas-work-row__meta { grid-column: 1 / -1; font-size: 12.3px; color: var(--atlas-muted); }
.atlas-work-row__link { font-weight: 700; font-size: 13px; white-space: nowrap; align-self: center; }
.atlas-work-row__extra {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
  margin-top: 0; font-size: 12.6px; color: #475467; border-top: 0 solid #cfd6df;
}
.atlas-work-row:hover .atlas-work-row__extra,
.atlas-work-row:focus-within .atlas-work-row__extra {
  max-height: 130px; opacity: 1; margin-top: 4px; border-top-width: 1px; padding-top: 8px;
}
.atlas-work-row__extra strong { color: var(--atlas-ink-soft); font-size: 11.5px; display: block; margin-bottom: 2px; }

/* Reading paths */
.atlas-paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 12px; }
.atlas-path-card {
  background: var(--atlas-card); border: 1px solid #ccd3dd; border-radius: 14px; padding: 12px 14px;
  border-top: 3px solid #ccd3dd;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  display: flex; gap: 11px; align-items: flex-start;
}
.atlas-path-card:hover { transform: translateY(-2px); box-shadow: var(--atlas-shadow); }
.atlas-path-card__num {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--atlas-font-mono); font-size: 10.5px; font-weight: 800;
  background: #e2e7ef; color: #5a6b80;
}
.atlas-path-card:nth-child(1) .atlas-path-card__num { background: color-mix(in srgb, #2a4b7c 15%, #e6ebf2); color: #1b3a63; }
.atlas-path-card:nth-child(2) .atlas-path-card__num { background: color-mix(in srgb, var(--atlas-natural) 15%, #e6ebf2); color: #1a7a70; }
.atlas-path-card:nth-child(3) .atlas-path-card__num { background: color-mix(in srgb, var(--atlas-applied) 15%, #e6ebf2); color: #9a4e18; }
.atlas-path-card:nth-child(4) .atlas-path-card__num { background: color-mix(in srgb, var(--atlas-social) 15%, #e6ebf2); color: #9a3456; }
.atlas-path-card:nth-child(5) .atlas-path-card__num { background: color-mix(in srgb, var(--atlas-other) 15%, #e6ebf2); color: #2f4fa8; }
.atlas-path-card h3 { margin: 0 0 3px; font-size: 15.2px; }
.atlas-path-card p { margin: 0; color: var(--atlas-ink-soft); font-size: 13.1px; line-height: 1.62; }
.atlas-path-card:nth-child(1) { border-top-color: var(--atlas-accent); }
.atlas-path-card:nth-child(2) { border-top-color: var(--atlas-natural); }
.atlas-path-card:nth-child(3) { border-top-color: var(--atlas-applied); }
.atlas-path-card:nth-child(4) { border-top-color: var(--atlas-social); }
.atlas-path-card:nth-child(5) { border-top-color: var(--atlas-other); }

/* Methodology */
.atlas-method-flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 12px;
  margin: 0; padding: 0;
}
.atlas-method-flow li {
  list-style: none; background: var(--atlas-card); border: 1px solid #ccd3dd; border-radius: 14px; padding: 12px 14px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  display: flex; gap: 11px; align-items: flex-start;
}
.atlas-method-flow li:hover { transform: translateY(-2px); box-shadow: var(--atlas-shadow); }
.atlas-method-flow .atlas-m-body { min-width: 0; flex: 1; }
.atlas-method-flow h4 { margin: 0 0 4px; font-size: 15.6px; }
.atlas-method-flow .atlas-m-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 11.5px; font-weight: 800; color: #fff; flex: 0 0 30px; margin-top: 1px;
}
.atlas-method-flow li:nth-child(1) .atlas-m-num { background: var(--atlas-applied); }
.atlas-method-flow li:nth-child(2) .atlas-m-num { background: var(--atlas-social); }
.atlas-method-flow li:nth-child(3) .atlas-m-num { background: var(--atlas-other); }
.atlas-method-flow p { margin: 0; color: var(--atlas-muted); font-size: 13.1px; line-height: 1.62; }

/* Method variants - 5 cards */
.atlas-method-variants {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 10px;
  margin-top: 16px;
}
.atlas-method-variant {
  background: var(--atlas-card); border: 1px solid #ccd3dd; border-radius: 14px;
  padding: 12px 14px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  position: relative; overflow: hidden;
}
.atlas-method-variant::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--atlas-accent), transparent 70%);
}
.atlas-method-variant:hover { transform: translateY(-2px); box-shadow: var(--atlas-shadow); }
.atlas-method-variant h5 { margin: 0 0 4px; font-size: 14px; }
.atlas-method-variant p { margin: 0; color: var(--atlas-muted); font-size: 12.8px; line-height: 1.6; }

/* Footer */
.atlas-footer {
  margin-top: 40px; border-top: 1px solid var(--atlas-line);
  padding: 26px 0 40px; color: var(--atlas-muted); font-size: 13px;
}

/* Hidden */
[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 980px) {
  .atlas-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .atlas-works-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .atlas-nav-toggle { display: inline-flex; }
  .atlas-nav {
    display: none;
    position: absolute; right: 0; top: calc(100% + 8px);
    flex-direction: column; gap: 0;
    background: #f5f7fa;
    border: 1px solid var(--atlas-line);
    border-radius: 14px;
    box-shadow: var(--atlas-shadow-strong);
    padding: 8px; min-width: 170px;
  }
  .atlas-nav.is-open { display: flex; }
  .atlas-nav a { padding: 9px 12px; border-radius: 9px; }
  .atlas-nav a:hover { background: #e6ebf2; }
  .atlas-map-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .atlas-rack { gap: 10px; }
  .atlas-spine { flex-basis: 72px; width: 72px; height: 198px; }
  .atlas-spine__title { font-size: 15.5px; }
  .atlas-spine__sub { display: none; }
  .atlas-rack-detail { grid-template-columns: 1fr; }
  .atlas-rack-meta { margin-left: 0; width: 100%; }
  .atlas-work-row__extra { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .atlas-map-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .atlas-reveal { opacity: 1; transform: none; }
}
/* Filter polish pass — catalog control trays */
.atlas-domain-bar {
  padding: 10px;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(235,240,247,0.64)),
    radial-gradient(460px 120px at 18% 0%, rgba(111,99,216,0.08), transparent 70%);
  box-shadow:
    0 14px 30px rgba(27,37,53,0.08),
    inset 0 1px 0 rgba(255,255,255,0.86),
    inset 0 -1px 0 rgba(27,37,53,0.045);
}
.atlas-domain-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  border-width: 1px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.82) inset,
    0 5px 13px rgba(27,37,53,0.055);
  transition-property: transform, box-shadow, background-color, border-color, color, filter;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.atlas-domain-pill::before {
  content: "";
  position: absolute;
  inset: 1px 7px auto 12px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  pointer-events: none;
}
.atlas-domain-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 9px 18px rgba(27,37,53,0.09);
  filter: saturate(1.03);
}
.atlas-domain-pill:active { transform: scale(0.96); }
.atlas-domain-pill:focus-visible {
  outline: 3px solid rgba(42,75,124,0.24);
  outline-offset: 2px;
}
.atlas-domain-pill .dot {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.62),
    0 0 0 4px rgba(27,37,53,0.05);
}
.atlas-domain-pill.is-active {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.24) inset,
    0 10px 22px rgba(27,37,53,0.16);
}
.atlas-domain-disciplines {
  position: relative;
  margin: 0 0 13px;
  padding: 9px 12px 9px 46px;
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(236,242,249,0.68));
  box-shadow:
    0 10px 22px rgba(27,37,53,0.07),
    inset 0 0 0 1px rgba(27,37,53,0.06),
    inset 0 1px 0 rgba(255,255,255,0.82);
  color: #425066;
  text-wrap: pretty;
}
.atlas-domain-disciplines::before {
  content: "学科";
  position: absolute;
  left: 11px;
  top: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e1e8f2;
  color: #56647a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.atlas-domain-disciplines[hidden] { display: none; }
.atlas-domain-disciplines strong {
  color: var(--atlas-ink);
  margin-right: 8px;
  font-weight: 850;
}

.atlas-medium-row {
  padding: 9px 10px;
  border: 1px solid rgba(27,37,53,0.065);
  border-radius: 16px;
  background: rgba(245,247,250,0.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}
.atlas-medium-label,
.atlas-wi-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(216,226,240,0.7);
  color: #536176;
  font-family: var(--atlas-font-mono);
  font-size: 10.8px;
  letter-spacing: 0.08em;
}
.atlas-medium-chip,
.atlas-wi-chip,
.atlas-wi-pill {
  min-height: 32px;
  border-radius: 999px;
  border-color: rgba(27,37,53,0.09);
  background: linear-gradient(180deg, #ffffff, #edf2f7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 10px rgba(27,37,53,0.045);
  transition-property: transform, box-shadow, background-color, border-color, color, filter;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.atlas-medium-chip:hover,
.atlas-wi-chip:hover,
.atlas-wi-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 8px 16px rgba(27,37,53,0.085);
}
.atlas-medium-chip:active,
.atlas-wi-chip:active,
.atlas-wi-pill:active { transform: scale(0.96); }
.atlas-medium-chip:focus-visible,
.atlas-wi-chip:focus-visible,
.atlas-wi-pill:focus-visible {
  outline: 3px solid rgba(42,75,124,0.22);
  outline-offset: 2px;
}
.atlas-medium-chip.is-active,
.atlas-wi-chip.is-active,
.atlas-wi-pill.is-active {
  background: linear-gradient(180deg, #26344a, #1b2535);
  color: #f5f7fb;
  border-color: rgba(27,37,53,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.16) inset,
    0 9px 18px rgba(27,37,53,0.16);
}

.atlas-works-filters {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(234,239,247,0.76)),
    radial-gradient(520px 140px at 0% 0%, rgba(24,150,139,0.08), transparent 68%),
    radial-gradient(420px 120px at 100% 12%, rgba(213,106,27,0.07), transparent 62%);
  box-shadow:
    0 16px 34px rgba(27,37,53,0.09),
    inset 0 1px 0 rgba(255,255,255,0.88),
    inset 0 -1px 0 rgba(27,37,53,0.04);
}
.atlas-wi-strip { gap: 5px 10px; }
.atlas-wi-group {
  gap: 6px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(255,255,255,0.46);
  box-shadow: inset 0 0 0 1px rgba(27,37,53,0.045);
}
.atlas-wi-group--domain { padding-right: 9px; }
.atlas-wi-group--medium {
  flex: 1 1 260px;
  min-width: 0;
}
.atlas-wi-pill,
.atlas-wi-chip {
  padding: 5px 11px;
  font-weight: 750;
}
.atlas-wi-disciplines {
  position: relative;
  padding: 6px 9px 6px 44px;
  border: 0;
  border-radius: 13px;
  background: rgba(255,255,255,0.56);
  box-shadow:
    inset 0 0 0 1px rgba(27,37,53,0.055),
    0 8px 18px rgba(27,37,53,0.055);
  text-wrap: pretty;
}
.atlas-wi-disciplines::before {
  content: "学科";
  position: absolute;
  left: 10px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e1e8f2;
  color: #56647a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.atlas-wi-disciplines[hidden] { display: none; }
.atlas-works-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(27,37,53,0.055);
  box-shadow: inset 0 0 0 1px rgba(27,37,53,0.055);
  font-family: var(--atlas-font-mono);
  font-weight: 750;
  margin-left: 0;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .atlas-domain-bar,
  .atlas-medium-row,
  .atlas-works-filters { border-radius: 14px; }
  .atlas-domain-pill,
  .atlas-medium-chip,
  .atlas-wi-pill,
  .atlas-wi-chip { min-height: 34px; }
  .atlas-domain-disciplines,
  .atlas-wi-disciplines { padding-left: 12px; }
  .atlas-domain-disciplines::before,
  .atlas-wi-disciplines::before { position: static; margin-right: 6px; }
  .atlas-wi-group--medium { min-width: 0; }
  .atlas-works-meta { margin-left: 0; }
}

/* Filter layout fixes — keep counts aligned with their control rows */
.atlas-medium-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
}
.atlas-medium-chips {
  min-width: 0;
}
.atlas-rack-meta {
  justify-self: end;
  width: auto;
  margin-left: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.atlas-wi-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
}
.atlas-wi-group--domain,
.atlas-wi-disciplines {
  grid-column: 1 / -1;
}
.atlas-wi-group--medium {
  grid-column: 1;
  min-width: 0;
}
.atlas-works-meta {
  grid-column: 2;
  justify-self: end;
  align-self: center;
  margin-left: 0;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .atlas-medium-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .atlas-rack-meta {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .atlas-wi-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas-wi-group--medium,
  .atlas-works-meta {
    grid-column: 1;
  }
  .atlas-works-meta {
    justify-self: start;
  }
}
