/* Global styles */
:root {
  --bg: #070815;
  --bg-elevated: #111324;
  --bg-soft: #181a30;
  --accent: #f4b400;
  --accent-soft: rgba(244, 180, 0, 0.12);
  --accent-strong: #ffcc33;
  --text: #f5f5f7;
  --text-muted: #a0a3b1;
  --border-subtle: #2a2d45;
  --error: #ff6b6b;
}

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1b1d3a 0, #070815 45%, #02030a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header & navigation */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(7, 8, 21, 0.96), rgba(7, 8, 21, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(0.75rem, 3vw, 1.5rem);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.nav-brand span {
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-link .bi {
  font-size: 1.05em;
  opacity: 0.88;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0;
  transform-origin: left;
  transition: width 0.22s ease, opacity 0.22s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #ffffff;
}

.nav-link[aria-current="page"]::after,
.nav-link:hover::after {
  width: 100%;
  opacity: 1;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.3);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.14), rgba(7, 8, 21, 0.3));
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 14;
  opacity: 0;
  transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
  body.nav-open .nav-overlay {
    display: block;
    opacity: 1;
  }
}

/* Hero (Home) */
.hero {
  padding: 3.25rem 0 3.75rem;
}

/* Full-screen video hero */
.hero--fullscreen-video {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(7, 8, 21, 0.92) 0%,
    rgba(7, 8, 21, 0.6) 50%,
    rgba(7, 8, 21, 0.35) 100%
  );
  pointer-events: none;
}

.hero--fullscreen-video .hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  padding: 4rem 1.5rem;
}

