/* DARK P30 — Figma 1872:437. Only the content uses the shared fixed-board scaler. */
#main #brand > .brand-ip-stage {
  display: none;
}

html[data-theme="dark"] #main #brand.portfolio-sheet {
  --brand-ip-scale: var(--zk592-scale, 1);
  --brand-ip-running-extra: max(0px, calc(var(--portfolio-row-height) - 60px * var(--brand-ip-scale)));
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  height: calc(1400px * var(--brand-ip-scale) + 2 * var(--brand-ip-running-extra));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: calc(22px * var(--brand-ip-scale));
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(#060713 calc(100% - var(--brand-ip-running-extra)), #090517 0);
  box-shadow: 0 14px 45px rgb(7 3 12 / 21%);
}

html[data-theme="dark"] #main #brand > :is(.sheet-content, .u-background) {
  display: none;
}

html[data-theme="dark"] #main #brand::after {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow: inset 0 0 0 calc(2px * var(--brand-ip-scale)) #372942;
  content: "";
  pointer-events: none;
}

html[data-theme="dark"] #main #brand > .brand-ip-stage {
  display: block;
  position: absolute;
  inset: var(--brand-ip-running-extra) auto auto 0;
  width: 1920px;
  height: 1400px;
  transform: scale(var(--brand-ip-scale));
  transform-origin: top left;
  background:
    linear-gradient(180deg, #060713 20.804%, rgb(10 14 36 / 50%) 66.335%, #090517 100%),
    url('../assets/cq-overview-1606/5e873.png') 0 291.62px / 1920px 1271.9px no-repeat,
    linear-gradient(180deg, #060713 0%, #0a0e24 56.747%, #090517 89.503%, #21003c 103.18%);
  color: #fff;
}

#main #brand .brand-ip-stage :is(h2, h3, p) {
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

#main #brand :is(.brand-ip-grid, .brand-ip-number, .brand-ip-heading,
                .brand-ip-results, .brand-ip-wave, .brand-ip-hero,
                .brand-ip-applications, .brand-ip-spec, .brand-ip-festival-bleed) {
  position: absolute;
}

#main #brand .brand-ip-stage img {
  display: block;
  max-width: none;
  object-fit: cover;
}

#main #brand .brand-ip-grid {
  inset: 1075px auto auto 0;
  width: 1920px;
  height: 590.769px;
}

#main #brand .brand-ip-stage .brand-ip-number {
  inset: -97px auto auto 943px;
  font: 700 820px/normal 'Portfolio Trash';
  letter-spacing: -57.4px;
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  background: linear-gradient(-30.546deg, rgb(157 89 255 / 3.8%) 20.981%, rgb(116 36 255 / 18.8%) 62.234%);
  background-clip: text;
  color: transparent;
}

#main #brand .brand-ip-heading {
  inset: 120px 80px auto;
  white-space: nowrap;
}

#main #brand .brand-ip-kicker {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 16px;
}

#main #brand .brand-ip-kicker > span {
  width: 237.348px;
  height: 36px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 24px;
  font: italic 700 24px/1.2 'Portfolio Trash', 'PingFang SC';
}

#main #brand .brand-ip-kicker b {
  font-weight: inherit;
  transform: matrix(1, 0, -.115457259, .993312418, 0, 1);
}

#main #brand .brand-ip-kicker > strong {
  font: 700 32px/1.3 'Portfolio Inter';
  font-optical-sizing: none;
}

#main #brand .brand-ip-stage .brand-ip-title {
  display: grid;
  grid-template-columns: 613.892px 527.892px;
  gap: 8px;
  height: 102.311px;
  margin-top: 12px;
  font: 400 86px/1.2 'ZK08 Title';
  text-align: left;
  color: #fff;
}

#main #brand .brand-ip-title > span {
  display: block;
  width: max-content;
  transform: matrix(1, 0, -.115457259, .993312418, 11.892, 0);
  transform-origin: left top;
}

#main #brand .brand-ip-title > span:last-child {
  background: linear-gradient(265.178deg, #e2caff 19.95%, #964dff 75.058%, #2429ff 121.1%, #3d22b6 137.16%);
  background-clip: text;
  color: transparent;
}

#main #brand .brand-ip-stage .brand-ip-intro {
  margin-top: 8px;
  height: 39.732px;
  font: 700 32px/1.26 'ZK08 Noto';
  color: #f4f0fa;
  transform: matrix(1, 0, -.115457259, .993312418, 4.618, 0);
  transform-origin: left top;
}

#main #brand .brand-ip-wave {
  inset: 593px auto auto 675px;
  width: 1312px;
  height: 382px;
  mask: url('../assets/brand-ip-1859/wave-mask.svg') 0 0 / 100% 100% no-repeat;
  mask-mode: alpha;
}

