:root {
  --bg-canvas: #FCFBF8;
  --bg-alt: #F8F7F4;
  --bg-soft: #FAFAFA;
  --bg-card: #FFFFFF;

  --primary: #0B2545;
  --primary-light: #163A63;
  --secondary: #1D4E89;
  --accent: #45654F;
  --accent-light: #7C9B82;
  --hero-gold: #E2953F;
  --hero-gold-light: #F2CD86;

  --text: #1F2937;
  --text-soft: #6B7280;
  --text-faint: #9CA3AF;

  --border: #ECECEC;
  --success: #16A34A;

  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.16);
  --shadow-glow: 0 20px 60px rgba(69, 101, 79, 0.35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  --nav-h: 88px;
}

[data-theme="dark"] {
  --bg-canvas: #14120E;
  --bg-alt: #1A1712;
  --bg-soft: #1E1A15;
  --bg-card: #201C16;

  --primary: #E2953F;
  --primary-light: #EAB06B;
  --secondary: #C97324;
  --accent: #E2953F;
  --accent-light: #F2CD86;

  --text: #F1EADD;
  --text-soft: #B6AC9C;
  --text-faint: #83786A;

  --border: #332D24;
  --success: #34C97A;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 20px 60px rgba(226, 149, 63, 0.35);
}

body,
.nav,
.book-card,
.stat-card,
.category-card,
.why-card,
.recent-card,
.testimonial-card {
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

::selection {
  background: var(--accent-light);
  color: var(--primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--s-2);
}

.eyebrow--light {
  color: var(--hero-gold-light);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 101, 79, 0.2);
}

.eyebrow--light .eyebrow-dot {
  background: var(--hero-gold);
  box-shadow: 0 0 0 4px rgba(226, 149, 63, 0.25);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: var(--s-2);
}

.section-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 90ch;
  font-weight: 300;

}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-4);
}

.section-inner--wide {
  max-width: 1440px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--s-6);
  text-align: center;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: none;
  margin-left: 0;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transition: opacity 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.2s, border-color 0.25s;
}

.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  border-color: var(--primary);
  background: rgba(69, 101, 79, 0.12);
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 1001;
  transition: width 0.1s linear;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  padding: 15px 30px;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  isolation: isolate;
}

.btn i,
.btn svg {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.96);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1rem;
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  z-index: 1;
}

.btn-primary:hover::before {
  animation: shine 1.1s var(--ease-soft);
}

@keyframes shine {
  to {
    transform: translateX(100%);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: var(--bg-alt);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--accent-light);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), backdrop-filter var(--dur-fast) var(--ease-out);
}

/* Default nav state: floating over the dark hero photo, so it reads light */
.nav .brand-name,
.nav .nav-link,
.nav .nav-login {
  color: rgba(255, 255, 255, 0.9);
}

.nav .brand-accent {
  color: var(--hero-gold-light);
}

.nav .nav-link.active,
.nav .nav-link:hover {
  color: #fff;
}

.nav .nav-link::after {
  background: var(--hero-gold-light);
}

.nav .dark-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.nav .nav-burger span {
  background: #fff;
}

.nav.scrolled {
  height: 72px;
  background: rgba(252, 251, 248, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(31, 27, 20, 0.06), var(--shadow-sm);
}

.nav.scrolled .brand-name,
.nav.scrolled .nav-login {
  color: var(--primary);
}

.nav.scrolled .nav-link {
  color: var(--text-soft);
}

.nav.scrolled .nav-link.active,
.nav.scrolled .nav-link:hover {
  color: var(--primary);
}

.nav.scrolled .nav-link::after {
  background: var(--accent);
}

.nav.scrolled .brand-accent {
  color: var(--accent);
}

.nav.scrolled .dark-toggle {
  border-color: transparent;
  background: transparent;
  color: var(--text-soft);
}

.nav.scrolled .nav-burger span {
  background: var(--primary);
}

[data-theme="dark"] .nav.scrolled {
  background: var(--bg-canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark i,
.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur-fast) var(--ease-out);
}

.brand-accent {
  color: var(--accent);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 2px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.nav-login {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--dur-fast);
}

.dark-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-soft);
}

