/* ═══════════════════════════════════════════════
   BIOMANUFACTURING MADE SIMPLE — styles.css
   Dark editorial aesthetic
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --dark3:      #242424;
  --border:     #2a2a2a;
  --grey:       #555;
  --light-grey: #999;
  --accent:     #c8c8b8;
  --white:      #f5f5f0;
  --highlight:  #d4c9a0;

  --display: 'Bebas Neue', sans-serif;
  --serif:   'DM Serif Display', serif;
  --body:    'DM Sans', sans-serif;

  --nav-h:  64px;
  --max-w:  1300px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--highlight); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── PAGES (SPA) ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: var(--white);
  cursor: pointer;
  transition: color .2s;
  user-select: none;
  line-height: 1.1;
}
.nav-logo:hover { color: var(--highlight); }
.nav-logo span { color: var(--highlight); }

.nav-links { display: flex; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: .5rem .85rem;
  color: var(--light-grey);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--white); }
.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: .85rem; right: .85rem;
  height: 1px;
  background: var(--highlight);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: var(--dark2);
  border: 1px solid var(--border);
  min-width: 190px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  z-index: 100;
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: .7rem 1.2rem;
  color: var(--light-grey);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  transition: all .15s;
  cursor: pointer;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--white); background: var(--dark3); padding-left: 1.6rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: .8rem 2rem;
  color: var(--light-grey);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
  cursor: pointer;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .sub { padding-left: 3rem; font-size: .77rem; color: #555; }

/* ── HERO ── */
.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 4rem;
  padding-top: 10rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--dark2);
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.hero-label {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: .04em;
  line-height: .95;
  color: var(--white);
  margin-bottom: 2rem;
}
.hero h1 span { display: block; }
.hero p {
  font-size: 1rem;
  color: var(--accent);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.page-wrap {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
}
.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}
.section-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: .5rem;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: .05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: .5rem;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--light-grey);
  max-width: 600px;
  font-weight: 300;
}

/* ── HOME CATEGORIES ── */
.home-categories {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 5rem 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.category-card {
  background: var(--dark);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background .2s;
}
.category-card:hover { background: var(--dark2); }
.category-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  opacity: .75;
  transition: opacity .3s;
}
.category-card:hover img { opacity: .9; }
.category-card-body {
  padding: 1.6rem 1.8rem 2rem;
  border-top: 1px solid var(--border);
}
.category-card h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: .5rem;
}
.category-card p {
  font-size: 1rem;
  color: var(--light-grey);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-weight: 300;
}
.card-link-text {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--highlight);
}

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.article-card {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  transition: background .2s;
}
.article-card:hover { background: var(--dark2); }
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: .8;
  transition: opacity .3s;
}
.article-card:hover img { opacity: 1; }
.article-card-body {
  padding: 1.4rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border);
}
.article-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--highlight);
  border: 1px solid var(--grey);
  padding: .15rem .5rem;
  margin-bottom: .75rem;
  border-radius: 1px;
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: .6rem;
  font-weight: 400;
}
.article-card p {
  font-size: 1rem;
  color: var(--light-grey);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.4rem;
  font-weight: 300;
}
.article-btns {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .5rem 1.1rem;
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  border: none;
  border-radius: 1px;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { background: var(--highlight); text-decoration: none; color: var(--black); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.05); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--light-grey);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: var(--grey); text-decoration: none; }
.btn-amazon {
  background: #c8a84b;
  color: var(--black);
  display: inline-block;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .15s;
  border-radius: 1px;
}
.btn-amazon:hover { opacity: .85; text-decoration: none; }

