/* ============================================
   TOM RATH — WARM AUTHORITY DESIGN SYSTEM v3.0
   Rebrand · Plus Jakarta Sans + Inter · 2026
   ============================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Primary Palette — Warm Authority */
  --ink: #2d2d2d;
  --ink-light: #3d3d3d;
  --snow: #FFFFFF;
  --cream: #faf8f3;
  --parchment: #f5f0e8;

  /* Primary Accent — Gold (reserved for accents, badges, links, hover) */
  --gold: #c7963d;
  --gold-light: #d4a854;
  --gold-dark: #a67c2e;
  --gold-glow: rgba(199, 150, 61, 0.15);
  --gold-text: #856720;  /* AA-compliant gold for text on cream — 5.00:1 */
  --gold-subtle: rgba(199, 150, 61, 0.06);

  /* Navy — Primary CTA */
  --navy: #223369;
  --navy-light: #2c4085;
  --navy-dark: #1a2750;

  /* Sand — Secondary accent */
  --sand: #e8d5a8;

  /* Neutrals — Warm Grays */
  --warm-gray: #6b6660;  /* AA-compliant on cream — 5.36:1 */
  --neutral-50: #faf8f3;
  --neutral-100: #f0ece4;
  --neutral-200: #e4ddd2;
  --neutral-300: #d4cfc5;
  --neutral-400: #6b6660;  /* AA on cream: 5.36:1 */
  --neutral-500: #5e5a54;  /* AA on cream: 6.45:1 */
  --neutral-600: #504d46;
  --neutral-700: #3d3a35;
  --neutral-800: #2d2d2d;
  --neutral-900: #1e1e1e;

  /* Semantic */
  --success: #2D8A56;
  --warning: #c7963d;
  --error: #C0392B;
  --info: #223369;

  /* CareerSight */
  --cs-navy: #223369;
  --cs-gold: #c7963d;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale — Fluid (refined for readability) */
  --text-micro: clamp(0.7rem, 0.65rem + 0.2vw, 0.75rem);
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.4rem, 1.15rem + 1.25vw, 1.85rem);
  --text-3xl: clamp(1.7rem, 1.35rem + 1.75vw, 2.4rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-5xl: clamp(2.4rem, 1.7rem + 3.5vw, 3.6rem);

  /* Spacing — 8px Base */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px */

  /* Shadows — Warm */
  --shadow-subtle: 0 1px 3px rgba(24, 24, 24, 0.06), 0 1px 2px rgba(24, 24, 24, 0.04);
  --shadow-medium: 0 4px 12px rgba(24, 24, 24, 0.08), 0 2px 4px rgba(24, 24, 24, 0.04);
  --shadow-prominent: 0 12px 32px rgba(24, 24, 24, 0.12), 0 4px 8px rgba(24, 24, 24, 0.06);
  --shadow-dramatic: 0 24px 64px rgba(24, 24, 24, 0.16), 0 8px 16px rgba(24, 24, 24, 0.08);
  --shadow-gold: 0 8px 32px rgba(200, 145, 42, 0.2);

  /* Border Radius */
  --radius-sharp: 2px;
  --radius-soft: 8px;
  --radius-round: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.25, 1, 0.5, 1);  /* smooth ease-out, no bounce */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-dramatic: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --duration-fast: 150ms;
  --duration-medium: 300ms;
  --duration-slow: 500ms;
  --duration-emphasis: 800ms;
  --duration-hero: 1200ms;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1440px;
  --nav-height: 72px;
  --nav-height-scrolled: 60px;
}

/* ─── ACCESSIBILITY UTILITIES ─── */
.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;
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500&display=swap');

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.65;
  font-size: var(--text-base);
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--snow);
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: 1.5em;
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--gold-text);
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-spring);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: var(--navy);
  color: var(--snow);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-prominent);
  color: var(--snow);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #faf8f3;
  transform: translateY(-3px);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.btn--ghost::after {
  content: '→';
  display: inline-block;
  transition: transform var(--duration-medium) var(--ease-spring);
}

.btn--ghost:hover {
  color: var(--gold-dark);
}

