/* DARK P14, Figma 1754:774. Uses the existing fixed-board scaler. */
#main #cq-engineering > .cq11-stage { display: none; }

html[data-theme="dark"] #main #cq-engineering.portfolio-sheet {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  min-height: 0;
  height: calc(1400px * var(--zk592-scale, 1) + 4px);
  padding: 0;
  border: 2px solid #372942;
  border-radius: 22px;
  overflow: clip;
  background: #060713;
  box-shadow: 0 14px 45px #07030c36;
}

html[data-theme="dark"] #main #cq-engineering > :not(.cq11-stage, .u-header, .u-footer, .anchor-alias),
html[data-theme="dark"] #main #cq-engineering::before,
html[data-theme="dark"] #main #cq-engineering::after { display: none; }

/* At 760px and below the legacy mobile layout forces .sheet-content visible. */
html[data-theme="dark"] #main #cq-engineering > .sheet-content { display: none !important; }

html[data-theme="dark"] #main #cq-engineering > .u-running {
  display: flex;
  position: absolute;
  inset-inline: 0;
  z-index: 5;
}

html[data-theme="dark"] #main #cq-engineering > .u-header { top: 0; }
html[data-theme="dark"] #main #cq-engineering > .u-footer {
  bottom: 0;
  height: calc(60px * var(--zk592-scale, 1));
  min-height: 0;
}
#main #cq-engineering > .u-header .cq11-header-topics { display: none; }

@media (min-width: 1201px) {
  html[data-theme="dark"] #main #cq-engineering > .u-header .u-identity {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  html[data-theme="dark"] #main #cq-engineering > .u-header .cq11-header-topics {
    display: flex;
    gap: 12px;
    align-items: center;
    font: 400 15px/1 'Portfolio Inter', 'PingFang SC', sans-serif;
    color: #ffffffbf;
  }
}

html[data-theme="dark"] #main #cq-engineering > .cq11-stage {
  --cq11-title: 'ZK08 Title', 'LogoSC Unbounded Sans', sans-serif;
  --cq11-text: 'Portfolio Inter', 'PingFang SC', sans-serif;
  --cq11-noto: 'CQ03 Noto', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --cq11-skew: matrix(1, 0, -.115457259, .993312418, 0, 0);
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 1920px;
  height: 1400px;
  margin: 0;
  padding: 0;
  isolation: isolate;
  transform: scale(var(--zk592-scale, 1));
  transform-origin: top left;
  color: #fff;
  font-family: var(--cq11-text);
}

#main #cq-engineering .cq11-stage :is(h2, h3, h4, p, ol, ul, figure) { margin: 0; padding: 0; letter-spacing: 0; }
#main #cq-engineering .cq11-stage img { display: block; max-width: none; }

.cq11-background,
.cq11-background::after { position: absolute; inset: 0; }

.cq11-background {
  z-index: -4;
  overflow: hidden;
  background: linear-gradient(180deg, #060713, #0a0e24 56.747%, #090517 89.503%, #21003c 103.18%);
}

.cq11-background::after {
  content: '';
  background: linear-gradient(180deg, #060713 20.804%, #0a0e2480 66.335%, #090517);
}

.cq11-trails { position: absolute; top: 291.62px; left: 0; width: 1920px; height: 1271.9px; }
.cq11-checker { position: absolute; top: 1075px; left: 0; z-index: -3; }

#main #cq-engineering .cq11-stage .cq11-number {
  position: absolute;
  left: 1273px;
  top: -97px;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  font: 700 820px/normal 'Portfolio Trash', sans-serif;
  letter-spacing: -57.4px;
  white-space: nowrap;
  background: linear-gradient(-41.93706deg, #9d59ff0a 20.981%, #7424ff30 62.234%);
  background-clip: text;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.cq11-heading { position: absolute; left: 80px; top: 140px; width: 1760px; }
.cq11-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  font: 700 32px/1.3 var(--cq11-text);
  white-space: nowrap;
}

#main #cq-engineering .cq11-eyebrow b {
  display: grid;
  place-items: center;
  width: 170.348px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 24px;
  font: 700 24px/1.2 'Portfolio Trash', sans-serif;
}

#main #cq-engineering .cq11-heading h2 {
  position: absolute;
  top: 50px;
  left: 0;
  width: 1104.784px;
  height: 102.311px;
  font: 400 86px/1.2 var(--cq11-title);
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}

.cq11-heading h2 span {
  position: absolute;
  left: 11.892px;
  width: 557px;
  height: 103px;
  transform: var(--cq11-skew);
  transform-origin: top left;
}

