/* DAIS capabilities + system-to-team handoff.
   Native dimensional treatment matched to the approved 23 Sep reference.
   This file intentionally overrides duty-flat-animated.css. */

#services.dais-cap-section {
  padding-bottom: 18px !important;
}

#services .dais-caps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(20px, 4vw, 64px) !important;
  margin: 42px 0 0 !important;
  padding: 0 clamp(4px, 2vw, 24px) !important;
}

#services .dais-cap {
  display: block !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
}

#services .dais-cap-art {
  display: none !important;
}

#services .dais-cap h3 {
  margin: 0 !important;
  color: #111310 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(18px, 2.05vw, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

#services .dais-cap p {
  margin: 9px 0 0 !important;
  max-width: none !important;
  color: #5d5952 !important;
  font-family: var(--font-body) !important;
  font-size: clamp(14px, 1.4vw, 18px) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

#split.dais-duty-section {
  overflow: visible !important;
  padding-top: 10px !important;
  padding-bottom: 76px !important;
}

#split > .dais-reveal > .dais-cap-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#split .dais-duty {
  --duty-green: #164b37;
  --duty-green-deep: #0e3b2b;
  --duty-green-mid: #1c5b43;
  --duty-orange: #ff6b35;
  --duty-aqua: #2de3bd;
  --duty-cream: #f8f5ed;
  --duty-ink: #151613;
  --duty-rail-y: 50%;
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(0, 4.25fr) 150px minmax(0, 3.65fr) !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 18px 0 28px !important;
  box-sizing: border-box !important;
}

#split .dais-duty::before,
#split .dais-duty::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 42px;
  right: 42px;
  top: var(--duty-rail-y);
  height: 3px;
  border-radius: 999px;
  transform-origin: left center;
}

#split .dais-duty::before {
  background: linear-gradient(90deg, #20826a 0%, #1e886d 62%, #176347 100%);
  box-shadow: 0 0 0 1px rgba(10, 66, 48, 0.22), 0 0 14px rgba(45, 227, 189, 0.14);
}

#split .dais-duty::after {
  background: linear-gradient(90deg, transparent, var(--duty-aqua) 12%, var(--duty-aqua) 82%, var(--duty-orange));
  box-shadow: 0 0 12px rgba(45, 227, 189, 0.6);
  transform: scaleX(0);
}

#split .dais-reveal[data-visible="true"] .dais-duty::after,
#split .dais-duty.dais-duty-live::after {
  animation: dais-duty-reference-draw 1.8s cubic-bezier(.23, 1, .32, 1) .1s both;
}

#split .dais-duty-system,
#split .dais-duty-team {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 246px;
  padding: 24px 28px 26px !important;
  color: var(--duty-green) !important;
  filter: drop-shadow(0 14px 18px rgba(55, 43, 28, 0.16));
}

#split .dais-duty-system {
  border: 1px solid rgba(7, 49, 35, 0.82) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), transparent 17%),
    linear-gradient(180deg, #1c654b 0%, #0f452f 12%, #0d3b2b 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.2),
    inset 0 -4px 0 rgba(0,0,0,.16),
    inset 3px 0 0 rgba(255,255,255,.06),
    0 4px 0 #092d21,
    0 18px 28px rgba(34, 28, 19, .15) !important;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

#split .dais-duty-team {
  border: 1px solid rgba(105, 89, 66, 0.14) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.35) 19%, transparent 20%),
    linear-gradient(180deg, #fffdfa 0%, #f2ece1 100%) !important;
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -4px 0 rgba(188, 174, 151, .2),
    0 4px 0 rgba(207, 197, 180, .88),
    0 18px 28px rgba(55, 43, 28, .14) !important;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

#split .dais-duty-k {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 18px !important;
  margin: 0 !important;
  color: #f4f5ef !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

#split .dais-duty-team .dais-duty-k {
  justify-content: flex-start !important;
  color: var(--duty-green) !important;
}

#split .dais-duty-dash {
  display: block !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 2px !important;
  background: var(--duty-green) !important;
}

#split .dais-duty-steps {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 16px !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#split .dais-duty-steps::before {
  display: none !important;
}

