/* ==========================================================================
   संस्कृति Prakashan — Components
   ========================================================================== */

/* ---------------------------------------------------------------- Topbar */
.topbar {
  background: linear-gradient(100deg, var(--maroon) 0%, var(--maroon-700) 45%, #6d2340 100%);
  color: rgba(255, 255, 255, .82);
  font-size: .8rem;
  padding: .5rem 0;
  position: relative;
  z-index: 1060;
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--orange-200); }
.topbar-meta { display: flex; gap: 1.5rem; align-items: center; }
.topbar-meta span, .topbar-meta a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-meta i { color: var(--orange-200); font-size: .85em; }
.topbar-social { display: flex; gap: .35rem; }
.topbar-social a {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: .72rem;
  transition: all .3s var(--ease);
}
.topbar-social a:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
@media (max-width: 991.98px) { .topbar { display: none; } }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(232, 228, 224, .8);
  transition: box-shadow .4s var(--ease), background .4s var(--ease), padding .4s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 8px 34px -18px rgba(24, 12, 20, .28);
  background: rgba(255, 255, 255, .94);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
  transition: height .4s var(--ease);
}
.site-header.is-stuck .nav-row { height: 68px; }

/* Brand */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img {
  height: 50px; width: auto;
  transition: transform .5s var(--ease), height .4s var(--ease);
}
.site-header.is-stuck .brand img { height: 44px; }
.brand:hover img { transform: scale(1.06) rotate(-2deg); }
.brand-txt { display: grid; line-height: 1.1; }
.brand-txt b {
  font-family: var(--f-display);
  font-size: 1.16rem;
  color: var(--maroon);
  letter-spacing: -.01em;
  font-weight: 700;
}
.brand-txt small {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
@media (max-width: 400px) { .brand-txt { display: none; } }

/* Desktop nav */
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  position: relative;
  display: block;
  padding: .55rem .74rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width .35s var(--ease);
}
.main-nav a:hover { color: var(--maroon); background: rgba(74, 20, 43, .045); }
.main-nav a:hover::after { width: 22px; }
.main-nav a.is-active { color: var(--maroon); font-weight: 600; }
.main-nav a.is-active::after { width: 22px; }

/* About submenu */
.main-nav li.has-submenu { position: relative; }
.main-nav li.has-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: .55rem;
}
.main-nav .submenu-caret { margin-left: .3rem; font-size: .62em; transition: transform .3s var(--ease); }
.main-nav li.has-submenu:hover .submenu-caret,
.main-nav li.has-submenu:focus-within .submenu-caret { transform: rotate(180deg); }
.main-nav .submenu {
  position: absolute;
  top: calc(100% + .45rem);
  left: 50%;
  min-width: 260px;
  display: block;
  padding: .45rem;
  margin: 0;
  list-style: none;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 20;
}
.main-nav li.has-submenu:hover > .submenu,
.main-nav li.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.main-nav .submenu a { padding: .7rem .85rem; font-size: .82rem; white-space: normal; }
.main-nav .submenu a::after { display: none; }

@media (max-width: 1199.98px) { .main-nav { display: none; } }

@media (max-width: 1199.98px) {
  .main-nav li.has-submenu::before { display: none; }
  .drawer nav li.has-submenu > a { display: flex; justify-content: space-between; }
  .drawer nav li.has-submenu > a i { transition: transform .3s var(--ease); }
  .drawer nav li.has-submenu.is-expanded > a i { transform: rotate(180deg); }
  .drawer nav .submenu {
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    margin: 0;
    padding: 0 0 0 1rem;
    list-style: none;
    transition: max-height .3s var(--ease), opacity .2s var(--ease), visibility .3s, padding .3s var(--ease);
  }
  .drawer nav li.has-submenu.is-expanded > .submenu { max-height: 8rem; opacity: 1; visibility: visible; padding-bottom: .35rem; }
  .drawer nav .submenu li { min-height: 0; }
  .drawer nav .submenu a { padding: .55rem .85rem; font-size: .9rem; border-left: 2px solid var(--line); }
}

/* Header actions */
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
@media (min-width: 1200px) { .nav-actions { margin-left: 1rem; } }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: .95rem;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.icon-btn:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 767.98px) { .nav-actions .u-hide-sm { display: none; } }
@media (max-width: 575.98px) { .nav-actions .btn--sm { padding: .6rem .95rem; font-size: .78rem; } }

/* Burger */
.burger { display: none; }
@media (max-width: 1199.98px) { .burger { display: grid; } }
@media (max-width: 1199.98px) {
  /* Keep the compact header usable while the full navigation is inside the drawer. */
  .nav-actions .u-hide-sm { display: none; }
  .nav-row { gap: .65rem; }
}

/* ---------------------------------------------------------------- Search overlay */
.search-pane {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: start center;
  padding-top: 16vh;
  background: rgba(30, 12, 22, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.search-pane.is-open { opacity: 1; visibility: visible; }
.search-pane .search-inner form .btn { flex: 0 0 auto; }
.search-inner {
  width: min(700px, 92vw);
  transform: translateY(-22px);
  transition: transform .5s var(--ease);
}
.search-pane.is-open .search-inner { transform: none; }
.search-inner form {
  display: flex;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  background: #fff;
  border-radius: var(--r-pill);
  padding: .45rem .45rem .45rem 1.4rem;
  box-shadow: var(--sh-xl);
}
.search-inner input {
  flex: 1 1 auto;
  min-width: 0; /* allow the flex item to shrink instead of forcing overflow */
  border: 0;
  outline: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  padding: .8rem 0;
  background: transparent;
  color: var(--ink);
}
.search-hints { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.search-hints span { font-size: .78rem; color: rgba(255, 255, 255, .6); margin-right: .3rem; align-self: center; }
.search-hints a {
  font-size: .78rem;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: .34rem .82rem;
  border-radius: var(--r-pill);
}
.search-hints a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.search-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.search-close:hover { background: #fff; color: var(--maroon); transform: rotate(90deg); }

/* ---------------------------------------------------------------- Mobile drawer */
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(340px, 88vw);
  z-index: 1090;
  background: #fff;
  box-shadow: -20px 0 60px -20px rgba(24, 12, 20, .3);
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: none; }
/* while closed the drawer sits off-canvas — keep it out of the scroll box */
.drawer:not(.is-open) { visibility: hidden; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.drawer-head img { height: 42px; }
.drawer nav { padding: 1rem 1.25rem 1.5rem; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .18rem; }
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .82rem .9rem;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
  transition: all .3s var(--ease);
}
.drawer nav a i { color: var(--muted-2); font-size: .8rem; transition: transform .3s var(--ease); }
.drawer nav a:hover, .drawer nav a.is-active {
  background: var(--maroon-050);
  color: var(--maroon);
}
.drawer nav a:hover i { transform: translateX(4px); color: var(--orange); }
.drawer-foot { margin-top: auto; padding: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.drawer-social { display: flex; gap: .5rem; justify-content: center; padding-top: .4rem; }
.drawer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--maroon);
  transition: all .3s var(--ease);
}
.drawer-social a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 1085;
  background: rgba(30, 12, 22, .45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 2.5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(900px 560px at 78% 18%, rgba(133, 50, 75, .34), transparent 62%),
    radial-gradient(780px 520px at 18% 10%, rgba(97, 25, 49, .36), transparent 58%),
    linear-gradient(150deg, #240811 0%, #611931 48%, #18060d 100%);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: .30;
  mix-blend-mode: multiply;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .56;
  filter: saturate(.82) contrast(1.08) brightness(.72);
  mix-blend-mode: normal;
  pointer-events: none;
}
.hero-video + .hero-bg {
  opacity: .10;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 3, 9, .84) 0%, rgba(40, 8, 20, .68) 38%, rgba(97, 25, 49, .44) 68%, rgba(17, 3, 9, .70) 100%),
    linear-gradient(180deg, rgba(14, 2, 8, .44) 0%, rgba(97, 25, 49, .18) 42%, rgba(10, 2, 5, .78) 100%),
    radial-gradient(58% 48% at 70% 42%, rgba(160, 82, 105, .18), transparent 70%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 4; }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }

.hero-mark {
  width: clamp(96px, 12vw, 132px);
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 16px 32px rgba(9, 2, 5, .42));
}
.hero h1 {
  margin-bottom: 1rem;
  color: #fffaf6;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .46);
}
.hero h1 em { font-style: italic; }
.hero .grad-text {
  background: linear-gradient(100deg, #fff8ed 0%, #f3d4ad 44%, #e5a95f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .eyebrow {
  color: rgba(255, 246, 232, .88);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 12px 28px rgba(13, 2, 7, .20);
}
.hero .eyebrow i { color: #efc987; }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  max-width: 56ch;
  margin-bottom: 1.9rem;
  color: rgba(255, 249, 241, .82);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .34);
}

