:root {
  color-scheme: dark;
  --ink: #19150f;
  --paper: #eee5d3;
  --paper-dim: rgba(238, 229, 211, 0.68);
  --brass: #c7a46a;
  --brass-bright: #e6cf9b;
  --line: rgba(236, 222, 193, 0.28);
  --frame: #231a12;
  --frame-highlight: #513a26;
  --progress: 53.48%;
  --hotspot-opacity: 1;
  --atmosphere-opacity: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #100e0b;
}

body {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
}

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #171410;
  user-select: none;
}

.room {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(0, 0, 0, 0.33) 76%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #2a241b, #110f0c 74%);
}

.window {
  position: absolute;
  inset: clamp(15px, 2.2vw, 34px);
  overflow: hidden;
  outline: none;
  cursor: grab;
  background: #24211c;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  touch-action: none;
}

.window:active,
.window.is-dragging {
  cursor: grabbing;
}

.window:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: -5px;
}

.scene-stack,
.scene,
.light-wash,
.atmosphere {
  position: absolute;
  inset: 0;
}

.scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transform: scale(1.035);
  filter: saturate(0.98) contrast(1.03);
  will-change: opacity, transform;
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
}

.light-wash {
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.14), transparent 38%, rgba(11, 8, 4, 0.24)),
    radial-gradient(circle at 50% 43%, transparent 38%, rgba(9, 6, 3, 0.36) 112%);
  mix-blend-mode: multiply;
}

.atmosphere {
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--atmosphere-opacity);
}

.particle {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.24);
  border-radius: 999px;
  opacity: var(--alpha);
  transform: rotate(var(--angle));
  animation: fall var(--speed) linear infinite;
  animation-delay: var(--delay);
  background: rgba(221, 229, 229, 0.82);
}

.atmosphere[data-weather="snow"] .particle {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  filter: blur(0.4px);
  animation-name: snow;
}

.atmosphere[data-weather="motes"] .particle {
  background: rgba(255, 219, 151, 0.76);
  box-shadow: 0 0 8px rgba(255, 204, 112, 0.34);
  animation-name: motes;
}

.atmosphere[data-weather="light-rain"] .particle {
  width: 1px;
  height: var(--size);
  background: rgba(224, 237, 240, 0.76);
  filter: blur(0.25px);
  animation-name: light-rain;
}

.atmosphere[data-weather="light-rain"] {
  background: linear-gradient(180deg, rgba(189, 208, 214, 0.08), transparent 46%, rgba(144, 163, 168, 0.06));
}

.atmosphere[data-weather="sunrise"] {
  background:
    linear-gradient(118deg, rgba(255, 173, 76, 0.06), transparent 44%, rgba(255, 216, 138, 0.16)),
    radial-gradient(ellipse 64% 46% at 84% 18%, rgba(255, 210, 125, 0.2), transparent 69%);
  mix-blend-mode: screen;
}

.atmosphere[data-weather="sunrise"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 48% 34% at 84% 18%,
    rgba(255, 248, 213, 0.5) 0,
    rgba(255, 216, 146, 0.29) 24%,
    rgba(255, 178, 78, 0.1) 51%,
    transparent 78%
  );
  transform-origin: 84% 18%;
  filter: blur(5px);
  animation: sunrise-horizon 7.5s ease-in-out infinite alternate;
}

.atmosphere[data-weather="sunrise"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 191deg at 84% 18%,
    transparent 0deg 3deg,
    rgba(255, 230, 174, 0.24) 5deg 12deg,
    transparent 15deg 20deg,
    rgba(255, 203, 115, 0.18) 23deg 31deg,
    transparent 34deg 39deg,
    rgba(255, 235, 190, 0.21) 42deg 51deg,
    transparent 55deg 360deg
  );
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 6%, #000 25%, rgba(0, 0, 0, 0.9) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 6%, #000 25%, rgba(0, 0, 0, 0.9) 78%, transparent 100%);
  transform-origin: 84% 18%;
  filter: blur(7px);
  animation: sunrise-radiance 6.5s ease-in-out infinite alternate;
}

