:root {
  --dps-green-primary: #0f2f26;
  --dps-green-deep: #0a221c;
  --dps-green-surface: #163d33;
  --dps-gold-accent: #c6a75e;
  --dps-gold-soft: #d4b87a;
  --dps-gold-muted: #9f8447;
  --dps-mint: #9ae3c8;
  --dps-ivory: #f2f1ed;
  --dps-ivory-soft: #e7e4dc;
  --dps-shadow-deep: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Karla", sans-serif;
  color: var(--dps-ivory);
  background:
    radial-gradient(circle at 50% 12%, rgba(198, 167, 94, 0.16), transparent 33%),
    radial-gradient(circle at 80% 85%, rgba(154, 227, 200, 0.1), transparent 42%),
    linear-gradient(180deg, #163d33 0%, #0f2f26 52%, #071713 100%);
}

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--dps-gold-accent);
  color: #10211c;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0.8rem;
}

main {
  width: min(1180px, 95vw);
  margin: 1.7rem auto 2.6rem;
}

.council-intro {
  text-align: center;
  max-width: 58rem;
  margin: 0 auto;
}

.council-intro p:first-child {
  margin: 0;
  color: var(--dps-gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.73rem;
}

.council-intro h1 {
  margin: 0.45rem 0;
  font-family: "Forum", serif;
  font-size: clamp(2.05rem, 4.8vw, 3.7rem);
  letter-spacing: 0.02em;
}

.council-intro p {
  margin: 0;
  color: rgba(242, 241, 237, 0.86);
  line-height: 1.6;
}

.council-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.council-actions button {
  border: 1px solid rgba(198, 167, 94, 0.4);
  background: rgba(15, 47, 38, 0.55);
  color: var(--dps-ivory);
  padding: 0.48rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.council-actions button:hover,
.council-actions button:focus-visible {
  color: var(--dps-gold-soft);
  background: rgba(198, 167, 94, 0.14);
  border-color: rgba(212, 184, 122, 0.82);
  transform: translateY(-1px);
}

.council-shell {
  position: relative;
  isolation: isolate;
  margin-top: 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(198, 167, 94, 0.34);
  background:
    radial-gradient(circle at 18% 12%, rgba(212, 184, 122, 0.12), transparent 45%),
    radial-gradient(circle at 68% 38%, rgba(154, 227, 200, 0.12), transparent 52%),
    rgba(10, 34, 28, 0.72);
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(10, 34, 28, 0.35);
  padding: 1rem;
  overflow: hidden;
  transform-style: preserve-3d;
}

.council-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(154, 227, 200, 0.06) 0,
      rgba(154, 227, 200, 0.06) 1px,
      transparent 1px,
      transparent 52px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(212, 184, 122, 0.045) 0,
      rgba(212, 184, 122, 0.045) 1px,
      transparent 1px,
      transparent 48px
    );
  opacity: 0.55;
  pointer-events: none;
  mask-image: radial-gradient(circle at 55% 40%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 70%);
}

.council-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.14;
  animation: chamberScan 10.5s linear infinite;
  pointer-events: none;
}

.council-radar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
}

.focus-orb {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(212, 184, 122, 0.18), transparent 61%),
    radial-gradient(circle at 35% 35%, rgba(154, 227, 200, 0.14), transparent 59%);
  filter: blur(1px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 520ms ease, top 520ms ease;
  z-index: 1;
  animation: orbPulse 5.4s ease-in-out infinite;
  will-change: left, top;
}

.chamber-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: 1rem;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--chamber-tilt-x, 0deg))
    rotateY(var(--chamber-tilt-y, 0deg));
  transition: transform 320ms ease;
}

.focus-panel {
  border-radius: 1.05rem;
  border: 1px solid rgba(198, 167, 94, 0.4);
  background:
    radial-gradient(circle at 18% 22%, rgba(212, 184, 122, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(19, 55, 48, 0.92), rgba(9, 34, 29, 0.96));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(10, 34, 28, 0.36);
  overflow: hidden;
  transform: translateZ(10px);
  min-height: 560px;
  position: relative;
}

.focus-panel.is-switching {
  animation: panelPulse 520ms ease both;
}

.focus-panel.is-switching .focus-photo img {
  animation: focusGlitch 520ms ease both;
}

.focus-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(154, 227, 200, 0.14), transparent 52%);
  opacity: 0.6;
  pointer-events: none;
}

