/* Avanza AI Studio — Phase 2: Signature Motion */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --ease-physical: cubic-bezier(.2, .8, .2, 1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Adaptive navigation */
.main-nav {
  position: relative;
}

@media (min-width: 981px) {
  .main-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-tracker {
    position: absolute;
    z-index: 0;
    bottom: 5px;
    left: 0;
    width: var(--tracker-width, 0);
    height: 1px;
    border-radius: 999px;
    background: #111;
    opacity: var(--tracker-opacity, 0);
    transform: translateX(var(--tracker-x, 0));
    transform-origin: left;
    transition:
      width .36s var(--ease-out),
      transform .36s var(--ease-out),
      opacity .2s ease,
      background .25s ease;
    pointer-events: none;
  }
}

.site-header.on-dark .nav-wrap {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(17, 18, 21, .76);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .09);
}

.site-header.on-dark .brand-copy strong,
.site-header.on-dark .main-nav > a:not(.nav-cta) {
  color: #fff;
}

.site-header.on-dark .brand-copy small {
  color: rgba(255, 255, 255, .46);
}

.site-header.on-dark .brand-mark {
  background: #fff;
}

.site-header.on-dark .brand-mark img {
  filter: none;
}

.site-header.on-dark .nav-cta {
  color: #111;
  background: #fff;
}

.site-header.on-dark .nav-tracker {
  background: #fff;
}

.site-header.on-dark .nav-toggle {
  color: #111;
  background: #fff;
}

.site-header.on-dark .nav-toggle span {
  background: #111;
}

/* Signature Core canvas */
.core-composition,
.control-visual {
  --core-pointer-x: 0;
  --core-pointer-y: 0;
}

.core-webgl,
.control-core-webgl {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}

.core-webgl.is-ready,
.control-core-webgl.is-ready {
  opacity: 1;
}

.webgl-ready .avanza-core,
.webgl-ready .control-core-mini {
  opacity: 0;
}

.avanza-core,
.control-core-mini {
  transition: opacity .45s ease, transform .55s var(--ease-out);
}

.core-composition.webgl-ready .core-halo-a {
  opacity: .82;
}

.core-composition.webgl-ready .core-halo-b {
  opacity: .64;
}

.core-composition.is-assembled .core-caption,
.core-composition.is-assembled .core-status {
  animation: coreLabelIn .72s var(--ease-out) both;
}

.core-composition.is-assembled .core-caption-b {
  animation-delay: .08s;
}

.core-composition.is-assembled .core-caption-c {
  animation-delay: .16s;
}

.core-composition.is-assembled .core-status {
  animation-delay: .24s;
}

@keyframes coreLabelIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.core-orbit {
  transition: opacity .45s ease, transform 1.2s var(--ease-out);
}

.core-composition.webgl-ready:hover .core-orbit-a {
  transform: translate(-50%, -50%) rotate(-10deg) scale(1.015);
}

.core-composition.webgl-ready:hover .core-orbit-b {
  transform: translate(-50%, -50%) rotate(25deg) scale(.99);
}

.core-composition.webgl-ready:hover .core-orbit-c {
  transform: translate(-50%, -50%) rotate(44deg) scale(1.01);
}

/* Scroll continuity */
.system-rail {
  --rail-progress: 0%;
}

.rail-line span {
  left: var(--rail-progress);
  transition: left .12s linear;
}

.process-sequence {
  --process-progress: 0%;
}

.process-sequence::after {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 154px;
  width: 1px;
  height: var(--process-progress);
  background: #111;
  content: "";
  transition: height .12s linear;
}

.process-step {
  position: relative;
  transition: opacity .35s ease;
}

.process-step:not(.is-active):not(.is-complete) {
  opacity: .58;
}

.process-step.is-active .process-marker {
  border-color: #111;
  box-shadow: 0 0 0 8px rgba(17, 17, 17, .045);
  transform: scale(1.06);
}