.atmosphere[data-weather="sunrise"] .particle {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 224, 161, 0.74);
  box-shadow: 0 0 10px rgba(255, 194, 93, 0.46);
  animation-name: sun-motes;
}

.atmosphere[data-weather="smoke"] {
  background:
    linear-gradient(180deg, rgba(87, 82, 74, 0.12), rgba(42, 37, 31, 0.25)),
    radial-gradient(ellipse at 26% 32%, rgba(137, 130, 117, 0.18), transparent 41%);
  animation: smoke-haze 5.5s ease-in-out infinite alternate;
}

.atmosphere[data-weather="smoke"]::before,
.atmosphere[data-weather="smoke"]::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 54vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(144, 136, 121, 0.48), rgba(105, 98, 87, 0.25) 45%, transparent 74%);
  filter: blur(28px);
  mix-blend-mode: soft-light;
}

.atmosphere[data-weather="smoke"]::before {
  top: 6%;
  left: -18%;
  animation: smoke-bank-left 9s ease-in-out infinite alternate;
}

.atmosphere[data-weather="smoke"]::after {
  right: -22%;
  bottom: 4%;
  opacity: 0.88;
  animation: smoke-bank-right 11s ease-in-out infinite alternate;
}

.atmosphere[data-weather="thaw"] {
  background: linear-gradient(180deg, rgba(207, 221, 223, 0.05), transparent 46%, rgba(192, 209, 210, 0.11));
}

.atmosphere[data-weather="thaw"]::before {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -6%;
  width: 84%;
  height: 47%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217, 229, 226, 0.2), rgba(177, 194, 194, 0.07) 48%, transparent 72%);
  filter: blur(20px);
  animation: thaw-mist 7s ease-in-out infinite alternate;
}

.atmosphere[data-weather="thaw"]::after {
  content: "";
  position: absolute;
  inset: 48% -30% -12%;
  background: linear-gradient(106deg, transparent 37%, rgba(235, 242, 234, 0.2) 49%, transparent 61%);
  mix-blend-mode: screen;
  animation: thaw-glint 6s ease-in-out infinite;
}

.atmosphere[data-weather="thaw"] .particle {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(237, 244, 241, 0.78);
  box-shadow: 0 0 7px rgba(226, 238, 238, 0.28);
  filter: blur(0.35px);
  animation-name: thaw-fall;
}

.atmosphere[data-weather="summer"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 62%, rgba(255, 218, 142, 0.19) 0 3%, transparent 12%),
    radial-gradient(circle at 73% 27%, rgba(255, 242, 199, 0.2) 0 2%, transparent 11%),
    radial-gradient(circle at 88% 72%, rgba(255, 202, 109, 0.15) 0 3%, transparent 13%);
  filter: blur(6px);
  animation: summer-glow 6.5s ease-in-out infinite alternate;
}

.atmosphere[data-weather="summer"]::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: linear-gradient(108deg, transparent 34%, rgba(255, 232, 176, 0.18) 48%, rgba(255, 203, 112, 0.1) 54%, transparent 67%);
  mix-blend-mode: screen;
  animation: summer-light-sweep 8s ease-in-out infinite alternate;
}

.atmosphere[data-weather="summer"] .particle {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 223, 159, 0.78);
  box-shadow: 0 0 11px rgba(255, 196, 93, 0.42);
  animation-name: summer-motes;
}

.atmosphere[data-weather="future"]::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(118, 211, 221, 0.025) 43%,
    rgba(171, 232, 215, 0.11) 49%,
    rgba(239, 208, 139, 0.07) 52%,
    transparent 61%
  );
  mix-blend-mode: screen;
  animation: future-sweep 11s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.atmosphere[data-weather="future"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 67% 66%, rgba(119, 224, 215, 0.12), transparent 23%),
    radial-gradient(circle at 32% 42%, rgba(245, 209, 137, 0.08), transparent 21%);
  mix-blend-mode: screen;
  animation: future-pulse 7s ease-in-out infinite alternate;
}