/* Hero search */
.hero-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 251, 245, .92);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--r-pill);
  padding: .4rem .4rem .4rem 1.25rem;
  box-shadow: 0 24px 56px -28px rgba(0, 0, 0, .70);
  max-width: 540px;
  margin-bottom: 1.6rem;
}
.hero-search > i.fa-magnifying-glass { color: #611931; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: .95rem;
  padding: .78rem .4rem;
  color: #28131b;
}
.hero-search input::placeholder { color: #806b73; }
.hero-search .btn i { color: currentColor; }
@media (max-width: 480px) {
  .hero-search { padding-left: 1rem; }
  .hero-search .btn span { display: none; }
  .hero-search .btn { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
}

@media (max-width: 767.98px) {
  .hero-video {
    opacity: .48;
    filter: saturate(.78) contrast(1.1) brightness(.64);
  }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(13, 2, 7, .90) 0%, rgba(38, 7, 19, .78) 52%, rgba(97, 25, 49, .54) 100%),
      linear-gradient(180deg, rgba(12, 2, 7, .50) 0%, rgba(97, 25, 49, .24) 36%, rgba(8, 1, 4, .84) 100%),
      radial-gradient(80% 56% at 60% 38%, rgba(160, 82, 105, .14), transparent 72%);
  }
  .hero-sub,
  .hero-trust {
    color: rgba(255, 249, 241, .86);
  }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-cta .btn {
  --btn-bg: linear-gradient(135deg, #fff5e8 0%, #eec783 100%);
  --btn-fg: #2b0715;
  color: #2b0715;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .62);
}
.hero-cta .btn:hover { color: #2b0715; }
.hero-cta .btn--ghost {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff8ee;
  color: #fff8ee;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 38px -24px rgba(0, 0, 0, .72);
}
.hero-cta .btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff8ee;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255, 247, 235, .76);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: #f0c77c; }

/* Hero book stack visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.book-fan { position: relative; width: min(400px, 82vw); aspect-ratio: 1 / 1; }
.book-fan .bk {
  position: absolute;
  width: 46%;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--sh-book);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  will-change: transform;
}
.book-fan .bk-1 { left: 4%;  top: 14%; transform: rotate(-11deg); z-index: 2; }
.book-fan .bk-2 { left: 27%; top: 2%;  transform: rotate(2deg);  z-index: 4; width: 50%; }
.book-fan .bk-3 { left: 52%; top: 16%; transform: rotate(12deg); z-index: 2; }
.book-fan:hover .bk-1 { transform: rotate(-16deg) translate(-14px, -8px); }
.book-fan:hover .bk-2 { transform: rotate(0deg) translateY(-18px) scale(1.03); }
.book-fan:hover .bk-3 { transform: rotate(17deg) translate(14px, -8px); }

.hero-book-showcase {
  position: relative;
  width: min(610px, 90vw);
  aspect-ratio: 1.32 / .92;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: .25rem 0 0;
  perspective: 1500px;
}
.hero-book-showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 0;
  bottom: 72px;
  width: 78%;
  height: 34px;
  border-radius: 50%;
  background: rgba(45, 24, 11, .15);
  filter: blur(14px);
  pointer-events: none;
  transform: translateX(-50%);
}
.hero-book-pedestal {
  position: absolute;
  left: 51%;
  bottom: -100px;
  z-index: 1;
  width: min(610px, 104%);
  height: auto;
  pointer-events: none;
  transform: translateX(-52%);
  filter: contrast(1.05) saturate(1.02) drop-shadow(0 17px 22px rgba(56, 31, 14, .22));
}
.hero-book-swiper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: min(390px, 66vw);
  padding: 14px 34px 82px;
  margin: -14px -34px -54px;
}
.hero-book-swiper .swiper-wrapper { align-items: center; }
.hero-book-swiper .swiper-slide {
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(.82);
  pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.hero-book-swiper .swiper-slide:not(.swiper-slide-prev):not(.swiper-slide-active):not(.swiper-slide-next) .hero-book-card,
.hero-book-swiper .swiper-slide:not(.swiper-slide-prev):not(.swiper-slide-active):not(.swiper-slide-next) .hero-book-card::before,
.hero-book-swiper .swiper-slide:not(.swiper-slide-prev):not(.swiper-slide-active):not(.swiper-slide-next) .hero-book-card::after,
.hero-book-swiper .swiper-slide:not(.swiper-slide-prev):not(.swiper-slide-active):not(.swiper-slide-next) .hero-book-cover {
  opacity: 0 !important;
  visibility: hidden !important;
}
.hero-book-swiper .swiper-slide-prev,
.hero-book-swiper .swiper-slide-next {
  opacity: .92;
  visibility: visible;
  pointer-events: auto;
}
.hero-book-swiper .swiper-slide-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1.04);
  z-index: 4;
}
.hero-book-card {
  position: relative;
  width: clamp(156px, 25vw, 228px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  perspective: 1100px;
  transform-style: preserve-3d;
  transition: transform .65s var(--ease), filter .45s var(--ease);
}
.hero-book-card::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 7%;
  bottom: -15px;
  height: 24px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(29, 16, 8, .24);
  filter: blur(13px);
  transform: translateZ(-1px);
}
.hero-book-card::after {
  content: "";
  position: absolute;
  top: 4.4%;
  right: -14px;
  z-index: 1;
  width: 24px;
  height: 91%;
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(90deg, #d8c49a, #fff6df 32%, #d8bd86 100%),
    repeating-linear-gradient(0deg, rgba(111,75,34,.24) 0 1px, transparent 1px 7px);
  box-shadow:
    inset 6px 0 10px rgba(76,42,17,.16),
    8px 12px 22px -18px rgba(24,12,20,.5);
  transform: rotateY(74deg) translateZ(-2px);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}
.hero-book-card:focus-visible {
  outline: 3px solid rgba(224, 122, 30, .7);
  outline-offset: 8px;
  border-radius: var(--r-md);
}
.hero-book-cover {
  position: relative;
  z-index: 2;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 22px 32px 32px 22px / 20px 30px 30px 20px;
  overflow: hidden;
  clip-path: inset(0 round 22px 32px 32px 22px);
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: var(--sh-book);
  transform-origin: left center;
  transform: translateZ(0);
  transition: transform .65s var(--ease), box-shadow .65s var(--ease), filter .45s var(--ease);
}
.hero-book-cover::before,
.hero-book-cover::after { border-radius: inherit; }
.hero-book-swiper .swiper-slide-prev .hero-book-cover {
  transform: translate(14px, 44px) rotateY(-22deg) rotateZ(-1.5deg) scale(.82);
  box-shadow: -12px 24px 42px -24px rgba(24, 12, 20, .48);
}
.hero-book-swiper .swiper-slide-next .hero-book-cover {
  transform: translate(-14px, 44px) rotateY(18deg) rotateZ(1.5deg) scale(.82);
  box-shadow: 12px 24px 42px -24px rgba(24, 12, 20, .48);
}
.hero-book-swiper .swiper-slide-active .hero-book-cover {
  transform: translateY(10px) rotateY(-7deg) rotateX(1deg) scale(1.06);
  box-shadow: -18px 34px 58px -23px rgba(24, 12, 20, .5), 0 18px 22px -25px rgba(24, 12, 20, .56);
}
.hero-book-swiper .swiper-slide-prev .hero-book-card::after {
  right: -8px;
  opacity: 0;
  transform: rotateY(66deg) translateZ(-2px) scaleX(.82);
}
.hero-book-swiper .swiper-slide-next .hero-book-card::after {
  right: -12px;
  opacity: 0;
  transform: rotateY(76deg) translateZ(-2px);
}
.hero-book-swiper .swiper-slide-active .hero-book-card::after {
  right: -12px;
  opacity: .75;
  transform: rotateY(76deg) translateZ(-2px);
}
.hero-book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 15%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42), rgba(255,255,255,.2) 36%, rgba(0,0,0,.08) 62%, transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 2px, transparent 2px 8px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,.44) 48%, transparent 58%),
    linear-gradient(90deg, transparent 83%, rgba(0,0,0,.18));
  transform: translateX(-125%);
  transition: transform .85s var(--ease);
  pointer-events: none;
}
.hero-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transform: translateZ(0);
}
.hero-book-card:hover .hero-book-cover,
.hero-book-card:focus-visible .hero-book-cover {
  transform: translateY(-10px) rotateY(-14deg) rotateX(2deg) scale(1.08);
  box-shadow: -22px 34px 62px -24px rgba(24, 12, 20, .5), 0 0 0 1px rgba(255,255,255,.32);
  filter: saturate(1.04);
}
.hero-book-card:hover::after,
.hero-book-card:focus-visible::after {
  right: -18px;
  opacity: 1;
  transform: rotateY(78deg) translateZ(-2px);
}
.hero-book-card:hover .hero-book-cover::after,
.hero-book-card:focus-visible .hero-book-cover::after { transform: translateX(125%); }
.hero-book-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 46px;
  transform: translateY(4px);
}
.hero-book-controls .swiper-pagination {
  width: auto !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.hero-book-nav { flex: 0 0 auto; }

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--sh-lg);
  z-index: 6;
}
.hero-badge i { font-size: 1.05rem; }
.hero-badge b { display: block; font-size: .88rem; color: var(--ink-strong); font-family: var(--f-body); }
.hero-badge small { font-size: .7rem; color: var(--muted-2); }
.hero-badge--a { top: 4%; left: -2%; }
.hero-badge--a i { color: var(--orange); }
.hero-badge--b { bottom: 8%; right: -2%; }
.hero-badge--b i { color: var(--blue); }
@media (max-width: 575.98px) {
  .hero-badge--a { left: -1%; }
  .hero-badge--b { right: -1%; }
  .hero-badge { padding: .55rem .8rem; }
  .hero-book-showcase { width: min(350px, 90vw); aspect-ratio: auto; }
  .hero-book-showcase::before { bottom: 78px; width: 82%; height: 28px; }
  .hero-book-pedestal { bottom: -10px; width: 106%; }
  .hero-book-swiper { min-height: 305px; padding: 18px 22px 74px; margin: -18px -22px -48px; }
  .hero-book-card { width: clamp(138px, 46vw, 172px); }
  .hero-book-swiper .swiper-slide-prev .hero-book-cover,
  .hero-book-swiper .swiper-slide-next .hero-book-cover {
    transform: translateY(36px) scale(.8);
  }
}

/* ---------------------------------------------------------------- Counters */
.stat-strip {
  position: relative;
  z-index: 5;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  padding: clamp(1.4rem, 3vw, 2.1rem) 1rem;
  text-align: center;
  transition: background .4s var(--ease);
}
.stat:hover { background: #fff; }
.stat i {
  font-size: 1.3rem;
  margin-bottom: .6rem;
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: .45rem;
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

/* ---------------------------------------------------------------- Book card */
.book {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.book-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg-soft);
  box-shadow: var(--sh-md);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.book-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
/* Catalogue cards are created after the initial lazy-image pass. Never leave
   a dynamically inserted cover invisible when its load event has already run. */
.book-media img.lazy-img { opacity: 1; }
.book:hover .book-media {
  transform: translateY(-10px) rotateY(-9deg) rotateX(2deg);
  box-shadow: -18px 30px 55px -22px rgba(24, 12, 20, .45);
}
.book:hover .book-media img { transform: scale(1.05); }

/* book spine sheen */
.book-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 58%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.book:hover .book-media::after { transform: translateX(120%); }

.book-tags { position: absolute; top: .6rem; left: .6rem; display: grid; gap: .35rem; z-index: 3; }
.book-tags .chip { box-shadow: var(--sh-sm); backdrop-filter: blur(6px); }

.book-fav {
  position: absolute;
  top: .6rem; right: .6rem;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  color: var(--maroon);
  font-size: .8rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(.7);
  transition: all .4s var(--ease);
}
.book:hover .book-fav { opacity: 1; transform: none; }
.book-fav:hover, .book-fav.on { background: var(--maroon); color: #fff; }
.book-fav.on i { font-weight: 900; }

.book-hover {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 2.5rem .7rem .7rem;
  display: flex;
  gap: .45rem;
  background: linear-gradient(to top, rgba(28, 12, 20, .88), rgba(28, 12, 20, .0));
  transform: translateY(100%);
  opacity: 0;
  transition: all .5s var(--ease);
}
.book:hover .book-hover { transform: none; opacity: 1; }
.book-hover .btn { flex: 1; padding: .6rem .5rem; font-size: .76rem; }

.book-body { padding-top: .95rem; display: flex; flex-direction: column; flex: 1; }
.book-cat {
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: .3rem;
}
.book-title {
  font-family: var(--f-display);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .25rem;
  color: var(--ink-strong);
}
.book-title a { color: inherit; background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease), color .3s var(--ease); }
.book:hover .book-title a { color: var(--maroon); background-size: 100% 1.5px; }
.book-author { font-size: .82rem; color: var(--muted); margin: 0 0 .55rem; }
.book-author a { color: var(--muted); }
.book-author a:hover { color: var(--maroon); }
.book-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .55rem;
}
.book-body { min-width: 0; }
.book-title, .book-author { overflow-wrap: anywhere; }
.book-price { font-weight: 600; color: var(--maroon); font-size: .98rem; }
.book-price del { color: var(--muted-2); font-weight: 400; font-size: .8rem; margin-left: .35rem; }

/* ---------------------------------------------------------------- Sliders */
/* Clip slides to the container, but pad the box so card lift-shadows
   and hover transforms are not visually cut off. */
.swiper {
  overflow: hidden;
  padding: 14px 14px 6px;
  margin: -14px -14px -6px;
}
.swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }

.slider-wrap { position: relative; }
.slider-nav { display: flex; gap: .5rem; }
.snav {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--maroon);
  cursor: pointer;
  transition: all .35s var(--ease);
  font-size: .9rem;
}
.snav:hover { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); transform: translateY(-2px); }
.snav.swiper-button-disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.sec--dark .snav { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.sec--dark .snav:hover { background: #fff; color: var(--maroon); }

.slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  flex-wrap: wrap;
}
.slider-head .sec-head { margin: 0; text-align: left; }

.swiper-pagination { position: static !important; margin-top: 2rem; }
.swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--maroon-300);
  opacity: .35;
  transition: all .35s var(--ease);
}
.swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 4px; background: var(--grad-brand); }
.sec--dark .swiper-pagination-bullet { background: #fff; }
.sec--dark .swiper-pagination-bullet-active { background: var(--orange-200); }

/* ---------------------------------------------------------------- Latest releases bookshelf */
.latest-shelf-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 92px;
  background:
    radial-gradient(760px 360px at 12% 10%, rgba(224, 122, 30, .11), transparent 62%),
    radial-gradient(680px 360px at 92% 88%, rgba(23, 138, 168, .08), transparent 64%),
    linear-gradient(180deg, #fffaf2 0%, #fffdf8 52%, #fff8ed 100%);
}
.latest-shelf-section::before,
.latest-shelf-section::after {
  content: "";
  position: absolute;
  width: clamp(130px, 17vw, 260px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .34;
  background:
    radial-gradient(ellipse at 48% 22%, rgba(197, 126, 46, .42) 0 14%, transparent 15%),
    radial-gradient(ellipse at 70% 34%, rgba(197, 126, 46, .34) 0 12%, transparent 13%),
    radial-gradient(ellipse at 32% 46%, rgba(197, 126, 46, .3) 0 13%, transparent 14%),
    radial-gradient(ellipse at 58% 62%, rgba(197, 126, 46, .28) 0 12%, transparent 13%);
}
.latest-shelf-section::before {
  top: -34px;
  left: -42px;
  transform: rotate(-23deg);
}
.latest-shelf-section::after {
  right: -48px;
  bottom: -58px;
  transform: rotate(146deg);
}
.latest-shelf-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: clamp(1.7rem, 3.5vw, 2.8rem);
}
.latest-shelf-head .sec-head {
  max-width: 690px;
  margin-bottom: 0;
}
.latest-shelf-head .eyebrow {
  display: inline-flex;
  padding: .55rem 1.35rem;
  border-radius: 999px;
  background: #fff0e7;
  border: 1px solid rgba(224, 122, 30, .2);
  box-shadow: 0 12px 30px -24px rgba(116, 47, 37, .45);
}
.latest-shelf-head h2 {
  margin-top: .9rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: 0;
  line-height: .96;
}
.latest-shelf-head p {
  max-width: 560px;
  margin-inline: auto;
  color: #66636a;
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  line-height: 1.45;
}
.latest-flourish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  width: min(180px, 46vw);
  margin-top: 1.25rem;
  color: var(--orange);
}
.latest-flourish::before,
.latest-flourish::after {
  content: "";
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 122, 30, .58));
}
.latest-flourish::after { background: linear-gradient(270deg, transparent, rgba(224, 122, 30, .58)); }
.latest-shelf-nav {
  position: absolute;
  top: clamp(4.2rem, 8vw, 8.4rem);
  right: 0;
  z-index: 4;
}
.latest-shelf-nav .snav {
  width: 58px;
  height: 58px;
  background: rgba(255, 253, 248, .86);
  border: 1px solid rgba(74, 20, 43, .16);
  color: var(--maroon);
  box-shadow: 0 18px 32px -24px rgba(74, 20, 43, .45);
}
.latest-shelf-nav .latest-shelf-next {
  background: var(--maroon);
  color: #fff;
  border-color: transparent;
}
.latest-shelf-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 clamp(.2rem, 1vw, .6rem) 1rem;
  margin: 0;
}
.latest-shelf-carousel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(252px, 25vw, 382px);
  height: clamp(34px, 4.8vw, 56px);
  border-radius: 7px 7px 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), transparent 30%),
    repeating-linear-gradient(0deg, rgba(106, 55, 19, .06) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, #e7b36f 0%, #f5d092 18%, #cf8540 52%, #eeb979 78%, #bd7432 100%);
  box-shadow:
    inset 0 1px rgba(255,255,255,.62),
    inset 0 -9px 16px rgba(91, 42, 12, .18),
    0 18px 30px -22px rgba(62, 31, 12, .62);
  pointer-events: none;
  z-index: 0;
}
.latest-shelf-carousel .swiper-wrapper {
  align-items: stretch;
  z-index: 1;
}
.latest-shelf-carousel .swiper-slide { height: auto; }
.latest-book {
  --cover-w: clamp(132px, 13.8vw, 224px);
  display: grid;
  grid-template-rows: clamp(292px, 29vw, 432px) 1fr;
  height: 100%;
  min-width: 0;
}
.latest-book-stage {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0 .2rem clamp(36px, 4.7vw, 58px);
  perspective: 900px;
}
.latest-book-stage::after {
  content: "";
  position: absolute;
  bottom: clamp(30px, 4.4vw, 50px);
  left: 50%;
  width: calc(var(--cover-w) * 1.05);
  height: 18px;
  border-radius: 50%;
  background: rgba(64, 28, 8, .22);
  filter: blur(8px);
  transform: translateX(-50%);
  z-index: 0;
}
.latest-book-cover {
  position: relative;
  z-index: 1;
  width: var(--cover-w);
  aspect-ratio: 2 / 3;
  display: block;
  border-radius: 2px 8px 7px 2px;
  transform: rotate(var(--tilt)) rotateY(-8deg);
  transform-origin: 50% 100%;
  box-shadow:
    -10px 12px 18px -16px rgba(28, 10, 6, .8),
    18px 22px 30px -24px rgba(28, 10, 6, .78);
  transition: transform .42s var(--ease), box-shadow .42s var(--ease);
}
.latest-book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 46%, transparent),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(0,0,0,.12));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}
.latest-book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset -10px 0 18px rgba(48, 16, 8, .12);
  pointer-events: none;
  z-index: 3;
}
.latest-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #f3eadb;
}
.latest-book:hover .latest-book-cover,
.latest-book-cover:focus-visible {
  transform: translateY(-9px) rotate(var(--tilt)) rotateY(-5deg);
  box-shadow:
    -12px 16px 22px -17px rgba(28, 10, 6, .82),
    22px 32px 38px -25px rgba(28, 10, 6, .78);
}
.latest-book-badge {
  position: absolute;
  top: clamp(20px, 3vw, 42px);
  left: calc(50% - (var(--cover-w) * .38));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .62rem 1rem;
  border-radius: 999px;
  background: #f47b16;
  color: #fff;
  box-shadow: 0 14px 22px -16px rgba(90, 34, 8, .8);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.latest-book-badge.chip--green {
  background: #e8fff7;
  color: #126648;
  border: 1px solid rgba(18, 102, 72, .12);
}
.latest-book-badge.chip--orange {
  background: #fff6ea;
  color: #d95d12;
  border: 1px solid rgba(224, 122, 30, .18);
}
.latest-book-info {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 2.2vw, 2rem) clamp(1rem, 2vw, 1.55rem) .2rem;
}
.latest-book-info::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: .2rem;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(74, 20, 43, .14) 14%, rgba(74, 20, 43, .14) 84%, transparent);
}
.latest-shelf-carousel .swiper-slide:first-child .latest-book-info::before { display: none; }
.latest-book-info .book-cat {
  color: var(--orange);
  font-size: .82rem;
  letter-spacing: .04em;
  margin-bottom: .55rem;
}
.latest-book-title {
  margin: 0 0 .35rem;
  color: #1e1d22;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.12;
}
.latest-book-title a { color: inherit; }
.latest-book-title a:hover { color: var(--maroon); }
.latest-rating {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: .9rem 0 1.15rem;
}
.latest-rating .stars {
  color: #f47b16;
  font-size: .82rem;
}
.latest-book-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.latest-book-foot .book-price {
  font-size: 1.18rem;
  font-weight: 800;
}
.latest-book-foot .book-price del {
  font-size: .86rem;
  margin-left: .55rem;
}
.latest-book-foot .btn {
  min-width: 92px;
  justify-content: center;
  border-radius: 999px;
  color: var(--maroon);
  background: rgba(255,255,255,.58);
  border-color: rgba(74, 20, 43, .38);
  box-shadow: none;
}
.latest-book-foot .btn:hover {
  color: #fff;
  background: var(--maroon);
  border-color: var(--maroon);
}

