:root {
  color-scheme: light;
  --ink: #16201b;
  --muted: #5d6861;
  --paper: #f4f0e8;
  --panel: #fffdf8;
  --soft: #ebe7de;
  --line: #d6cec1;
  --green: #1e6a51;
  --rust: #a6523b;
  --blue: #355f8b;
  --gold: #b8872b;
  --shadow: rgba(22, 32, 27, .10);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 78px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, .mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(214,206,193,.92);
  background: rgba(244,240,232,.92);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.01em;
}
nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }
.collection-repo { white-space: nowrap; }
#pallium-in-use { grid-template-columns: 1fr; }
.install-prompt { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 15px; user-select: all; }

section {
  border-bottom: 1px solid var(--line);
}
.inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 84px 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 1040px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: .96;
  letter-spacing: -.045em;
}
h2 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.lede {
  max-width: 700px;
  color: #2f3a34;
  font-size: clamp(19px, 2vw, 24px);
}
.hero-tool-list {
  max-width: 860px;
  display: grid;
  gap: 10px;
  font-size: clamp(18px, 1.65vw, 21px);
}
.hero-tool-line {
  position: relative;
  padding-left: 20px;
}
.hero-tool-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.hero-tool-line:nth-child(2)::before {
  background: var(--rust);
}
.hero-tool-line:nth-child(3)::before {
  background: var(--blue);
}
.hero-tool-line strong {
  color: var(--ink);
  margin-right: 0;
}
.muted {
  color: var(--muted);
}

/* Hero */
.hero {
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px, 44px 44px, auto;
}
.hero .inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  min-height: 640px;
  padding-top: 92px;
  padding-bottom: 92px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-positioning {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 740;
  text-decoration: none;
  transition: transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--ink);
  color: #fffaf1;
}
.button.secondary {
  background: rgba(255,253,248,.72);
}

.hero-proof {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.proof-card, .surface, .tool-card, .repo-card, .context-card, .project-row {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 18px 46px var(--shadow);
}
.proof-card {
  overflow: hidden;
}
.proof-card:nth-child(2) {
  width: 88%;
  justify-self: end;
}
.proof-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.proof-caption {
  padding: 14px 16px 15px;
}
.proof-caption strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}
.proof-caption span {
  color: var(--muted);
  font-size: 14px;
}

/* Principle */
.principle {
  background: var(--ink);
  color: #fffaf1;
}
.principle .inner {
  padding-top: 64px;
  padding-bottom: 64px;
}
.principle p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.035em;
}

.principle small {
  display: block;
  max-width: 820px;
  margin-top: 14px;
  color: #ced8d1;
  font-size: 17px;
}

/* Three tools */
.section-copy {
  max-width: 810px;
  margin-bottom: 36px;
}
.section-copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  position: relative;
  min-height: 0;
  padding: 27px;
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
}
.tool-card.minimap::before { background: var(--green); }
.tool-card.workflow::before { background: var(--rust); }
.tool-card.pallium::before { background: var(--blue); }
.tool-label {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.tool-summary {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.card-features {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 17px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.card-features li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 15px;
}
.card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.owns {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #334139 !important;
  font-size: 14px !important;
}
.owns strong { color: var(--ink); }

/* Why */
.why {
  background: #fffdf9;
}
.why-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 54px;
  align-items: start;
}
.why-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.why-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 17px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.why-number {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  padding-top: 3px;
}
.why-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}
.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Example workflow */
.scenario {
  background: var(--paper);
}
.scenario-intro {
  margin-bottom: 38px;
}
.scenario-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.architecture-diagram {
  --diagram-line-width: 3px;
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 36px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f1eee8 0%, #ebe7df 100%);
  box-shadow: inset 0 0 0 1px rgba(69, 64, 56, .12);
}
.architecture-top {
  display: flex;
  justify-content: center;
}
.architect-node {
  position: relative;
  width: min(320px, 100%);
  padding: 16px;
  border: 1px solid rgba(69, 64, 56, .17);
  border-radius: 9px;
  background: rgba(255, 253, 248, .62);
}