.process-step.is-complete .process-marker {
  color: #fff;
  border-color: #111;
  background: #111;
}

.process-marker {
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}

/* Flagship Lead Desk story */
.lead-desk {
  overflow: clip;
  padding-bottom: clamp(110px, 10vw, 170px);
}

.lead-desk::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 58%, rgba(255, 255, 255, .045), transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, .035), transparent 28%);
  content: "";
  pointer-events: none;
}

.lead-desk-intro {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .55fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 90px;
}

.lead-desk-intro h2 {
  max-width: 900px;
  font-size: clamp(3.2rem, 5vw, 5.6rem);
}

.lead-desk-intro > div:last-child > p {
  color: rgba(255, 255, 255, .52);
  font-size: .98rem;
  line-height: 1.72;
}

.lead-desk-intro .button {
  margin-top: 28px;
}

.lead-story {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, .44fr) minmax(620px, 1fr);
  align-items: start;
  gap: clamp(50px, 7vw, 100px);
}

.lead-story-steps {
  display: grid;
}

.lead-story-step {
  position: relative;
  display: grid;
  min-height: 39vh;
  grid-template-columns: 42px 1fr;
  align-content: center;
  gap: 18px;
  padding: 52px 14px 52px 25px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .34);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .4s ease, border-color .4s ease, background .4s ease;
}

.lead-story-step::before {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 0;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translateY(-50%);
  transition: height .5s var(--ease-out), box-shadow .5s ease;
}

.lead-story-step:hover,
.lead-story-step.active {
  color: #fff;
}

.lead-story-step.active {
  border-left-color: rgba(255, 255, 255, .25);
  background: linear-gradient(90deg, rgba(255, 255, 255, .045), transparent 72%);
}

.lead-story-step.active::before {
  height: 72px;
  box-shadow: 0 0 26px rgba(255, 255, 255, .34);
}

.lead-story-step > span {
  padding-top: 3px;
  color: inherit;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.lead-story-step div {
  display: grid;
}

.lead-story-step small {
  color: inherit;
  font-size: .59rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lead-story-step strong {
  max-width: 380px;
  margin-top: 10px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 620;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.lead-story-step p {
  max-width: 390px;
  margin-top: 12px;
  color: inherit;
  font-size: .77rem;
  line-height: 1.6;
}

.lead-story-stage {
  position: sticky;
  top: 112px;
  min-width: 0;
}

.desk-interface {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 30px;
  background: linear-gradient(150deg, #17191e, #0d0f12 70%);
  box-shadow: 0 48px 120px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
  isolation: isolate;
}

.desk-interface::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 80%) var(--glow-y, 20%), rgba(255, 255, 255, .085), transparent 27%);
  content: "";
  opacity: .8;
  pointer-events: none;
  transition: opacity .3s ease;
}

.desk-workspace {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 600px;
}

.desk-main {
  position: relative;
  min-width: 0;
  padding: 25px;
}

.desk-lead-card {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
  transition: border-color .4s ease, background .4s ease, transform .5s var(--ease-out);
}

.desk-interface[data-stage="0"] .desk-lead-card {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .065);
  animation: leadCardArrive .72s var(--ease-out) both;
}

@keyframes leadCardArrive {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.desk-lead-person {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
}

.desk-lead-person > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #111;
  background: #fff;
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
}

.desk-lead-person > div {
  display: grid;
}

.desk-lead-person strong {
  font-size: .72rem;
}

.desk-lead-person span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .4);
  font-size: .56rem;
}

.desk-lead-person > b {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  font-size: .53rem;
}