@media (max-width: 1199.98px) {
  .latest-shelf-carousel::before { top: clamp(244px, 31vw, 338px); }
  .latest-book { --cover-w: clamp(138px, 20vw, 190px); grid-template-rows: clamp(282px, 37vw, 386px) 1fr; }
}

@media (max-width: 767.98px) {
  .latest-shelf-section { padding-block: clamp(4rem, 11vw, 5rem); }
  .latest-shelf-head {
    margin-bottom: 1.35rem;
    padding-bottom: 4.6rem;
  }
  .latest-shelf-head h2 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .latest-shelf-head p { font-size: 1rem; }
  .latest-shelf-nav {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
  }
  .latest-shelf-nav .snav {
    width: 50px;
    height: 50px;
  }
  .latest-shelf-carousel {
    overflow: hidden;
    padding-inline: 0;
  }
  .latest-shelf-carousel::before {
    left: 4%;
    right: 4%;
    top: 292px;
    height: 40px;
  }
  .latest-book {
    --cover-w: min(210px, 58vw);
    grid-template-rows: 338px auto;
  }
  .latest-book-stage { padding-bottom: 48px; }
  .latest-book-stage::after { bottom: 41px; }
  .latest-book-info {
    margin-inline: auto;
    width: min(310px, 100%);
    padding: 1.35rem .75rem 0;
    text-align: center;
  }
  .latest-book-info::before { display: none; }
  .latest-rating,
  .latest-book-foot {
    justify-content: center;
  }
  .latest-book-foot {
    flex-wrap: wrap;
    gap: .9rem 1.1rem;
  }
}