.hero--fullscreen-video .hero-content {
  max-width: 36rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem 0.25rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.18);
  background: radial-gradient(circle at left, rgba(244, 180, 0, 0.18), transparent 65%);
  font-size: 0.78rem;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.hero-kicker-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(244, 180, 0, 0.7);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero-title span {
  background: linear-gradient(120deg, #ffffff, var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-metadata strong {
  color: #ffffff;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #221400;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.btn-secondary {
  background: rgba(11, 14, 35, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: #1a1d35;
  color: #ffffff;
}

.btn-pill {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-inline: 1.2rem;
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.hero-about-link {
  font-size: 0.9rem;
  color: var(--accent-strong);
  margin-left: 0.25rem;
}
.hero-about-link:hover {
  text-decoration: underline;
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-note strong {
  color: #ffffff;
  font-weight: 500;
}

/* Hero media */
.hero-media {
  position: relative;
}

.hero-media-card {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  background: radial-gradient(circle at top, #23264a, #070815);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-media-inner {
  position: relative;
  padding: 0.9rem;
}

.hero-video-shell {
  position: relative;
  border-radius: 0.95rem;
  overflow: hidden;
  background: #000;
}

.hero-video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(244, 180, 0, 0.15), transparent 55%);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  display: block;
}

.hero-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.95rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-video-play:hover {
  background: rgba(0, 0, 0, 0.65);
  color: var(--accent-strong);
}
.hero-video-play .bi {
  font-size: 4rem;
  opacity: 0.95;
}

.hero-video-fallback {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent);
}

.hero-media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-media-books {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-avatar-stack {
  display: flex;
}

.hero-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 2px solid #070815;
  background: linear-gradient(135deg, #f4b400, #f97316);
}

.hero-avatar:nth-child(2) {
  margin-left: -0.9rem;
  background: linear-gradient(135deg, #6366f1, #22c55e);
}

.hero-avatar-img {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.hero-media-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(25, 29, 69, 0.96);
  border: 1px solid rgba(244, 180, 0, 0.24);
  color: var(--accent-strong);
}

/* Sections */
main {
  flex: 1;
}

.section {
  padding: 1.75rem 0 3rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.section-kicker .bi {
  font-size: 1rem;
  opacity: 0.95;
}

.section-title {
  font-size: 1.4rem;
  margin: 0.15rem 0 0.2rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 26rem;
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: linear-gradient(145deg, #080a1b, #171a34);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
}

.book-cover {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, #343861, #050614);
}

.book-cover-inner {
  padding: 1rem 0.6rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  max-height: 260px;
  width: auto;
  border-radius: 0.5rem;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.book-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.95rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 8, 21, 0.9);
  border: 1px solid rgba(244, 180, 0, 0.4);
  font-size: 0.72rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.book-body {
  padding: 1.1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.book-title {
  font-size: 1.05rem;
  margin: 0;
}

.book-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.book-meta span strong {
  color: #ffffff;
  font-weight: 500;
}

.book-description {
  font-size: 0.88rem;
  color: #d3d4e0;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  gap: 0.75rem;
}

.book-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mini-link {
  font-size: 0.8rem;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mini-link .bi {
  font-size: 1.1em;
}

/* Video embed (responsive 16:9) */
.video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.video-embed-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-embed-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video cards: single column layout (no side-by-side like book cards) */
.video-card {
  grid-template-columns: minmax(0, 1fr);
}
.video-card .video-body {
  padding: 0 1rem 1rem;
}

/* Book detail (About page two-column blocks) */
.book-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.book-detail-cover img {
  max-width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

/* Page hero (About / Contact) */
.page-hero {
  padding: 2.8rem 0 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at top, rgba(244, 180, 0, 0.16), transparent 52%);
}

.page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.page-hero-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.page-hero-subtitle {
  max-width: 32rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.page-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.25);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

.page-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.author-photo {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(244, 180, 0, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: block;
}

/* About layout */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.25rem;
}

.card {
  background: rgba(10, 12, 32, 0.95);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card-title .bi {
  font-size: 1.15em;
  color: var(--accent);
}

.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pill.highlight {
  border-color: rgba(244, 180, 0, 0.5);
  background: rgba(244, 180, 0, 0.14);
  color: var(--accent-strong);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.3rem;
}

.stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  color: #ffffff;
}

.quote-block {
  margin-top: 1.2rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(244, 180, 0, 0.5);
  font-size: 0.9rem;
  color: #e4e4f0;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
  margin-left: 0.55rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 0.95rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.18);
  left: -0.32rem;
  top: 0.1rem;
}

.timeline-year {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.timeline-title {
  font-size: 0.9rem;
  color: #ffffff;
}

.timeline-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 2.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-label span {
  color: var(--accent-strong);
}

.input,
.textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(9, 11, 30, 0.9);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input:focus,
.textarea:focus {
  border-color: rgba(244, 180, 0, 0.7);
  box-shadow: 0 0 0 1px rgba(244, 180, 0, 0.4);
  background: #10132e;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.form-helper {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Honeypot: hidden from users, left in DOM for bots */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-message--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.form-message--success a {
  color: #86efac;
  text-decoration: underline;
}
.form-message--error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #fca5a5;
}
.form-message--error a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 32, 0.95);
  color: var(--accent);
}
.contact-icon .bi {
  font-size: 1.1rem;
}

.contact-row strong {
  display: block;
  color: #ffffff;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.social-pill {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.social-pill:hover {
  border-color: rgba(244, 180, 0, 0.5);
  color: var(--accent-strong);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(to top, rgba(5, 6, 18, 0.98), rgba(7, 8, 21, 0.95));
}

.footer-top {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-brand-name:hover {
  color: var(--accent-strong);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 8rem;
}

.footer-nav-heading {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  margin-bottom: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-nav-heading .bi {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-nav-group a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-nav-group a .bi {
  font-size: 0.95em;
  opacity: 0.85;
}

.footer-nav-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 1rem 0 1.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-powered {
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.footer-powered a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-powered a:hover {
  color: var(--accent-strong);
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-strong);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

/* Legacy footer link class (if used elsewhere) */
.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* Utilities */
.muted {
  color: var(--text-muted);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive – Tablet */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-media {
    order: -1;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .book-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .page-hero {
    padding: 2.25rem 0 1.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* Responsive – Mobile */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 4.5rem 1.25rem 2rem;
    background: linear-gradient(180deg, #0d0f24 0%, #070815 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    z-index: 15;
    overflow-y: auto;
  }

  body.nav-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 0.5rem;
    min-height: 48px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.5rem;
    padding: 0.6rem 0.75rem;
    text-align: center;
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .hero--fullscreen-video .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(7, 8, 21, 0.85) 0%,
      rgba(7, 8, 21, 0.75) 100%
    );
  }

  .hero--fullscreen-video .hero-inner {
    padding: 3rem 1.5rem;
  }

  .section {
    padding: 1.5rem 0 2.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .book-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .book-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-cover-inner {
    padding: 1rem;
  }

  .book-cover img {
    max-height: 220px;
  }

  .book-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-card .video-body {
    padding: 0 1rem 1.25rem;
  }

  .book-detail-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .book-detail-cover {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer-top {
    padding: 2rem 0 1.5rem;
  }

  .footer-nav {
    gap: 1.5rem;
  }
}

/* Responsive – Small mobile & touch targets */
@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }

  .section-header {
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .page-hero-title {
    font-size: 1.6rem;
  }

  .author-photo {
    width: 8rem;
    height: 8rem;
  }

  .card-title {
    font-size: 0.95rem;
  }
}

/* Touch-friendly: ensure tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    min-height: 44px;
    padding: 0.5rem 0.25rem;
  }

  .btn {
    min-height: 44px;
  }

  .footer-nav-group a {
    min-height: 44px;
    padding: 0.25rem 0;
  }

  .social-pill {
    min-height: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
