:root {
  --surface: #f4f6f2;
  --surface-strong: #ffffff;
  --ink: #17201e;
  --muted: #5c6965;
  --line: #cbd3cf;
  --forest: #123f38;
  --teal: #008b82;
  --coral: #ef6b51;
  --gold: #c59b2d;
  --blue: #3979c6;
  --dark: #111816;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: clamp(3.5rem, 8vw, 7.5rem);
  --space-xl: clamp(5rem, 11vw, 10rem);
  --radius: 6px;
  --motion-fast: 180ms;
  --motion-slow: 620ms;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body:has(dialog[open]) {
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 4vw;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
  gap: 1.2rem;
}

.header-home-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: none;
}

.store-return {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.store-return:hover,
.store-return:focus-visible { text-decoration: underline; }

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(244, 246, 242, 0.96);
  border-color: var(--line);
}

.wordmark,
.site-nav a {
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 700;
}

.wordmark-mark {
  width: 14px;
  height: 14px;
  background: var(--coral);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 78vw;
  overflow-x: auto;
  font-size: 0.9rem;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  position: relative;
  padding: 0.3rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(82svh, 860px);
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.76;
  transform: scale(1.015);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(8, 18, 16, 0.94) 0%, rgba(8, 18, 16, 0.72) 42%, rgba(8, 18, 16, 0.12) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 88vw);
  padding: 8rem 4vw clamp(4rem, 9vh, 7rem);
}

.eyebrow,
.project-number,
.evidence-label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 1.8rem 0 2.3rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

