.progressao-page {
  overflow: hidden;
}

.progressao-page .section-heading {
  max-width: none;
}

.progressao-page .section-heading > p {
  max-width: 64ch;
}

.progressao-hero {
  padding-block: var(--space-10) var(--space-9);
  background: linear-gradient(115deg, var(--color-ivory) 0%, var(--color-ivory) 72%, color-mix(in srgb, var(--color-sandstone) 45%, var(--color-ivory)) 72%);
}

.progressao-hero__grid,
.progressao-memory__grid,
.progressao-detours__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 7fr) minmax(18.75rem, 5fr);
  align-items: center;
  gap: var(--space-8);
}

.progressao-hero__grid > *,
.progressao-memory__grid > *,
.progressao-detours__grid > * {
  min-width: 0;
  width: 100%;
}

.progressao-hero__copy {
  display: flex;
  min-width: 0;
  max-width: 45rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-left: var(--space-4);
  border-left: 4px solid var(--color-gold);
}

.progressao-hero__copy > * {
  margin: 0;
}

.progressao-hero__copy h1 {
  max-width: 19ch;
}

.progressao-hero__intro {
  max-width: 66ch;
  font-size: var(--font-size-intro);
  line-height: var(--line-height-intro);
}

.progressao-hero__support {
  max-width: 65ch;
}

.progressao-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-lapis);
  font-weight: 700;
}

.progressao-text-link span {
  color: var(--color-gold);
  font-size: 1.3em;
}

.progressao-hero__media {
  position: relative;
  width: 100%;
  margin: 0;
  box-shadow: var(--shadow-overlay);
}

.progressao-hero__fragments {
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.progressao-hero__fragments::after {
  position: absolute;
  z-index: 1;
  top: 10%;
  right: -1px;
  width: 16%;
  height: 58%;
  border-left: 8px solid var(--color-ivory);
  background: rgba(23, 28, 41, 0.18);
  content: "";
}

.progressao-hero__media img,
.progressao-memory__media img,
.progressao-detours__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progressao-hero__media figcaption,
.progressao-memory__media figcaption,
.progressao-detours__media figcaption {
  padding: var(--space-3);
  background: var(--color-crystal-white);
}

.progressao-hero__media figcaption .label,
.progressao-memory__media figcaption .label,
.progressao-detours__media figcaption .label {
  margin-right: var(--space-2);
  vertical-align: middle;
}

.progressao-cycle {
  position: relative;
}

.progressao-cycle__heading {
  max-width: 64ch;
}

.progressao-cycle__steps {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.progressao-cycle__steps > * {
  min-width: 0;
  width: 100%;
}

.progressao-cycle__step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-sandstone);
}

.progressao-cycle__step > * {
  margin: 0;
}

.progressao-cycle__step h3 {
  max-width: 18ch;
}

.progressao-cycle__step p {
  max-width: 42ch;
}

.progressao-number {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold);
  background: var(--color-gold);
  color: var(--color-obsidian);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.progressao-memory {
  background: color-mix(in srgb, var(--color-sandstone) 26%, var(--color-ivory));
}

.progressao-memory__heading {
  max-width: 66ch;
}

.progressao-memory__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.progressao-memory__content > * {
  margin: 0;
}

.progressao-memory__lead {
  max-width: 66ch;
}

.progressao-memory__method {
  display: flex;
  min-width: 0;
  max-width: 54ch;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-lapis);
  background: var(--color-lapis);
  color: var(--color-crystal-white);
}

.progressao-memory__method > * {
  margin: 0;
}

.progressao-memory__method h3,
.progressao-memory__method a {
  color: var(--color-crystal-white);
}

.progressao-memory__method ol {
  padding-left: 1.4em;
}

.progressao-memory__method li::marker {
  color: var(--color-turquoise);
  font-weight: 700;
}

.progressao-memory__media {
  align-self: center;
  margin: 0;
}

.progressao-memory__media img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--color-obsidian);
}

.progressao-memory__expand {
  margin: var(--space-3);
}

.progressao-memory__criteria {
  display: flex;
  min-width: 0;
  max-width: 70rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border-structural);
}

.progressao-memory__criteria > * {
  margin: 0;
}

.progressao-memory__criteria ul {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
  padding-left: 1.35em;
}

.progressao-memory__criteria li {
  min-width: 0;
}

.progressao-memory__criteria li::marker {
  color: var(--color-turquoise);
}