#split .dais-flow-step {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0;
  min-height: 156px;
  margin: 0 !important;
  padding: 14px 8px 16px !important;
  text-align: center !important;
  transition: transform 220ms cubic-bezier(.23, 1, .32, 1), box-shadow 220ms cubic-bezier(.23, 1, .32, 1), border-color 220ms cubic-bezier(.23, 1, .32, 1) !important;
}

#split .dais-duty-system .dais-flow-step {
  border: 1px solid rgba(157, 226, 200, .45) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), transparent 35%),
    linear-gradient(180deg, #1b5e46, #124632) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -3px 0 rgba(0,0,0,.14),
    0 3px 0 #092d21,
    0 10px 16px rgba(0,0,0,.18) !important;
}

#split .dais-duty-team .dais-flow-step {
  border: 1px solid rgba(105, 89, 66, .14) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fffefa 0%, #f5f0e7 100%) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgba(190, 175, 150, .15),
    0 3px 0 rgba(213, 203, 186, .82),
    0 11px 18px rgba(55, 43, 28, .13) !important;
}

#split .dais-flow-step::before {
  content: "" !important;
  position: absolute !important;
  z-index: 5 !important;
  top: 50% !important;
  left: -14px !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid var(--duty-aqua) !important;
  border-radius: 50% !important;
  background: #f8fff8 !important;
  box-shadow: 0 0 0 3px rgba(31, 77, 58, .78), 0 0 12px rgba(45, 227, 189, .9) !important;
  transform: translate(-50%, -50%) !important;
}

#split .dais-flow-step:first-child::before {
  left: -12px !important;
}

#split .dais-duty-team .dais-flow-step::before {
  border-color: #2fbf93 !important;
  box-shadow: 0 0 0 3px rgba(31, 77, 58, .78), 0 0 10px rgba(47, 191, 147, .42) !important;
}

#split .dais-flow-step::after {
  display: none !important;
}

#split .dais-flow-ico {
  display: grid !important;
  place-items: center !important;
  width: 62px !important;
  height: 62px !important;
  margin: 0 0 12px !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 12px !important;
  color: var(--duty-ink) !important;
  background: linear-gradient(180deg, #fffefa 0%, #eee9df 100%) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(185, 173, 153, .72),
    0 9px 15px rgba(0,0,0,.18) !important;
}

#split .dais-duty-team .dais-flow-ico {
  color: var(--duty-green) !important;
  border-color: rgba(105, 89, 66, .13) !important;
  background: linear-gradient(180deg, #fffefa 0%, #f1ece3 100%) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(210, 199, 180, .78),
    0 9px 15px rgba(55, 43, 28, .13) !important;
}

#split .dais-flow-ico svg {
  width: 40px !important;
  height: 40px !important;
  filter: drop-shadow(2px 2px 0 rgba(255, 107, 53, .14)) !important;
  transform-origin: center;
}

#split .dais-flow-ico svg path,
#split .dais-flow-ico svg circle {
  stroke-width: 2.1px !important;
}

#split .dais-flow-label {
  max-width: 130px !important;
  margin: 0 !important;
  color: #f5f4ed !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .035em !important;
  line-height: 1.18 !important;
  text-transform: uppercase !important;
}

#split .dais-duty-team .dais-flow-label {
  color: var(--duty-ink) !important;
}

#split .dais-duty-hand {
  position: relative;
  z-index: 6;
  display: grid !important;
  place-items: center !important;
  width: 150px !important;
  height: 190px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

#split .dais-duty-hand::before {
  content: "" !important;
  position: absolute !important;
  z-index: 8 !important;
  top: 50% !important;
  left: -17px !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #2fbf93 !important;
  border-radius: 50% !important;
  background: #f8fff8 !important;
  box-shadow: 0 0 0 3px rgba(31, 77, 58, .78), 0 0 10px rgba(47, 191, 147, .42) !important;
  transform: translate(-50%, -50%) !important;
}

#split .dais-duty-hand::after {
  display: none !important;
}

