:root {
  --bg: #0b0b0f;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.14);

  --gold: #d6b25e;
  --gold-2: rgba(214, 178, 94, 0.22);

  --accent: #d6b25e;
  --focus: rgba(214, 178, 94, 0.45);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --container: 1120px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --header-h: 74px;
}

html[data-theme="light"] {
  --bg: #fbfbfe;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-2: rgba(0, 0, 0, 0.07);
  --text: rgba(0, 0, 0, 0.86);
  --muted: rgba(0, 0, 0, 0.6);
  --border: rgba(0, 0, 0, 0.12);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 540px at 15% -10%, rgba(214, 178, 94, 0.25), transparent 60%),
    radial-gradient(700px 420px at 88% 5%, rgba(173, 216, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 16, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .site-header {
  background: rgba(251, 251, 254, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(214, 178, 94, 0.24), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 700;
}
.brand-name {
  font-family: Playfair Display, serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
  position: relative;
  transition: color 180ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 220ms ease;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.icon-btn:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.icon-btn .icon {
  font-size: 18px;
  line-height: 1;
}

.hamburger {
  width: 48px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
}
.hamburger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hamburger-lines {
  width: 22px;
  height: 14px;
  position: relative;
}
.hamburger-lines::before,
.hamburger-lines::after,
.hamburger-lines span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 6px;
  transition: transform 220ms ease, top 220ms ease, opacity 180ms ease;
}
.hamburger-lines::before {
  top: 0;
}
.hamburger-lines::after {
  top: 12px;
}
.hamburger-lines span {
  top: 6px;
}
.hamburger[aria-expanded="true"] .hamburger-lines::before {
  top: 6px;
  transform: rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-lines::after {
  top: 6px;
  transform: rotate(-45deg);
}
.hamburger[aria-expanded="true"] .hamburger-lines span {
  opacity: 0;
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0 14px;
}
html[data-theme="light"] .mobile-menu {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  font-weight: 500;
  font-size: 14px;
  user-select: none;
  background: transparent;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(214, 178, 94, 0.22), rgba(214, 178, 94, 0.08));
  border-color: rgba(214, 178, 94, 0.45);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(214, 178, 94, 0.28), rgba(214, 178, 94, 0.1));
  border-color: rgba(214, 178, 94, 0.6);
}
.btn-ghost {
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-small {
  padding: 10px 12px;
  border-radius: 14px;
}

/* Sections */
.section {
  padding: 92px 0;
  scroll-margin-top: 92px;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}
.section-title {
  margin: 0;
  font-family: Playfair Display, serif;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: 0.2px;
}
.section-lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Hero */
.hero {
  min-height: calc(100vh - 10px);
  display: grid;
  align-items: center;
  position: relative;
  padding: 72px 0 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1526498460520-4c246339dccb?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 540px at 20% 20%, rgba(214, 178, 94, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.8));
}
html[data-theme="light"] .hero-overlay {
  background: radial-gradient(900px 540px at 20% 20%, rgba(214, 178, 94, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}
.hero-kicker {
  color: rgba(214, 178, 94, 0.92);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
.hero-title {
  margin: 0;
  font-family: Playfair Display, serif;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.02;
}
.hero-subtitle {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 14px;
}
html[data-theme="light"] .stat {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.stat-value {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
}
html[data-theme="light"] .about-image img {
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.about-image-frame {
  position: absolute;
  inset: -10px -10px -10px -10px;
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1px solid rgba(214, 178, 94, 0.35);
  pointer-events: none;
}

.about-title {
  font-family: Playfair Display, serif;
  font-size: 24px;
  margin: 0 0 10px;
}
.about-text {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}
.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.gallery-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  position: relative;
  min-height: 170px;
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 360ms ease, filter 250ms ease;
}
.gallery-hover {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
html[data-theme="light"] .gallery-hover {
  background: rgba(255, 255, 255, 0.62);
  color: rgba(0, 0, 0, 0.8);
}
.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 178, 94, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.gallery-item:hover .gallery-hover {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  padding: 18px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.lightbox-body {
  width: min(1060px, 100%);
  display: grid;
  gap: 12px;
}
.lightbox-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Banners (Sliding carousel) */
.banners {
  padding: 78px 0 92px;
}
.banner-carousel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.banner-track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}
.banner-slide {
  flex: 0 0 100%;
  position: relative;
}
.banner-img-wrap {
  width: 100%;
  aspect-ratio: 16/6;
  background: rgba(255, 255, 255, 0.03);
}
.banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .banner-caption {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.banner-cap-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: rgba(214, 178, 94, 0.92);
  font-weight: 600;
  margin-bottom: 4px;
}
.banner-cap-title {
  font-family: Playfair Display, serif;
  font-size: clamp(18px, 2.7vw, 30px);
}
.banner-bar {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .banner-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.banner-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, background 180ms ease, border-color 200ms ease;
}
.banner-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 178, 94, 0.5);
}
.banner-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.6);
  background: rgba(214, 178, 94, 0.22);
  cursor: pointer;
  padding: 0;
}
.banner-dot[aria-selected="true"] {
  background: rgba(214, 178, 94, 0.92);
  box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.18);
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.video-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.03);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-meta {
  padding: 16px 16px 18px;
}
.video-meta h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: Playfair Display, serif;
}
.video-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* Books */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.book-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 320px;
}
.book-cover {
  padding: 12px;
}
.book-cover img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  height: 100%;
  object-fit: cover;
}
html[data-theme="light"] .book-cover img {
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.book-body {
  padding: 18px 18px 18px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.book-top h3 {
  margin: 0;
  font-family: Playfair Display, serif;
  font-size: 18px;
}
.book-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.03);
}
.book-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.book-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Timeline */
.timeline {
  position: relative;
  margin-left: 8px;
  display: grid;
  gap: 14px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(214, 178, 94, 0.35);
}
.timeline-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(214, 178, 94, 0.8), rgba(214, 178, 94, 0.08));
  border: 1px solid rgba(214, 178, 94, 0.5);
  margin-top: 6px;
}
.timeline-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 16px 18px;
}
.timeline-card h3 {
  margin: 0 0 8px;
  font-family: Playfair Display, serif;
  font-size: 18px;
  color: var(--gold);
}
.timeline-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.social-link {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 200ms ease, border-color 220ms ease, background 200ms ease;
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 178, 94, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 178, 94, 0.35);
  color: var(--gold);
  background: rgba(214, 178, 94, 0.12);
}
.social-label {
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
label {
  color: var(--muted);
  font-size: 13px;
}
input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.55);
}
input:focus,
textarea:focus {
  border-color: rgba(214, 178, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.15);
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  min-height: 18px;
  font-size: 13px;
}