.btn--ghost:hover::after {
  transform: translateX(6px);
}

.btn--ghost::before { display: none; }

/* ─── FOCUS STYLES (WCAG 2.4.7) ─── */
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary:focus-visible {
  outline-color: var(--gold);
}

.btn--outline:focus-visible {
  outline-color: var(--navy);
}

.btn--large {
  padding: 1.1em 2.8em;
  font-size: var(--text-base);
}


/* ─── SKIP LINK (Accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75em 1.5em;
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-soft);
  z-index: 10000;
  transition: top var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--snow);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: all var(--duration-medium) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  height: var(--nav-height-scrolled);
  border-bottom-color: var(--neutral-200);
  box-shadow: 0 1px 12px rgba(24, 24, 24, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  position: relative;
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  transition: transform var(--duration-medium) var(--ease-spring);
}

.nav__logo:hover .nav__logo-dot {
  transform: scale(1.4);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--neutral-500);
  position: relative;
  padding: 0.3em 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration-medium) var(--ease-spring);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.nav__cta {
  margin-left: 0.75rem;
  padding: 0.6em 1.4em !important;
  font-size: var(--text-xs) !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all var(--duration-medium) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 24, 0.95);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-overlay__link {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--snow);
  transition: color var(--duration-fast) var(--ease-out);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-overlay.active .mobile-overlay__link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.mobile-overlay.active .mobile-overlay__link:nth-child(1) { transition-delay: 0.1s, 0.1s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(3) { transition-delay: 0.2s, 0.2s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(4) { transition-delay: 0.25s, 0.25s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(5) { transition-delay: 0.3s, 0.3s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(6) { transition-delay: 0.35s, 0.35s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(7) { transition-delay: 0.4s, 0.4s, 0s; }
.mobile-overlay.active .mobile-overlay__link:nth-child(8) { transition-delay: 0.45s, 0.45s, 0s; }

.mobile-overlay__link:hover {
  color: var(--gold);
}

/* ─── SECTIONS ─── */
.section {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.section--cream { background: var(--cream); }
.section--parchment { background: var(--parchment); }
.section--ink {
  background: var(--ink);
  color: var(--snow);
}
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--snow); }
.section--ink p { color: var(--neutral-400); }

.section__header {
  margin-bottom: var(--space-3xl);
  position: relative;
}

.section__header--center {
  text-align: center;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--space-md);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  max-width: 600px;
}

.section__header--center .section__subtitle {
  margin: 0 auto;
}

/* Gold line accent */
.gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: var(--space-lg);
  border-radius: 2px;
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--cream);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__bg-gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--gold-subtle) 0%, transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.hero__bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--neutral-300) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  pointer-events: none;
}

.hero__bg-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.hero__text {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--gold);
  color: var(--ink);
  padding: 0.45em 1.2em;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-gold);
}

.hero__badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-size: var(--text-5xl);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.6s var(--ease-out) forwards;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

/* ─── BOOK HERO (pre-rendered 3D cover) ─── */
.book-hero {
  position: relative;
  display: inline-block;
  width: 420px;
  max-width: 100%;
  perspective: 1200px;
}

.book-hero__img {
  transition: transform 0.8s var(--ease-spring);
  transform: rotateY(-8deg) rotateX(2deg);
}

.book-hero:hover .book-hero__img {
  transform: rotateY(-2deg) rotateX(1deg);
}

.book-hero__img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.18));
}

.book-hero__shimmer {
  position: absolute;
  top: 5%;
  left: 8%;
  width: 78%;
  height: 88%;
  background: linear-gradient(
    125deg,
    transparent 0%,
    transparent 25%,
    rgba(212, 175, 55, 0.18) 42%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(212, 175, 55, 0.12) 58%,
    transparent 75%,
    transparent 100%
  );
  background-size: 200% 200%;
  background-position: -200% -200%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 4px;
}

.book-hero:hover .book-hero__shimmer {
  opacity: 1;
  animation: shimmerMove 0.9s ease-in-out forwards;
}