.architect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agent-identity,
.agent-platform {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.agent-copy,
.agent-copy strong,
.agent-copy small {
  display: block;
}
.agent-copy strong {
  font-size: 17px;
  line-height: 1.15;
}
.agent-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.agent-marker {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--ink);
  color: #fffaf1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.diagram-tool {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(28, 35, 31, .07);
}
.diagram-tool::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
}
.diagram-tool strong,
.diagram-tool span {
  display: block;
}
.diagram-tool strong {
  color: var(--ink);
  line-height: 1.15;
}
.diagram-tool span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.minimap-tool {
  min-height: 64px;
  margin-top: 14px;
  padding: 11px 15px 11px 19px;
}
.minimap-tool::before { background: var(--green); }
.minimap-tool strong {
  color: var(--green);
  font-size: 15px;
}
.pallium-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(390px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 15px 18px 15px 23px;
}
.pallium-bridge::before { background: var(--blue); }
.pallium-bridge strong {
  color: var(--blue);
  font-size: 18px;
}
.pallium-bridge span {
  margin-top: 0;
  font-size: 13px;
  text-align: right;
}
.connector-single,
.connector-tree {
  display: block;
  margin: 0 auto;
  overflow: visible;
}
.connector-single {
  width: 12px;
  height: 28px;
}
.connector-tree {
  width: min(650px, 100%);
  height: 48px;
}
.connector-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: var(--diagram-line-width);
  stroke-linecap: square;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.connector-arrow {
  fill: var(--blue);
}
.repository-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(650px, 100%);
  margin: 0 auto;
}
.repository-pod {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(69, 64, 56, .17);
  border-radius: 9px;
  background: rgba(255, 253, 248, .62);
}

.repository-body {
  padding: 17px 18px 16px;
}
.repository-agent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agent-identity strong {
  font-size: 17px;
}
.agent-platform {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
}
.agent-platform img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.workflow-tool {
  min-height: 64px;
  margin-top: 16px;
  padding: 12px 14px 12px 18px;
}
.workflow-tool::before { background: var(--rust); }
.workflow-tool strong {
  color: var(--rust);
  font-size: 14px;
}
.record-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.record-row strong {
  color: var(--rust);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 620px) {
  .scenario-intro {
    margin-bottom: 28px;
  }
  .scenario-intro p {
    font-size: 17px;
  }
  .architecture-diagram {
    padding: 20px 12px;
  }
  .architect-node {
    padding: 12px;
  }
  .agent-copy strong {
    font-size: 15px;
  }
  .agent-copy small {
    font-size: 10px;
  }
  .minimap-tool {
    padding: 11px 12px 11px 17px;
  }
  .pallium-bridge {
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 13px 12px 13px 18px;
  }
  .pallium-bridge strong {
    font-size: 16px;
  }
  .pallium-bridge span {
    font-size: 11px;
  }
  .connector-tree {
    height: 42px;
  }
  .repository-grid {
    gap: 10px;
  }

  .repository-body {
    padding: 13px 10px 12px;
  }
  .repository-agent {
    display: grid;
    align-content: start;
    gap: 7px;
  }
  .agent-identity strong {
    font-size: 14px;
  }
  .agent-platform {
    font-size: 11px;
  }
  .workflow-tool {
    margin-top: 12px;
    padding: 10px 9px 10px 14px;
  }
  .workflow-tool strong {
    font-size: 12px;
  }
  .workflow-tool span {
    font-size: 10px;
  }
  .record-row {
    display: grid;
    gap: 3px;
  }
  .record-row strong {
    font-size: 10px;
  }
}

