/* V7 — continuous springs; controls retain their original hit areas. */
:root {
  --touch-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header {
  isolation: isolate;
  background: linear-gradient(180deg, #e4f0ef5e, transparent);
  transition:
    height 0.6s var(--touch-ease),
    background 0.6s,
    color 0.6s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 220px 80px at var(--header-light, 50%) 0%,
    #eddfaa24,
    transparent
  );
  border-bottom: 1px solid #d5d2b326;
}
.has-scrolled .site-header {
  background: #102332de;
  backdrop-filter: blur(16px);
}
.header-progress {
  position: absolute;
  height: 1px;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #8dcacc, #ead4a0);
  transform-origin: left;
  pointer-events: none;
}
.desktop-nav {
  position: relative;
  gap: 6px;
  align-items: center;
  height: 100%;
}
.desktop-nav a {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  min-width: 78px;
  padding: 12px 17px;
  height: 52px;
  line-height: 1.3;
  isolation: isolate;
}
.desktop-nav a::after {
  display: none;
}
.nav-word {
  display: block;
  transform: translateY(5px);
  transition:
    transform 0.55s var(--touch-ease),
    color 0.35s;
}
.desktop-nav small {
  display: block;
  font:
    9px/1 Georgia,
    serif;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(9px);
  transition:
    opacity 0.35s,
    transform 0.55s var(--touch-ease);
}
.desktop-nav a:is(:hover, :focus-visible, [aria-current]) .nav-word {
  transform: translateY(-3px);
}
.desktop-nav a:is(:hover, :focus-visible, [aria-current]) small {
  opacity: 0.72;
  transform: translateY(3px);
}
.nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -23px;
  height: 46px;
  background: linear-gradient(180deg, #d3dcb609, #e4d4a61c);
  border-radius: 3px;
  border-bottom: 1px solid #dbc790;
  box-shadow: inset 0 -10px 20px -15px #f7de9c77;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-indicator::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  left: calc(50% - 2px);
  background: #efdcaa;
  box-shadow: 0 0 10px #f8d99a;
}
.brand-mark {
  transition:
    transform 0.85s var(--touch-ease),
    color 0.4s;
  transform-origin: center;
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(90deg) scale(1.13);
  color: #cfb779;
}
.header-controls {
  gap: 16px;
}
.journey-toggle,
.motion-toggle {
  min-height: 44px;
  min-width: 44px;
}
.journey-toggle {
  font: 13px var(--serif);
  letter-spacing: 0.12em;
  padding: 0 4px;
}
.journey-toggle .magnetic-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.journey-toggle .magnetic-inner > span:first-child {
  font:
    28px/1 Georgia,
    serif;
  display: inline-block;
  transition: rotate 0.7s var(--touch-ease);
}
.journey-toggle:hover .magnetic-inner > span:first-child {
  rotate: 90deg;
}
.motion-toggle .magnetic-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.motion-icon {
  width: 35px;
  height: 35px;
  transition:
    border-color 0.4s,
    background 0.4s,
    box-shadow 0.4s;
}
.motion-toggle:hover .motion-icon {
  border-color: #d8c49a;
  background: #e2d0a11c;
  box-shadow: 0 0 0 5px #e2d0a109;
}
.magnetic-inner {
  display: inline-block;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: scale 0.35s var(--touch-ease);
  pointer-events: none;
}
.magnetic-control:active:not(:disabled) > .magnetic-inner {
  scale: 0.96;
}
.magnetic-control:disabled {
  cursor: default;
}
.journey-link > .magnetic-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}
.chapter-detail > .magnetic-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
  font: inherit;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
}
.chapter-detail:hover > .magnetic-inner {
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
}
.chapter-detail > .magnetic-inner > span {
  display: inline-block;
}
.text-link,
.chapter-detail,
.world-controls button,
.world-scenes button,
.round-button,
.dialog-close {
  transition:
    color 0.35s,
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.4s;
}
.text-link:hover,
.chapter-detail:hover,
.world-controls button:hover,
.dialog-close:hover {
  color: #f4dca4;
}
.round-button:hover {
  background: #e9d2991c;
  border-color: #ead39f;
  box-shadow: 0 0 0 6px #ead39f08;
}
.world-scenes button:hover {
  border-color: #efdda4;
  color: #fff2c7;
}
.character-tabs button {
  transition:
    border-color 0.45s,
    background 0.45s;
}
.character-tabs button:hover {
  background: #e4cea514;
}
.character-tabs button img {
  transition:
    filter 0.5s,
    transform 0.7s var(--touch-ease);
}
.character-tabs button:hover img {
  transform: scale(1.06);
}
.page-index a i {
  transition:
    transform 0.5s var(--touch-ease),
    background 0.35s,
    box-shadow 0.35s;
}
.page-index a:hover i {
  transform: scale(1.3);
  box-shadow: 0 0 12px #e3d09d88;
}
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}
.menu-toggle span {
  left: 8px;
  right: 8px;
  transition:
    transform 0.45s var(--touch-ease),
    width 0.45s,
    top 0.45s;
}
.menu-toggle[aria-expanded="true"] span {
  top: 20px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span + span {
  width: 28px;
  transform: rotate(-45deg);
}
.mobile-menu {
  top: calc(var(--header-height, 66px) + 8px);
  border: 1px solid #c9d9dc24;
  background: #102431f5;
  backdrop-filter: blur(18px);
  padding: 16px 24px;
}
.mobile-menu a {
  transition:
    color 0.3s,
    padding-left 0.45s var(--touch-ease);
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  padding-left: 22px;
  color: #ecdbb2;
}
#interaction-dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  pointer-events: none;
}
.mage-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 96;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.mage-cursor.is-visible {
  opacity: 1;
}
.mage-cursor > i {
  position: absolute;
  width: 27px;
  height: 27px;
  left: -13.5px;
  top: -13.5px;
  border: 1px solid #e7d49c99;
  border-radius: 50%;
  box-shadow: 0 0 12px #e8d6a411;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.45s var(--touch-ease),
    background 0.35s;
}
.mage-cursor > i::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  top: -2px;
  left: calc(50% - 1px);
  background: #f2db9f;
  border-radius: 50%;
}
.mage-cursor.is-target > i {
  transform: scale(1.666667);
  background: #edd8a509;
}
.mage-cursor.is-dragging > i {
  transform: scale(2.037037);
  border-style: dashed;
}
.mage-cursor > span {
  position: absolute;
  top: 33px;
  left: -30px;
  width: 60px;
  text-align: center;
  font: 12px var(--serif);
  color: #f6e4b5;
  text-shadow: 0 1px 8px #071623;
  white-space: nowrap;
}
.route-curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #132b39;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #ecdbb0;
  pointer-events: none;
}
.route-curtain[hidden] {
  display: none;
}
.route-curtain::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid #c2bfa121;
}
.route-curtain > span {
  font:
    44px Georgia,
    serif;
}
.route-curtain p {
  font: 20px var(--serif);
  letter-spacing: 0.25em;
  margin-top: 24px;
}
.story-turn-controls {
  position: absolute;
  z-index: 8;
  right: 6%;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 19px;
}
.story-turn-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid #f1ddae68;
  border-radius: 50%;
  font:
    23px Georgia,
    serif;
  color: #eedbb0;
  transition:
    background 0.4s,
    opacity 0.4s,
    box-shadow 0.4s;
}
.story-turn-controls button:disabled {
  opacity: 0.22;
}
.story-turn-controls button:hover:not(:disabled) {
  background: #ebd6a51c;
  box-shadow: 0 0 0 7px #efd8a908;
}
.story-turn-controls p {
  font: 13px/1.8 var(--serif);
  color: #dfdfcc;
  margin: 0;
}
.story-turn-controls small {
  display: block;
  font:
    9px/1.8 Georgia,
    serif;
  letter-spacing: 0.09em;
  opacity: 0.65;
}
.story-bottom {
  display: none;
}
.story-rail {
  max-width: 43%;
}
.chapter-art,
.character-art,
.gallery-dialog > img {
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.chapter-art.is-scrubbing,
.character-art.is-scrubbing,
.gallery-dialog > img.is-scrubbing {
  cursor: grabbing;
}
.chapter-art .scene-main {
  translate: var(--gesture-x, 0px) 0;
  transition: translate 0.25s var(--touch-ease);
}
.chapter-art.is-scrubbing .scene-main {
  transition: none;
}
.character-art .character-portrait {
  translate: var(--gesture-x, 0px) 0;
}
.gallery-dialog > img {
  transition: opacity 0.3s;
}
.journey-dialog {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #ece9d9;
  background: #112733;
  overflow: auto;
}
.journey-dialog::backdrop {
  background: #0c1e2aec;
  backdrop-filter: blur(10px);
}
.journey-dialog-bar {
  position: relative;
  z-index: 2;
  margin: 0 5%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ceceb42a;
}
.journey-dialog-bar > p {
  font:
    11px Georgia,
    serif;
  letter-spacing: 0.16em;
}
.journey-dialog .dialog-close {
  position: static;
  font: 14px var(--serif);
  min-height: 44px;
}
.journey-atlas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  margin: 42px 7% 0;
  min-height: calc(100svh - 205px);
}
.journey-routes > .eyebrow {
  color: #b9c5bd;
  margin: 0 0 12px;
}
.journey-routes h2 {
  font: 500 clamp(28px, 3.3vw, 46px) / 1.5 var(--serif);
  margin: 0 0 23px;
}
.journey-routes h2 em {
  padding-left: 0.65em;
  color: #d5cca6;
  font-style: normal;
}
.journey-routes nav {
  border-top: 1px solid #d2d0b532;
}
.journey-routes nav button {
  display: grid;
  grid-template-columns: 30px 1fr auto 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 10px;
  border-bottom: 1px solid #d2d0b526;
  text-align: left;
  transition:
    background 0.4s,
    padding 0.5s var(--touch-ease),
    color 0.4s;
}
.journey-routes button small {
  font:
    11px Georgia,
    serif;
  color: #c4c7b8;
}
.journey-routes button b {
  font: 500 20px var(--serif);
}
.journey-routes button > span {
  font:
    9px Georgia,
    serif;
  letter-spacing: 0.12em;
  opacity: 0.5;
}
.journey-routes button i {
  font:
    20px Georgia,
    serif;
  transition: transform 0.5s var(--touch-ease);
}
.journey-routes button:is(:hover, :focus-visible, .is-previewed) {
  padding-left: 19px;
  background: #e3d7ad0a;
  color: #efdb9e;
}
.journey-routes button:is(:hover, :focus-visible) i {
  transform: translate(3px, -3px);
}
.journey-routes button.is-current small::after {
  content: "•";
  padding-left: 4px;
  color: #eddaab;
}
.journey-preview {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 390px;
  margin: 20px 0 30px;
  border: 1px solid #a9bfbd45;
}
.journey-preview > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.journey-preview > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #102533d9, transparent 70%);
}
.journey-preview::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #eef1d73b;
  pointer-events: none;
}
.journey-preview-number {
  position: absolute;
  top: 0;
  right: 28px;
  font:
    italic 110px Georgia,
    serif;
  color: #e9efdf80;
}
.journey-preview > p {
  position: absolute;
  bottom: 34px;
  left: 35px;
  right: 20px;
  font: 24px/1.8 var(--serif);
  margin: 0;
}
.journey-preview > p small {
  display: block;
  font:
    10px/2 Georgia,
    serif;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.journey-dialog-note {
  margin: 15px 7% 30px;
  font: 13px var(--serif);
  color: #a9bcb9;
}
@media (max-width: 1200px) {
  .desktop-nav a {
    min-width: 58px;
    padding-inline: 10px;
  }
  .header-controls {
    gap: 8px;
  }
  .journey-toggle {
    font-size: 12px;
  }
  .journey-routes nav button {
    grid-template-columns: 24px 1fr 20px;
  }
  .journey-routes button > span {
    display: none;
  }
}
@media (max-width: 900px) and (min-width: 761px) {
  .brand small {
    font-size: 7px;
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .desktop-nav a {
    min-width: 48px;
    padding-inline: 6px;
  }
  .motion-label {
    display: none;
  }
  .journey-toggle .magnetic-inner > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding-inline: 20px;
  }
  .header-controls {
    gap: 3px;
  }
  .journey-toggle .magnetic-inner > span:last-child {
    display: none;
  }
  .journey-toggle .magnetic-inner {
    justify-content: center;
  }
  .journey-toggle .magnetic-inner > span:first-child {
    font-size: 26px;
  }
  .brand {
    font-size: 12px;
    gap: 7px;
  }
  .brand-mark {
    font-size: 25px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 0.09em;
  }
  .motion-label {
    display: none;
  }
  .motion-icon {
    width: 30px;
    height: 30px;
  }
  .mage-cursor {
    display: none;
  }
  .story-turn-controls {
    right: 22px;
    bottom: 50px;
    gap: 13px;
  }
  .story-turn-controls p {
    display: none;
  }
  .story-turn-controls button {
    width: 40px;
    height: 40px;
  }
  .story-rail {
    max-width: calc(100% - 136px);
  }
  .journey-dialog-bar {
    height: 72px;
    margin-inline: 23px;
  }
  .journey-dialog-bar > p {
    font-size: 8px;
    letter-spacing: 0.06em;
    max-width: 190px;
    line-height: 1.8;
  }
  .journey-atlas {
    margin: 26px 25px 0;
    display: block;
    min-height: 0;
  }
  .journey-routes h2 {
    font-size: 27px;
    margin-bottom: 22px;
  }
  .journey-routes h2 em {
    display: block;
  }
  .journey-routes nav button {
    padding-block: 15px;
  }
  .journey-routes button b {
    font-size: 18px;
  }
  .journey-preview {
    height: 160px;
    min-height: 0;
    margin: 24px 0 16px;
  }
  .journey-preview-number {
    font-size: 73px;
    right: 18px;
  }
  .journey-preview > p {
    font-size: 19px;
    bottom: 23px;
    left: 25px;
  }
  .journey-preview > p small {
    font-size: 8px;
  }
  .journey-dialog-note {
    margin: 20px 25px 30px;
    font-size: 12px;
  }
}
@media (max-height: 600px) {
  .story-turn-controls {
    display: none;
  }
  .story-rail {
    max-width: 100%;
  }
}
@media (hover: none), (pointer: coarse) {
  .mage-cursor {
    display: none;
  }
}
.motion-paused .nav-indicator,
.motion-paused .nav-word,
.motion-paused .desktop-nav small,
.motion-paused .magnetic-inner,
.motion-paused .brand-mark,
.motion-paused .menu-toggle span,
.motion-paused .site-header {
  transition: none;
}
.motion-paused #interaction-dust,
.motion-paused .mage-cursor,
.intro-active #interaction-dust {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  #interaction-dust,
  .mage-cursor {
    display: none;
  }
  .nav-indicator,
  .magnetic-inner,
  .desktop-nav small,
  .nav-word {
    transition: none;
  }
}
.no-js .journey-toggle,
.no-js .story-turn-controls {
  display: none;
}