@media (max-width: 420px) {
  .latest-book {
    --cover-w: min(188px, 62vw);
    grid-template-rows: 314px auto;
  }
  .latest-shelf-carousel::before { top: 270px; }
  .latest-book-badge {
    left: calc(50% - (var(--cover-w) * .42));
    top: 28px;
    min-height: 34px;
    padding: .5rem .78rem;
    font-size: .66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-book-cover { transition: none; }
}

/* ---------------------------------------------------------------- Bestseller row card */
#best-sellers .grid--bestsellers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.bs-card {
  display: grid;
  grid-template-columns: clamp(84px, 30%, 112px) minmax(0, 1fr);
  gap: clamp(.85rem, 1.5vw, 1.1rem);
  padding: clamp(.9rem, 1.8vw, 1.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.bs-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.bs-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(74,20,43,.14); }
.bs-card:hover::before { transform: scaleY(1); transform-origin: top; }
.bs-cover {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 2/3;
  align-self: start;
  background: var(--bg-soft);
  box-shadow: var(--sh-md);
  position: relative;
}
.bs-cover-link { display: block; height: 100%; }
.bs-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bs-card:hover .bs-cover img { transform: scale(1.07); }
.bs-rank {
  position: absolute;
  top: -6px; left: -6px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .88rem;
  box-shadow: var(--sh-md);
  z-index: 2;
}
.bs-body { display: flex; flex-direction: column; min-width: 0; }
.bs-body h3, .bs-body .book-author { overflow-wrap: anywhere; }
.bs-body .book-cat { min-height: 1em; margin-bottom: .35rem; }
.bs-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.65em;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.32;
  margin: 0 0 .25rem;
}
.bs-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .28rem;
  min-height: 1.35rem;
  margin-top: .1rem;
}
.bs-card .platform-card-prices { margin: .1rem 0 .35rem !important; }
.bs-card .book-foot { align-items: flex-end; }
.bs-card .btn { white-space: nowrap; }
.bs-body h3 a { color: inherit; }
.bs-body h3 a:hover { color: var(--maroon); }

@media (max-width: 1099.98px) {
  #best-sellers .grid--bestsellers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719.98px) {
  #best-sellers .grid--bestsellers { grid-template-columns: minmax(0, 1fr); }
  .bs-card { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 419.98px) {
  .bs-card { grid-template-columns: 82px minmax(0, 1fr); gap: .8rem; padding: .85rem; }
  .bs-title { font-size: .96rem; }
  .bs-card .book-foot { gap: .4rem; }
}

/* ---------------------------------------------------------------- Upcoming / countdown */
.up-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--sh-xl);
  height: 100%;
}
@media (min-width: 576px) { .up-card { grid-template-columns: 150px 1fr; } }
.up-cover { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-book); aspect-ratio: 2/3; }
.up-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.up-card:hover .up-cover img { transform: scale(1.06); }
.up-card h3 { margin-bottom: .35rem; }
.up-meta { font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }

.countdown { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.1rem 0 1.3rem; }
.cd-cell {
  min-width: 62px;
  padding: .6rem .5rem;
  text-align: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.cd-cell b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cd-cell span {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------- Author card */
.author-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.author-card:hover { transform: translateY(-10px); box-shadow: var(--sh-xl); }
.author-media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.author-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.author-card:hover .author-media img { transform: scale(1.08); }
.author-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 12, 28, .82) 0%, rgba(46, 12, 28, .18) 42%, transparent 68%);
}
.author-onmedia { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.25rem; z-index: 2; }
.author-onmedia h3 { color: #fff; font-size: 1.22rem; margin: 0 0 .15rem; }
.author-onmedia p { color: rgba(255, 255, 255, .78); font-size: .8rem; margin: 0; }
.author-socials {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  display: grid;
  gap: .4rem;
}
.author-socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  color: var(--maroon);
  font-size: .78rem;
  opacity: 0;
  transform: translateX(14px);
  transition: all .45s var(--ease);
}
.author-card:hover .author-socials a { opacity: 1; transform: none; }
.author-card:hover .author-socials a:nth-child(2) { transition-delay: .06s; }
.author-card:hover .author-socials a:nth-child(3) { transition-delay: .12s; }
.author-socials a:hover { background: var(--orange); color: #fff; }
.author-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.author-body p { font-size: .88rem; margin-bottom: 1rem; }
.author-stats {
  display: flex;
  gap: 1.2rem;
  padding: .85rem 0;
  margin-bottom: 1rem;
  border-block: 1px solid var(--line-soft);
}
.author-stats div { text-align: center; flex: 1; }
.author-stats b { display: block; font-family: var(--f-display); color: var(--maroon); font-size: 1.15rem; }
.author-stats span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.author-body .tlink { margin-top: auto; }

/* ---------------------------------------------------------------- Publication process */
.process-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.3rem, 5vw, 4rem);
}
.process-intro .sec-head { margin: 0; }
.process-duration {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .2rem 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.process-duration > i {
  grid-row: 1 / 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
}
.process-duration span,
.process-duration small {
  color: var(--muted-2);
  line-height: 1.35;
}
.process-duration span {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.process-duration strong {
  color: var(--maroon);
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.15;
}
.process-duration small { font-size: .76rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: process;
}
.process-card {
  position: relative;
  min-width: 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.25rem, 2.2vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.process-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.process-card:hover {
  transform: translateY(-7px);
  border-color: rgba(74,20,43,.18);
  box-shadow: var(--sh-lg);
}
.process-card:hover::before { transform: scaleX(1); }
.process-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  margin-bottom: 1.25rem;
}
.process-step {
  color: rgba(74,20,43,.12);
  font-family: var(--f-display);
  font-size: clamp(2.15rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color .45s var(--ease);
}
.process-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74,20,43,.11);
  border-radius: 50%;
  color: var(--maroon);
  background: var(--maroon-050);
  transition: color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
}
.process-card:hover .process-step { color: rgba(74,20,43,.22); }
.process-card:hover .process-icon {
  color: #fff;
  background: var(--grad-brand);
  transform: rotate(-5deg) scale(1.06);
}
.process-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.process-phase {
  display: block;
  margin-bottom: .45rem;
  color: var(--orange);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.process-card h3 {
  margin-bottom: .55rem;
  font-size: 1.2rem;
}
.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-card { min-height: 250px; }
}
@media (max-width: 767.98px) {
  .process-intro {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1.5rem;
  }
  .process-duration { max-width: 360px; }
}
@media (max-width: 575.98px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 0; }
}