@media (max-width: 350px) {
  .repository-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .connector-tree {
    height: 36px;
  }
}
/* Context split */
.context {
  background: #e9eeeb;
}
.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.context-card {
  padding: 29px;
  min-height: 250px;
  box-shadow: none;
}
.context-card .mono {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}
.context-card h3 {
  font-size: 22px;
}
.context-card p {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

/* Tools in use */
.tool-showcases {
  display: grid;
  gap: 28px;
}
.tool-showcase {
  --showcase-accent: var(--green);
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
  padding: clamp(26px, 3.5vw, 42px);
  border: 1px solid var(--line);
  border-left: 6px solid var(--showcase-accent);
  border-radius: 12px;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 18px 44px rgba(22, 32, 27, .06);
}
#minimap-in-use { --showcase-accent: var(--green); }
#agent-workflow-in-use { --showcase-accent: var(--rust); }
#pallium-in-use { --showcase-accent: var(--blue); }
.showcase-copy {
  display: grid;
  grid-template-columns: minmax(180px, .36fr) minmax(0, 1.64fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.showcase-copy h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.showcase-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.showcase-details li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 15px;
}
.showcase-details li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--showcase-accent);
}
.showcase-details strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}
.showcase-media {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  min-width: 0;
  margin: 0 auto;
}
.minimap-media {
  grid-template-columns: 1fr;
}
.surface {
  overflow: hidden;
  margin: 0;
}
.surface img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.surface figcaption,
.surface-caption {
  padding: 17px 18px;
}
.surface figcaption strong,
.surface-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}
.surface figcaption span,
.surface-caption span {
  color: var(--muted);
  font-size: 14px;
}
.record-preview {
  background: #202925;
  color: #fffaf1;
}
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: #d6dfd8;
}
.record-head strong {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #f1d390;
}
.record-preview pre {
  margin: 0;
  padding: 25px 22px 30px;
  min-height: 310px;
  color: #e8eee9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

 @media (max-width: 780px) {
  .tool-showcases {
    gap: 22px;
  }
  .tool-showcase {
    gap: 24px;
    padding: 24px 20px;
  }
  .showcase-copy,
  .showcase-details {
    grid-template-columns: 1fr;
  }
  .showcase-copy {
    gap: 18px;
  }
  .showcase-details {
    gap: 18px;
  }
}
/* Projects */
.projects {
  background: #fffdf9;
}
.project-list {
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.project-row h3 {
  margin: 0;
}
.project-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.project-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 720;
}
.closing {
  padding: 46px 0 58px;
  color: var(--muted);
  font-size: 15px;
}
.closing strong { color: var(--ink); }

@media (max-width: 1050px) {
  .hero .inner,
  .why-grid,
  .scenario-intro {
    grid-template-columns: 1fr;
  }
  .hero .inner { min-height: auto; }
  .hero-proof {
    grid-template-columns: 1fr 1fr;
  }
  .proof-card:nth-child(2) {
    width: 100%;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    grid-template-columns: auto 1fr;
    gap: 10px;
    justify-content: start;
    place-items: center start;
    padding: 2px 20px;
  }
  .flow-arrow::after {
    content: "↓";
    margin: 0;
  }
  .history-strip {
    grid-template-columns: 1fr;
  }
  .history-pill {
    width: fit-content;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: auto;
  }
  .tool-label {
    margin-bottom: 24px;
  }
  .context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header-inner,
  .inner {
    width: min(100% - 36px, var(--max));
  }
  .site-header-inner {
    min-height: 56px;
    gap: 12px;
  }
  .site-header .brand {
    font-size: clamp(11px, 3.2vw, 16px);
    white-space: nowrap;
  }
  nav { flex-shrink: 0; font-size: 12px; }
  nav a:not(.collection-repo) { display: none; }
  .inner {
    padding: 48px 0;
  }
  .hero .inner {
    padding-top: 56px;
    padding-bottom: 58px;
  }
  h1 {
    font-size: clamp(46px, 14vw, 68px);
  }
  .hero-proof {
    grid-template-columns: 1fr;
  }
  .proof-card:nth-child(2) {
    display: none;
  }
  .project-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .project-row a {
    width: fit-content;
  }
}

/* Consistent 16:10 screenshot sizing */
.hero-proof {
  width: min(100%, 620px);
  justify-self: end;
}
.proof-card:nth-child(2) {
  width: 100%;
  justify-self: stretch;
}
.proof-card img,
.surface img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top left;
}

@media (max-width: 1050px) {
  .hero .inner {
    grid-template-columns: 1fr;
  }
  .hero-proof {
    width: 100%;
    max-width: 900px;
    justify-self: start;
  }
}

@media (max-width: 780px) {
  .hero-proof {
    max-width: 640px;
  }
}
/* Mobile layout hardening */
body {
  overflow-x: hidden;
}
.proof-card {
  margin: 0;
}

