/* ===== PUBLIC INTRO ===== */
body.intro-page {
  --intro-subtitle-size: clamp(16px, 1.75vw, 25px);
  --intro-page-fade-duration: 1s;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: #030407;
  color: #f2f2f2;
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.55;
}

.intro-page button,
.intro-page input {
  font: inherit;
}

.intro-shell {
  width: min(720px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(12px, 2vh, 24px) 0 clamp(48px, 8vh, 84px);
}

.intro-hero {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

.intro-nav {
  display: none;
}

.intro-nav a,
.intro-nav button {
  display: none;
}

.intro-nav a:hover,
.intro-nav button:hover {
  transform: none;
}

.intro-title-box {
  position: relative;
  width: min(560px, calc(100vw - 34px));
  min-height: clamp(150px, 20vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.intro-logo {
  --intro-logo-spacing: 0.25em;
  --intro-logo-y: -10px;
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: var(--intro-logo-spacing);
  line-height: 0.98;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateY(var(--intro-logo-y));
  opacity: 0;
  filter: blur(1.5px);
  animation: intro-logo-spread-in 2.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.intro-filigree {
  --intro-filigree-opacity: 0.1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(500px, 56vw);
  opacity: 0;
  transform: translate(-50%, -48%);
  pointer-events: none;
  user-select: none;
  animation: intro-filigree-bloom 1.45s ease-out 1.5s forwards;
}

.intro-divider {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 59%;
  width: min(300px, 34vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: translateX(-50%);
  opacity: 0;
  animation: intro-soft-reveal 0.9s ease-out 1.05s forwards;
}

.intro-divider span {
  position: relative;
  flex: 1;
  height: 8px;
  background: none;
}

.intro-divider span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.78));
  transform: translateY(-50%);
  clip-path: polygon(0 45%, 100% 15%, 100% 85%, 0 55%);
}

.intro-divider span:last-child::before {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.08));
  clip-path: polygon(0 15%, 100% 45%, 100% 55%, 0 85%);
}

.intro-divider i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(39, 35, 28, 0.72);
  background: #111;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.intro-tagline {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 65%;
  margin: 0;
  font-size: var(--intro-subtitle-size);
  letter-spacing: 0.02em;
  line-height: 1;
  transform: translateX(-48%);
  white-space: nowrap;
  opacity: 0;
  animation: intro-soft-reveal 0.9s ease-out 1.18s forwards;
}

.intro-actions {
  display: block;
  margin-top: 0;
}

.intro-ornament {
  width: clamp(34px, 4vw, 50px);
  height: auto;
  display: block;
  margin: clamp(76px, 10vh, 116px) auto clamp(96px, 14vh, 156px);
  opacity: 0;
  animation: intro-fade-rise 1s ease-out 2.15s forwards;
}