/* ---------------------------------------------------------------- Feature (why choose) */
.feat {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  height: 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  z-index: 1;
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--maroon-050), #fff 55%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.feat:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: rgba(74, 20, 43, .13); }
.feat:hover::before { opacity: 1; }
.feat-ic {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.28rem;
  margin-bottom: 1.1rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.feat:hover .feat-ic { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }
.feat-ic.g2 { background: var(--grad-leaf); box-shadow: 0 18px 40px -16px rgba(23,138,168,.5); }
.feat-ic.g3 { background: var(--grad-accent); box-shadow: 0 18px 40px -16px rgba(224,122,30,.5); }
.feat-ic.g4 { background: var(--grad-sky); box-shadow: 0 18px 40px -16px rgba(26,106,74,.5); }
.feat h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.feat p { font-size: .89rem; margin: 0; }
.feat-no {
  position: absolute;
  top: 1rem; right: 1.3rem;
  font-family: var(--f-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(74, 20, 43, .05);
  line-height: 1;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Testimonials */
.quote-card {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.3rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--sh-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.quote-card:hover { transform: translateY(-7px); background: rgba(255, 255, 255, .15); }
.quote-mark {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: .8;
  color: var(--orange-200);
  opacity: .55;
  margin-bottom: .4rem;
}
.quote-card p {
  font-size: .96rem;
  color: rgba(255, 255, 255, .86);
  line-height: 1.8;
  flex: 1;
}
.quote-by { display: flex; align-items: center; gap: .85rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.14); }
.quote-by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.quote-by b { display: block; color: #fff; font-size: .92rem; font-family: var(--f-body); font-weight: 600; }
.quote-by span { font-size: .76rem; color: rgba(255, 255, 255, .6); }

/* Light variant */
.quote-card--light {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  backdrop-filter: none;
}
.quote-card--light:hover { background: #fff; box-shadow: var(--sh-lg); }
.quote-card--light p { color: var(--muted); }
.quote-card--light .quote-mark { color: var(--maroon-300); }
.quote-card--light .quote-by { border-color: var(--line); }
.quote-card--light .quote-by b { color: var(--ink-strong); }
.quote-card--light .quote-by span { color: var(--muted-2); }

/* ---------------------------------------------------------------- Video cards */
.vid {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--sh-md);
  display: block;
  background: var(--maroon);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.vid:hover { transform: translateY(-8px); box-shadow: var(--sh-xl); }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.vid:hover img { transform: scale(1.08); }
.vid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 10, 24, .86), rgba(38, 10, 24, .12) 60%);
}
.vid-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--maroon);
  font-size: 1.05rem;
  z-index: 3;
  transition: all .45s var(--ease);
}
.vid-play::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  animation: ping 2.2s var(--ease-io) infinite;
}
@keyframes ping { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.vid:hover .vid-play { background: var(--orange); color: #fff; transform: translate(-50%, -50%) scale(1.1); }
.vid-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.35rem; z-index: 3; }
.vid-cap b { display: block; color: #fff; font-family: var(--f-display); font-size: 1.05rem; }
.vid-cap span { font-size: .78rem; color: rgba(255, 255, 255, .68); }

/* ---------------------------------------------------------------- Blog card */
.post {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  height: 100%;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.post:hover { transform: translateY(-9px); box-shadow: var(--sh-xl); border-color: rgba(74, 20, 43, .13); }
.post-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post:hover .post-media img { transform: scale(1.07); }
.post-date {
  position: absolute;
  top: .8rem; left: .8rem;
  z-index: 2;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  text-align: center;
  line-height: 1;
  box-shadow: var(--sh-sm);
}
.post-date b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--maroon); }
.post-date span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.post-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 1rem; font-size: .74rem; color: var(--muted-2); margin-bottom: .6rem; flex-wrap: wrap; }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta i { color: var(--orange); }
.post h3 { font-size: 1.13rem; margin-bottom: .5rem; line-height: 1.34; }
.post h3 a { color: inherit; }
.post:hover h3 a { color: var(--maroon); }
.post p { font-size: .88rem; margin-bottom: 1rem; }
.post .tlink { margin-top: auto; }

/* ---------------------------------------------------------------- Events */
.event {
  display: grid;
  gap: 1.3rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  position: relative;
  overflow: hidden;
}
@media (min-width: 576px) { .event { grid-template-columns: 92px 1fr auto; } }
.event:hover { transform: translateX(6px); box-shadow: var(--sh-lg); border-color: rgba(74, 20, 43, .14); }
.event-date {
  display: grid;
  place-items: center;
  padding: .85rem .6rem;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--sh-brand);
  min-width: 92px;
}
.event-date b { font-family: var(--f-display); font-size: 1.7rem; }
.event-date span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.event-body h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.event-body h3 a { color: inherit; }
.event-body h3 a:hover { color: var(--maroon); }
.event-info { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .8rem; color: var(--muted); }
.event-info span { display: inline-flex; align-items: center; gap: .4rem; }
.event-info i { color: var(--green-600); }

/* ---------------------------------------------------------------- Newsletter */
.news-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4rem);
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(224,122,30,.30), transparent 62%),
    radial-gradient(680px 340px at 96% 100%, rgba(23,138,168,.28), transparent 60%),
    linear-gradient(140deg, var(--maroon) 0%, #5e1a35 60%, #3d1024 100%);
  box-shadow: var(--sh-xl);
  isolation: isolate;
}
.news-wrap h2 { color: #fff; }
.news-wrap p { color: rgba(255, 255, 255, .76); }
.news-form {
  display: flex;
  gap: .5rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px);
  border-radius: var(--r-pill);
  padding: .4rem .4rem .4rem 1.3rem;
  max-width: 520px;
}
.news-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--f-body);
  font-size: .93rem;
  padding: .8rem .2rem;
}
.news-form input::placeholder { color: rgba(255, 255, 255, .55); }
.news-note { font-size: .76rem; color: rgba(255, 255, 255, .55); margin: .9rem 0 0; }
.news-note i { color: var(--green-300); }
@media (max-width: 420px) {
  .news-form { flex-direction: column; border-radius: var(--r-lg); padding: .9rem; }
  .news-form input { padding-inline: .6rem; }
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  position: relative;
  background: 
    radial-gradient(ellipse at 10% 0%, rgba(120,65,28,.16), transparent 31%),
    radial-gradient(ellipse at 91% 72%, rgba(112,46,38,.12), transparent 28%),
    repeating-linear-gradient(0deg, rgba(95,57,25,.026) 0 1px, transparent 1px 5px),
    linear-gradient(105deg, #2a0a19 0%, var(--maroon) 45%, #34122a 100%);
  color: rgba(255, 255, 255, .68);
  padding-top: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(224,122,30,.16), transparent 60%),
    radial-gradient(600px 300px at 92% 30%, rgba(23,138,168,.14), transparent 60%);
  pointer-events: none;
}
.site-footer .shell { position: relative; z-index: 2; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) minmax(150px, .72fr) minmax(150px, .72fr) minmax(260px, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.foot-brand {
  min-width: 0;
  max-width: 430px;
}

.foot-brand-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.foot-brand img { 
  height: 80px; 
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}
.foot-brand-text h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.1;
}
.foot-brand-text .foot-tagline {
  margin: .2rem 0 0;
  font-size: .78rem;
  color: var(--orange-200);
  font-style: italic;
  letter-spacing: .08em;
}
.foot-brand p { 
  font-size: .9rem; 
  color: rgba(255, 255, 255, .62);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: .8rem;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.foot-list a {
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s var(--ease);
  font-family: Georgia, serif;
}
.foot-list a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .72rem;
  color: var(--gold);
  opacity: 0;
  margin-right: -.85rem;
  transition: all .3s var(--ease);
}
.foot-list a:hover { 
  color: #fff; 
  transform: translateX(6px); 
  text-shadow: 0 0 8px rgba(255,255,255,.3);
}
.foot-list a:hover::before { opacity: 1; margin-right: 0; }