.cq11-heading h2 span + span {
  left: 588.784px;
  width: 516px;
  color: transparent;
  background: linear-gradient(265.178006deg, #e2caff 19.95%, #964dff 75.058%, #2429ff 121.1%, #3d22b6 137.16%);
  background-clip: text;
}

.cq11-eyebrow b span { transform: var(--cq11-skew); }

#main #cq-engineering .cq11-heading > p {
  position: absolute;
  left: 9.236px;
  top: 160.311px;
  width: 1116.6px;
  font: 700 32px/1.26 'ZK08 Noto', 'Noto Sans SC', 'PingFang SC', sans-serif;
  color: #f4f0fa;
  text-indent: .25em;
  transform: var(--cq11-skew);
  transform-origin: top left;
}

.cq11-badge {
  position: absolute;
  top: 140px;
  right: 80px;
  width: 347px;
  text-align: right;
}

.cq11-badge-top { display: flex; align-items: center; gap: 3px; }

#main #cq-engineering .cq11-badge b {
  flex: 0 0 230px;
  font: italic 600 36px/1.2 var(--cq11-text);
  white-space: nowrap;
  text-align: center;
  transform: var(--cq11-skew);
}

.cq11-badge-slash { flex: 0 0 14px; height: 40px; position: relative; }
.cq11-badge-slash::before {
  content: '';
  position: absolute;
  left: 4px;
  width: 6px;
  height: 40px;
  background: #fff;
  transform: rotate(11.73deg);
}
.cq11-badge-slash--end::before { background: linear-gradient(#a96cfe 15%, #fff 15%); }

.cq11-badge-icon {
  display: block;
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: 16px;
  mask: url('../assets/cq-team-delivery-1754/badge-mask.svg') center no-repeat;
}

.cq11-badge-icon img { position: absolute; left: -8px; top: -10.664px; }

#main #cq-engineering .cq11-badge > p {
  margin-top: 32px;
  font: 400 20px/1.2 'Portfolio Trash', sans-serif;
  color: #ffffff80;
  transform: var(--cq11-skew);
}

.cq11-ring-mask {
  position: absolute;
  left: -12px;
  top: 792px;
  width: 1401px;
  height: 464px;
  overflow: clip;
  mask: url('../assets/cq-team-delivery-1754/team-ring-mask.svg') center no-repeat;
}

.cq11-ring-mask img { position: absolute; left: -7%; top: 0; width: 111.99%; height: auto; }

.cq11-flow-image { position: absolute; height: auto; }

.cq11-role {
  position: absolute;
  top: 461px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 97.712px;
  padding: 8px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1843, #14143b);
}

.cq11-role--product { left: 109px; width: 318px; }
.cq11-role--project { left: 512px; width: 322px; }
.cq11-role--engineering { left: 903px; width: 335px; padding-inline: 12px; }

.cq11-role--project,
.cq11-role--engineering {
  background: linear-gradient(219deg, #1c1c4e 1.445%, transparent 26.57%), linear-gradient(#1a1843,#14143b);
}

.cq11-role > img { width: 80px; height: 80px; flex: none; }

#main #cq-engineering .cq11-role h3 {
  font: 900 36px/1.2 var(--cq11-text);
  transform: var(--cq11-skew);
  transform-origin: top left;
  margin-left: 2.482px;
  white-space: nowrap;
}

#main #cq-engineering .cq11-role p {
  margin-top: 5.5px;
  color: #fffc;
  font: 500 22px/1.5 var(--cq11-text);
  white-space: nowrap;
}

.cq11-template-icon {
  position: absolute;
  left: 528px;
  top: 725px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e1e7ff;
}

.cq11-comparison {
  position: absolute;
  left: 1305.758px;
  top: 432.811px;
  width: 548px;
  height: 648.378px;
  border: 1.081px solid #7b4cd4;
  border-radius: 34.6px;
  overflow: clip;
  background: url('../assets/cq-team-delivery-1754/comparison-glow-1.svg'),
    linear-gradient(#46239f40,#260f5c40);
  backdrop-filter: blur(6.055px);
}

.cq11-comparison-heading {
  position: absolute;
  left: 24.082px;
  top: 34.681px;
  display: flex;
  align-items: center;
  gap: 12.975px;
}

.cq11-comparison-heading > .cq11-comparison-icon {
  display: block;
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 17.916px;
  box-shadow: 0 3.181px 20.833px #cab4fd;
}

.cq11-comparison-icon > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#main #cq-engineering .cq11-comparison-heading h3 {
  font: 900 36px/1.2 var(--cq11-text);
  white-space: nowrap;
  transform: var(--cq11-skew);
}
.cq11-comparison-heading h3 span { font-weight: 600; }

#main #cq-engineering .cq11-comparison-description {
  position: absolute;
  left: 24.082px;
  top: 119.981px;
  width: 497.837px;
  font: 600 24px/1.5 var(--cq11-text);
  color: #fffc;
  text-align: justify;
}

.cq11-efficiency {
  position: absolute;
  left: 24.082px;
  top: 235.231px;
  width: 497.84px;
  height: 96.196px;
  border-radius: 23.028px;
  background: url('../assets/cq-team-delivery-1754/efficiency-banner.png') center / 100% auto no-repeat;
}

