/* D proposal — dimensional editorial storytelling and restrained motion. */
.design-d .d-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 9vw, 146px) 0;
  background: #f3f6f9;
  border-block: 1px solid #dce4eb;
}
.design-d .d-showcase::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -260px;
  border: 1px solid #d9e4ef;
  border-radius: 50%;
  box-shadow: 0 0 0 70px #f8fafc, 0 0 0 71px #dfe7ee;
}
.design-d .d-showcase-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(350px, .78fr) minmax(610px, 1.22fr);
  gap: clamp(55px, 7vw, 105px);
  align-items: center;
}
.design-d .d-showcase-copy { position: relative; z-index: 3; }
.design-d .d-showcase-copy .section-label {
  margin: 0 0 16px;
  color: #e76b27;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.design-d .d-showcase-copy h2 {
  margin: 0;
  color: #102d51;
  font-size: clamp(37px, 3.7vw, 55px);
  line-height: 1.38;
  letter-spacing: -.045em;
}
.design-d .d-showcase-copy > p:not(.section-label) {
  margin: 27px 0 33px;
  color: #52697e;
  font-size: 16px;
  line-height: 2;
}
.design-d .d-showcase-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ced9e3; }
.design-d .d-showcase-copy li { display: grid; grid-template-columns: 42px 1fr; gap: 17px; align-items: center; padding: 18px 0; border-bottom: 1px solid #ced9e3; }
.design-d .d-showcase-copy li .pro-icon { width: 31px; height: 31px; padding: 0; color: #315b83; }
.design-d .d-showcase-copy li strong { display: block; color: #102d51; font-size: 17px; }
.design-d .d-showcase-copy li small { display: block; margin-top: 4px; color: #687b8e; font-size: 12px; }

.design-d .d-workspace-stage {
  --stage-rx: 0deg;
  --stage-ry: 0deg;
  position: relative;
  min-height: 610px;
  margin: 0;
  perspective: 1250px;
  transform-style: preserve-3d;
}
.design-d .d-stage-halo {
  position: absolute;
  inset: 8% 2% 14% 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #cddff4 0, #e7eef6 45%, transparent 69%);
  filter: blur(2px);
  transform: translateZ(-90px);
}
.design-d .d-workspace {
  position: absolute;
  z-index: 2;
  inset: 82px 48px 88px 35px;
  overflow: hidden;
  border: 1px solid #b8c7d6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 38px 55px #183b6029, 0 8px 18px #183b601c;
  transform: rotateX(calc(5deg + var(--stage-rx))) rotateY(calc(-9deg + var(--stage-ry))) rotateZ(-1deg);
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  animation: d-workspace-breathe 8s ease-in-out infinite alternate;
}
.design-d .d-workspace::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, #ffffffa8 47%, transparent 59%);
  translate: -130% 0;
  animation: d-screen-scan 8s ease-in-out infinite;
}
.design-d .d-workspace-bar { height: 56px; padding: 0 21px; display: flex; align-items: center; gap: 7px; color: #6f8191; background: #f6f8fa; border-bottom: 1px solid #dce4eb; }
.design-d .d-workspace-bar > i { width: 8px; height: 8px; border-radius: 50%; background: #ccd6df; }
.design-d .d-workspace-bar > i:first-child { background: #e76b27; }
.design-d .d-workspace-bar > span { margin-left: 12px; font-size: 10px; letter-spacing: .12em; }
.design-d .d-workspace-bar > b { margin-left: auto; padding: 5px 10px; color: #fff; background: #315b83; border-radius: 3px; font-size: 10px; }
.design-d .d-workspace-body { height: calc(100% - 56px); padding: 25px; display: grid; grid-template-columns: 1.35fr .78fr; gap: 18px; background: #eef3f7; }
.design-d .d-outline-panel, .design-d .d-insight-panel { padding: 22px; background: #fff; border: 1px solid #d7e0e8; border-radius: 7px; }
.design-d .d-outline-panel > small, .design-d .d-insight-panel > small { color: #7a8b9b; font-size: 9px; letter-spacing: .12em; }
.design-d .d-outline-panel > strong { display: block; margin: 8px 0 20px; color: #102d51; font-size: 18px; }
.design-d .d-outline-row { min-height: 58px; padding: 10px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; border-top: 1px solid #e5ebf0; color: #566b80; }
.design-d .d-outline-row b { color: #e76b27; font-size: 11px; }
.design-d .d-outline-row span { font-size: 12px; font-weight: 700; }
.design-d .d-outline-row em { padding: 3px 5px; color: #72869a; background: #f1f5f8; border-radius: 2px; font-size: 8px; font-style: normal; }
.design-d .d-outline-row.is-active { margin-inline: -5px; padding-inline: 15px; border: 1px solid #b9d2e9; border-radius: 4px; background: #f5faff; box-shadow: 0 8px 17px #315b8314; }
.design-d .d-quality-ring { width: 116px; height: 116px; margin: 35px auto 30px; display: grid; place-content: center; text-align: center; border: 12px solid #edf2f6; border-top-color: #e76b27; border-right-color: #315b83; border-radius: 50%; animation: d-ring-pulse 5s ease-in-out infinite; }
.design-d .d-quality-ring > span { color: #102d51; font: 700 27px/1 Arial,sans-serif; }
.design-d .d-quality-ring > small { margin-top: 5px; color: #718497; font-size: 9px; }
.design-d .d-quality-list { display: grid; gap: 10px; }
.design-d .d-quality-list > span { display: flex; align-items: center; gap: 8px; color: #52697e; font-size: 10px; }
.design-d .d-quality-list i { width: 7px; height: 7px; border-radius: 50%; background: #e76b27; box-shadow: 0 0 0 4px #fff0e8; }

.design-d .d-search-chip, .design-d .d-source-card, .design-d .d-aio-card { position: absolute; z-index: 4; box-shadow: 0 24px 36px #17395e24; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.design-d .d-search-chip { top: 36px; right: 2px; width: 295px; padding: 15px 18px; display: grid; grid-template-columns: 27px 1fr 24px; gap: 10px; align-items: center; color: #fff; background: #1765d4; border-radius: 8px; transform: translate3d(0,0,76px) rotate(-4deg); animation: d-float-a 5.5s ease-in-out infinite; }
.design-d .d-search-chip .pro-icon { width: 24px; height: 24px; }
.design-d .d-search-chip span { font-size: 13px; font-weight: 700; }
.design-d .d-search-chip i { width: 18px; height: 18px; border: 2px solid #fff; border-left-color: transparent; border-radius: 50%; animation: d-spinner 6s linear infinite; }
.design-d .d-source-card { left: -7px; bottom: 61px; min-width: 310px; padding: 17px 19px; display: grid; grid-template-columns: 42px 1fr 27px; gap: 13px; align-items: center; color: #102d51; background: #fff; border: 1px solid #c7d3de; border-radius: 8px; transform: translateZ(58px) rotate(3deg); animation: d-float-b 6.5s ease-in-out infinite; }
.design-d .d-source-card .pro-icon { width: 36px; height: 36px; color: #315b83; }
.design-d .d-source-card small { display: block; color: #718599; font-size: 8px; letter-spacing: .12em; }
.design-d .d-source-card strong { display: block; margin-top: 3px; font-size: 13px; }
.design-d .d-source-card > b { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: #e76b27; border-radius: 50%; }
.design-d .d-aio-card { right: -22px; bottom: 19px; width: 250px; padding: 22px; color: #fff; background: #102d51; border: 1px solid #486681; border-radius: 9px; transform: translateZ(90px) rotate(-2deg); animation: d-float-c 7s ease-in-out infinite; }
.design-d .d-aio-card > small { color: #f2a171; font-size: 9px; letter-spacing: .12em; }
.design-d .d-aio-card > strong { display: block; margin-top: 8px; font-size: 17px; line-height: 1.55; }
.design-d .d-aio-card > div { margin-top: 16px; display: flex; gap: 5px; }
.design-d .d-aio-card > div span { display: block; width: 27%; height: 4px; background: #7893ac; }
.design-d .d-aio-card > div span:first-child { width: 43%; background: #e76b27; }
.design-d .d-workspace-stage figcaption { position: absolute; inset: auto 0 0; text-align: center; color: #6d8091; font-size: 10px; }

.design-d .d-motion-enter { opacity: 1; translate: 0 0; transition: opacity .75s ease, translate .75s ease; }
.d-motion-js .design-d .d-motion-enter { opacity: 0; translate: 0 24px; }
.d-motion-js .design-d .d-motion-enter.is-motion-visible { opacity: 1; translate: 0 0; }
.design-d #flow .flow-list { position: relative; }
.design-d #flow .flow-list::before { content: ""; position: absolute; z-index: 2; left: 5%; right: 5%; top: 77px; height: 2px; pointer-events: none; background: linear-gradient(90deg,#e76b27,#315b83); transform: scaleX(1); transform-origin: left; transition: transform 1.3s ease .2s; }
.d-motion-js .design-d #flow .flow-list::before { transform: scaleX(0); }
.design-d #flow .flow-list.is-motion-visible::before { transform: scaleX(1); }
.design-d #flow .flow-list li { position: relative; z-index: 3; }
.design-d #cases .case-visual img, .design-d #evidence .image-card figure { transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease; }
.design-d #cases .case-feature:hover .case-visual img { transform: perspective(950px) rotateY(3deg) translateY(-6px); filter: drop-shadow(0 18px 18px #17395e25); }
.design-d #evidence .image-card:hover figure { transform: perspective(950px) rotateX(2deg) rotateY(-3deg) translateY(-5px); box-shadow: 0 25px 40px #0a213d24; }
.design-d .d-report-paper { animation: d-report-float 7s ease-in-out infinite; }

@keyframes d-workspace-breathe { from { translate: 0 0; } to { translate: 0 -7px; } }
@keyframes d-screen-scan { 0%,55% { translate:-130% 0; } 78%,100% { translate:130% 0; } }
@keyframes d-ring-pulse { 0%,100% { scale:1; } 50% { scale:1.045; } }
@keyframes d-float-a { 0%,100% { translate:0 0; } 50% { translate:-4px -10px; } }
@keyframes d-float-b { 0%,100% { translate:0 0; } 50% { translate:6px -9px; } }
@keyframes d-float-c { 0%,100% { translate:0 0; } 50% { translate:-5px -12px; } }
@keyframes d-spinner { to { rotate:360deg; } }
@keyframes d-report-float { 0%,100% { translate:0 0; } 50% { translate:0 -7px; } }

html[data-motion-paused="true"] .design-d :is(.d-workspace,.d-quality-ring,.d-search-chip,.d-search-chip i,.d-source-card,.d-aio-card,.d-report-paper) { animation-play-state: paused !important; }
html[data-motion-paused="true"] .design-d .d-workspace::after { animation-play-state: paused !important; }
html[data-motion-paused="true"] .design-d .d-motion-enter { opacity: 1; translate: 0 0; transition: none; }
html[data-motion-paused="true"] .design-d #flow .flow-list::before { transform: scaleX(1); transition: none; }

@media (max-width: 1100px) {
  .design-d .d-showcase-grid { grid-template-columns: .78fr 1.22fr; gap: 38px; }
  .design-d .d-workspace-stage { min-height: 570px; }
  .design-d .d-workspace { inset: 85px 24px 90px 15px; }
  .design-d .d-search-chip { right: -8px; width: 255px; }
  .design-d .d-source-card { left: -10px; min-width: 260px; }
  .design-d .d-aio-card { right: -18px; width: 220px; }
  .design-d .d-workspace-body { grid-template-columns: 1.25fr .75fr; padding: 18px; }
  .design-d .d-outline-panel, .design-d .d-insight-panel { padding: 16px; }
}

@media (max-width: 820px) {
  .design-d .d-showcase { padding-block: 80px; }
  .design-d .d-showcase-grid { grid-template-columns: 1fr; gap: 52px; }
  .design-d .d-workspace-stage { min-height: 570px; width: min(680px,100%); margin-inline: auto; }
  .design-d #flow .flow-list::before { display: none; }
}

@media (max-width: 560px) {
  .design-d .d-showcase-grid { width: calc(100% - 32px); }
  .design-d .d-showcase-copy h2 { font-size: 33px; }
  .design-d .d-showcase-copy > p:not(.section-label) { font-size: 15px; }
  .design-d .d-workspace-stage { min-height: 485px; margin-top: 8px; }
  .design-d .d-workspace { inset: 67px 1px 75px; }
  .design-d .d-workspace-bar { height: 43px; padding-inline: 12px; }
  .design-d .d-workspace-bar > span { display: none; }
  .design-d .d-workspace-body { height: calc(100% - 43px); grid-template-columns: 1fr; padding: 12px; }
  .design-d .d-insight-panel { display: none; }
  .design-d .d-outline-panel { padding: 15px; }
  .design-d .d-outline-panel > strong { font-size: 15px; }
  .design-d .d-outline-row { min-height: 48px; }
  .design-d .d-search-chip { top: 25px; right: -2px; width: 225px; padding: 12px; }
  .design-d .d-search-chip span { font-size: 11px; }
  .design-d .d-source-card { left: -6px; bottom: 47px; min-width: 227px; padding: 12px; grid-template-columns: 32px 1fr 23px; }
  .design-d .d-source-card .pro-icon { width: 29px; height: 29px; }
  .design-d .d-source-card strong { font-size: 11px; }
  .design-d .d-aio-card { right: 1px; bottom: 9px; width: 190px; padding: 15px; }
  .design-d .d-aio-card > strong { font-size: 13px; }
  .design-d .d-workspace-stage figcaption { bottom: -17px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .design-d :is(.d-workspace,.d-quality-ring,.d-search-chip,.d-search-chip i,.d-source-card,.d-aio-card,.d-report-paper) { animation: none !important; }
  .design-d .d-workspace::after { animation: none !important; }
  .d-motion-js .design-d .d-motion-enter { opacity:1; translate:0 0; transition:none; }
  .design-d #flow .flow-list::before { transform:scaleX(1); transition:none; }
}
