/* ==========================================================================
   abuhena.ca — Dr. Abu Hena Mahboob
   Design system: midnight navy · ocean teal · ivory · coral accent
   ========================================================================== */

:root {
  --navy: #0a1726;
  --navy-2: #10233a;
  --navy-3: #18324f;
  --teal: #0f8b8d;
  --teal-2: #2bc4b4;
  --teal-soft: #d8efec;
  --ivory: #f6f3ec;
  --ivory-2: #efe9dd;
  --paper: #fffdf8;
  --coral: #f06a3b;
  --gold: #c9a45c;
  --ink: #13202e;
  --ink-2: #33475b;
  --muted: #64758a;
  --line: rgba(19, 32, 46, .1);
  --line-dark: rgba(255, 255, 255, .12);

  --glass: rgba(255, 255, 255, .08);
  --glass-strong: rgba(255, 255, 255, .14);
  --glass-light: rgba(255, 255, 255, .62);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-bn: "Hind Siliguri", "Noto Sans Bengali", "Plus Jakarta Sans", sans-serif;
  --f-bn-display: "Noto Serif Bengali", "Hind Siliguri", serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(10, 23, 38, .06);
  --shadow: 0 18px 50px -18px rgba(10, 23, 38, .28);
  --shadow-lg: 0 40px 90px -30px rgba(10, 23, 38, .45);
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="bn"] body { font-family: var(--f-bn); font-size: 18px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: inherit; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, .bn h1, .bn h2, .bn h3 { font-family: var(--f-bn-display); letter-spacing: 0; line-height: 1.35; }
.bn { font-family: var(--f-bn); }
::selection { background: var(--teal-2); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; gap: 5px; }
.logo-word { display: inline-flex; align-items: baseline; font-family: var(--f-sans); font-size: 27px; letter-spacing: -.035em; }
.logo-word .a { font-weight: 800; }
.logo-word .h { font-weight: 300; }
.logo-word .dot { width: 7px; height: 7px; border-radius: 50%; margin-left: 3px; background: linear-gradient(135deg, var(--teal-2), var(--teal)); box-shadow: 0 0 12px var(--teal-2); align-self: flex-end; margin-bottom: 5px; }
.logo-tag { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; opacity: .6; padding-left: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background .4s var(--ease), box-shadow .4s, color .3s, padding .3s;
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled, .site-header.solid {
  background: rgba(10, 23, 38, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line-dark);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 14.5px; font-weight: 500; padding: 9px 14px; border-radius: 999px; opacity: .82; transition: opacity .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: var(--glass-strong); }
.nav a.bn-link { font-family: var(--f-bn); font-size: 15.5px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--teal-2), var(--teal)); color: #fff; box-shadow: 0 12px 30px -10px rgba(43, 196, 180, .65); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(43, 196, 180, .8); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 12px 30px -12px rgba(240, 106, 59, .7); }
.btn-ghost { background: var(--glass); color: #fff; border-color: var(--line-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { border-color: rgba(19, 32, 46, .2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.header-cta { display: inline-flex; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--glass); color: #fff; cursor: pointer; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px; gap: 6px;
  background: rgba(10, 23, 38, .88); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  color: #fff; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu a.m-link { font-family: var(--f-display); font-size: clamp(30px, 8vw, 44px); padding: 6px 0; border-bottom: 1px solid var(--line-dark); transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.mobile-menu a.m-link.bn-link { font-family: var(--f-bn-display); }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a.m-link { transform: none; opacity: 1; }
.menu-open .mobile-menu a.m-link:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-menu a.m-link:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu a.m-link:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-menu a.m-link:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu a.m-link:nth-child(6) { transition-delay: .2s; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 700px at 85% 20%, rgba(43, 196, 180, .22), transparent 60%),
              radial-gradient(900px 600px at 10% 100%, rgba(15, 139, 141, .25), transparent 60%),
              linear-gradient(160deg, #0b1a2c 0%, var(--navy) 55%, #07111d 100%);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 130px 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% center; opacity: .55; transform: scale(1.06); will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 23, 38, .92) 0%, rgba(10, 23, 38, .55) 45%, rgba(10, 23, 38, .15) 100%), linear-gradient(0deg, var(--navy) 0%, transparent 25%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.hero-orb.o1 { width: 420px; height: 420px; background: var(--teal); top: -120px; right: 10%; }
.hero-orb.o2 { width: 300px; height: 300px; background: #1e4e8c; bottom: -80px; left: 30%; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.dark { color: var(--teal); }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 26px; }
.hero h1 em { font-style: italic; font-weight: 300; background: linear-gradient(100deg, #fff 10%, var(--teal-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.cred-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(255, 255, 255, .88); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 10px var(--teal-2); }

.hero-portrait { position: relative; justify-self: center; width: min(100%, 470px); }
.portrait-ring { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 10px; background: conic-gradient(from 210deg, rgba(43, 196, 180, .9), rgba(43, 196, 180, 0) 35%, rgba(255, 255, 255, .25) 60%, rgba(43, 196, 180, .9)); box-shadow: 0 40px 120px -30px rgba(43, 196, 180, .55); animation: spin 18s linear infinite; }
.portrait-ring > .inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; animation: spin 18s linear infinite reverse; background: var(--navy-2); }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@keyframes spin { to { transform: rotate(360deg); } }
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--r); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.float-card { position: absolute; padding: 14px 18px; color: #fff; display: flex; align-items: center; gap: 12px; animation: bob 6s ease-in-out infinite; }
.float-card b { font-family: var(--f-display); font-size: 30px; font-weight: 500; line-height: 1; }
.float-card span { font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.float-card.f1 { left: -8%; bottom: 14%; }
.float-card.f2 { right: -6%; top: 10%; animation-delay: -3s; }
.float-card.f3 { right: 2%; bottom: -2%; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: scrolly 1.8s ease-in-out infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: rgba(255, 255, 255, .55); border-top: 1px solid var(--line-dark); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: 19px; font-style: italic; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: 11px; color: var(--teal-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.tight { padding: clamp(60px, 8vw, 100px) 0; }
.section.dark { background: var(--navy); color: #fff; }
.section.paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); }
.section-head p { font-size: 18px; color: var(--muted); }
.dark .section-head p { color: rgba(255, 255, 255, .65); }
.h-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 56px); }
.h-row .section-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--teal); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.dark .link-arrow { color: var(--teal-2); }

/* ---------- Featured book ---------- */
.feature-book { overflow: hidden; background: radial-gradient(800px 500px at 20% 50%, rgba(43, 196, 180, .16), transparent 60%), linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%); }
.feature-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.feature-grid.flip { grid-template-columns: 1.05fr .95fr; }
.feature-grid.flip .book-stage { order: 2; }
.book-stage { position: relative; display: grid; place-items: center; perspective: 1800px; padding: 20px 0 40px; }
.book-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(43, 196, 180, .35), transparent 65%); filter: blur(20px); }
.book-3d { position: relative; width: min(82%, 400px); transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(4deg); transition: transform .8s var(--ease); }
.book-3d:hover { transform: rotateY(-6deg) rotateX(2deg) translateY(-6px); }
.book-3d img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 50px 80px -30px rgba(10, 23, 38, .55), 0 18px 30px -14px rgba(10, 23, 38, .35); position: relative; z-index: 2; }
.book-3d::before { content: ""; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 7%; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(255, 255, 255, .25) 40%, rgba(0, 0, 0, .12) 75%, transparent); pointer-events: none; }
.book-3d::after { content: ""; position: absolute; z-index: 1; top: 1.2%; bottom: 1.2%; right: -14px; width: 16px; background: repeating-linear-gradient(0deg, #f3efe6 0 2px, #e2dccf 2px 3px); transform: rotateY(60deg); transform-origin: left; border-radius: 0 3px 3px 0; box-shadow: inset 2px 0 6px rgba(0, 0, 0, .12); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(240, 106, 59, .12); color: #c4461b; margin-bottom: 18px; }
.badge.teal { background: rgba(15, 139, 141, .12); color: var(--teal); }
.feature-copy h2 { font-size: clamp(36px, 5vw, 62px); margin-bottom: 14px; }
.feature-copy .sub { font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); margin-bottom: 22px; }
.feature-copy > p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.checks li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.price-note { font-size: 13.5px; color: var(--muted); }
.quote-card { margin: 30px 0; padding: 24px 26px; border-left: 3px solid var(--teal); background: rgba(15, 139, 141, .06); border-radius: 0 var(--r) var(--r) 0; }
.quote-card p { font-family: var(--f-display); font-size: 21px; font-style: italic; line-height: 1.45; margin-bottom: 10px; color: var(--ink); }
.quote-card cite { font-style: normal; font-size: 14px; color: var(--muted); }
.quote-card cite b { color: var(--ink); font-weight: 600; }

/* ---------- Bengali books shelf ---------- */
.shelf-section { background: linear-gradient(180deg, var(--navy) 0%, #0d1f33 100%); color: #fff; overflow: hidden; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 310px); gap: clamp(18px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf::-webkit-scrollbar { display: none; }
.shelf-item { scroll-snap-align: start; }
.shelf-cover { position: relative; border-radius: var(--r); padding: 14px 10px 6px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid var(--line-dark); transition: transform .5s var(--ease), background .4s; }
.shelf-item:hover .shelf-cover { transform: translateY(-8px); background: linear-gradient(160deg, rgba(43, 196, 180, .2), rgba(255, 255, 255, .03)); }
.shelf-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.shelf-item h3 { font-family: var(--f-bn-display); font-size: 18px; line-height: 1.45; margin: 16px 4px 4px; font-weight: 500; }
.shelf-item p { font-size: 13.5px; color: rgba(255, 255, 255, .55); margin: 0 4px; line-height: 1.45; }
.shelf-nav { display: flex; gap: 10px; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); background: var(--glass); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.round-btn:hover { background: var(--glass-strong); transform: scale(1.05); }
.round-btn svg { width: 20px; height: 20px; }

/* ---------- About teaser ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.photo-stack { position: relative; aspect-ratio: 4 / 5; }
.photo-stack figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.photo-stack figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .p1 { inset: 0 18% 12% 0; }
.photo-stack .p2 { width: 46%; aspect-ratio: 4/5; right: 0; bottom: 0; border: 6px solid var(--ivory); }
.photo-stack .stamp { position: absolute; left: -4%; bottom: 4%; z-index: 3; padding: 18px 22px; border-radius: var(--r); background: rgba(255, 253, 248, .75); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); }
.stamp b { display: block; font-family: var(--f-display); font-size: 40px; font-weight: 500; line-height: 1; color: var(--teal); }
.stamp span { font-size: 13px; color: var(--ink-2); }
.about-copy h2 { font-size: clamp(34px, 4.6vw, 56px); }
.about-copy p { color: var(--ink-2); font-size: 17.5px; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.cred { padding: 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.cred b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 600; color: var(--navy); }
.cred span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat { padding: clamp(28px, 4vw, 48px) 20px; text-align: center; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(44px, 6vw, 76px); font-weight: 300; line-height: 1; background: linear-gradient(180deg, #fff, var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; }

/* ---------- Article cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.card-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.card h3 { font-size: 23px; line-height: 1.25; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .more { margin-top: auto; padding-top: 8px; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Bengali cards (text-forward, glass-tinted) */
.bn-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; overflow: hidden; }
.bn-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 196, 180, .22), transparent 70%); transition: transform .6s var(--ease); }
.bn-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(15, 139, 141, .3); }
.bn-card:hover::before { transform: scale(1.5); }
.bn-card .cat { font-family: var(--f-bn); font-size: 14px; font-weight: 600; color: var(--teal); display: flex; justify-content: space-between; gap: 10px; }
.bn-card .cat small { font-family: var(--f-sans); font-weight: 500; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.bn-card h3 { font-family: var(--f-bn-display); font-size: 21px; line-height: 1.5; margin: 0; font-weight: 600; }
.bn-card p { font-family: var(--f-bn); color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }
.bn-card .more { margin-top: auto; font-family: var(--f-bn); }
.dark .bn-card { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); }
.dark .bn-card p { color: rgba(255, 255, 255, .6); }
.dark .bn-card .cat small { color: rgba(255, 255, 255, .5); }