.intro-primary,
.intro-secondary,
.auth-panel button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 132px;
  padding: 6px 28px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0;
  font-size: clamp(18px, 1.4vw, 24px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.intro-primary {
  opacity: 0;
  animation: intro-fade-rise 1s ease-out 2.55s forwards;
}

.intro-primary,
.auth-panel button[type="submit"] {
  color: #f4eee6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 5px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.22);
}

.intro-secondary {
  display: none;
}

.intro-primary:hover,
.intro-secondary:hover,
.auth-panel button[type="submit"]:hover {
  transform: translateY(-1px);
}

.auth-overlay {
  --auth-text-size: 16.2px;
  --auth-panel-text: #f4eee6;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 46px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.auth-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

body.intro-auth-open {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(288px, calc(100vw - 32px));
  box-sizing: border-box;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 36%, rgb(93,93,93) 0%, rgb(72,72,72) 78%, rgb(55,55,55) 100%);
  color: var(--auth-panel-text);
  box-shadow: 0 11px 32px rgba(0, 0, 0, 0.38);
  padding: 22px 26px 22px;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.auth-overlay.is-open .auth-panel,
.auth-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.auth-panel > :not(.auth-close) {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.auth-panel.auth-mode-switching > :not(.auth-close) {
  opacity: 0;
  transform: translateY(4px);
}

.auth-title {
  margin: 4px 24px 18px;
  color: var(--auth-panel-text);
  font-size: var(--auth-text-size);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.auth-filigree {
  display: block;
  width: min(128px, 58%);
  height: auto;
  margin-inline: auto;
  opacity: 0.34;
  filter: invert(1) sepia(0.18) saturate(0.55) brightness(1.55);
  pointer-events: none;
  user-select: none;
}

.auth-filigree-top {
  margin-top: 0;
  margin-bottom: 6px;
}

.auth-filigree-bottom {
  width: min(116px, 52%);
  margin-top: 16px;
  margin-bottom: 0;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #8a8a8a;
  color: #000;
  cursor: pointer;
  opacity: 0.92;
}

.auth-close::before,
.auth-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  transform-origin: center;
}

.auth-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.auth-close:hover {
  background: #8a8a8a;
  opacity: 1;
}

.auth-close:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.auth-form {
  display: block;
}

.auth-panel [hidden] {
  display: none !important;
}

.auth-google {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 5px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.22);
  color: var(--auth-panel-text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-google:hover {
  background: radial-gradient(circle at 50% 36%, rgba(98,98,98,0.98) 0%, rgba(76,76,76,0.98) 78%, rgba(58,58,58,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 5px 0 rgba(0,0,0,0.08),
    0 14px 24px rgba(0,0,0,0.24);
  transform: translateY(-1px);
}

.auth-google-mark {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.auth-or {
  margin: 13px 0 12px;
  color: var(--auth-panel-text);
  text-align: center;
  font-size: var(--auth-text-size);
  line-height: 1;
}

.auth-fields {
  overflow: hidden;
  border: 1px solid rgba(243, 234, 218, 0.72);
  border-radius: 6px;
  background: #f2f2f2;
}

.auth-fields input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  display: block;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  color: #2e2b23;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: var(--auth-text-size);
  line-height: 1.2;
}

.auth-password-row {
  position: relative;
  border-top: 1px solid rgba(46, 43, 35, 0.35);
}

.auth-password-row input {
  padding-right: 38px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(46, 43, 35, 0.58);
  cursor: pointer;
  touch-action: none;
  transform: translateY(-50%);
  user-select: none;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: rgba(46, 43, 35, 0.8);
}

.auth-password-toggle:focus-visible {
  outline: 1px solid rgba(46, 43, 35, 0.4);
  outline-offset: 2px;
}

.auth-password-eye {
  position: relative;
  width: 17px;
  height: 10px;
  display: block;
  border: 1.4px solid currentColor;
  border-radius: 50% / 62%;
}

.auth-password-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.auth-fields input + input {
  border-top: 1px solid rgba(46, 43, 35, 0.35);
}

.auth-fields input::placeholder {
  color: rgba(46, 43, 35, 0.48);
}

.auth-fields input:focus {
  outline: 0;
  box-shadow: none;
}

.auth-fields input:-webkit-autofill,
.auth-fields input:-webkit-autofill:hover,
.auth-fields input:-webkit-autofill:focus {
  -webkit-text-fill-color: #2e2b23;
  box-shadow: 0 0 0 1000px #f2f2f2 inset;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-panel .auth-text-action,
.auth-panel .auth-inline-action {
  border: 0;
  background: transparent;
  color: var(--auth-panel-text);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: center;
}

.auth-panel .auth-forgot {
  display: block;
  margin: 15px auto 8px;
  font-size: var(--auth-text-size);
  line-height: 1.15;
}

.auth-member-line {
  margin: 0 0 26px;
  color: var(--auth-panel-text);
  font-size: var(--auth-text-size);
  line-height: 1.18;
  text-align: center;
}

.auth-panel .auth-inline-action {
  display: inline;
  text-decoration: none;
}

.auth-panel .auth-inline-action:hover,
.auth-panel .auth-text-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-terms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 19px 0 36px;
  color: var(--auth-panel-text);
  font-size: var(--auth-text-size);
  line-height: 1.18;
}

.auth-terms input {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(243, 234, 218, 0.62);
  border-radius: 999px;
  background: rgba(243, 234, 218, 0.12);
  cursor: pointer;
}

.auth-terms input:checked {
  border-color: rgba(243, 234, 218, 0.9);
  background: #f3eada;
  box-shadow: 0 0 0 3px rgba(243, 234, 218, 0.16);
}

.auth-return-line {
  margin: -24px 0 26px;
}

.auth-submit-wrap {
  display: flex;
  justify-content: center;
}

.auth-panel button[type="submit"] {
  min-width: 112px;
  min-height: 35px;
  padding: 5px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 5px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.22);
  color: #f4eee6;
  font-size: var(--auth-text-size);
  line-height: 1;
}

.auth-panel button[disabled],
.auth-google[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-invite {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: min(230px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 34px 24px 24px;
  border: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 36%, rgb(93,93,93) 0%, rgb(72,72,72) 78%, rgb(55,55,55) 100%);
  color: #f4eee6;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-invite[hidden] {
  display: none;
}

.auth-invite.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.auth-invite-title {
  margin: 0 0 24px;
  font-size: var(--auth-text-size);
  line-height: 1.2;
}

.auth-invite-close {
  top: 10px;
  right: 10px;
}

.auth-invite-ok {
  min-width: 78px;
  min-height: 32px;
  padding: 5px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 5px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.18);
  color: #f4eee6;
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: var(--auth-text-size);
  line-height: 1;
}

.auth-invite-ok:hover {
  transform: translateY(-1px);
}

.auth-status {
  min-height: 18px;
  margin: -16px 0 12px;
  color: var(--auth-panel-text);
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
}

.intro-manifesto {
  width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  animation: intro-fade-rise 1s ease-out 2.35s forwards;
}

.intro-manifesto h2 {
  margin: 0 0 clamp(38px, 5.5vh, 62px);
  font-size: clamp(24px, 2.35vw, 34px);
  font-weight: 400;
  line-height: 1.1;
}

.intro-copy {
  margin: 0 auto clamp(46px, 6.4vh, 74px);
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.45;
}

.intro-copy-opening {
  margin-bottom: clamp(54px, 7.5vh, 86px);
}

.intro-copy p {
  margin: 0;
}

.intro-enchanted {
  margin: 0 0 clamp(52px, 8vh, 92px);
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.2;
}

@keyframes intro-logo-spread-in {
  from {
    opacity: 0;
    filter: blur(2px);
    letter-spacing: 0.42em;
    transform: translateY(calc(var(--intro-logo-y) - 2px)) scale(1.008);
  }

  to {
    opacity: 1;
    filter: blur(0);
    letter-spacing: var(--intro-logo-spacing);
    transform: translateY(var(--intro-logo-y)) scale(1);
  }
}

@keyframes intro-soft-reveal {
  from {
    opacity: 0;
    filter: blur(2px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes intro-page-load-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes intro-filigree-bloom {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translate(-50%, -48%) scale(0.985);
  }

  to {
    opacity: var(--intro-filigree-opacity);
    filter: blur(0);
    transform: translate(-50%, -48%) scale(1);
  }
}

@keyframes intro-fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-nav-fade-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-after-hero,
  .intro-top-links,
  .intro-logo,
  .intro-divider,
  .intro-tagline,
  .intro-filigree,
  .intro-ornament,
  .intro-manifesto,
  .intro-primary {
    animation: none;
    filter: none;
    opacity: 1;
  }

  .intro-filigree {
    opacity: var(--intro-filigree-opacity);
  }
}

@media (max-width: 760px) {
  .intro-shell {
    width: min(100vw - 24px, 560px);
    padding: 28px 0 48px;
  }

  .intro-hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .intro-logo {
    --intro-logo-spacing: 0.13em;
    --intro-logo-y: -7px;
    font-size: clamp(28px, 8vw, 42px);
  }

  .intro-filigree {
    --intro-filigree-opacity: 0.3;
    width: min(340px, 96vw);
  }

  .intro-divider {
    width: min(180px, 52vw);
    top: 58%;
  }

  .intro-divider i {
    width: 7px;
    height: 7px;
  }

  .intro-tagline {
    top: 61%;
    font-size: var(--intro-subtitle-size);
  }

  .intro-title-box {
    min-height: 132px;
  }

  .intro-ornament {
    width: 34px;
    margin-top: 72px;
    margin-bottom: 82px;
  }

  .intro-manifesto h2 {
    margin-bottom: 30px;
    font-size: 25px;
  }

  .intro-copy {
    margin-bottom: 38px;
    font-size: 16px;
    line-height: 1.48;
  }

  .intro-enchanted {
    margin-bottom: 44px;
    font-size: 18px;
  }

  .intro-primary {
    min-width: 128px;
    min-height: 38px;
    padding: 7px 28px;
    font-size: 19px;
  }
}

/* ===== PUBLIC INTRO SCROLL REDESIGN ===== */
body.intro-page {
  overflow-x: hidden;
}

.intro-shell {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
}

.intro-top-links {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: clamp(22px, 3.8vh, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 4.4vw, 70px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(15px, 1.15vw, 19px);
  letter-spacing: 0.015em;
  line-height: 1;
  opacity: 1;
  animation: none;
}

.intro-top-links a {
  display: inline-block;
  color: #1a1a1a;
  text-decoration: none;
  text-shadow: none;
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.intro-page .intro-top-links {
  opacity: 0;
  animation: intro-page-load-fade var(--intro-page-fade-duration) ease-out forwards;
}

body.intro-page .intro-top-links a {
  color: #f2f2f2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.intro-top-links a:hover {
  opacity: 0.62;
  transform: scale(1.12);
}

.about-top-links {
  z-index: 10;
  opacity: 0;
  animation: about-nav-fade-rise 0.9s ease-out 0.04s forwards;
}

body.about-page {
  --about-ui-scale: 0.8;
  margin: 0;
  min-height: 100vh;
  background: #f2f2f2;
  color: #1a1a1a;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1.75;
}

.about-book {
  max-width: 102ch;
  width: calc((100vw - 48px) / var(--about-ui-scale));
  margin: -21px auto 0;
  padding: 0 24px 48px;
  line-height: 1.75;
  zoom: var(--about-ui-scale);
  opacity: 0;
  transform: translateY(18px);
  animation: intro-fade-rise 1s ease-out 0.12s forwards;
}

.about-reader-title {
  position: relative;
  width: fit-content;
  min-width: min(520px, 90vw);
  min-height: 300px;
  margin: 0 auto 132px;
  padding: 0;
  text-align: center;
}

.about-reader-title h1 {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(50% + min(95px, 13vw));
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 0;
  color: #1a1a1a;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  transform: translate(-50%, -50%);
}

.about-reader-subtitle {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(50% + min(182px, 21vw));
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 0;
  color: #1a1a1a;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.about-reader-filigree {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(520px, 72vw);
  max-width: none;
  height: min(318px, 44vw);
  object-fit: contain;
  opacity: 0.12;
  filter: grayscale(1) brightness(1.05);
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -20%);
}

.about-reader-body {
  color: #1a1a1a;
  font-size: 21px;
  line-height: 1.75;
  margin-top: clamp(34px, 5vh, 58px);
}

.about-reader-body p {
  margin: 0 0 18px;
  text-align: center;
  text-indent: 0;
}

.about-reader-body p:last-child {
  margin-bottom: 0;
}

.about-reader-body cite {
  font-style: italic;
}

.about-footer {
  margin: 90px 0 0;
  color: #1a1a1a;
  text-align: center;
  font-size: 19px;
  line-height: 1.35;
}

.about-final-ornament {
  display: block;
  width: clamp(38px, 4vw, 54px);
  height: auto;
  margin: 0 auto 90px;
}

.about-footer p {
  margin: 0;
}

.about-scene {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: none;
}

.about-scene-intro {
  width: 70%;
}

.about-scene-reflection {
  width: 100%;
  margin: -10px auto 0;
  text-align: center;
}

.about-scene-reflection-copy {
  display: block;
  width: 70%;
  height: clamp(78px, 10vw, 132px);
  margin: -2px auto 0;
  overflow: hidden;
  opacity: 0.34;
  filter: blur(0.8px) saturate(0.84);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.about-scene-reflection-copy img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleY(-1);
}

.about-reader-body ul {
  margin: 0 0 24px 1.2em;
  padding-left: 1em;
  line-height: 1.6;
}

.about-reader-body li {
  margin: 0 0 8px;
  padding-left: 0.15em;
}

.intro-hero {
  min-height: clamp(420px, 64vh, 560px);
  justify-content: center;
  padding-top: clamp(42px, 9vh, 96px);
}

.intro-title-box {
  width: min(560px, calc(100vw - 40px));
  min-height: clamp(150px, 21vw, 230px);
}

.intro-logo {
  --intro-logo-spacing: 0.25em;
}

.intro-beta {
  position: fixed;
  z-index: 20;
  top: clamp(18px, 3vw, 32px);
  right: clamp(20px, 4vw, 50px);
  min-width: 112px;
  margin: 0;
  padding: 4px 14px 5px;
  color: #111;
  background: rgba(210, 210, 207, 0.8);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  text-align: center;
  font-size: clamp(14px, 1.15vw, 18px);
  letter-spacing: 0.28em;
  line-height: 1;
  opacity: 0;
  animation: intro-soft-reveal 0.9s ease-out 1.18s forwards;
}

.intro-after-hero {
  opacity: 0;
  margin-top: 0;
  animation: intro-page-load-fade var(--intro-page-fade-duration) ease-out forwards;
}

.intro-banner {
  position: relative;
  min-height: 0;
  height: calc(100vw * 860 / 1744);
  margin: 0 calc(50% - 50vw) clamp(44px, 6vh, 72px);
  background: url("https://storage.googleapis.com/narralogue-assets/fictions/static_common/misc/landing_page_banner_v5.webp") center center / 100% 100% no-repeat;
  overflow: hidden;
}

.intro-banner::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 12vw, 220px);
  background: linear-gradient(to bottom, rgba(3, 4, 7, 0), #030407 88%);
  pointer-events: none;
}

.intro-banner-illumination-hotspot {
  --intro-illumination-brightness: 0.67;
  position: absolute;
  z-index: 4;
  left: calc(61.2% - 8px);
  top: calc(39.6% - 5px);
  width: clamp(24px, 2.2vw, 42px);
  height: clamp(24px, 2.2vw, 42px);
  display: block;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.intro-banner-illumination {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 1;
  pointer-events: auto;
  mix-blend-mode: screen;
  filter: saturate(1.08) brightness(var(--intro-illumination-brightness));
  transition: filter 0.18s ease;
}

.intro-banner-illumination-hotspot:hover .intro-banner-illumination,
.intro-banner-illumination-hotspot:focus-within .intro-banner-illumination {
  --intro-illumination-brightness: 0.82;
}

.intro-banner-illumination-hotspot.is-dismissed .intro-banner-illumination {
  --intro-illumination-brightness: 0.42;
}

.intro-illumination-callout {
  --intro-illumination-path-width: clamp(150px, 12.8vw, 240px);
  --intro-illumination-path-height: clamp(52px, 4.4vw, 82px);
  position: absolute;
  left: 50%;
  top: calc(50% - var(--intro-illumination-path-height) + 9px);
  display: flex;
  align-items: center;
  width: max-content;
  opacity: 0;
  pointer-events: auto;
  clip-path: inset(
    calc(-0.5 * var(--intro-illumination-path-height))
    100%
    calc(-0.5 * var(--intro-illumination-path-height))
    0
  );
  transform: translateX(-8px);
  transform-origin: left center;
  will-change: opacity, clip-path, transform;
  transition:
    opacity 0.48s ease 1.75s,
    clip-path 0.62s cubic-bezier(0.16, 1, 0.3, 1) 1.75s,
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1) 1.75s;
}

.intro-banner-illumination-hotspot:hover .intro-illumination-callout,
.intro-banner-illumination-hotspot:focus-within .intro-illumination-callout {
  opacity: 1;
  clip-path: inset(
    calc(-0.5 * var(--intro-illumination-path-height))
    0
    calc(-0.5 * var(--intro-illumination-path-height))
    0
  );
  transform: translateX(0);
  transition:
    opacity 0.58s ease,
    clip-path 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-banner-illumination-hotspot:hover .intro-illumination-callout.is-dismissed,
.intro-banner-illumination-hotspot:focus-within .intro-illumination-callout.is-dismissed,
.intro-illumination-callout.is-dismissed {
  opacity: 0;
  clip-path: inset(
    calc(-0.5 * var(--intro-illumination-path-height))
    100%
    calc(-0.5 * var(--intro-illumination-path-height))
    0
  );
  transform: translateX(-8px);
  transition:
    opacity 0.48s ease,
    clip-path 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-illumination-path {
  width: var(--intro-illumination-path-width);
  height: var(--intro-illumination-path-height);
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  pointer-events: none;
}

.intro-illumination-path path {
  fill: none;
  stroke: rgba(104, 114, 120, 0.9);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.intro-illumination-enter {
  --intro-illumination-enter-y: -23px;
  min-width: 142px;
  min-height: 46px;
  transform: translateY(var(--intro-illumination-enter-y));
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.36);
  color: #f2f2f2;
  background: rgba(22, 25, 28, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1;
  white-space: nowrap;
}

.intro-illumination-enter:hover {
  --intro-illumination-enter-y: -25px;
}

.intro-banner-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 0 clamp(48px, 5.2vw, 86px);
}

.intro-banner-logo-box {
  position: relative;
  width: min(560px, calc(100vw - 110px));
  min-height: clamp(230px, 20vw, 318px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  overflow-x: visible;
  overflow-y: clip;
  transform: translate(-30px, -5px);
}

.intro-banner-logo {
  --intro-logo-y: -49px;
  color: #f2f2f2;
  -webkit-text-fill-color: #f2f2f2;
  font-size: clamp(50px, 4.5vw, 78px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  animation-delay: calc(var(--intro-page-fade-duration) + 0.35s);
}

.intro-banner-divider {
  left: 50%;
  top: calc(56% - 35px);
  width: min(480px, 84%);
  gap: 13px;
  transform: translateX(-50%);
  animation-delay: calc(var(--intro-page-fade-duration) + 1.05s);
}

.intro-banner-divider span::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(242, 242, 242, 0.25), rgba(242, 242, 242, 0.95));
}

.intro-banner-divider span:last-child::before {
  background: linear-gradient(90deg, rgba(242, 242, 242, 0.95), rgba(242, 242, 242, 0.25));
}

.intro-banner-divider i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(242, 242, 242, 0.92);
  background: #f2f2f2;
}

.intro-banner-tagline {
  left: 50%;
  top: calc(65% - 35px);
  color: #f2f2f2;
  -webkit-text-fill-color: #f2f2f2;
  font-size: clamp(18px, 1.9vw, 30px);
  transform: translateX(-50%);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  animation-delay: calc(var(--intro-page-fade-duration) + 1.18s);
}

.intro-banner-promise {
  position: absolute;
  left: 50%;
  top: 78%;
  width: max-content;
  max-width: min(480px, calc(100vw - 96px));
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
  opacity: 0;
  animation: intro-soft-reveal 0.9s ease-out calc(var(--intro-page-fade-duration) + 1.32s) forwards;
}

.intro-welcome {
  margin: 0 0 clamp(88px, 12vh, 136px);
  text-align: center;
  font-size: var(--intro-subtitle-size);
  line-height: 1.2;
}

.intro-books {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(640px, 1.28fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: 0 0 clamp(72px, 10vh, 116px);
}

.intro-books-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  font-size: clamp(28px, 2.6vw, 42px);
  letter-spacing: 0.02em;
  line-height: 1.45;
  transform: translateX(25px);
}

.intro-books-copy p {
  margin: 0;
}

.intro-books-lines {
  width: max-content;
  margin-left: 0;
  text-align: center;
  transform: translateY(-48px);
}

.intro-books-lines p + p {
  margin-top: clamp(14px, 2.6vh, 26px);
  transform: none;
}

.intro-mini-logo-box {
  position: relative;
  width: min(438px, 100%);
  min-height: 238px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 clamp(6px, 1.4vh, 14px);
  overflow: visible;
  transform: translateY(-85px);
}

.intro-banner .intro-banner-logo-box {
  transform: translate(20px, -10px);
}

.intro-mini-logo {
  --intro-logo-spacing: 0.18em;
  --intro-mini-logo-start-spacing: 0.34em;
  --intro-logo-x: 0px;
  --intro-logo-y: -14px;
  position: relative;
  z-index: 2;
  margin: 0;
  color: #111;
  font-size: clamp(49px, 4.06vw, 69px);
  font-weight: 400;
  letter-spacing: var(--intro-logo-spacing);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translate(var(--intro-logo-x), var(--intro-logo-y));
  opacity: 0;
  filter: blur(1.5px);
  animation: intro-mini-logo-spread-in 2.25s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.intro-banner .intro-banner-logo {
  --intro-logo-y: -49px;
  animation-delay: calc(var(--intro-page-fade-duration) + 0.35s);
}

.intro-mini-filigree {
  --intro-filigree-opacity: 0.11;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 54%;
  width: min(413px, 100%);
  opacity: 0;
  transform: translate(-50%, -48%);
  pointer-events: none;
  user-select: none;
  animation: intro-filigree-bloom 1.45s ease-out 1.75s forwards;
}

.intro-mini-divider {
  top: 57%;
  width: min(264px, 61%);
  gap: 13px;
}

.intro-mini-divider span::before {
  height: 3px;
}

.intro-mini-divider i {
  width: 6px;
  height: 6px;
}

.intro-mini-tagline {
  top: 63.5%;
  font-size: clamp(13px, 1.29vw, 19px);
  transform: translateX(-50%);
}

.intro-banner .intro-banner-divider {
  top: calc(57% - 35px);
}

.intro-banner .intro-banner-tagline {
  top: calc(63.5% - 35px);
}

@keyframes intro-mini-logo-spread-in {
  from {
    opacity: 0;
    filter: blur(2px);
    letter-spacing: var(--intro-mini-logo-start-spacing);
    transform: translate(var(--intro-logo-x), calc(var(--intro-logo-y) - 1px)) scale(1.006);
  }

  to {
    opacity: 1;
    filter: blur(0);
    letter-spacing: var(--intro-logo-spacing);
    transform: translate(var(--intro-logo-x), var(--intro-logo-y)) scale(1);
  }
}

.intro-books-figure {
  position: relative;
  width: min(820px, 90%);
  margin: 0;
  justify-self: center;
  padding-bottom: 92px;
  overflow: hidden;
}

.intro-books-image {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.intro-books-reflection {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.32;
  transform: scaleY(-1);
  transform-origin: bottom center;
  filter: blur(1.1px) saturate(0.88);
  pointer-events: none;
}

.intro-books-figure::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background: linear-gradient(to bottom, rgba(242, 242, 242, 0.06), rgba(242, 242, 242, 0.48) 56%, #f2f2f2 100%);
  z-index: 3;
  pointer-events: none;
}

.intro-books-figure::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 82px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.14), transparent 68%);
  filter: blur(7px);
  z-index: 1;
  pointer-events: none;
}

.intro-books-reflection {
  width: 100%;
}

.intro-reader {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: -40px;
  padding: 20px 0 0;
  color: #f2f2f2;
  text-align: center;
}

.intro-reader-welcome {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.95s ease, transform 0.95s ease;
}

.intro-reader.is-visible .intro-reader-welcome {
  opacity: 1;
  transform: translateY(0);
}

.intro-reader h2 {
  margin: 0 0 clamp(40px, 6vh, 62px);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.15;
}

.intro-reader-body {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease 0.22s, transform 1s ease 0.22s;
}

.intro-reader.is-visible .intro-reader-body {
  opacity: 1;
  transform: translateY(0);
}

.intro-reader .intro-copy {
  margin: 0 auto clamp(34px, 5vh, 52px);
  font-size: var(--intro-subtitle-size);
  line-height: 1.45;
}

.intro-reader .intro-copy p {
  margin: 0;
}

.intro-editorial-copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 36px));
  min-height: clamp(880px, 92vw, 1120px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto clamp(52px, 8vh, 92px);
  padding: clamp(18px, 3vw, 36px) 0 clamp(24px, 4vw, 42px);
  overflow: visible;
}

.intro-editorial-section {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #f2f2f2;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.42;
  text-align: center;
}

.intro-editorial-section h2 {
  margin: 0 0 clamp(20px, 3vh, 34px);
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

.intro-editorial-section p {
  margin: 0;
}

.intro-editorial-section p + p {
  margin-top: clamp(18px, 3vh, 30px);
}

.intro-editorial-lede {
  max-width: 620px;
  margin: 0 auto clamp(30px, 4vh, 48px);
  font-size: clamp(18px, 1.9vw, 30px);
}

.intro-editorial-lede span {
  display: inline;
  margin-right: 0;
  font-size: inherit;
  line-height: inherit;
}

.intro-feature-filigree {
  position: relative;
  z-index: 1;
  width: clamp(240px, 20vw, 360px);
  height: clamp(54px, 6vw, 92px);
  display: block;
  margin: 0 auto clamp(24px, 4vh, 46px);
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(23%) sepia(17%) saturate(945%) hue-rotate(158deg) brightness(92%) contrast(87%);
}

.intro-feature-boxes {
  position: relative;
  left: 50%;
  z-index: 1;
  width: min(1680px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 0.9vw, 18px);
  margin: 0 auto clamp(76px, 9vh, 124px);
  transform: translateX(-50%);
}

.intro-feature-box {
  min-height: clamp(420px, 25vw, 520px);
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  padding: clamp(34px, 3vw, 54px) clamp(28px, 2.8vw, 48px);
  background:
    linear-gradient(180deg, #2b4252 0%, rgba(43, 66, 82, 0.86) 22%, rgba(22, 34, 43, 0.62) 58%, rgba(3, 4, 7, 0) 100%),
    #030407;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -64px 72px rgba(3, 4, 7, 0.96),
    0 20px 46px rgba(0, 0, 0, 0.3);
  color: #f2f2f2;
  font-size: clamp(17px, 1.22vw, 21px);
  line-height: 1.35;
  text-align: center;
}

.intro-feature-box:nth-child(1) {
  margin-top: clamp(40px, 3.4vw, 64px);
}

.intro-feature-box:nth-child(2) {
  min-height: clamp(470px, 28vw, 580px);
}

.intro-feature-box:nth-child(3) {
  margin-top: clamp(76px, 5.4vw, 104px);
}

.intro-feature-box h2 {
  margin: 0 0 clamp(18px, 2.4vh, 30px);
  color: #f2f2f2;
  font-size: clamp(30px, 2.8vw, 46px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.intro-feature-box p {
  max-width: 34ch;
  margin: 0 auto;
  text-align: left;
}

.intro-feature-box p + p {
  margin-top: clamp(16px, 2.3vh, 26px);
}

.intro-editorial-offer {
  width: min(650px, 62%);
  margin: 100px auto clamp(78px, 10vh, 126px) clamp(18px, 6vw, 82px);
  text-align: right;
  transform: translateX(-220px);
}

.intro-editorial-offer p + p {
  margin-top: 0;
}

.intro-editorial-spectator {
  width: min(650px, 58%);
  margin: 100px clamp(24px, 7vw, 98px) clamp(68px, 9vh, 112px) auto;
  text-align: left;
  transform: translateX(120px);
}

.intro-editorial-spectator h2 {
  text-align: left;
}

.intro-editorial-spectator p + p {
  margin-top: 0;
}

.intro-editorial-chatbot {
  width: min(650px, 62%);
  max-width: 760px;
  margin: 100px auto clamp(70px, 10vh, 118px) clamp(18px, 6vw, 82px);
  text-align: right;
  transform: translateX(-220px);
}

.intro-editorial-chatbot p + p {
  margin-top: 0;
}

.intro-editorial-welcome {
  max-width: 520px;
  margin: 100px auto 0;
}

.intro-editorial-welcome p + p {
  margin-top: 0;
}

.intro-reader-books {
  position: relative;
  width: min(760px, 78vw);
  margin: clamp(26px, 4vh, 44px) auto clamp(22px, 4vh, 54px);
}

.intro-reader-books-main {
  display: block;
  width: 100%;
  height: auto;
}

.intro-reader-books-reflection {
  display: block;
  width: 100%;
  height: clamp(72px, 11vw, 118px);
  margin-top: -2px;
  overflow: hidden;
  opacity: 0.48;
  filter: blur(0.7px) saturate(0.82);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.intro-reader-books-reflection img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleY(-1);
}

.intro-reader .intro-enchanted {
  margin: 0 0 clamp(38px, 6vh, 58px);
  font-size: var(--intro-subtitle-size);
}

.intro-final-ornament {
  display: block;
  width: clamp(38px, 4vw, 54px);
  height: auto;
  margin: clamp(28px, 5vh, 42px) auto 0;
  filter: none;
  opacity: 0.92;
}

body.intro-page .intro-final-ornament {
  filter: brightness(0) invert(1);
}

.intro-footer {
  margin-top: 0;
  padding: 0 18px;
  color: #1a1a1a;
  text-align: center;
  background: transparent;
  border-top: 0;
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.35;
}

body.intro-page .intro-footer {
  color: #f2f2f2;
  margin-top: 150px;
  padding-bottom: 15px;
}

.intro-footer p {
  margin: 0;
}

.intro-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
}

.intro-footer a {
  color: inherit;
  text-decoration: none;
}

.intro-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-overlay .auth-panel {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .intro-after-hero,
  .intro-top-links,
  .intro-mini-logo,
  .intro-mini-filigree,
  .intro-mini-divider,
  .intro-mini-tagline,
  .intro-reader-welcome,
  .intro-reader-body,
  .about-book {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-top-links {
    animation: none;
    opacity: 1;
    transform: translateX(-50%);
  }

  .intro-mini-filigree {
    opacity: var(--intro-filigree-opacity);
  }
}

@media (max-width: 760px) {
  .intro-shell {
    width: 100%;
    padding-top: 0;
  }

  .intro-top-links {
    top: 22px;
    width: min(100%, 420px);
    gap: 18px;
    font-size: 14px;
    white-space: normal;
    line-height: 1.25;
  }

  .about-top-links {
    width: min(100% - 24px, 420px);
  }

  .about-book {
    position: relative;
    width: calc((100vw - 24px) / var(--about-ui-scale));
    margin-left: auto;
    margin-right: auto;
    padding: 60px 10px 44px;
  }

  .about-reader-title {
    min-width: min(340px, 94vw);
    margin-bottom: 92px;
    min-height: 260px;
    padding: 0;
  }

  .about-reader-title h1 {
    font-size: 34px;
    letter-spacing: 0.04em;
    top: calc(50% + 76px);
  }

  .about-reader-subtitle {
    font-size: 23px;
    letter-spacing: 0.02em;
    top: calc(50% + 150px);
    max-width: calc(100vw - 32px);
  }

  .about-reader-filigree {
    width: min(360px, 94vw);
    height: min(220px, 58vw);
  }

  .about-scene {
    max-width: 100%;
    object-fit: contain;
  }

  .about-scene-intro {
    margin-top: -8px;
    margin-bottom: 34px;
  }

  .intro-hero {
    min-height: 390px;
    padding-top: 54px;
  }

  .intro-banner {
    min-height: 0;
    height: calc(100vw * 780 / 1744);
    margin: 0 calc(50% - 50vw) 34px;
    background-position: 64% center;
  }

  .intro-banner-overlay {
    width: 100%;
    padding: 0 0 0 18px;
  }

  .intro-banner-logo-box {
    width: min(360px, calc(100vw - 54px));
    min-height: 104px;
  }

  .intro-banner-logo {
    --intro-logo-spacing: 0.13em;
    --intro-mini-logo-start-spacing: 0.25em;
    font-size: clamp(28px, 7.2vw, 42px);
  }

  .intro-banner-divider {
    left: 50%;
    top: 55%;
    width: min(250px, 84%);
    gap: 10px;
    transform: translateX(-50%);
  }

  .intro-banner-tagline {
    left: 50%;
    top: 64%;
    font-size: clamp(13px, 3.4vw, 18px);
    transform: translateX(-50%);
  }

  .intro-title-box {
    min-height: 132px;
  }

  .intro-beta {
    min-width: 88px;
    font-size: 13px;
  }

  .intro-books {
    grid-template-columns: minmax(170px, 0.72fr) minmax(250px, 1.28fr);
    gap: 16px;
    padding-bottom: 58px;
  }

  .intro-books-copy {
    order: 1;
    font-size: clamp(22px, 5vw, 30px);
    letter-spacing: 0.01em;
    line-height: 1.65;
  }

  .intro-books-lines {
    width: auto;
    margin-left: 0;
    text-align: left;
    transform: translateY(-18px);
  }

  .intro-books-lines p + p {
    margin-top: 22px;
    transform: none;
  }

  .intro-mini-logo-box {
    width: min(210px, 100%);
    min-height: 82px;
    margin: 0 0 8px;
    transform: none;
  }

  .intro-mini-logo {
    --intro-logo-spacing: 0.13em;
    --intro-mini-logo-start-spacing: 0.25em;
    font-size: clamp(19px, 5vw, 26px);
  }

  .intro-mini-filigree {
    --intro-filigree-opacity: 0.14;
    left: 44%;
    width: min(190px, 100%);
  }

  .intro-books-figure {
    order: 2;
    width: min(560px, 96vw);
    padding-bottom: 72px;
  }

  .intro-books-reflection {
    transform: scaleY(-1);
  }

  .intro-books-figure::before {
    bottom: 0;
    height: 72px;
  }

  .intro-books-figure::after {
    bottom: 64px;
  }

  .intro-reader {
    min-height: auto;
    padding-top: 0;
  }

  .intro-editorial-copy {
    width: min(100vw - 32px, 560px);
    min-height: 0;
    margin-bottom: 46px;
    padding: 12px 0 18px;
    gap: 54px;
    overflow-x: visible;
    overflow-y: clip;
  }

  .intro-editorial-section,
  .intro-editorial-offer,
  .intro-editorial-spectator,
  .intro-editorial-chatbot,
  .intro-editorial-welcome {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .intro-editorial-section h2,
  .intro-editorial-spectator h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 8vw, 38px);
    text-align: center;
  }

  .intro-editorial-section {
    font-size: clamp(16px, 4.4vw, 19px);
    line-height: 1.45;
  }

  .intro-editorial-lede span {
    display: inline;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .intro-editorial-section p + p {
    margin-top: 16px;
  }

  .intro-feature-boxes {
    width: min(100%, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 0;
  }

  .intro-feature-box {
    min-height: 240px;
  }

  .intro-reader-books {
    width: min(608px, 86vw);
    margin-top: 42px;
  }

  .intro-reader h2 {
    margin-bottom: 34px;
    font-size: 22px;
  }

  .intro-reader .intro-copy,
  .intro-reader .intro-enchanted {
    font-size: var(--intro-subtitle-size);
  }

  .intro-final-ornament {
    width: 38px;
    margin-top: 68px;
  }

  .intro-footer {
    font-size: 13px;
    padding: 0 14px;
  }

  .intro-footer p {
    margin-bottom: 0;
  }
}

@media (max-width: 430px) {
  .intro-books {
    grid-template-columns: 1fr;
  }

  .intro-books-copy,
  .intro-books-figure {
    order: initial;
  }
}

/* ===== BASE ===== */
body.landing {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.88), rgba(242, 239, 233, 0.92) 38%, #f2f0eb 100%);
  font-family: 'EB Garamond', serif;
  color: #111;
}

/* ===== CONTAINER ===== */
.landing .container {
  text-align: center;
  padding: 6px 12px 57px;
  animation: fadeIn 0.9s ease;
}

/* ===== HERO ===== */
.landing .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.landing .title-box {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.landing .logo {
  position: relative;
  z-index: 2;
  font-size: clamp(42px, 7.2vw, 76px);
  letter-spacing: 0.12em;
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
  color: #161514;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(40px);
}

.landing .filigree {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 10%);
  width: min(430px, 62vw);
  opacity: 0.16;
  display: block;
  pointer-events: none;
  user-select: none;
}

.landing .hero-divider {
  width: min(470px, calc(100vw - 110px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 10px;
}

.landing .hero-divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(39, 35, 28, 0.14), rgba(39, 35, 28, 0.7), rgba(39, 35, 28, 0.14));
}

.landing .hero-divider-diamond {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(39, 35, 28, 0.72);
  background: #111;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.landing .tagline-box {
  margin-top: 10px;
}

.landing .tagline {
  display: inline-block;
  padding: 0;
  background: transparent;
  font-size: clamp(16px, 2.5vw, 22px);
  letter-spacing: 0.07em;
  color: rgba(24, 21, 18, 0.95);
}

.landing .hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  margin-top: 18px;
  padding: 10px 26px;
  background: linear-gradient(180deg, #4a4a4a 0%, #343434 100%);
  color: #f4efe7;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 14px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing .hero-cta::before,
.landing .hero-cta::after {
  content: none;
}

.landing .hero-cta span {
  position: relative;
  z-index: 1;
}

.landing .hero-cta i {
  display: none;
}

.landing .hero-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #535353 0%, #3a3a3a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

/* ===== NAV ===== */
.landing .nav {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 29px;
  font-size: 16px;
  flex-wrap: wrap;
  padding: 0 5px;
}

.landing .nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: rgba(17, 17, 17, 0.84);
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.landing .nav a:hover {
  opacity: 0.65;
  transform: translateY(-1px);
  color: #111;
}

/* ===== LIBRARY GRID ===== */
.landing .library {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 34px;
  max-width: min(1120px, calc(100vw - 120px));
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

/* ===== BOOK CARD ===== */
.landing .book-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
  position: relative;
  width: 75%;
  justify-self: center;
}

.landing .book-rect {
  aspect-ratio: 3 / 4;
  border: 1.5px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.landing .book-card:hover {
  transform: translateY(-5px);
}

.landing .book-card:hover .book-rect {
  background: rgba(0, 0, 0, 0.04);
}

.landing .book-cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border: none;
  overflow: hidden;
  background: #ddd;
  box-shadow:
    8px 10px 0 rgba(0, 0, 0, 0.05),
    8px 12px 12px rgba(0, 0, 0, 0.18),
    3px 6px 6px rgba(0, 0, 0, 0.11),
    12px 0 14px rgba(255, 255, 255, 0.20) inset,
    -6px 0 10px rgba(0, 0, 0, 0.08) inset;
}

.landing .book-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.landing .book-loading-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
  animation: landingSpin 0.75s linear infinite;
}

.landing .book-card.loading {
  pointer-events: none;
}

.landing .book-card.loading .book-loading-overlay {
  opacity: 1;
}

.landing .book-card.loading .book-cover,
.landing .book-card.loading .book-title {
  filter: saturate(0.9) brightness(0.9);
}

.landing .book-card:hover .book-cover-wrap {
  box-shadow:
    9px 12px 0 rgba(0, 0, 0, 0.06),
    9px 14px 14px rgba(0, 0, 0, 0.21),
    4px 7px 7px rgba(0, 0, 0, 0.13),
    12px 0 14px rgba(255, 255, 255, 0.22) inset,
    -6px 0 10px rgba(0, 0, 0, 0.09) inset;
}

.landing .book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing .book-title {
  line-height: 1.05;
}

.landing .book-meta {
  margin-top: 7px;
  font-size: 13px;
  opacity: 0.75;
}

.landing .book-tone {
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.78;
}

/* ===== LIBRARY PAGE REDESIGN ===== */
body.landing.library-page {
  --intro-subtitle-size: clamp(16px, 1.75vw, 25px);
  position: relative;
  overflow-x: hidden;
  background: #030407;
  font-family: 'EB Garamond', Georgia, serif;
  color: #f2f2f2;
}

body.landing.library-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: clamp(82px, 6vw, 120px);
  top: 30px;
  width: min(1060px, 126vw);
  aspect-ratio: 3 / 1;
  background: url("https://storage.googleapis.com/narralogue-assets/fictions/static_common/misc/main_page_top.webp") center / contain no-repeat;
  opacity: 0.12;
  transform: translateY(-820px) rotate(45deg) scale(2.64);
  transform-origin: top left;
  pointer-events: none;
}

.library-page .library-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 72px));
  margin: 0 auto;
  padding: clamp(58px, 9vh, 92px) 0 clamp(58px, 9vh, 96px);
}

.library-header {
  display: flex;
  align-items: center;
  gap: clamp(46px, 7vw, 88px);
}

.library-wordmark {
  flex: 0 0 auto;
  color: #f2f2f2;
  text-decoration: none;
  font-size: clamp(29px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: 0.23em;
  line-height: 1;
  text-shadow: none;
}

.library-page .library-header,
.library-page .library-latest-section,
.library-page .library-after-hero {
  opacity: 0;
  animation: intro-fade-rise 0.9s ease-out 0.18s forwards;
}

.library-page .library-top-links {
  position: static;
  display: flex;
  width: auto;
  transform: none;
  gap: clamp(26px, 3.1vw, 48px);
  font-size: clamp(18px, 1.55vw, 24px);
  white-space: nowrap;
  opacity: 1;
  animation: none;
}

.library-page .library-top-links a {
  color: #f2f2f2;
  text-shadow: none;
}

.library-signout {
  position: fixed;
  z-index: 20;
  top: clamp(50px, 7.7vh, 72px);
  right: clamp(20px, 4vw, 50px);
  min-width: 92px;
  min-height: 36px;
  margin-top: 0;
  padding: 7px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4eee6;
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 5px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.22);
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.library-signout:hover {
  transform: translateY(-1px);
}

.library-subscribe {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 36px;
  margin: clamp(8px, 1.5vh, 16px) 0 0;
  padding: 7px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4eee6;
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 5px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.22);
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.library-subscribe:hover {
  transform: translateY(-1px);
}

.library-subscribe[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.library-latest-section {
  margin-top: clamp(96px, 15vh, 142px);
  text-align: center;
}

.library-latest-books {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 34px;
  width: min(1120px, calc(100vw - 120px));
  margin: 0 auto;
  align-items: start;
}

.library-latest-books .book-card {
  width: 75%;
}

.library-latest-books .book-card:nth-child(1) {
  grid-column: 2;
}

.library-latest-books .book-card:nth-child(2) {
  grid-column: 3;
}

.library-latest-books .book-card:nth-child(3) {
  grid-column: 4;
}

.library-latest-title {
  margin: clamp(24px, 4vh, 34px) 0 0;
  color: #f2f2f2;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.library-page .library-after-hero {
  margin-top: clamp(48px, 8vh, 84px);
  text-align: center;
}

.library-page .intro-welcome {
  margin: 0 0 clamp(46px, 7vh, 76px);
  font-weight: 400;
}

.landing.library-page .library {
  margin-top: 0;
}

.landing.library-page .book-card {
  color: #f2f2f2;
}

.landing.library-page .book-meta,
.landing.library-page .book-tone {
  color: #f2f2f2;
}

.library-page .library-more {
  margin: clamp(52px, 8vh, 84px) 0 clamp(24px, 4vh, 42px);
  font-size: var(--intro-subtitle-size);
  line-height: 1.2;
  color: #f2f2f2;
}

.library-bottom-subscribe {
  display: flex;
  width: max-content;
  margin: clamp(54px, 8vh, 82px) auto 0;
}

.landing.library-page .intro-footer {
  margin-top: 0;
  color: #f2f2f2;
}

.landing.library-page .intro-final-ornament {
  filter: brightness(0) invert(1);
}

/* ===== LIBRARY INTRO MODAL ===== */
body.library-intro-open {
  overflow: hidden;
}

.library-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 46px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.library-intro-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.library-intro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.library-intro-modal {
  position: relative;
  z-index: 1;
  width: min(974px, calc(100vw - 36px));
  min-height: min(608px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(360px, 0.58fr);
  overflow: hidden;
  background: #f7f7f5;
  color: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(12px);
  opacity: 0;
}

.library-intro-overlay.is-open .library-intro-modal {
  animation: libraryIntroModalIn 0.34s ease forwards;
}

.library-intro-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
}

.library-intro-close:hover {
  background: rgba(255, 255, 255, 0.94);
}

.library-intro-image-wrap {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(26, 31, 32, 0.06), rgba(247, 247, 245, 0.55) 88%, #f7f7f5 100%),
    #d9d7d2;
}

.library-intro-image-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: min(120px, 34%);
  background: linear-gradient(90deg, rgba(247, 247, 245, 0), #f7f7f5 82%);
  pointer-events: none;
}

.library-intro-image-wrap.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(52, 52, 52, 0.20), rgba(247, 247, 245, 0.58)),
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.62), transparent 36%),
    linear-gradient(180deg, #8d918f, #c9c6bd);
}

.library-intro-image {
  position: absolute;
  top: 50%;
  right: 0;
  width: 190%;
  max-width: none;
  height: 116%;
  object-fit: cover;
  object-position: right center;
  transform: translateY(-50%);
  display: block;
}

.library-intro-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3.6vw, 34px) clamp(28px, 4.8vw, 56px) 28px clamp(24px, 4.2vw, 44px);
  text-align: left;
}

.library-intro-copy h2 {
  margin: 0 44px 2px 0;
  font-size: clamp(34px, 4.1vw, 48px);
  font-weight: 400;
  line-height: 1.04;
}

.library-intro-author {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.12;
}

.library-intro-text {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 18px);
  line-height: 1.32;
}

