:root {
  color-scheme: dark;
  --paper: #e8e1cf;
  --paper-bright: #f1ebdc;
  --paper-dim: #b8b09e;
  --ink: #0c0c0b;
  --night: #080807;
  --night-soft: #11110f;
  --line: rgba(232, 225, 207, 0.24);
  --veil: rgba(7, 7, 6, 0.72);
  --stage-pan: 0;
  --parallax-x: 0px;
  --parallax-y: 0px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--night);
  overscroll-behavior: none;
}

body {
  overflow: hidden;
  color: var(--paper);
  font-family: "EB Garamond", Garamond, Georgia, serif;
}

body.is-reading .stage-caption,
body.is-reading .journey-controls,
body.is-reading .masthead > :not(.interface-language),
body.is-reading .markers,
body.is-reading .descent-point {
  opacity: 0.18;
  pointer-events: none;
}

button,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible {
  outline: 1px solid var(--paper-bright);
  outline-offset: 5px;
}

button:disabled {
  cursor: default;
  opacity: 0.28;
}

.experience {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.panorama {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  cursor: grab;
  background: #080807;
}

.panorama.is-dragging {
  cursor: grabbing;
}

.panorama__far {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  filter: blur(6px) contrast(1.08) brightness(0.52);
  opacity: 0.64;
  transform: translate3d(calc(var(--parallax-x) * -0.22), calc(var(--parallax-y) * -0.22), 0) scale(1.09);
  transition: background-image 0.7s ease, opacity 0.7s ease;
}

.panorama__track {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(120%, calc(100% + 270px));
  height: 100%;
  will-change: transform;
}

.panorama__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) brightness(0.8);
  pointer-events: none;
  transition: opacity 0.48s ease, filter 0.7s ease;
}

.experience.is-changing .panorama__image {
  opacity: 0.08;
  filter: contrast(1.4) brightness(0.22);
}

.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atmosphere--mist {
  opacity: 0.32;
  background:
    radial-gradient(ellipse at calc(38% + var(--parallax-x)) 52%, transparent 0 18%, rgba(232, 225, 207, 0.07) 43%, transparent 66%),
    linear-gradient(115deg, rgba(232, 225, 207, 0.05), transparent 28% 74%, rgba(232, 225, 207, 0.04));
  mix-blend-mode: screen;
  animation: breathe-mist 14s ease-in-out infinite alternate;
}

.atmosphere--grain {
  opacity: 0.16;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.atmosphere--vignette {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 25%, transparent 74%, rgba(0, 0, 0, 0.5)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 64%, rgba(0, 0, 0, 0.75));
  box-shadow: inset 0 0 12vw 2vw rgba(0, 0, 0, 0.52);
}

@keyframes breathe-mist {
  from { transform: translate3d(-1.2%, 0, 0) scale(1.02); }
  to { transform: translate3d(1.2%, -0.8%, 0) scale(1.06); }
}

.drag-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 94px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(232, 225, 207, 0.68);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.drag-hint.is-hidden {
  opacity: 0;
}

.masthead {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: clamp(20px, 3.1vw, 46px) clamp(20px, 4vw, 68px);
  pointer-events: none;
}

.identity,
.interface-language,
.hell-map {
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.identity {
  justify-self: start;
}

.wordmark {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-transform: uppercase;
}

.wordmark span,
.credits-link {
  color: var(--paper-dim);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.54rem;
  letter-spacing: 0.2em;
}

.wordmark strong {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.34em;
}

.credits-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-transform: uppercase;
}

.credits-link:hover {
  color: var(--paper);
}

.interface-language {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: center;
  padding-top: 3px;
  font-family: "Cinzel", "Times New Roman", serif;
  text-transform: uppercase;
}

