/* =========================================================
   BOOK CLUB YEREVAN — AUDITED UI
   Clean stylesheet matched to index.html
========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest-950: #071b14;
  --forest-900: #0d2d22;
  --forest-800: #143d2e;
  --forest-700: #1e563f;
  --forest-600: #2f6f50;
  --sage-500: #7fa88c;
  --sage-300: #b9d0bd;
  --sage-200: #d5e3d5;
  --sage-100: #eaf1e8;
  --cream: #f5f2e9;
  --paper: #fbfaf5;
  --white: #fff;
  --ink: #15231c;
  --muted: #68746c;
  --line: rgba(13,45,34,.12);
  --line-light: rgba(255,255,255,.12);
  --shadow: 0 24px 70px rgba(13,45,34,.14);
  --shadow-heavy: 0 36px 90px rgba(5,28,19,.25);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --nav-h: 82px;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans Armenian", sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3 { font-family: "Playfair Display", "Noto Sans Armenian", serif; }
::selection { background: var(--forest-700); color: white; }

/* ---------- utility visuals ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 9999;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--sage-500), var(--forest-700));
  box-shadow: 0 0 12px rgba(47,111,80,.3);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,168,140,.16), rgba(127,168,140,0) 68%);
  pointer-events: none; opacity: 0;
  will-change: transform;
}

/* ---------- nav ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 2000;
  height: var(--nav-h); padding: 0 6%;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  transition: height .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.navbar.scrolled {
  height: 68px;
  background: rgba(245,242,233,.91);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(13,45,34,.07);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 "Playfair Display", serif; }
.logo-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--forest-900); color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.logo-copy em { color: var(--forest-600); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; text-decoration: none; font-size: 13px; font-weight: 650; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 0; height: 1px; background: var(--forest-600); transition: width .28s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.languages, .mobile-languages { display: flex; align-items: center; gap: 4px; }
.languages button, .mobile-languages button {
  border: 0; background: transparent; padding: 8px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; cursor: pointer; transition: .22s ease;
}
.languages button:hover, .mobile-languages button:hover { background: rgba(13,45,34,.07); }
.languages button.active, .mobile-languages button.active { background: var(--forest-900); color: white; }
.join-button {
  padding: 12px 21px; border-radius: 999px; background: var(--forest-900); color: white;
  text-decoration: none; font-size: 13px; font-weight: 750;
  box-shadow: 0 10px 26px rgba(13,45,34,.14);
}
.mobile-button {
  display: none; position: relative; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer;
}
.mobile-button span {
  position: absolute; left: 11px; top: 21px; width: 22px; height: 2px;
  background: var(--ink); transition: transform .25s ease;
}
.mobile-button span:first-child { transform: translateY(-4px); }
.mobile-button span:last-child { transform: translateY(4px); }
.mobile-button.active span:first-child { transform: rotate(45deg); }
.mobile-button.active span:last-child { transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; z-index: 1900; top: 76px; left: 5%; right: 5%;
  display: flex; flex-direction: column; gap: 4px; padding: 20px;
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(251,250,245,.97); backdrop-filter: blur(18px);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(-16px) scale(.98);
  visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0) scale(1); visibility: visible; pointer-events: auto; }
.mobile-menu a { padding: 12px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-languages { padding-top: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; padding: 138px 7% 84px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); align-items: center; gap: 64px;
}
.hero-noise {
  position: absolute; inset: 0; z-index: -4; opacity: .13; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.hero-orb { position: absolute; z-index: -3; border-radius: 50%; filter: blur(2px); }
.orb-one {
  width: 650px; height: 650px; right: -150px; top: 40px;
  background: radial-gradient(circle at 35% 35%, rgba(185,208,189,.8), rgba(213,227,213,.22) 52%, transparent 72%);
}
.orb-two {
  width: 360px; height: 360px; left: 34%; bottom: -170px;
  background: radial-gradient(circle, rgba(127,168,140,.18), transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  margin-bottom: 17px; color: var(--forest-600);
  font-size: 10px; line-height: 1.3; letter-spacing: 2.35px; text-transform: uppercase; font-weight: 850;
}
.hero-title { margin-bottom: 30px; font-size: clamp(67px,8vw,116px); line-height: .85; letter-spacing: -.055em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; animation: titleIn .88s cubic-bezier(.16,1,.3,1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .09s; }
.hero-title .line:nth-child(3) > span { animation-delay: .18s; }
.hero-title .accent-line { color: var(--forest-600); font-style: italic; }
@keyframes titleIn { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: translateY(0); } }
.hero-description { max-width: 560px; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.button {
  min-height: 49px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 780;
  transition: transform .26s ease, background .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.button.primary { background: var(--forest-900); color: white; box-shadow: 0 14px 34px rgba(13,45,34,.16); }
.button.ghost { border-color: rgba(13,45,34,.22); background: rgba(255,255,255,.28); }
.button:hover { transform: translateY(-3px); }
.button.primary:hover { box-shadow: 0 18px 42px rgba(13,45,34,.22); }
.arrow { font-size: 16px; }
.hero-meta { display: flex; gap: 0; }
.hero-meta > div { min-width: 112px; padding: 0 26px; border-right: 1px solid var(--line); }
.hero-meta > div:first-child { padding-left: 0; }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta strong { display: block; font: 650 30px/1 "Playfair Display", serif; }
.hero-meta span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; min-height: 570px; perspective: 1200px; }
.visual-ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(13,45,34,.13);
  transform: translate(-50%,-50%); pointer-events: none;
}
.ring-one { width: 470px; height: 470px; animation: ringSpin 26s linear infinite; }
.ring-two { width: 350px; height: 350px; border-style: dashed; animation: ringSpin 20s linear infinite reverse; }
@keyframes ringSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-book {
  position: absolute; overflow: hidden; border-radius: 7px 17px 17px 7px; color: white;
  box-shadow: 25px 35px 70px rgba(7,27,20,.25); transform-style: preserve-3d; will-change: transform;
}
.hero-book::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.16), transparent 35%, rgba(0,0,0,.12)); pointer-events: none;
}
.hero-book::after { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 1px; background: rgba(255,255,255,.2); }
.hero-book small, .hero-book h2, .hero-book p { position: relative; z-index: 1; }
.hero-book small { font-size: 9px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; opacity: .86; }
.hero-book h2 { margin-top: auto; font-size: 41px; line-height: .95; }
.hero-book p { margin-top: 12px; font-size: 12px; opacity: .82; }
.hero-book-main {
  right: 12%; top: 74px; z-index: 3; width: 245px; height: 365px; padding: 30px;
  display: flex; flex-direction: column; background: linear-gradient(145deg,#12372a,#2f6f50);
  transform: rotateY(-7deg) rotateZ(5deg);
}
.hero-book-back {
  left: 4%; bottom: 58px; z-index: 2; width: 196px; height: 294px; padding: 24px;
  display: flex; flex-direction: column; background: linear-gradient(145deg,#675437,#9a8357);
  transform: rotateY(10deg) rotateZ(-11deg);
}
.hero-book-back h2 { font-size: 32px; }
.floating-note {
  position: absolute; z-index: 5; padding: 10px 14px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(12px); color: var(--forest-900);
  box-shadow: 0 12px 30px rgba(13,45,34,.1); font-size: 11px; font-weight: 800;
}
.note-one { right: 0; top: 145px; }
.note-two { left: 8%; top: 112px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--sage-100); }
.marquee-track { display: flex; width: max-content; animation: marqueeMove 30s linear infinite; }
.marquee-track span { padding: 16px 0; white-space: nowrap; color: var(--forest-600); font-size: 10px; font-weight: 850; letter-spacing: 2px; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ---------- shared sections ---------- */
section { position: relative; padding: 108px 7%; }
.section-heading { margin-bottom: 48px; }
.heading-row { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.55fr); gap: 56px; align-items: end; }
.section-heading h2 { max-width: 850px; font-size: clamp(44px,5.8vw,76px); line-height: .98; letter-spacing: -.035em; }
.section-heading p { max-width: 450px; color: var(--muted); line-height: 1.75; }
.reveal { opacity: 1; transform: none; transition: opacity .78s cubic-bezier(.16,1,.3,1), transform .78s cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay,0ms); }
.reveal.reveal-ready { opacity: 0; transform: translateY(36px); }
.reveal.reveal-ready.visible { opacity: 1; transform: none; }