.desk-lead-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.desk-lead-details > span {
  display: grid;
  padding: 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

.desk-lead-details small,
.desk-dynamic-panel > div > small,
.desk-handoff > div small {
  color: rgba(255, 255, 255, .3);
  font-size: .48rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.desk-lead-details strong {
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-size: .57rem;
  font-weight: 600;
}

.desk-activity {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}

.desk-activity article {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 7px;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, .27);
  transition: color .35s ease, border-color .35s ease, background .35s ease, transform .45s var(--ease-out);
}

.desk-activity article.complete {
  color: rgba(255, 255, 255, .56);
}

.desk-activity article.active {
  color: #fff;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  transform: translateX(3px);
}

.desk-activity article > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  font-size: .52rem;
  font-style: normal;
}

.desk-activity article.complete > i {
  color: #111;
  background: #fff;
}

.desk-activity article > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 2px 10px;
}

.desk-activity small {
  color: inherit;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desk-activity strong {
  font-size: .61rem;
}

.desk-activity span {
  grid-column: 2;
  color: inherit;
  font-size: .52rem;
}

.desk-activity article > b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .52;
}

.desk-activity article.active > b {
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .04), 0 0 15px rgba(255, 255, 255, .55);
}

.desk-dynamic-panel {
  position: relative;
  min-height: 132px;
  margin-top: 14px;
}

.desk-dynamic-panel > div {
  position: absolute;
  inset: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 15px;
  background: rgba(255, 255, 255, .04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.99);
  transition: opacity .45s ease, transform .5s var(--ease-out);
}

.desk-interface[data-stage="1"] .desk-extraction,
.desk-interface[data-stage="2"] .desk-composer,
.desk-interface[data-stage="3"] .desk-approval,
.desk-interface[data-stage="4"] .desk-handoff {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.desk-interface[data-stage="0"] .desk-dynamic-panel {
  min-height: 0;
}

.desk-extraction > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.desk-extraction span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  font-size: .55rem;
  font-weight: 650;
  animation: contextChip .5s var(--ease-out) both;
}

.desk-extraction span:nth-child(2) { animation-delay: .06s; }
.desk-extraction span:nth-child(3) { animation-delay: .12s; }
.desk-extraction span:nth-child(4) { animation-delay: .18s; }

@keyframes contextChip {
  from { opacity: 0; transform: translateY(7px); }
}

.desk-composer p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .67);
  font-size: .65rem;
  line-height: 1.55;
}

.desk-composer > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: rgba(255, 255, 255, .35);
  font-size: .49rem;
}

.desk-composer > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.desk-approval > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desk-approval > div:first-child > i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  font-style: normal;
  font-weight: 800;
}

.desk-approval > div:first-child > span {
  display: grid;
}

.desk-approval small {
  color: rgba(255, 255, 255, .38);
  font-size: .47rem;
  font-weight: 750;
  letter-spacing: .1em;
}

.desk-approval strong {
  margin-top: 3px;
  font-size: .66rem;
}

.desk-approval p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .48);
  font-size: .56rem;
  line-height: 1.5;
}

.desk-approval > div:last-child {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.desk-approval button,
.desk-handoff button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 9px;
  color: rgba(255, 255, 255, .54);
  background: transparent;
  font-size: .5rem;
}

.desk-approval button:last-child,
.desk-handoff button {
  color: #111;
  background: #fff;
}

.desk-handoff {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 14px;
}

.desk-handoff > div {
  display: grid;
  align-content: start;
}

.desk-handoff > div strong {
  margin-top: 7px;
  font-size: .72rem;
  line-height: 1.25;
}

.desk-handoff ul {
  display: grid;
  gap: 5px;
}

.desk-handoff li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .42);
  font-size: .5rem;
}

.desk-handoff li b {
  color: rgba(255, 255, 255, .72);
  font-weight: 650;
  text-align: right;
}

.desk-handoff button {
  grid-column: 1 / -1;
  justify-self: end;
}

.desk-stage-meter {
  height: 2px;
  background: rgba(255, 255, 255, .08);
}

.desk-stage-meter span {
  display: block;
  width: 20%;
  height: 100%;
  background: #fff;
  transition: width .55s var(--ease-out);
}