.interface-language button {
  padding: 6px 1px;
  border: 0;
  background: transparent;
  color: rgba(232, 225, 207, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  transition: color 0.25s ease;
}

.interface-language button[aria-pressed="true"] {
  color: var(--paper-bright);
}

.interface-language span {
  width: 22px;
  height: 1px;
  background: var(--line);
}

.hell-map {
  position: relative;
  justify-self: end;
  width: 76px;
  height: 76px;
  color: var(--paper);
  transition: width 0.45s ease, height 0.45s ease;
}

.hell-map.is-open {
  width: min(348px, calc(100vw - 32px), calc(100vh - 32px));
  height: min(348px, calc(100vw - 32px), calc(100vh - 32px));
}

.hell-map__toggle,
.hell-map__panel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hell-map__toggle {
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(232, 225, 207, 0.45);
  background: rgba(8, 8, 7, 0.76);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.45s ease;
}

.hell-map.is-open .hell-map__toggle {
  inset: 13px 13px auto auto;
  width: 44px;
  height: 44px;
  opacity: 0.84;
}

.hell-map__mini {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

.hell-map__mini::before,
.hell-map__mini::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.58;
}

.hell-map__mini::before {
  inset: 4px;
}

.hell-map__mini::after {
  inset: 15px;
}

.hell-map__mini i {
  position: absolute;
  top: calc(8px + var(--i, 0) * 2px);
  width: calc(42px - var(--i, 0) * 4px);
  height: calc(16px + var(--i, 0) * 2px);
  border-bottom: 1px solid rgba(232, 225, 207, 0.42);
  border-radius: 50%;
}

.hell-map__mini i:nth-child(1) { --i: 1; }
.hell-map__mini i:nth-child(2) { --i: 2; }
.hell-map__mini i:nth-child(3) { --i: 3; }
.hell-map__mini i:nth-child(4) { --i: 4; }
.hell-map__mini i:nth-child(5) { --i: 5; }
.hell-map__mini i:nth-child(6) { --i: 6; }
.hell-map__mini i:nth-child(7) { --i: 7; }
.hell-map__mini i:nth-child(8) { --i: 8; }
.hell-map__mini i:nth-child(9) { --i: 9; }

.hell-map__toggle-label {
  position: absolute;
  top: calc(100% + 7px);
  color: rgba(232, 225, 207, 0.65);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hell-map.is-open .hell-map__mini,
.hell-map.is-open .hell-map__toggle-label {
  opacity: 0;
}

.hell-map.is-open .hell-map__toggle::before,
.hell-map.is-open .hell-map__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.hell-map.is-open .hell-map__toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hell-map.is-open .hell-map__toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hell-map__panel {
  overflow: hidden;
  border: 1px solid rgba(232, 225, 207, 0.48);
  background: rgba(7, 7, 6, 0.93);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.66);
  opacity: 0;
  transform: scale(0.25);
  transform-origin: top right;
  transition: opacity 0.34s ease, transform 0.45s ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.hell-map.is-open .hell-map__panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hell-map__engraving {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hell-map__title {
  position: absolute;
  top: 5.8%;
  left: 50%;
  margin: 0;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hell-map__stops {
  position: absolute;
  top: 17%;
  bottom: 15%;
  left: 10%;
  display: grid;
  width: 57%;
  padding: 3px 11px 3px 0;
  grid-template-rows: repeat(11, 1fr);
  background: linear-gradient(
    90deg,
    rgba(7, 7, 6, 0.99) 0%,
    rgba(7, 7, 6, 0.96) 78%,
    rgba(7, 7, 6, 0) 100%
  );
}

.hell-map__stop {
  position: relative;
  display: grid;
  grid-template-columns: 12px 26px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: rgba(232, 225, 207, 0.82);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.54rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.hell-map__stop::before {
  content: "";
  width: 5px;
  height: 5px;
  justify-self: end;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hell-map__stop:hover,
.hell-map__stop:focus-visible,
.hell-map__stop[aria-current="step"] {
  color: var(--paper-bright);
  background: linear-gradient(
    90deg,
    rgba(232, 225, 207, 0.14),
    rgba(232, 225, 207, 0.04) 82%,
    transparent
  );
}

.hell-map__stop[aria-current="step"]::before {
  width: 7px;
  height: 7px;
  background: var(--paper);
}

.hell-map__stop-number {
  color: rgba(232, 225, 207, 0.78);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hell-map__stop-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hell-map__current {
  position: absolute;
  right: 58px;
  bottom: 5.2%;
  left: 58px;
  overflow: hidden;
  margin: 0;
  color: rgba(232, 225, 207, 0.78);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.49rem;
  letter-spacing: 0.11em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage-caption {
  position: absolute;
  z-index: 10;
  left: clamp(22px, 5.8vw, 94px);
  bottom: clamp(108px, 15vh, 152px);
  width: min(530px, calc(100vw - 44px));
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.92);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.stage-caption > * {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-caption 0.7s ease forwards;
}

.stage-caption__kicker {
  margin: 0 0 9px;
  color: var(--paper-dim);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(0.57rem, 0.75vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation-delay: 0.05s;
}

.stage-caption h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.77;
  text-wrap: balance;
  animation-delay: 0.12s;
}

.stage-caption__description {
  max-width: 470px;
  margin: 19px 0 0;
  color: rgba(232, 225, 207, 0.79);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.38;
  animation-delay: 0.2s;
}

.read-poem {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 9px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(232, 225, 207, 0.58);
  background: transparent;
  color: var(--paper);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: auto;
  animation-delay: 0.28s;
}

@keyframes reveal-caption {
  to { opacity: 1; transform: translateY(0); }
}

.markers {
  position: absolute;
  inset: 0;
  z-index: 6;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid rgba(232, 225, 207, 0.82);
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.7);
  color: var(--paper-bright);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.62rem;
  box-shadow: 0 0 0 5px rgba(8, 8, 7, 0.22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(3px);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(232, 225, 207, 0.18);
  border-radius: 50%;
  animation: marker-pulse 3.2s ease-in-out infinite;
}

.marker:hover,
.marker[aria-expanded="true"] {
  background: var(--paper);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes marker-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.86); }
  50% { opacity: 0.75; transform: scale(1.12); }
}

.descent-point {
  position: absolute;
  z-index: 5;
  left: 94%;
  top: 69%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  transform: translate(-50%, -50%);
}

.descent-point__aperture {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 225, 207, 0.38);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 9px, rgba(232, 225, 207, 0.08) 10px 11px),
    #040404;
  box-shadow: inset 0 0 30px #000;
  transition: transform 0.5s ease, border-color 0.35s ease;
}

.descent-point:hover .descent-point__aperture,
.descent-point:focus-visible .descent-point__aperture {
  transform: scale(1.12) rotate(8deg);
  border-color: var(--paper);
}

.descent-point__copy {
  position: relative;
  display: grid;
  gap: 4px;
  width: 116px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.descent-point__copy strong {
  font-size: 0.54rem;
  font-weight: 500;
}

.annotation {
  position: absolute;
  z-index: 31;
  top: 50%;
  left: 50%;
  width: min(340px, calc(100vw - 32px));
  max-height: min(560px, calc(100svh - 140px));
  overflow-y: auto;
  padding: 25px 27px 26px;
  border: 1px solid rgba(232, 225, 207, 0.36);
  background: rgba(9, 9, 8, 0.94);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.68);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.24s ease, transform 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(13px);
}

.annotation[aria-hidden="false"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.annotation__close,
.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1.2rem;
}

.annotation__number,
.annotation__meta,
.poem-drawer__header p,
.text-credit,
.credits-dialog__eyebrow {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.annotation__number {
  margin: 0;
  color: var(--paper-dim);
}

.annotation__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin: 0 0 14px;
  padding-right: 42px;
}

.annotation__language {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 225, 207, 0.2);
}

.annotation__language button {
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: rgba(232, 225, 207, 0.52);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.44rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.annotation__language button + button {
  border-left: 1px solid rgba(232, 225, 207, 0.2);
}

.annotation__language button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.annotation h2 {
  margin: 0;
  padding-right: 30px;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 0.98;
}

.annotation__meta {
  margin: 11px 0 0;
  color: var(--paper-dim);
}

.annotation__text {
  margin: 17px 0 0;
  color: rgba(232, 225, 207, 0.84);
  font-size: 1rem;
  line-height: 1.42;
}

.annotation blockquote {
  margin: 19px 0 0;
  padding: 14px 0 0 17px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--paper-bright);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.35;
}

.journey-controls {
  position: absolute;
  z-index: 18;
  right: clamp(20px, 4vw, 68px);
  bottom: clamp(20px, 3.1vw, 44px);
  left: clamp(20px, 4vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.journey-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.59rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: auto;
}

.journey-button:last-child {
  justify-self: end;
}

.journey-button:not(:disabled):hover span[aria-hidden="true"] {
  transform: translateX(-4px);
}

.journey-button:last-child:not(:disabled):hover span[aria-hidden="true"] {
  transform: translateX(4px);
}

.journey-button span {
  transition: transform 0.2s ease;
}

.journey-status {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 220px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.49rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-status > span:first-child {
  color: var(--paper-dim);
}

.journey-status strong {
  font-size: 0.57rem;
  font-weight: 400;
}

.journey-progress {
  position: relative;
  width: 146px;
  height: 1px;
  margin-top: 7px;
  background: var(--line);
}

.journey-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--paper);
  transition: width 0.7s ease;
}

.poem-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(38vw, 650px);
  min-width: 480px;
  padding: clamp(25px, 3vw, 46px);
  border-left: 1px solid rgba(232, 225, 207, 0.32);
  background: rgba(10, 10, 9, 0.97);
  box-shadow: -30px 0 100px rgba(0, 0, 0, 0.56);
  transform: translateX(103%);
  transition: width 0.45s ease, transform 0.48s cubic-bezier(.66, 0, .22, 1);
  backdrop-filter: blur(18px);
}

.poem-drawer.is-open {
  transform: translateX(0);
}

.poem-drawer.is-parallel {
  width: min(62vw, 1040px);
}

.poem-drawer__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.poem-drawer__header p {
  margin: 0 0 8px;
  color: var(--paper-dim);
}

.poem-drawer__header h2 {
  margin: 0;
  padding-right: 44px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 0.92;
}

.poem-drawer__header .close-button {
  position: relative;
  top: auto;
  right: auto;
}

.reader-toolbar {
  display: grid;
  align-items: stretch;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.canto-picker {
  display: grid;
  gap: 7px;
  color: var(--paper-dim);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.canto-picker select {
  min-width: 104px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--night);
}

.poem-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
}

.poem-modes button {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper-dim);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.49rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: normal;
}

.poem-modes button[aria-pressed="true"] {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(232, 225, 207, 0.07);
}

.poem-text {
  flex: 1;
  overflow-y: auto;
  padding: 28px 12px 38px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-dim) transparent;
}