/* ---------- Club Picks: crisp CSS banners + cover thumbnail ---------- */
.picks-section { background: var(--paper); overflow: hidden; }
.picks-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(330px, 31vw); gap: 18px;
  overflow-x: auto; padding: 8px 2px 20px; scroll-snap-type: x proximity; scrollbar-width: thin;
  scrollbar-color: rgba(13,45,34,.22) transparent;
}
.picks-scroller::-webkit-scrollbar { height: 6px; }
.picks-scroller::-webkit-scrollbar-thumb { background: rgba(13,45,34,.2); border-radius: 999px; }
.pick-card {
  --card-bg: linear-gradient(145deg,#143d2e,#2f6f50);
  position: relative; isolation: isolate; min-height: 285px; padding: 27px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 112px; grid-template-rows: auto 1fr; column-gap: 22px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 28px; color: white; background: var(--card-bg);
  box-shadow: 0 20px 55px rgba(13,45,34,.11); cursor: pointer; scroll-snap-align: start;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.pick-card::before {
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -80px; top: -100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.25), rgba(255,255,255,0) 70%);
}
.pick-card::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pick-card:hover { transform: translateY(-8px); box-shadow: 0 30px 75px rgba(13,45,34,.2); }
.pick-top { grid-column: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; opacity: .88; }
.pick-top span:last-child { display: none; }
.pick-bottom { grid-column: 1; align-self: end; min-width: 0; }
.pick-bottom h3 { max-width: 220px; margin-bottom: 8px; font-size: 32px; line-height: .96; }
.pick-bottom p { font-size: 12px; opacity: .78; }
.pick-rating { margin-top: 14px; font-size: 11px; font-weight: 800; }
.pick-cover-image {
  pointer-events: none; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end;
  width: 112px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px 10px 10px 5px;
  box-shadow: 12px 18px 30px rgba(0,0,0,.28); transform: rotate(4deg);
  transition: transform .42s cubic-bezier(.16,1,.3,1), box-shadow .42s ease;
}
.pick-card:hover .pick-cover-image { transform: rotate(1deg) translateY(-5px) scale(1.025); box-shadow: 16px 24px 42px rgba(0,0,0,.34); }

