:root {
  --navy-950: #050a14;
  --navy-900: #0b1428;
  --navy-800: #13203a;
  --gold-500: #c9a54c;
  --gold-400: #e4c978;
  --gold-300: #f1dfab;
  --ivory-100: #f6f0e3;
  --ink-100: #d8deea;
  --ink-200: #b7c3d6;
  --line: rgba(255, 255, 255, 0.14);
  --overlay: rgba(5, 10, 20, 0.66);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.36);
  --shadow-strong: 0 28px 60px rgba(0, 0, 0, 0.5);
  --container: min(1140px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink-100);
  background:
    radial-gradient(1200px 700px at 5% -10%, rgba(201, 165, 76, 0.13), transparent 68%),
    radial-gradient(900px 560px at 100% 5%, rgba(60, 102, 170, 0.2), transparent 70%),
    linear-gradient(150deg, #060b16 0%, #0c1730 45%, #0f2346 100%);
  min-height: 100vh;
  opacity: 0;
  animation: pageIn 0.8s ease forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
  }
}

body.leaving {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.7px, transparent 0.7px);
  background-size: 2.2px 2.2px;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.75;
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.15;
  font-family: "Cormorant Garamond", serif;
  color: var(--ivory-100);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 90;
  transition: all 0.4s ease;
  background: rgba(5, 10, 20, 0.36);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 10, 20, 0.86);
  border-bottom-color: rgba(201, 165, 76, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.site-header.scrolled .nav-wrap {
  min-height: 68px;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}

.brand-logo {
  width: clamp(130px, 14vw, 185px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.42rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  transition: width 0.35s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-300);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--ivory-100);
  transition: 0.3s ease;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding-top: 6.3rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: slowZoom 15s linear infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.12);
  }
}

.hero-pillars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.pillar {
  position: absolute;
  top: -8%;
  height: 130%;
  width: clamp(180px, 25vw, 360px);
  clip-path: polygon(42% 0%, 58% 0%, 100% 100%, 0% 100%);
  background:
    linear-gradient(
      180deg,
      rgba(255, 236, 180, 0.66) 0%,
      rgba(241, 223, 171, 0.31) 38%,
      rgba(241, 223, 171, 0.12) 65%,
      transparent 100%
    );
  mix-blend-mode: screen;
  filter: blur(0.7px);
  opacity: 0.48;
  transform-origin: top center;
  animation: pillarBreath 7.5s ease-in-out infinite;
}

.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255, 250, 220, 0.72), transparent 58%);
}

.pillar.p1 {
  left: -4%;
  animation-delay: 0s;
}

.pillar.p3 {
  left: 60%;
  width: clamp(210px, 28vw, 420px);
  opacity: 0.56;
  animation-delay: 1.2s;
}

@keyframes pillarBreath {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scaleY(1);
  }
  50% {
    opacity: 0.58;
    transform: translateY(-1.8%) scaleY(1.035);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 8, 17, 0.92) 10%, rgba(4, 8, 17, 0.62) 46%, rgba(4, 8, 17, 0.88) 100%),
    radial-gradient(circle at 72% 33%, rgba(201, 165, 76, 0.18), transparent 42%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.4rem;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--gold-300);
  margin-bottom: 1.4rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin-bottom: 1.2rem;
  max-width: 13ch;
}

.hero-text {
  max-width: 55ch;
  color: #eef3ff;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -120%;
  width: 44%;
  height: 300%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: rotate(24deg);
  transition: left 0.56s ease;
}