.contact-details {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px;
}
.contact-title {
  font-family: Playfair Display, serif;
  margin: 0 0 12px;
}
.detail {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.detail-label {
  color: var(--muted);
  font-size: 13px;
}
.detail-value {
  color: var(--text);
  font-weight: 600;
}
.contact-note {
  color: var(--muted);
  line-height: 1.75;
  margin: 8px 0 14px;
  font-size: 14px;
}
.contact-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  transition: transform 180ms ease, border-color 200ms ease, background 200ms ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 178, 94, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
  padding: 44px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-inner {
  display: grid;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-mark {
  width: 54px;
  height: 54px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(214, 178, 94, 0.4);
  background: rgba(214, 178, 94, 0.12);
  font-weight: 700;
}
.footer-title {
  font-family: Playfair Display, serif;
  font-size: 20px;
  margin-bottom: 4px;
}
.footer-subtitle {
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.footer-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  color: var(--text);
  opacity: 0.86;
  padding: 8px 0;
  font-size: 14px;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}
.footer-link:hover {
  opacity: 1;
  color: var(--gold);
  transform: translateY(-1px);
}
.footer-theme-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.footer-theme-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.footer-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}
html[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.back-to-top {
  color: var(--gold);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.4);
  background: rgba(214, 178, 94, 0.12);
  transition: transform 200ms ease;
}
.back-to-top:hover {
  transform: translateY(-2px);
}

.noscript {
  padding: 14px 18px;
  margin: 30px auto 0;
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

/* Reveal fallback (if AOS is missing) */
.reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery-item img {
    transition: none !important;
  }
  .banner-track {
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .book-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 68px;
  }
  .section {
    scroll-margin-top: 76px;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  .mobile-menu {
    display: block;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .book-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .book-body {
    padding: 8px 18px 18px;
  }
  .book-cover {
    padding: 16px 16px 0;
  }
}