/* ---------- library ---------- */
.genres-section { background: var(--cream); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.search-container {
  width: min(610px,100%); min-height: 58px; padding: 0 17px 0 19px;
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.search-container:focus-within { border-color: rgba(47,111,80,.48); background: white; box-shadow: 0 0 0 4px rgba(47,111,80,.07); }
.search-icon { font-size: 21px; line-height: 1; color: var(--forest-600); }
.search-container input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-container input::placeholder { color: #89928c; }
.search-container kbd { min-width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 11px; }
.results-count { white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 650; }
.genre-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; }
.genre-button {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--ink); font-size: 11px; font-weight: 780; cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.genre-button:hover { transform: translateY(-2px); border-color: rgba(13,45,34,.25); }
.genre-button.active { background: var(--forest-900); color: white; border-color: var(--forest-900); }
.books-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 36px 22px; }
.book-card {
  min-width: 0; cursor: pointer; outline: none;
  opacity: 1; transform: none; filter: none;
  transition: transform .3s ease;
}
.book-card:focus-visible { border-radius: 16px; box-shadow: 0 0 0 4px rgba(47,111,80,.15); }
.book-card.pop-ready { opacity: 0; transform: translateY(70px) scale(.9); filter: blur(6px); }
.book-card.pop-ready.book-visible { animation: bookPop .78s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--pop-delay,0ms); }
@keyframes bookPop {
  0% { opacity: 0; transform: translateY(70px) scale(.9); filter: blur(6px); }
  62% { opacity: 1; transform: translateY(-8px) scale(1.025); filter: blur(0); }
  82% { transform: translateY(3px) scale(.995); }
  100% { opacity: 1; transform: none; filter: none; }
}
.book-card:not(.pop-ready):hover, .book-card.book-visible:hover { transform: translateY(-9px); }
.book-cover {
  position: relative; aspect-ratio: 2/3; overflow: hidden;
  border-radius: 6px 15px 15px 6px; background: var(--card-bg);
  box-shadow: 0 16px 34px rgba(13,45,34,.15); transform: translateZ(0);
  transition: box-shadow .34s ease;
}
.book-cover-image { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity .25s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.book-cover.has-image .book-cover-image { opacity: 1; }
.book-cover-fallback { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--card-bg); color: white; transition: opacity .2s ease; }
.book-cover.has-image .book-cover-fallback { opacity: 0; }
.book-cover::before { content: ""; position: absolute; z-index: 4; left: 7px; top: 7px; bottom: 7px; width: 2px; background: rgba(0,0,0,.13); box-shadow: 2px 0 rgba(255,255,255,.09); pointer-events: none; }
.book-cover::after {
  content: ""; position: absolute; z-index: 5; top: -30%; bottom: -30%; left: -140%; width: 48%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent); transform: rotate(14deg); pointer-events: none;
  transition: left .7s cubic-bezier(.16,1,.3,1);
}
.book-card:hover .book-cover::after { left: 150%; }
.book-card:hover .book-cover { box-shadow: 0 30px 62px rgba(13,45,34,.25); }
.book-card:hover .book-cover-image { transform: scale(1.045); }
.book-genre { font-size: 8px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; opacity: .86; }
.book-cover-fallback h3 { font-size: clamp(19px,1.8vw,28px); line-height: 1; }
.book-info { padding-top: 12px; }
.book-info h4 { margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "DM Sans",sans-serif; font-size: 13px; font-weight: 800; }
.book-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.book-info p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.book-rating { flex: 0 0 auto; color: var(--forest-600); font-size: 10px; font-weight: 800; }
.no-books { grid-column: 1/-1; padding: 76px 24px; border: 1px dashed rgba(13,45,34,.23); border-radius: 22px; text-align: center; color: var(--muted); background: rgba(255,255,255,.35); }