.dark-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.dark-toggle i,
.dark-toggle svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.dark-toggle-icon--sun {
  color: var(--accent);
}

.dark-toggle-icon--moon {
  color: var(--text-faint);
}

.toggle-track {
  width: 32px;
  height: 17px;
  background: var(--border);
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

[data-theme="dark"] .toggle-track {
  background: var(--accent);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: block;
}

[data-theme="dark"] .toggle-thumb {
  left: 17px;
}

@media (max-width: 480px) {
  .dark-toggle span:not(.toggle-track):not(.toggle-thumb) {
    display: none;
  }

  .dark-toggle {
    padding: 7px;
  }
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  flex-shrink: 0;
}

.nav-burger span {
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast), background var(--dur-fast);
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--s-2) var(--s-4) var(--s-4);
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med);
  z-index: 999;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.9);
  will-change: transform;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 14, 24, 0.78) 0%, rgba(9, 14, 24, 0.55) 42%, rgba(9, 14, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(9, 14, 24, 0.75) 0%, rgba(9, 14, 24, 0.25) 55%, rgba(9, 14, 24, 0.2) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero-glow--one {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  animation: driftOne 16s ease-in-out infinite;
}

.hero-glow--two {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(69, 101, 79, 0.25), transparent 70%);
  animation: driftTwo 20s ease-in-out infinite;
}

@keyframes driftOne {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 40px) scale(1.08);
  }
}

@keyframes driftTwo {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.06);
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: var(--s-5) var(--s-4);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--s-6);
}

.hero-inner--single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 0;
  text-align: center;
}

.hero-title {
  display: block;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--s-3);
}

.hero-title span {
  display: inline;
}

.hero-title--light span {
  color: #fff;
}

.hero-title--accent {
  background: linear-gradient(100deg, var(--hero-gold) 10%, var(--hero-gold-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}


.hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-sub--light {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  justify-content: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-trust p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-trust strong {
  color: var(--primary);
}

.trust-avatars {
  display: flex;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--bg-canvas);
  margin-left: -10px;
  background: linear-gradient(140deg, hsl(calc(140deg + var(--i) * 10), 25%, 48%), hsl(calc(140deg + var(--i) * 10), 25%, 32%));
}

.avatar:first-child {
  margin-left: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-shadow {
  position: absolute;
  bottom: 6%;
  width: 62%;
  height: 34px;
  background: radial-gradient(ellipse, rgba(31, 27, 20, 0.28), transparent 72%);
  border-radius: 50%;
  animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(0.85);
    opacity: 0.6;
  }
}

.floating-book {
  position: relative;
  width: 230px;
  height: 320px;
  animation: floatBook 6s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes floatBook {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-22px) rotate(-1deg);
  }
}

.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 6px 12px 12px 6px;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 55%, var(--primary-light) 100%);
  box-shadow:
    -12px 20px 40px rgba(31, 27, 20, 0.35),
    inset -6px 0 14px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
  border-radius: 6px 0 0 6px;
}

.book-cover-inner {
  text-align: center;
  color: #F4EBDD;
  padding: 0 28px;
}

.book-emblem {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 235, 221, 0.5);
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-light);
}

.book-emblem i,
.book-emblem svg {
  width: 20px;
  height: 20px;
}

.book-cover-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.book-cover-sub {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.8;
}