/* ─── 3D BOOK ─── */
.book-3d {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-3d__container {
  position: relative;
  width: 320px;
  height: 488px;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(2deg);
  transition: transform 0.8s var(--ease-spring);
}

.book-3d:hover .book-3d__container {
  transform: rotateY(-8deg) rotateX(1deg);
}

.book-3d__front {
  position: absolute;
  inset: 0;
  background: var(--snow);
  border-radius: 1px 4px 4px 1px;
  overflow: hidden;
  box-shadow:
    -6px 10px 28px rgba(0, 0, 0, 0.22),
    -2px 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateZ(18px);
}

.book-3d__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-3d__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    transparent 25%,
    rgba(212, 175, 55, 0.18) 42%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(212, 175, 55, 0.12) 58%,
    transparent 75%,
    transparent 100%
  );
  background-size: 200% 200%;
  background-position: -200% -200%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.book-3d:hover .book-3d__shimmer {
  opacity: 1;
  animation: shimmerMove 0.9s ease-in-out forwards;
}

@keyframes shimmerMove {
  to { background-position: 200% 200%; }
}

.book-3d__spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 100%;
  background: linear-gradient(90deg, #eae8e0 0%, #ffffff 40%, #f5f4f0 80%, #e8e6de 100%);
  border-left: 1px solid #d8d6ce;
  transform-origin: left center;
  transform: rotateY(-90deg) translateX(-36px);
  box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 4px;
}

.book-3d__spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.book-3d__spine-author {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}

.book-3d__pages {
  position: absolute;
  top: 4px;
  right: -6px;
  width: 6px;
  height: calc(100% - 8px);
  background: repeating-linear-gradient(to bottom, #f0ede5 0px, #e8e5dd 1px, #f5f2ea 2px);
  border-radius: 0 2px 2px 0;
  transform: translateZ(14px);
}

.book-3d__back {
  position: absolute;
  inset: 0;
  background: #f5f4f0;
  border-radius: 1px 4px 4px 1px;
  box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.15);
}

/* ─── CREDIBILITY BAR ─── */
.credibility {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  background: var(--cream);
}

.credibility__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.credibility__stat {
  text-align: center;
}

.credibility__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2em;
}

.credibility__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* ─── CARDS ─── */
.card {
  background: var(--snow);
  border-radius: var(--radius-round);
  padding: var(--space-xl);
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-medium) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-prominent);
}

.card--gold-top {
  border-top: 3px solid var(--gold);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--snow);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--neutral-500);
  margin-bottom: 0;
}

/* ─── BOOK CARDS (Grid) ─── */
.book-card {
  text-align: center;
  transition: all var(--duration-medium) var(--ease-spring);
  padding: var(--space-lg);
  border-radius: var(--radius-round);
  border: 2px solid transparent;
  background: transparent;
}

.book-card:hover,
.book-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--gold-subtle);
  outline: none;
}

.book-card__image {
  position: relative;
  margin-bottom: var(--space-lg);
  perspective: 800px;
}

.book-card__cover {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 3px;
  background: transparent;
  transition: all var(--duration-medium) var(--ease-spring);
}

.book-card:hover .book-card__cover {
  transform: rotateY(-8deg) scale(1.02);
}

.book-card__title {
  font-size: var(--text-base);
  font-family: var(--font-display);
  margin-bottom: 0.35em;
}

.book-card__meta {
  font-size: var(--text-micro);
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  line-height: 1.4;
}

.book-card__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin: 0;
  line-height: 1.55;
}

a.book-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.book-card__year {
  font-size: var(--text-micro);
  color: var(--neutral-400);
  margin-top: var(--space-xs);
  display: block;
}

/* ─── QUOTE BLOCK ─── */
.quote-block {
  position: relative;
  padding: var(--space-2xl);
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-soft);
  max-width: var(--max-width-narrow);
  margin: var(--space-2xl) auto;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -0.3em;
  left: var(--space-lg);
  font-size: 5rem;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
  opacity: 0.4;
}

.quote-block__text {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--ink);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.quote-block__author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--neutral-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: normal;
}