/* ---------- meetings ---------- */
.meetings-section { overflow: hidden; background: var(--forest-950); color: white; }
.meeting-glow { position: absolute; width: 700px; height: 700px; right: -280px; top: -300px; border-radius: 50%; background: radial-gradient(circle,rgba(127,168,140,.2),transparent 68%); pointer-events: none; }
.light .eyebrow { color: var(--sage-300); }
.light h2 { color: white; }
.light p { color: rgba(255,255,255,.58); }
.meetings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; perspective: 1200px; }
.meeting-card {
  position: relative; min-height: 395px; padding: 26px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-light); border-radius: 26px;
  background: linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  transform-style: preserve-3d;
}
.meeting-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -70px; border-radius: 50%; background: radial-gradient(circle,rgba(127,168,140,.17),transparent 70%); }
.meeting-card:hover { background: linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.035)); border-color: rgba(255,255,255,.2); }
.meeting-index { margin-bottom: 26px; color: rgba(255,255,255,.18); font: 42px/1 "Playfair Display",serif; }
.meeting-date { width: 88px; min-height: 88px; padding: 12px; margin-bottom: 34px; display: grid; place-items: center; align-content: center; border-radius: 18px; background: var(--sage-200); color: var(--forest-950); }
.meeting-date strong { font: 650 32px/1 "Playfair Display",serif; }
.meeting-date span { margin-top: 4px; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.meeting-content { margin-top: auto; position: relative; z-index: 1; }
.meeting-label { margin-bottom: 9px; color: var(--sage-300); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.meeting-content h3 { margin-bottom: 9px; font-size: 29px; line-height: 1; }
.meeting-content p { min-height: 57px; margin-bottom: 22px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.65; }
.meeting-footer { padding-top: 15px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.68); font-size: 11px; font-weight: 700; }

/* ---------- about ---------- */
.about-section { display: grid; grid-template-columns: minmax(260px,.55fr) minmax(0,1fr); gap: 72px; align-items: center; background: var(--sage-200); overflow: hidden; }
.about-number { color: rgba(13,45,34,.1); font: 600 clamp(80px,11vw,170px)/.8 "Playfair Display",serif; letter-spacing: -.07em; white-space: nowrap; }
.about-content { max-width: 820px; }
.about-content h2 { margin-bottom: 25px; font-size: clamp(43px,5.7vw,74px); line-height: .98; letter-spacing: -.035em; }
.about-content > p { max-width: 650px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-quote { max-width: 580px; margin-top: 34px; padding: 20px 0 2px 25px; border-left: 2px solid var(--forest-600); color: var(--forest-800); font: italic 600 21px/1.45 "Playfair Display",serif; }

/* ---------- join ---------- */
.join-section {
  margin: 6%; padding: 68px; border-radius: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 50px;
  overflow: hidden; isolation: isolate; color: white; background: linear-gradient(135deg,var(--forest-800),var(--forest-950));
  box-shadow: var(--shadow);
}
.join-section::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -170px; top: -250px; border-radius: 50%; background: radial-gradient(circle,rgba(185,208,189,.22),transparent 69%); }
.join-copy { max-width: 720px; }
.join-section .eyebrow { color: var(--sage-300); }
.join-copy h2 { margin-bottom: 14px; font-size: clamp(39px,5.4vw,70px); line-height: 1; overflow-wrap: anywhere; }
.join-copy p { max-width: 570px; margin-top: 17px; color: rgba(255,255,255,.62); line-height: 1.7; }
.big-instagram {
  flex: 0 0 auto; min-width: 220px; padding: 17px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  border-radius: 999px; background: var(--cream); color: var(--forest-950); text-decoration: none; font-size: 13px; font-weight: 800;
  transition: transform .28s ease, box-shadow .28s ease;
}
.big-instagram:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,.18); }