.focus-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 44%, transparent 76%);
  transform: translateX(-45%);
  animation: focusSheen 13s ease-in-out infinite;
  opacity: 0.32;
  pointer-events: none;
}

.focus-panel-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(198, 167, 94, 0.25);
  background: rgba(7, 23, 19, 0.55);
}

.focus-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(212, 184, 122, 0.9);
}

.focus-signal {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(242, 241, 237, 0.75);
}

.focus-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
}

.focus-photo {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(198, 167, 94, 0.28);
  background: rgba(7, 23, 19, 0.6);
  min-height: 340px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
}

.focus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: saturate(1.06) contrast(1.04) brightness(0.92);
  transform: scale(1.03);
}

.focus-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 10%, rgba(212, 184, 122, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(10, 34, 28, 0) 35%, rgba(7, 23, 19, 0.72) 100%);
  pointer-events: none;
}

.focus-photo::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: conic-gradient(from 90deg, rgba(154, 227, 200, 0), rgba(154, 227, 200, 0.18), rgba(212, 184, 122, 0), rgba(212, 184, 122, 0.12), rgba(154, 227, 200, 0));
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: photoAperture 12s ease-in-out infinite;
  pointer-events: none;
}

.focus-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.focus-badges {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.focus-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(212, 184, 122, 0.6);
  border-radius: 999px;
  background: rgba(198, 167, 94, 0.14);
  color: rgba(248, 246, 239, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
}

.focus-status {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 227, 200, 0.9);
}

.focus-panel h2 {
  margin: 0;
  font-family: "Forum", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: rgba(244, 230, 186, 0.96);
  letter-spacing: 0.02em;
}

.focus-message {
  margin: 0;
  line-height: 1.82;
  color: rgba(242, 241, 237, 0.9);
  font-size: 1.05rem;
}

.focus-points {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.focus-points li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: rgba(231, 228, 220, 0.9);
}

.focus-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.15rem;
  background: rgba(154, 227, 200, 0.55);
  box-shadow: 0 0 0 1px rgba(154, 227, 200, 0.22), 0 0 18px rgba(154, 227, 200, 0.12);
  transform: rotate(45deg);
}

.word {
  opacity: 0;
  display: inline-block;
  transform: translateY(6px);
  transition: opacity 360ms ease, transform 360ms ease;
  margin-right: 0.38em;
}

.word.visible {
  opacity: 1;
  transform: translateY(0);
}

.council-ring {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.podium {
  border-radius: 1rem;
  border: 1px solid rgba(198, 167, 94, 0.28);
  background: linear-gradient(180deg, rgba(22, 61, 51, 0.88), rgba(12, 40, 32, 0.95));
  color: var(--dps-ivory);
  text-align: left;
  padding: 0.78rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr);
  align-items: center;
  gap: 0.78rem;
  transition: transform 420ms ease, box-shadow 420ms ease, border-color 420ms ease, background 420ms ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.podium::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    circle at var(--podium-mx, 50%) var(--podium-my, 50%),
    rgba(154, 227, 200, 0.18),
    transparent 60%
  );
  transition: opacity 260ms ease;
  pointer-events: none;
  transform: translateZ(1px);
}

.podium:hover::before,
.podium:focus-visible::before,
.podium.active::before {
  opacity: 1;
}

.podium-photo {
  width: 4.1rem;
  height: 4.1rem;
  object-fit: cover;
  border-radius: 0.95rem;
  border: 1px solid rgba(198, 167, 94, 0.26);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.32);
  transform: translateZ(18px);
  transition: transform 420ms ease, border-color 420ms ease;
  background: rgba(10, 34, 28, 0.72);
}