/* ─── NEWSLETTER ─── */
.newsletter-block {
  background: var(--ink);
  border-radius: var(--radius-round);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.newsletter-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, var(--gold-subtle) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--gold-subtle) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-block h3 {
  color: var(--snow);
  margin-bottom: var(--space-sm);
}

.newsletter-block p {
  color: var(--neutral-400);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85em 1.2em;
  border: 2px solid var(--neutral-700);
  border-radius: var(--radius-soft);
  background: var(--neutral-800);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.newsletter-form input::placeholder {
  color: var(--neutral-500);
}

.newsletter-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.newsletter-form button {
  padding: 0.85em 1.8em;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-spring);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.newsletter-form button:focus-visible {
  outline: 2px solid var(--snow);
  outline-offset: 3px;
}

/* ─── SUBSCRIBE MODAL ─── */
.subscribe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.subscribe-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.subscribe-modal {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-soft);
  padding: var(--space-xl) var(--space-lg);
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}
.subscribe-modal-overlay.is-visible .subscribe-modal {
  transform: translateY(0) scale(1);
}
.subscribe-modal__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}
.subscribe-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}
.subscribe-modal__body {
  font-size: var(--text-sm);
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.subscribe-modal__close {
  display: inline-block;
  padding: 0.65em 2em;
  background: var(--navy);
  color: var(--snow);
  border: none;
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}
.subscribe-modal__close:hover {
  background: var(--navy-light);
}
.subscribe-modal__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  color: var(--neutral-400);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-xl);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--snow);
  margin-bottom: var(--space-sm);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  margin-bottom: 0;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin-bottom: var(--space-lg);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  font-size: var(--text-sm);
  transition: all var(--duration-medium) var(--ease-spring);
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--neutral-600);
}

/* ─── GRIDS ─── */
.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(200, 145, 42, 0); }
  50% { box-shadow: 0 0 40px rgba(200, 145, 42, 0.2); }
}

/* Scroll reveal classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-emphasis) var(--ease-out),
              transform var(--duration-emphasis) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-60px);
}
[data-reveal="left"].revealed {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(60px);
}
[data-reveal="right"].revealed {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}
[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-stagger].revealed > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: 0.2s; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: 0.3s; }
[data-stagger].revealed > *:nth-child(5) { transition-delay: 0.4s; }
[data-stagger].revealed > *:nth-child(6) { transition-delay: 0.5s; }
[data-stagger].revealed > *:nth-child(7) { transition-delay: 0.6s; }
[data-stagger].revealed > *:nth-child(8) { transition-delay: 0.7s; }

[data-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MAGNETIC CURSOR ELEMENTS ─── */
[data-magnetic] {
  transition: transform 0.3s var(--ease-out);
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hovering {
  width: 50px;
  height: 50px;
  border-color: var(--gold);
}

/* ─── PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-medium) var(--ease-spring);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-4px);
}

/* ─── ABOUT CONTENT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-grid__image {
  position: relative;
  border-radius: var(--radius-round);
  overflow: hidden;
}

.about-grid__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-round);
}

.about-grid__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 145, 42, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── SPEAKING TOPIC CARDS ─── */
.topic-card {
  background: var(--snow);
  border-radius: var(--radius-round);
  padding: var(--space-xl);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-medium) var(--ease-spring);
}

.topic-card:hover {
  transform: translateY(-6px) translateX(4px);
  box-shadow: var(--shadow-prominent);
}

.topic-card__number {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--snow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

/* ─── THEME TAGS ─── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  display: inline-block;
  padding: 0.45em 1.1em;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--neutral-600);
  transition: all var(--duration-fast) var(--ease-out);
}

.tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

/* ─── DETAIL PAGE HERO ─── */
.detail-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
}

.detail-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.detail-hero__meta {
  display: flex;
  gap: var(--space-xl);
  margin: var(--space-lg) 0 var(--space-xl);
  flex-wrap: wrap;
}

.detail-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.detail-hero__meta-label {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-400);
}

.detail-hero__meta-value {
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 500;
}

/* ─── RETAILER LINKS ─── */
.retailer-grid {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.retailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  min-width: 140px;
  justify-content: center;
  text-decoration: none;
}