.foot-newsletter {
  min-width: 0;
}
.foot-newsletter p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.foot-newsletter-form {
  margin-bottom: .8rem;
}
.foot-newsletter-input {
  display: flex;
  gap: .5rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-pill);
  padding: .3rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.foot-newsletter-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 160, 84, .15);
}
.foot-newsletter-input input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  color: #fff;
  font-size: .88rem;
  font-family: var(--f-body);
  padding: .7rem 1rem;
}
.foot-newsletter-input input::placeholder { color: rgba(255, 255, 255, .45); }
.foot-newsletter-input button {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: var(--gold);
  color: #2a0a19;
  cursor: pointer;
  font-size: .9rem;
  transition: all .3s var(--ease);
}
.foot-newsletter-input button:hover { 
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(198, 160, 84, .4);
}
.foot-newsletter-note {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
  margin: 0;
}
.foot-newsletter-note i {
  color: var(--gold);
  margin-right: .4rem;
}

.foot-social { 
  display: flex; 
  gap: .6rem; 
  margin-top: 1.4rem; 
}
.foot-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .92rem;
  transition: all .35s var(--ease);
}
.foot-social a:hover { 
  background: var(--gold); 
  border-color: var(--gold);
  color: #2a0a19;
  transform: translateY(-4px); 
  box-shadow: 0 8px 20px -4px rgba(198, 160, 84, .5); 
}

.foot-bar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.foot-bar-left {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.foot-bar p { 
  margin: 0; 
  color: rgba(255, 255, 255, .55); 
  font-family: Georgia, serif;
}
.foot-love {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.foot-love i {
  color: #e74c3c;
  animation: heartbeat 1.5s ease-in-out infinite;
}
.foot-developer {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.foot-developer a {
  color: var(--gold);
  text-decoration: none;
  transition: color .3s ease, text-decoration .3s ease;
}
.foot-developer a:hover {
  color: #fff;
  text-decoration: underline;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.foot-bar nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-bar a { 
  color: rgba(255, 255, 255, .62); 
  font-size: .82rem;
  transition: color .3s ease;
}
.foot-bar a:hover { color: var(--gold); }

@media (max-width: 1099.98px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }
  .foot-brand {
    max-width: 560px;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 3.5rem;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .foot-brand {
    max-width: 100%;
  }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .foot-bar nav { width: 100%; }
}

@media (max-width: 419.98px) {
  .foot-brand-inner {
    align-items: flex-start;
  }
  .foot-brand img {
    width: 64px;
    height: 64px;
  }
  .foot-social {
    flex-wrap: wrap;
  }
  .foot-newsletter-input {
    border-radius: var(--r-md);
  }
}

/* ---------------------------------------------------------------- Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(224,122,30,.13), transparent 60%),
    radial-gradient(700px 380px at 88% 100%, rgba(23,138,168,.12), transparent 60%),
    var(--grad-warm);
  text-align: center;
  isolation: isolate;
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { max-width: 62ch; margin-inline: auto; }

/* Breadcrumb */
.crumbs { display: flex; justify-content: center; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  list-style: none;
  margin: 1.3rem 0 0;
  padding: .55rem 1.1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--sh-sm);
  font-size: .8rem;
}
.crumbs li { display: flex; align-items: center; gap: .55rem; color: var(--muted-2); }
.crumbs li:not(:last-child)::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--maroon-300);
  font-size: .72rem;
}
.crumbs a { color: var(--maroon); font-weight: 500; }
.crumbs [aria-current] { color: var(--muted); }

/* ---------------------------------------------------------------- Filter toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  margin-bottom: 2.2rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.fchip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 500;
  padding: .48rem 1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .35s var(--ease);
}
.fchip:hover { border-color: var(--maroon-300); color: var(--maroon); }
.fchip.is-on { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }

.mini-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .45rem 1rem;
  min-width: 220px;
  flex: 1;
  max-width: 320px;
}
.mini-search i { color: var(--muted-2); font-size: .85rem; }
.mini-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: .86rem;
  color: var(--ink);
}
.select-min {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .55rem 1rem;
  font-family: var(--f-body);
  font-size: .84rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  outline: 0;
}
.select-min:focus { border-color: var(--maroon-300); }

.empty-note {
  display: none;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
}
.empty-note.on { display: block; }
.empty-note i { font-size: 2.4rem; color: var(--maroon-300); margin-bottom: 1rem; display: block; }

/* ---------------------------------------------------------------- Category tiles */
.cat-tile {
  position: relative;
  display: block;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  height: 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
  isolation: isolate;
}
.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tile-grad, var(--grad-brand));
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.cat-tile:hover { transform: translateY(-8px); box-shadow: var(--sh-xl); color: #fff; }
.cat-tile:hover::before { opacity: 1; }
.cat-tile i.cat-ic {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--maroon);
  transition: color .4s var(--ease), transform .5s var(--ease);
}
.cat-tile:hover i.cat-ic { color: #fff; transform: scale(1.12) rotate(-6deg); }
.cat-tile h3 { font-size: 1.1rem; margin-bottom: .25rem; transition: color .4s var(--ease); }
.cat-tile:hover h3 { color: #fff; }
.cat-tile p { font-size: .84rem; margin: 0; transition: color .4s var(--ease); }
.cat-tile:hover p { color: rgba(255, 255, 255, .82); }
.cat-tile .cat-n {
  position: absolute;
  bottom: 1rem; right: 1.2rem;
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: rgba(74, 20, 43, .06);
  line-height: 1;
  transition: color .4s var(--ease);
}
.cat-tile:hover .cat-n { color: rgba(255, 255, 255, .18); }

/* ---------------------------------------------------------------- Accordion (FAQ) */
.acc { display: grid; gap: .8rem; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.acc-item.is-open { box-shadow: var(--sh-md); border-color: rgba(74, 20, 43, .16); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.acc-btn:hover { color: var(--maroon); }
.acc-btn i { color: var(--orange); transition: transform .4s var(--ease); flex-shrink: 0; font-size: .9rem; }
.acc-item.is-open .acc-btn i { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc-panel > div { padding: 0 1.35rem 1.25rem; }
.acc-panel p { font-size: .9rem; margin: 0; }

/* ---------------------------------------------------------------- Forms */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: .45rem;
  letter-spacing: .01em;
}
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: .92rem;
  color: var(--ink);
  padding: .85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  outline: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--maroon-300);
  box-shadow: 0 0 0 4px rgba(74, 20, 43, .08);
}
.field .err { display: none; font-size: .76rem; color: var(--red); margin-top: .35rem; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--red); }
.field.is-bad .err { display: block; }

.form-note {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--green-050);
  border: 1px solid rgba(26, 106, 74, .18);
  color: var(--green);
  font-size: .88rem;
  margin-bottom: 1.1rem;
}
.form-note.on { display: flex; }

/* ---------------------------------------------------------------- Contact tiles */
.ct-tile {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  height: 100%;
}
.ct-tile:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.ct-tile i.ct-ic {
  width: 50px; height: 50px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: var(--sh-brand);
}
.ct-tile h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.ct-tile p { font-size: .87rem; margin: 0; }
.ct-tile a { color: var(--maroon); }

/* Map */
.map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  aspect-ratio: 21/9;
  min-height: 300px;
  background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- Split media block */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  aspect-ratio: 4/3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split-media:hover img { transform: scale(1.05); }
.split-badge {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  z-index: 3;
  padding: 1rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg);
}
.split-badge b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--maroon);
  line-height: 1;
}
.split-badge span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