.poem-text p {
  margin: 0 0 1.12em;
  white-space: pre-line;
  font-size: clamp(1.05rem, 1.25vw, 1.23rem);
  line-height: 1.46;
}

.parallel-stanza {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(25px, 4vw, 62px);
  padding: 0 0 19px;
  margin: 0 0 19px;
  border-bottom: 1px solid rgba(232, 225, 207, 0.1);
}

.parallel-stanza p {
  margin: 0;
}

.parallel-stanza p:last-child {
  color: rgba(232, 225, 207, 0.77);
}

.text-credit {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  line-height: 1.45;
}

.transition-aperture {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030303;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s ease;
}

.transition-aperture.is-active {
  opacity: 1;
}

.transition-aperture__rings {
  position: absolute;
  width: min(74vw, 840px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 225, 207, 0.35);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 25px, rgba(232, 225, 207, 0.13) 26px 27px),
    radial-gradient(circle, rgba(232, 225, 207, 0.12) 0 2%, #030303 34% 100%);
  transform: scale(2.1) rotate(-10deg);
}

.transition-aperture.is-active .transition-aperture__rings {
  animation: descend-aperture 1.1s cubic-bezier(.68, 0, .27, 1) forwards;
}

.transition-aperture span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  transform: translateY(-0.035em);
}