.book-page {
  position: absolute;
  top: 3%;
  bottom: 3%;
  right: -6px;
  width: 96%;
  background: linear-gradient(90deg, #FFFDF8, #F3ECDF);
  border-radius: 3px 10px 10px 3px;
  box-shadow: 4px 10px 20px rgba(31, 27, 20, 0.18);
}

.book-page--1 {
  z-index: -1;
  transform: translateX(4px) rotate(1.5deg);
}

.book-page--2 {
  z-index: -2;
  right: -12px;
  transform: translateX(8px) rotate(3deg);
  opacity: 0.85;
}

.float-item {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  animation: floatItem 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

.float-item i,
.float-item svg {
  width: 22px;
  height: 22px;
}

.float-item--bookmark {
  top: 6%;
  right: 4%;
  color: var(--accent);
}

.float-item--paper {
  bottom: 18%;
  left: -2%;
}

.float-item--star {
  top: 42%;
  right: -6%;
  color: var(--accent);
}

@keyframes floatItem {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(6deg);
  }
}

.float-card {
  position: absolute;
  bottom: 4%;
  right: -8%;
  background: var(--bg-card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 18px 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatItem 7s ease-in-out infinite;
  animation-delay: 0.3s;
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card-icon i,
.float-card-icon svg {
  width: 18px;
  height: 18px;
}

.float-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.float-card-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.scroll-hint {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.scroll-hint--light {
  color: rgba(255, 255, 255, 0.65);
}

.scroll-hint i,
.scroll-hint svg {
  width: 16px;
  height: 16px;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-3);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.stat-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--primary);
  font-weight: 700;
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 4px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}

.book-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px;
  text-align: center;
  color: #fff;
  transition: transform var(--dur-slow) var(--ease-out);
}

.book-card:hover .book-cover-img {
  transform: scale(1.08) rotate(-0.5deg);
}

.book-cover-img h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.book-cover-img span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 8px;
}

.book-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.book-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast), background var(--dur-fast);
}

.book-wishlist i,
.book-wishlist svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.book-wishlist:hover {
  transform: scale(1.12) rotate(-8deg);
}

.book-wishlist.active {
  background: var(--primary);
  color: #fff;
}

.book-info {
  padding: 18px 18px 20px;
}

.book-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.book-author {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

.book-rating i,
.book-rating svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  fill: var(--accent);
}

.book-availability {
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-availability.in-stock {
  color: var(--success);
}

.book-availability.low-stock {
  color: #B45309;
}

.book-availability::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.book-borrow-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.book-borrow-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.categories {
  background: var(--bg-alt);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-3);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), border-color var(--dur-fast), background var(--dur-med);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff, var(--bg-alt));
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-2);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--dur-med) var(--ease-out);
}

.category-icon i,
.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-card:hover .category-icon {
  transform: rotate(10deg) scale(1.08);
}

.category-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.why-grid {
  display: block;
}

.why-copy {
  max-width: 640px;
  margin: 0 auto var(--s-6);
  text-align: center;
}

.why-grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
  position: relative;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.why-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(140deg, var(--accent), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.why-card:hover::after {
  opacity: 1;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}

.why-icon i,
.why-icon svg {
  width: 20px;
  height: 20px;
}

.why-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.recent-controls {
  display: flex;
  gap: 10px;
}

.recent-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}

.recent-arrow i,
.recent-arrow svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.recent-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.06);
}

.recent-track {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-2);
  scrollbar-width: none;
}

.recent-track::-webkit-scrollbar {
  display: none;
}

.recent-card {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

.recent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.recent-cover {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: #fff;
  position: relative;
}

.recent-cover span.new-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--success);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

.recent-cover h5 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
}

.recent-info {
  padding: 12px 14px 16px;
}

.recent-info p:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.recent-info p:last-child {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--s-2);
  color: var(--accent);
}

.testimonial-stars i,
.testimonial-stars svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--s-3);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-light), var(--secondary));
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--primary) 0%, #4E3A2B 100%);
  padding: var(--s-8) 0;
  text-align: center;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
}

.cta-shape--one {
  width: 320px;
  height: 320px;
  background: var(--accent);
  filter: blur(60px);
  top: -100px;
  left: 10%;
  animation: driftOne 14s ease-in-out infinite;
}

.cta-shape--two {
  width: 260px;
  height: 260px;
  background: var(--secondary);
  filter: blur(50px);
  bottom: -80px;
  right: 12%;
  animation: driftTwo 18s ease-in-out infinite;
}

.cta-shape--three {
  width: 3px;
  height: 3px;
  box-shadow:
    120px 40px 0 1px rgba(255, 255, 255, 0.5),
    280px 120px 0 0px rgba(255, 255, 255, 0.35),
    60px 180px 0 1px rgba(255, 255, 255, 0.4),
    420px 60px 0 0px rgba(255, 255, 255, 0.3),
    500px 200px 0 1px rgba(255, 255, 255, 0.45);
  top: 20%;
  left: 10%;
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--s-4);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #FFF7ED;
  margin-bottom: var(--s-2);
}

