/* DARK P07, Figma frame 1666:7984. Existing fixed-board scaler. */
#main #cq-mobile > .cq04-stage { display: none; }

html[data-theme="dark"] #main #cq-mobile.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-mobile > :not(.cq04-stage, .u-header, .u-footer, .anchor-alias),
html[data-theme="dark"] #main #cq-mobile::before,
html[data-theme="dark"] #main #cq-mobile::after { display: none; }

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

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

html[data-theme="dark"] #main #cq-mobile > .u-header { top: 0; }
html[data-theme="dark"] #main #cq-mobile > .u-footer { bottom: 0; }

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

#main #cq-mobile .cq04-stage :is(h2, h3, p, figure) { margin: 0; padding: 0; }
#main #cq-mobile .cq04-stage img { display: block; max-width: none; }

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

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

.cq04-trails {
  position: absolute;
  left: 0;
  top: 291.62px;
  width: 1920px;
  height: 1271.9px;
}

.cq04-checker { position: absolute; left: 0; top: 1075px; z-index: -2; }

#main #cq-mobile .cq04-stage .cq04-number {
  position: absolute;
  left: 590px;
  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(-23.279659deg, #9d59ff0a 20.981%, #7424ff30 62.234%);
  background-clip: text;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.cq04-heading { position: absolute; left: 80px; top: 120px; width: 1760px; height: 200.044px; }

.cq04-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  font: 700 32px/1.3 var(--cq04-text);
  white-space: nowrap;
}

.cq04-eyebrow b {
  display: grid;
  place-items: center;
  width: 190.348px;
  height: 36px;
  border: 1px solid white;
  border-radius: 24px;
  font: 700 24px/1.2 'Portfolio Trash', sans-serif;
  transform: skewX(-6.63deg) scaleY(.993312418);
}

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

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

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

#main #cq-mobile .cq04-heading .cq04-subtitle {
  position: absolute;
  top: 160.311px;
  left: 4.618px;
  width: 1409.448px;
  color: #f4f0fa;
  font: 700 32px/1.26 'ZK08 Noto', 'Noto Sans SC', 'PingFang SC', sans-serif;
  white-space: nowrap;
  transform: var(--cq04-skew);
  transform-origin: top left;
}

/* Independent light art and its original Figma mask. */
.cq04-floor-light {
  position: absolute;
  left: -419.871px;
  top: 1257.705px;
  width: 1445.103px;
  height: 155.243px;
  overflow: hidden;
  mask: url('../assets/cq-mobile-workflow-1666/91b9d.svg') 419.871px 0 no-repeat;
}

.cq04-floor-light img {
  position: absolute;
  width: 127.32%;
  height: auto;
  left: -13.66%;
  top: -805%;
}

.cq04-phone {
  position: absolute;
  width: 400.749px;
  height: 807.149px;
  top: 421.798px;
  left: var(--cq04-phone-x);
}

.cq04-phone img, .cq04-flow-arrow { position: absolute; }
.cq04-phone-featured { left: 82.440px; top: 359.488px; width: 442.226px; height: 931.768px; }
.cq04-featured-body { inset: 0; width: 100%; height: 100%; object-fit: contain; }

.cq04-featured-screen {
  position: absolute;
  left: 17.255px;
  top: 14.379px;
  width: 401.657px;
  height: 903.010px;
  border-radius: 53.682px;
  overflow: hidden;
}

.cq04-featured-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 .959px #000;
  pointer-events: none;
}

.cq04-featured-screen img {
  width: 100.019%;
  height: auto;
  top: -2px;
  left: .034px;
}

.cq04-task-callout {
  position: absolute;
  left: 44.096px;
  top: 522.442px;
  width: 170.632px;
  height: 21.089px;
  display: flex;
  align-items: center;
  gap: 2.13px;
  background: #fefdfe;
  color: #000a;
  font: 400 12.781px/19.172px 'PingFang SC', sans-serif;
}

