.aeb-project {
  max-width: 1350px;
  padding: 0 clamp(1.125rem, 5vw, 4.5rem) 0;
}
.aeb-project .aeb-cover-hero {
  min-height: 0;
  gap: clamp(1.6rem, 4.5vw, 4.5rem);
  padding-block: clamp(2.35rem, 5vw, 4rem);
}
.aeb-project h1 { margin: .13em 0 .22em; font-size: clamp(3rem, 6.15vw, 5.2rem); }
.aeb-project .aeb-kicker { font-size: .875rem; }
.aeb-project .aeb-intro { margin: 0 0 .8rem; font-size: clamp(1.25rem, 2.8vw, 1.75rem); line-height: 1.3; font-weight: 700; }
.aeb-project .aeb-cover-render { margin: 0; }
.aeb-project .aeb-cover-render img { border-color: #9e65c8; }
.aeb-project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid #b575e474;
}
.aeb-project-links nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.aeb-project-links nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: .55rem .75rem;
  background: #2d1645;
  border: 1px solid #b575e474;
  text-decoration: none;
  font: 600 .875rem/1.25 var(--mono);
}
.aeb-project-links nav a:hover { background: #45235e; }
.aeb-project .aeb-educator-link {
  margin: 0;
  padding: .7rem .85rem;
  color: #fff1ff;
  background: #39204f;
  border: 1px solid #d489f8;
  box-shadow: 3px 3px 0 #7a3eb0;
  line-height: 1.35;
}
.aeb-project .aeb-educator-link:hover { color: #240b40; background: #fae4ff; }
.aeb-project-section { border-top: 1px solid #b575e474; padding-block: clamp(2.5rem, 6vw, 4.65rem); }
.aeb-project h2, .aeb-cad h2 {
  margin: 0 0 .35em;
  font: 700 clamp(2.35rem, 5vw, 4.2rem)/.99 var(--pixel);
}
.aeb-project-section > p { max-width: 62ch; }
.aeb-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  list-style: none;
  margin: 1.65rem 0 0;
  padding: 0;
}
.aeb-workflow li { background: #251239; border: 1px solid #9864bc82; }
.workflow-copy { padding: 1.05rem; }
.workflow-copy h3 { margin: 0 0 .4rem; font-size: 1.125rem; }
.workflow-copy p { margin: 0; color: #ead8f5; }
.workflow-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  align-items: center;
  min-height: 7rem;
  overflow: hidden;
  color: #eac9ff;
  background-color: #362054;
  background-image: linear-gradient(#b58ed319 1px, transparent 1px), linear-gradient(90deg, #b58ed319 1px, transparent 1px);
  background-size: 12px 12px;
  border-bottom: 1px solid #9864bc82;
  font: 600 .875rem var(--mono);
}
.workflow-predict { grid-template-columns: repeat(2, 3.8rem); gap: .45rem 1.05rem; text-align: center; }
.workflow-predict i {
  width: 1.3rem;
  height: 2.5rem;
  margin: auto;
  transform: rotate(-16deg);
  background: repeating-linear-gradient(#e2a7ff 0 .25rem, #452765 .25rem .5rem);
  border: 2px solid #e2a7ff;
}
.workflow-predict i:last-child { transform: rotate(16deg); }
.workflow-run { grid-template-columns: minmax(6.6rem, auto) 2.4rem; gap: .4rem .4rem; }
.workflow-run span { background: #1c102f; border-left: .25rem solid #d796f8; padding: .25rem .5rem; }
.workflow-run span:nth-child(2) { grid-column: 1; }
.workflow-run b { color: #fae8ff; }
.workflow-run i {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 2.25rem;
  height: 2.1rem;
  background: #ad73ed;
  border: 3px solid #f0c5ff;
  box-shadow: .31rem 0 #251239, -.31rem 0 #251239;
}
.workflow-debug { grid-template-columns: 3.8rem 3.55rem; gap: .85rem; }
.workflow-debug i {
  position: relative;
  height: 2.35rem;
  background: #150b29;
  border: 3px solid #ce8bff;
  box-shadow: 3px 3px #140a24;
}
.workflow-debug i::before {
  content: '';
  position: absolute;
  left: .62rem;
  top: .6rem;
  width: .53rem;
  height: .66rem;
  background: #f1acff;
  box-shadow: 1.45rem 0 #f1acff;
}
.workflow-debug i::after {
  content: '';
  position: absolute;
  left: 1.45rem;
  top: 1.35rem;
  width: .6rem;
  height: .22rem;
  background: #f1acff;
}
.workflow-debug span { display: flex; justify-content: space-between; align-items: center; }
.workflow-debug b { width: .3rem; height: 1.2rem; background: #e2a7ff; }
.workflow-debug b:nth-child(2), .workflow-debug b:nth-child(4) { height: 1.75rem; }
.workflow-debug b:nth-child(3) { height: 2.3rem; }
.workflow-test { grid-template-columns: 3.5rem 2rem; gap: .4rem; }
.workflow-test i {
  height: 2.5rem;
  border: 3px dashed #f2baff;
  border-bottom: 0;
  border-right: 0;
  border-radius: 1.3rem 0 0;
}
.workflow-test b {
  width: 1.3rem;
  height: 1.3rem;
  border: 3px solid #f2baff;
  background: #a15bdc;
  box-shadow: 3px 3px #251239;
}
.workflow-test span { grid-column: 1 / -1; text-align: center; font-size: .75rem; white-space: nowrap; }

.drive-aeb-video {
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid #b575e474;
  background: #251239;
}
.drive-aeb-video summary { width: fit-content; color: #f3c8ff; font: 600 .875rem/1.5 var(--mono); cursor: pointer; }
.drive-aeb-video video, .aeb-build-video { display: block; width: min(100%, 52rem); height: auto; margin-top: .9rem; }
.drive-aeb-video p { margin-bottom: .25rem; }
.aeb-print-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.aeb-print-grid h3 { margin: 0; }
.aeb-build-video { width: 100%; background: #251239; border: 1px solid #b575e474; }
@media (max-width: 700px) { .aeb-print-grid { grid-template-columns: 1fr; } }

.aeb-milestones { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid #b575e474; }
.aeb-milestones li {
  display: grid;
  grid-template-columns: minmax(11rem, .5fr) minmax(0, 1.5fr);
  gap: .75rem 1.4rem;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid #b575e474;
}
.aeb-milestones li:nth-child(2) { background: #3d1f56; border-left: 3px solid #e2a7ff; padding-left: calc(1.25rem - 3px); }
.aeb-milestones .milestone-date { color: #f1c4ff; font: 600 .875rem/1.5 var(--mono); }
.milestone-date span { display: table; margin-top: .5rem; padding: .14rem .45rem; color: #2c103e; background: #e2a7ff; }
.aeb-milestones h3 { margin: 0 0 .35rem; font-size: 1.18rem; }
.aeb-milestones p { margin: 0; max-width: 70ch; }
.aeb-project-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #b575e474;
  padding: 1.6rem 0 2.2rem;
  font: 600 .875rem/1.5 var(--mono);
}
.aeb-cad {
  width: min(56rem, calc(100% - 1.4rem));
  max-height: calc(100dvh - 1.4rem);
  padding: clamp(.8rem, 3vw, 1.5rem);
  border: 2px solid #ba7deb;
  color: #f8edff;
  background: #211133;
  box-shadow: 0 24px 95px #000b;
}
.aeb-cad::backdrop { background: #10081ad9; }
.cad-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .65rem; }
.cad-heading h2 { margin: .25rem 0; font-size: clamp(1.8rem, 4.5vw, 3rem); }
.cad-heading p { margin: 0; }
.cad-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.cad-control {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .45rem .62rem;
  color: #f8edff;
  background: #35204b;
  border: 1px solid #a368d0;
  font: 600 .9rem var(--mono);
  cursor: pointer;
}
.cad-control:hover:not(:disabled) { background: #543172; }
.cad-control:disabled { opacity: .55; cursor: default; }
.cad-close { background: #e2a7ff; color: #240b40; }
.cad-close:hover:not(:disabled) { color: white; }
.aeb-cad [data-cad-status] { max-width: none; color: #e6d1f2; margin: .7rem 0 0; font-size: .875rem; }
body:has(.aeb-cad[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .aeb-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .aeb-project-links nav { gap: .35rem; }
  .aeb-project-links nav a { padding-inline: .45rem; }
  .aeb-milestones li { grid-template-columns: 1fr; padding-inline: .65rem; }
  .aeb-milestones li:nth-child(2) { padding-left: calc(.65rem - 3px); }
  .milestone-date span { display: inline-block; margin: 0 0 0 .6rem; }
}
@media (max-width: 350px) { .aeb-workflow { grid-template-columns: 1fr; } }
[data-cad-stage] {
  position: relative;
  min-block-size: 14rem;
  block-size: clamp(14rem, 53vh, 34rem);
  overflow: hidden;
  background: #1c102a;
}
[data-cad-stage] > canvas,
[data-cad-stage] > img {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
}
[data-cad-stage] > img { object-fit: contain; }
[data-cad-stage] > img[hidden] { display: none; }
[data-cad-stage] > canvas { cursor: grab; }
[data-cad-stage] > canvas:active { cursor: grabbing; }
[data-cad-stage] > canvas:focus-visible { outline-offset: -4px; }