.cta-sub {
  color: rgba(255, 247, 237, 0.75);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: var(--s-4);
}

.footer {
  background: #241C15;
  color: rgba(252, 251, 248, 0.7);
  padding-top: var(--s-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .brand {
  color: #FCFBF8;
  margin-bottom: var(--s-2);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 30ch;
  margin-bottom: var(--s-3);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}

.footer-social a i,
.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #FCFBF8;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: 0.86rem;
  padding: 6px 0;
  transition: color var(--dur-fast), transform var(--dur-fast);
}

.footer-col a:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3) 0 var(--s-4);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal[data-reveal="up"] {
  transform: translateY(36px);
}

.reveal[data-reveal="scale"] {
  transform: scale(0.92);
}

.reveal[data-reveal="left"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="right"] {
  transform: translateX(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-6);
  align-items: center;
}

.about-text {
  color: var(--text-soft);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: var(--s-3);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--s-4);
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
}

.about-point-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--bg-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.about-point-icon i,
.about-point-icon svg {
  width: 15px;
  height: 15px;
}

.about-point strong {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.about-point span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.about-gallery {
  display: flex;
  justify-content: center;
}

.gallery-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
}

.gallery-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-card);
  cursor: pointer;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  z-index: var(--z, 1);
}

.gallery-photo-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
}

.gallery-photo-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--s-3);
}

.gallery-photo-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.75) 0%, rgba(11, 37, 69, 0.05) 55%, transparent 100%);
}

.gallery-photo-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.gallery-photo-label span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

.gallery-photo:hover,
.gallery-photo:focus-visible {
  transform: translate(0, -14px) rotate(0deg) scale(1.04);
  box-shadow: var(--shadow-lg);
  z-index: 40 !important;
}

.gallery-stack:hover .gallery-photo:not(:hover) {
  filter: saturate(0.85) brightness(0.94);
}

@media (max-width: 1080px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .why-grid-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .about-gallery {
    order: -1;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .nav-actions .btn-primary.btn-sm {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-inner {
    gap: var(--s-2);
  }

  .nav-actions {
    gap: var(--s-2);
  }

  .brand-name {
    max-width: 160px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-inner--single {
    padding-left: var(--s-3);
    text-align: center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-inner--single .hero-actions {
    justify-content: flex-start;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-inner--single .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }

  .gallery-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-2);
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
  }

  .gallery-photo {
    position: relative;
    inset: auto;
    transform: none !important;
    aspect-ratio: 4 / 5;
  }

  .gallery-photo:hover,
  .gallery-photo:focus-visible {
    transform: translateY(-6px) !important;
  }

  .gallery-stack:hover .gallery-photo:not(:hover) {
    filter: none;
  }
}

@media (max-width: 680px) {
  .section-inner {
    padding: var(--s-6) var(--s-3);
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-2);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid-items {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .float-card {
    display: none;
  }

  .book-stage {
    max-width: 300px;
  }

  .floating-book {
    width: 180px;
    height: 250px;
  }

  .hero-inner--single {
    padding-left: var(--s-3);
  }

  .gallery-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    padding: 0 var(--s-3);
  }

  .brand-name {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }
}

@media (max-width: 480px) {

  .book-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

.campus-gallery {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

.campus-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 18px;
}

.gallery-item {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 27, 61, .14);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .gallery-item {
    width: 170px;
    height: 120px;
    border-radius: 14px;
  }

  .gallery-track {
    gap: 12px;
  }
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.about-card-body {
  padding: var(--s-4) var(--s-3) var(--s-3);
}

.about-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--bg-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}

.about-card-icon i,
.about-card-icon svg {
  width: 18px;
  height: 18px;
}

.about-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-card-desc {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.about-card-banner {
  margin-top: auto;
  aspect-ratio: 16 / 8;
  position: relative;
  overflow: hidden;
}

.about-card-banner-icon {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 90px;
  height: 90px;
  color: rgba(255, 255, 255, 0.22);
}

.about-cta {
  margin-top: var(--s-5);
  text-align: center;
}

@media (max-width: 1080px) {
  .about-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .about-card-grid {
    grid-template-columns: 1fr;
  }
}