/* ---------- Journeys ---------- */
.journeys { background: var(--navy) center/cover no-repeat; color: #fff; overflow: hidden; }
.journeys::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 23, 38, .55), rgba(10, 23, 38, .92)); }
.journeys .wrap { position: relative; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy-2); }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.92); }
.mosaic figure:hover img { transform: scale(1.06); filter: saturate(1.08); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; width: max-content; max-width: calc(100% - 20px); background: rgba(10, 23, 38, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.passions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.passion { padding: 26px; display: flex; gap: 18px; align-items: flex-start; }
.passion .ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-2), var(--teal)); }
.passion .ico svg { width: 24px; height: 24px; color: #fff; }
.passion h3 { font-size: 22px; margin-bottom: 6px; }
.passion p { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, .72); }
.journeys-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(34px, 6vw, 80px); align-items: center; }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(40px, 7vw, 80px); color: #fff; background: radial-gradient(600px 400px at 90% 0%, rgba(43, 196, 180, .5), transparent 60%), linear-gradient(135deg, var(--navy-3), var(--navy)); display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; }
.cta-band .cover-mini { justify-self: end; width: min(100%, 220px); transform: rotate(6deg); transition: transform .6s var(--ease); }
.cta-band:hover .cover-mini { transform: rotate(0) scale(1.03); }
.cta-band .cover-mini img { border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer { background: #07111d; color: rgba(255, 255, 255, .7); padding: 80px 0 34px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--f-sans); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--teal-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }
.disclaimer { font-size: 13.5px; color: rgba(255, 255, 255, .45); max-width: 380px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 9vw, 110px); background: radial-gradient(900px 500px at 85% 0%, rgba(43, 196, 180, .28), transparent 60%), linear-gradient(160deg, #0b1a2c, var(--navy) 60%, #07111d); isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .22; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 400; max-width: 16ch; }
.page-hero p.lede { font-size: clamp(17px, 1.7vw, 20px); color: rgba(255, 255, 255, .72); max-width: 640px; margin: 0; }
html[lang="bn"] .page-hero h1 { font-size: clamp(36px, 5.6vw, 72px); max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .55); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Article page ---------- */
.article-hero { padding-bottom: clamp(50px, 7vw, 80px); }
.article-hero h1 { max-width: 22ch; font-size: clamp(36px, 5.2vw, 66px); }
html[lang="bn"] .article-hero h1 { font-size: clamp(30px, 4.6vw, 56px); max-width: 24ch; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.byline img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal-2); }
.byline b { display: block; font-weight: 600; font-size: 15.5px; }
.byline span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(30px, 6vw, 90px); justify-content: center; padding: clamp(50px, 7vw, 90px) 0; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
.toc h2 { font-family: var(--f-sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="bn"] .toc h2 { font-family: var(--f-bn); letter-spacing: .02em; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line); max-height: calc(100vh - 200px); overflow: auto; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--muted); line-height: 1.45; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.active { color: var(--teal); border-color: var(--teal); }
.prose { font-size: 18.5px; color: var(--ink-2); min-width: 0; }
html[lang="bn"] .prose { font-size: 19px; line-height: 1.95; }
.prose > p:first-of-type { font-size: 1.12em; color: var(--ink); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 1.9em 0 .6em; scroll-margin-top: 100px; position: relative; }
.prose h3 { font-size: 23px; color: var(--ink); margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.4em; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px rgba(43, 196, 180, .18); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; font-family: var(--f-sans); }
.prose blockquote, .prose .note { margin: 1.6em 0; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(135deg, rgba(43, 196, 180, .12), rgba(15, 139, 141, .04)); border: 1px solid rgba(15, 139, 141, .2); color: var(--ink); font-weight: 500; }
.prose blockquote p:last-child { margin: 0; }
.prose strong { color: var(--ink); }
.faq { margin-top: 3em; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 20px; font-weight: 400; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; }
.med-disclaimer { margin-top: 3em; padding: 20px 24px; border-radius: var(--r); background: var(--ivory-2); font-size: .82em; color: var(--muted); line-height: 1.7; }
.book-promo { margin-top: 3em; display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: var(--r-lg); background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.book-promo::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 196, 180, .4), transparent 70%); }
.book-promo img { border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-lg); position: relative; }
.book-promo h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.book-promo p { color: rgba(255, 255, 255, .7); font-size: 15.5px; margin-bottom: 16px; line-height: 1.6; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 2.4em; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, color .2s; }
.share a:hover { background: var(--navy); color: #fff; }
.share svg { width: 17px; height: 17px; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--teal-2), var(--coral)); }

