:root {
  --ivory: #eee5d0;
  --paper: #d8c9a8;
  --paper-deep: #b7a27d;
  --ink: #191711;
  --ink-soft: #3e382d;
  --charcoal: #0d0c09;
  --line: rgba(238, 229, 208, 0.48);
  --glass: rgba(19, 17, 12, 0.78);
  --serif: "EB Garamond", Georgia, serif;
  --greek: "Noto Serif", "EB Garamond", Georgia, serif;
  --display: "Cinzel", "Noto Serif", Georgia, serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ivory);
}

body,
button,
select {
  font-family: var(--serif);
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 4px;
}

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  background: var(--paper);
}

.panorama {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background: #c8b793;
}

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

.panorama__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 22%, rgba(255, 248, 220, 0.5), transparent 31%),
    linear-gradient(180deg, #d9caab 0%, #b9a783 100%);
}

.panorama__track {
  --minimum-track-width: 132vw;
  --source-track-width: 100%;
  position: absolute;
  inset: 0 auto 0 0;
  width: max(var(--minimum-track-width), var(--source-track-width));
  min-width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.panorama__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  filter: sepia(0.09) contrast(1.04) brightness(1.02);
}

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

.atmosphere--haze {
  background:
    linear-gradient(180deg, rgba(244, 232, 202, 0.14), transparent 42%),
    radial-gradient(ellipse at center, transparent 58%, rgba(50, 42, 29, 0.1) 100%);
  mix-blend-mode: screen;
  opacity: 0.65;
}

.atmosphere--grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' 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='.62'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.masthead {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 34px;
  pointer-events: none;
}

.identity,
.interface-language,
.route-map {
  pointer-events: auto;
}

.identity {
  display: grid;
  align-items: start;
  gap: 3px;
  padding: 10px 13px 11px;
  border: 1px solid rgba(238, 229, 208, 0.28);
  background: rgba(18, 16, 11, 0.48);
  backdrop-filter: blur(7px);
}