/* ── BOOKS ── */
.books-intro-lead {
  font-size: 1.05rem;
  color: var(--highlight);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.books-intro-body {
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.85;
  font-weight: 300;
  max-width: 780px;
  margin-bottom: 1.2rem;
}
.books-intro-series {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.books-intro-series li {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 300;
  padding: .3rem 0 .3rem 1rem;
  border-left: 2px solid var(--highlight);
  margin-bottom: .4rem;
}
.books-section-intro {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.books-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.books-tab {
  padding: .75rem 1.5rem;
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light-grey);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.books-tab:hover { color: var(--white); }
.books-tab.active { color: var(--white); border-bottom-color: var(--highlight); }

.book-panel { display: none; }
.book-panel.active { display: block; }

.book-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.book-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--dark);
}
.book-card img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  display: block;
}
.book-card.coming { opacity: .5; }
.book-info {
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.book-vol {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: .4rem;
}
.book-info h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: .7rem;
  font-weight: 400;
  line-height: 1.3;
}
.book-info p {
  font-size: 1rem;
  color: var(--light-grey);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.book-btns { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.coming-badge {
  display: inline-block;
  background: var(--dark3);
  color: var(--light-grey);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border: 1px solid var(--border);
}

/* ── GLOSSARY ── */
.glossary-download { margin-bottom: 2rem; }
.glossary-lead {
  font-size: 1.05rem;
  color: var(--highlight);
  font-weight: 400;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.glossary-intro-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: .8rem;
}
.glossary-intro-body {
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.85;
  font-weight: 300;
  max-width: 780px;
  margin-bottom: 2.5rem;
}
.glossary-search-wrap { margin-bottom: 2.5rem; }
.glossary-search {
  width: 100%;
  max-width: 440px;
  padding: .7rem 1rem;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--white);
  outline: none;
  transition: border-color .15s;
  border-radius: 1px;
}
.glossary-search:focus { border-color: var(--highlight); }
.glossary-search::placeholder { color: var(--grey); }

.glossary-letter-group { margin-bottom: 2.5rem; }
.glossary-letter {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .1em;
  color: var(--highlight);
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}
.g-term {
  margin-bottom: .75rem;
  padding: 1rem 1.2rem;
  background: var(--dark2);
  border-left: 2px solid var(--highlight);
}
.g-term dt {
  font-weight: 500;
  color: var(--white);
  font-size: .98rem;
  margin-bottom: .25rem;
  letter-spacing: .02em;
}
.g-term dd {
  font-size: .98rem;
  color: var(--light-grey);
  line-height: 1.65;
  font-weight: 300;
}

/* ── RESOURCES ── */
.resources-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.resources-nav button {
  padding: .75rem 1.5rem;
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light-grey);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.resources-nav button:hover { color: var(--white); }
.resources-nav button.active { color: var(--white); border-bottom-color: var(--highlight); }

.resource-panel { display: none; }
.resource-panel.active { display: block; }

.resource-intro {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  max-width: 680px;
}
.resource-intro h2 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: .6rem;
}
.resource-intro p {
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.75;
  font-weight: 300;
}
.empty-state {
  padding: 4rem 0;
  color: var(--grey);
  font-size: .98rem;
  border: 1px solid var(--border);
  text-align: center;
}
.empty-state p { margin-bottom: .3rem; }

/* Useful links — grouped */
.links-category {
  margin-bottom: 3rem;
}
.links-category-title {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.links-list {
  display: flex;
  flex-direction: column;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  transition: background .15s, color .15s;
}
.link-row:first-child { border-top: 1px solid var(--border); }
.link-row:hover { background: var(--dark2); color: var(--highlight); }
.link-row-arrow {
  color: var(--grey);
  font-size: 1rem;
  transition: color .15s, transform .15s;
}
.link-row:hover .link-row-arrow {
  color: var(--highlight);
  transform: translateX(4px);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-text h2 {
  font-family: var(--display);
  font-size: 2.5rem;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: .3rem;
}
.about-role {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 2rem;
}
.about-section {
  margin-bottom: 2.5rem;
}
.about-section-title {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--highlight);
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.about-text p {
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-weight: 300;
}
.about-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: .3rem;
}
.about-vaxeng-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
  flex-shrink: 0;
}
.about-socials {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s;
}
.social-link:hover {
  color: var(--highlight);
}
.social-link svg {
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.contact-info h2 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: .75rem;
}
.contact-info p {
  font-size: 1rem;
  color: var(--light-grey);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.contact-email-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--highlight);
}
.contact-socials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-form {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.contact-form h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.8rem;
  font-weight: 400;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  font-family: var(--body);
  font-size: .98rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--white);
  outline: none;
  transition: border-color .15s;
  font-weight: 300;
  border-radius: 1px;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--highlight); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── PRIVACY ── */
.privacy-content { max-width: 680px; }
.privacy-date {
  font-size: .85rem;
  color: var(--grey);
  margin-bottom: 2rem;
  letter-spacing: .04em;
}
.privacy-content p {
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* ── DIVIDER ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: .7rem;
}
.footer-brand p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey);
  font-weight: 300;
}
.footer-col h4 {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  font-size: 1rem;
  color: var(--grey);
  text-decoration: none;
  margin-bottom: .6rem;
  cursor: pointer;
  transition: color .15s;
  font-weight: 300;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--grey);
  letter-spacing: .04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .category-grid { grid-template-columns: 1fr; gap: 1px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .book-card { grid-template-columns: 130px 1fr; }
  .book-card img { width: 130px; height: 185px; }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 5rem; }
  .container, .nav-inner { padding: 0 1.25rem; }
  .page-wrap { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
  .book-card { grid-template-columns: 1fr; }
  .book-card img { width: 100%; height: 200px; }
  .book-info { padding: 1.4rem; border-left: none; border-top: 1px solid var(--border); }
  .article-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

/* ── EMAIL MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--white); }
.modal-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: .4rem;
}
.modal-subtitle {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.modal-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: .75rem 1rem;
  font-size: 1rem;
  font-family: var(--body);
  outline: none;
  margin-bottom: .75rem;
  box-sizing: border-box;
  transition: border-color .2s;
}
.modal-input:focus { border-color: var(--highlight); }
.modal-error {
  font-size: .88rem;
  color: #e06060;
  margin-bottom: .75rem;
}
.modal-btn { width: 100%; justify-content: center; margin-top: .25rem; }
.modal-thanks {
  font-size: 1rem;
  color: var(--highlight);
  margin: .75rem 0 .5rem;
  font-weight: 400;
}