@keyframes descend-aperture {
  0% { transform: scale(2.2) rotate(-11deg); }
  48% { transform: scale(0.25) rotate(4deg); }
  52% { transform: scale(0.22) rotate(4deg); }
  100% { transform: scale(2.3) rotate(14deg); }
}

.credits-dialog {
  width: min(560px, calc(100vw - 36px));
  padding: 38px 42px 40px;
  border: 1px solid rgba(232, 225, 207, 0.34);
  border-radius: 0;
  background: #0c0c0b;
  color: var(--paper);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.8);
}

.credits-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.credits-dialog__eyebrow {
  margin: 0 0 13px;
  color: var(--paper-dim);
}

.credits-dialog h2 {
  max-width: 430px;
  margin: 0 0 22px;
  padding-right: 38px;
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 0.95;
}

.credits-dialog p:not(.credits-dialog__eyebrow) {
  color: rgba(232, 225, 207, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

.preload {
  display: none;
}

@media (max-width: 900px) {
  .experience {
    min-height: 520px;
  }

  .panorama__track {
    width: max(146%, calc(100% + 320px));
  }

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

  .interface-language {
    position: absolute;
    top: clamp(24px, 3.1vw, 36px);
    left: 50%;
    transform: translateX(-50%);
  }

  .hell-map {
    grid-column: 2;
  }

  .stage-caption {
    bottom: 118px;
  }

  .stage-caption h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
  }

  .stage-caption__description {
    max-width: 390px;
  }

  .poem-drawer,
  .poem-drawer.is-parallel {
    width: 100vw;
    min-width: 0;
  }

  .journey-status {
    min-width: 170px;
  }
}

@media (max-width: 620px) {
  .experience {
    min-height: 480px;
  }

  .panorama__track {
    width: max(195%, calc(100% + 420px));
  }

  .masthead {
    padding: 17px 18px;
  }

  .wordmark span,
  .credits-link {
    font-size: 0.47rem;
  }

  .wordmark strong {
    font-size: 1rem;
  }

  .credits-link {
    margin-top: 5px;
  }

  .interface-language {
    top: 15px;
    gap: 7px;
  }

  .interface-language button {
    font-size: 0.48rem;
  }

  .interface-language span {
    width: 11px;
  }

  .hell-map {
    width: 58px;
    height: 58px;
  }

  .hell-map.is-open {
    width: min(320px, calc(100vw - 20px), calc(100vh - 20px));
    height: min(320px, calc(100vw - 20px), calc(100vh - 20px));
  }

  .hell-map__toggle-label {
    display: none;
  }

  .hell-map__mini {
    transform: scale(0.76);
  }

  .stage-caption {
    left: 18px;
    bottom: 98px;
    width: calc(100vw - 36px);
  }

  .stage-caption__kicker {
    margin-bottom: 6px;
  }

  .stage-caption h1 {
    max-width: 88vw;
    font-size: clamp(2.9rem, 14vw, 4.8rem);
  }

  .stage-caption__description {
    display: none;
  }

  .read-poem {
    margin-top: 15px;
  }

  .drag-hint {
    display: none;
  }

  .journey-controls {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .journey-button {
    font-size: 0;
  }

  .journey-button span[aria-hidden="true"] {
    font-size: 1.1rem;
  }

  .journey-status {
    min-width: 150px;
  }

  .journey-status strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .journey-progress {
    width: 118px;
  }

  .descent-point {
    width: 102px;
    height: 102px;
  }

  .descent-point__copy {
    width: 90px;
    font-size: 0.44rem;
  }

  .annotation {
    top: auto;
    right: 14px;
    bottom: 82px;
    left: 14px;
    width: auto;
    max-height: 52svh;
    transform: translateY(20px);
  }

  .annotation[aria-hidden="false"] {
    transform: translateY(0);
  }

  .poem-drawer {
    padding: 22px 18px 18px;
  }

  .reader-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .canto-picker select {
    width: 100%;
  }

  .poem-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .poem-modes button {
    padding-inline: 4px;
    font-size: 0.43rem;
  }

  .parallel-stanza {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .parallel-stanza p:first-child {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(232, 225, 207, 0.08);
  }

  .credits-dialog {
    padding: 32px 26px;
  }
}

@media (max-height: 690px) and (min-width: 621px) {
  .stage-caption {
    bottom: 86px;
  }

  .stage-caption h1 {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  .stage-caption__description {
    display: none;
  }

  .read-poem {
    margin-top: 14px;
  }

  .masthead {
    padding-top: 19px;
  }

  .journey-controls {
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .drag-hint {
    display: none;
  }
}

/* Purgatorio keeps Inferno's engraved interface while allowing the plate to breathe. */
.purgatorio-page .panorama__far {
  filter: blur(6px) contrast(1.03) brightness(0.72);
  opacity: 0.7;
}

.purgatorio-page .panorama__image {
  filter: grayscale(1) sepia(0.08) contrast(1.04) brightness(0.94);
}

.purgatorio-page .atmosphere--mist {
  opacity: 0.2;
}

.purgatorio-page .atmosphere--vignette {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 23%, transparent 77%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 20%, transparent 69%, rgba(0, 0, 0, 0.55));
  box-shadow: inset 0 0 9vw 1vw rgba(0, 0, 0, 0.24);
}

.purgatorio-page .stage-caption,
.purgatorio-page .masthead,
.purgatorio-page .journey-controls,
.purgatorio-page .descent-point__copy {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82), 0 0 18px rgba(0, 0, 0, 0.5);
}

.purgatory-map .hell-map__mini {
  transform: rotate(180deg);
}

.purgatory-map .hell-map__stops {
  top: 16%;
  bottom: 14%;
  width: 63%;
  grid-template-rows: repeat(12, 1fr);
}

.purgatory-map .hell-map__stop {
  grid-template-columns: 12px 28px minmax(0, 1fr);
  font-size: 0.49rem;
}