.shine:hover::before {
  left: 125%;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-gold {
  background: linear-gradient(100deg, #ad8231, #d8b862 45%, #b88f3f);
  color: #101523;
  box-shadow: 0 0 0 rgba(216, 184, 98, 0.2);
}

.btn-gold:hover {
  box-shadow: 0 8px 26px rgba(212, 173, 76, 0.42);
}

.btn-outline {
  border-color: rgba(241, 223, 171, 0.66);
  color: var(--ivory-100);
  background: rgba(7, 13, 28, 0.34);
}

.btn-outline:hover {
  border-color: var(--gold-400);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.hero-book {
  justify-self: center;
  max-width: 430px;
  width: min(100%, 430px);
}

.hero-book-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  animation: float 5.2s ease-in-out infinite;
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
}

.hero-book-stack:hover {
  transform: rotateY(-8deg) rotateX(5deg) scale(1.03);
}

.hero-book-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 35px rgba(0, 0, 0, 0.58));
  opacity: 0;
  transform: scale(0.91) translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-book-layer.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 3;
}

.hero-book-layer.spin-out {
  animation: heroBookSpinSwap 0.85s ease forwards;
  z-index: 4;
}

@keyframes heroBookSpinSwap {
  0% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.91) rotateY(360deg) translateY(8px);
  }
}

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

.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  position: relative;
}

.section-label {
  color: var(--gold-300);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head {
  margin-bottom: 2rem;
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.author-placeholder {
  min-height: 390px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(241, 223, 171, 0.5);
  background:
    linear-gradient(180deg, rgba(15, 27, 54, 0.94) 0%, rgba(10, 17, 33, 0.92) 100%),
    radial-gradient(circle at top right, rgba(201, 165, 76, 0.24), transparent 60%);
  display: grid;
  place-items: center;
  color: var(--gold-300);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.author-placeholder.tall {
  min-height: 520px;
}

.author-image {
  border-style: solid;
  border-color: rgba(241, 223, 171, 0.22);
  padding: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold-300);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  justify-content: center;
  gap: 1.6rem;
}

.books-carousel-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.books-carousel-window {
  overflow: hidden;
  padding: 0.25rem 0.15rem 0.55rem;
}

.books-carousel-track {
  width: max-content;
  display: flex;
  gap: 1rem;
}

.book-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 22, 42, 0.9), rgba(7, 13, 27, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.book-card.compact {
  flex: 0 0 clamp(214px, 24vw, 250px);
  scroll-snap-align: start;
}

.book-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.book-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.book-media.show-full {
  aspect-ratio: 3 / 4;
  padding: 0.6rem;
  background:
    radial-gradient(circle at top right, rgba(201, 165, 76, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(9, 17, 33, 0.95), rgba(7, 13, 26, 0.95));
}

.book-media.show-full img {
  object-fit: contain;
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.02);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.42s ease, background 0.42s ease;
}

.book-card:hover .book-media img {
  transform: scale(1.08);
}

.book-card:hover .book-media.show-full img {
  transform: scale(1.03);
}

.book-card:hover .book-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.56);
}

.book-card:hover {
  box-shadow: var(--shadow-strong);
}

.book-content {
  padding: 1.35rem 1.3rem 1.6rem;
}

.book-card.compact .book-content h3 {
  font-size: 1.28rem;
  margin-bottom: 0.72rem;
}

.book-card.compact .book-content p {
  font-size: 0.93rem;
}

.book-overlay .btn {
  width: auto;
}

.book-grid-page {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.price {
  color: var(--gold-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.testimonial-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 25, 49, 0.8), rgba(9, 15, 30, 0.85));
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.slides {
  position: relative;
  min-height: 200px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.52s ease, transform 0.52s ease;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 0.4rem 0.6rem;
}

.testimonial p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 0.9rem;
  color: #f8f4ea;
}

.testimonial h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-300);
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(241, 223, 171, 0.42);
  background: rgba(6, 10, 20, 0.6);
  color: var(--gold-300);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.slider-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 22, 43, 0.86), rgba(8, 14, 28, 0.9));
  padding: clamp(1.2rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 0.48rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-300);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 9, 19, 0.58);
  color: var(--ivory-100);
  font: inherit;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201, 165, 76, 0.17);
  transform: translateY(-1px);
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--gold-300);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.form-status.show {
  opacity: 1;
  transform: translateY(0);
}