.tick-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .8rem; }
.tick-list li { display: flex; gap: .8rem; font-size: .92rem; color: var(--muted); }
.tick-list i {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green);
  font-size: .68rem;
  margin-top: .22rem;
}

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  isolation: isolate;
  box-shadow: var(--sh-xl);
}
.cta-band img.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(58, 14, 32, .93), rgba(74, 20, 43, .82) 55%, rgba(23, 138, 168, .68));
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 60ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* ---------------------------------------------------------------- Pagination */
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding-inline: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  transition: all .3s var(--ease);
}
.pager a:hover { border-color: var(--maroon-300); color: var(--maroon); transform: translateY(-2px); }
.pager .is-on { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.pager .is-off { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- Modal (quick view) */
.modal-x {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(30, 12, 22, .6);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.modal-x.is-open { opacity: 1; visibility: visible; }
.modal-card {
  width: min(880px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  transform: scale(.94) translateY(16px);
  transition: transform .5s var(--ease);
  position: relative;
}
.modal-x.is-open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 4;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  color: var(--maroon);
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: all .3s var(--ease);
}
.modal-close:hover { background: var(--maroon); color: #fff; transform: rotate(90deg); }
.modal-grid { display: grid; gap: 0; }
@media (min-width: 768px) { .modal-grid { grid-template-columns: 300px 1fr; } }
.modal-cover { background: var(--bg-soft); padding: 1.8rem; display: grid; place-items: center; }
.modal-cover img { border-radius: var(--r-md); box-shadow: var(--sh-book); max-height: 380px; width: auto; }
.modal-body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.modal-body h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.modal-body .modal-auth { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.modal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; margin: 1.3rem 0; }
.modal-facts div { padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--bg-soft); }
.modal-facts b { display: block; font-size: .86rem; color: var(--ink-strong); font-family: var(--f-body); }
.modal-facts span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.modal-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }

.book-open-modal {
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(255, 224, 162, .18), transparent 62%),
    rgba(30, 12, 22, .68);
}
.book-open-modal .modal-card {
  width: min(1040px, 100%);
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: perspective(1400px) rotateX(5deg) scale(.94) translateY(18px);
}
.book-open-modal.is-open .modal-card {
  transform: perspective(1400px) rotateX(0) scale(1) translateY(0);
}
.book-open-modal .modal-grid {
  position: relative;
  min-height: min(700px, calc(100dvh - 4rem));
  overflow: hidden;
  border-radius: 18px 22px 22px 18px / 16px 28px 28px 16px;
  background:
    linear-gradient(90deg, rgba(80,42,22,.32), transparent 4.5%, transparent 95.5%, rgba(80,42,22,.24)),
    linear-gradient(90deg, #f7ead0 0%, #fff8ea 49.2%, #d1b57f 50%, #fffaf0 51.2%, #fffdf6 100%);
  box-shadow:
    0 40px 95px -34px rgba(12, 5, 9, .72),
    0 18px 36px -28px rgba(12, 5, 9, .78),
    inset 0 0 0 1px rgba(124,82,40,.22);
  transform-origin: center center;
}
.book-open-modal .modal-grid::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 18px) 0 calc(50% - 18px);
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(63,31,16,.26), rgba(255,255,255,.16) 34%, rgba(83,46,22,.2) 52%, rgba(255,255,255,.18) 72%, rgba(60,28,15,.22)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(92,58,27,.08) 18px 19px);
  box-shadow:
    -11px 0 24px -19px rgba(30,13,8,.95),
    11px 0 24px -19px rgba(30,13,8,.95);
}
.book-open-modal .modal-grid::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(125,83,40,.18);
  border-radius: 13px 18px 18px 13px / 12px 22px 22px 12px;
}
.book-open-modal.is-open .modal-grid {
  animation: modal-spread-open .58s cubic-bezier(.18,.72,.24,1) both;
}
@media (min-width: 768px) {
  .book-open-modal .modal-grid { grid-template-columns: 1fr 1fr; }
}
.modal-cover--book {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(224,122,30,.18), transparent 30%),
    linear-gradient(145deg, var(--maroon-050), var(--bg-soft));
  border-right: 1px solid rgba(98,61,28,.24);
  box-shadow: inset -30px 0 40px -38px rgba(52,27,14,.78);
}
.modal-cover--book::after {
  content: "";
  position: absolute;
  inset: auto 16% 12% 12%;
  height: 20px;
  border-radius: 50%;
  background: rgba(24, 12, 20, .22);
  filter: blur(13px);
}
.modal-book {
  position: relative;
  z-index: 1;
  width: min(285px, 64vw);
  aspect-ratio: 2 / 3;
  perspective: 1300px;
  transform-style: preserve-3d;
}
.modal-book-pages,
.modal-book-cover {
  position: absolute;
  inset: 0;
  border-radius: 5px 14px 14px 5px;
  transform-origin: left center;
}
.modal-book-pages {
  background:
    repeating-linear-gradient(90deg, #fff7e7 0 5px, #ecd9b6 6px 7px),
    linear-gradient(90deg, #d8c29a, #fff8e8);
  box-shadow: 12px 18px 36px -18px rgba(24, 12, 20, .46);
  transform: translateX(9px) rotateY(4deg);
}
.modal-book-pages::before,
.modal-book-pages::after {
  content: "";
  position: absolute;
  inset: 4% 4% 4% 9%;
  border-radius: 3px 12px 12px 3px;
  background: linear-gradient(90deg, rgba(126,90,46,.16), transparent 26%);
}
.modal-book-cover {
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--sh-book);
  backface-visibility: hidden;
  transform: rotateY(-3deg);
}
.modal-book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 14%;
  background: linear-gradient(90deg, rgba(0,0,0,.36), rgba(255,255,255,.16) 42%, transparent);
  mix-blend-mode: multiply;
}
.modal-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-open-modal.is-open .modal-book-cover {
  animation: modal-book-open .62s cubic-bezier(.18,.72,.24,1) both;
}
.book-open-modal.is-open .modal-book-pages::after {
  animation: modal-page-flutter .62s cubic-bezier(.18,.72,.24,1) both;
}
.book-open-modal .modal-body {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  max-height: min(700px, calc(100dvh - 4rem));
  padding: clamp(2rem, 4vw, 3.1rem) clamp(1.65rem, 4vw, 3.2rem);
  background:
    radial-gradient(circle at 88% 9%, rgba(224,122,30,.08), transparent 24%),
    repeating-linear-gradient(0deg, rgba(105,74,39,.035) 0 1px, transparent 1px 27px),
    linear-gradient(100deg, rgba(238,218,179,.38), rgba(255,253,246,.9) 18%, rgba(255,255,255,.78));
  box-shadow:
    inset 28px 0 42px -42px rgba(53,27,14,.82),
    inset -10px 0 22px -24px rgba(53,27,14,.64);
}
.book-open-modal .modal-body h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
}
.book-open-modal .modal-body .modal-auth {
  margin-bottom: .7rem;
}
.book-open-modal #qv-stars {
  margin-bottom: .9rem !important;
}
.book-open-modal #qv-blurb,
.book-open-modal .modal-desc {
  margin-bottom: .82rem;
}
.book-open-modal .book-price {
  margin-bottom: .85rem;
}
.book-open-modal .modal-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .62rem;
  margin: .9rem 0 1rem;
}
.book-open-modal .modal-facts div {
  padding: .64rem .7rem;
}
.book-open-modal .modal-facts b {
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.book-open-modal .modal-actions {
  margin-top: .95rem;
}
.book-open-modal .modal-actions .btn {
  padding: .82rem 1.15rem;
}
.book-open-modal .modal-body::before,
.book-open-modal .modal-body::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.book-open-modal .modal-body::before {
  inset: 18px 22px;
  border: 1px solid rgba(128,83,40,.14);
  border-radius: 4px 14px 14px 4px;
}
.book-open-modal .modal-body::after {
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(136,95,47,.18) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, transparent, rgba(110,72,34,.15));
}
.modal-desc {
  margin-top: -.25rem;
  font-size: .92rem;
  line-height: 1.75;
}
@keyframes modal-spread-open {
  0% { transform: perspective(1400px) rotateY(-9deg) scaleX(.9); filter: brightness(.92); }
  68% { transform: perspective(1400px) rotateY(2deg) scaleX(1.01); filter: brightness(1.02); }
  100% { transform: perspective(1400px) rotateY(0) scaleX(1); filter: none; }
}
@keyframes modal-book-open {
  0% { transform: rotateY(-72deg) translateX(-8px); filter: brightness(.9); }
  68% { transform: rotateY(2deg); filter: brightness(1.03); }
  100% { transform: rotateY(-3deg); filter: none; }
}
@keyframes modal-page-flutter {
  0% { transform: translateX(-24px) rotateY(-42deg); opacity: .25; }
  70% { transform: translateX(4px) rotateY(8deg); opacity: .78; }
  100% { transform: none; opacity: .45; }
}
@media (max-width: 767.98px) {
  .book-open-modal .modal-card { width: min(560px, 100%); }
  .book-open-modal .modal-grid {
    min-height: 0;
    overflow-y: auto;
    max-height: 88dvh;
    border-radius: 14px 18px 18px 14px;
    background:
      linear-gradient(180deg, #f7ead0 0%, #fff8ea 45%, #ddc18b 46%, #fffaf0 48%, #fffdf6 100%);
  }
  .book-open-modal .modal-grid::before {
    inset: calc(43% - 12px) 0 auto 0;
    height: 24px;
    background:
      linear-gradient(180deg, rgba(63,31,16,.22), rgba(255,255,255,.15), rgba(63,31,16,.17));
    box-shadow: 0 -8px 18px -16px rgba(30,13,8,.95), 0 8px 18px -16px rgba(30,13,8,.95);
  }
  .modal-cover--book {
    padding-block: 1.55rem 2.35rem;
    border-right: 0;
    border-bottom: 1px solid rgba(98,61,28,.2);
  }
  .modal-book { width: min(190px, 48vw); }
  .book-open-modal .modal-body {
    max-height: none;
    overflow: visible;
    padding: 2rem 1.35rem 1.55rem;
  }
  .book-open-modal .modal-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-open-modal .modal-body::before { inset: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .book-open-modal .modal-card,
  .book-open-modal .modal-grid,
  .modal-book-cover,
  .modal-book-pages::after,
  .hero-book-card,
  .hero-book-cover { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- Toast */
#toast-zone {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1300;
  display: grid;
  gap: .5rem;
  width: min(400px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast-x {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(28, 12, 20, .94);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .87rem;
  box-shadow: var(--sh-xl);
  transform: translateY(18px);
  opacity: 0;
  animation: toast-in .45s var(--ease) forwards;
}
.toast-x.out { animation: toast-out .35s var(--ease) forwards; }
.toast-x i { color: var(--green-300); }
@keyframes toast-in { to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(14px); opacity: 0; } }

/* ---------------------------------------------------------------- Print */
@media print {
  .site-header, .topbar, #to-top, .drawer, .backdrop, .search-pane,
  #loader, #cursor-glow, #scroll-bar, .leaf-layer, .blob { display: none !important; }
  body { color: #000; }
  .sec { padding-block: 1rem; }
}

/* ==========================================================================
   BOOK DETAIL + AUTHOR PROFILE PAGES
   Extends the existing system — no existing rules are modified.
   ========================================================================== */

/* ---------------------------------------------------------------- Book detail */
.bd-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 992px) {
  .bd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Sticky cover column on large screens */
@media (min-width: 992px) {
  .bd-cover-col { position: sticky; top: calc(var(--nav-h) + 28px); }
}

.bd-cover {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--sh-xl);
  aspect-ratio: 2 / 3;
  isolation: isolate;
}
.bd-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.bd-cover:hover img { transform: scale(1.07); }
.bd-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.34) 50%, rgba(255,255,255,0) 58%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
}
.bd-cover:hover::after { transform: translateX(120%); }

/* Decorative frame behind the cover */
.bd-cover-wrap { position: relative; }
.bd-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  opacity: .10;
  z-index: -1;
}

.bd-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: .5rem;
}
.bd-byline {
  font-size: 1.02rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.bd-byline a {
  color: var(--maroon);
  font-weight: 600;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.bd-byline a:hover { color: var(--orange); background-size: 100% 1.5px; }

/* Meta strip — category / language */
.bd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  padding: 1.1rem 0;
  margin-bottom: 1.5rem;
  border-block: 1px solid var(--line);
}
.bd-meta-item { display: flex; align-items: center; gap: .7rem; }
.bd-meta-item i {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--maroon-050);
  color: var(--maroon);
  font-size: .88rem;
}
.bd-meta-item:nth-child(2) i { background: var(--green-050); color: var(--green); }
.bd-meta-item span {
  display: block;
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.bd-meta-item b {
  display: block;
  font-family: var(--f-body);
  font-size: .94rem;
  color: var(--ink-strong);
  font-weight: 600;
}

.bd-desc > p {
  font-size: 1.01rem;
  line-height: 1.85;
  margin-bottom: 1.15rem;
}
.bd-desc > p:first-of-type {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}
.bd-desc em { color: var(--maroon); font-style: italic; }

.bd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}
@media (max-width: 420px) {
  .bd-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- Author card (glass) */
.au-card {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.au-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(74,20,43,.07), rgba(224,122,30,.06) 50%, rgba(23,138,168,.07));
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.au-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: rgba(255, 255, 255, .95);
}
.au-card:hover::before { opacity: 1; }
@media (min-width: 576px) {
  .au-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
}