#main #brand .brand-ip-hero {
  inset: 39px auto auto 1040px;
  width: 860px;
  height: 860px;
}

#main #brand .brand-ip-disciplines {
  display: flex;
  justify-content: space-between;
  width: 966px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

#main #brand .brand-ip-disciplines li:first-child {
  width: 286px;
}

#main #brand .brand-ip-disciplines li:nth-child(2) {
  width: 262px;
}

#main #brand .brand-ip-disciplines li:last-child {
  width: 308px;
}

#main #brand .brand-ip-disciplines h3 {
  display: flex;
  align-items: center;
  gap: 3.203px;
  height: 37.746px;
  font: 900 32px/1.2 'Portfolio Inter', 'PingFang SC';
  color: rgb(255 255 255 / 90%);
}

#main #brand .brand-ip-disciplines h3 > span {
  width: 196.387px;
  transform: skewX(-6.63deg) scaleY(.993312);
}

#main #brand .brand-ip-disciplines li:last-child h3 > span {
  width: 228.387px;
}

#main #brand .brand-ip-disciplines h3 > img:first-child {
  transform: rotate(180deg);
}

#main #brand .brand-ip-disciplines h3 > img:last-child {
  transform: scaleY(-1);
}

#main #brand .brand-ip-disciplines p {
  margin-top: 8px;
  font: 400 22px/1.5 'Portfolio Inter', 'PingFang SC';
}

#main #brand :is(.brand-ip-spec, .brand-ip-application) {
  box-sizing: border-box;
  border: 1.6px solid #fbf8fe;
  border-radius: 30px;
  overflow: clip;
  backdrop-filter: blur(5.6px);
}

#main #brand :is(.brand-ip-spec, .brand-ip-application)::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 25.9px #681ee7, inset 0 0 25.9px #681ee7;
  content: "";
  pointer-events: none;
}

#main #brand .brand-ip-spec {
  inset: 464.79px auto auto 80px;
  width: 1062px;
  height: 353.2px;
  padding: 24px;
  background:
    url('../assets/brand-ip-1864/spec-glow.svg') 0 0 / 100% 100% no-repeat,
    linear-gradient(180deg, rgb(70 35 159 / 25%), rgb(38 15 92 / 25%));
}

#main #brand .brand-ip-spec > header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  white-space: nowrap;
}

#main #brand .brand-ip-spec > header h3 {
  width: 223px;
  font: 800 32px/37.7px 'Portfolio Inter', 'PingFang SC';
}

#main #brand .brand-ip-spec > header p {
  font: 700 22px/26.1px 'ZK08 Noto';
  letter-spacing: 1.32px;
  color: rgb(255 255 255 / 85%);
}

#main #brand .brand-ip-turnaround {
  position: relative;
  width: 600.147px;
  height: 256px;
  margin-top: 8px;
}

#main #brand .brand-ip-turnaround > img,
#main #brand :is(.brand-ip-spec-divider, .brand-ip-spec-details) {
  position: absolute;
}

#main #brand .brand-ip-turnaround .brand-ip-turnaround-checker {
  inset: .4px auto auto 46.4px;
  transform: translateX(508.4px) rotate(90deg);
  transform-origin: top left;
}

#main #brand .brand-ip-turnaround .brand-ip-turnaround-guides {
  inset: 7.1px auto auto 7.403px;
}

#main #brand .brand-ip-turnaround > :is(.brand-ip-turnaround-dots, .brand-ip-turnaround-art) {
  inset: 0;
  width: 100%;
  height: 100%;
}

#main #brand .brand-ip-front-badge {
  inset: 163.08px auto auto 138.06px;
}

#main #brand .brand-ip-side-badge {
  inset: 163.15px auto auto 257px;
  transform: skewX(-5deg) rotate(-1deg);
}

#main #brand .brand-ip-spec-divider {
  inset: 70px auto auto 663.147px;
}

#main #brand .brand-ip-spec-details {
  inset: 40.61px auto auto 728.4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 278px;
  margin: 0;
}

#main #brand .brand-ip-spec-details dt {
  margin: 0;
  font: 700 28px/38px 'ZK08 Noto';
}

#main #brand .brand-ip-spec-details div + div dt {
  font-family: 'Portfolio Inter', 'PingFang SC';
  font-weight: 800;
}

#main #brand .brand-ip-spec-details dd {
  margin: 10px 0 0;
  font: 500 22px/27px 'CQ03 Noto';
  color: #c5c5eb;
}

#main #brand .brand-ip-applications {
  inset: 848px 80px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#main #brand .brand-ip-application {
  position: relative;
  display: flex;
  align-items: end;
  height: 280px;
  margin: 0;
  isolation: isolate;
  background: linear-gradient(180deg, rgb(70 35 159 / 25%), rgb(38 15 92 / 25%));
}