.atmosphere[data-weather="future"] .particle {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(171, 236, 224, 0.72);
  box-shadow:
    0 0 7px rgba(112, 224, 216, 0.5),
    0 0 15px rgba(229, 202, 139, 0.2);
  animation-name: future-points;
}

.atmosphere[data-weather="fog"] {
  background:
    linear-gradient(101deg, transparent, rgba(196, 187, 168, 0.16), transparent),
    linear-gradient(77deg, transparent 10%, rgba(211, 207, 195, 0.1) 54%, transparent 82%);
  animation: breathe 9s ease-in-out infinite alternate;
}

.atmosphere[data-weather="fog"] .particle {
  display: none;
}

@keyframes fall {
  to {
    transform: translate3d(-16vw, 122vh, 0) rotate(var(--angle));
  }
}

@keyframes snow {
  50% {
    transform: translate3d(2.5vw, 58vh, 0);
  }
  to {
    transform: translate3d(-1vw, 118vh, 0);
  }
}

@keyframes light-rain {
  to {
    transform: translate3d(-9vw, 120vh, 0) rotate(var(--angle));
  }
}

@keyframes motes {
  from {
    transform: translate3d(0, 102vh, 0) scale(0.3);
  }
  to {
    transform: translate3d(2vw, -20vh, 0) scale(1.15);
  }
}

@keyframes thaw-fall {
  40% {
    transform: translate3d(1.8vw, 48vh, 0) scale(0.9);
  }
  to {
    transform: translate3d(-1vw, 118vh, 0) scale(0.55);
  }
}

@keyframes thaw-mist {
  from {
    opacity: 0.38;
    transform: translate3d(10%, 5%, 0) scale(0.94);
  }
  to {
    opacity: 0.88;
    transform: translate3d(-17%, -5%, 0) scale(1.1);
  }
}

@keyframes thaw-glint {
  from {
    opacity: 0;
    transform: translateX(-28%);
  }
  45% {
    opacity: 0.75;
  }
  to {
    opacity: 0;
    transform: translateX(28%);
  }
}

@keyframes summer-motes {
  from {
    transform: translate3d(-1vw, 104vh, 0) scale(0.25);
  }
  55% {
    transform: translate3d(2vw, 42vh, 0) scale(0.9);
  }
  to {
    transform: translate3d(0, -18vh, 0) scale(1.3);
  }
}

@keyframes summer-glow {
  from {
    opacity: 0.45;
    transform: translateX(-1.5%) scale(0.98);
  }
  to {
    opacity: 0.95;
    transform: translateX(1.5%) scale(1.03);
  }
}

@keyframes summer-light-sweep {
  from {
    opacity: 0.28;
    transform: translateX(-18%) rotate(-1deg);
  }
  to {
    opacity: 0.9;
    transform: translateX(18%) rotate(1deg);
  }
}

@keyframes smoke-haze {
  from {
    opacity: 0.68;
  }
  to {
    opacity: 0.92;
  }
}

@keyframes smoke-bank-left {
  from {
    transform: translate3d(-8%, 6%, 0) scale(0.92);
  }
  to {
    transform: translate3d(32%, -10%, 0) scale(1.16);
  }
}

@keyframes smoke-bank-right {
  from {
    transform: translate3d(12%, 12%, 0) scale(1.04);
  }
  to {
    transform: translate3d(-28%, -8%, 0) scale(1.22);
  }
}

@keyframes future-sweep {
  from {
    transform: translateX(-42%) skewX(-4deg);
  }
  55%,
  to {
    transform: translateX(44%) skewX(2deg);
  }
}