@media (max-width: 780px) {
  .hero-proof {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .proof-card:nth-child(2) {
    display: block;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
  .record-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .record-head span,
  pre {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .site-header-inner,
  .inner {
    width: calc(100% - 28px);
  }
  h1 {
    font-size: clamp(38px, 12vw, 48px);
  }
  h2 {
    font-size: clamp(31px, 9vw, 38px);
  }
  .tool-card,
  .context-card,
  .coordinator-card,
  .repo-card {
    padding: 22px;
  }
  pre {
    padding: 20px 16px;
    font-size: 12.5px;
  }
  .principle p {
    font-size: 32px;
  }
}
@media (max-width: 780px) {
  .site-header {
    position: static;
  }
}
.brand,
.hero-tool-line strong,
.tool-label,
.showcase-copy h3,
.project-row h3 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}
/* Final visual polish */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(53, 95, 139, .08), transparent 30%),
    linear-gradient(rgba(214,206,193,.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,206,193,.72) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 44px 44px, 44px 44px, auto;
}
.tool-card {
  border-color: rgba(118, 108, 93, .30);
  background: linear-gradient(145deg, #fffefa 0%, #fbf8f2 100%);
  box-shadow: 0 18px 48px rgba(22, 32, 27, .09), inset 0 1px rgba(255,255,255,.8);
}
.architecture-diagram {
  border: 1px solid rgba(69, 64, 56, .14);
  background:
    linear-gradient(rgba(53, 95, 139, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 95, 139, .045) 1px, transparent 1px),
    linear-gradient(180deg, #f3f0ea 0%, #e9e5dd 100%);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 26px 70px rgba(22, 32, 27, .09), inset 0 1px rgba(255,255,255,.75);
}
.architect-node,
.repository-pod {
  border-color: rgba(69, 64, 56, .20);
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 12px 30px rgba(22, 32, 27, .08), inset 0 1px rgba(255,255,255,.85);
}
.diagram-tool {
  border-color: rgba(69, 64, 56, .22);
  box-shadow: 0 10px 24px rgba(22, 32, 27, .08), inset 0 1px rgba(255,255,255,.82);
}
.minimap-tool { background: linear-gradient(135deg, #fffefa, #f2f7f3); }
.workflow-tool { background: linear-gradient(135deg, #fffefa, #faf2ef); }
.pallium-bridge {
  border-color: rgba(53, 95, 139, .28);
  background: linear-gradient(135deg, #fffefa, #f1f5f9);
}
.connector-line {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-showcase {
  border-color: rgba(118, 108, 93, .25);
  border-left-width: 4px;
  border-left-color: var(--showcase-accent);
  background: linear-gradient(145deg, rgba(255, 254, 250, .96), rgba(248, 245, 238, .88));
  box-shadow: 0 24px 68px rgba(22, 32, 27, .08), inset 0 1px rgba(255,255,255,.8);
}
.surface {
  border-color: rgba(118, 108, 93, .28);
  box-shadow: 0 16px 38px rgba(22, 32, 27, .09), inset 0 1px rgba(255,255,255,.75);
}
.minimap-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}
@media (max-width: 780px) {
  .minimap-media { grid-template-columns: 1fr; }
  .architecture-diagram { box-shadow: 0 18px 44px rgba(22, 32, 27, .08), inset 0 1px rgba(255,255,255,.75); }
}
.pallium-functions {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}
.pallium-functions li::marker { color: var(--blue); }
@media (max-width: 620px) {
  .pallium-functions {
    padding-left: 15px;
    font-size: 11px;
  }
}

/* Compact installation prompt. */
#install .inner { padding-top: 36px; padding-bottom: 36px; }
#install .section-copy { margin-bottom: 16px; }
#install h2 { font-size: 26px; }
#install .section-copy p { margin-bottom: 0; font-size: 16px; }
.install-prompt { margin: 0 0 12px; color: var(--ink); }

.pallium-media { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
.pallium-media img { aspect-ratio: auto; }
@media (max-width: 780px) {
  .pallium-media { grid-template-columns: 1fr; }
}
