/* A single scroll timeline per moving surface; content is visible at rest. */
@media screen and (prefers-reduced-motion:no-preference) {
  @supports (animation-timeline:view()) {
    :is(#top > section > .wrap > .head,.desk-grid > article:not(.desk-hero),.desk-grid > section,#serviceGrid .box,#schemeGrid .box,#contact .cbox) {
      animation:rdc-arrive linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 86%;
    }
    #schemeGrid .box {animation-name:rdc-turn}
    .rdc-dashboard #top .hero > .wrap {
      animation:rdc-depart linear both;animation-timeline:view();
      animation-range:exit 0% exit 100%;
    }
  }
}
@keyframes rdc-arrive {
  from {opacity:.79;transform:perspective(900px) translateY(14px) rotateX(6deg)}
  to {opacity:1;transform:none}
}
@keyframes rdc-turn {
  from {opacity:.8;transform:perspective(900px) rotateY(-7deg) translateY(8px)}
  to {opacity:1;transform:none}
}
@keyframes rdc-depart {from {translate:0 0} to {translate:0 22px}}
@media screen {
  body.rdc-dashboard[data-workspace="admin"] {
    background:#f4f2f6;color:#281e30;
  }
  .rdc-dashboard #adminPortal .desk-grid {
    grid-template-columns:minmax(0,1.48fr) minmax(0,1fr);
    gap:clamp(12px,1.5vw,22px);
  }
  .rdc-dashboard #adminPortal .desk-card {
    border-radius:17px; padding:clamp(17px,2vw,27px);
  }
  .rdc-dashboard #adminPortal .desk-card:not(.desk-hero) {
    background:#fffeff;border:1px solid #e4dee8;box-shadow:0 3px 10px #29133408;
  }
  .rdc-dashboard #adminPortal .desk-hero {
    display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
    gap:18px;min-height:202px;border:1px solid #49314f;
    background-color:#201326;
    background-image:linear-gradient(100deg,#291b33 0%,#291b33bd 51%,#2c14352b),
      url("assets/launch-ribbon.webp");background-size:cover;background-position:center;
  }
  #adminPortal .desk-hero .ribbon-art {display:none}
  .rdc-dashboard #adminPortal .desk-hero h2 {
    margin:5px 0 8px;font-size:clamp(1.7rem,2.8vw,2.65rem);letter-spacing:-.045em;
    line-height:1.08;color:#fff9ff;
  }
  #adminPortal .desk-hero p:first-child {font-size:.7rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:#ddbbeb}
  #adminPortal .desk-hero p:last-child {max-width:36ch;color:#e9deeb;line-height:1.48}
  .rdc-dashboard[data-workspace="admin"] #adminPortal .desk-hero .btn-p {
    color:#332139;background:#f3dcff;border:0;border-radius:9px;padding:10px 16px
  }
  .rdc-dashboard #adminPortal .desk-calendar {
    display:flex;flex-direction:column;justify-content:center;
    background:linear-gradient(125deg,#fffeff,#f7f3fb);
  }
  #adminPortal .desk-calendar #deskDates [aria-current="date"] {background:#653a79;color:white}
  #adminPortal #adminSummary {grid-template-columns:repeat(auto-fit,minmax(min(85px,100%),1fr))}
  #adminPortal #adminSummary div {background:#f7f4f9;border-color:#e7e0ec}
  .rdc-dashboard #adminPortal .desk-completion {background:linear-gradient(125deg,#fff,#edf6f2)}
}
@media screen and (max-width:760px) {
  .rdc-dashboard #adminPortal .desk-grid {grid-template-columns:minmax(0,1fr)}
  .rdc-dashboard #adminPortal .desk-hero {min-height:178px}
}

/* Give the page itself depth: the masthead, shortcut list and backdrop
   travel on different planes while their links keep native hit targets. */
@media screen {
  .rdc-dashboard[data-workspace="customer"] #top .hero {
    isolation:isolate;overflow:hidden;position:relative;
    background:linear-gradient(112deg,#221629,#37263f 68%,#34233c);
  }
  .rdc-dashboard #top .hero::after {
    content:"";position:absolute;z-index:-1;inset:-12%;pointer-events:none;
    background:linear-gradient(90deg,#201427b3,transparent 70%),
      url("assets/launch-ribbon.webp") center right/cover no-repeat;opacity:.78;
  }
  .rdc-dashboard #top .hero .panel {
    padding:clamp(19px,3vw,30px);background:linear-gradient(135deg,#403146,#2b202e);
    border-color:#795f80;box-shadow:0 10px 26px #16091c24;
  }
  .rdc-dashboard #top .hero .panel .ribbon-art {display:none}
}
@media screen and (prefers-reduced-motion:no-preference) {
  @supports (animation-timeline:view()) {
    #top .hero {view-timeline-name:--rdc-masthead}
    #top .hero::after,#top .hero .wrap > div:first-child,#top .hero .wrap > .panel {
      animation:rdc-backplane linear both;
      animation-timeline:--rdc-masthead;
      animation-range:exit 0% exit 95%;
    }
    #top .hero .wrap > div:first-child {animation-name:rdc-type-plane}
    #top .hero .wrap > .panel {animation-name:rdc-link-plane}
    .rdc-dashboard #top .hero > .wrap {animation:none}
    #top .head h2 {animation:rdc-title-rise linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    #top .box:nth-child(3n + 2) {animation-range:entry 0% entry 96%}
    #adminOverview .desk-tools {animation-name:rdc-turn}
  }
  @supports (transition-behavior: allow-discrete) {
    .rdc-dashboard #modal .dlg {transform:perspective(950px) translateY(9px) rotateX(-2deg);transform-origin:50% 85%}
    @starting-style {
      .rdc-dashboard #modal.on .dlg {transform:perspective(950px) translateY(15px) rotateX(4deg)}
    }
  }
}
@keyframes rdc-backplane {from {transform:translateY(-2%) scale(1.03)} to {transform:translateY(8%) scale(1.08)}}
@keyframes rdc-type-plane {to {transform:perspective(1100px) translate3d(0,16px,-16px)}}
@keyframes rdc-link-plane {to {transform:perspective(1100px) translate3d(0,30px,-54px) rotateY(-5deg)}}
@keyframes rdc-title-rise {from {transform:translateY(9px);opacity:.76} to {transform:none;opacity:1}}