@keyframes future-pulse {
  from {
    opacity: 0.36;
    transform: scale(0.98);
  }
  to {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes future-points {
  from {
    opacity: 0;
    transform: translate3d(0, 102vh, 0) scale(0.4);
  }
  28%,
  74% {
    opacity: var(--alpha);
  }
  to {
    opacity: 0;
    transform: translate3d(1.5vw, -18vh, 0) scale(1.1);
  }
}

@keyframes sun-motes {
  from {
    opacity: 0;
    transform: translate3d(-2vw, 102vh, 0) scale(0.35);
  }
  22% {
    opacity: var(--alpha);
  }
  75% {
    opacity: var(--alpha);
  }
  to {
    opacity: 0;
    transform: translate3d(3vw, -20vh, 0) scale(1.25);
  }
}

@keyframes sunrise-horizon {
  from {
    opacity: 0.32;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 0.86;
    transform: translateY(-5px) scale(1.07);
  }
}

@keyframes sunrise-radiance {
  from {
    opacity: 0.26;
    transform: rotate(-1.2deg) scale(0.98);
  }
  to {
    opacity: 0.78;
    transform: rotate(1.2deg) scale(1.06);
  }
}

@keyframes breathe {
  from {
    opacity: 0.44;
    transform: translateX(-3%);
  }
  to {
    opacity: 0.78;
    transform: translateX(3%);
  }
}

.window-frame {
  position: absolute;
  z-index: 15;
  inset: clamp(15px, 2.2vw, 34px);
  pointer-events: none;
}

.frame {
  position: absolute;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 22%, rgba(0, 0, 0, 0.22)),
    var(--frame);
  box-shadow:
    inset 0 0 0 1px var(--frame-highlight),
    0 4px 14px rgba(0, 0, 0, 0.48);
}

.frame--top,
.frame--bottom {
  left: -7px;
  right: -7px;
  height: clamp(9px, 1.05vw, 17px);
}

.frame--top {
  top: -4px;
}

.frame--bottom {
  bottom: -4px;
  height: clamp(14px, 1.4vw, 23px);
}

.frame--left,
.frame--right {
  top: -5px;
  bottom: -5px;
  width: clamp(9px, 1.05vw, 17px);
}

.frame--left {
  left: -4px;
}

.frame--right {
  right: -4px;
}


.masthead {
  position: absolute;
  z-index: 30;
  top: clamp(32px, 4.3vw, 66px);
  left: clamp(34px, 5vw, 78px);
  right: clamp(34px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.masthead__actions {
  pointer-events: auto;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #f3ead8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.brand__mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--brass-bright);
  box-shadow: inset 0 0 0 3px rgba(20, 15, 10, 0.5);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  background: var(--brass-bright);
}

.brand__mark::before {
  width: 1px;
  height: 100%;
  left: 50%;
}

.brand__mark::after {
  width: 100%;
  height: 1px;
  top: 50%;
}

.strapline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(255, 250, 238, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.strapline i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brass);
}

.index-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px 16px;
  color: #f4ead8;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.autoplay-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: rgba(244, 234, 216, 0.72);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  transition: color 180ms ease;
}

.autoplay-button:hover,
.autoplay-button:focus-visible,
.autoplay-button.is-on {
  color: #f4ead8;
}

.autoplay-button__icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(231, 207, 162, 0.72);
  border-radius: 50%;
}

.autoplay-button__icon::before,
.autoplay-button__icon::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 2px;
  height: 6px;
  background: var(--brass-bright);
}

.autoplay-button__icon::before {
  left: 6px;
}

.autoplay-button__icon::after {
  right: 6px;
}

.autoplay-button:not(.is-on) .autoplay-button__icon::before {
  top: 5px;
  left: 7px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--brass-bright);
  background: transparent;
}

.autoplay-button:not(.is-on) .autoplay-button__icon::after {
  display: none;
}