.collection-link {
  position: static;
  color: rgba(246, 237, 215, 0.72);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.collection-link:hover {
  color: var(--ivory);
}

.wordmark {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.wordmark span {
  font-family: var(--greek);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark strong {
  font-family: var(--greek);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.interface-language {
  position: absolute;
  top: 29px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px;
  border: 1px solid rgba(238, 229, 208, 0.36);
  border-radius: 999px;
  background: rgba(18, 16, 11, 0.66);
  backdrop-filter: blur(9px);
  transform: translateX(-50%);
}

.interface-language button,
.annotation__language button,
.poem-modes button {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(238, 229, 208, 0.55);
  font-family: var(--greek);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 160ms ease;
}

.interface-language button[aria-pressed="true"],
.annotation__language button[aria-pressed="true"],
.poem-modes button[aria-pressed="true"] {
  color: var(--ivory);
}

.interface-language span {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(238, 229, 208, 0.32);
}

.route-map {
  position: absolute;
  top: 22px;
  right: 29px;
}

.route-map__toggle {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 90px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.route-map__mini {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(238, 229, 208, 0.55);
  border-radius: 50%;
  background: rgba(16, 14, 10, 0.76);
  box-shadow: 0 8px 24px rgba(22, 18, 12, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 200ms ease, background 200ms ease;
}

.route-map__toggle:hover .route-map__mini {
  transform: scale(1.04);
  background: rgba(14, 12, 8, 0.9);
}

.route-map__mini svg {
  width: 47px;
  height: 47px;
  overflow: visible;
}

.route-map__mini path,
.route-map__mini circle {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.5;
}

.route-map__mini circle {
  fill: var(--paper);
}

.route-map__toggle-label {
  font-family: var(--greek);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.route-map__panel {
  position: absolute;
  top: -10px;
  right: -10px;
  width: min(480px, calc(100vw - 30px));
  height: min(480px, calc(100vw - 30px));
  border: 1px solid rgba(238, 229, 208, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 44%, rgba(63, 55, 40, 0.8), rgba(13, 12, 9, 0.97) 70%),
    var(--charcoal);
  box-shadow: 0 22px 60px rgba(26, 21, 13, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.2);
  transform-origin: calc(100% - 43px) 43px;
  transition: opacity 240ms ease, transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1), visibility 0s 300ms;
}

.route-map.is-open .route-map__panel {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1), visibility 0s;
}

.route-map.is-open .route-map__toggle {
  visibility: hidden;
}

.route-map__chart {
  position: absolute;
  inset: 22px;
}

.route-map__chart > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-map__chart > svg circle,
.route-map__chart > svg path {
  fill: none;
  stroke: rgba(216, 201, 168, 0.45);
  stroke-width: 1.05;
}

.route-map__stop {
  position: absolute;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(216, 201, 168, 0.7);
  border-radius: 50%;
  background: rgba(12, 11, 8, 0.88);
  color: var(--paper);
  font-family: var(--display);
  font-size: 9px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.route-map__stop:hover,
.route-map__stop.is-current {
  background: var(--ivory);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.12);
}

.route-map__stop::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  width: 92px;
  color: var(--ivory);
  font-family: var(--greek);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  text-shadow: 0 1px 4px #000;
}

.route-map__eyebrow {
  position: absolute;
  top: 35px;
  left: 50%;
  width: 250px;
  margin: 0;
  font-family: var(--greek);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.route-map__current {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 245px;
  margin: 0;
  color: rgba(238, 229, 208, 0.72);
  font-family: var(--greek);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.route-map__close,
.close-button,
.annotation__close {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 229, 208, 0.48);
  border-radius: 50%;
  background: rgba(11, 10, 7, 0.72);
  color: var(--ivory);
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.route-map__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 43px;
  height: 43px;
}

.stage-caption {
  position: absolute;
  z-index: 10;
  left: 34px;
  bottom: 112px;
  width: min(420px, calc(100vw - 68px));
  padding: 22px 24px 21px;
  border-left: 1px solid rgba(238, 229, 208, 0.62);
  background: rgba(17, 15, 10, 0.76);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
  transition: background 220ms ease, width 220ms ease;
}

.stage-caption__content {
  transition: opacity 160ms ease;
}

.stage-caption__toggle {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 229, 208, 0.42);
  border-radius: 50%;
  background: rgba(13, 12, 8, 0.58);
  color: var(--ivory);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.stage-caption__toggle:hover,
.stage-caption__toggle:focus-visible {
  border-color: rgba(238, 229, 208, 0.88);
  background: rgba(13, 12, 8, 0.88);
}

.stage-caption__toggle-icon {
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
  transform: translateX(-1px);
}

.stage-caption__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stage-caption.is-collapsed {
  left: 0;
  width: auto;
  padding: 0;
  border-left: 0;
  background: none;
  backdrop-filter: none;
}

.stage-caption.is-collapsed .stage-caption__content {
  display: none;
}

.stage-caption.is-collapsed .stage-caption__toggle {
  position: static;
  display: grid;
  width: 36px;
  height: 66px;
  place-items: center;
  border-top: 1px solid rgba(238, 229, 208, 0.4);
  border-right: 1px solid rgba(238, 229, 208, 0.4);
  border-bottom: 1px solid rgba(238, 229, 208, 0.4);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: rgba(15, 13, 9, 0.68);
  box-shadow: 4px 5px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.stage-caption.is-collapsed .stage-caption__toggle-icon {
  transform: rotate(180deg) translateX(-1px);
}

.stage-caption.is-collapsed .stage-caption__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stage-caption__kicker,
.annotation__number,
.annotation__meta,
.poem-drawer__header p,
.credits-dialog__eyebrow,
.text-credit {
  margin: 0;
  font-family: var(--greek);
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.stage-caption h1 {
  margin: 6px 0 8px;
  font-family: var(--greek);
  font-size: clamp(26px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.05;
}

.stage-caption__description {
  max-width: 360px;
  margin: 0;
  color: rgba(238, 229, 208, 0.82);
  font-family: var(--greek);
  font-size: 14px;
  line-height: 1.42;
}

.read-poem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(238, 229, 208, 0.58);
  background: none;
  font-family: var(--greek);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.marker {
  position: absolute;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(250, 240, 214, 0.92);
  border-radius: 50%;
  background: rgba(20, 17, 11, 0.78);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 10px;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(250, 240, 214, 0.22);
  border-radius: 50%;
}

.marker:hover,
.marker.is-active {
  background: var(--ivory);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.12);
}

.annotation {
  position: absolute;
  z-index: 35;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 40px));
  padding: 27px 29px 28px;
  border: 1px solid rgba(238, 229, 208, 0.57);
  background: rgba(19, 17, 12, 0.93);
  box-shadow: 0 25px 70px rgba(20, 16, 9, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 13px));
  transition: opacity 180ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
}

.annotation.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.annotation__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.annotation__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-right: 42px;
}

.annotation__number {
  color: rgba(238, 229, 208, 0.58);
}

.annotation__language {
  display: flex;
  gap: 12px;
}

.annotation h2 {
  margin: 18px 0 4px;
  font-family: var(--greek);
  font-size: 27px;
  font-weight: 400;
}

.annotation__meta {
  color: var(--paper-deep);
}

.annotation__text {
  margin: 16px 0 0;
  color: rgba(238, 229, 208, 0.84);
  font-family: var(--greek);
  font-size: 15px;
  line-height: 1.55;
}

.passage-point {
  position: absolute;
  right: 5.5vw;
  bottom: 15vh;
  display: grid;
  width: 172px;
  height: 172px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(242, 231, 203, 0.62);
  border-radius: 50%;
  background: rgba(20, 17, 11, 0.82);
  box-shadow: 0 8px 28px rgba(14, 11, 7, 0.26);
  color: var(--ivory);
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms ease, background 200ms ease;
}

.passage-point:hover {
  background: rgba(12, 11, 8, 0.94);
  transform: scale(1.03);
}

.passage-point__rings,
.passage-point__rings i {
  position: absolute;
  border: 1px solid rgba(216, 201, 168, 0.26);
  border-radius: 50%;
}

.passage-point__rings {
  inset: 25px;
}

.passage-point__rings i:nth-child(1) { inset: 11px; }
.passage-point__rings i:nth-child(2) { inset: 24px; }
.passage-point__rings i:nth-child(3) { inset: 37px; }

.passage-point__copy {
  position: relative;
  display: grid;
  width: 120px;
  gap: 4px;
  font-family: var(--greek);
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.passage-point__copy strong {
  font-size: 12px;
  font-weight: 400;
}

.drag-hint {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(238, 229, 208, 0.38);
  border-radius: 999px;
  background: rgba(18, 16, 11, 0.63);
  color: rgba(238, 229, 208, 0.8);
  font-family: var(--greek);
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: hint 5s 1.5s ease both;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

@keyframes hint {
  0%, 100% { opacity: 0; }
  15%, 70% { opacity: 1; }
}

.journey-controls {
  position: absolute;
  z-index: 18;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px) 1fr;
  align-items: end;
  gap: 24px;
  padding: 22px 34px 25px;
  background: linear-gradient(0deg, rgba(18, 15, 10, 0.7), transparent);
  pointer-events: none;
}

.journey-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  padding: 10px 0;
  border: 0;
  background: none;
  font-family: var(--greek);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

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

.journey-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.journey-status {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: var(--greek);
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.journey-status > span:first-child {
  color: rgba(238, 229, 208, 0.62);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.journey-status strong {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.journey-progress {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: rgba(238, 229, 208, 0.25);
}

.journey-progress i {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--ivory);
  transition: width 600ms ease;
}

.credits-link {
  position: absolute;
  z-index: 19;
  right: 38px;
  bottom: 88px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(238, 229, 208, 0.66);
  font-family: var(--greek);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
}

.poem-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(38vw, 610px);
  min-width: 450px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(60, 49, 31, 0.3);
  background: #eee5d1;
  box-shadow: -20px 0 70px rgba(23, 18, 10, 0.23);
  color: var(--ink);
  color-scheme: light;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.22, 0.75, 0.22, 1), opacity 200ms ease;
}

.poem-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

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

.poem-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 38px 25px;
  border-bottom: 1px solid rgba(35, 30, 21, 0.2);
}

.poem-drawer__header p {
  color: rgba(25, 23, 17, 0.58);
}

.poem-drawer__header h2 {
  margin: 5px 0 0;
  font-family: var(--greek);
  font-size: 29px;
  font-weight: 400;
}

.poem-drawer .close-button {
  width: 42px;
  height: 42px;
  border-color: rgba(25, 23, 17, 0.35);
  background: transparent;
  color: var(--ink);
}

.reader-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 38px;
  border-bottom: 1px solid rgba(35, 30, 21, 0.17);
}

.book-picker {
  display: grid;
  gap: 4px;
  font-family: var(--greek);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-picker select {
  min-width: 128px;
  padding: 6px 25px 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(25, 23, 17, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--greek);
  font-size: 14px;
}

.poem-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
}

.poem-modes button {
  color: rgba(25, 23, 17, 0.45);
  font-size: 9px;
}

.poem-modes button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.poem-text {
  height: calc(100% - 253px);
  padding: 31px 38px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(25, 23, 17, 0.35) transparent;
}

.poem-segment {
  position: relative;
  margin: 0 0 24px;
  padding-left: 31px;
}

.poem-segment__line {
  position: absolute;
  top: 5px;
  left: 0;
  color: rgba(25, 23, 17, 0.42);
  font-family: var(--display);
  font-size: 8px;
}

.poem-segment p,
.parallel-row p {
  margin: 0;
  white-space: pre-line;
}

.poem-text[data-mode="greek"] .poem-segment p {
  font-family: var(--greek);
  font-size: 16px;
  line-height: 1.75;
}

.poem-text[data-mode="english"] .poem-segment p {
  font-size: 16px;
  line-height: 1.62;
}

.parallel-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-bottom: 0;
  padding: 23px 0 24px 31px;
  border-top: 1px solid rgba(25, 23, 17, 0.14);
}

.parallel-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.parallel-row .poem-segment__line {
  top: 28px;
}

.parallel-row:first-child .poem-segment__line {
  top: 5px;
}

.parallel-row__greek {
  font-family: var(--greek);
  font-size: 15px;
  line-height: 1.7;
}

.parallel-row__english {
  font-size: 15px;
  line-height: 1.6;
}

.text-credit {
  position: static;
  margin: 58px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid rgba(25, 23, 17, 0.18);
  color: rgba(25, 23, 17, 0.52);
  line-height: 1.4;
}

.book-navigation {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid rgba(35, 30, 21, 0.2);
  background: rgba(238, 229, 209, 0.97);
  box-shadow: 0 -10px 28px rgba(44, 36, 23, 0.06);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.book-navigation__button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 13px 27px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.book-navigation__button:hover:not(:disabled) {
  background: rgba(25, 23, 17, 0.055);
}

.book-navigation__button:disabled {
  opacity: 0.28;
  cursor: default;
}

.book-navigation__button--next {
  justify-content: flex-end;
  text-align: right;
}

.book-navigation__button span:not(.book-navigation__arrow) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.book-navigation__button small {
  color: rgba(25, 23, 17, 0.52);
  font-family: var(--greek);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-navigation__button strong {
  overflow: hidden;
  font-family: var(--greek);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-navigation__arrow {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 17px;
}

.book-navigation__progress {
  align-self: center;
  padding: 0 20px;
  color: rgba(25, 23, 17, 0.48);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.credits-dialog {
  width: min(620px, calc(100vw - 38px));
  max-height: calc(100vh - 50px);
  padding: 40px 44px;
  border: 1px solid rgba(238, 229, 208, 0.5);
  background: rgba(20, 18, 13, 0.97);
  color: var(--ivory);
  box-shadow: 0 30px 90px rgba(15, 12, 7, 0.55);
  overflow-y: auto;
}

.credits-dialog::backdrop {
  background: rgba(18, 15, 10, 0.55);
  backdrop-filter: blur(5px);
}

.credits-dialog .close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
}

.credits-dialog h2 {
  margin: 8px 45px 20px 0;
  font-family: var(--greek);
  font-size: 30px;
  font-weight: 400;
}

.credits-dialog p:not(.credits-dialog__eyebrow) {
  color: rgba(238, 229, 208, 0.78);
  font-family: var(--greek);
  font-size: 15px;
  line-height: 1.55;
}

.credits-dialog a {
  color: var(--ivory);
}

.transition-sea {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #d7c7a5;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  clip-path: circle(0 at 50% 60%);
}

.transition-sea.is-active {
  animation: sea-transition 1.35s cubic-bezier(0.6, 0, 0.22, 1) both;
}

.transition-sea__sun {
  width: 14vh;
  height: 14vh;
  border: 1px solid rgba(25, 23, 17, 0.65);
  border-radius: 50%;
}

.transition-sea__lines {
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(74vw, 850px);
  transform: translate(-50%, -50%);
}

.transition-sea__lines i {
  display: block;
  height: 20px;
  margin: -1px auto 0;
  border-top: 1px solid rgba(25, 23, 17, 0.55);
  border-radius: 50%;
}

.transition-sea__lines i:nth-child(2) { width: 82%; }
.transition-sea__lines i:nth-child(3) { width: 64%; }
.transition-sea__lines i:nth-child(4) { width: 46%; }

.transition-sea > span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.15em;
  transform: translate(-50%, -50%);
}

@keyframes sea-transition {
  0% { opacity: 0; clip-path: circle(0 at 50% 60%); }
  34%, 64% { opacity: 1; clip-path: circle(80vmax at 50% 60%); }
  100% { opacity: 0; clip-path: circle(80vmax at 50% 60%); }
}

.preload {
  display: none;
}

@media (max-width: 860px) {
  .masthead {
    padding: 20px;
  }

  .identity {
    max-width: 120px;
  }

  .collection-link {
    position: static;
  }

  .wordmark span {
    font-size: 9px;
  }

  .wordmark strong {
    font-size: 17px;
  }

  .interface-language {
    top: 20px;
    gap: 7px;
    padding: 7px 9px;
  }

  .interface-language button {
    font-size: 9px;
  }

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

  .route-map {
    top: 14px;
    right: 11px;
  }

  .route-map__toggle {
    width: 72px;
  }

  .route-map__mini {
    width: 54px;
    height: 54px;
  }

  .route-map__mini svg {
    width: 38px;
    height: 38px;
  }

  .route-map__panel {
    width: min(430px, calc(100vw - 16px));
    height: min(430px, calc(100vw - 16px));
  }

  .stage-caption {
    left: 20px;
    bottom: 96px;
    width: min(365px, calc(100vw - 40px));
    padding: 17px 18px;
  }

  .stage-caption h1 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .stage-caption__description {
    font-size: 13px;
  }

  .passage-point {
    right: 7vw;
    bottom: 12vh;
    width: 145px;
    height: 145px;
  }

  .journey-controls {
    grid-template-columns: 1fr 145px 1fr;
    gap: 8px;
    padding: 18px 20px 20px;
  }

  .journey-button {
    gap: 7px;
  }

  .journey-button span:not([aria-hidden="true"]) {
    display: none;
  }

  .journey-button.is-return span:not([aria-hidden="true"]) {
    display: inline;
  }

  .journey-button.is-return span[aria-hidden="true"] {
    display: none;
  }

  .credits-link {
    right: 20px;
    bottom: 77px;
  }

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

@media (max-width: 600px) {
  .panorama__track {
    --minimum-track-width: 218vw;
  }

  .identity {
    display: none;
  }

  .interface-language {
    top: 20px;
    left: 50%;
  }

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

  .route-map__panel {
    top: -6px;
    right: -4px;
  }

  .route-map__chart {
    inset: 13px;
  }

  .route-map__eyebrow {
    top: 23px;
  }

  .route-map__current {
    bottom: 17px;
  }

  .route-map__close {
    top: 11px;
    right: 11px;
    width: 39px;
    height: 39px;
  }

  .route-map__stop {
    width: 28px;
    height: 28px;
  }

  .route-map__stop::after {
    width: 72px;
    font-size: 7px;
  }

  .stage-caption {
    bottom: 84px;
    max-height: 40vh;
  }

  .stage-caption:not(.is-collapsed) {
    left: 12px;
    width: calc(100vw - 24px);
  }

  .stage-caption.is-collapsed .stage-caption__toggle {
    width: 34px;
    height: 58px;
    border-radius: 0 16px 16px 0;
  }

  .stage-caption__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .passage-point {
    right: 6vw;
    bottom: 21vh;
    width: 125px;
    height: 125px;
  }

  .passage-point__copy {
    width: 95px;
    font-size: 8px;
  }

  .passage-point__copy strong {
    font-size: 10px;
  }

  .marker {
    width: 30px;
    height: 30px;
  }

  .annotation {
    top: auto;
    bottom: 78px;
    width: calc(100vw - 24px);
    padding: 22px 22px 23px;
    transform: translate(-50%, 13px);
  }

  .annotation.is-open {
    transform: translate(-50%, 0);
  }

  .annotation h2 {
    font-size: 24px;
  }

  .annotation__text {
    font-size: 14px;
    line-height: 1.45;
  }

  .journey-controls {
    grid-template-columns: 40px 1fr 40px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .journey-controls.is-final {
    grid-template-columns: 40px minmax(76px, 1fr) minmax(132px, 1.35fr);
  }

  .journey-button.is-return {
    max-width: 154px;
    justify-content: flex-end;
    line-height: 1.35;
    text-align: right;
  }

  .journey-status strong {
    font-size: 9px;
  }

  .credits-link {
    right: 14px;
    bottom: 72px;
  }

  .poem-drawer__header {
    padding: 22px 20px 18px;
  }

  .poem-drawer__header h2 {
    font-size: 24px;
  }

  .reader-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 15px 20px;
  }

  .poem-modes {
    justify-content: flex-start;
  }

  .poem-text {
    height: calc(100% - 268px);
    padding: 24px 20px 30px;
  }

  .poem-segment {
    padding-left: 26px;
  }

  .parallel-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 26px;
  }

  .parallel-row__english {
    padding-top: 13px;
    border-top: 1px dotted rgba(25, 23, 17, 0.23);
  }

  .text-credit {
    margin-top: 42px;
  }

  .book-navigation__button {
    gap: 9px;
    padding: 11px 14px;
  }

  .book-navigation__button small {
    font-size: 7px;
  }

  .book-navigation__button strong {
    max-width: 98px;
    font-size: 10px;
  }

  .book-navigation__progress {
    padding: 0 8px;
  }

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

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