.library-intro-text p {
  margin: 0 0 12px;
}

.library-intro-enter {
  min-width: 116px;
  min-height: 50px;
  margin-top: auto;
  margin-left: 2px;
  padding: 8px 30px;
  border: 1px solid rgba(180, 88, 78, 0.65);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 36%, rgba(93,93,93,0.98) 0%, rgba(72,72,72,0.98) 78%, rgba(55,55,55,0.98) 100%);
  color: #f4eee6;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 4px 0 rgba(0,0,0,0.08),
    0 12px 22px rgba(0,0,0,0.18);
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.library-intro-enter:hover {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .library-page .library-shell {
    width: min(100vw - 32px, 760px);
    padding-top: 86px;
  }

  .library-header {
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    text-align: center;
  }

  .library-page .library-top-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    font-size: 18px;
    white-space: normal;
  }

  .library-signout {
    top: 24px;
    min-width: 86px;
    min-height: 34px;
    padding: 6px 18px;
    font-size: 16px;
  }

  .library-latest-section {
    margin-top: 70px;
  }

  .library-latest-books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 28px;
    width: min(720px, calc(100vw - 64px));
  }

  .library-latest-books .book-card:nth-child(1),
  .library-latest-books .book-card:nth-child(2),
  .library-latest-books .book-card:nth-child(3) {
    grid-column: auto;
  }

  .library-latest-title {
    margin-top: 22px;
  }

  .landing .title-box {
    min-height: 188px;
  }

  .landing .filigree {
    width: min(390px, 70vw);
    transform: translate(-50%, 8%);
  }

  .landing .library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 28px;
    max-width: min(720px, calc(100vw - 64px));
  }

  .landing .book-card {
    width: 82%;
  }

  .landing.library-page .library {
    margin-top: 0;
  }

  .library-intro-modal {
    grid-template-columns: minmax(230px, 0.4fr) minmax(330px, 0.6fr);
    min-height: min(560px, calc(100vh - 44px));
  }

  .library-intro-copy {
    padding: 24px 34px 26px 28px;
  }

  .library-intro-copy h2 {
    font-size: 38px;
  }

  .library-intro-author {
    font-size: 27px;
  }
}