.au-avatar {
  position: relative;
  width: clamp(104px, 22vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: var(--sh-md);
  justify-self: center;
}
.au-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.au-card:hover .au-avatar img { transform: scale(1.09); }

.au-card h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: .15rem; }
.au-role {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: .7rem;
}
.au-card p { font-size: .92rem; margin-bottom: 1.1rem; }
@media (max-width: 575.98px) {
  .au-card { text-align: center; }
  .au-card .btn { width: 100%; }
}

/* ---------------------------------------------------------------- Author profile banner */
.au-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(224,122,30,.26), transparent 62%),
    radial-gradient(820px 420px at 90% 18%, rgba(23,138,168,.24), transparent 62%),
    linear-gradient(155deg, #2e0c1c 0%, var(--maroon) 55%, #34142a 100%);
  color: #f4eef1;
  text-align: center;
}
.au-hero h1 { color: #fff; margin-bottom: .3rem; }
.au-hero p { color: rgba(255, 255, 255, .76); }

.au-hero-avatar {
  width: clamp(132px, 20vw, 176px);
  aspect-ratio: 1;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .22);
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .55);
  position: relative;
}
.au-hero-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.au-hero-avatar:hover img { transform: scale(1.08); }

.au-hero-role {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #ffd9a8;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .42rem 1.05rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
}
.au-hero-bio { max-width: 62ch; margin-inline: auto; font-size: 1.02rem; }

/* Stats row on the profile banner */
.au-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 720px;
  margin: 2.2rem auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .16);
}
@media (min-width: 768px) { .au-stats { grid-template-columns: repeat(4, 1fr); } }
.au-stats div {
  background: rgba(46, 12, 28, .5);
  backdrop-filter: blur(10px);
  padding: 1.1rem .8rem;
}
.au-stats b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: #fff;
  line-height: 1.1;
}
.au-stats span {
  display: block;
  margin-top: .25rem;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* About-the-author prose */
.au-prose { max-width: 76ch; }
.au-prose p { font-size: 1.01rem; line-height: 1.88; margin-bottom: 1.15rem; }
.au-prose p:first-of-type { font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.au-prose em { color: var(--maroon); font-style: italic; }

/* ---------------------------------------------------------------- Published book card */
.pb-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.pb-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--sh-xl);
  border-color: rgba(74, 20, 43, .14);
}
.pb-media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.pb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pb-card:hover .pb-media img { transform: scale(1.06); }
.pb-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.pb-body h3 { font-size: 1.08rem; margin-bottom: .45rem; line-height: 1.32; }
.pb-body h3 a { color: inherit; }
.pb-card:hover .pb-body h3 a { color: var(--maroon); }
.pb-body p { font-size: .875rem; margin-bottom: 1.15rem; }
.pb-body .btn { margin-top: auto; }

/* Author shelves hold a single title for most of our list, so centre and cap
   the grid rather than letting one card stretch across three columns. */
#author-books.is-few {
  justify-content: center;
  margin-inline: auto;
}
#author-books.is-few.n-1 { max-width: 340px; }
#author-books.is-few.n-2 { max-width: 700px; }

/* ---------------------------------------------------------------- Responsive finishing layer
   Keep the shared layout usable on narrow phones and small tablets. */
@media (max-width: 767.98px) {
  .shell { padding-inline: 1rem; }
  .nav-row { height: 70px; gap: .5rem; }
  .brand { gap: .5rem; }
  .brand img { height: 44px; }
  .nav-actions { gap: .35rem; }
  .nav-actions .icon-btn { width: 40px; height: 40px; }

  .hero { padding-block: 3.25rem 4.5rem; }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 3.35rem); line-height: 1.06; }
  .hero-sub { font-size: .98rem; line-height: 1.65; }
  .hero-visual { min-height: 300px; }
  .hero-book-showcase { max-width: 100%; }
  .hero-cta { margin-bottom: 1.5rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { display: grid; grid-template-columns: 1fr; gap: .42rem; font-size: .78rem; }

  .sec { padding-block: 4rem; }
  .sec-head { margin-bottom: 2rem; }
  .sec-head h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .sec-head p { font-size: .95rem; line-height: 1.65; }
  .slider-head { align-items: flex-start; margin-bottom: 2rem; }
  .slider-head .sec-head { width: 100%; max-width: 100%; }
  .slider-nav { width: 100%; justify-content: flex-end; }

  .up-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .up-cover { width: min(180px, 54vw); margin-inline: auto; }
  .up-card > div:last-child { text-align: center; }
  .up-card .btn { display: inline-flex; }

  .toolbar { align-items: stretch; padding: .85rem; gap: .65rem; }
  .toolbar .chip-row { width: 100%; }
  .toolbar .mini-search,
  .toolbar .select-min { width: 100%; max-width: none; min-width: 0; }
  .event { grid-template-columns: 1fr; gap: .9rem; padding: 1rem; }
  .event-date { width: 86px; min-width: 0; }
  .event-info { gap: .45rem .8rem; }

  .news-wrap { padding: 2rem 1.1rem; border-radius: var(--r-lg); }
  .news-form { max-width: 100%; }
  .modal-card { width: min(100%, calc(100vw - 1.25rem)); }
  .modal-cover img { max-height: 280px; }
  .modal-body { padding: 1.25rem; }
}

@media (max-width: 575.98px) {
  .shell { padding-inline: .9rem; }
  .nav-row { height: 64px; }
  .brand img { height: 40px; }
  .nav-actions .icon-btn { width: 38px; height: 38px; }
  .nav-actions .btn--sm { padding: .55rem .78rem; font-size: .74rem; }

  .hero { padding-block: 2.8rem 3.8rem; }
  .hero .eyebrow { font-size: .64rem; letter-spacing: .12em; padding-inline: .7rem; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .hero-search { width: 100%; margin-bottom: 1.25rem; }
  .hero-book-swiper { max-width: 100%; }
  .hero-book-controls { gap: .45rem; }
  .hero-book-nav { width: 40px; height: 40px; }

  .grid { gap: 1rem; }
  .book-body { padding-top: .8rem; }
  .book-foot { align-items: flex-start; }
  .book-foot .btn { padding-inline: .75rem; }
  .latest-book-foot { gap: .65rem; }
  .bs-card { gap: .75rem; }

  .search-inner form { padding-left: .85rem; }
  .search-inner input { font-size: .88rem; }
  .search-close { top: 1rem; right: 1rem; }
  .news-form { flex-direction: column; border-radius: var(--r-lg); padding: .7rem; }
  .news-form .btn { width: 100%; justify-content: center; }
  .foot-bar nav { gap: .8rem 1rem; }
}

@media (max-width: 399.98px) {
  .brand-txt { display: none; }
  .nav-actions .btn--sm { padding-inline: .65rem; }
  .hero-trust { font-size: .74rem; }
  .modal-body { padding: 1rem; }
}