#main #cq-engineering .cq11-efficiency b {
  position: absolute;
  top: 20px;
  left: 233.568px;
  font: 400 65px/1 var(--cq11-title);
  letter-spacing: -2.3px;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg,#6837ff,#bc8dfb 85%);
  background-clip: text;
  transform: var(--cq11-skew);
}

#main #cq-engineering .cq11-timing {
  --cq11-baseline-hours: 80;
  position: absolute;
  left: 24.082px;
  top: 361.703px;
  width: 497.837px;
  height: 128.444px;
  margin: 0;
  padding: 19px 24px;
  display: grid;
  grid-template-rows: 38px 38px;
  align-content: center;
  gap: 10px;
  border: 1.6px solid #b281fe;
  border-radius: 17.3px;
  background: linear-gradient(165deg,#30245a,#1a153d 57%,#221646);
  box-shadow: inset 0 0 20px #8556f33b;
  color: #fff;
  font: 700 22px/1.2 var(--cq11-text);
}

.cq11-timing-row { display: grid; grid-template-columns: 100px 1fr 55px; align-items: center; gap: 11px; }
.cq11-timing-row dt, .cq11-timing-row dd { margin: 0; white-space: nowrap; }
.cq11-timing-row dd:last-child { font-size: 24px; }

.cq11-timing-track {
  width: 100%;
  height: 20px;
  border-radius: 99px;
  background: #ffffff26;
}
.cq11-timing-track::before {
  content: '';
  display: block;
  width: calc(var(--cq11-hours) / var(--cq11-baseline-hours) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#d5d8fb,#766cb1);
  box-shadow: inset 0 0 0 1px #ffffff75;
}
.cq11-timing-row--skill .cq11-timing-track::before { background: linear-gradient(90deg,#7f46ff,#ff80ec); }

.cq11-comparison-rule { position: absolute; left: 24.082px; top: 519.881px; }

#main #cq-engineering .cq11-comparison-note {
  position: absolute;
  left: 24.082px;
  top: 550.697px;
  width: 497.837px;
  font: 600 20px/30.275px 'PingFang SC', var(--cq11-noto);
  color: transparent;
  background: linear-gradient(90deg,#c09fff,#ac87f1);
  background-clip: text;
  letter-spacing: .8px;
  text-align: justify;
}

.cq11-summary {
  position: absolute;
  left: 140px;
  top: 1177px;
  width: 1640px;
  height: 123.2px;
  border-radius: 30px;
  background: url('../assets/cq-team-delivery-1754/summary-glow-1.svg'),
    url('../assets/cq-team-delivery-1754/summary-glow-2.svg'),
    url('../assets/cq-team-delivery-1754/summary-base.png') center / cover;
  backdrop-filter: blur(5.6px);
}

.cq11-outcome { position: absolute; top: 17.6px; display: flex; align-items: center; gap: 16px; }
.cq11-outcome--knowledge { left: 49.6px; }
.cq11-outcome--standards { left: 608px; }
.cq11-outcome--delivery { left: 1106.4px; }
.cq11-outcome img { width: 88px; height: 88px; object-fit: contain; }
.cq11-outcome--delivery img { object-fit: cover; object-position: bottom; }

#main #cq-engineering .cq11-outcome h3 {
  width: max-content;
  font: 800 28px/37.7px var(--cq11-text);
  color: transparent;
  background: linear-gradient(267.602deg,#e7d4ff -69.587%,#f08ffd 22.195%,#2429ff 106.46%,#2c22b6 151.93%);
  background-clip: text;
}
#main #cq-engineering .cq11-outcome p {
  margin-top: 8px;
  font: 500 20px/26.1px var(--cq11-noto);
  color: #ffffffbf;
  white-space: nowrap;
}

.cq11-summary-divider { position: absolute; top: 60.6px; transform: translate(-50%,-50%) rotate(90deg); }
.cq11-summary-divider--first { left: 571.801px; }
.cq11-summary-divider--second { left: 1070.199px; }

.cq11-product-requirement { left: 65.302px; top: 420.681px; width: 402.288px; }
.cq11-project-template { left: 469.298px; top: 420.681px; width: 400.58px; }
.cq11-engineering-repository { left: 871.586px; top: 420.681px; width: 404.85px; }
.cq11-role-arrow-one { left: 454.778px; top: 656.416px; width: 35.873px; }
.cq11-role-arrow-two { left: 856.212px; top: 656.416px; width: 36.727px; }
.cq11-skill-links { left: 254.061px; top: 830.655px; width: 826.782px; }
.cq11-skill-capsule { left: 316.412px; top: 904.963px; width: 708.061px; }

@media screen and (max-width: 768px) {
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-engineering.portfolio-sheet {
    height: calc(1400px * var(--zk592-scale, 1) + 92px);
  }
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-engineering > .cq11-stage { top: 44px; }
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-engineering > .u-footer { height: 44px; }
}