.primary-action {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.primary-action span {
  transition: transform var(--motion-fast);
}

.primary-action:hover span {
  transform: translateY(4px);
}

.hero-index {
  position: absolute;
  right: 4vw;
  bottom: 3rem;
  z-index: 2;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.hero-index span:first-child {
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: 1;
}

.hero-index span:last-child {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.section-inner {
  width: min(var(--content), 92vw);
  margin: 0 auto;
}

.project-index {
  padding: var(--space-lg) 0;
  color: var(--surface);
  background: var(--forest);
}

.project-index h2 {
  max-width: 800px;
  margin: 0 0 3rem;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.index-list {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.index-list a {
  display: grid;
  grid-template-columns: 72px minmax(240px, 1fr) minmax(180px, 0.7fr);
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: padding-left var(--motion-fast), color var(--motion-fast);
}

.index-list a:hover {
  padding-left: 0.8rem;
  color: #bce3dc;
}

.index-list span,
.index-list small {
  color: rgba(255, 255, 255, 0.68);
}

.project {
  padding: var(--space-xl) 0;
  scroll-margin-top: 68px;
}

.hero, .project-index { order: 0; }
.project-agent { order: 1; }
.project-csi { order: 2; }
.project-motor { order: 3; }
.project-knowledge { order: 4; }
.project-media { order: 5; }
.project-report { order: 6; }
.project-permission { order: 7; }
.project-bom { order: 8; }
.project-growth { order: 9; }
.project-commerce { order: 10; }
.project-tryon { order: 11; }
.closing { order: 12; }

.tryon-evidence { margin-bottom: var(--space-lg); }
.tryon-evidence img { height: auto; aspect-ratio: auto; object-fit: contain; }

.client-context { display: grid; grid-template-columns: auto auto 1fr; gap: 1rem 1.5rem; align-items: baseline; padding: 1rem 0; margin-bottom: 2.5rem; border-block: 1px solid var(--line); }
.client-context span { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-context strong { font-size: 1rem; }
.client-context p { margin: 0; color: var(--muted); }

.business-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 1.5rem 0 var(--space-lg);
  border-block: 1px solid var(--line);
}

.business-facts > div {
  min-height: 180px;
  padding: 1.2rem 1rem 1.2rem 0;
  border-right: 1px solid var(--line);
}

.business-facts > div:not(:first-child) { padding-left: 1rem; }
.business-facts > div:last-child { border-right: 0; }
.business-facts span { display: block; margin-bottom: .8rem; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.business-facts p { margin: 0; font-size: .92rem; line-height: 1.65; }
.project-knowledge .business-facts,
.project-permission .business-facts { border-color: #435451; }
.project-knowledge .business-facts > div,
.project-permission .business-facts > div { border-color: #435451; }
.project-knowledge .business-facts p,
.project-permission .business-facts p { color: #c0cfca; }
.project-knowledge .business-facts span,
.project-permission .business-facts span { color: #8d9a96; }

.project-bom { background: #f3f7f4; }
.project-bom .project-number,
.project-bom .project-lead { color: #4f6760; }
.bom-flow { color: #1d3c37; background: #fff; border-color: #abcac2; }
.bom-flow img { aspect-ratio: 1881 / 836; object-fit: contain; }
.bom-flow > span { border-color: #abcac2; }
.bom-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.bom-gallery .image-button {
  color: #1d3c37;
  background: #fff;
  border-color: #abcac2;
}

.bom-gallery .image-button:first-child {
  grid-column: 1 / -1;
}

.bom-gallery img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f7faf8;
}

.bom-gallery .image-button > span { border-color: #abcac2; }

.project-growth { background: #eef4f2; }
.project-growth .project-number,
.project-growth .project-lead { color: #4f6760; }
.growth-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 var(--space-lg);
}

.growth-gallery .image-button {
  color: #1d3c37;
  background: #fff;
  border-color: #c4d3ce;
}

.growth-gallery img {
  aspect-ratio: 1200 / 771;
  height: auto;
  object-fit: contain;
  background: #f7f8f9;
}

.growth-gallery .image-button > span { border-color: #c4d3ce; }

.project-commerce { color: #eef2f0; background: #111214; }
.project-commerce .project-number,
.project-commerce .project-lead { color: #a8b4b0; }
.project-commerce .client-context { border-color: #3b4140; }
.project-commerce .client-context span,
.project-commerce .client-context p,
.project-commerce .business-facts span { color: #a8b4b0; }
.project-commerce .business-facts { border-color: #3b4140; }
.project-commerce .business-facts > div { border-color: #3b4140; }
.commerce-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 1.5rem;
  margin: 0 0 var(--space-lg);
  align-items: start;
}
.commerce-gallery .image-button { color: #eef2f0; background: #1a1d1f; border-color: #3b4140; }
.commerce-gallery .image-button img { aspect-ratio: auto; object-fit: contain; background: #111214; }
.commerce-gallery .image-button > span { border-color: #3b4140; }
.project-commerce .capability-grid section { border-color: #3b4140; }
.project-commerce .data-boundary { color: #d7dfdc; background: #1a1d1f; border-color: #3b4140; }

.project-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 2rem 5vw;
  margin-bottom: var(--space-lg);
}

.project-number {
  grid-column: 1;
  color: var(--muted);
}

.project-heading h2 {
  grid-column: 2;
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.project-lead {
  grid-column: 2;
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-button img {
  width: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow);
}

.image-button:hover img {
  transform: scale(1.012);
}

.image-button > span {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.6fr);
  gap: 2.2rem;
  align-items: stretch;
}

.image-main img {
  aspect-ratio: 5 / 3;
}

.evidence-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.evidence-note > p:not(.evidence-label) {
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.45rem;
  line-height: 1.5;
}

.evidence-note dl {
  margin: 1rem 0 0;
}

.evidence-note dl div {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.evidence-note dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.evidence-note dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: var(--space-lg) 0;
  border-block: 1px solid var(--line);
}

.capability-grid section {
  min-height: 240px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.capability-grid section:first-child {
  padding-left: 0;
}

.capability-grid section:last-child {
  padding-right: 0;
  border-right: 0;
}

.capability-grid span {
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 2.4rem;
}

.capability-grid h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

.capability-grid p {
  color: var(--muted);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
}

.before-after img {
  aspect-ratio: 16 / 10;
}

.comparison-copy {
  text-align: center;
}

.comparison-copy span {
  color: var(--coral);
  font-size: 3rem;
}

.comparison-copy p {
  color: var(--muted);
  font-size: 0.85rem;
}

.project-knowledge {
  color: #eef3f0;
  background: var(--dark);
}

.project-knowledge .project-number,
.project-knowledge .project-lead {
  color: #aeb9b5;
}

.process-line {
  display: grid;
  margin-bottom: var(--space-lg);
  border-top: 1px solid currentColor;
}

.knowledge-process {
  grid-template-columns: repeat(5, 1fr);
}

.process-line > div {
  position: relative;
  min-height: 160px;
  padding: 1.4rem 1rem 1rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.process-line > div:last-child {
  border-right: 0;
}

.process-line span,
.process-line small {
  display: block;
  color: #8d9a96;
  font-size: 0.75rem;
}

.process-line strong {
  display: block;
  margin: 2.7rem 0 0.3rem;
}

.knowledge-process > div::after {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
}

.wide-evidence {
  color: #fff;
  background: #050a09;
  border-color: #34403c;
}

.wide-evidence img {
  aspect-ratio: 16 / 9;
}

.knowledge-workbench-evidence img {
  aspect-ratio: 1920 / 1304;
}

.wide-evidence > span,
.project-knowledge .image-button > span {
  border-color: #34403c;
}

.knowledge-details {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6vw;
  padding: var(--space-lg) 0;
}

.knowledge-details h3,
.media-outcome h3 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.detail-columns p {
  margin: 0;
  color: #b9c4c0;
}

.detail-columns strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}

.prototype-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-knowledge .prototype-gallery .image-button {
  color: #eef3f0;
  background: #0c1210;
  border-color: #34403c;
}

.prototype-gallery img {
  aspect-ratio: 16 / 9;
}

.project-media {
  background: #f7f2ec;
}

.media-process {
  grid-template-columns: repeat(6, 1fr);
  color: var(--ink);
}

.media-process > div {
  min-height: 120px;
  border-right-color: var(--line);
}

.media-process > div::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 42%;
  height: 5px;
  content: "";
  background: var(--coral);
}

.media-process strong {
  margin-top: 1.8rem;
}

.media-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
  gap: 1.5rem;
}

.media-primary img {
  height: 100%;
  min-height: 520px;
}

.media-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
}

.media-side img {
  aspect-ratio: 16 / 10;
}

.media-outcome {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5vw;
  align-items: center;
  padding-top: var(--space-lg);
}

.media-outcome > div > p:last-child {
  max-width: 550px;
  color: var(--muted);
}

.media-outcome img {
  aspect-ratio: 16 / 10;
}

.project-report { background: #eef3f1; }
.report-showcase { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 4vw; align-items: center; }
.report-showcase img { aspect-ratio: 1.366 / 1; object-fit: cover; }
.report-copy h3 { margin: 0 0 1rem; font-family: "STSong", "Songti SC", serif; font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 600; line-height: 1.25; }
.report-copy > p:last-child { color: var(--muted); }
.report-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--space-lg); border-block: 1px solid var(--line); }
.report-flow section { min-height: 220px; padding: 1.7rem 1.5rem; border-right: 1px solid var(--line); }
.report-flow section:first-child { padding-left: 0; }
.report-flow section:last-child { padding-right: 0; border-right: 0; }
.report-flow span { color: var(--coral); font-family: Georgia, serif; font-size: 2.2rem; }
.report-flow h3 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; }
.report-flow p { margin: 0; color: var(--muted); font-size: .9rem; }
.data-boundary { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; padding: 1.3rem 0; margin-top: 2rem; color: #31514b; border-top: 3px solid var(--teal); }
.data-boundary p { margin: 0; }

.project-permission { color: #eef3f0; background: #0f1e1b; }
.project-permission .project-number, .project-permission .project-lead { color: #aeb9b5; }
.permission-example { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; padding: 2rem 0; border-block: 1px solid #435451; }
.identity-column { padding-right: 2rem; border-right: 1px solid #435451; }
.role-mark { display: grid; width: 58px; height: 58px; margin-bottom: 1rem; color: #10201d; font-size: 1.8rem; font-weight: 800; background: #dfeae5; border-radius: 50%; place-items: center; }
.identity-column h3 { margin: 1rem 0 0; font-family: "STSong", "Songti SC", serif; font-size: 1.7rem; font-weight: 600; line-height: 1.35; }
.permission-label { margin: 0 0 .7rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.permission-label.allow { color: #8ed9b8; }
.permission-label.deny { color: #f4a18e; }
.permission-example ul { padding-left: 1.2rem; margin: 0; color: #c0cfca; }
.permission-example li { margin: .65rem 0; }
.permission-engine { display: grid; grid-template-columns: repeat(5, 1fr); margin: var(--space-lg) 0; border-top: 1px solid #435451; }
.permission-engine div { position: relative; min-height: 170px; padding: 1.4rem 1rem 1rem 0; border-right: 1px solid #435451; }
.permission-engine div:last-child { border-right: 0; }
.permission-engine span, .permission-engine small { display: block; color: #81948e; font-size: .75rem; }
.permission-engine strong { display: block; margin: 2rem 0 .45rem; }
.permission-architecture { color: #eef3f0; background: #07100f; border-color: #435451; }
.permission-architecture img { aspect-ratio: 1280 / 615; }
.permission-architecture > span { border-color: #435451; }
.control-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--space-lg); border-block: 1px solid #435451; }
.control-grid section { min-height: 190px; padding: 1.7rem 1.3rem; border-right: 1px solid #435451; }
.control-grid section:first-child { padding-left: 0; }
.control-grid section:last-child { padding-right: 0; border-right: 0; }
.control-grid h3 { margin: 0 0 .65rem; font-size: 1.1rem; }
.control-grid p { margin: 0; color: #aeb9b5; font-size: .9rem; }
.cotton-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1.5rem 0; margin-top: var(--space-lg); border-block: 1px solid #435451; }
.cotton-flow div { min-height: 110px; padding: 1rem; background: #172c27; border: 1px solid #435451; border-radius: var(--radius); }
.cotton-flow span { display: block; color: #8da49c; font-size: .72rem; }
.cotton-flow strong { display: block; margin-top: 1rem; font-size: .9rem; line-height: 1.4; }
.cotton-flow b { color: #80cfc0; font-size: 1.35rem; }

.project-agent { background: #e9eff0; }
.agent-origin { display: flex; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; padding: 1rem 0; margin-bottom: 1.5rem; border-block: 1px solid #aebcbe; }
.agent-origin span { color: var(--muted); font-size: .8rem; }
.agenthub-evidence { margin-bottom: 1.5rem; }
.agenthub-evidence img { aspect-ratio: 1201 / 707; }
.agent-demo { padding: clamp(1.2rem, 3vw, 2.5rem); color: #eef3f2; background: #172221; border: 1px solid #4c5d5b; border-radius: var(--radius); }
.agent-demo > header { display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid #40514f; }
.agent-demo h3 { max-width: 760px; margin: 0; font-family: "STSong", "Songti SC", serif; font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 600; line-height: 1.25; }
.status-badge, .checkpoint-action { flex: 0 0 auto; padding: .45rem .75rem; color: #c7f0e7; font-size: .78rem; font-weight: 700; background: #214a43; border: 1px solid #3f756b; border-radius: 999px; }
.task-prompt { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid #40514f; }
.task-prompt span { color: #8fa09c; font-size: .8rem; }
.worktree { padding: 2rem 0; }
.coordinator-node { position: relative; width: min(300px,100%); padding: 1rem 1.2rem; margin: 0 auto 2.5rem; text-align: center; background: #243431; border: 1px solid var(--teal); border-radius: var(--radius); }
.coordinator-node::after { position: absolute; top: 100%; left: 50%; width: 1px; height: 2.5rem; content: ""; background: #63736f; }
.coordinator-node span, .coordinator-node small { display: block; color: #91aaa4; font-size: .7rem; }
.coordinator-node strong { display: block; margin: .3rem 0; }
.agent-lanes { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; border-top: 1px solid #63736f; }
.agent-lanes section { position: relative; min-height: 210px; padding: 1.3rem; margin-top: 1.8rem; background: #202c2a; border: 1px solid #40514f; border-radius: var(--radius); }
.agent-lanes section::before { position: absolute; bottom: 100%; left: 50%; width: 1px; height: 1.8rem; content: ""; background: #63736f; }
.agent-lanes section > span { color: #8fa09c; font-family: Georgia,serif; font-size: 1.6rem; }
.agent-lanes h4 { margin: 1.2rem 0 .35rem; font-size: 1rem; }
.agent-lanes p { min-height: 3.4rem; margin: 0 0 1.2rem; color: #aebbb8; font-size: .85rem; }
.agent-lanes small { display: inline-block; padding: .2rem .5rem; font-size: .7rem; border-radius: 999px; }
.agent-lanes .done { color: #92dfbd; background: #203c31; }
.agent-lanes .working { color: #a7cdf5; background: #23374b; }
.agent-lanes .waiting { color: #dfc783; background: #403821; }
.artifact-strip { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: 1rem 0; border-block: 1px solid #40514f; }
.artifact-strip span { margin-right: .5rem; color: #8fa09c; font-size: .75rem; }
.artifact-strip strong { padding: .35rem .65rem; font-size: .75rem; font-weight: 600; background: #26322f; border: 1px solid #40514f; border-radius: 4px; }
.human-checkpoint { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; }
.human-checkpoint div > span, .human-checkpoint div > strong { display: block; }
.human-checkpoint div > span { color: #f3bc77; font-size: .75rem; }
.human-checkpoint div > strong { margin-top: .2rem; }
.checkpoint-action { color: #f4cf9b; background: #49341e; border-color: #735535; }
.agent-principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: var(--space-lg); border-block: 1px solid #aebcbe; }
.agent-principles section { min-height: 300px; padding: 2rem; border-right: 1px solid #aebcbe; }
.agent-principles section:first-child { padding-left: 0; }
.agent-principles section:last-child { padding-right: 0; border-right: 0; }
.agent-principles span { color: var(--blue); font-family: Georgia,serif; font-size: 2rem; }
.agent-principles h3 { margin: 2rem 0 .7rem; font-size: 1.3rem; line-height: 1.4; }
.agent-principles p { color: var(--muted); }
.agent-summary { display: grid; grid-template-columns: .5fr 1.5fr; gap: 4vw; padding-top: var(--space-lg); }
.agent-summary p:last-child { margin: 0; font-family: "STSong", "Songti SC", serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.25; }

.project-csi { background: #f1f4f2; }
.csi-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.csi-problem-grid section { padding: 2rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius); }
.csi-problem-grid section:last-child { border-top-color: var(--coral); }
.csi-problem-grid h3 { margin: 0 0 1rem; font-family: "STSong", "Songti SC", serif; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.3; }
.csi-problem-grid section > p:last-child { margin: 0; color: var(--muted); }
.csi-signal { margin-top: 1.5rem; background: #0e1718; border-color: #304544; }
.csi-signal img { aspect-ratio: 16 / 9; }
.csi-signal > span { color: #d9e7e2; border-color: #304544; }
.csi-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-lg); border-block: 1px solid var(--line); }
.csi-metrics section { min-height: 145px; padding: 1.5rem 1.2rem; border-right: 1px solid var(--line); }
.csi-metrics section:first-child { padding-left: 0; }
.csi-metrics section:last-child { padding-right: 0; border-right: 0; }
.csi-metrics strong { display: block; color: var(--teal); font-family: Georgia, serif; font-size: 2.25rem; }
.csi-metrics span { display: block; margin-top: .5rem; color: var(--muted); font-size: .88rem; }
.csi-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: var(--space-lg); border-bottom: 1px solid var(--line); }
.csi-flow section { min-height: 200px; padding: 1.5rem 1.5rem 2rem; border-right: 1px solid var(--line); }
.csi-flow section:first-child { padding-left: 0; }
.csi-flow section:last-child { padding-right: 0; border-right: 0; }
.csi-flow span { color: var(--coral); font-family: Georgia, serif; font-size: 2rem; }
.csi-flow h3 { margin: 1.4rem 0 .5rem; font-size: 1.2rem; }
.csi-flow p { margin: 0; color: var(--muted); font-size: .9rem; }

.closing {
  padding: var(--space-xl) 0;
  color: #fff;
  background: var(--forest);
}

.closing h2 {
  max-width: 960px;
  margin: 0 0 2rem;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.closing p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: #bdd1cb;
}

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  max-width: 1000px;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.3);
}

.resource-card .eyebrow { margin-bottom: .75rem; }
.resource-card h3 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.resource-card p:not(.eyebrow) { max-width: 700px; margin: 0; color: #bdd1cb; }

.primary-action.light:hover span {
  transform: translateY(-4px);
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding: 1.5rem 4vw;
  color: #dce5e1;
  background: var(--dark);
  font-size: 0.82rem;
}

footer a { color: inherit; }

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(4, 8, 7, 0.92);
}

.lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  place-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--motion-slow), transform var(--motion-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 4vw;
  }

  .project-heading,
  .business-facts,
  .evidence-layout,
  .knowledge-details,
  .media-outcome,
  .report-showcase,
  .permission-example,
  .agent-summary {
    grid-template-columns: 1fr;
  }

  .project-heading h2,
  .project-lead {
    grid-column: 1;
  }

  .knowledge-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-facts { grid-template-columns: repeat(3, 1fr); }

  .permission-engine { grid-template-columns: repeat(3, 1fr); }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
  .csi-problem-grid { grid-template-columns: 1fr; }
  .csi-metrics { grid-template-columns: repeat(2, 1fr); }
  .csi-flow { grid-template-columns: 1fr 1fr 1fr; }
  .cotton-flow { grid-template-columns: 1fr auto 1fr; }
  .cotton-flow b:nth-of-type(2) { display: none; }
  .cotton-flow div:nth-of-type(3) { grid-column: 1; }
  .cotton-flow div:nth-of-type(4) { grid-column: 3; }
  .agent-lanes { grid-template-columns: repeat(2, 1fr); }
  .agent-principles { grid-template-columns: 1fr; }
  .agent-principles section,
  .agent-principles section:first-child,
  .agent-principles section:last-child { min-height: 0; padding: 1.6rem 0; border-right: 0; border-bottom: 1px solid #aebcbe; }
  .agent-principles section:last-child { border-bottom: 0; }

  .media-process {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-stage {
    grid-template-columns: 1fr;
  }

  .media-primary img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .media-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .before-after {
    grid-template-columns: 1fr 80px 1fr;
  }

  .comparison-copy p {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 60px;
  }

  .wordmark span:last-child {
    display: none;
  }

  .header-home-links { gap: 0.8rem; }
  .store-return { font-size: 0.72rem; }

  .site-nav {
    gap: 1rem;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    width: 100%;
    padding: 7rem 5vw 3.5rem;
  }

  .hero-index {
    display: none;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(8, 18, 16, 0.94), rgba(8, 18, 16, 0.62));
  }

  .project-index h2 {
    margin-bottom: 2rem;
  }

  .index-list a {
    grid-template-columns: 44px 1fr;
  }

  .index-list small {
    grid-column: 2;
  }

  .capability-grid,
  .business-facts,
  .prototype-gallery,
  .bom-gallery,
  .growth-gallery,
  .media-side,
  .detail-columns,
  .csi-metrics,
  .csi-flow,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid section,
  .capability-grid section:first-child,
  .capability-grid section:last-child {
    min-height: 0;
    padding: 1.6rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-grid section:last-child {
    border-bottom: 0;
  }

  .business-facts > div,
  .business-facts > div:not(:first-child) {
    min-height: 0;
    padding: 1.1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .business-facts > div:last-child { border-bottom: 0; }

  .resource-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .capability-grid h3 {
    margin-top: 0.5rem;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .comparison-copy {
    transform: rotate(90deg);
  }

  .knowledge-process,
  .media-process {
    grid-template-columns: 1fr 1fr;
  }

  .client-context { grid-template-columns: 1fr; gap: .3rem; }
  .permission-engine { grid-template-columns: 1fr; }
  .cotton-flow { grid-template-columns: 1fr; gap: .6rem; }
  .cotton-flow b { display: none; }
  .cotton-flow div:nth-of-type(3), .cotton-flow div:nth-of-type(4) { grid-column: auto; }
  .csi-problem-grid section { padding: 1.5rem; }
  .agent-origin, .agent-demo > header, .human-checkpoint { align-items: flex-start; flex-direction: column; }
  .task-prompt { grid-template-columns: 1fr; }
  .agent-lanes { grid-template-columns: 1fr; }

  .process-line > div {
    min-height: 125px;
  }

  .knowledge-details {
    padding: 3rem 0;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .commerce-gallery { grid-template-columns: 1fr; }
}

@media print {
  .project-commerce { color: #17201e !important; background: #fff !important; }
  .project-commerce .project-number,
  .project-commerce .project-lead,
  .project-commerce .client-context span,
  .project-commerce .client-context p,
  .project-commerce .business-facts span { color: #5c6965 !important; }
  .project-commerce .client-context,
  .project-commerce .business-facts,
  .project-commerce .business-facts > div,
  .project-commerce .capability-grid section,
  .project-commerce .data-boundary { border-color: #cbd3cf !important; }
  .project-commerce .data-boundary { color: #17201e !important; background: #f4f6f2 !important; }
  .commerce-gallery .image-button { color: #17201e !important; background: #fff !important; border-color: #cbd3cf !important; }
  .commerce-gallery .image-button > span { color: #17201e !important; border-color: #cbd3cf !important; }
}
