/* ============ Why Enin: strength dial on navy (index3) ============ */
#why {
  overflow: hidden;
}

#why>.container {
  position: relative;
  z-index: 1;
}

/* Background: drifting glows plus a faint grid that fades toward the edges */
.wd-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wd-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 70%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 70%, #000 10%, transparent 75%);
}

.wd-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 28% 68%, rgba(47, 116, 224, .38), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(11, 159, 216, .18), transparent 28%),
    radial-gradient(circle at 70% 95%, rgba(26, 86, 196, .22), transparent 30%);
  animation: wd-drift 18s ease-in-out infinite alternate;
}

@keyframes wd-drift {
  to {
    transform: translate(3%, -4%) scale(1.06);
  }
}

/* Layout: wheel left, details right */
.dial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.dial-wheel {
  --r: 42%;
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.dial-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
  overflow: visible;
}

.dial-ring {
  fill: none;
  stroke: rgba(255, 255, 255, .12);
  stroke-width: .4;
}

/* Progress arc: its animation end advances the dial (see why-dial.js) */
.dial-prog {
  fill: none;
  stroke: var(--teal-lt);
  stroke-width: .7;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.dial-prog.is-running {
  animation: wd-prog 6s linear forwards;
  animation-play-state: paused;
}

.dial.is-playing .dial-prog.is-running {
  animation-play-state: running;
}

.dial.is-playing:hover .dial-prog.is-running,
.dial.is-playing:focus-within .dial-prog.is-running {
  animation-play-state: paused;
}

@keyframes wd-prog {
  to {
    stroke-dashoffset: 0;
  }
}

.dial-orbit {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(127, 176, 255, .28);
  animation: wd-spin 40s linear infinite;
}

@keyframes wd-spin {
  to {
    rotate: 360deg;
  }
}

/* Pointer from the core to the active node */
.dial-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--r) - 6%);
  height: 2px;
  transform-origin: 0 50%;
  rotate: var(--hand, -90deg);
  background: linear-gradient(90deg, transparent 40%, var(--teal-lt));
  transition: rotate .9s var(--ease);
}

.dial-core {
  position: absolute;
  inset: 27%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy-2);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .04), 0 0 0 1px rgba(127, 176, 255, .35), 0 30px 80px rgba(0, 0, 0, .45);
}

.dial-core img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.15;
  transition: opacity .8s var(--ease), scale 1.2s var(--ease);
}

.dial-core img.is-active {
  opacity: 1;
  scale: 1;
}

.dial-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 26, 65, .85));
}

.dial-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  z-index: 1;
  text-align: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}

.dial-count span {
  font-size: 26px;
  color: #fff;
}

/* Nodes sit on the ring at angle --a */
.dial-node {
  position: absolute;
  left: calc(50% + cos(var(--a)) * var(--r));
  top: calc(50% + sin(var(--a)) * var(--r));
  translate: -50% -32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
  padding: 0;
  font: inherit;
  color: #aab4cc;
  background: none;
  border: 0;
  cursor: pointer;
}

.dial-node i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 1px solid rgba(127, 176, 255, .3);
  color: #7fb0ff;
  transition: background .4s, color .4s, scale .5s var(--ease), box-shadow .4s;
}

.dial-node svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dial-node span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: color .3s;
}

.dial-node:hover i {
  border-color: var(--teal-lt);
  color: #fff;
}

.dial-node:hover span,
.dial-node.is-active span {
  color: #fff;
}

.dial-node.is-active i {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  scale: 1.14;
  box-shadow: 0 0 0 8px rgba(11, 159, 216, .15), 0 12px 30px rgba(11, 159, 216, .4);
}

.dial-node:focus-visible {
  outline: none;
}

.dial-node:focus-visible i {
  outline: 2px solid var(--teal-lt);
  outline-offset: 4px;
}

/* Details panel */
.dial-panels {
  position: relative;
  padding: 48px 44px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dk);
  border-top: 2px solid var(--teal);
  backdrop-filter: blur(6px);
}

.dial-panel {
  animation: wd-in .7s var(--ease);
}

.dial-panel[hidden] {
  display: none;
}

@keyframes wd-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.dial-panel small {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-lt);
}

.dial-panel h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
}

.dial-panel>p {
  margin: 0;
  font-size: 17px;
  color: #aab4cc;
}

.dial-panel .ticks {
  margin: 26px 0 30px;
}

.dial-panel .ticks li {
  color: #e2e8f5;
  border-bottom-color: var(--line-dk);
}

.dial-panel .more {
  color: var(--teal-lt);
}

@media (max-width: 1080px) {
  .dial {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dial-wheel {
    width: min(100%, 520px);
  }
}

@media (max-width: 560px) {
  .dial-wheel {
    --r: 40%;
  }

  .dial-node {
    width: auto;
    translate: -50% -50%;
  }

  .dial-node span {
    display: none;
  }

  .dial-node i {
    width: 48px;
    height: 48px;
  }

  .dial-node svg {
    width: 20px;
    height: 20px;
  }

  .dial-panels {
    padding: 32px 22px;
  }
}

/* Labels as pills so they sit cleanly over the ring line */
.dial-node {
  z-index: 1;
}

.dial-node span {
  padding: 5px 10px;
  background: var(--navy);
  border: 1px solid var(--line-dk);
  border-radius: 999px;
  white-space: nowrap;
}

.dial-node.is-active span {
  border-color: rgba(92, 200, 255, .5);
}

/* Top node: label above the icon, clear of the pointer */
.dial-node.-up {
  flex-direction: column-reverse;
  translate: -50% calc(-100% + 32px);
}

.dial-hand {
  width: calc(var(--r) - 14%);
}

@media (max-width: 560px) {
  .dial-node.-up {
    translate: -50% -50%;
  }
}
