html,
body {
  margin: 0;
  background: transparent;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17191c;
}

body.render-page {
  display: grid;
  place-items: center;
  width: 1536px;
  height: 1024px;
  overflow: hidden;
}

.shot-canvas {
  position: relative;
  width: 100%;
  max-width: 1536px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
}

body.render-page .shot-canvas {
  width: 1536px;
  height: 1024px;
  max-width: none;
  aspect-ratio: auto;
}

.shot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.network {
  position: absolute;
}

.hero-shot .network {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 1536px;
  height: 1024px;
  transform: translateX(-50%) scale(0.92);
  transform-origin: top center;
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wire {
  fill: none;
  stroke: #202326;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.wire-muted {
  stroke: #6f7478;
  stroke-dasharray: 4 6;
}

.wire-label {
  font-size: 13px;
  font-weight: 650;
  fill: #202326;
}

.card {
  position: absolute;
  box-sizing: border-box;
  width: 210px;
  min-height: 156px;
  padding: 20px 18px;
  border: 1px solid #ccd1d4;
  border-radius: 9px;
  background: #ffffff;
  z-index: 2;
}

.card.large {
  width: 264px;
  min-height: 230px;
  padding: 23px 22px;
  border-color: #cf9b4c;
}

.card.note {
  width: 260px;
  min-height: 210px;
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent, #2d4f9e);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3,
.mini-card h4,
.panel h3,
.step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.card.large h3 {
  font-size: 26px;
}

.card .sub {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 620;
}

.card p,
.panel p,
.step p,
.mini-card p {
  margin: 14px 0 0;
  color: #15191c;
  font-size: 13px;
  line-height: 1.64;
}

.card.large p {
  font-size: 15px;
}

.person { --accent: #40329a; }
.book,
.text { --accent: #1f66c7; }
.concept { --accent: #d46f00; }
.event { --accent: #0a7b45; }
.place { --accent: #1d63d7; }
.note { --accent: #1f66c7; }
.shelf { --accent: #087577; }
.context { --accent: #14734c; }

.hero-shot .card-copernicus { left: 286px; top: 36px; width: 216px; min-height: 228px; }
.hero-shot .card-text { left: 637px; top: 38px; width: 204px; min-height: 228px; }
.hero-shot .card-observations { left: 897px; top: 38px; width: 238px; min-height: 244px; }
.hero-shot .card-galileo { left: 1268px; top: 38px; width: 208px; min-height: 228px; }
.hero-shot .card-ptolemy { left: 22px; top: 376px; width: 189px; min-height: 252px; }
.hero-shot .card-geocentrism { left: 320px; top: 372px; width: 198px; min-height: 250px; }
.hero-shot .card-heliocentrism { left: 656px; top: 385px; width: 258px; min-height: 250px; }
.hero-shot .card-kepler { left: 1038px; top: 386px; width: 195px; min-height: 238px; }
.hero-shot .card-note { left: 656px; top: 730px; width: 256px; min-height: 262px; }
.hero-shot .card-trial { left: 1277px; top: 640px; width: 199px; min-height: 246px; }

.hero-shot .card h3,
.hero-shot .card p,
.hero-shot .card .sub {
}

.hero-shot .card {
  overflow: visible;
}

.hero-shot .wires {
  width: 1536px;
  height: 1024px;
  overflow: visible;
}

.workspace-layout {
  position: absolute;
  inset: 28px 24px;
}

.project-card {
  position: absolute;
  left: 0;
  top: 330px;
  width: 142px;
  min-height: 250px;
  padding: 28px 18px;
  text-align: center;
}

.project-card .folder-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 26px;
  stroke-width: 1.6;
}

.panel {
  position: absolute;
  left: 174px;
  width: 994px;
  padding: 24px 22px;
  box-sizing: border-box;
  border: 1px solid #d1d5d8;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.panel.groups { top: 0; min-height: 236px; }
.panel.cards { top: 292px; min-height: 300px; }
.panel.bookshelves { top: 648px; min-height: 204px; }

.panel-title {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent, #2d4f9e);
  font-size: 20px;
  text-transform: uppercase;
}

.panel-copy h3 .icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.panel-copy p {
  max-width: 156px;
  font-size: 14px;
  line-height: 1.45;
}

.mini-row {
  display: grid;
  grid-template-columns: repeat(var(--count, 5), minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.mini-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 148px;
  padding: 16px 12px;
  border: 1px solid #d0d5d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.mini-card .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  color: var(--accent, #2d4f9e);
}

.mini-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.mini-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.cards .mini-card {
  min-height: 228px;
  padding: 16px 12px;
  text-align: left;
}

.cards .mini-card .icon {
  width: 26px;
  height: 26px;
  margin: 0 0 14px;
}

.cards .mini-card .label {
  margin-bottom: 12px;
  font-size: 10px;
}

.bookshelves .mini-row {
  grid-template-columns: repeat(4, 146px);
  gap: 14px;
  justify-content: center;
}

.bookshelves .mini-card {
  min-height: 132px;
  padding-left: 10px;
  padding-right: 10px;
}

.side-note {
  position: absolute;
  right: 0;
  width: 244px;
  min-height: 158px;
  padding: 22px 18px;
  box-sizing: border-box;
  border: 1px solid #d1d5d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.side-note h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
}

.side-note p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.side-project { top: 30px; --accent: #3f329b; }
.side-cards { top: 320px; --accent: #1f66c7; }
.side-shelves { top: 674px; --accent: #087577; }

.progress-shot {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
}

.progress-grid {
  display: grid;
  grid-template-columns: 220px 310px 390px 470px;
  gap: 14px;
  width: max-content;
  height: 826px;
  margin: 0 auto;
  align-items: start;
}

.step {
  position: relative;
}

.step-top {
  height: 136px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid #bfc5c9;
  border-radius: 8px;
  background: #fff;
  font-size: 21px;
  font-weight: 800;
}

.step-top h3 {
  font-size: 16px;
  text-transform: uppercase;
}

.step-top p {
  max-width: 100%;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.step-box {
  position: relative;
  box-sizing: border-box;
  height: 690px;
  overflow: hidden;
  border: 1px solid #d1d5d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.progress-card {
  position: absolute;
  box-sizing: border-box;
  width: 132px;
  height: 112px;
  min-height: 0;
  padding: 12px 11px;
  overflow: hidden;
  border: 1px solid #d0d5d8;
  border-radius: 7px;
  background: #fff;
  z-index: 2;
}

.progress-card.concept {
  height: 128px;
}

.progress-card .label {
  margin-bottom: 9px;
  font-size: 9px;
}

.progress-card .icon {
  width: 18px;
  height: 18px;
}

.progress-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
}

.progress-card p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

.context-card {
  width: 276px;
  height: 118px;
  min-height: 0;
  background: #f7fbf7;
}

.step-arrows {
  display: none;
}

.step-arrows::after {
  display: none;
}

.step:last-child .step-arrows {
  display: none;
}

.tiny-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.step-box .wire-label {
  font-size: 11px;
  font-weight: 600;
  fill: #202326;
  paint-order: stroke;
  stroke: #f7f5ef;
  stroke-width: 8px;
  stroke-linejoin: round;
}

/* Cards & bookshelves */
.bookshelf-shot {
  box-sizing: border-box;
  padding: 36px 54px;
}

.shot-heading {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.shot-heading .icon {
  width: 42px;
  height: 42px;
  color: #202326;
  stroke-width: 1.4;
}

.shot-heading h2 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.shot-heading p {
  margin: 0;
  color: #4f5559;
  font-size: 16px;
}

.shelf-scene {
  display: block;
  height: 470px;
  margin: 0 18px 32px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.shelf-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.cards-heading {
  margin-top: 0;
  margin-bottom: 18px;
}

.book-card-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.book-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 18px;
  min-height: 254px;
  padding: 14px;
  border: 1px solid #d2d5d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.book-cover {
  width: 98px;
  height: 190px;
  border-radius: 4px;
  object-fit: fill;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.16);
}

.book-card h3 {
  margin: 2px 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.book-card .author,
.book-card .meta {
  margin: 0 0 9px;
  color: #3e4448;
  font-size: 13px;
  line-height: 1.35;
}

.book-card .desc {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.book-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  margin-top: 12px;
}

.book-actions button {
  height: 36px;
  border: 1px solid #d4d7da;
  border-radius: 5px;
  background: #fff;
  color: #34383c;
  font: inherit;
  font-size: 13px;
}

/* Compact hero cards and unobstructed relationship labels */
.hero-shot .card {
  padding: 14px 15px;
}

.hero-shot .card.large {
  padding: 16px 18px;
}

.hero-shot .card .label {
  margin-bottom: 8px;
}

.hero-shot .card .sub {
  margin-top: 6px;
}

.hero-shot .card p {
  margin-top: 10px;
  line-height: 1.46;
}

.hero-shot .wire-label {
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #f7f5ef;
  stroke-width: 10px;
  stroke-linejoin: round;
}

.hero-shot .card-copernicus { min-height: 196px; }
.hero-shot .card-text { min-height: 190px; }
.hero-shot .card-observations { min-height: 214px; }
.hero-shot .card-galileo { min-height: 196px; }
.hero-shot .card-ptolemy { min-height: 214px; }
.hero-shot .card-geocentrism { min-height: 218px; }
.hero-shot .card-heliocentrism { min-height: 224px; }
.hero-shot .card-kepler { min-height: 210px; }
.hero-shot .card-note { min-height: 220px; }
.hero-shot .card-trial { min-height: 218px; }

.hero-shot #wire-disputed {
  stroke-width: 1.5;
}


/* Progressive complexity — reference layout */
.progressive-shot {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
}

.progressive-shot .progress-grid {
  display: grid;
  grid-template-columns: 218px 342px 398px 506px;
  gap: 14px;
  width: max-content;
  height: 890px;
  margin: 0 auto;
  align-items: start;
}

.progressive-shot .step-top {
  height: 150px;
}

.progressive-shot .step-number {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.progressive-shot .step-top h3 {
  font-size: 16px;
  line-height: 1.15;
}

.progressive-shot .step-top p {
  max-width: 250px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.progressive-shot .step-box {
  position: relative;
  box-sizing: border-box;
  height: 740px;
  overflow: hidden;
}

.progressive-shot .progress-card {
  box-sizing: border-box;
  width: 112px;
  height: auto;
  min-height: 92px;
  padding: 10px 10px 11px;
  overflow: visible;
  border-radius: 7px;
  z-index: 2;
}

.progressive-shot .progress-card.concept {
  height: auto;
  min-height: 112px;
}

.progressive-shot .progress-card.context-card {
  width: 276px;
  height: auto;
  min-height: 108px;
}

.progressive-shot .progress-card .label {
  gap: 6px;
  margin-bottom: 8px;
  font-size: 8px;
}

.progressive-shot .progress-card .icon {
  width: 17px;
  height: 17px;
}

.progressive-shot .progress-card h4 {
  font-size: 13px;
  line-height: 1.15;
}

.progressive-shot .progress-card p {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.42;
}

.progressive-shot .tiny-wire {
  z-index: 1;
}

.progressive-shot .step-box .wire {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progressive-shot .step-box .wire-label {
  font-size: 9px;
  font-weight: 600;
  fill: #202326;
  paint-order: stroke;
  stroke: #f7f5ef;
  stroke-width: 9px;
  stroke-linejoin: round;
}
