:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f0f0ee;
  --line: rgba(0, 0, 0, 0.11);
  --line-strong: rgba(0, 0, 0, 0.2);
  --text: #111111;
  --muted: #666666;
  --faint: #999999;
  --mint: #111111;
  --mint-dim: rgba(0, 0, 0, 0.07);
  --blue: #5e6a82;
  --blue-dim: rgba(94, 106, 130, 0.11);
  --orange: #8a6a50;
  --orange-dim: rgba(138, 106, 80, 0.11);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -12%, rgba(0, 0, 0, 0.045), transparent 33rem),
    radial-gradient(circle at 8% 78%, rgba(0, 0, 0, 0.025), transparent 30rem),
    var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--mint);
  border-radius: 7px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
}
.brand-muted { color: var(--muted); font-weight: 550; }
.topbar-note { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.scope-pill, .directory-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.status-dot, .node-pulse, .chip-dot, .directory-item-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-dim);
}
.directory-toggle {
  appearance: none;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.directory-toggle:hover { border-color: var(--mint); color: var(--text); background: var(--surface-raised); }
.directory-count { color: var(--mint); }

.workspace {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  transition: grid-template-columns 240ms ease;
}
.directory {
  position: sticky;
  top: 72px;
  display: flex;
  height: calc(100vh - 72px);
  flex-direction: column;
  padding: 30px 20px 22px;
  overflow: hidden auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  transition: opacity 220ms ease, padding 220ms ease, transform 220ms ease;
}
.directory-top, .directory-group-heading, .flow-lanes-head, .detail-toolbar, .panel-heading, .map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.directory-top { align-items: flex-start; margin-bottom: 23px; }
.eyebrow { margin: 0; color: var(--faint); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; }
.accent-eyebrow { color: var(--mint); }
.directory-top h2 { margin: 7px 0 0; font-size: 17px; letter-spacing: -0.02em; }
.directory-total { color: var(--mint); font-family: var(--font-mono); font-size: 10px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
}
.search-box:focus-within { border-color: rgba(0, 0, 0, 0.52); }
.search-icon { position: relative; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.5px; background: currentColor; content: ""; transform: rotate(45deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: var(--faint); }
.search-box kbd { color: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.directory-groups { margin-top: 26px; }
.directory-group { margin-bottom: 27px; }
.directory-group-heading { color: var(--text); font-size: 11px; font-weight: 680; }
.directory-group-heading small { color: var(--faint); font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.directory-group > p { margin: 5px 0 10px; color: var(--faint); font-size: 10px; line-height: 1.35; }
.directory-list { display: grid; gap: 2px; }
.directory-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.directory-item:hover { border-color: var(--line); background: var(--surface-raised); }
.directory-item-dot { width: 5px; height: 5px; background: var(--faint); box-shadow: none; }
.directory-item-copy { display: grid; min-width: 0; gap: 2px; flex: 1; }
.directory-item-copy strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.directory-item-copy small { overflow: hidden; color: var(--faint); font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.directory-item-arrow { color: var(--faint); font-size: 12px; opacity: 0; transition: opacity 160ms ease, color 160ms ease; }
.directory-item:hover .directory-item-arrow { color: var(--mint); opacity: 1; }
.empty-search { color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-search strong { color: var(--text); }
.directory-footnote { margin: auto 2px 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; line-height: 1.5; }
.directory-scrim { display: none; }
.directory-collapsed .workspace { grid-template-columns: 0 minmax(0, 1fr); }
.directory-collapsed .directory { padding-right: 0; padding-left: 0; border: 0; opacity: 0; pointer-events: none; }

.map-main { min-width: 0; max-width: 1440px; padding: 68px clamp(28px, 5vw, 76px) 60px; margin: 0 auto; }
.map-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 38px; padding-bottom: 58px; }
.map-intro h1 { max-width: 700px; margin: 16px 0 17px; font-size: clamp(38px, 5.2vw, 73px); font-weight: 550; letter-spacing: -0.065em; line-height: 0.98; }
.map-intro h1 em { color: var(--mint); font-style: normal; }
.intro-copy { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.intro-stats { display: flex; align-items: flex-start; gap: 25px; padding-bottom: 4px; }
.intro-stats div { display: grid; gap: 4px; min-width: 63px; }
.intro-stats strong { font-size: 25px; font-weight: 500; letter-spacing: -0.05em; }
.intro-stats span { color: var(--faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.map-section { padding: 39px 0 52px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 34px minmax(200px, 1.25fr) minmax(220px, 0.75fr); align-items: start; gap: 18px; margin-bottom: 28px; }
.section-number { padding-top: 3px; color: var(--mint); font-family: var(--font-mono); font-size: 11px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(22px, 2.5vw, 32px); font-weight: 520; letter-spacing: -0.045em; }
.section-heading > p { max-width: 330px; margin: 19px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.node-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 242, 240, 0.96));
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.node-card:hover { border-color: rgba(0, 0, 0, 0.48); background: #ffffff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.node-card-top { display: flex; align-items: center; gap: 9px; width: 100%; margin-bottom: 16px; }
.node-card .node-pulse { width: 5px; height: 5px; box-shadow: 0 0 0 3px var(--mint-dim); }
.node-card .node-detail { overflow: hidden; color: var(--faint); font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.node-card strong { overflow: hidden; max-width: 100%; font-size: 14px; font-weight: 650; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.node-open { margin-top: 16px; color: var(--faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.02em; }
.node-open span, .hero-open span { color: var(--mint); }
.source-card { min-height: 142px; }
.source-card:nth-child(2n) .node-pulse { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.source-card:nth-child(3n) .node-pulse { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }
.source-rail { display: flex; align-items: center; gap: 12px; margin-top: 17px; color: var(--faint); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }
.source-rail b { color: var(--muted); font-weight: 600; }
.rail-line { width: 28px; height: 1px; background: var(--line-strong); }

.runtime-section { padding-bottom: 58px; }
.runtime-grid { display: grid; grid-template-columns: minmax(190px, 0.9fr) minmax(220px, 1.15fr) minmax(190px, 0.9fr); align-items: stretch; gap: 14px; }
.runtime-column { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.72); }
.column-label { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.column-label span { color: var(--mint); }
.product-cluster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.product-chip {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}
.product-chip:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.product-chip .chip-dot { width: 5px; height: 5px; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.product-chip span:not(.chip-dot) { overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-chip small { grid-column: 2; overflow: hidden; color: var(--faint); font-family: var(--font-mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.runtime-pair, .service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 5px; }
.runtime-pair .product-chip { background: var(--blue-dim); }

.api-hero {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #111111;
  border-radius: 18px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 11rem), linear-gradient(145deg, #262626, #090909);
  text-align: left;
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 42px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.api-hero::after { position: absolute; right: -50px; bottom: -80px; width: 220px; height: 220px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; box-shadow: 0 0 0 23px rgba(255, 255, 255, 0.035), 0 0 0 48px rgba(255, 255, 255, 0.025); content: ""; }
.api-hero:hover { border-color: #000000; box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2); transform: translateY(-2px); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; }
.hero-badge .node-pulse { width: 5px; height: 5px; background: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14); }
.api-hero strong { margin-top: 23px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 560; letter-spacing: -0.055em; }
.hero-detail { margin-top: 7px; color: #c8c8c8; font-family: var(--font-mono); font-size: 10px; }
.hero-count { margin-top: 34px; color: #ffffff; font-size: 28px; letter-spacing: -0.05em; }
.hero-count small { color: #bcbcbc; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; }
.hero-open { position: relative; z-index: 1; margin-top: 30px; color: #dddddd; font-family: var(--font-mono); font-size: 9px; }
.api-hero .hero-open span { color: #ffffff; }
.services-column { padding: 16px 12px; }
.service-stack { display: grid; gap: 5px; }
.service-card { min-height: 48px; justify-content: center; padding: 8px 10px; border-radius: 8px; }
.service-card .node-card-top { margin-bottom: 5px; }
.service-card .node-open, .service-mini .node-open { display: none; }
.service-card strong { font-size: 11px; }
.service-card .node-detail { font-size: 8px; }
.primary-service { border-color: rgba(0, 0, 0, 0.25); }
.service-mini { min-height: 56px; justify-content: center; padding: 8px; }
.service-mini .node-card-top { margin-bottom: 6px; }
.service-mini strong { font-size: 10px; }
.service-mini .node-detail { font-size: 7px; }
.flow-lanes { margin-top: 35px; border-top: 1px solid var(--line); }
.flow-lanes-head { padding: 17px 0 10px; }
.flow-lanes-head > span { color: var(--faint); font-size: 10px; }
.flow-lane { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; min-height: 57px; border-top: 1px solid var(--line); }
.flow-lane-name { display: grid; gap: 4px; }
.flow-lane-name span { color: var(--text); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.flow-lane-name small { color: var(--faint); font-size: 10px; }
.flow-sequence { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.flow-sequence::-webkit-scrollbar { display: none; }
.flow-token { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); color: var(--text); font-family: var(--font-mono); font-size: 9px; cursor: pointer; }
.flow-token:hover { border-color: var(--mint); color: var(--mint); }
.flow-copy { color: var(--muted); }
.flow-arrow { flex: 0 0 auto; color: var(--mint); font-family: var(--font-mono); font-size: 13px; }

.surfaces-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 14px; }
.surface-panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.72); }
.panel-heading { justify-content: flex-start; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-icon { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--mint); font-family: var(--font-mono); font-size: 14px; }
.panel-heading h3 { margin: 0 0 4px; font-size: 13px; font-weight: 650; }
.panel-heading span:not(.panel-icon) { color: var(--faint); font-family: var(--font-mono); font-size: 9px; }
.surface-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding-top: 14px; }
.surface-card { min-height: 104px; padding: 12px; background: var(--surface-soft); }
.surface-card .node-card-top { margin-bottom: 12px; }
.surface-card .node-open { margin-top: 11px; }
.surface-card strong { font-size: 11px; }
.delivery-list { display: grid; gap: 4px; padding-top: 13px; }
.delivery-row { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: stretch; gap: 8px; }
.delivery-index { padding-top: 12px; color: var(--faint); font-family: var(--font-mono); font-size: 9px; }
.delivery-card { min-height: 55px; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; }
.delivery-card .node-card-top { width: auto; margin: 0; }
.delivery-card .node-detail { max-width: 190px; }
.delivery-card strong { font-size: 11px; }
.delivery-card .node-open { margin: 0; }
.orientation-section { padding-bottom: 20px; border-top: 0; }
.orientation-card { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 15px; background: linear-gradient(110deg, rgba(0, 0, 0, 0.045), rgba(255, 255, 255, 0.65)); }
.orientation-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-family: var(--font-mono); font-size: 17px; }
.orientation-card h2 { margin: 7px 0 6px; font-size: 17px; font-weight: 580; letter-spacing: -0.03em; }
.orientation-card p:not(.eyebrow) { max-width: 570px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.open-index { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 10px; white-space: nowrap; cursor: pointer; }
.open-index span { color: var(--mint); font-size: 15px; }
.open-index:hover { border-color: var(--mint); }
.map-footer { justify-content: flex-start; gap: 12px; padding-top: 22px; color: var(--faint); font-family: var(--font-mono); font-size: 9px; }
.map-footer code { color: var(--muted); }
.footer-rule { width: 25px; height: 1px; background: var(--line-strong); }

.detail { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; }
.detail.open { visibility: visible; pointer-events: auto; }
.detail-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 240ms ease; backdrop-filter: blur(4px); }
.detail.open .detail-backdrop { opacity: 1; }
.detail-drawer { position: absolute; top: 0; right: 0; display: flex; width: min(600px, 100%); height: 100%; flex-direction: column; border-left: 1px solid var(--line-strong); background: #ffffff; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18); transform: translateX(100%); transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.detail.open .detail-drawer { transform: none; }
.detail-scroll { height: 100%; padding: 28px clamp(24px, 5vw, 52px) 80px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.detail-toolbar { align-items: center; }
.detail-close { padding: 7px 0 7px 10px; border: 0; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 10px; cursor: pointer; }
.detail-close span { margin-left: 9px; color: var(--text); font-size: 19px; vertical-align: -2px; }
.detail-close:hover { color: var(--mint); }
.detail-header { margin-top: 62px; }
.detail-orb { display: block; width: 12px; height: 12px; margin-bottom: 18px; border: 1px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 7px var(--mint-dim); }
.detail-header h2 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); font-weight: 540; letter-spacing: -0.06em; line-height: 1; }
.detail-kind { margin: 0; color: var(--mint); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; }
.detail-summary { margin: 27px 0 42px; color: #444444; font-size: 14px; line-height: 1.7; }
.detail-group { margin-bottom: 35px; }
.detail-group h3 { padding-bottom: 11px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-item { padding: 14px 0; border-bottom: 1px dotted var(--line); }
.detail-item:last-child { border-bottom: 0; }
.detail-item .name { color: var(--text); font-size: 13px; font-weight: 650; }
.detail-item .meta { margin-left: 9px; color: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.detail-item .desc { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 1060px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-note { display: none; }
  .runtime-grid { grid-template-columns: minmax(170px, 0.85fr) minmax(220px, 1.15fr); }
  .services-column { grid-column: 1 / -1; }
  .service-stack { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .service-pair { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .topbar { padding: 0 18px; }
  .scope-pill { display: none; }
  .workspace { display: block; }
  .directory { position: fixed; top: 72px; left: 0; z-index: 30; width: min(330px, calc(100vw - 42px)); transform: translateX(-100%); }
  .directory-open .directory { transform: none; box-shadow: 18px 0 50px rgba(0, 0, 0, 0.28); }
  .directory-open .directory-scrim { display: block; position: fixed; inset: 72px 0 0; z-index: 25; background: rgba(0, 0, 0, 0.2); }
  .directory-collapsed .directory { padding: 30px 20px 22px; border-right: 1px solid var(--line); opacity: 1; pointer-events: auto; }
  .map-main { padding: 47px 20px 45px; }
  .map-intro { display: block; padding-bottom: 44px; }
  .map-intro h1 { font-size: clamp(42px, 12vw, 68px); }
  .intro-copy { font-size: 14px; }
  .intro-stats { margin-top: 28px; }
  .section-heading { grid-template-columns: 28px 1fr; gap: 12px; }
  .section-heading > p { grid-column: 2; margin-top: -7px; }
  .source-grid { grid-template-columns: 1fr 1fr; }
  .source-rail { flex-wrap: wrap; }
  .runtime-grid { grid-template-columns: 1fr; }
  .api-hero { min-height: 270px; grid-row: 1; }
  .services-column { grid-column: auto; }
  .service-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-lane { grid-template-columns: 1fr; gap: 12px; padding: 15px 0; }
  .surfaces-grid { grid-template-columns: 1fr; }
  .orientation-card { align-items: flex-start; flex-wrap: wrap; }
  .open-index { margin-left: 54px; }
  .map-footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .brand { font-size: 10px; letter-spacing: 0.09em; }
  .brand-mark { width: 22px; height: 22px; }
  .directory-toggle { padding: 8px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-card { min-height: 125px; }
  .section-heading h2 { font-size: 24px; }
  .surface-cards { grid-template-columns: 1fr; }
  .orientation-card { padding: 18px; }
  .open-index { margin-left: 0; }
}