@media (max-width: 520px) {
  .library-page .library-shell {
    width: min(100vw - 24px, 560px);
    padding-top: 92px;
  }

  .library-wordmark {
    font-size: 28px;
    letter-spacing: 0.18em;
  }

  .library-page .library-top-links {
    font-size: 15px;
    gap: 12px 18px;
  }

  .library-signout {
    top: 20px;
    right: 16px;
    min-width: 86px;
    min-height: 34px;
    padding: 6px 18px;
    font-size: 16px;
  }

  .library-subscribe {
    min-width: 86px;
    min-height: 34px;
    margin-top: 4px;
    padding: 6px 18px;
    font-size: 16px;
  }

  .library-latest-title {
    font-size: 16px;
  }

  .library-latest-books {
    column-gap: 22px;
    width: min(360px, calc(100vw - 40px));
  }

  .landing .container {
    padding: 6px 10px 44px;
  }

  .landing .title-box {
    width: min(100vw - 20px, 480px);
    min-height: 148px;
    padding-top: 0;
  }

  .landing .logo {
    letter-spacing: 0.09em;
    transform: translateY(18px);
  }

  .landing .filigree {
    width: min(300px, 82vw);
    transform: translate(-50%, 8%);
    opacity: 0.13;
  }

  .landing .hero-divider {
    width: min(280px, calc(100vw - 54px));
    gap: 9px;
    margin-top: 0;
  }

  .landing .tagline-box {
    margin-top: 12px;
  }

  .landing .hero-cta {
    margin-top: 16px;
    padding: 9px 22px;
    letter-spacing: 0.07em;
    font-size: 12px;
  }

  .landing .nav {
    gap: 17px;
    margin-top: 28px;
    font-size: 15px;
  }

  .landing .library {
    grid-template-columns: 1fr;
    max-width: min(234px, calc(100vw - 40px));
    gap: 18px;
  }

  .landing .book-card {
    width: 100%;
  }

  .library-page .intro-welcome {
    margin-bottom: 44px;
  }

  .library-page .library-more {
    margin: 40px 0 24px;
  }

  .library-intro-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px 12px;
  }

  .library-intro-modal {
    width: min(420px, calc(100vw - 24px));
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 34vh) auto;
  }

  .library-intro-image-wrap {
    min-height: 180px;
  }

  .library-intro-image-wrap::after {
    top: auto;
    right: 0;
    left: 0;
    width: auto;
    height: 48px;
    background: linear-gradient(180deg, rgba(247, 247, 245, 0), #f7f7f5 88%);
  }

  .library-intro-image {
    width: 150%;
    height: 120%;
  }

  .library-intro-copy {
    padding: 20px 22px 24px;
  }

  .library-intro-copy h2 {
    margin-right: 44px;
    font-size: 32px;
  }

  .library-intro-author {
    font-size: 24px;
  }

  .library-intro-text {
    font-size: 17px;
    line-height: 1.36;
  }

  .library-intro-enter {
    min-height: 46px;
    margin-top: 18px;
  }
}

/* ===== FADE IN ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes libraryIntroModalIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