.progressao-support__modules,
.progressao-upgrades__panels {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.progressao-support__modules > *,
.progressao-upgrades__panels > * {
  min-width: 0;
  width: 100%;
}

.progressao-support__module {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.progressao-support__module > * {
  margin: 0;
}

.progressao-support__module h3,
.progressao-support__module p {
  max-width: 46ch;
}

.progressao-support__symbol {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: var(--border-turquoise);
  color: var(--color-lapis);
  font-size: 1.75rem;
}

.progressao-support__soma {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  width: min(100%, 45rem);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-left: 4px solid var(--color-gold);
  background: var(--color-crystal-white);
}

.progressao-support__soma > * {
  min-width: 0;
}

.progressao-support__soma h3,
.progressao-support__soma p {
  max-width: 58ch;
}

.progressao-upgrades {
  background: var(--color-crystal-white);
}

.progressao-upgrades__heading {
  max-width: 64ch;
}

.progressao-upgrades__amulets,
.progressao-upgrades__weapons {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: clamp(var(--space-5), 3vw, var(--space-6));
}

.progressao-upgrades__amulets > *,
.progressao-upgrades__weapons > * {
  margin: 0;
}

.progressao-upgrades__amulets {
  border: var(--border-lapis);
  background: var(--color-lapis);
  color: var(--color-crystal-white);
}

.progressao-upgrades__amulets h3,
.progressao-upgrades__amulets a {
  color: var(--color-crystal-white);
}

.progressao-upgrades__amulets::after {
  width: 3rem;
  height: 0.375rem;
  background: var(--color-turquoise);
  content: "";
}

.progressao-upgrades__weapons {
  position: relative;
  border: var(--border-structural);
  background: var(--color-sandstone);
}

.progressao-upgrades__weapons::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 3rem;
  height: 0.375rem;
  background: var(--color-gold);
  content: "";
}

.progressao-upgrades__panels p {
  max-width: 44ch;
}

.progressao-upgrades__conclusion {
  max-width: 60ch;
  margin-top: var(--space-6);
}

.progressao-detours {
  background: color-mix(in srgb, var(--color-sandstone) 19%, var(--color-ivory));
}

.progressao-detours__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.progressao-detours__content > * {
  margin: 0;
}

.progressao-detours__content > h3,
.progressao-detours__content > p,
.progressao-detours__content > ul {
  max-width: 64ch;
}

.progressao-detours__content ul li::marker {
  color: var(--color-turquoise);
}

.progressao-detours__optional {
  display: flex;
  min-width: 0;
  max-width: 38.75rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.progressao-detours__optional > * {
  margin: 0;
}

.progressao-detours__optional p {
  max-width: 48ch;
}

.progressao-detours__quote {
  max-width: 38.75rem;
  border-left-color: var(--color-turquoise);
}

.progressao-detours__media {
  align-self: start;
  margin: 0;
}

.progressao-detours__media img {
  aspect-ratio: 4 / 5;
}

.progressao-route__heading {
  max-width: 58ch;
}

.progressao-route__steps {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.progressao-route__steps > * {
  min-width: 0;
  width: 100%;
}

.progressao-route__step {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
  border: var(--border-structural);
  background: var(--color-crystal-white);
}

.progressao-route__step > * {
  min-width: 0;
}

.progressao-route__number {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.progressao-route__step h3 {
  max-width: 16ch;
}

.progressao-route__step p {
  max-width: 40ch;
}

.progressao-route__step--sandstone {
  background: var(--color-sandstone);
}

.progressao-route__step--lapis {
  border-color: var(--color-lapis);
  background: var(--color-lapis);
  color: var(--color-crystal-white);
}

.progressao-route__step--lapis h3 {
  color: var(--color-crystal-white);
}

.progressao-route__step--turquoise {
  border-color: var(--color-turquoise);
  background: color-mix(in srgb, var(--color-turquoise) 18%, var(--color-crystal-white));
}

.progressao-spoiler {
  background: var(--color-obsidian);
}

.progressao-spoiler__panel {
  width: min(100%, 47.5rem);
  margin-left: auto;
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  border: 1px solid color-mix(in srgb, var(--color-crystal-white) 56%, transparent);
  background: var(--color-violet);
  color: var(--color-crystal-white);
}

.progressao-spoiler__header {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-5);
}

.progressao-spoiler__header > * {
  min-width: 0;
}

.progressao-spoiler__header h2,
.progressao-spoiler__header p,
.progressao-spoiler__content p {
  color: var(--color-crystal-white);
}

.progressao-spoiler__header h2 {
  max-width: 22ch;
  margin-top: var(--space-3);
}

.progressao-spoiler__header p,
.progressao-spoiler__content p {
  max-width: 60ch;
}

.progressao-spoiler__button {
  align-self: center;
  border-color: var(--color-crystal-white);
  background: var(--color-crystal-white);
  color: var(--color-obsidian);
}

.progressao-spoiler__button:hover {
  background: var(--color-turquoise);
  color: var(--color-obsidian);
}

.progressao-spoiler__content {
  max-width: 60ch;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--color-crystal-white) 56%, transparent);
}

.progressao-spoiler__content a {
  color: var(--color-crystal-white);
}

.progressao-connections__cards {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.progressao-connections__cards > * {
  min-width: 0;
  width: 100%;
}

.progressao-connections__card {
  display: flex;
  min-width: 0;
  min-height: 15rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-structural);
  background: var(--color-crystal-white);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.progressao-connections__card > * {
  margin: 0;
}

.progressao-connections__card h3 {
  color: var(--color-lapis);
}

.progressao-connections__card p {
  max-width: 34ch;
}

.progressao-connections__card > span:last-child {
  margin-top: auto;
  color: var(--color-lapis);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: underline;
}

.progressao-connections__card:hover {
  border-color: var(--color-lapis);
  color: var(--color-text);
  text-decoration: none;
  transform: translateY(-4px);
}

.progressao-connections__card--violet {
  border-bottom: 5px solid var(--color-violet);
}

.progressao-connections__card--turquoise {
  border-bottom: 5px solid var(--color-turquoise);
}

.progressao-connections__card--gold {
  border-bottom: 5px solid var(--color-gold);
}

.progressao-connections__cta {
  margin-top: var(--space-6);
}

.progressao-closing {
  background: var(--color-ivory);
}

.progressao-closing__panel {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  border: 1px solid var(--color-obsidian);
  background: var(--color-obsidian);
  color: var(--color-crystal-white);
}

.progressao-closing__panel > * {
  min-width: 0;
}

.progressao-closing__content {
  display: flex;
  min-width: 0;
  max-width: 47.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.progressao-closing__content > * {
  margin: 0;
}

.progressao-closing__content h2 {
  max-width: 23ch;
  color: var(--color-gold);
}

.progressao-closing__content p {
  max-width: 60ch;
}

.progressao-closing__top {
  align-self: start;
  width: auto;
}

.progressao-closing__note {
  grid-column: 1 / -1;
  max-width: 78ch;
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-gold);
  color: color-mix(in srgb, var(--color-crystal-white) 82%, var(--color-obsidian));
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
}

.progressao-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.progressao-modal[hidden] {
  display: none;
}

.progressao-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 28, 41, 0.8);
}