/* Control sequence */
.control-visual {
  isolation: isolate;
}

.control-core-webgl {
  z-index: 3;
}

.control-ring,
.control-node,
.control-label {
  z-index: 4;
}

.control-ring {
  transition: width .65s var(--ease-out), height .65s var(--ease-out), border-color .4s ease, box-shadow .5s ease, opacity .4s ease;
}

.control-node {
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .45s var(--ease-out), opacity .3s ease;
}

.control-node.is-active {
  color: #fff;
  border-color: #111;
  background: #111;
  box-shadow: 0 15px 35px rgba(8, 9, 11, .18);
  transform: translateY(-3px);
}

.control-node.is-active i {
  background: #fff;
}

.control-visual[data-active-control="0"] .ring-outer {
  border-color: rgba(12, 13, 15, .3);
}

.control-visual[data-active-control="1"] .ring-mid {
  border-color: #111;
  box-shadow: 0 0 0 10px rgba(17, 17, 17, .035);
}

.control-visual[data-active-control="2"] .ring-inner {
  border-color: #111;
  box-shadow: inset 0 0 55px rgba(255, 255, 255, .75), 0 0 0 8px rgba(17, 17, 17, .035);
}

.control-visual[data-active-control="3"] .ring-outer,
.control-visual[data-active-control="3"] .ring-mid,
.control-visual[data-active-control="3"] .ring-inner {
  border-color: rgba(12, 13, 15, .3);
}

.guardrail-list article {
  border-radius: 13px;
  cursor: default;
  transition: padding .35s var(--ease-out), background .3s ease, opacity .3s ease;
}

.guardrail-list article.is-active {
  padding-right: 14px;
  padding-left: 14px;
  background: rgba(255, 255, 255, .45);
}

.guardrail-list article:not(.is-active) {
  opacity: .62;
}

/* Physical interaction layer */
.button,
.nav-cta {
  --mag-x: 0px;
  --mag-y: 0px;
}

.button-primary,
.button-light,
.button-light-submit {
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
}

.button-primary:hover,
.button-light:hover,
.button-light-submit:hover {
  transform: translate3d(var(--mag-x), calc(var(--mag-y) - 2px), 0);
}

.capability-card,
.principle-panel,
.contact-wrap {
  --glow-x: 50%;
  --glow-y: 50%;
}

.capability-card::after,
.principle-panel::after,
.contact-wrap::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .22), transparent 42%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.capability-card:hover::after,
.principle-panel:hover::after,
.contact-wrap:hover::after {
  opacity: .46;
}

.capability-card > *,
.principle-panel > *,
.contact-wrap > * {
  position: relative;
  z-index: 1;
}

.capability-primary::after,
.principle-panel::after,
.contact-wrap::after {
  background: radial-gradient(520px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .09), transparent 42%);
}