.podium-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.podium-role {
  margin: 0;
  color: rgba(212, 184, 122, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.podium h2 {
  margin: 0;
  font-family: "Forum", serif;
  font-size: 1.15rem;
  color: rgba(244, 230, 186, 0.96);
  letter-spacing: 0.02em;
}

.podium-message {
  margin: 0;
  color: rgba(231, 228, 220, 0.84);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.podium:hover .podium-photo,
.podium:focus-visible .podium-photo,
.podium.active .podium-photo {
  transform: translateZ(28px) scale(1.06);
  border-color: rgba(212, 184, 122, 0.78);
}

.podium.active,
.podium:hover,
.podium:focus-visible {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(212, 184, 122, 0.85);
  box-shadow: 0 18px 28px var(--dps-shadow-deep);
  background: linear-gradient(180deg, rgba(22, 61, 51, 0.92), rgba(10, 34, 28, 0.98));
}

.leadership-directive-grid {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(198, 167, 94, 0.3);
  background:
    radial-gradient(circle at 10% 12%, rgba(212, 184, 122, 0.14), transparent 42%),
    linear-gradient(165deg, rgba(18, 52, 45, 0.9), rgba(9, 33, 28, 0.96));
  padding: 1rem;
}

.leadership-directive-grid header p {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(154, 227, 200, 0.9);
}

.leadership-directive-grid header h2 {
  margin: 0.46rem 0 0;
  font-family: "Forum", serif;
  color: rgba(244, 230, 186, 0.96);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.directive-cards {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directive-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(198, 167, 94, 0.25);
  background: linear-gradient(180deg, rgba(22, 61, 51, 0.9), rgba(12, 40, 32, 0.95));
  padding: 0.82rem;
}

.directive-card h3 {
  margin: 0;
  font-family: "Forum", serif;
  color: rgba(244, 230, 186, 0.96);
  font-size: 1.2rem;
}

.directive-card p {
  margin: 0.5rem 0 0;
  color: rgba(231, 228, 220, 0.9);
  line-height: 1.6;
}

.reduced-motion * {
  transition: none !important;
  animation: none !important;
}

@keyframes chamberScan {
  from {
    transform: translateY(-3%);
  }

  to {
    transform: translateY(3%);
  }
}

@keyframes focusSheen {
  0%,
  100% {
    transform: translateX(-45%);
    opacity: 0.12;
  }

  45% {
    transform: translateX(20%);
    opacity: 0.34;
  }

  70% {
    transform: translateX(65%);
    opacity: 0.2;
  }
}

@keyframes orbPulse {
  0%,
  100% {
    opacity: 0.76;
    transform: translate(-50%, -50%) scale(0.97);
  }

  50% {
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes photoAperture {
  0%,
  100% {
    transform: rotate(0deg);
    opacity: 0.18;
  }

  45% {
    transform: rotate(95deg);
    opacity: 0.4;
  }
}

@keyframes panelPulse {
  0% {
    transform: translateZ(10px) scale(0.992);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.38),
      inset 0 0 0 1px rgba(10, 34, 28, 0.36);
  }

  55% {
    transform: translateZ(14px) scale(1);
    box-shadow:
      0 22px 46px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(154, 227, 200, 0.08),
      inset 0 0 0 1px rgba(10, 34, 28, 0.36);
  }

  100% {
    transform: translateZ(10px) scale(1);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.38),
      inset 0 0 0 1px rgba(10, 34, 28, 0.36);
  }
}

@keyframes focusGlitch {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0);
    filter: saturate(1.1) contrast(1.08) brightness(0.96);
  }

  22% {
    transform: scale(1.07) translate3d(6px, -2px, 0);
    filter: saturate(1.25) contrast(1.18) brightness(1.05);
  }

  46% {
    transform: scale(1.06) translate3d(-5px, 2px, 0);
    filter: saturate(1.12) contrast(1.06) brightness(0.92);
  }

  100% {
    transform: scale(1.03) translate3d(0, 0, 0);
    filter: saturate(1.06) contrast(1.04) brightness(0.92);
  }
}

@media (max-width: 1080px) {
  .chamber-grid {
    grid-template-columns: 1fr;
    transition: none;
  }

  .focus-panel {
    min-height: auto;
  }

  .focus-main {
    grid-template-columns: 1fr;
  }

  .focus-photo {
    min-height: 280px;
  }

  .council-ring {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directive-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .council-ring {
    grid-template-columns: 1fr;
  }

  .podium {
    grid-template-columns: 3.7rem minmax(0, 1fr);
  }

  .podium-photo {
    width: 3.7rem;
    height: 3.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .council-shell::after,
  .focus-panel::after,
  .focus-orb,
  .focus-photo::before {
    animation: none !important;
  }
}