.cq04-task-callout img { position: static; width: 17.042px; height: 17.042px; }
.cq04-task-callout strong { color: #3377ff; font-weight: 500; }

.cq04-shadow-soft { left: -178.535px; top: 569.396px; }
.cq04-shadow-tight { left: -24.597px; top: 766.152px; }
.cq04-frame-outer { left: 3.216px; top: 0; }
.cq04-side-right { left: 397.918px; top: 184.084px; }
.cq04-side-left { left: .959px; top: 108.65px; }
.cq04-frame-inner { left: 8.873px; top: 5.657px; }
.cq04-notch { left: 112.593px; top: 20.744px; }

.cq04-screen {
  position: absolute;
  left: 23.957px;
  top: 20.744px;
  width: 353.597px;
  height: 765.66px;
  border-radius: 39px;
  overflow: hidden;
}

.cq04-screen img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cq04-arrow-task { left: 237.735px; top: 565.396px; }
.cq04-arrow-next { left: 966.278px; top: 808.116px; transform: scaleX(-1); }

.cq04-values {
  position: absolute;
  left: 672px;
  top: 1180px;
  width: 1248px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  border: 2px solid #7b4cd4;
  border-radius: 30px 0 0 30px;
  background: url("data:image/svg+xml,%3Csvg%20viewBox%3D'0%200%201248%20125'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20preserveAspectRatio%3D'none'%3E%3Crect%20x%3D'0'%20y%3D'0'%20height%3D'100%25'%20width%3D'100%25'%20fill%3D'url%28%23grad%29'%20opacity%3D'1'%2F%3E%3Cdefs%3E%3CradialGradient%20id%3D'grad'%20gradientUnits%3D'userSpaceOnUse'%20cx%3D'0'%20cy%3D'0'%20r%3D'10'%20gradientTransform%3D'matrix%28-92.299%20-8.2089%202.3972%20-47.392%201060.5%20-130.13%29'%3E%3Cstop%20stop-color%3D'rgba%28115%2C21%2C195%2C1%29'%20offset%3D'0'%2F%3E%3Cstop%20stop-color%3D'rgba%2885%2C16%2C144%2C0.5%29'%20offset%3D'0.5'%2F%3E%3Cstop%20stop-color%3D'rgba%2855%2C10%2C93%2C0%29'%20offset%3D'1'%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20viewBox%3D'0%200%201248%20125'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20preserveAspectRatio%3D'none'%3E%3Crect%20x%3D'0'%20y%3D'0'%20height%3D'100%25'%20width%3D'100%25'%20fill%3D'url%28%23grad%29'%20opacity%3D'1'%2F%3E%3Cdefs%3E%3CradialGradient%20id%3D'grad'%20gradientUnits%3D'userSpaceOnUse'%20cx%3D'0'%20cy%3D'0'%20r%3D'10'%20gradientTransform%3D'matrix%2819.409%20-4.75%2047.424%2010.224%2094.326%20134.8%29'%3E%3Cstop%20stop-color%3D'rgba%28115%2C21%2C195%2C1%29'%20offset%3D'0'%2F%3E%3Cstop%20stop-color%3D'rgba%2885%2C16%2C144%2C0.5%29'%20offset%3D'0.5'%2F%3E%3Cstop%20stop-color%3D'rgba%2855%2C10%2C93%2C0%29'%20offset%3D'1'%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"),
    linear-gradient(180deg, #46239f40, #260f5c40),
    linear-gradient(#000a, #000a);
  backdrop-filter: blur(5.6px);
}

.cq04-value {
  --cq04-value-angle: 267.026957deg;
  --cq04-value-violet: 63.868%;
  --cq04-value-blue: 117.53%;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 337px;
}

.cq04-value:nth-of-type(2) {
  --cq04-value-angle: 267.769342deg;
  --cq04-value-violet: 76.835%;
  --cq04-value-blue: 114.19%;
}

.cq04-value:last-child { flex-basis: 356px; }
.cq04-value-copy { display: grid; gap: 6px; min-width: 0; }
.cq04-value-divider { position: relative; width: 0; height: 33px; flex: none; }
.cq04-value-divider img { position: absolute; top: 16px; left: -16px; transform: rotate(90deg); }

.cq04-value-icon {
  position: relative;
  flex: 0 0 88px;
  height: 88px;
  overflow: hidden;
}

.cq04-value-icon img {
  position: absolute;
  width: 338.897px;
  height: auto;
  left: var(--cq04-icon-left, -18.41px);
  top: -15.602px;
}

#main #cq-mobile .cq04-value h3 {
  width: max-content;
  color: #b18bff;
  font: 800 28px/37.7px var(--cq04-text);
  white-space: nowrap;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  #main #cq-mobile .cq04-value h3 {
    background-image: linear-gradient(var(--cq04-value-angle), #e2caff -46.847%, #964dff var(--cq04-value-violet), #2429ff var(--cq04-value-blue), #3d22b6 136.24%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

#main #cq-mobile .cq04-value p {
  color: #ffffffbf;
  font: 700 20px/26.1px 'ZK08 Noto', 'Noto Sans SC', 'PingFang SC', sans-serif;
  text-align: justify;
}

@media screen and (min-width: 769px) {
  body:not(.canvas-mode) #main #cq-mobile > .cq04-stage {
    --cq04-safe-top: calc((var(--portfolio-row-height) + 7px) / var(--zk592-scale, 1));
    --cq04-lower-group-rise: max(0px, calc((var(--portfolio-row-height) + 8px) / var(--zk592-scale, 1) - 95px));
  }
  body:not(.canvas-mode) #main #cq-mobile .cq04-heading {
    top: max(120px, var(--cq04-safe-top, 120px));
  }
  body:not(.canvas-mode) #main #cq-mobile .cq04-phone:not(.cq04-phone-featured) {
    top: calc(421.798px - var(--cq04-lower-group-rise, 0px));
  }
  body:not(.canvas-mode) #main #cq-mobile .cq04-arrow-next {
    top: calc(808.116px - var(--cq04-lower-group-rise, 0px));
  }
  body:not(.canvas-mode) #main #cq-mobile .cq04-values {
    top: calc(1180px - var(--cq04-lower-group-rise, 0px));
  }
}

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