#split .dais-duty-diamond {
  position: relative;
  display: grid !important;
  place-items: center !important;
  width: 126px !important;
  height: 126px !important;
  border: 2px solid var(--duty-green) !important;
  border-radius: 18px !important;
  outline: 5px solid rgba(255,255,255,.65) !important;
  outline-offset: -8px !important;
  background: linear-gradient(145deg, #fffefa 0%, #eee8dd 100%) !important;
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -4px 0 rgba(173, 158, 135, .2),
    5px 5px 0 rgba(17, 59, 43, .28),
    0 18px 26px rgba(45, 35, 24, .2) !important;
  transform: rotate(45deg) !important;
}

#split .dais-duty-diamond::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(31,77,58,.22), rgba(255,107,53,.12));
}

#split .dais-duty-diamond-face {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  width: 98px !important;
  text-align: center !important;
  transform: rotate(-45deg) !important;
}

#split .dais-duty-diamond-face svg {
  width: 46px !important;
  height: 22px !important;
}

#split .dais-duty-diamond-face path {
  fill: none !important;
  stroke: var(--duty-orange) !important;
  stroke-width: 3.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#split .dais-duty-diamond-face span {
  color: var(--duty-ink) !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  line-height: 1.08 !important;
  text-transform: uppercase !important;
}

#split .dais-duty-pulse {
  display: none !important;
  position: absolute !important;
  z-index: 9 !important;
  left: 42px !important;
  top: calc(var(--duty-rail-y) - 7px) !important;
  width: 14px !important;
  height: 14px !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: var(--duty-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,107,53,.34), 0 0 16px rgba(255,107,53,.8) !important;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

#split .dais-duty.dais-duty-live .dais-duty-pulse {
  animation: none !important;
}

#split .dais-duty.dais-duty-live .dais-flow-step.is-flow-active {
  transform: translateY(-4px) !important;
}

#split .dais-duty-system .dais-flow-step.is-flow-active {
  border-color: rgba(45,227,189,.85) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -3px 0 rgba(0,0,0,.14),
    0 3px 0 #092d21,
    0 12px 20px rgba(0,0,0,.2),
    0 0 18px rgba(45,227,189,.22) !important;
}

#split .dais-duty-team .dais-flow-step.is-flow-active {
  border-color: rgba(255,107,53,.45) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgba(190,175,150,.15),
    0 3px 0 rgba(213,203,186,.82),
    0 13px 22px rgba(55,43,28,.16),
    0 0 18px rgba(255,107,53,.16) !important;
}

@keyframes dais-duty-reference-draw {
  from { transform: scaleX(0); opacity: .2; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes dais-duty-reference-pulse-x {
  0%, 12% { opacity: 0; transform: translate3d(0,0,0); }
  18% { opacity: 1; transform: translate3d(0,0,0); }
  82% { opacity: 1; transform: translate3d(var(--duty-travel-x, 0),0,0); }
  88%, 100% { opacity: 0; transform: translate3d(var(--duty-travel-x, 0),0,0); }
}

@media (max-width: 1080px) and (min-width: 760px) {
  #split .dais-duty {
    grid-template-columns: minmax(0, 4.1fr) 126px minmax(0, 3.55fr) !important;
    margin-left: -8px !important;
    margin-right: -8px !important;
  }

  #split .dais-duty-system,
  #split .dais-duty-team {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #split .dais-duty-steps {
    gap: 10px !important;
  }

  #split .dais-flow-step {
    min-height: 146px;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  #split .dais-duty-hand {
    width: 126px !important;
  }

  #split .dais-duty-hand::before {
    left: -7px !important;
  }

  #split .dais-duty-diamond {
    width: 108px !important;
    height: 108px !important;
  }
}