/* Responsive motion treatment */
@media (max-width: 1180px) {
  .lead-desk-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .lead-desk-intro > div:last-child > p {
    max-width: 700px;
    margin-inline: auto;
  }

  .lead-story {
    grid-template-columns: minmax(260px, .38fr) minmax(560px, 1fr);
    gap: 45px;
  }

  .lead-story-step {
    padding-left: 20px;
  }

  .desk-workspace {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .site-header.on-dark .main-nav {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(18, 19, 22, .97);
  }

  .site-header.on-dark .main-nav > a:not(.nav-cta) {
    color: rgba(255, 255, 255, .75);
  }

  .site-header.on-dark .main-nav > a:not(.nav-cta):hover {
    background: rgba(255, 255, 255, .07);
  }

  .nav-tracker {
    display: none;
  }

  .lead-desk-intro {
    margin-bottom: 55px;
  }

  .lead-story {
    display: block;
  }

  .lead-story-steps {
    display: flex;
    gap: 9px;
    margin: 0 calc(var(--gutter) * -1) 30px;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lead-story-steps::-webkit-scrollbar {
    display: none;
  }

  .lead-story-step {
    min-width: min(76vw, 300px);
    min-height: 0;
    grid-template-columns: 30px 1fr;
    align-content: start;
    gap: 11px;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
    scroll-snap-align: center;
  }

  .lead-story-step::before {
    top: auto;
    right: 18px;
    bottom: -1px;
    left: 18px;
    width: auto;
    height: 1px;
    transform: none;
  }

  .lead-story-step.active {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .065);
  }

  .lead-story-step.active::before {
    height: 2px;
  }

  .lead-story-step strong {
    margin-top: 7px;
    font-size: 1rem;
  }

  .lead-story-step p {
    display: none;
  }

  .lead-story-stage {
    position: relative;
    top: auto;
  }

  .desk-workspace {
    min-height: 575px;
  }

  .process-sequence::after {
    left: 22px;
  }
}

@media (max-width: 720px) {
  .core-webgl {
    inset: 4% 0 0;
  }

  .core-caption,
  .core-status {
    transition: opacity .35s ease;
  }

  .lead-desk {
    padding-top: 90px;
  }

  .lead-desk-intro {
    text-align: center;
  }

  .lead-desk-intro h2 {
    font-size: clamp(2.75rem, 11vw, 3.85rem);
  }

  .lead-desk-intro .button {
    width: min(100%, 390px);
  }

  .desk-interface {
    border-radius: 23px;
  }

  .desk-workspace {
    grid-template-columns: 1fr;
    min-height: 615px;
  }

  .desk-sidebar {
    display: none;
  }

  .desk-main {
    padding: 15px;
  }

  .desk-heading {
    display: grid;
    gap: 10px;
  }

  .desk-heading > span {
    justify-self: start;
  }

  .desk-lead-details {
    grid-template-columns: 1fr 1fr;
  }

  .desk-lead-details > span:last-child {
    grid-column: 1 / -1;
  }

  .desk-activity article > div {
    grid-template-columns: 70px 1fr;
  }

  .desk-dynamic-panel {
    min-height: 155px;
  }

  .desk-handoff {
    grid-template-columns: 1fr;
  }

  .desk-handoff button {
    grid-column: 1;
  }

  .control-core-webgl {
    inset: 7%;
  }

  .guardrail-list article:not(.is-active) {
    opacity: .72;
  }
}

@media (max-width: 430px) {
  .lead-story-step {
    min-width: 78vw;
  }

  .desk-topbar {
    min-height: 68px;
  }

  .desk-main {
    padding: 12px;
  }

  .desk-lead-person {
    grid-template-columns: 38px 1fr;
  }

  .desk-lead-person > b {
    grid-column: 2;
    justify-self: start;
  }

  .desk-activity article {
    grid-template-columns: 29px 1fr 5px;
    gap: 8px;
    padding-inline: 8px;
  }

  .desk-activity article > i {
    width: 28px;
    height: 28px;
  }

  .desk-activity article > div {
    grid-template-columns: 1fr;
  }

  .desk-activity span {
    grid-column: 1;
  }

  .desk-dynamic-panel {
    min-height: 175px;
  }

  .desk-approval > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .desk-handoff li {
    font-size: .47rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .core-webgl,
  .control-core-webgl {
    display: none;
  }

  .webgl-ready .avanza-core,
  .webgl-ready .control-core-mini {
    opacity: 1;
  }

  .lead-story-step,
  .lead-story-step::before,
  .desk-activity article,
  .desk-dynamic-panel > div,
  .process-marker,
  .control-ring,
  .control-node,
  .rail-line span,
  .process-sequence::after {
    transition: none !important;
  }

  .lead-story-stage {
    position: relative;
    top: auto;
  }

  .lead-story-step {
    min-height: auto;
  }
}

/* Phase 2 mobile navigation position correction */
@media (max-width: 980px) {
  .main-nav {
    position: absolute;
  }
}