.progressao-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 68rem);
  max-height: calc(100vh - 2rem);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  overflow: auto;
  padding: var(--space-4);
  border: var(--border-lapis);
  border-radius: var(--radius-soft);
  background: var(--color-crystal-white);
  box-shadow: var(--shadow-overlay);
}

.progressao-modal__topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.progressao-modal__topline > * {
  min-width: 0;
  margin: 0;
}

.progressao-modal__close {
  display: grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: var(--border-lapis);
  border-radius: var(--radius-sharp);
  background: var(--color-crystal-white);
  color: var(--color-lapis);
  font-size: 2rem;
  line-height: 1;
}

.progressao-modal__dialog > p {
  margin: 0;
}

body.progressao-modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .progressao-route__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .progressao-cycle__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .progressao-hero__grid,
  .progressao-memory__grid,
  .progressao-detours__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .progressao-hero__media,
  .progressao-memory__media,
  .progressao-detours__media {
    max-width: 42rem;
  }

  .progressao-hero__media,
  .progressao-memory__media {
    justify-self: start;
  }

  .progressao-detours__media {
    grid-row: 2;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .progressao-upgrades__panels {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .progressao-support__modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .progressao-hero {
    padding-block: var(--space-7);
    background: var(--color-ivory);
  }

  .progressao-hero__grid,
  .progressao-memory__grid,
  .progressao-detours__grid {
    gap: var(--space-6);
  }

  .progressao-hero__copy {
    gap: var(--space-4);
    padding-left: var(--space-3);
  }

  .progressao-hero__copy h1 {
    max-width: 16ch;
    font-size: clamp(2.75rem, 11vw, 3.25rem);
    line-height: 1.045;
  }

  .progressao-hero__media,
  .progressao-memory__media,
  .progressao-detours__media {
    max-width: none;
  }

  .progressao-hero__fragments::after {
    display: none;
  }

  .progressao-cycle__steps,
  .progressao-memory__criteria ul,
  .progressao-support__modules,
  .progressao-upgrades__panels,
  .progressao-connections__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .progressao-cycle__step,
  .progressao-support__module,
  .progressao-upgrades__amulets,
  .progressao-upgrades__weapons,
  .progressao-connections__card {
    padding: var(--space-4);
  }

  .progressao-memory__method {
    padding: var(--space-4);
  }

  .progressao-support__soma {
    width: 100%;
    padding: var(--space-4);
  }

  .progressao-route__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .progressao-route__step {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .progressao-route__number {
    font-size: 2rem;
  }

  .progressao-spoiler__panel {
    width: 100%;
    margin-left: 0;
  }

  .progressao-spoiler__header {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .progressao-spoiler__button {
    width: 100%;
  }

  .progressao-connections__card {
    min-height: 0;
  }

  .progressao-closing__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    padding: var(--space-6) var(--space-5);
  }

  .progressao-closing__top {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .progressao-route__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 379px) {
  .progressao-hero__copy {
    padding-left: var(--space-2);
  }

  .progressao-support__soma {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progressao-connections__card:hover {
    transform: none;
  }
}