.autoplay-button b {
  color: var(--brass-bright);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.index-button b,
.index-button b::before {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.index-button b {
  position: relative;
}

.index-button b::before {
  content: "";
  position: absolute;
  top: 5px;
}

.year-card {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: clamp(40px, 7vw, 110px);
  width: min(430px, 34vw);
  transform: translateY(-54%);
  pointer-events: none;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--brass-bright);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.year-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.year {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(72px, 10vw, 158px);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.075em;
}

.year-suffix {
  margin-top: 6px;
  color: var(--brass-bright);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.year-card h1 {
  max-width: 390px;
  margin: 22px 0 12px;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(21px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.chapter-copy {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 250, 238, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.55;
}

.detail-card {
  position: absolute;
  z-index: 20;
  top: 50%;
  right: clamp(40px, 6vw, 94px);
  width: min(270px, 23vw);
  transform: translateY(-46%);
  padding: 15px 0 0;
  border-top: 1px solid rgba(236, 222, 193, 0.5);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.detail-card__topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 13px;
  color: #f7eedf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.detail-card dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-card dl div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-card dt {
  color: var(--brass-bright);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-card dd {
  margin: 0;
  color: rgba(255, 250, 238, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.35;
}

.hotspot {
  position: absolute;
  top: var(--hotspot-y, 45%);
  left: var(--hotspot-x, 60%);
  z-index: 11;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: var(--hotspot-opacity);
  transition: opacity 160ms ease;
}

.experience.hotspots-hidden .hotspot {
  pointer-events: none;
}

.hotspot span {
  width: 12px;
  height: 12px;
  border: 2px solid #fff3d3;
  border-radius: 50%;
  background: #b98748;
  box-shadow:
    0 0 0 4px rgba(15, 10, 6, 0.72),
    0 0 0 7px rgba(239, 209, 151, 0.48),
    0 0 20px rgba(245, 210, 142, 0.72);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(15, 10, 6, 0.72),
      0 0 0 7px rgba(239, 209, 151, 0.48),
      0 0 20px rgba(245, 210, 142, 0.72);
  }
  55% {
    box-shadow:
      0 0 0 4px rgba(15, 10, 6, 0.72),
      0 0 0 15px rgba(239, 209, 151, 0),
      0 0 28px rgba(245, 210, 142, 0.92);
  }
}

.hotspot em {
  position: absolute;
  left: 36px;
  top: -4px;
  width: 220px;
  padding: 13px 15px;
  transform: translateY(5px);
  opacity: 0;
  color: #f6ecd9;
  background: rgba(20, 15, 10, 0.94);
  border: 1px solid rgba(235, 207, 153, 0.58);
  border-radius: 2px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: normal;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  transition: 180ms ease;
  backdrop-filter: blur(8px);
}

.hotspot:hover em,
.hotspot:focus-visible em,
.hotspot.is-open em {
  opacity: 1;
  transform: translateY(0);
}

.hotspot[data-side="left"] em {
  right: 36px;
  left: auto;
}

.timeline {
  position: absolute;
  z-index: 30;
  right: clamp(42px, 6vw, 94px);
  bottom: clamp(53px, 7.4vh, 82px);
  left: clamp(42px, 6vw, 94px);
  height: 54px;
  pointer-events: auto;
}

.timeline__rule {
  position: relative;
  top: 11px;
  height: 1px;
  background: rgba(244, 232, 210, 0.35);
}

.timeline__progress {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--progress);
  height: 1px;
  background: var(--brass-bright);
  box-shadow: 0 0 8px rgba(222, 195, 139, 0.38);
}

.timeline__thumb {
  position: absolute;
  z-index: 4;
  top: 0;
  left: var(--progress);
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.timeline__thumb span {
  position: absolute;
  inset: 13px;
  border: 1px solid #fff1cf;
  border-radius: 50%;
  background: #aa8452;
  box-shadow:
    0 0 0 5px rgba(19, 15, 10, 0.55),
    0 0 0 6px rgba(233, 211, 167, 0.68);
}

.timeline__ticks {
  position: absolute;
  inset: 0;
}

.tick {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: rgba(244, 232, 210, 0.48);
  cursor: pointer;
}

.tick::after {
  content: "";
  position: absolute;
  inset: -12px -10px;
}

.tick.is-current {
  background: var(--brass-bright);
}

.timeline__ends {
  position: absolute;
  top: 29px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: rgba(246, 236, 217, 0.66);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 8px #000;
}

.timeline__ends span:nth-child(2) {
  color: var(--brass-bright);
}

.drag-hint {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: clamp(119px, 14.2vh, 154px);
  display: flex;
  gap: 9px;
  align-items: center;
  transform: translateX(-50%);
  color: rgba(255, 249, 237, 0.68);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 8px #000;
  transition: opacity 500ms ease;
  pointer-events: none;
}

.drag-hint i {
  position: relative;
  width: 34px;
  height: 1px;
  background: currentColor;
}

.drag-hint i::before,
.drag-hint i::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.drag-hint i::before {
  left: 0;
  transform: rotate(-45deg);
}

.drag-hint i::after {
  right: 0;
  transform: rotate(135deg);
}

.controls {
  position: absolute;
  z-index: 30;
  bottom: clamp(7px, 1vw, 16px);
  left: 50%;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(244, 235, 218, 0.48);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  pointer-events: none;
}

.controls span {
  color: rgba(244, 235, 218, 0.76);
}

.controls i {
  width: 1px;
  height: 8px;
  margin: 0 5px;
  background: rgba(244, 235, 218, 0.3);
}

.index-panel {
  position: absolute;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(490px, 100%);
  height: 100%;
  padding: clamp(34px, 5vw, 70px);
  transform: translateX(102%);
  color: #33291e;
  background:
    linear-gradient(rgba(251, 243, 226, 0.96), rgba(232, 218, 191, 0.97)),
    #eee1c8;
  box-shadow: -22px 0 65px rgba(0, 0, 0, 0.35);
  transition: transform 480ms cubic-bezier(0.76, 0, 0.24, 1);
  overflow: auto;
}

.index-panel.is-open {
  transform: translateX(0);
}

.index-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(57, 43, 28, 0.3);
}

.index-panel__header p {
  margin: 0 0 5px;
  color: #8c6a3e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.index-panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.close-button {
  width: 42px;
  height: 42px;
  color: #4d3d2b;
  background: transparent;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.index-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-panel li {
  border-bottom: 1px solid rgba(57, 43, 28, 0.2);
}

.era-jump {
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  align-items: center;
  width: 100%;
  padding: 17px 0;
  color: #443527;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.era-jump b {
  color: #936e3d;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.era-jump span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.era-jump i {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
  opacity: 0;
  transform: translateX(-5px);
  transition: 180ms ease;
}

.era-jump:hover i,
.era-jump:focus-visible i {
  opacity: 1;
  transform: translateX(0);
}

.index-note {
  margin: 27px 0 0;
  color: rgba(58, 43, 28, 0.64);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1.55;
}

.intro {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  overflow: hidden;
  isolation: isolate;
  color: #eadfc9;
  background: #060a0f;
  transition:
    opacity 900ms ease,
    visibility 900ms;
}

.intro::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -12%;
  pointer-events: none;
  background:
    conic-gradient(
      from 210deg at 50% 49%,
      transparent 0deg,
      rgba(207, 168, 99, 0.06) 48deg,
      transparent 104deg,
      rgba(102, 149, 169, 0.08) 202deg,
      transparent 272deg
    );
  mix-blend-mode: screen;
  animation: intro-time-bloom 12s linear infinite;
}

.intro::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 5, 8, 0.4), transparent 30%, transparent 65%, rgba(2, 4, 7, 0.62)),
    radial-gradient(ellipse at 50% 48%, transparent 0%, rgba(4, 7, 10, 0.16) 48%, rgba(2, 4, 7, 0.78) 100%);
  animation: intro-veil-arrive 2.2s ease-out both;
}

.intro__time-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  animation: intro-canvas-in 1800ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition:
    opacity 700ms ease,
    transform 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro.is-gone {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro.is-gone .intro__time-canvas {
  opacity: 0;
  transform: scale(1.08);
  animation: none;
}

.intro__kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  color: var(--brass-bright);
  font-size: clamp(11px, 0.86vw, 14px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
  animation: intro-kicker-in 900ms 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-align: center;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.72);
}

.intro__title span {
  display: block;
  animation: intro-title-in 1150ms 430ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro__title span + span {
  animation-delay: 610ms;
}

.intro__description {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 25px 0 0;
  color: rgba(239, 231, 216, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  animation: intro-description-in 900ms 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 216px;
  margin-top: 31px;
  padding: 15px 0;
  color: #eadfc9;
  background: transparent;
  border-top: 1px solid rgba(231, 208, 165, 0.54);
  border-bottom: 1px solid rgba(231, 208, 165, 0.54);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  animation: intro-button-in 900ms 1120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro button i {
  color: var(--brass-bright);
  font-size: 16px;
  font-style: normal;
  transition: transform 180ms ease;
}

.intro button:hover i {
  transform: translateX(5px);
}

.intro__corner {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-color: rgba(220, 195, 148, 0.34);
  border-style: solid;
  animation: intro-corner-in 1300ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro__corner--tl {
  top: 30px;
  left: 30px;
  border-width: 1px 0 0 1px;
}

.intro__corner--tr {
  top: 30px;
  right: 30px;
  border-width: 1px 1px 0 0;
}

.intro__corner--br {
  right: 30px;
  bottom: 30px;
  border-width: 0 1px 1px 0;
}

.intro__corner--bl {
  bottom: 30px;
  left: 30px;
  border-width: 0 0 1px 1px;
}

.intro.is-gone .intro__kicker,
.intro.is-gone .intro__title span,
.intro.is-gone .intro__description,
.intro.is-gone button,
.intro.is-gone .intro__corner {
  opacity: 0;
  animation: none;
  transition:
    opacity 400ms ease,
    transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro.is-gone .intro__kicker,
.intro.is-gone .intro__title span,
.intro.is-gone .intro__description {
  transform: translateY(-18px);
}

.intro.is-gone button {
  transform: translateY(12px);
}

@keyframes intro-canvas-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes intro-time-bloom {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.78;
  }
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes intro-veil-arrive {
  from {
    opacity: 0.86;
  }
  to {
    opacity: 1;
  }
}

@keyframes intro-kicker-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.42em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.22em;
  }
}

@keyframes intro-title-in {
  from {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes intro-description-in {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes intro-button-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-corner-in {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .window,
  .window-frame {
    inset: 9px;
  }

  .frame--top,
  .frame--bottom,
  .frame--left,
  .frame--right {
    width: 8px;
    height: 8px;
  }

  .masthead {
    top: 28px;
    right: 28px;
    left: 28px;
  }

  .strapline,
  .detail-card,
  .controls {
    display: none;
  }

  .brand {
    font-size: 10px;
  }

  .index-button span {
    display: none;
  }

  .masthead__actions {
    gap: 13px;
  }

  .autoplay-button__label {
    display: none;
  }

  .autoplay-button {
    gap: 5px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .year-card {
    top: auto;
    right: 28px;
    bottom: 147px;
    left: 28px;
    width: auto;
    transform: none;
  }

  .year {
    font-size: clamp(68px, 22vw, 114px);
  }

  .year-card h1 {
    max-width: 315px;
    margin-top: 15px;
    font-size: 25px;
  }

  .chapter-copy {
    display: none;
  }

  .timeline {
    right: 30px;
    bottom: 60px;
    left: 30px;
  }

  .drag-hint {
    bottom: 116px;
  }

  .hotspot em,
  .hotspot[data-side="left"] em {
    position: fixed;
    top: auto;
    right: 22px;
    bottom: 172px;
    left: 22px;
    display: block;
    width: auto;
    font-size: 14px;
    transform: translateY(8px);
  }

}

@media (max-height: 680px) and (min-width: 821px) {
  .year-card {
    transform: translateY(-48%);
  }

  .chapter-copy,
  .detail-card dl {
    display: none;
  }

  .detail-card {
    width: 200px;
  }

  .timeline {
    bottom: 50px;
  }

  .drag-hint {
    bottom: 107px;
  }
}

@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;
  }
}