/* ---------- Filters (Bangla index) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { font-family: var(--f-bn); font-size: 15.5px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink-2); transition: all .2s; }
.filter:hover { border-color: var(--teal); color: var(--teal); }
.filter.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { position: relative; max-width: 520px; margin-top: 34px; }
.search input { width: 100%; font: inherit; font-family: var(--f-bn); font-size: 17px; padding: 17px 22px 17px 54px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); outline: none; }
.search input::placeholder { color: rgba(255, 255, 255, .55); }
.search input:focus { border-color: var(--teal-2); background: rgba(255, 255, 255, .14); }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; opacity: .7; }

/* ---------- Books page ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 30px); }
.book-tile { display: flex; flex-direction: column; gap: 6px; }
.book-tile .cover { border-radius: var(--r); background: linear-gradient(160deg, var(--paper), var(--ivory-2)); border: 1px solid var(--line); padding: 18px 12px 8px; transition: transform .5s var(--ease), box-shadow .5s; }
.book-tile:hover .cover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-tile .cover img { width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.book-tile h3 { font-family: var(--f-bn-display); font-size: 19px; line-height: 1.45; margin: 14px 2px 0; font-weight: 600; }
.book-tile .en { font-size: 14.5px; color: var(--ink-2); font-weight: 600; margin: 0 2px; }
.book-tile p { font-size: 14.5px; color: var(--muted); margin: 0 2px; line-height: 1.55; }
.english-books { display: grid; gap: clamp(60px, 9vw, 120px); }

/* ---------- About page ---------- */
.timeline { position: relative; display: grid; gap: 0; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(var(--teal-2), rgba(43, 196, 180, .1)); }
.tl { position: relative; padding: 0 0 34px 56px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.tl h3 { font-size: 22px; margin-bottom: 4px; }
.tl .where { font-size: 14.5px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.tl p { margin: 0; color: var(--muted); font-size: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.big-quote { font-family: var(--f-display); font-size: clamp(28px, 3.8vw, 46px); line-height: 1.25; font-weight: 300; font-style: italic; margin: 0; }
.big-quote::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--teal-2); font-style: normal; margin-bottom: 10px; }
.big-quote footer { margin-top: 20px; font-family: var(--f-sans); font-style: normal; font-size: 15px; color: rgba(255, 255, 255, .6); }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.lead-text p { font-size: 18.5px; color: var(--ink-2); }
.lead-text p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 4.2em; line-height: .85; padding: 6px 12px 0 0; color: var(--teal); }