@media (max-width: 759px) {
  #services.dais-cap-section {
    padding-bottom: 10px !important;
  }

  #services .dais-caps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 32px !important;
    padding: 0 !important;
  }

  #services .dais-cap {
    padding: 0 0 18px !important;
    border-bottom: 1px solid rgba(31,77,58,.14) !important;
  }

  #services .dais-cap:last-child {
    border-bottom: 0 !important;
  }

  #services .dais-cap h3 {
    font-size: 20px !important;
  }

  #services .dais-cap p {
    font-size: 15px !important;
  }

  #split.dais-duty-section {
    padding-top: 6px !important;
    padding-bottom: 56px !important;
  }

  #split .dais-duty {
    --duty-rail-x: 50%;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 16px 0 20px !important;
    box-sizing: border-box !important;
  }

  #split .dais-duty::before,
  #split .dais-duty::after {
    left: var(--duty-rail-x) !important;
    right: auto !important;
    top: 60px !important;
    bottom: 60px !important;
    width: 3px !important;
    height: auto !important;
    transform-origin: center top !important;
  }

  #split .dais-duty::after {
    transform: scaleY(0) !important;
  }

  #split .dais-reveal[data-visible="true"] .dais-duty::after,
  #split .dais-duty.dais-duty-live::after {
    animation-name: dais-duty-reference-draw-y !important;
  }

  #split .dais-duty-system,
  #split .dais-duty-team {
    align-self: stretch !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 22px 16px 24px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
  }

  #split .dais-duty-k,
  #split .dais-duty-team .dais-duty-k {
    justify-content: center !important;
    padding: 0 !important;
    font-size: 12px !important;
  }

  #split .dais-duty-steps {
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }

  #split .dais-flow-step {
    display: grid !important;
    grid-template-columns: 66px minmax(0, 1fr) !important;
    grid-template-rows: minmax(82px, auto) !important;
    column-gap: 18px !important;
    min-height: 82px !important;
    padding: 10px 18px !important;
    text-align: left !important;
  }

  #split .dais-flow-step::before {
    top: -10px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  #split .dais-duty-steps .dais-flow-step:first-child::before {
    top: -8px !important;
    left: 50% !important;
  }

  #split .dais-flow-ico {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  #split .dais-flow-ico svg {
    width: 36px !important;
    height: 36px !important;
  }

  #split .dais-flow-label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: start !important;
    max-width: 180px !important;
    font-size: 13px !important;
    text-align: left !important;
  }

  #split .dais-duty-hand {
    align-self: stretch !important;
    width: auto !important;
    max-width: 100% !important;
    height: 154px !important;
    margin: 2px 0 4px !important;
    overflow: visible !important;
  }

  #split .dais-duty-hand::before {
    display: none !important;
  }

  #split .dais-duty-diamond {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 106px !important;
    height: 106px !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  #split .dais-duty-diamond-face {
    width: 82px !important;
  }

  #split .dais-duty-diamond-face span {
    font-size: 10px !important;
  }

  #split .dais-duty-pulse {
    left: calc(var(--duty-rail-x) - 7px) !important;
    top: 60px !important;
  }

  #split .dais-duty.dais-duty-live .dais-duty-pulse {
    animation-name: dais-duty-reference-pulse-y !important;
  }

  #split .dais-duty.dais-duty-live .dais-flow-step.is-flow-active {
    transform: translateY(-2px) !important;
  }

  #split .dais-reveal[data-visible="true"] .dais-duty-diamond,
  #split .dais-duty.dais-duty-live .dais-duty-diamond {
    animation-name: dais-duty-reference-handoff-mobile !important;
  }

  @keyframes dais-duty-reference-draw-y {
    from { transform: scaleY(0); opacity: .2; }
    to { transform: scaleY(1); opacity: 1; }
  }

  @keyframes dais-duty-reference-pulse-y {
    0%, 12% { opacity: 0; transform: translate3d(0,0,0); }
    18% { opacity: 1; transform: translate3d(0,0,0); }
    82% { opacity: 1; transform: translate3d(0,var(--duty-travel-y, 0),0); }
    88%, 100% { opacity: 0; transform: translate3d(0,var(--duty-travel-y, 0),0); }
  }

  @keyframes dais-duty-reference-handoff-mobile {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(.94); border-color: var(--duty-green); }
    60% { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1.025); border-color: var(--duty-orange); }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1); border-color: var(--duty-green); }
  }
}

@media (prefers-reduced-motion: reduce) {
  #split .dais-duty::after {
    transform: none !important;
    animation: none !important;
  }

  #split .dais-flow-step,
  #split .dais-duty-diamond {
    opacity: 1 !important;
    animation: none !important;
  }

  #split .dais-duty-pulse {
    display: none !important;
  }

  #split .dais-duty.dais-duty-live .dais-flow-step.is-flow-active {
    transform: none !important;
  }
}

@media (max-width: 759px) and (prefers-reduced-motion: reduce) {
  #split .dais-duty-diamond {
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }
}