#main #brand .brand-ip-application > .brand-ip-application-art {
  position: absolute;
  max-width: none;
  object-fit: fill;
}

#main #brand .brand-ip-stickers > .brand-ip-application-art {
  inset: -2.85% auto auto -2.93%;
  width: 105.74%;
  height: 121.29%;
}

#main #brand .brand-ip-stickers > .brand-ip-sticker-art {
  inset: -5.1% auto auto -10.57%;
  width: 110.56%;
  height: 112.67%;
}

#main #brand .brand-ip-roles > .brand-ip-application-art {
  inset: -9.8% auto auto -4.19%;
  width: 112.32%;
  height: 119.88%;
}

#main #brand .brand-ip-festival > .brand-ip-application-art {
  inset: -8.21% auto auto -3.44%;
  width: 106.88%;
  height: 108.91%;
}

#main #brand .brand-ip-application::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(14 10 38 / 0%) 60.357%, #34258c 93.036%);
  content: "";
  pointer-events: none;
}

#main #brand .brand-ip-application figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 68px;
  box-sizing: border-box;
  padding: 0 24px;
  background:
    url('../assets/brand-ip-1864/caption-glow.svg') 0 0 / 100% 100% no-repeat,
    linear-gradient(180deg, #291c71, #322099);
  white-space: nowrap;
}

#main #brand .brand-ip-application figcaption::before {
  flex: none;
  order: 1;
  width: 0;
  height: 24px;
  background: url('../assets/brand-ip-1864/caption-divider.svg') center / 2px 24px no-repeat;
  content: "";
  /* The rule overlays the center of the gap without taking layout width. */
  padding-inline: 1px;
  margin-inline: -1px;
}

#main #brand .brand-ip-application figcaption h3 {
  font: 700 28px/37.7px 'ZK08 Noto';
}

#main #brand .brand-ip-application figcaption p {
  order: 2;
  font: 700 20px/26.1px 'ZK08 Noto';
  color: rgb(255 255 255 / 75%);
}

#main #brand .brand-ip-application .brand-ip-role-badge {
  position: absolute;
  z-index: 1;
  inset: 160.65px auto auto 357.58px;
  transform: rotate(5.73deg);
}

#main #brand .brand-ip-festival-bleed {
  inset: 827px auto auto 1507px;
  width: 167px;
  height: 96px;
  mask: url('../assets/brand-ip-1864/festival-mask.svg') 0 0 / 100% 100% no-repeat;
  mask-mode: alpha;
}

#main #brand .brand-ip-results {
  inset: 1158px 80px auto;
  height: 142.2px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 100px;
  padding: 0 25.6px;
  border-radius: 30px;
  background:
    url('../assets/brand-ip-1864/summary-glow.svg') 0 0 / 100% 100% no-repeat,
    url('../assets/cq-assets-summary-1759/summary-base.png') center / cover no-repeat;
  backdrop-filter: blur(5.6px);
}

#main #brand .brand-ip-result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

#main #brand .brand-ip-result + .brand-ip-result::before {
  position: absolute;
  left: -50px;
  top: 50%;
  width: 40px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(90deg);
  background: url('../assets/cq-mobile-chain-1742/summary-divider.svg') center / 100% 100% no-repeat;
  content: "";
}

#main #brand .brand-ip-result-icon {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
  overflow: clip;
}

#main #brand .brand-ip-result-icon img {
  position: absolute;
  top: var(--icon-y);
  left: var(--icon-x);
  width: var(--icon-size);
  height: var(--icon-size);
}

#main #brand .brand-ip-result > div {
  flex: 1;
  min-width: 0;
}

#main #brand .brand-ip-result h3 {
  font: 800 28px/37.7px 'Portfolio Inter', 'PingFang SC';
  background: linear-gradient(259.728deg, #e7d4ff 11.025%, #f08ffd 69.881%, #2429ff 110.09%, #2c22b6 153.07%);
  background-clip: text;
  color: transparent;
}

#main #brand .brand-ip-result p {
  margin-top: 8px;
  font: 500 20px/26.1px 'CQ03 Noto';
  text-align: justify;
  color: rgb(255 255 255 / 75%);
}

/* Keep the shared running rows on their standard responsive breakpoints. */
html[data-theme="dark"] #main #brand > .portfolio-running {
  position: absolute;
  inset-inline: 0;
}

html[data-theme="dark"] #main #brand > .portfolio-running-header {
  inset-block: 0 auto;
}

html[data-theme="dark"] #main #brand > .portfolio-running-footer {
  inset-block: auto 0;
}