/* ─── FORM COMPONENTS ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-600);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.85em 1.2em;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-soft);
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237C7870' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 3em;
}

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

/* ─── CAREERSIGHT PAGE ─── */
.cs-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #223369 0%, #2c4085 40%, #1a2750 100%);
  overflow: hidden;
}

.cs-hero__bg-glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 145, 42, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.cs-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  width: 100%;
}

.cs-hero__logo {
  max-width: 280px;
  margin: 0 auto var(--space-xl);
}

.cs-hero__title {
  font-size: var(--text-4xl);
  color: var(--snow);
  margin-bottom: var(--space-lg);
}

.cs-hero__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 650px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.cs-hero__tagline {
  font-size: var(--text-xl);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

/* Journey Steps */
.journey-step {
  background: var(--snow);
  border-radius: var(--radius-round);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-medium) var(--ease-spring);
  position: relative;
}

.journey-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-prominent);
}

.journey-step__number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--snow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-lg);
}

.journey-step__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.journey-step__text {
  color: var(--neutral-500);
  margin: 0;
}

/* Benefit Cards */
.benefit-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--snow);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-medium) var(--ease-spring);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--gold-subtle);
  border-radius: var(--radius-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.benefit-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.benefit-card__text {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  margin: 0;
}

/* ─── RESOURCE CARDS ─── */
.resource-card {
  background: var(--snow);
  border-radius: var(--radius-round);
  padding: var(--space-xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-medium) var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-prominent);
  border-color: var(--gold);
}

.resource-card__type {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.resource-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.resource-card__desc {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.resource-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gold);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap var(--duration-medium) var(--ease-spring);
}

.resource-card__link:hover {
  gap: 0.8em;
  color: var(--gold-dark);
}

.resource-card--coming-soon {
  border-style: dashed;
  border-color: var(--neutral-300);
  background: var(--neutral-100, #f7f7f5);
  cursor: default;
  opacity: 0.75;
}

.resource-card--coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-subtle);
  border-color: var(--neutral-300);
}

.resource-card--coming-soon .resource-card__type {
  color: var(--neutral-400);
}

.resource-card--coming-soon .resource-card__title {
  color: var(--neutral-500);
}

.resource-card--coming-soon .resource-card__desc {
  margin-bottom: 0;
}

/* "What This Book Does" section */
.book-does {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.book-does__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}

.book-does__item {
  padding: var(--space-xl) var(--space-2xl);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-soft);
  background: var(--snow);
  box-shadow: var(--shadow-subtle);
}

.book-does__item strong {
  color: var(--ink);
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
}

.book-does__item p {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

/* ─── BOOK CAROUSEL (moved from inline styles) ─── */
.book-carousel {
  position: relative;
  padding: 0 3rem;
}

.book-carousel__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--snow);
  border: 2px solid var(--neutral-200);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.book-carousel__arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--snow);
}

.book-carousel__arrow--left { left: 0; }
.book-carousel__arrow--right { right: 0; }

.book-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

/* ─── RESPONSIVE: PAGE-SPECIFIC (pre-breakpoint) ─── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .book-does__grid { grid-template-columns: 1fr; }
  .benefit-card { flex-direction: column; }
  .cs-hero { min-height: auto; padding-bottom: var(--space-2xl); }
}

/* ─── RESPONSIVE: TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__image { min-height: 400px; }
  .about-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero__inner { grid-template-columns: 1fr; }
  .book-3d__container { width: 260px; height: 397px; }
  .book-3d__front { width: 260px; height: 397px; }

  /* Book carousel — show 2 books on tablet */
  .book-carousel__track .book-card {
    min-width: calc(50% - 0.75rem);
    flex-shrink: 0;
  }
}