.inner-hero {
  padding: 9.3rem 0 4.3rem;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    radial-gradient(circle at 20% 0%, rgba(201, 165, 76, 0.2), transparent 36%),
    linear-gradient(145deg, #091224, #102246 65%, #0b172f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inner-hero h1 {
  max-width: 14ch;
}

.biography {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.6rem, 3vw, 3rem);
}

.featured-book {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 3vw, 3.2rem);
  align-items: center;
}

.featured-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  max-width: 420px;
}

.featured-cover img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.featured-cover:hover img {
  transform: scale(1.04);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.future-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(10, 18, 36, 0.75);
  padding: 1.3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.reader-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(12, 22, 42, 0.86), rgba(9, 15, 30, 0.94)),
    radial-gradient(circle at top right, rgba(201, 165, 76, 0.14), transparent 65%);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.reader-card h4 {
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

.contact-info {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 16, 32, 0.8);
  padding: 1.3rem;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.8), rgba(2, 5, 10, 0.96)),
    radial-gradient(circle at center, rgba(201, 165, 76, 0.12), transparent 60%);
  border-top: 1px solid rgba(241, 223, 171, 0.16);
  padding-top: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
}

.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  color: var(--gold-300);
  margin-bottom: 0.7rem;
}

.footer-logo {
  width: clamp(130px, 15vw, 190px);
  height: auto;
  object-fit: contain;
}

.inline-logo {
  height: 1.15em;
  width: auto;
  vertical-align: -0.18em;
  display: inline-block;
}

.inline-logo-small {
  height: 1.05em;
  vertical-align: -0.14em;
}

.footer-title {
  margin-bottom: 0.6rem;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-200);
  transition: color 0.28s ease, transform 0.28s ease;
}

.site-footer .page-link {
  width: fit-content;
  position: relative;
}

.site-footer .page-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width 0.3s ease;
}

.site-footer .page-link:hover {
  color: var(--gold-300);
  transform: translateX(3px);
}

.site-footer .page-link:hover::after {
  width: 100%;
}

.socials {
  display: flex;
  gap: 0.45rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(241, 223, 171, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-300);
  background: rgba(6, 12, 24, 0.65);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.socials a:hover {
  transform: translateY(-4px);
  color: #13203a;
  border-color: var(--gold-400);
  background: linear-gradient(120deg, #d8b862 0%, #f0d997 100%);
  box-shadow: 0 10px 24px rgba(216, 184, 98, 0.42);
}

.copyright {
  text-align: center;
  margin: 0;
  padding: 1rem 0 1.3rem;
  color: #9ba8c0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.87rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-animate="left"] {
  transform: translateX(-36px);
}

.reveal[data-animate="right"] {
  transform: translateX(36px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .two-col,
  .biography,
  .featured-book,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.8rem;
  }

  .hero-book {
    max-width: 330px;
    margin-inline: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .author-placeholder,
  .author-placeholder.tall {
    min-height: 310px;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 0;
    width: min(320px, 86vw);
    height: calc(100vh - 78px);
    background: rgba(6, 11, 22, 0.97);
    border-left: 1px solid rgba(241, 223, 171, 0.16);
    display: grid;
    align-content: start;
    gap: 0;
    padding: 1.2rem 1rem;
    transform: translateX(105%);
    transition: transform 0.35s ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .slides {
    min-height: 235px;
  }

  .testimonial-slider {
    gap: 0.4rem;
  }

  #homeBooksPrev,
  #homeBooksNext {
    display: none;
  }

  .books-carousel-wrap {
    grid-template-columns: 1fr;
  }

  .book-card.compact {
    flex-basis: clamp(220px, 58vw, 280px);
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 70px;
  }

  .site-nav {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .hero {
    min-height: 96vh;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .slides {
    min-height: 275px;
  }

  .pillar.p3 {
    display: none;
  }

  .book-card.compact {
    flex-basis: 76vw;
  }

  .book-grid-page {
    grid-template-columns: 1fr;
  }
}
