.page-story {
  --story-blue: var(--blue, #1335b5);
  --story-ink: var(--ink, #162342);
  --story-line: var(--line, #d7dbdf);
  color: var(--story-ink);
  padding: clamp(2rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--story-line);
}

.page-story-heading {
  max-width: 56rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-story .page-story-eyebrow {
  color: var(--story-blue);
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-story h2 {
  color: var(--story-ink);
  max-width: 25ch;
  margin: 0;
  font-size: clamp(1.875rem, 3.1vw, 3.5rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.page-story h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 1.5vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.page-story h2.page-story-context {
  max-width: none;
  color: var(--story-blue);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.page-story p,
.page-story dd {
  font-size: 1.125rem;
  line-height: 1.75;
}

.page-story-nodes,
.page-story-timeline,
.page-story-path,
.page-story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-story-nodes,
.page-story-timeline,
.page-story-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.page-story-nodes p,
.page-story-timeline p,
.page-story-path p {
  margin: 0;
  max-width: 35ch;
}

.page-story-constellation {
  position: relative;
  isolation: isolate;
}

.page-story-orbit {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: 100%;
  height: 7rem;
  fill: none;
  stroke: var(--story-blue);
  stroke-width: 1;
  opacity: 0.2;
}

.page-story-symbol {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--story-blue);
  border-radius: 50%;
  background: var(--paper, #f6f5f0);
  color: var(--story-blue);
}

.page-story-symbol svg {
  width: 4.25rem;
  height: 4.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-story-symbol-core {
  fill: currentColor;
}

.page-story-timeline {
  gap: 0;
}

.page-story-timeline li {
  min-width: 0;
}

.page-story-timeline h3 {
  margin: 0 0 1.25rem;
  color: var(--story-blue);
  font-size: clamp(1.5rem, 2.6vw, 2.625rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.page-story-timepoint {
  position: relative;
  display: block;
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--story-blue);
}

.page-story-timepoint::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid var(--paper, #f6f5f0);
  border-radius: 50%;
  background: var(--story-blue);
  transform: translateY(-50%);
}

.page-story-timeline li:last-child .page-story-timepoint {
  background: linear-gradient(to right, var(--story-blue), transparent);
}

.page-story-timeline p {
  padding-right: 2rem;
}

.page-story-path {
  overflow: hidden;
}

.page-story-pathmark {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  margin: 0 0 1.5rem;
  background: var(--story-blue);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

.page-story-pathmark::after {
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  content: "";
  width: 30rem;
  height: 1px;
  background: var(--story-line);
}

.page-story-path li:last-child .page-story-pathmark::after {
  display: none;
}

.page-story-process {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.page-story-steps li {
  position: relative;
  border-top: 1px solid var(--story-line);
}

.page-story-steps li:last-child {
  border-bottom: 1px solid var(--story-line);
}

.page-story summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
}

.page-story summary::-webkit-details-marker {
  display: none;
}

.page-story summary:hover {
  color: var(--story-blue);
}

.page-story summary:focus-visible {
  outline: 3px solid var(--story-blue);
  outline-offset: 3px;
}

.page-story-stepnumber {
  flex: 0 0 2.75rem;
  color: var(--story-blue);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
}

.page-story-toggle {
  position: relative;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  color: var(--story-blue);
}

.page-story-toggle::before,
.page-story-toggle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.875rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.page-story-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.page-story details[open] > summary .page-story-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-story-steps details > p {
  margin: 0 0 1.5rem 4rem;
  max-width: 52ch;
}

.page-story .page-story-note {
  margin: 0;
  border-left: 2px solid var(--story-blue);
  padding-left: 1.25rem;
  color: var(--muted, #566176);
  font-size: 1rem;
}

.page-story-archive-guide {
  display: flex;
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.page-story .page-story-cycle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--story-blue);
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
}

.page-story-cycle span:last-child {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  letter-spacing: -0.06em;
}

.page-story-reveals {
  flex: 1 1 auto;
  max-width: 48rem;
  min-width: 0;
}

.page-story-reveals details {
  border-top: 1px solid var(--story-line);
}

.page-story-reveals details:last-child {
  border-bottom: 1px solid var(--story-line);
}

.page-story-reveals details > p {
  margin: 0 0 1.25rem;
  max-width: 55ch;
}

.page-story-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2rem;
  margin: 0;
}

.page-story-facts > div {
  border-top: 2px solid var(--story-blue);
  padding-top: 1rem;
}

.page-story-facts dt {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.page-story-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.page-story--brief {
  padding-block: 2rem;
}

.page-story--brief .page-story-heading {
  margin-bottom: 0;
}

.page-story--empty h2,
.page-story--privacy h2 {
  max-width: 40ch;
  font-size: clamp(1.375rem, 2vw, 2rem);
}

@media (max-width: 48rem) {
  .page-story-nodes,
  .page-story-path {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-story-nodes li,
  .page-story-path li {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }

  .page-story-symbol,
  .page-story-pathmark {
    grid-row: 1 / 3;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
  }

  .page-story-symbol svg {
    width: 3rem;
    height: 3rem;
  }

  .page-story-orbit,
  .page-story-pathmark::after {
    display: none;
  }

  .page-story-nodes p,
  .page-story-path p {
    max-width: none;
  }

  .page-story-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--story-blue);
  }

  .page-story-timeline li {
    position: relative;
    padding-left: 1.5rem;
  }

  .page-story-timeline h3 {
    margin-bottom: 0.5rem;
  }

  .page-story-timepoint {
    position: absolute;
    inset: 0.75rem auto auto -0.45rem;
    margin: 0;
    width: 0;
  }

  .page-story-timeline p {
    padding: 0;
    max-width: none;
  }

  .page-story-process {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-story-archive-guide {
    flex-direction: column;
    gap: 1.5rem;
  }

  .page-story .page-story-cycle {
    flex-direction: row;
    gap: 0.4rem;
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .page-story-reveals {
    width: 100%;
  }
}

@media (max-width: 24rem) {
  .page-story-nodes li,
  .page-story-path li {
    grid-template-columns: 1fr;
  }

  .page-story-symbol,
  .page-story-pathmark {
    grid-row: auto;
    margin-bottom: 1rem;
  }

  .page-story-steps details > p {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-story-toggle::after {
    transition: none;
  }
}

@media print {
  .page-story-orbit,
  .page-story-toggle {
    display: none;
  }

  .page-story details > p {
    display: block !important;
  }

  .page-story details::details-content {
    content-visibility: visible;
    display: block;
  }
}