/* ---------- footer ---------- */
footer { padding: 30px 6% 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); }
.footer-logo { color: var(--ink); font: 700 18px/1 "Playfair Display",serif; }
footer > span { font-size: 12px; }
.back-top { justify-self: end; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; background: rgba(255,255,255,.35); transition: transform .25s ease, background .25s ease; }
.back-top:hover { transform: translateY(-3px); background: white; }

/* ---------- modal: exact clicked cover ---------- */
.book-modal {
  position: fixed; inset: 0; z-index: 5000; padding: 20px;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.book-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,20,14,.79); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal-panel {
  position: relative; z-index: 2; width: min(900px,100%); max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: minmax(280px,330px) minmax(0,1fr);
  border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: var(--paper); box-shadow: 0 42px 110px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(38px) scale(.955);
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .25s ease;
}
.book-modal.open .modal-panel { opacity: 1; transform: none; }
.modal-close {
  position: absolute; right: 16px; top: 16px; z-index: 8; width: 42px; height: 42px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: 0 9px 28px rgba(0,0,0,.14); cursor: pointer; font-size: 24px; line-height: 1;
  transition: transform .2s ease;
}
.modal-close:hover { transform: rotate(8deg) scale(1.05); }
.modal-cover { position: relative; min-height: 500px; overflow: hidden; background: var(--forest-800); }
.modal-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.modal-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.04) 45%,rgba(4,20,14,.56) 100%); pointer-events: none; }
.modal-cover-genre { position: absolute; left: 22px; bottom: 20px; z-index: 2; padding: 8px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(7,27,20,.35); backdrop-filter: blur(8px); color: white; font-size: 9px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.modal-content { padding: 58px 48px 45px; }
.modal-kicker { color: var(--forest-600); font-size: 9px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; }
.modal-content h2 { margin-top: 12px; font-size: clamp(38px,4.5vw,54px); line-height: .98; letter-spacing: -.035em; }
.modal-author { margin-top: 10px; color: var(--muted); font-size: 14px; }
.modal-rating { margin: 25px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #9b7122; }
.modal-rating-star { font-size: 17px; }
.modal-rating-details { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 11px; }
.modal-rating-details a { color: var(--forest-700); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(30,86,63,.28); }
.modal-rating-details a:hover { border-bottom-color: currentColor; }
.modal-description { color: var(--muted); font-size: 14px; line-height: 1.82; }
.modal-meta { margin-top: 30px; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); }
.modal-meta small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.modal-meta strong { font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .hero { grid-template-columns: minmax(0,1fr) 430px; gap: 36px; }
  .books-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .picks-scroller { grid-auto-columns: minmax(330px,40vw); }
}

@media (max-width: 980px) {
  .nav-links, .nav-right { display: none; }
  .mobile-button { display: block; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 126px; }
  .hero-content { max-width: 800px; }
  .hero-visual { min-height: 520px; width: min(620px,100%); margin: 0 auto; }
  .heading-row { grid-template-columns: 1fr; gap: 18px; }
  .picks-scroller { grid-auto-columns: minmax(320px,53vw); }
  .meetings-grid { grid-template-columns: 1fr; }
  .meeting-card { min-height: 330px; }
  .about-section { grid-template-columns: 1fr; gap: 25px; }
  .about-number { font-size: clamp(78px,18vw,150px); }
}

@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .navbar { padding: 0 5%; }
  .logo { font-size: 17px; }
  .hero { padding: 112px 5% 60px; gap: 28px; }
  .hero-title { font-size: clamp(57px,17vw,83px); letter-spacing: -.055em; }
  .hero-description { font-size: 15px; }
  .hero-meta { overflow-x: auto; }
  .hero-meta > div { min-width: 100px; padding: 0 17px; }
  .hero-visual { min-height: 410px; transform: scale(.9); transform-origin: center top; margin-bottom: -38px; }
  .hero-book-main { right: 11%; top: 45px; width: 205px; height: 306px; padding: 24px; }
  .hero-book-main h2 { font-size: 34px; }
  .hero-book-back { left: 2%; bottom: 35px; width: 165px; height: 248px; padding: 20px; }
  .hero-book-back h2 { font-size: 27px; }
  .note-one { right: 0; top: 105px; }
  .note-two { left: 0; top: 83px; }
  section { padding: 78px 5%; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: clamp(42px,12vw,62px); }
  .picks-scroller { grid-auto-columns: 84vw; margin-right: -5vw; padding-right: 5vw; }
  .pick-card { min-height: 260px; grid-template-columns: 1fr 96px; padding: 23px; }
  .pick-cover-image { width: 96px; }
  .pick-bottom h3 { font-size: 29px; }
  .library-toolbar { align-items: flex-start; flex-direction: column; }
  .search-container { width: 100%; }
  .books-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 14px; }
  .genre-filter { flex-wrap: nowrap; overflow-x: auto; margin-right: -5vw; padding-right: 5vw; padding-bottom: 6px; scrollbar-width: none; }
  .genre-filter::-webkit-scrollbar { display: none; }
  .genre-button { flex: 0 0 auto; }
  .join-section { margin: 5%; padding: 45px 26px; flex-direction: column; align-items: flex-start; border-radius: 28px; }
  .instagram-button { width: 100%; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { display: none; }
  .modal-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-cover { min-height: min(60vh,430px); }
  .modal-content { padding: 36px 25px 32px; }
}

@media (max-width: 430px) {
  .logo-copy { max-width: 190px; white-space: nowrap; }
  .hero { padding-inline: 4.5%; }
  .hero-title { font-size: 55px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .button { width: 100%; }
  .hero-visual { transform: scale(.82); margin-inline: -9%; width: 118%; margin-bottom: -80px; }
  .book-cover-fallback { padding: 16px; }
  .book-cover-fallback h3 { font-size: 18px; }
  .book-info h4 { font-size: 12px; }
  .book-info p { font-size: 10px; }
  .about-quote { font-size: 18px; }
  .big-instagram { font-size: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .book-card, .book-card.pop-ready, .book-card.book-visible { opacity: 1 !important; transform: none !important; filter: none !important; }
  .cursor-glow { display: none; }
}