/* ─── RESPONSIVE: MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  /* Navigation */
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  /* Grids — single column */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  /* Hero */
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-xl)); padding-bottom: var(--space-2xl); }
  .hero__content { text-align: center; }
  .hero__text { max-width: 100%; }
  .hero__image { min-height: 350px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* Credibility bar */
  .credibility__inner { gap: var(--space-xl); flex-direction: column; align-items: center; text-align: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

  /* Newsletter */
  .newsletter-block { padding: var(--space-2xl) var(--space-lg); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; min-height: 48px; }

  /* Book 3D covers */
  .book-3d__container { width: 200px; height: 305px; }
  .book-3d__front { width: 200px; height: 305px; }

  /* Book carousel — horizontal scroll with touch */
  .book-carousel { padding: 0 var(--space-md); }
  .book-carousel__arrow { display: none; }
  .book-carousel__track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
  }
  .book-carousel__track .book-card {
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .book-carousel__track::-webkit-scrollbar { height: 4px; }
  .book-carousel__track::-webkit-scrollbar-track { background: var(--neutral-200); border-radius: 2px; }
  .book-carousel__track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

  /* Quote blocks */
  .quote-block { padding: var(--space-xl) var(--space-lg); }
  .quote-block::before { font-size: 3rem; left: var(--space-md); }

  /* Detail hero (book pages) */
  .detail-hero__book { margin-bottom: var(--space-xl); }
  .detail-hero__text { text-align: center; }
  .detail-hero__actions { justify-content: center; }

  /* Speaking form */
  .form-input,
  .form-select,
  .form-textarea { font-size: 16px; min-height: 48px; } /* 16px prevents iOS zoom */

  /* CareerSight hero */
  .cs-hero__title { font-size: var(--text-3xl); }
  .cs-hero__logo { max-width: 200px; }

  /* Resource cards — ensure proper spacing */
  .resource-card { padding: var(--space-xl) var(--space-lg); }

  /* Tags — allow wrapping */
  .tags { justify-content: center; }

  /* Back to top — move up from edge */
  .back-to-top { bottom: 1rem; right: 1rem; }

  /* Custom cursor — hide on touch */
  .cursor { display: none; }

  /* Buttons — ensure touch-friendly size */
  .btn { min-height: 48px; }
  .retailer-link { min-height: 48px; min-width: 100%; }
  .retailer-btn { min-height: 48px; }
}

/* ─── RESPONSIVE: SMALL MOBILE (≤480px) ─── */
@media (max-width: 480px) {
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-md); }
  .nav__inner { padding: 0 var(--space-md); }

  /* Smaller book covers */
  .book-3d__container { width: 180px; height: 275px; }
  .book-3d__front { width: 180px; height: 275px; }

  /* Tighter hero spacing */
  .hero { padding-top: calc(var(--nav-height) + var(--space-md)); }
  .hero__badge { font-size: var(--text-micro); }

  /* Detail hero — compact */
  .detail-hero__title { font-size: var(--text-2xl) !important; }
  .detail-hero__desc { font-size: var(--text-base) !important; }

  /* Mobile overlay links — slightly smaller */
  .mobile-overlay__link { font-size: var(--text-2xl); }

  /* Footer links — better spacing */
  .footer__grid { padding: 0 var(--space-md); gap: var(--space-lg); }
  .footer__bottom { padding-left: var(--space-md); padding-right: var(--space-md); }

  /* Newsletter — tighter */
  .newsletter-block { margin: 0 var(--space-md); border-radius: var(--radius-soft); }

  /* Carousel — single card width */
  .book-carousel__track .book-card { min-width: 170px; }
}

/* ─── RESPONSIVE: TINY SCREENS (≤320px) ─── */
@media (max-width: 320px) {
  .container { padding: 0 var(--space-sm); }
  .nav__inner { padding: 0 var(--space-sm); }
  .section { padding: var(--space-xl) 0; }
  .footer__grid { padding: 0 var(--space-sm); }

  .book-3d__container { width: 150px; height: 229px; }
  .book-3d__front { width: 150px; height: 229px; }

  .book-carousel__track .book-card { min-width: 150px; }
}

