.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, #c4a35a, #b12e56, #55366f);
  box-shadow: 0 0 12px rgba(177, 46, 86, 0.45);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, #fff8ee, #f4eee3 52%, #ead9c4);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  padding: 24px 16px;
  width: min(96vw, 1100px);
}

.loader-seal {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 5px #faf6ee, 0 0 0 1px rgba(196, 163, 90, 0.35);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--plum);
  background: linear-gradient(160deg, #fffdf8, #f0e4cc);
  animation: pulseSeal 1.4s ease-in-out infinite;
}

.loader-kicker {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 0.6s 0.1s both;
}

.loader-words {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 4.4vw, 3.15rem);
  line-height: 1.15;
  color: var(--plum);
  white-space: nowrap;
}

.loader-words .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) rotate(-4deg);
  animation: loadLetter 0.5s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.loader-words .ch.space {
  width: 0.32em;
}

.loader-words .ch.accent {
  color: var(--berry);
  font-style: italic;
}

.loader-type {
  margin: 0 auto 22px;
  min-height: 1.6em;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  color: var(--muted);
  white-space: nowrap;
}

.loader-type .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--berry);
  vertical-align: -2px;
  animation: blink 0.7s step-end infinite;
}

.loader-track {
  width: min(220px, 70vw);
  height: 2px;
  margin: 0 auto;
  background: rgba(196, 163, 90, 0.28);
  overflow: hidden;
}

.loader-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--berry));
  animation: loadBar 2.1s ease forwards;
}

body.is-loading {
  overflow: hidden;
}

@keyframes loadLetter {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes loadBar {
  to {
    width: 100%;
  }
}

.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid var(--berry);
  border-radius: 50%;
  pointer-events: none;
  z-index: 95;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: multiply;
}

.cursor.hot {
  width: 42px;
  height: 42px;
  background: rgba(177, 46, 86, 0.12);
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sun {
  position: absolute;
  right: 8%;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 214, 0.95) 0 28%, rgba(255, 220, 160, 0.18) 42%, transparent 68%);
  animation: glow 6s ease-in-out infinite;
}

.sun::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 190, 0.18) 0 8deg, transparent 8deg 22deg);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  animation: bob 7s ease-in-out infinite;
}

.orb.o1 {
  width: 140px;
  height: 140px;
  left: 6%;
  top: 18%;
  background: rgba(177, 46, 86, 0.12);
}

.orb.o2 {
  width: 180px;
  height: 180px;
  right: 22%;
  bottom: 18%;
  background: rgba(79, 125, 99, 0.16);
  animation-delay: -2s;
}

.orb.o3 {
  width: 90px;
  height: 90px;
  left: 42%;
  top: 8%;
  background: rgba(85, 54, 111, 0.12);
  animation-delay: -4s;
}

.hero h1 em {
  background: linear-gradient(90deg, #b12e56, #e85a7a, #8b4c9e, #b12e56);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
}

.hero-copy .kicker {
  animation: fadeUp 0.8s 0.1s both;
}

.hero-copy h1 {
  animation: fadeUp 0.9s 0.18s both;
}

.hero-copy .lede {
  animation: fadeUp 0.9s 0.28s both;
}

.hero-copy .hero-actions {
  animation: fadeUp 0.9s 0.38s both;
}

.hero-stage {
  perspective: 1000px;
}

.book-stand.primary {
  animation: floatY 5.4s ease-in-out infinite;
}

.book-stand.left {
  animation: floatY 6.6s ease-in-out infinite;
  animation-delay: -1.4s;
}

.book-stand.front {
  animation: floatY 4.8s ease-in-out infinite;
  animation-delay: -2.2s;
}

.book-stand:hover {
  animation-play-state: paused;
  z-index: 6;
}

.js-tilt {
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
}

.btn-primary:hover::after {
  animation: shine 0.7s ease;
}

.cover-frame {
  position: relative;
  overflow: hidden;
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 48%, transparent 62%);
  transform: translateX(-140%);
  pointer-events: none;
}

.shelf-item:hover .cover-frame::after,
.catalog-card:hover .cover-frame::after {
  animation: shine 0.85s ease;
}

.flagship-cover img {
  animation: floatY 6s ease-in-out infinite;
}

.seal {
  position: relative;
}

.seal::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  animation: spin 18s linear infinite;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(255, 252, 246, 0.7);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--plum);
}

.ticker-track span {
  white-space: nowrap;
}

.ticker-track b {
  color: var(--berry);
  font-weight: 500;
}

.audience article {
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.audience article:hover {
  background: rgba(255, 252, 246, 0.8);
  transform: translateY(-4px);
}

.endpaper {
  position: relative;
  overflow: hidden;
}

.endpaper::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.16);
  animation: bob 8s ease-in-out infinite;
}

.pullquote blockquote {
  animation: fadeUp 1s both;
}

.hero-meadow {
  position: relative;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheen {
  to {
    background-position: 220% 0;
  }
}

@keyframes shine {
  to {
    transform: translateX(130%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulseSeal {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (min-width: 761px) {
  body {
    cursor: none;
  }

  input,
  textarea,
  select {
    cursor: text;
  }
}

@media (max-width: 760px) {
  .cursor {
    display: none;
  }

  .ticker-track {
    animation-duration: 20s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader,
  .progress,
  .cursor,
  .sun::before {
    display: none !important;
  }

  .book-stand.primary,
  .book-stand.left,
  .book-stand.front,
  .flagship-cover img,
  .ticker-track,
  .hero h1 em,
  .seal::after {
    animation: none !important;
  }
}
