/* Project illustrations share the page's paper, ink, and blue palette. */
.project-study {
  min-width: 0;
}
.project-study .project-meta {
  margin: 0 0 20px;
  padding-top: 25px;
  border-top: 1px solid #c4d4e1;
}
.project-study h3 {
  font-size: clamp(22px, 2.15vw, 29px);
  margin-bottom: 13px;
}
.project-study .project-description {
  min-height: 76px;
  max-width: 470px;
}
.project-visual {
  --art-accent: #2879b6;
  --art-soft: #d7e7f2;
  --art-stroke: #68859d;
  position: relative;
  margin-top: 20px;
  padding: 18px 0 16px;
  border-top: 1px solid #d3e0e9;
  border-bottom: 1px solid #c9d9e5;
  background: radial-gradient(ellipse at 50% 40%, #dceaf4b3, #eef3f700 69%);
}
#seed .project-visual {
  --art-accent: #217e8d;
  --art-soft: #d5e8ec;
}
#secureSIM .project-visual {
  --art-accent: #3e6fba;
}
#flora .project-visual {
  --art-accent: #337f87;
}
.study-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #58738b;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 1.6px;
}
.study-kind {
  letter-spacing: 0.1px;
  font-size: 10px;
  color: #667f92;
}
.project-art {
  width: 100%;
  height: auto;
  margin: 10px 0 6px;
  overflow: visible;
}
.project-art text {
  font-family: "DM Sans", sans-serif;
  stroke: none;
}
.art-label {
  fill: #284a65;
  font-size: 16px;
  font-weight: 550;
}
.art-small {
  fill: #4e6d83;
  font-size: 13px;
}
.art-kicker {
  fill: #4a6b84;
  font-size: 12px;
  letter-spacing: 1px;
}
.art-code {
  fill: #45677e;
  font-size: 15px;
  font-family: monospace !important;
}
.art-symbol {
  fill: #f4f9fd;
  font-size: 20px;
}
.art-panel {
  fill: #e9f1f7;
  stroke: #92aec1;
  stroke-width: 1.3;
}
.art-device {
  fill: #e2edf5;
  stroke: #577b96;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.art-screen {
  fill: #d3e4ef;
  stroke: #91afc5;
  stroke-width: 1;
}
.art-chip {
  fill: #cadfeb;
  stroke: #6f94af;
  stroke-width: 1;
}
.art-line,
.art-device-line,
.art-radio,
.art-answer,
.art-trace {
  fill: none;
  stroke: #7795ab;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-device-line {
  stroke: #527c9b;
  stroke-width: 1.6;
}
.art-route {
  fill: none;
  stroke: #a5bfce;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.art-dot {
  fill: #6b98b5;
}
.art-context {
  fill: #537f9c;
}
.art-alert {
  fill: #e8d8c8;
  stroke: #a47c54;
}
.art-alert-text {
  fill: #946a41;
  font-size: 16px;
}
.art-shield {
  fill: #d1e4ed;
  stroke: #4c7f9c;
  stroke-width: 1.7;
}
.art-check {
  fill: none;
  stroke: #448d92;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-slot {
  fill: #d0e0eb;
  stroke: #91b0c4;
  stroke-width: 1;
}
.art-part .art-panel,
.art-part .art-device,
.art-part .art-chip,
.art-part .art-shield,
.art-part .art-screen,
.art-part .art-label,
.art-part .art-kicker,
.art-part .art-context {
  transition:
    fill 0.65s ease,
    stroke 0.65s ease;
}
.art-part.is-active .art-panel,
.art-part.is-active .art-device,
.art-part.is-active .art-chip,
.art-part.is-active .art-shield {
  fill: var(--art-soft);
  stroke: var(--art-accent);
}
.art-part.is-active .art-label,
.art-part.is-active .art-kicker {
  fill: var(--art-accent);
}
.art-part.is-active .art-context {
  fill: var(--art-accent);
}
.art-flow {
  fill: none;
  stroke: var(--art-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 9 91;
  opacity: 0;
  animation: study-flow 1.8s linear infinite;
  animation-play-state: paused;
}
.art-part.is-active .art-flow {
  opacity: 1;
}
.is-running .art-part.is-active .art-flow {
  animation-play-state: running;
}
.art-part .art-radio {
  animation: study-radio 1.8s ease-out infinite;
  animation-play-state: paused;
}
.is-running .art-part.is-active .art-radio {
  stroke: var(--art-accent);
  animation-play-state: running;
}
/* Answer lines stay complete in the static illustration. */
.art-answer {
  stroke-dasharray: 80;
}
.is-running .art-part.is-active .art-answer {
  stroke: var(--art-accent);
  animation: study-answer 2.5s ease both;
}
.art-slot-active {
  animation: study-slot 1.5s ease-in-out infinite;
  animation-play-state: paused;
}
.is-running .art-part.is-active .art-slot-active {
  fill: var(--art-accent);
  animation-play-state: running;
}
.art-trace {
  stroke: #40828b;
  stroke-dasharray: 18 5;
  animation: study-trace 2s linear infinite;
  animation-play-state: paused;
}
.is-running .art-part.is-active .art-trace {
  animation-play-state: running;
}
.study-steps {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
}
.study-steps li {
  font-size: 11px;
  color: #55728a;
  border-top: 1px solid #c5d7e4;
  padding-top: 10px;
  transition:
    color 0.4s,
    border-color 0.4s;
}
.study-steps li span {
  font-size: 9px;
  padding-right: 7px;
  color: #68869c;
}
.study-steps li.is-current {
  color: var(--art-accent);
  border-color: var(--art-accent);
}
.study-steps li.is-current span {
  color: var(--art-accent);
}
.project-visual figcaption {
  margin-top: 17px;
  padding-right: 58px;
  color: #58738a;
  font-size: 11px;
  line-height: 1.6;
  min-height: 36px;
}
.study-replay {
  position: absolute;
  bottom: 20px;
  right: 0;
  border: 0;
  padding: 4px 0 4px 10px;
  background: none;
  color: #436d8f;
  font-size: 10px;
}
.study-replay span {
  font-size: 16px;
  display: inline-block;
  margin-right: 3px;
  vertical-align: -1px;
  transition: transform 0.4s;
}
.study-replay:hover span {
  transform: rotate(-50deg);
}
.study-replay:hover {
  color: #185f96;
}
.project-resources {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-top: 23px;
}
.project-resources .text-link {
  margin: 0;
  font-size: 12px;
}
.map-constellation circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-discover 3s ease-in-out infinite;
  animation-play-state: paused;
}
.map-constellation circle:nth-child(2n) {
  animation-delay: -0.8s;
}
.map-constellation circle:nth-child(3n) {
  animation-delay: -1.6s;
}
.map-connectors {
  stroke-dasharray: 100;
  animation: map-connect 10.8s ease both;
  animation-play-state: paused;
}
.is-running .map-constellation circle,
.is-running .map-connectors {
  animation-play-state: running;
}
.map-panel[data-step="0"] .map-connectors {
  animation: none;
}
@keyframes study-flow {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes study-radio {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@keyframes study-answer {
  from {
    stroke-dashoffset: 80;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes study-slot {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes study-trace {
  to {
    stroke-dashoffset: -46;
  }
}
@keyframes map-discover {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}
@keyframes map-connect {
  from {
    stroke-dashoffset: 100;
  }
  55%,
  100% {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 760px) {
  .project-study .project-description {
    min-height: 90px;
  }
  .study-heading {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .study-kind {
    font-size: 9px;
  }
  .study-steps {
    gap: 7px;
  }
  .study-steps li {
    font-size: 10px;
  }
  .study-steps li span {
    display: block;
    padding-bottom: 3px;
  }
  .project-visual figcaption {
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .project-study .project-description {
    min-height: 0;
  }
  .project-study h3 {
    font-size: 26px;
  }
  .project-visual {
    margin-top: 24px;
  }
  .study-steps li span {
    display: inline;
  }
  .project-grid {
    row-gap: 48px;
  }
  .art-label {
    font-size: 18px;
  }
  .art-small {
    font-size: 15px;
  }
  .art-kicker {
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-visual *,
  .map-panel * {
    animation: none !important;
    transition: none !important;
  }
  .art-flow {
    display: none;
  }
  .study-replay {
    display: none;
  }
}
@media print {
  .study-replay {
    display: none;
  }
  .project-visual {
    break-inside: avoid;
  }
  .art-flow {
    display: none;
  }
}
/* Keep schematic labels readable in narrow browser panes and on tablets. */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
    row-gap: 46px;
  }
  .project-study .project-description {
    min-height: 0;
    max-width: 600px;
  }
  .project-study h3 {
    font-size: 28px;
  }
  .project-art {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
  .study-steps li span {
    display: inline;
  }
}
/* Acemap closes the project grid in the same editorial visual language. */
.acemap-project {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px 45px;
  align-items: start;
  margin-top: 62px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  overflow: visible;
}
.acemap-project > .project-meta {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.acemap-copy h3 {
  font-size: clamp(22px, 2.15vw, 29px);
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}
.acemap-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
}
.acemap-copy .text-link {
  margin-top: 23px;
}
.map-panel .project-visual {
  margin-top: 0;
}
.map-panel .project-visual #topic-map {
  margin: 10px 0 6px;
}
.map-panel .map-controls {
  justify-content: flex-start;
  margin-top: 22px;
}
.map-panel .map-load {
  color: #355e7d;
  border-color: #b6ccd9;
  background: transparent;
  padding: 8px 13px;
}
.map-panel .map-load:hover {
  background: #dce9f2;
}
.map-panel .field-select,
.map-panel .topic-select {
  color: #4e6c84;
  gap: 9px;
}
.map-panel select {
  color: #284c69;
  background: #e8f0f6;
  border-color: #a9c1d3;
  max-width: 100%;
}
.map-panel .map-status {
  text-align: left;
  color: #58738a;
  font-size: 11px;
  margin-top: 12px;
}
.map-panel .map-point.is-selected {
  stroke: #173f5e;
  stroke-width: 2;
}
@media (max-width: 900px) {
  .acemap-project {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 46px;
  }
  .acemap-copy h3 {
    font-size: 28px;
  }
  .acemap-copy p:not(.eyebrow) {
    max-width: 600px;
  }
  .acemap-project .map-panel {
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
  }
}
@media (max-width: 450px) {
  .map-panel .field-select,
  .map-panel .topic-select {
    width: 100%;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .map-panel select {
    width: 100%;
    min-width: 0;
  }
}