/* ─── REDUCED MOTION ─── */
/* ─── NO-JS FALLBACK ─── */
[data-split] .char { opacity: 1; transform: none; }
[data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

/* ─── PRINT ─── */
@media print {
  .nav, .footer, .newsletter-block, .back-to-top, .scroll-progress, .cursor { display: none; }
  .section { padding: 2rem 0; page-break-inside: avoid; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ===================================================================
   BOOK DETAIL PAGES
   Extracted from inline <style> blocks — shared by all book-*.html
   =================================================================== */

.detail-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-height); background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 40%, #252320 100%); overflow: hidden; }
.detail-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.detail-hero__bg-glow { position: absolute; top: 10%; right: 15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200, 145, 42, 0.12) 0%, transparent 70%); border-radius: 50%; animation: float 8s ease-in-out infinite; }
.detail-hero__bg-glow-2 { position: absolute; bottom: 5%; left: 10%; width: 350px; height: 350px; background: radial-gradient(circle, rgba(200, 145, 42, 0.06) 0%, transparent 70%); border-radius: 50%; animation: float 10s ease-in-out infinite 2s; }
.detail-hero__particles { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(200, 145, 42, 0.15) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.3; }
.detail-hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; max-width: var(--max-width); margin: 0 auto; padding: var(--space-2xl) var(--space-xl); width: 100%; }
.detail-hero__text { color: var(--snow); }
.detail-hero__title { font-size: var(--text-5xl); color: var(--snow); line-height: 1.2; margin-bottom: var(--space-lg); letter-spacing: -0.03em; }
.detail-hero__subtitle { font-family: var(--font-body); font-size: var(--text-xl); color: var(--gold); font-weight: 600; margin-bottom: var(--space-xl); }
.detail-hero__desc { font-size: var(--text-lg); color: var(--neutral-400); line-height: 1.8; margin-bottom: var(--space-xl); }
.detail-hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.detail-hero__book { display: flex; align-items: center; justify-content: center; position: relative; }
.retailers { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.retailer-link { display: inline-flex; align-items: center; justify-content: center; padding: 0.8em 2em; border-radius: var(--radius-soft); font-size: var(--text-sm); font-weight: 600; min-width: 160px; text-decoration: none; transition: all var(--duration-medium) var(--ease-spring); }
.retailer-link--primary { background: var(--gold); color: var(--ink); }
.retailer-link--primary:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: var(--shadow-gold); color: var(--ink); }
.retailer-link--secondary { background: var(--snow); color: var(--ink); border: 2px solid var(--neutral-300); }
.retailer-link--secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
@media (max-width: 1024px) { .detail-hero__content { grid-template-columns: 1fr; text-align: center; } .detail-hero__book { order: -1; } }
@media (max-width: 768px) { .detail-hero { min-height: auto; padding-bottom: var(--space-2xl); } .detail-hero__title { font-size: var(--text-3xl); } .detail-hero__actions { flex-direction: column; align-items: stretch; } .retailers { flex-direction: column; align-items: stretch; } .retailer-link { min-width: unset; width: 100%; } }


/* Wellbeing-specific styles (endorsements, badge) */
.detail-hero__badge { display: inline-flex; align-items: center; gap: 0.6em; background: rgba(200, 145, 42, 0.15); border: 1px solid rgba(200, 145, 42, 0.3); color: var(--gold); padding: 0.5em 1.4em; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-xl); backdrop-filter: blur(10px); }
.detail-hero__badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
.detail-hero__book .book-3d__container { filter: drop-shadow(0 20px 60px rgba(200, 145, 42, 0.15)); }
.endorsements { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.endorsement { background: var(--snow); border-radius: var(--radius-round); padding: var(--space-xl); border-left: 4px solid var(--gold); box-shadow: var(--shadow-subtle); transition: all var(--duration-medium) var(--ease-out); }
.endorsement:hover { box-shadow: var(--shadow-medium); }
.endorsement__text { font-family: var(--font-accent); font-style: italic; color: var(--ink); font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--space-md); }
.endorsement__author { font-family: var(--font-body); font-size: var(--text-sm); color: var(--neutral-500); font-weight: 600; font-style: normal; }
@media (max-width: 1024px) { .detail-hero__content { grid-template-columns: 1fr; } .endorsements { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .endorsement { padding: var(--space-lg); } .endorsement__text { font-size: var(--text-sm); } }
