.visually-hidden,
.campaign-explorer.is-enhanced .discipline-wheel-fallback,
.discipline-wheel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.campaign-explorer {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  height: calc(100vh / 3);
  height: calc(100svh / 3);
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
}

.campaign-explorer,
.discipline-stories {
  --image-fade-out: 350ms;
  --image-fade-in: 700ms;
}

.campaign-explorer.is-enhanced {
  touch-action: pan-x pinch-zoom;
}

@media (pointer: coarse) {
  .campaign-explorer.is-enhanced {
    overscroll-behavior: contain;
  }
}

.campaign-backgrounds,
.campaign-backgrounds img,
.campaign-backgrounds::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.campaign-backgrounds {
  z-index: -1;
}

.campaign-backgrounds img {
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--background-fade-duration, var(--image-fade-out)) ease var(--background-fade-delay, 0ms);
}

.campaign-backgrounds img.is-active {
  --background-fade-duration: var(--image-fade-in);
  --background-fade-delay: var(--image-fade-out);
  opacity: 1;
}

.campaign-backgrounds::after {
  content: "";
  background: linear-gradient(90deg, rgb(249 248 244 / 42%), rgb(249 248 244 / 88%) 35%, rgb(249 248 244 / 88%) 65%, rgb(249 248 244 / 42%));
}

.campaign-explorer-content {
  width: min(100% - 40px, 1100px);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  padding-block: 8px;
}

.campaign-explorer.is-enhanced .discipline-wheel-mount,
.discipline-wheel-experience {
  height: 100%;
  min-height: 0;
}

.discipline-wheel-experience {
  width: 100%;
  text-align: center;
}

.discipline-wheel-drag {
  position: relative;
  height: 100%;
  overflow: hidden;
  font-family: var(--heading);
  font-size: clamp(1.25rem, min(7vw, 6.5vh), 3.25rem);
  font-size: clamp(1.25rem, min(7vw, 6.5svh), 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  cursor: grab;
  touch-action: pan-x pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.discipline-wheel-scene,
.discipline-wheel-drum {
  position: absolute;
  inset: 0;
}

.discipline-wheel-scene {
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 24%,
    #000 calc(50% - var(--wheel-selection-half-height, 0.575em) - 0.35em),
    transparent calc(50% - var(--wheel-selection-half-height, 0.575em)),
    transparent calc(50% + var(--wheel-selection-half-height, 0.575em)),
    #000 calc(50% + var(--wheel-selection-half-height, 0.575em) + 0.35em),
    #000 76%,
    transparent
  );
}

.discipline-wheel-drum {
  transform-style: preserve-3d;
  transition: transform 1000ms cubic-bezier(0.22, 0.68, 0.2, 1);
}

.discipline-wheel-row {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1.15em;
  margin-top: -0.575em;
  color: #677082;
  backface-visibility: hidden;
  white-space: nowrap;
}

.discipline-wheel-current {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  margin: 0;
  min-height: 44px;
  padding: 0.1em;
  color: var(--orange-ink);
  font: inherit;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-decoration: none;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
  cursor: pointer;
}

.discipline-wheel-current:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 0.035em;
  text-underline-offset: 0.15em;
}

.discipline-wheel-current:focus-visible,
.discipline-wheel-fallback a:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: -3px;
  border-radius: 0.12em;
}

.discipline-wheel-experience.is-dragging .discipline-wheel-scene {
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}

.discipline-wheel-experience:not(.is-dragging) .discipline-wheel-row.is-selected {
  visibility: hidden;
}

.discipline-wheel-experience.is-dragging .discipline-wheel-current {
  opacity: 0;
  pointer-events: none;
}

.discipline-wheel-experience.is-dragging .discipline-wheel-drag {
  cursor: grabbing;
}

.discipline-wheel-experience.is-dragging .discipline-wheel-drum {
  transition: none;
}

.discipline-wheel-fallback {
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

.discipline-wheel-fallback ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.discipline-wheel-fallback a {
  display: inline-block;
  min-height: 44px;
  padding: 0.4em;
  color: var(--navy);
  font-family: var(--heading);
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.discipline-wheel-experience.is-reduced-motion .discipline-wheel-drum {
  transition: none;
}

@media (max-width: 600px) {
  .campaign-backgrounds img {
    object-position: 25% center;
  }

  .campaign-backgrounds::after {
    background: rgb(249 248 244 / 78%);
  }

  .campaign-explorer-content {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .discipline-wheel-drum,
  .discipline-wheel-current,
  .campaign-backgrounds img {
    transition: none;
  }
}

/* The selected discipline has its own readable story below the compact wheel. */
.discipline-stories {
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px);
}

.discipline-story[hidden] {
  display: none;
}

.discipline-story-heading {
  max-width: 960px;
  margin: 0 0 22px;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.15;
  text-wrap: balance;
}

.discipline-story-intro {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}

.discipline-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 40px;
}

.discipline-story-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.3;
}

.discipline-story-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.discipline-story-copy p + h3 {
  margin-top: 30px;
}

.discipline-story-example {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream);
}

.discipline-story-visual {
  position: relative;
  overflow: hidden;
}

.discipline-story-visual img {
  width: 100%;
  aspect-ratio: 2.4;
  object-fit: cover;
}

.discipline-story-visual img.is-entering {
  animation: discipline-image-in var(--image-fade-in) ease var(--image-fade-out) both;
}

.discipline-story-visual .discipline-story-outgoing {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: discipline-image-out var(--image-fade-out) ease both;
}

.discipline-story-example figcaption {
  padding: clamp(24px, 3vw, 38px);
}

.discipline-story-example blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.5;
}

.discipline-story-example .discipline-story-caption {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.discipline-story-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
}

.discipline-story-action p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@keyframes discipline-image-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes discipline-image-out {
  from { opacity: var(--departing-image-opacity, 1); }
  to { opacity: 0; }
}

@media (max-width: 760px) {
  .discipline-story-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discipline-story-visual img.is-entering,
  .discipline-story-visual .discipline-story-outgoing {
    animation: none;
  }
}