/* ---------- Journeys page ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy-2); }
.masonry img { width: 100%; transition: transform 1s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; padding: 7px 13px; border-radius: 999px; background: rgba(10, 23, 38, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: 120px; min-height: auto; }
  .hero-grid, .feature-grid, .feature-grid.flip, .about-grid, .two-col, .journeys-grid, .cta-band { grid-template-columns: 1fr; }
  .feature-grid.flip .book-stage { order: 0; }
  .hero-portrait { width: min(78%, 380px); order: -1; margin-bottom: 10px; }
  .float-card.f1 { left: -14%; }
  .float-card.f2 { right: -12%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .photo-stack { max-width: 520px; margin: 0 auto; width: 100%; }
  .cta-band .cover-mini { justify-self: start; width: 160px; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cred { padding: 14px 10px; }
  .cred b { font-size: 19px; }
  .cred span { font-size: 12px; }
  .float-card { padding: 10px 13px; }
  .float-card b { font-size: 23px; }
  .float-card span { font-size: 11px; }
  .float-card.f3 { display: none; }
  .passions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .book-promo { grid-template-columns: 90px 1fr; gap: 18px; padding: 20px; }
  .book-promo h3 { font-size: 19px; }
  .cta-row .btn { flex: 1 1 100%; }
  .prose { font-size: 17.5px; }
  html[lang="bn"] .prose { font-size: 18px; }
  .shelf { grid-auto-columns: 72%; }
  .mosaic { grid-auto-rows: 130px; gap: 10px; }
  .mosaic figcaption { font-size: 11px; padding: 5px 10px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip img:last-child { display: none; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .book-tile h3 { font-size: 16px; }
  .book-tile .en, .book-tile p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Layout refinements ---------- */
.shelf { scroll-padding-inline: var(--gutter); }
.journeys-grid .passions { grid-template-columns: 1fr; }
.mosaic { grid-auto-flow: dense; }
.cta-band > *, .feature-grid > *, .hero-grid > *, .about-grid > *, .two-col > *, .journeys-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .cta-band { padding: 34px 22px; }
}
.search { display: block; }
.search svg { z-index: 1; color: #fff; pointer-events: none; }
html[lang="bn"] .eyebrow, .bn-card .cat, [lang="bn"] .eyebrow { letter-spacing: .02em; font-family: var(--f-bn); font-size: 15px; }

/* ---------- Bengali book wall (3-up grid, replaces carousel) ---------- */
.book-wall { --g: clamp(18px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--g) * 1.2) var(--g); }
.book-wall .shelf-item { width: calc((100% - 2 * var(--g)) / 3); max-width: 380px; }
.book-wall .shelf-cover { padding: 22px 18px 10px; }
.book-wall .shelf-item h3 { font-size: clamp(17px, 1.6vw, 21px); text-align: center; margin-top: 18px; }
.book-wall .shelf-item p { text-align: center; font-size: 14px; }
.book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4vw, 50px) clamp(18px, 3vw, 40px); }
.book-tile .cover { padding: 24px 18px 10px; }
@media (max-width: 640px) {
  .book-wall { --g: 14px; }
  .book-wall .shelf-item { width: calc((100% - var(--g)) / 2); }
  .book-wall .shelf-cover { padding: 12px 8px 4px; border-radius: 14px; }
  .book-wall .shelf-item h3 { font-size: 15.5px; margin-top: 12px; }
  .book-wall .shelf-item p { font-size: 12.5px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.section-head.center .eyebrow { flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) { .section-head.center .eyebrow::before, .section-head.center .eyebrow::after { display: none; } }
